Answer the question
In order to leave comments, you need to log in
Is it possible to load ajax data for a marker on a Google/Yandex map on click?
The company has 6000+ partners. In the "Contacts" section, a google map with all these partners is displayed. To draw markers on the map, in addition to coordinates, information about the partner is loaded (name, phone numbers, mail, address, etc.). As a result, the JSON that contains all this data weighs more than 7 megabytes! This has a very negative effect on page loading.
The question is, is it possible to pull up data on a click on the marker via ajax? Those. lighten json, leave only partner id and coordinates. Then the user clicks on the marker, an ajax request is made to a separate php script that returns data on the partner id passed. And after the answer, the user sees pop-up information on the map, i.e. this is joxi.ru/xAeGjqBtpWqBlm .
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question