LocationResources 1.1.1-plReleased Mar 21, 2017 by muzzstick
LocationResources is a basic integration between the Google Maps API and MODX Resources.It allows drag and drop in the MODX manager to position maps and set markers which is then reflected on the web context (or others).
This version is deprecated. It is recommended to use a newer version.Download 51kb (54 downloads)
Google Maps Custom Resource Class Extra for MODX Revolution.
There is no need to use multiple template variables to achieve a similar result.
LocationResources includes a slick drag and drop interface users will love. Both simple and customizable.
21.3.2017 - Version 1.1.1
If upgrading from 1.0.* version and using a custom chunk for tpl,css or js; you will need to update your chunks to include the new [[+lr.docid]] placeholder as shown in the new default chunks!
First add your Google Maps API Key into the system settings. Then, in the manager simply create a new resource of "Location" type. You will see the map displayed above the main resource content field.You can drag the map around and zoom to position it. You can choose to add a marker, position it and add an info window to it.
Remember to save the resource!
Then to have it displayed on your web context:
Call this snippet on any template/chunk attached to the LocationResource: [[!locationResourcesMap]]
This will display a map with all the default settings.
For customization, you can call the snippet with currently four parameters:
[[!locationResources? &docid=`[resource id here]` &tpl=`myCustomTpl` &js=`myCustomJS` &css=`myCustomDefaultCSS`]]
The ID of the resource you wish to pull for map display. Defaults to the current resource if not supplied.
Put the name of your custom chunk that contains the main map div.
Put the name of your custom chunk that contains the script to display the map.
Put the name of your custom chunk that contains your own css. (Or you can choose not to use default css in your system settings and style on your own).
|10 Versions||1 Contributors||790 Downloads|
|1.3.2-pl||Aug, 18 2017||muzzstick||239|
|1.3.1-pl||Aug, 11 2017||muzzstick||47|
|1.3.0-pl||Aug, 11 2017||muzzstick||26|
|1.2.1-pl||Jul, 08 2017||muzzstick||80|
|1.2.0-pl||Jul, 07 2017||muzzstick||33|
|1.1.2-pl||Mar, 24 2017||muzzstick||138|
|1.1.0-pl||Mar, 19 2017||muzzstick||33|
|1.0.1-pl||Mar, 16 2017||muzzstick||56|
|1.0.0-pl||Feb, 03 2017||muzzstick||84|