Hello,
I'm creating a map that shows various points of interest. When I click on a POI marker, the marker gets highlighted by a blue-ish rectangle (as shown below)!
How can I remove that??
Thank you very much!
Solved! Go to Solution.
You can set the highlight to false for the info window to remove the highlight symbol. Here's an example of how to do this:
map = new Map("map", { basemap: "topo", center: [-118.4, 34.08], zoom: 14 }); map.infoWindow.set("highlight", false);
Dennis,
is this in the javascript api?
Tim
I forgot to mention that! Sorry!
Yes, it's in the javascript api!
Maybe you could create a custom infowindow?
Check it here:
I will give it a try and see!
Thanks!
You can set the highlight to false for the info window to remove the highlight symbol. Here's an example of how to do this:
map = new Map("map", { basemap: "topo", center: [-118.4, 34.08], zoom: 14 }); map.infoWindow.set("highlight", false);
Where is that documented in the help?
Ken Buja the highlight property is documented on the Popup class. The Popup is the default info window for the map so if you specify map.infoWindow that's the Popup.
Thanks. It seems like that should be clarified in the documentation. The Popup page start with this statement
The Popup class is an implementation of InfoWindow that inherits from InfoWindowBase to provide additional capabilities.
I would expect that the methods and properties of the InfoWindow (such as "set") would be listed on the InfoWindow page.
Ken Buja we can do some work to clarify this on the Popup API ref but we wouldn't list it on the InfoWindow page. Popup inherits from InfoWindow so it has the Info Window methods and properties but it also has additional properties that are not available on the info window class.
Its currently confusing because the map.InfoWindow property by default is a Popup. We plan to standardize some of our terminology for the 4.0 release to help alleviate the confusion.