On Nov 20, 9:59 pm, CroNiX wrote:
> I don't know why you would need to fire an event? I just used an
> event to demo it. These properties and methods are part of each
> marker object.
My bad. Got confused there. Thanks :)
I'm gonna go with pixelBounds and a notice of warning. The alternative
is
I don't know why you would need to fire an event? I just used an
event to demo it. These properties and methods are part of each
marker object.
Normally I imagine you would be looping through an array of markers,
getting its icon size, comparing it to the others around detecting for
overlap, etc
You are quite right, the pixelBounds object is the one you want.
However, even though it is mentioned in the documentation, it is not
documented and the objects property names are not fixed.
I have opened an issue to try to get this documented.
If you add a comment, the google maps team might docu
You are quite right, the pixelBounds object is the one you want.
However, even though it is mentioned in the documentation, it is not
documented and the objects property names are not fixed.
I have opened an issue to try to get this documented.
If you add a comment, the google maps team might docu
Hm, that is interesting indeed. However, that would mean that I'd need
an event fired for every marker. But maybe there's another way of
getting to that object/information... It's weird that they (obviously)
have the information but don't expose it... Thanks!
On Nov 19, 11:47 pm, CroNiX wrote:
>
This is an undocumented marker property I was just playing with
(pixelBounds), but it seems to be what you want...but its
undocumented...so unofficial...ugh. But the marker is supplying the
correct properties but no "official" method to retrieve them.
google.maps.event.addListener(marker, 'click'
Is it the pixel coordinates you are after for the anchor location?
This might help.
var containerHelper = null;//set in global space
//call this somewhere in your map init function to create an overlay
that you can use to translate the coordinates
function init_helper_container(){
contain