KML Layers - Google Maps API

droplister

New member
Aug 23, 2007
1,233
21
0
NYC
Two questions about Google Maps.

I'm using a map just like this:
Google Maps JavaScript API v3 Example: KmlLayer GeoRSS

KML Layer with info from GeoRSS.

Firstly, I can't figure out how to change the blue icons to something different. I've only found how to make markers different for specified points, but I want to set the marker for all these points.


Second, I can't figure out how to make links inside the infowindow open like a target="_self" link would. Google ignores any html target attribute to avoid abuse or something?

The answer here listens for the event of someone opening the infowindow and then makes all links target="_self" using jQuery, but that didn't work. I think that was written for V2. I'm using V3.

Has anyone done this recently? I do not know javascript well at all.
 


Switched to using .kml instead of .rss because you can actually do this with .kml and you cannot change the target of links in the maps.