I work with the Google Places API (http://code.google.com/apis/maps/documentation/places/). I would like to use the icons that Google conveys as part of the places result set, but they look huge and off scale.
According to Googleβs docs on the Marker object, the Marker.setIcon method should automatically scale the image to fit the map.
I am using something like this:
var marker = new google.maps.Marker({ map: map, position: place.geometry.location }); marker.setIcon(place.icon);
and it works, but the image does not scale. It seems about a square of ~ 75 pixels, no matter what. I also tried writing this image to a new MarkerImage object, which I could scale, but that seems pretty complicated.
Is there any trick to displaying the icon image correctly?
julio source share