Hmm, I'm curious which circumstance or browser? And how? The maps are
nothing more than nested divs and images and JavaScript currently, at least
to my knowledge. In every browser I tested with (Chrome, Safari, IE7-9,
Firefox), every marker is an <img> surrounded by a <div>.
Or at least it is for me, using these parameters to instantiate a marker:
new google.maps.Marker({
map: map,
position: location,
icon: {
url: '/path/to/my/image.jpg',
scaledSize: new google.maps.Size(40, 40),
anchor: new google.maps.Point(20, 58)
},
draggable: false,
raiseOnDrag: false,
clickable: true,
shape: [0, 0, 40, 40],
title: 'spot'
});
I'm definitely interested to hear more about this if you have some time...
If that's true, it will break my current workaround for this issue.
Here's what I'm doing in my CSS:
[title="spot"] {
background: url(/my/custom/image/bg/) no-repeat;
height: 62px;
width: 48px;
}
Thanks for your help!
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/R4AI4nPktvMJ.
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-js-api-v3?hl=en.