Open Street Map: error display when 'marker_icon' is activated

Support General Open Street Map: error display when 'marker_icon' is activatedResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14246
    proyectohappyweb@gmail.com[email protected]
    Participant

    Hello, it run well the 'marker_icon' ? I have errors when I display the map.
    But if I comment the field / the line it run well the display map:

    $args_osm = array(
        'width'        => '100%',
        'height'       => '400px',
        'zoom'         => 14,
        'marker'       => true,
        //'marker_icon'  => 'https://img.icons8.com/ios/50/000000/link-filled.png', // for example
        'marker_title' => 'Click meeee',
        'info_window'  => '<h3>HOLA</h3><p>Content</p>.',
        'js_options' => array(
            //'doubleClickZoom' => false,
        //'attribution' => 'asasdffsfasfdss',
         ),
    );
    // https://docs.metabox.io/fields/osm/
    $osm_mapa = rwmb_meta( 'osm_mapa', $args_osm );

    In the plugin:
    plugins/meta-box/inc/fields/osm.php

    I see that not exist the marker_icon.

    $args = wp_parse_args(
         $args,
        array(
        'latitude'     => $latitude,
        'longitude'    => $longitude,
        'width'        => '100%',
        'height'       => '480px',
        'marker'       => true, // Display marker?
        'marker_title' => '', // Marker title, when hover.
        'info_window'  => '', // Content of info window (when click on marker). HTML allowed.
                    'js_options'   => array(),
                )
            );

    It's is ok this code?

    Thanks,
    Sergio

    #14275
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    Thanks for your feedback. It's fixed here.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.