Your Moodle version

Blocks: Simple map

block_simple_map
Maintained by it's me David Bogner
This block provides a Google map search for places you uploaded via a csv file. For example you can upload a list of libraries of your country and then, the user can find the closest library for the given address of the user.
Moodle 2.0, 2.1, 2.2, 2.3, 2.4

For the user the block works like that: The user sees, that he can find for example libraries, that are near to him/her. So the user enters his/her address in a text field and the nearest libraries will be found and shoen on a map. The nearest library is shown first in the list.

New release 1.1: No API key is needed anymore. Should work out of the box now.

As administrator you find a link in the Simple Map block to upload and edit the places, that should be shown on the map. Click on that link. You have to upload a csv file, that is exactly as described on the upload page. Most fields are optional. You do not have to give the latitude and longitude coordinates, they are calculated automatically for you, so leave them blank, if you don't know them. But you have to fill out the address.

You can also add places manually instead of uploading a CSV file.

For customizing the block further you can contact us at http://www.edulabs.org

Screenshots

Screenshot
Screenshot
Screenshot

Contributors

it's me
David Bogner (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Capt. Moodle
    Sun, Mar 10, 2013, 11:08 PM
    David - Many thanks for sharing the Simple map block with the Moodle community. Just a couple minor tweaks to make things better. First, I like to see the license header in the version.php with copyright information. Second, if you would add a documentation url to the Useful links section when you are able. I'll go ahead and approve this now but when its convenient, it would help if you could make these minor improvements. Peace - Anthony
  • Picture of Alexander Lambin
    Wed, Mar 27, 2013, 2:03 PM
    Hello!
    I installed the unit Simple MAP. However, when you click on the Configure button to enter a Google Maps API Key, the script displays a blank white window. Without entering a Google Maps API Key, the unit does not work. How to fix?

    Alexander
  • it's me
    Wed, Mar 27, 2013, 4:38 PM
    Hello Alexander,

    did you scroll to the top of the page? There is an autofocus, that might you direct you to the bottom of the page. If that's not the issue, could you tell me what moodle version do you use? What's the message, if you turn on debugging->developer mode?

    Best regards,
    David
  • Picture of Alexander Lambin
    Wed, Mar 27, 2013, 6:56 PM
    David, you have made a very useful module.
    If you are going to develop, it may be, you can realize it:
    1. Creating objects, drawing them directly on the map (not always the object has an address)
    2. The ability to create object types Line and Polygon
    3. Separation of objects of the type, with the ability to add new types. Different types has different image tags.
    4. Sort different types of objects in the tree
    5. Distribution of objects into different groups, and filtering by groups
    6. Differentiation of users to different types of objects and roles, according to their study group
    7. Localization file for the Russian language (I can do)
  • Picture of Alexander Lambin
    Wed, Mar 27, 2013, 8:13 PM
    Moodle 2.4.2 (Build: 20130311).

    message is:
    Warning: require_once(blocks/simple_map/upload_form.php): failed to open stream: No such file or directory in /home/server/web/mysite.com/public_html/blocks/simple_map/edit_form.php on line 6

    Fatal error: require_once(): Failed opening required 'blocks/simple_map/upload_form.php' (include_path='/home/server/web/mysite.com/public_html/lib/zend:/home/server/web/mysite.com/public_html/lib/pear:.:/usr/share/pear:/usr/share/php') in /home/server/web/mysite.com/public_html/blocks/simple_map/edit_form.php on line 6

    Module Simple map earned after I file my $googleAPIkey block_simple_map.php prescribed.
    Module configuration mode does not work.
  • Picture of Alexander Lambin
    Thu, Mar 28, 2013, 5:57 PM
    If I understand correctly, for a route, the module assumes that the user is walking. Is it possible that it paved the route for a car?
  • it's me
    Sat, Mar 30, 2013, 6:07 AM
    @Alexander: I did upload a new version, which sould fix the issue.
  • Picture of Alexander Lambin
    Sat, Mar 30, 2013, 4:17 PM
    David, I replaced with a new unit. Now moodle gave this error:
    Warning: require_once(/home/server/web/mysite.com/public_html/blocks/simple_map/blocks/simple_map/upload_form.php): failed to open stream: No such file or directory in /home/server/web/mysite.com/public_html/blocks/simple_map/edit_form.php on line 6

    Fatal error: require_once(): Failed opening required '/home/server/web/mysite.com/public_html/blocks/simple_map/blocks/simple_map/upload_form.php' (include_path='/home/server/web/mysite.com/public_html/lib/zend:/home/server/web/mysite.com/public_html/lib/pear:.:/usr/share/pear:/usr/share/php') in /home/server/web/lestest.by/public_html/blocks/simple_map/edit_form.php on line 6

    Edit_form.php file in the directory /blocks/simple_map/ present. Moodle 2.4.2 (Build: 20130311). My $googleAPIkey wrote again to the file manually block_simple_map.php
    What do you think about the development of the Simple map module?
  • Picture of Alexander Lambin
    Sat, Mar 30, 2013, 5:14 PM
    Updated to Moodle 2.4.3 (Build: 20130318). The error does not change.
  • Picture of Alexander Lambin
    Sat, Mar 30, 2013, 6:09 PM
    David, including localization for Russian Module
    http://lestest.by/block_simple_map_ru.rar
  • it's me
    Wed, Apr 3, 2013, 6:39 PM
    @Alexander: I think you have a permission problem, because I can't reproduce the error. You can go into the simple_map directory an then try: sudo chmod 777 upload_form.php (not recommended on production sites) and if the works try chmod 755 again. Perhaps you have to change the owner of the file...

    Thank you for the russian version. I will integrate it as soon as possible.

    Best regards,
    David
  • Picture of Mark Davis
    Tue, Jun 3, 2014, 11:37 PM
    Do you have any plans to update this plugin to 2.6 and/or 2.7 (it doesn't seem to work in 2.6 which we are on)?
  • it's me
    Thu, Jun 5, 2014, 5:36 PM
    Hi Mark, we will support 2.7. but we move from 2.5 to 2.7 in summer, so july or august. but if there is only little things to fix and you post the error message in dev mode, than I could have a look to fix it earlier.
  • it's me
    Wed, Jun 25, 2014, 4:51 PM
    @Mark Davis and all others: New version fixed a bug. Adding locations is now possible again. Google shut down access to the old API and we added support for the new API now.
Please login to post comments