A document can serve as a MAP center point and it's child documents can serve as markers on it
![Twitter] ![Youtube] ![Facebook] ![Google+] ![Email]
- Download
- Unzip the downloaded file.
- Add a new template.html with the code from the template or add the code from this file into needed template
- Create a new chunk: scriptwrapper and update it with a content from file scriptwrapper.chk
- The template uses the chunk {{scriptwrapper}} and the chunk scriptwrapper uses a Ditto call to iterate through the child documents of this page (the map document should be a container)
- Create a new chunk for this Ditto snippet call to load results parsed via this teplate: google.maps.tpl and update it with a content from file google.maps.tpl.chk
- Create 2 TV for latitude and longitude, set them as text. Also create another TV and name it as markerImage type image.
- Update TV values of latitude,longitude with the coordinates of the map center, and set markerImage TV value with the image needed on the map per each marker.
- Create child documents in the MAP document container to be used as markers on your map. Each document must have set the TV values per coordinates, i.e. latitude,longitude. Each document pagetitle will serve as a title of the marker.
- Done.
MODX Evolution CMS
- ** Find a bug?** Open an issue. Try to be as specific as possible.
- ** Have a feature request** Open an issue. Tell me why this feature would be useful, and why you and others would want it.