Thank you Susan - please forgive my lack of PHP knowledge but does this mean I can replace:
// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = "
http://www.mysite.com/images/[*this*].png";
icon.shadow = "
http://www.mysite.com/images/mapicon1_shadow.png";
icon.iconSize = new GSize(20, 35);
icon.shadowSize = new GSize(29, 18);
icon.iconAnchor = new GPoint(10, 15);
icon.infoWindowAnchor = new GPoint(5, 1);
with:
// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = "
http://www.mysite.com/images/$modx->getTemplateVar(’this’, ’docid’);.png";
icon.shadow = "
http://www.mysite.com/images/mapicon1_shadow.png";
icon.iconSize = new GSize(20, 35);
icon.shadowSize = new GSize(29, 18);
icon.iconAnchor = new GPoint(10, 15);
icon.infoWindowAnchor = new GPoint(5, 1);
and if so is ’docid’ correct as it stands?
Sorry if I’m totally wrong here!