Answer the question
In order to leave comments, you need to log in
Get a list of markers on gmap on an already loaded map?
The site uses a Google map with markers and polygons (colored areas, in the center of which is a marker that shows the name of the area). The data is loaded from the .KML file with the function
. As a result, I have a map on which the polygons are set along with markers. The task is to redefine the properties and text of the pop-up that appears when clicking on the marker. To do this, you need to redefine the function that "hung" on the marker's onClick, something like this:map.addOverlay(new GGeoXml(fileName));
GEvent.bind(marker,”click”,marker,function() {
...
});
Answer the question
In order to leave comments, you need to log in
So get to them via the DOM (in Chrome developer tools), find the distinguishing characteristics (class gmnoprint, last div), compose an appropriate selector for jQuery, for example, and reassign the action.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question