I am using Google maps API. However, since I have very many icons, I am trying them to use with a mapping technology. Therefore I need to add an icon as a div instead of img. Is there a way to append icon to google maps as a ?
Thank you.
Yes. Put your image in a div and then in version 2 use GMap2.fromDivPixelToLatLng (or fromContainerPixelToLatLng) method for geopositioning or in v3 fromDivPixelToLatLng (or fromContainerPixelToLatLng) from MapCanvasProjection class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With