Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps: How to add HTML elements to specific coordinates?

I would like to know how and if I can add standard HTML elements (div, button) to a specific set of coordinates on the map ?

For example I have a set of coordinates and I would like to attach a custom balloon notification to them

Google Maps with custom styled element attached to a set of coordinates

and when I pan away from the coordinates the element should disappear and when I pan back to them, the element should reappear.

Is it possible to do this with Google Maps ?

like image 324
Cristian Toma Avatar asked Jan 27 '10 22:01

Cristian Toma


People also ask

How do I add a marker to a Google map in HTML?

There are three steps to creating a Google map with a marker on your web page: Create an HTML page. Add a map with a marker. Get an API key.


1 Answers

you can use custom overlays - https://developers.google.com/maps/documentation/javascript/customoverlays for that

like image 138
roman Avatar answered Sep 23 '22 04:09

roman