Google Maps don’t show the exact place

Home Forums Calendar Products Events Calendar PRO Google Maps don’t show the exact place

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1215714
    Juan Ignacio
    Participant

    If I put the coordinates it shows other place.

    #1216310
    Cliff
    Member

    Hi, 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.

    #1216443
    Juan Ignacio
    Participant
    #1217591
    Nico
    Member

    Hola 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,
    Nico

    #1218908
    Juan Ignacio
    Participant

    Hola,

    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,

    #1219393
    Nico
    Member

    Juan, 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,
    Nico

    #1219565
    Juan Ignacio
    Participant

    Hola 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,

    #1220570
    Nico
    Member

    Perfecto 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,
    Nico

    #1232103
    Support Droid
    Keymaster

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Google Maps don’t show the exact place’ is closed to new replies.