- This topic has 7 replies, 3 voices, and was last updated 1 month, 4 weeks ago by .
-
Topic
-
Hello Anh!
I am migrating my back-end from Google Maps over to OMS, and I need to bind latitude and longitude of an address to meta fields. Also, the map is in the language of the region. Is there any way to force it to display names in English? It gets complicated when my location is in the UAE and all labels switch to the Arabic language… My source looks like this (I commented out “geo” to avoid loading the google maps autocomplete code)…Thanks for your help!
Mauro$meta_boxes[] = array ( 'title' => 'Location', 'post_types' => array ( 'top_activity', 'suggested_hotel', 'restaurant', ), 'context' => 'normal', 'priority' => 'high', 'status' => 'publish', 'autosave' => false, //'geo' => true, 'fields' => array( array( 'type' => 'text', 'name' => 'Address', 'id' => 'address', ), array( 'type' => 'text', 'name' => 'Latitude', 'id' => 'latitude', 'binding' => 'lat' // lat,lng ), array( 'type' => 'text', 'name' => 'Longitude', 'id' => 'longitude', 'binding' => 'lng' // lat,lng ), array( 'id' => 'location', 'type' => 'osm', 'name' => 'Location', 'address_field' => 'address', 'language' => 'en', ), ), 'id' => 'location', );
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.