views:

39

answers:

1

Hello, 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.

A: 

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.