Wasn't it oksi who wrote:
>
>Hello,
>
>I’m having a problem with direction markers’ info window content.
>When you click on the marker on the map or on the marker in the text
>directions div – the info window appears with no content in it.
>The interesting thing is – the snapshot of the point location appears
>in the info window when I click on some other control on the page.
>
>If somebody knows what can be done to eliminate that behavior – please
>help.
Without a link, we've no idea what you're doing wrong.
>If not, then may be you know how to disable that info window, or
>remove direction points from the map.
>I tried to leave the selected route line on the map and remove
>direction markers, as they overlay my icons – but failed to do so.
To remove the markers, tell GDirections not to display the polyline (by
setting the first argument of new GDirections to null). Use
{getPolyline:true} to tell GDirections.load() that you need the polyline
data (for efficiency, it doesn't fetch the data if it's not wanted).
Wait for the .load() to complete, then get the polyline and display it
yourself:
var gdir = new GDirections(null);
gdir.load("...", {getPolyline:true});
GEvent.addListener(gdir, "load", function() {
map.addOverlay(gdir.getPolyline());
});
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---