Skip Navigation

[Resolved] Displaying coordinates (lat and long) of many objekcts in Google Map

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have 2 custom fields (numbers). One is the lat and one is the long value for coordinates. The ccordinates are like this:

Field lat: 44.00502022

Field lng: 10.60029922

Every house has two fields for the coordinates. I have around 14.000 house objects. Is it possible to show all the objects on one map and how do i have to configure the view with this custom fields?

Solution:

Yes, it is possible, you can create a post view, query "house objects" posts, display a map shortcode, in the Views loop, setup the attributes "lat" and "lon" of marker shortcode as your custom fields "Field lat" and "Field lng" values, see our document:

https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-marker

lat and lon. Optional, both default to empty. Another optional source of the marker location, allows to display a marker given its latitude and longitude coordinates. Both values need to be passed.

Relevant Documentation:

https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1150568
geodata.jpg

I have 2 custom fields (numbers). One is the lat and one is the long value for coordinates. The ccordinates are like this:

Field lat: 44.00502022
Field lng: 10.60029922

Every house has two fields for the coordinates. I have around 14.000 house objects. Is it possible to show all the objects on one map and how do i have to configure the view with this custom fields?

Thanks,
Tobias

#1151089

Hello,

Yes, it is possible, you can create a post view, query "house objects" posts, display a map shortcode, in the Views loop, setup the attributes "lat" and "lon" of marker shortcode as your custom fields "Field lat" and "Field lng" values, see our document:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-marker
lat and lon. Optional, both default to empty. Another optional source of the marker location, allows to display a marker given its latitude and longitude coordinates. Both values need to be passed.

To display the map, please check this document:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/

#1152116

My issue is resolved now. Thank you!

#1152779

You are welcome

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.