Hi Simon, If you create a MarkerImage object instead of using the string, you should be able to access the size now.
var markerImage = new google.maps.MarkerImage("http://code.google.com/ apis/maps/documentation/javascript/examples/images/beachflag.png"); var marker = new google.maps.Marker({map: map, position: map.getCenter(), icon: markerImage}); google.maps.event.addListener(marker, 'click', function() { alert(marker.getIcon().size); }); Will that work for you? Thanks, Susannah On Nov 29, 8:09 pm, sgiddings <mr.s.giddi...@gmail.com> wrote: > Hi Luke, > > Further comment on accessing the size property of the MarkerImage > object. > This is of use, obviously, only when a MarkerImage object has been > created. If a simple string, indicating the image to use, has been > provided to the marker, then there is no way to "officially" obtain > the size. > This is where my enhancement request comes in for officialising the > pixelBounds object - > -http://code.google.com/p/gmaps-api-issues/issues/detail?id=2860 > > This request will provide the much needed dimensions at all times. > Can this be boosted up the "to-do" list ? > > Simon > > On Nov 29, 9:59 am, sgiddings <mr.s.giddi...@gmail.com> wrote: > > > Hi Luke, > > > You state that the issue 2465 relates to accessing the size property > > of a MarkerImage object, I think you referenced the wrong issue (at > > least when clicking on the link, it does not display this). > > > Simon > > > On Nov 29, 8:11 am, Gary Little <g...@luxcentral.com> wrote: > > > > I noticed a couple of days ago that markers on maps now print w/o > > > enabling printing of background. Great news! I'd love to know how this > > > was accomplished -- some advanced CSS work I imagine. > > > > Gary > > > > On Nov 28, 9:29 pm, "Luke (Google Employee)" <lu...@google.com> wrote: > > > > > Hey everyone! > > > > > We've recently pushed out a new version of the API. See the list of > > > > changes > > > > below:http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Cha... > > > > > 3.3 November 28th, 2010 > > > > > Resolved issues: > > > > maptypeid_changed no longer fires twice (Issue 2449) > > > > The "size" property of a MarkerImage object is now accessible > > > > (Issue 2465) > > > > Marker shape references the icon rather than the sprite (Issue > > > > 2629) > > > > Panning the map on marker drag has been improved for smaller maps > > > > (Issue 2868) > > > > > Noticeable changes: > > > > Maps can now be printed without enabling printing of background > > > > images > > > > Fixed bug where draggable direction markers were draggable when > > > > 'draggable' was set to false > > > > > Please test and provide feedback. > > > > > Thanks > > > > > - Luke -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.