Home › Forums › Calendar Products › Events Calendar PRO › Google Maps don’t show the exact place
- This topic has 9 replies, 5 voices, and was last updated 9 years, 3 months ago by
Juan Ignacio.
-
AuthorPosts
-
January 10, 2017 at 4:05 am #1215714
Juan Ignacio
ParticipantIf I put the coordinates it shows other place.
January 10, 2017 at 7:58 pm #1216310Cliff
MemberHi, Juan.
I’m sorry you’re experiencing this, but I cannot assist with this issue without quite a bit more detailed information.
Please provide me the following:
- a link to an event using this venue
- this venue’s wp-admin edit screen to see its details
- copy/paste the venue location information (address and/or manual coordinates) here
Thank you.
I look forward to hearing back from you soon.
January 11, 2017 at 3:48 am #1216443Juan Ignacio
ParticipantThis is the event: http://www.carmencuevas.com/blog/evento/senderismo-valle-de-lecrin-circular-melegis/
Check file.
January 12, 2017 at 11:39 am #1217591Nico
MemberHola Juan, como estas?
Cliff me pidi贸 que continue la conversaci贸n con vos, ya que hablo Espa帽ol y el no estaba entendiendo mucho lo que le estabas comentando 馃檪
Extrayendo las coordendas del screenshot que mandas, pude verificar que lo que muestra el mapa generado por nuestro plugin parece ser lo correcto. Para verificarlo entre a Google Maps y busque las coordenadas 37.18275, -3.60636 y resultado es el mismo mostrado en el mapa.
Podrias recheckearlo desde tu lado?
Saludos,
NicoJanuary 16, 2017 at 2:35 am #1218908Juan Ignacio
ParticipantHola,
He hecho algunas pruebas y cambios, y lo que deduzco es que el enlace en el evento “+Google Map” no dirige a las coordenadas establecidas sino a la direcci贸n que se ha indicado en la informaci贸n del lugar.
Saludos,
January 16, 2017 at 7:26 pm #1219393Nico
MemberJuan, gracias por las pruebas realizadas!
El link lo arma en base a la direcci贸n como bien dec铆s. El mismo puede ser modificado con el filtro ‘tribe_get_map_link_html’ en caso de que quieras que linkee a las coordenadas en vez de a la direcci贸n. Si este es el caso por favor avisame si necesitas ayuda para programarlo!
Saludos,
NicoJanuary 17, 2017 at 5:11 am #1219565Juan Ignacio
ParticipantHola Nico,
S铆, me gustar铆a que me dieras las indicaciones para pas谩rselas a mi webmaster. Entiendo que si no se ponen las coordenadas entonces tomar谩 la direcci贸n 驴correcto?
Saludos,
January 18, 2017 at 3:23 pm #1220570Nico
MemberPerfecto Juan, ning煤n problema. Para poder generar el link en el caso de que existan coordenadas para el ‘lugar’ por coordenadas y no por direcci贸n, se debe pegar este c贸digo en el archivo functions.php del tema (o tema hijo):
/* Tribe, override google map link with one build on coordinates */
function tribe_coordinates_url ( $url, $post_id ){
$coordinates = tribe_get_coordinates ( $post_id );// bail if no coordinates
if ( !$coordinates['lat'] || !$coordinates['lng'] ) return $url;//build new URL with coordinates
$url = 'https://maps.google.com/?q=' . $coordinates['lat'] . ',' . $coordinates['lng'];return $url;
}
add_filter( 'tribe_events_google_map_link', 'tribe_coordinates_url', 10, 2 );
Espero tu confirmaci贸n de que pudieron implementar el c贸digo,
Saludos,
NicoFebruary 9, 2017 at 8:35 am #1232103Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Google Maps don’t show the exact place’ is closed to new replies.
