Icon google map

Hello everybody,

I want a different icon according to the activity, for example I want an airport icon, an restaurant icon. And after display this icon to replace the current classic icon on google map.
I try this things:

>  var image = {
>         url: 'img/icon-airport.jpg',
>         size: new google.maps.Size(20, 32),
>         origin: new google.maps.Point(0,0)
>         anchor: new google.maps.Point(0, 32)
>     };

But when i see the display on my application I see nothing or just one border on my icon. I think I need to resize, but where I can make that ?

Any issue ?

thanks in advance.

Have you tried debugging your app?

For example in a desktop browser? Maybe final image location is not a relative application location. Maybe it’s relative to the location of Google Maps API js/css file?

Yes I tried. And it’s the good location. But I think I just need to resize this icon but I don’t know how to make it :confused: