S
S
Sergey questions2017-09-27 17:56:40
Google Maps
Sergey questions, 2017-09-27 17:56:40

How to create a map of popular stores for the site?

Hello. The question is:
How to create a map of popular stores for the site?
A long search did not lead to a solution to the issue.
Those. I need a person to go to the page and he was shown a map of his city, and all the marked stores on the map, for example, "Eldorado", "Yulmart", etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aligatro, 2017-09-27
@Aligatro

I would form an associative array with store labels in each city and substitute the necessary one where necessary.
Get the user's city - php.net/manual/ru/function.geoip-record-by-name.php or freegeoip.net
Add many labels to the map - https://developers.google.com/maps/documentation/j.. .and https://developers.google.com/maps/documentation/j ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question