Hello all, I am trying to place a multiple markers on a JS map, and I want one particular POI to stand out. I would like to use a different color marker. I have found the code to place a custom icon, but I cannot find any that match the map. Is there anywhere I can source a different color mapquest marker, or is there a way programatically to change the marker color. Below is the code I am using for a custom marker.
1 //Add Marker for root location
2 var root = new MQA.Poi({ lat: txtCityLAT, lng: txtCityLNG });
3
4 //Create Icon
5 var icon = new MQA.Icon("./marker.png", 32, 32);
6
7 /*This tells the POI to use the Icon object that was created rather than the default POI icon.*/
8 root.setIcon(icon);
9
10 /*This will add the POI to the map in the map's default shape collection.*/
11 map.addShape(root);
Thanks,
Brennan