In Toolset Maps, I am trying to get exact location of a point on a map. I have the latitude and longitude and have entered them in the address field, but when I click "show latitude and longitude" the values are different (and Google maps is using these incorrect values to display the map). (Please see the attached screen shot). Can you please help me get the google map to display the lat and lon values that I have submitted?
Dear jonathan,
If the custom address field is created with Types plugin, you can display the lat and lon values with Types shortcode, see our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#address
Format:
Use the literals FIELD_ADDRESS, FIELD_LATITUDE and FIELD_LONGITUDE in the format to output the address
e.g. format=”FIELD_ADDRESS: FIELD_LATITUDE, FIELD_LONGITUDE”
Thank you for your reply, but it does not answer my question.
I am using Toolset Maps.
I am trying to display a marker on a map.
The address field is a custom type that I believe comes from Toolset Maps.
The problem is that I have input a value for the address that is a latitude and longitude, but when I click on "show latitude and longitude", the values that are listed there are different than the ones I entered. And, google maps is using those values to place the marker on the map and NOT the values that I entered.
I am not trying to simply display the latitude and longitude values as numbers on a page.
thanks
Sorry, for the misunderstand, you can wrap the coordinates into {}, for example:
{34.072580,-118.444970},
See screenshots: 2101.jpg