I copied Google's code, pretty much verbatim from the Map Overlays section of the documentation that is exampled here (http:// code.google.com/apis/maps/documentation/examples/icon-complex.html). My custom icon, however, is smaller than than what's in Google's example.
You can see my map here (http://auroralights.org/map_project/gmaps.php? gmap=marker-test). I'm using the AJAX libraries. My system is Ubuntu 9.10, and the same occurs in both FF 3.5.9 and Chrome 5.0.375.29 beta. I have not tested this yet in other OSs. I've also added a KML overlay. Pasted below is the six lines of code that create the marker, in case anyone has questions about that: var blackIcon = new google.maps.Icon(); blackIcon.image = "http://chart.apis.google.com/chart? chst=d_map_pin_letter&chld=C|0000FF|000000"; blackIcon.shadow = "http://chart.apis.google.com/chart? chst=d_map_pin_shadow"; blackIcon.iconSize = new google.maps.Size(12, 20); blackIcon.shadowSize = new google.maps.Size(22, 20); blackIcon.iconAnchor = new google.maps.Point(6, 20); blackIcon.shadowAnchor = new google.maps.Point(5, 1); Thanks anyone who can tell me why the icons show up differently in my map, and possibly how to change that. -- 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.
