Google maps API cusom icon (not image)

I am using the Google Maps API. However, since I have so many icons, I try to use them with mapping technology. So I need to add the icon as a div instead of img. Is there any way to add icon to google maps like?

Thank.

+3
source share
2 answers

Yes. Put your image in a div, and then in version 2 use the GMap2.fromDivPixelToLatLng (or fromContainerPixelToLatLng) method for or in v3 from the DivPixelToLatLng (or fromContainerPixelToLatLng) from the MapCanvasProjection class.

+1
source

, , , V3 - origin MarkerImage. V2, .

0

Source: https://habr.com/ru/post/1751112/


All Articles