A
A
Artem Gvozdev2019-04-04 22:36:57
Google Maps
Artem Gvozdev, 2019-04-04 22:36:57

How to make a map with many points?

How can you do this in Wordpress?
1 There is a custom post type (somehow you need to make a field with a map where you can select a point)
2 There is a page with all the points (there somehow you need to display all the posts from the custom post type but by points on the map)
3 if you click on point on a large map, then we switch to a single record from a custom record type.
Here is a type like this https://fishhunter.by/map/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2019-04-05
@azerphoenix

Hello!
I already had to do this a long time ago ... I
used ACF + Google Map.
First of all, a small digression... to use the Google Map API, you need to create an application in the google api console, verify the ownership of the domain on which the map will be, and add billing information. You are given approximately $200 of credit per month to use the card, at the end of which (which is generally unlikely) your account will be charged.
And now, for your question -
Here is the information on the custom field - https://www.advancedcustomfields.com/resources/goo...
Here is the article on adding multiple markers based on the custom post type - https://wpbeaches.com /create-multiple-marker-map-f...

K
Kirill Gorelov, 2019-04-05
@Kirill-Gorelov

We abandoned google maps because of their new pricing and switched to Yandex maps a long time ago.
Suddenly come in handy, at least a direction on how to do it.
https://gist.github.com/Kirill-Gorelov/60ff8933748...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question