* 3. Add the &startID parameter to the snippet call pointing to the folder what has the marker documents
* example: [[GoogleMapMarker? &apikey=`ABQIA..` &startID=`52`]][/QUOTE]
where it says "&apikey" it shoud say apiKey.
Also to center the map where you want, use something like:
[[GoogleMapMarker? &apikey=`ABQIA..` &startID=`52` ¢erPos = 38, -120]]
No quotes or anything around the lat, lon values.
Didn’t take long to figure it out, but would have been immediate success with these little tidbits.
Thanks for the great work!!!
joe
That would be more on the google map api + javascript side than in the snippet side to add specific handlers. Look here for a list of available events that the api offers..
What i was thinking of was not that it would display the coordinates, but it would return the coordinates as well as the click event.
....
Perhaps the map routine could even be equiped with a listener registration so that one could tie arbitrary routine(s) to the map click event.
Very Cool! I just got my first map up in MODx.
A recommendation...
Are you saying that you don’t have Ditto installed? It is necessary for GoogleMapMarker to work.
I’ve made all steps listed in the instructions (minus ditto, but not necessary ?).
Quote from: luntereiner at Nov 02, 2006, 02:42 PMAre you saying that you don’t have Ditto installed? It is necessary for GoogleMapMarker to work.
I’ve made all steps listed in the instructions (minus ditto, but not necessary ?).

$modx->runSnippet($dittoName,array('descendentDepth' => $descendentDepth, 'sortBy' => $sortBy, 'sortDir' => $sortDir, 'summarize' => 'all', 'displayArchive' => '0', 'tpl' => $dittoChunk, 'startID' => $startID, 'showPublishedOnly' => '0', 'trunc' => '0'));
The ditto parameter names may have changed and causes the snippet to not be run correctly.
At line 318 you see:
$modx->runSnippet($dittoName,array('descendentDepth' => $descendentDepth, 'sortBy' => $sortBy, 'sortDir' => $sortDir, 'summarize' => 'all', 'displayArchive' => '0', 'tpl' => $dittoChunk, 'startID' => $startID, 'showPublishedOnly' => '0', 'trunc' => '0'));
Make sure by comparing to your Ditto snippet parameters that the names are the same.. I think that descendentDepth has atleast changed to just depth.. Maybe changing that helps. But if it doesn’t check the other parameter names too and report back please!
According to the ditto 1.02 documentation at http://modxcms.com/ditto_parameters.html
the parameters descendentDepth, sortBy sortDir, showPublishedOnly, and trunc are valid.
code for each appears to be present in the ditto 1.02 snippet code... such as:
$descendentDepth = (isset($descendentDepth))? $descendentDepth : 10;
// number of levels deep to go
I found the problem(s)... Apparently in my attempts to make fancy marker lables I had both used an RTE which intrduced a second line, and I had published the marker page. Once I got ride of the editor, removed all but one line, and un-published the page, it seems to be working agin.
Feature Request: Support for multi-line HTML in the content so that more complicated html markers do not have to be written, or re-formatted, onto a single line.
Thanks very much for both the snippet and quic responses to support requests!
joe