V
V
Vitaly Kirenkov2014-10-09 13:59:06
JavaScript
Vitaly Kirenkov, 2014-10-09 13:59:06

How to customize marker and balloon on google maps?

Hello.

Please tell me or show an example where the following things are used at the same time:
1. Google map.
2. A large number of objects on it
3. Each object has its own marker
4. Each object has its own content (one content output template)
5. Content can be clicked on the marker (optional)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Facetrollex, 2014-10-09
@DeLaVega

rockmusiciansmap.com

P
Philipp, 2014-10-09
@zoonman

Here are examples of marker customization
https://developers.google.com/maps/documentation/j...
And opening a window
https://developers.google.com/maps/documentation/j...
If you need a large number of objects, then create an array with objects, and then write a function that will render the markers. Attach a click listener to the markers and dynamically create an InfoWindow object in its handler, into which you pass the necessary information from the array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question