Its just an object specification, not an actual class. So can just do
something like


          var marker = new google.maps.Marker({
              position: myLatLng,
              map: map,
              icon: {
                  url: '/path/to/icon.png',
                  size: new google.maps.Size(10,10)
              }
          });


On Tue, Dec 4, 2012 at 1:04 PM, Pil <wolf...@gmail.com> wrote:

> The reference
>
> https://developers.google.com/maps/documentation/javascript/reference#Icon
>
> states that google.maps.MarkerImage class "is deprecated in favor of
> Icon."
>
> I'd searched a long time to find the right syntax for a marker icon
> without using MarkerImage. I'm sorry but I didn't find any example.
>
> --
> 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.
>
>

-- 
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