Hello

I've got a problem with resizing a ImageMarker.
I use the following code:

var image = new google.maps.MarkerImage(icon, null, null, null, new
google.maps.Size(32, 32));

The variable icon stores the path to the icon and the marker is shown
on the map, but instead of resizing the image to 32x32 it takes the
32x32 pixels from the upper left corner of the original image.

I also tried it in different ways like:
var image = new google.maps.MarkerImage(icon, new google.maps.Size(32,
32));
or
var image = new google.maps.MarkerImage(icon, new google.maps.Size(32,
32), null, null, new google.maps.Size(32, 32));

But always the same result.

I hope you understand what I mean.
Thank you very much for any help.

Gogi

-- 
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-v3@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.

Reply via email to