craftsmancoding / gmarker

Plugin and Snippets for MODX Revo (modx.com). Allows easy creation of maps and markers using Google Maps API.
6 stars 2 forks source link

Single Marker at address #25

Open HarveyEV opened 9 years ago

HarveyEV commented 9 years ago

I am generating the lat/lng into dynamically set tvs and rendering the map fine with gmarker. I can't figure out from the docs how would I set a single marker on a dynamically generated map? I am only setting the tvs on a single resource at render time through my snippet. I've tried passing this:

[[Gmarker? &address=[[+venue-address-1]] [[+venue-city]], [[+venue-region]] [[+venue-postal-code]]&latlng=[[latitude]],[[longitude]]&height=260&width=260]]

but I get nothing but the map. Should I set something like &resources=[[~*id]]?

fireproofsocks commented 9 years ago

Which version are you using? My head is so far into the code at the head that I can't even remember how we set up the old version...

HarveyEV commented 9 years ago

Version 1.0pl. tried passing the &resources=[[*id]] param but still no marker.

HarveyEV commented 9 years ago

Marker issue resolved but async loading in modals not working. Am currently using version form ModX repo. Will try latest.