Custom Fields
Re-Envisioned
Support General Open Street Map: error display when 'marker_icon' is activated

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 2 months, 4 weeks ago.

  • Creator
    Topic
  • #14246
    Resolved
    proyectohappyweb@gmail.com
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #14275

    Anh Tran
    Keymaster

    Hi Sergio,

    Thanks for your feedback. It’s fixed here.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.