Multiple Pin on Map

  • Posted in : cvCard WP
  • serradino
    Participant

    I need to another pin to the map.

    I need to have 2 pin 1 for location 1 the second for location 2. Is this possibile maybe doing a little edit in the code?

    I found this, may be I could add a latitude2, longitude2?

    function map( $atts, $content = “” )
    {
    extract( shortcode_atts( array( ‘latitude’ => “”,
    ‘longitude’ => “”,
    ‘zoom’ => “” ), $atts ) );

    $map = ‘<div class=”map”>’;
    $map .= ‘<div id=”map-canvas” class=”map-canvas” data-latitude=”‘ . $latitude . ‘” data-longitude=”‘ . $longitude . ‘” data-zoom=”‘ . $zoom . ‘”></div>’;
    $map .= ‘</div>’;

    return $map;
    }

    add_shortcode( ‘map’, ‘map’ );

    Also It seems that I can’t add a separate map.

    Thank you

    serkan
    Moderator

    Hi, this is not available by default, needs more further customizations, if you are not familiar to coding you may consider hiring an expert at wpkraken.io to do the job for you.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register