' . __('Default values for markers added directly','lmm') . '
',
'desc' => __( 'You can also add markers directly to posts or pages without having to save them to your database previously. You just have to use the shortcode with the attributes mlat and mlon (e.g. [mapsmarker mlat="48.216038" mlon="16.378984"]).', 'lmm') . ' ' . sprintf(__('For more information please visit the Shortcode API docs at %1$s','lmm'), 'https://www.mapsmarker.com/shortcode-api') . '
' . __('Defaults values for markers added directly:','lmm'),
'type' => 'helptext'
);
$this->_settings['defaults_marker_shortcode_basemap'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __('Default basemap','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'osm_mapnik',
'choices' => array(
'osm_mapnik' => 'OpenStreetMap',
'googleLayer_roadmap' => __('Google Maps (Roadmap)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_satellite' => __('Google Maps (Satellite)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_hybrid' => __('Google Maps (Hybrid)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_terrain' => __('Google Maps (Terrain)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerial' => __('Bing Maps (Aerial)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerialwithlabels' => __('Bing Maps (Aerial+Labels)','lmm') . ' - ' . __('API key required!','lmm'). '',
'bingroad' => __('Bing Maps (Road)','lmm') . ' - ' . __('API key required!','lmm'). '',
'ogdwien_basemap' => 'basemap.at',
'ogdwien_satellite' => __('basemap.at (satellite)','lmm'),
'custom_basemap' => __('Custom basemap','lmm'),
'custom_basemap2' => __('Custom basemap 2','lmm'),
'custom_basemap3' => __('Custom basemap 3','lmm')
)
);
$this->_settings['defaults_marker_shortcode_zoom'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __( 'Zoom', 'lmm' ),
'desc' => '',
'std' => '11',
'type' => 'text'
);
$this->_settings['defaults_marker_shortcode_mapwidth'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __( 'Map width', 'lmm' ),
'desc' => '',
'std' => '640',
'type' => 'text'
);
$this->_settings['defaults_marker_shortcode_mapwidthunit'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __('Map width unit','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'px',
'choices' => array(
'px' => 'px',
'%' => '%'
)
);
$this->_settings['defaults_marker_shortcode_mapheight'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __( 'Map height', 'lmm' ) . ' (px)',
'desc' => '',
'std' => '480',
'type' => 'text'
);
$this->_settings['defaults_marker_shortcode_controlbox'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __('Controlbox for basemaps/overlays','lmm'),
'desc' => '',
'type' => 'radio',
'std' => '1',
'choices' => array(
'0' => __('hidden','lmm'),
'1' => __('collapsed','lmm'),
'2' => __('expanded','lmm')
)
);
// defaults_marker - which overlays are active by default?
$this->_settings['defaults_marker_shortcode_overlays_custom_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __('Checked overlays in control box','lmm'),
'desc' => __('Custom overlay','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_overlays_custom2_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('Custom overlay 2','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_overlays_custom3_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('Custom overlay 3','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_overlays_custom4_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('Custom overlay 4','lmm'),
'type' => 'checkbox',
'std' => 0
);
// defaults_marker shortcode - which WMS layers are active by default?
$this->_settings['defaults_marker_shortcode_wms_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => __('Checked WMS layers','lmm'),
'desc' => __('WMS 1','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms2_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 2','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms3_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 3','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms4_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 4','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms5_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 5','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms6_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 6','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms7_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 7','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms8_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 8','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms9_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 9','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['defaults_marker_shortcode_wms10_active'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_map_defaults',
'title' => '',
'desc' => __('WMS 10','lmm'),
'type' => 'checkbox',
'std' => 0
);
/*
* Default values for marker icons
*/
$this->_settings['defaults_marker_icon_helptext1'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['defaults_marker_custom_icon_url_dir'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __('Use custom icon URL and directory','lmm') . $pro_button_link,
'desc' => __('If set to yes, please be aware that the pro settings below have to be changed when you move your WordPress installation to another server for example!','lmm') . '' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '',
'type' => 'radio-pro',
'std' => 'no',
'choices' => array(
'no' => __('no','lmm'),
'yes' => __('yes','lmm'),
)
);
$this->_settings['defaults_marker_icon_url'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Custom icons URL', 'lmm' ) . $pro_button_link,
'desc' => __( 'If the option above is set to yes, icons will automatically be loaded from this URL. If the option above is set to no, the following marker icons url will be used:','lmm') . ' ' . LEAFLET_PLUGIN_ICONS_URL . '',
'std' => __('Custom directories can be set in the pro version only!','lmm'),
'type' => 'text-pro'
);
$this->_settings['defaults_marker_icon_dir'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Custom icons directory', 'lmm' ) . $pro_button_link,
'desc' => __( 'If option above is set to yes, the directory on server where icons are stored will be used (needed for backend only). If the option above is set to no, the following marker icons directory will be used:','lmm') . ' ' . LEAFLET_PLUGIN_ICONS_DIR . '',
'std' => __('Custom directories can be set in the pro version only!','lmm'),
'type' => 'text-pro'
);
$this->_settings['defaults_marker_icon'] = array(
'version' => '1.8',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Default icon', 'lmm' ),
'desc' => sprintf(__( 'If you want to use another icon than the blue pin (%s), please enter the file name of the icon in the form field - e.g. smiley_happy.png', 'lmm' ),''),
'std' => '',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_shadow_url_status'] = array(
'version' => '3.5.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => ' ' . __('Marker shadow','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'default',
'choices' => array(
'default' => __('use default shadow','lmm') . ' (' . LEAFLET_PLUGIN_URL . 'leaflet-dist/images/marker-shadow.png, ' . __('preview','lmm') . ': )',
'custom' => __('use custom shadow (please enter URL below)','lmm')
)
);
$this->_settings['defaults_marker_icon_shadow_url'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Custom marker shadow URL', 'lmm' ),
'desc' => __( 'The URL to the custom icons shadow image. If empty, no shadow image will be used (even if the option above is set to default).', 'lmm' ) . '',
'std' => LEAFLET_PLUGIN_URL . 'leaflet-dist/images/marker-shadow.png',
'type' => 'text-deletable'
);
$this->_settings['defaults_marker_icon_title'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __('Native marker tooltip','lmm') . ' ',
'desc' => __('Show marker name for the browser tooltip that appear on marker hover (tooltip is always hidden if marker name is empty).','lmm'),
'type' => 'radio',
'std' => 'show',
'choices' => array(
'show' => __('show','lmm'),
'hide' => __('hide','lmm')
)
);
$this->_settings['defaults_marker_icon_opacity'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Opacity', 'lmm' ),
'desc' => __( 'The opacity of the markers.', 'lmm' ),
'std' => '1.0',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_helptext2'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'std' => '',
'title' => '',
'desc' => '' . sprintf(__('Only change the values below if you are not using marker or shadow icons from the Map Icons Collection!','lmm'), 'https://mapicons.mapsmarker.com') . '',
'type' => 'helptext'
);
$this->_settings['defaults_marker_icon_iconsize_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Icon size', 'lmm' ) . ' (x)',
'desc' => __( 'Width of the icons in pixel', 'lmm' ),
'std' => '32',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_iconsize_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Icon size', 'lmm' ) . ' (y)',
'desc' => __( 'Height of the icons in pixel', 'lmm' ),
'std' => '37',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_iconanchor_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Icon anchor', 'lmm' ) . ' (x)',
'desc' => __( 'The x-coordinates of the "tip" of the icons (relative to its top left corner).', 'lmm' ),
'std' => '17',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_iconanchor_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Icon anchor', 'lmm' ) . ' (y)',
'desc' => __( 'The y-coordinates of the "tip" of the icons (relative to its top left corner).', 'lmm' ),
'std' => '36',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_popupanchor_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Popup anchor', 'lmm' ) . ' (x)',
'desc' => __( 'The x-coordinates of the popup anchor (relative to its top left corner)', 'lmm' ),
'std' => '-1',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_popupanchor_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Popup anchor', 'lmm' ) . ' (y)',
'desc' => __( 'The y-coordinates of the popup anchor (relative to its top left corner)', 'lmm' ),
'std' => '-32',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_shadowsize_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Shadow size', 'lmm' ) . ' (x)',
'desc' => __( 'Width of the shadow icon in pixel', 'lmm' ),
'std' => '41',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_shadowsize_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Shadow size', 'lmm' ) . ' (y)',
'desc' => __( 'Height of the shadow icon in pixel', 'lmm' ),
'std' => '41',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_shadowanchor_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Shadow anchor', 'lmm' ) . ' (x)',
'desc' => __( 'The x-coordinates of the "tip" of the shadow icon (relative to its top left corner)', 'lmm' ),
'std' => '16',
'type' => 'text'
);
$this->_settings['defaults_marker_icon_shadowanchor_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_icons',
'title' => __( 'Shadow anchor', 'lmm' ) . ' (y)',
'desc' => __( 'The y-coordinates of the "tip" of the shadow icon (relative to its top left corner)', 'lmm' ),
'std' => '43',
'type' => 'text'
);
/*
* Default values for marker popups
*/
$this->_settings['defaults_marker_popups_helptext1'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['defaults_marker_popups_maxwidth'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'maxWidth (px)',
'desc' => __( 'Maximum width of popups in pixel', 'lmm' ),
'std' => '300',
'type' => 'text'
);
$this->_settings['defaults_marker_popups_minwidth'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'minWidth (px)',
'desc' => __( 'Minimum width of popups in pixel', 'lmm' ),
'std' => '250',
'type' => 'text'
);
$this->_settings['defaults_marker_popups_maxheight'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'maxHeight (px)',
'desc' => __( 'If set, creates a scrollable container of the given height in pixel inside popups if its content exceeds it.', 'lmm' ),
'std' => '160',
'type' => 'text-deletable'
);
$this->_settings['defaults_marker_popups_image_css'] = array(
'version' => '3.8.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => __('CSS for images in popups','lmm'),
'desc' => __( 'Gets added to .leaflet-popup-content img {...} - use max-width to reduce the image width in popups automatically to the given value in pixel (only if it is wider). The height of the images gets reduced by the according ratio automatically.', 'lmm' ),
'std' => 'max-width:234px !important; height:auto; width:auto !important;',
'type' => 'text-deletable'
);
$this->_settings['defaults_marker_popups_autopan'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'autoPan',
'desc' => __('Set it to false if you do not want the map to do panning animation to fit the opened popup.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['defaults_marker_popups_closebutton'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'closeButton',
'desc' => __('Controls the presence of a close button in popups.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['defaults_marker_popups_add_markername'] = array(
'version' => 'p1.5.8',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => __('add markername to popup','lmm') . $pro_button_link,
'desc' => __('If set to true, the marker name gets added to the top of the popup automatically','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['defaults_marker_popups_autopanpadding_x'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'autoPanPadding (x)',
'desc' => __( 'The x-coordinates of the margin between popups and the edges of the map view after autopanning was performed.', 'lmm' ),
'std' => '5',
'type' => 'text'
);
$this->_settings['defaults_marker_popups_autopanpadding_y'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => 'autoPanPadding (y)',
'desc' => __( 'The y-coordinates of the margin between popups and the edges of the map view after autopanning was performed.', 'lmm' ),
'std' => '5',
'type' => 'text'
);
$this->_settings['defaults_marker_popups_center_map'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => __('center map on popup','lmm') . $pro_button_link,
'desc' => __('If set to true, the map centers on the popup center instead of the marker when a popup is opened','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['defaults_marker_popups_rise_on_hover'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_popups',
'title' => __('Open popups on mouse hover instead of mouse click','lmm') . $pro_button_link,
'desc' => __('If set to true, popups will open on mouse hover.','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
/*
* Default values for new layer maps
*/
$this->_settings['defaults_layer_helptext1'] = array(
'version' => '1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-layer_map_defaults',
'std' => '',
'title' => '',
'desc' => __( 'Will be used when creating a new layer. All values can be changed afterwards on each layer.', 'lmm') . ' ' . __('The following screenshot was taken with the advanced editor enabled:','lmm') . '
',
'type' => 'helptext'
);
$this->_settings['mlm_filter_controlbox_position'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Filter controlbox position','lmm') . $pro_button_link,
'desc' => __('The position of the filter controlbox for all maps.','lmm'),
'type' => 'radio-pro',
'std' => 'topright',
'choices' => array(
'topleft' => __('Top left of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm')
)
);
$this->_settings['mlm_filter_controlbox_batch_selection'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Batch selection buttons','lmm') . $pro_button_link . ' ',
'desc' => __('Allows you to select and deselect all layers in the filter controlbox at once.','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('show','lmm'),
'false' => __('hide','lmm')
)
);
// mlm_filter - controlbox attributes
$this->_settings['mlm_filter_controlbox_name'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Attributes to display for each layer in controlbox','lmm') . $pro_button_link,
'desc' => __('Layer name','lmm'),
'type' => 'checkbox-pro',
'std' => 1
);
$this->_settings['mlm_filter_controlbox_icon'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => '',
'desc' => __('Icon','lmm'),
'type' => 'checkbox-pro',
'std' => 1
);
$this->_settings['mlm_filter_controlbox_markercount'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => '',
'desc' => __('Marker count','lmm'),
'type' => 'checkbox-pro',
'std' => 1
);
// mlm_filter sort options
$this->_settings['mlm_filter_active_orderby'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Order active layers in controlbox by','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'markercount',
'choices' => array(
'id' => __('ID','lmm'),
'name' => __('Layer name','lmm'),
'markercount' => __('marker count')
)
);
$this->_settings['mlm_filter_active_sort_order'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Sort order for active layers in controlbox','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'DESC',
'choices' => array(
'ASC' => __('ascending','lmm'),
'DESC' => __('descending','lmm')
)
);
$this->_settings['mlm_filter_inactive_orderby'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Order inactive layers in controlbox by','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'markercount',
'choices' => array(
'id' => __('ID','lmm'),
'name' => __('Layer name','lmm'),
'markercount' => __('marker count')
)
);
$this->_settings['mlm_filter_inactive_sort_order'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-filtering',
'title' => __('Sort order for inactive layers in controlbox','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'DESC',
'choices' => array(
'ASC' => __('ascending','lmm'),
'DESC' => __('descending','lmm')
)
);
/*
* Marker clustering settings
*/
$this->_settings['clustering_helptext'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'std' => '',
'title' => '',
'desc' => '' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '' . __( 'Clustering can be enabled/disabled for each layer separately on the layer edit page. Below you will find the global settings which are valid for all layer maps with clustering enabled.', 'lmm') . '
',
'type' => 'helptext'
);
$this->_settings['clustering_zoomToBoundsOnClick'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'zoomToBoundsOnClick' . $pro_button_link,
'desc' => __('When you click a cluster it zooms to its bounds','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_showCoverageOnHover'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'showCoverageOnHover' . $pro_button_link,
'desc' => __('When you mouse over a cluster it shows the bounds of its markers:','lmm') . ' ',
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_spiderfyOnMaxZoom'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'spiderfyOnMaxZoom' . $pro_button_link,
'desc' => __('When you click a cluster at the bottom zoom level it spiderfies it so you can see all of its markers:','lmm') . ' ',
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_disableClusteringAtZoom'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'disableClusteringAtZoom' . $pro_button_link,
'desc' => __('If set (1 to 18 repectively 19 if supported), at this zoom level and below markers will not be clustered.','lmm'),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['clustering_maxClusterRadius'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'maxClusterRadius' . $pro_button_link,
'desc' => __('The maximum radius that a cluster will cover from the central marker (in pixels). Decreasing will make more smaller clusters.','lmm'),
'std' => '80',
'type' => 'text-pro'
);
$this->_settings['clustering_helptext2'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'std' => '',
'title' =>'polygonOptions' . $pro_button_link,
'desc' => sprintf(__('Options to pass when creating the L.Polygon for styling (more details)','lmm'), 'http://leafletjs.com/reference.html#path-options') . ' ',
'type' => 'helptext-twocolumn'
);
$this->_settings['clustering_polygonOptions_stroke'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => '',
'desc' => __('stroke (whether to draw stroke along the path. Set it to false to disable borders on polygons or circles)','lmm'),
'type' => 'radio-reverse-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_polygonOptions_color'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('color (stroke color)','lmm') . ' - ' . __('example','lmm') . ': ff0000',
'std' => '03f',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_polygonOptions_weight'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('weight (stroke width in pixel)','lmm') . ' - ' . __('example','lmm') . ': 5',
'std' => '5',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_polygonOptions_opacity'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('opacity (stroke opacity)','lmm') . ' - ' . __('example','lmm') . ': 0.5',
'std' => '0.5',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_polygonOptions_fill'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => '',
'desc' => __('fill (whether to fill the path with color. Set it to false to disable filling on polygons or circles)','lmm'),
'type' => 'radio-reverse-pro',
'std' => 'auto',
'choices' => array(
'auto' => __('automatic','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_polygonOptions_fillColor'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('fillColor (fill color)','lmm') . ' - ' . __('example','lmm') . ': ff0000',
'std' => '03f',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_polygonOptions_fillopacity'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => '',
'desc' => __('fillOpacity (fill opacity)','lmm') . ' - ' . __('example','lmm') . ': 0.2',
'std' => '0.2',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_polygonOptions_clickable'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => '',
'desc' => __('clickable (if false, the vector will not emit mouse events and will act as a part of the underlying map)','lmm'),
'type' => 'radio-reverse-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_helptext3'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'std' => '',
'title' => __('Cluster colors','lmm') . '' . $pro_button_link,
'desc' => __('Options to set the colors of the cluster circles','lmm') . ' - https://www.mapsmarker.com/colorpicker ',
'type' => 'helptext-twocolumn'
);
$this->_settings['clustering_color_small_text'] = array(
'version' => 'p1.3.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster small (text color)','lmm'),
'std' => '#000000',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_small'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster small (outer)','lmm'),
'std' => 'rgba(181, 226, 140, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_small_inner'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster small (inner)','lmm'),
'std' => 'rgba(110, 204, 57, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_medium'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster medium (outer)','lmm'),
'std' => 'rgba(241, 211, 87, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_medium_inner'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster medium (inner)','lmm'),
'std' => 'rgba(240, 194, 12, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_medium_text'] = array(
'version' => 'p1.3.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster medium (text color)','lmm'),
'std' => '#000000',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_large'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster large (outer)','lmm'),
'std' => 'rgba(253, 156, 115, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_large_inner'] = array(
'version' => 'p1.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster large (inner)','lmm'),
'std' => 'rgba(241, 128, 23, 0.6)',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_color_large_text'] = array(
'version' => 'p1.3.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('Cluster large (text color)','lmm'),
'std' => '#000000',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_singleMarkerMode'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'singleMarkerMode' . $pro_button_link,
'desc' => __('If set to true, overrides the icon for all added markers to make them appear as a 1 size cluster:','lmm') . ' ',
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_spiderfyDistanceMultiplier'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'spiderfyDistanceMultiplier' . $pro_button_link,
'desc' => __('Increase from 1 to increase the distance away from the center that spiderfied markers are placed. Use if you are using big marker icons:','lmm') . ' ',
'std' => '1',
'type' => 'text-pro'
);
$this->_settings['clustering_helptext4'] = array(
'version' => 'p2.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'std' => '',
'title' =>'spiderLegPolylineOptions' . $pro_button_link,
'desc' => sprintf(__('Allows you to specify PolylineOptions to style spider legs.','lmm'), 'http://leafletjs.com/reference.html#polyline-options'),
'type' => 'helptext-twocolumn'
);
$this->_settings['clustering_spiderLegPolylineOptions_color'] = array(
'version' => 'p2.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('color (stroke color)','lmm') . ' - ' . __('example','lmm') . ': 222',
'std' => '222',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_spiderLegPolylineOptions_weight'] = array(
'version' => 'p2.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('weight (stroke width in pixel)','lmm') . ' - ' . __('example','lmm') . ': 1.5',
'std' => '1.5',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_spiderLegPolylineOptions_opacity'] = array(
'version' => 'p2.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' =>'',
'desc' => __('opacity (stroke opacity)','lmm') . ' - ' . __('example','lmm') . ': 0.5',
'std' => '0.5',
'type' => 'text-reverse-pro'
);
$this->_settings['clustering_animateAddingMarkers'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'animateAddingMarkers' . $pro_button_link,
'desc' => __('If set to true then adding individual markers to the MarkerClusterGroup after it has been added to the map will add the marker and animate it in to the cluster. Defaults to false as this gives better performance when bulk adding markers.','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['clustering_animate'] = array(
'version' => 'p2.8',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-clustering',
'title' => 'animate' . $pro_button_link,
'desc' => __('Smoothly split / merge cluster children when zooming and spiderfying.','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
/*
* Interaction options
* formerly "General map settings" and moved to "Basemaps" from "Misc" tab
*/
$this->_settings['map_interaction_options_helptext'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'std' => '',
'title' => '',
'desc' => __( 'The following settings will be used for all marker and layer maps', 'lmm'),
'type' => 'helptext'
);
$this->_settings['misc_map_dragging'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'dragging',
'desc' => __('Whether the map be draggable with mouse/touch or not.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_touchzoom'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'touchZoom',
'desc' => __('Whether the map can be zoomed by touch-dragging with two fingers.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_scrollwheelzoom'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'scrollWheelZoom',
'desc' => __('Whether the map can be zoomed by using the mouse wheel.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_doubleclickzoom'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'doubleClickZoom',
'desc' => __('Whether the map can be zoomed in by double clicking on it.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_interaction_options_boxzoom'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'boxzoom',
'desc' => __('Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing shift.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_trackresize'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'trackResize',
'desc' => __('Whether the map automatically handles browser window resize to update itself.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_interaction_options_worldcopyjump'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'worldCopyJump',
'desc' => __('With this option enabled, the map tracks when you pan to another "copy" of the world and moves all overlays like markers and vector layers there.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_closepopuponclick'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'closePopupOnClick',
'desc' => __('Set it to false if you do not want popups to close when user clicks the map.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_osm_editlink'] = array(
'version' => '3.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => __('OpenStreetMap edit link','lmm'),
'desc' => __('Appends an edit link to the OpenStreetMap attribution text which allows direct edits on www.openstreetmap.org (free account required)','lmm') . ' ',
'type' => 'radio',
'std' => 'show',
'choices' => array(
'show' => __('show','lmm'),
'hide' => __('hide','lmm')
)
);
$this->_settings['misc_map_osm_editlink_editor'] = array(
'version' => '3.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => __('OpenStreetMap edit link editor','lmm'),
'desc' => __('Editor used to edit maps','lmm'),
'type' => 'radio',
'std' => 'id',
'choices' => array(
'id' => 'iD',
'potlatch2' => 'Potlatch 2',
'remote' => __('remote editor','lmm') . ' (JOSM / Merkaartor)'
)
);
$this->_settings['leaflet_hash_status'] = array(
'version' => 'p2.6',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => __('URL hashes','lmm') . $pro_button_link,
'desc' => sprintf(__('add dynamic URL hashes to web pages with maps, allowing users to easily link to specific map views. Example: %1$s','lmm'), 'https://domain/link-to-map/#11/48.2073/16.3792'),
'type' => 'radio-pro',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['map_interaction_options_tap'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'tap' . $pro_button_link,
'desc' => __('Enables mobile hacks for supporting instant taps (fixing 200ms click delay on iOS/Android) and touch holds (fired as contextmenu events).','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_interaction_options_taptolerance'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'tapTolerance' . $pro_button_link,
'desc' => __('The max number of pixels a user can shift his finger during touch for it to be considered a valid tap.','lmm'),
'std' => '15',
'type' => 'text-pro'
);
$this->_settings['map_interaction_options_bounceatzoomlimits'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'bounceAtZoomLimits' . $pro_button_link,
'desc' => __('Set it to false if you do not want the map to zoom beyond min/max zoom and then bounce back when pinch-zooming.','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
/* Fractional zoom settings */
$this->_settings['map_interaction_options_fractionalzoom'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'std' => '',
'title' => '
' . __('Fractional zoom settings','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['map_interaction_options_zoomdelta'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'zoomDelta' . $pro_button_link,
'desc' => __('This controls how many zoom levels to zoom in/out when using the zoom buttons or the +/- keys in your keyboard.','lmm'),
'std' => '1',
'type' => 'text-pro',
'sanity' => array('floatval', 'abs')
);
$this->_settings['map_interaction_options_zoomsnap'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'zoomSnap' . $pro_button_link,
'desc' => __('Forces zoom level to always be a multiple of this. If you set the value of zoomSnap to 0.5, the valid zoom levels of the map will be 0, 0.5, 1, 1.5, 2, and so on.','lmm'),
'std' => '0.1',
'type' => 'text-pro',
'sanity' => array('floatval', 'abs')
);
/* Keyboard navigation options */
$this->_settings['map_keyboard_navigation_options_helptext'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'std' => '',
'title' => '
' . __('Keyboard navigation options','lmm') . '
',
'desc' => __( 'The following settings will be used for all marker and layer maps', 'lmm'),
'type' => 'helptext'
);
$this->_settings['map_keyboard_navigation_options_keyboard'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'keyboard',
'desc' => __('Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_keyboard_navigation_options_keyboardpanoffset'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'keyboardPanOffset',
'desc' => __('Amount of pixels to pan when pressing an arrow key','lmm'),
'std' => '80',
'type' => 'text'
);
$this->_settings['map_keyboard_navigation_options_keyboardzoomoffset'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'keyboardZoomOffset',
'desc' => __( 'Number of zoom levels to change when pressing + or - key.', 'lmm' ),
'std' => '1',
'type' => 'text'
);
/* Panning inertia options */
$this->_settings['map_panning_inertia_options_helptext'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'std' => '',
'title' => '
' . __('Panning inertia options','lmm') . '
',
'desc' => __( 'The following settings will be used for all marker and layer maps', 'lmm'),
'type' => 'helptext'
);
$this->_settings['map_panning_inertia_options_inertia'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'inertia',
'desc' => __('If enabled, panning of the map will have an inertia effect where the map builds momentum while dragging and continues moving in the same direction for some time. Feels especially nice on touch devices.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_panning_inertia_options_inertiadeceleration'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'inertiaDeceleration',
'desc' => __('The rate with which the inertial movement slows down, in pixels/second','lmm'),
'std' => '3000',
'type' => 'text'
);
$this->_settings['map_panning_inertia_options_inertiamaxspeed'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-interaction',
'title' => 'inertiaMaxSpeed',
'desc' => __('Max speed of the inertial movement, in pixels/second.','lmm'),
'std' => '1500',
'type' => 'text'
);
/*
* Control options
*/
$this->_settings['map_control_options_helptext'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => '',
'desc' => __( 'The following settings will be used for all marker and layer maps', 'lmm'),
'std' => '',
'type' => 'helptext'
);
$this->_settings['misc_map_zoomcontrol'] = array(
'version' => '2.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => 'zoomControl' . ' ',
'desc' => __('Whether the zoom control is added to the map by default.','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['misc_map_zoomcontrol_position'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('zoomControl position','lmm') . $pro_button_link,
'desc' => __('The position of the zoom controlbox for all maps.','lmm'),
'type' => 'radio-pro',
'std' => 'topleft',
'choices' => array(
'topleft' => __('Top left of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm')
)
);
$this->_settings['map_fullscreen_button'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Fullscreen button','lmm') . $pro_button_link,
'desc' => __('Whether to add a button for displaying maps in fullscreen via HTML5','lmm') . ' ' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '',
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm'),
)
);
$this->_settings['map_fullscreen_button_position'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Fullscreen button position','lmm') . $pro_button_link,
'desc' => __('The position of the fullscreen button (one of the map corners).','lmm'),
'type' => 'radio-pro',
'std' => 'topleft',
'choices' => array(
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'topleft' => __('Top left of the map','lmm')
)
);
$this->_settings['map_home_button'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Home button','lmm') . $pro_button_link . ' ',
'desc' => __('Whether to add a home button to reset map view','lmm'),
'type' => 'radio-pro',
'std' => 'true-ondemand',
'choices' => array(
'true-always' => __('true','lmm'),
'true-ondemand' => __('true (only add on demand if map view is changed)','lmm'),
'false' => __('false','lmm'),
)
);
$this->_settings['map_home_button_position'] = array(
'version' => 'p2.7',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Home button position','lmm') . $pro_button_link,
'desc' => __('The position of the home button (one of the map corners).','lmm'),
'type' => 'radio-pro',
'std' => 'topleft',
'choices' => array(
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'topleft' => __('Top left of the map','lmm')
)
);
$this->_settings['basemap_control_position'] = array(
'version' => 'p4.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('basemap control position','lmm') . $pro_button_link . ' ',
'desc' => __('The position of the basemap controlbox for all maps.','lmm'),
'type' => 'radio-pro',
'std' => 'topright',
'choices' => array(
'topleft' => __('Top left of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm')
)
);
/* Scale control options */
$this->_settings['map_scale_control_helptext'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'std' => '',
'title' => '
' . __('Scale control','lmm') . '
',
'desc' => __( 'A simple scale control that shows the scale of the current center of screen in metric (m/km) and/or imperial (mi/ft) systems. The following settings will be used for all marker and layer maps.', 'lmm').'
',
'type' => 'helptext'
);
$this->_settings['map_scale_control'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Scale Control','lmm'),
'desc' => __('Whether the scale control is added to the map by default.','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['map_scale_control_position'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __('Position','lmm'),
'desc' => __('The position of the control (one of the map corners).','lmm'),
'type' => 'radio',
'std' => 'bottomleft',
'choices' => array(
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'topleft' => __('Top left of the map','lmm')
)
);
$this->_settings['map_scale_control_maxwidth'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => 'maxWidth',
'desc' => __('Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).','lmm'),
'std' => '100',
'type' => 'text'
);
$this->_settings['map_scale_control_metric'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => 'metric',
'desc' => __('Whether to show the metric scale line (m/km).','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_scale_control_imperial'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => 'imperial',
'desc' => __('Whether to show the imperial scale line (mi/ft).','lmm'),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['map_scale_control_updatewhenidle'] = array(
'version' => '2.7.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => 'updateWhenIdle',
'desc' => __('If true, the control is updated on moveend, otherwise it is always up-to-date (updated on move).','lmm'),
'type' => 'radio',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
/* KML Settings */
$this->_settings['misc_kml_helptext'] = array(
'version' => '1.8',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['misc_kml'] = array(
'version' => '1.8',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-control',
'title' => __( 'Marker names in KML', 'lmm' ),
'desc' => __( 'Choose how marker names should be displayed in KML files', 'lmm') . ' ',
'type' => 'radio',
'std' => 'show',
'choices' => array(
'show' => __('show', 'lmm'),
'hide' => __('hide', 'lmm'),
'popup' => __('put in front of popup-text', 'lmm')
)
);
/*
* Minimap settings
*/
$this->_settings['minimap_helptext'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'std' => '',
'title' => '',
'desc' => '' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '' . __( 'Add an expandable minimap to your maps which shows the same as the main map with a set zoom offset', 'lmm') . '
',
'type' => 'helptext'
);
$this->_settings['minimap_status'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => __('Status','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'hidden',
'choices' => array(
'collapsed' => __('collapsed','lmm'),
'expanded' => __('expanded','lmm'),
'hidden' => __('hidden','lmm')
)
);
$this->_settings['minimap_basemap'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => __('Basemap','lmm') . $pro_button_link,
'desc' => __('Please select basemap which should be used for minimaps','lmm'),
'type' => 'radio-pro',
'std' => 'automatic',
'choices' => array(
'automatic' => __('automatic (use basemap from main map and OpenStreetMap as fallback if unsupported)','lmm'),
'osm_mapnik_minimap' => 'OpenStreetMap',
'googleLayer_roadmap_minimap' => __('Google Maps (Roadmap)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_satellite_minimap' => __('Google Maps (Satellite)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_hybrid_minimap' => __('Google Maps (Hybrid)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_terrain_minimap' => __('Google Maps (Terrain)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerial_minimap' => __('Bing Maps (Aerial)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerialwithlabels_minimap' => __('Bing Maps (Aerial+Labels)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingroad_minimap' => __('Bing Maps (Road)','lmm') . ' - ' . __('API key required!','lmm') . ''
)
);
$this->_settings['minimap_position'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => __('Position','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'bottomright',
'choices' => array(
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'topleft' => __('Top left of the map','lmm')
)
);
$this->_settings['minimap_width'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => __('Width','lmm') . $pro_button_link,
'desc' => __('The width of the minimap in pixels.','lmm'),
'std' => '150',
'type' => 'text-pro'
);
$this->_settings['minimap_height'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => __('Height','lmm') . $pro_button_link,
'desc' => __(' The height of the minimap in pixels.','lmm'),
'std' => '150',
'type' => 'text-pro'
);
$this->_settings['minimap_collapsedWidth'] = array(
'version' => 'p2.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'collapsedWidth' . $pro_button_link,
'desc' => __('The width of the toggle marker and the minimap when collapsed, in pixels.','lmm'),
'std' => '19',
'type' => 'text-pro'
);
$this->_settings['minimap_collapsedHeight'] = array(
'version' => 'p2.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'collapsedHeight' . $pro_button_link,
'desc' => __('The height of the toggle marker and the minimap when collapsed, in pixels.','lmm'),
'std' => '19',
'type' => 'text-pro'
);
$this->_settings['minimap_zoomLevelOffset'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'zoomLevelOffset' . $pro_button_link,
'desc' => __('The offset applied to the zoom in the minimap compared to the zoom of the main map. Can be positive or negative.','lmm'),
'std' => '-5',
'type' => 'text-pro'
);
$this->_settings['minimap_zoomLevelFixed'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' =>'zoomLevelFixed' . $pro_button_link,
'desc' => __('Overrides the offset to apply a fixed zoom level to the minimap regardless of the main map zoom. Set it to any valid zoom level, if unset zoomLevelOffset is used instead.','lmm'),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['minimap_zoomAnimation'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'zoomAnimation' . $pro_button_link,
'desc' => __('Sets whether the minimap should have an animated zoom. (Will cause it to lag a bit after the movement of the main map.)','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'false' => __('false','lmm'),
'true' => __('true','lmm')
)
);
$this->_settings['minimap_toggleDisplay'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'toggleDisplay' . $pro_button_link,
'desc' => __('Sets whether the minimap should have a button to minimise it','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'false' => __('false','lmm'),
'true' => __('true','lmm')
)
);
$this->_settings['minimap_autoToggleDisplay'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-minimap',
'title' => 'autoToggleDisplay' . $pro_button_link,
'desc' => __('Sets whether the minimap should hide automatically if the parent map bounds does not fit within the minimap bounds. Especially useful when zoomLevelFixed is set.','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'false' => __('false','lmm'),
'true' => __('true','lmm')
)
);
/*
* GPX tracks settings
*/
$this->_settings['gpx_helptext'] = array(
'version' => 'p1.2',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-gpx',
'std' => '',
'title' => '',
'desc' => '' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '
',
'type' => 'helptext'
);
$this->_settings['geolocate_status'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => __('Add a geolocate button to each map','lmm') . $pro_button_link,
'desc' => sprintf(__('Recommendation: only enable this feature if your maps are accessible via https, which is required by the following browsers: %1$s. For more details, please click here','lmm'), 'Chrome 50+, Safari 10+', 'http://mapsmarker.com/geolocation-https-only'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_autostart'] = array(
'version' => 'p2.3',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => __('Autostart','lmm') . $pro_button_link,
'desc' => sprintf(__('If set to true, geolocation will start automatically on each map (backend and frontend). For infos on how to start geolocation automatically for selected maps only, please see this changelog.','lmm'), 'https://www.mapsmarker.com/v2.3p'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_icon'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => __('icon','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'icon-cross-hairs',
'choices' => array(
'icon-cross-hairs' => 'cross hairs ',
'icon-pin' => 'pin ',
'icon-arrow' => 'arrow '
)
);
$this->_settings['geolocate_position'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => __('Geolocate button position','lmm') . $pro_button_link,
'desc' => __('The position of the geolocate button (one of the map corners).','lmm'),
'type' => 'radio-pro',
'std' => 'topleft',
'choices' => array(
'topleft' => __('Top left of the map','lmm'),
'topright' => __('Top right of the map','lmm'),
'bottomleft' => __('Bottom left of the map','lmm'),
'bottomright' => __('Bottom right of the map','lmm')
)
);
$this->_settings['geolocate_drawCircle'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'drawCircle' . $pro_button_link,
'desc' => __('controls whether a circle is drawn that shows the uncertainty about the location','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_drawMarker'] = array(
'version' => 'p2.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'drawMarker' . $pro_button_link,
'desc' => esc_attr__('If set, the marker at the user´s location is drawn.','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_setView'] = array(
'version' => 'p2.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'setView' . $pro_button_link,
'desc' => esc_attr__('set the map view (zoom and pan) to the user´s location as it updates.','lmm'),
'type' => 'radio-pro',
'std' => 'untilPan',
'choices' => array(
'untilPan' => 'untilPan',
'once' => __('once','lmm'),
'always' => __('always','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_keepCurrentZoomLevel'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'keepCurrentZoomLevel' . $pro_button_link,
'desc' => esc_attr__('keep the current map zoom level when displaying the location of the user','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false (use maximum zoom level)','lmm')
)
);
$this->_settings['geolocate_clickBehavior_inView'] = array(
'version' => 'p2.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'clickBehavior inView' . $pro_button_link,
'desc' => sprintf(esc_attr__('What to do when the user clicks on the control (%1$s)','lmm'),'inView'),
'type' => 'radio-pro',
'std' => 'stop',
'choices' => array(
'stop' => __('stop','lmm'),
'setView' => 'setView'
)
);
$this->_settings['geolocate_clickBehavior_outOfView'] = array(
'version' => 'p2.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'clickBehavior outOfView' . $pro_button_link,
'desc' => sprintf(esc_attr__('What to do when the user clicks on the control (%1$s)','lmm'),'outOfView'),
'type' => 'radio-pro',
'std' => 'setView',
'choices' => array(
'stop' => __('stop','lmm'),
'setView' => 'setView'
)
);
$this->_settings['geolocate_showPopup'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'showPopup' . $pro_button_link,
'desc' => esc_attr__('display a popup when the user click on the inner marker','lmm'),
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('true','lmm'),
'false' => __('false','lmm')
)
);
$this->_settings['geolocate_units'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => __('Distance units','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'true',
'choices' => array(
'true' => __('metric (km)','lmm'),
'false' => __('imperial (miles)','lmm')
)
);
$this->_settings['geolocate_circlePadding'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'circlePadding' . $pro_button_link,
'desc' => __('padding around accuracy circle, value is passed to setBounds','lmm'),
'std' => '[0,0]',
'type' => 'text-pro'
);
$this->_settings['geolocate_circleStyle'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'circleStyle' . $pro_button_link,
'desc' => sprintf(esc_attr__('change the style of the circle around the location of the user, example: %1$s','lmm'), " 'color':'#136AEC','fillColor':'#136AEC','fillOpacity':'0.15','weight':'2','opacity':'0.5'"),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['geolocate_markerStyle'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'markerStyle' . $pro_button_link,
'desc' => sprintf(esc_attr__('change the style of the marker of the location of the user, example: %1$s','lmm'), " 'color':'#136AEC','fillColor':'#136AEC','fillOpacity':'0.15','weight':'2','opacity':'0.5','radius':'5'"),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['geolocate_followCircleStyle'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'followCircleStyle' . $pro_button_link,
'desc' => sprintf(esc_attr__('change the style of the circle around the location of the user while following, example: %1$s','lmm'), " 'color':'#136AEC','fillColor':'#136AEC','fillOpacity':'0.15','weight':'2','opacity':'0.5'"),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['geolocate_followMarkerStyle'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'followMarkerStyle' . $pro_button_link,
'desc' => sprintf(esc_attr__('change the style of the marker of the location of the user while following, example: %1$s','lmm'), " 'color':'#136AEC','fillColor':'#136AEC','fillOpacity':'0.15','weight':'4','opacity':'0.5','radius':'5'"),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['geolocate_locateOptions'] = array(
'version' => 'p1.9',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-geolocate',
'title' => 'locateOptions' . $pro_button_link,
'desc' => sprintf(__('define additional location options e.g enableHighAccuracy: true, maxZoom: 10 reference: %1$s','lmm'), 'http://leafletjs.com/reference.html#map-locate-options'),
'std' => 'watch: true',
'type' => 'text-pro'
);
/*
* QR Code settings
*/
$this->_settings['qrcode_provider_helptext'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-qr_code',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['qrcode_google_helptext'] = array(
'version' => 'p1.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-qr_code',
'std' => '',
'title' => '
' . __('Google QR settings','lmm') . '
',
'desc' => __('QR code generation for links to fullscreen maps in the map panel is disabled by default. To enable this feature, please navigate to "Default values for new marker maps" or "Default values for new layer maps" / "Visible API links in panel" and tick the checkbox next to "QR Code"','lmm'),
'type' => 'helptext'
);
$this->_settings['misc_qrcode_size'] = array(
'version' => '1.1',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-qr_code',
'title' => __( 'QR code image size', 'lmm' ),
'desc' => __( 'Width and height in pixel of QR code image for marker/layer standalone fullscreen map links', 'lmm' ) . '',
'std' => '150',
'type' => 'text'
);
/*
* Marker tooltip settings
*/
$this->_settings['marker_tooltip_helptext'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'std' => '',
'title' => '',
'desc' => __( 'Display the marker name as small texts on top of marker icons:', 'lmm') . '
',
'type' => 'helptext'
);
$this->_settings['marker_tooltip_status'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => __('Marker tooltip status','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['marker_tooltip_permanent'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => 'permanent' . $pro_button_link,
'desc' => __('Whether to show the tooltip permanently or only on mouseover','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'false' => __('false (show tooltip only on mouseover)','lmm'),
'true' => __('true','lmm')
)
);
$this->_settings['marker_tooltip_sticky'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => 'sticky' . $pro_button_link,
'desc' => __('If true, the tooltip will follow the mouse instead of being fixed at the set direction','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'false' => __('false','lmm'),
'true' => __('true','lmm')
)
);
$this->_settings['marker_tooltip_direction'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => __('Direction','lmm') . $pro_button_link,
'desc' => sprintf(__('Direction where to open the tooltip. %1$s will dynamicaly switch between right and left according to the tooltip position on the map.','lmm'), 'auto'),
'type' => 'radio-pro',
'std' => 'auto',
'choices' => array(
'auto' => 'auto - ' . sprintf(__('recommended offset (x/y): %1$s','lmm'), '0/0'),
'right' => 'right - ' . sprintf(__('recommended offset (x/y): %1$s or %2$s','lmm'), '0/0', '11/-20'),
'left' => 'left - ' . sprintf(__('recommended offset (x/y): %1$s or %2$s','lmm'), '0/0', '-13/-20'),
'top' => 'top - ' . sprintf(__('recommended offset (x/y): %1$s','lmm'), '-2/-32'),
'bottom' => 'bottom - ' . sprintf(__('recommended offset (x/y): %1$s','lmm'), '0/-1'),
'center' => 'center - ' . sprintf(__('recommended offset (x/y): %1$s','lmm'), '0/20', '/')
)
);
$this->_settings['marker_tooltip_offset_x'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => __( 'Offset (x)', 'lmm' ) . $pro_button_link,
'desc' => __('Optional offset value of the tooltip position.','lmm'),
'std' => '0',
'type' => 'text-pro'
);
$this->_settings['marker_tooltip_offset_y'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => __( 'Offset (y)', 'lmm' ) . $pro_button_link,
'desc' => __('Optional offset value of the tooltip position.','lmm'),
'std' => '0',
'type' => 'text-pro'
);
$this->_settings['marker_tooltip_interactive'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => 'interactive' . $pro_button_link,
'desc' => __('If true, the tooltip will listen to the feature events','lmm'),
'type' => 'radio-pro',
'std' => 'false',
'choices' => array(
'false' => __('false','lmm'),
'true' => __('true','lmm')
)
);
$this->_settings['marker_tooltip_opacity'] = array(
'version' => 'p3.0',
'pane' => 'mapdefaults',
'section' => 'mapdefaults-marker_tooltip',
'title' => __( 'Opacity', 'lmm' ) . $pro_button_link,
'desc' => __('Tooltip container opacity','lmm'),
'std' => '0.9',
'type' => 'text-pro'
);
/*===========================================
*
*
* pane geocoding
*
*
===========================================*/
/*
* Geocoding providers settings
*/
$this->_settings['geocoding_provider_helptext'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'std' => '',
'title' => '',
'desc' => __('Geocoding is the process of transforming a description of a location - like an address, name or place - to a location on the earth's surface.','lmm') . ' ' . sprintf(__('%1$s allows you to choose from different geocoding providers which enables you to get the best results according to your needs.','lmm'), 'Maps Marker Pro') . ' ' . sprintf(__('For a comparision of supported geocoding providers please visit %1$s','lmm'), 'https://www.mapsmarker.com/geocoding'),
'type' => 'helptext'
);
$this->_settings['geocoding_provider'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'title' => __('Main geocoding provider','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'algolia-places',
'choices' => array(
'algolia-places' => 'Algolia Places',
'photon' => 'Photon@MapsMarker',
'mapzen-search' => ' Mapzen Search (' . __('recommended','lmm') . ' - ' . __('API key required','lmm') . ')',
'mapquest-geocoding' => 'MapQuest Geocoding (' . __('API key required','lmm') . ')',
'google-geocoding' => 'Google Geocoding (' . __('API key required','lmm') . ')',
)
);
$this->_settings['geocoding_provider_fallback'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'title' => __('Fallback geocoding provider','lmm'),
'desc' => __('The fallback geocoding provider is used automatically if the main geocoding provider is unavailable','lmm'),
'type' => 'radio',
'std' => 'photon',
'choices' => array(
'algolia-places' => 'Algolia Places',
'photon' => 'Photon@MapsMarker',
'mapzen-search' => 'Mapzen Search (' . __('API key required','lmm') . ')',
'mapquest-geocoding' => 'MapQuest Geocoding (' . __('API key required','lmm') . ')',
'google-geocoding' => 'Google Geocoding (' . __('API key required','lmm') . ')',
)
);
$this->_settings['geocoding_provider_helptext2'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'std' => '',
'title' => '
' . __('Rate limit savings and performance settings','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['geocoding_typing_delay'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'title' => __('Typing interval delay','lmm'),
'desc' => __( 'Delay in milliseconds after last character input in the search field on marker and layer edit pages before a request to the geocoding provider is sent.', 'lmm' ),
'std' => '400',
'type' => 'text'
);
$this->_settings['geocoding_min_chars_search_autostart'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-general_settings',
'title' => __('Minimum characters needed to start typeahead suggestions','lmm'),
'desc' => __( 'Typeahead suggestions will only show if you type at least the specified number of characters above into the location search field on marker and layer edit pages.', 'lmm' ),
'std' => '3',
'type' => 'text'
);
/*
* Algolia Places settings
*/
$this->_settings['geocoding_algolia_helptext'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'std' => '',
'title' => '',
'desc' => '
' . sprintf(__('%2$s allows up to %3$s requests/domain/day and a maximum of %4$s requests/%5$s without registration - just select "%6$s" as preferred "Geocoding provider" in the according tab on the left to start using the service.','lmm'), 'https://www.mapsmarker.com/algolia-places/', 'Algolia Places', '1.000', '15', __('second','lmm'), 'Algolia Places'),
'type' => 'helptext'
);
$this->_settings['geocoding_algolia_helptext2'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'std' => '',
'title' => '
' . __('Authentication settings','lmm') . '
',
'desc' => sprintf(__('With free authentication up to %2$s request per domain/month are allowed. Paid plans with even higher limits are available upon request.','lmm'), 'https://www.algolia.com/users/sign_up/places', '100.000', 'https://community.algolia.com/places/contact.html'),
'type' => 'helptext'
);
$this->_settings['geocoding_algolia_appId'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => 'appId',
'desc' => __('If using the authenticated API, the Application ID to use.','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_algolia_apiKey'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => 'apiKey',
'desc' => __('If using the authenticated API, the API key to use.','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_algolia_helptext3'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'std' => '',
'title' => '
' . __('Advanced settings','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['geocoding_algolia_aroundLatLng'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => 'aroundLatLng',
'desc' => __('Force to first search around a specific latitude longitude. The option value must be provided as a string: latitude,longitude like 12.232,23.1. The default is to search around the location of the user determined via his IP address (geoip).','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_algolia_aroundLatLngViaIP'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => 'aroundLatLngViaIP',
'desc' => __( 'Whether or not to first search around the geolocation of the user found via his IP address.', 'lmm' ),
'type' => 'radio',
'std' => 'true',
'choices' => array(
'false' => __('false', 'lmm'),
'true' => __('true', 'lmm')
)
);
$this->_settings['geocoding_algolia_language'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => __('language','lmm'),
'desc' => sprintf(__('Change the default language of the results. You can pass two letters country codes (ISO 639-1).','lmm'), 'https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements') . ' ' . sprintf(__('By default the language will be retrieved from the WordPress global variable $locale = %1$s (with a fallback to %2$s if not supported)','lmm'), '' . get_locale() . '', 'en'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_algolia_countries'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-algolia',
'title' => __('countries','lmm'),
'desc' => sprintf(__('Change the countries to search in. You can pass two letters country codes (ISO 639-1). Default: Search on the whole planet.','lmm'), 'https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements'),
'std' => '',
'type' => 'text'
);
/*
* Photon@MapsMarker settings
*/
$this->_settings['geocoding_photon_helptext'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-photon',
'std' => '',
'title' => '',
'desc' => '
' . sprintf(__('%2$s allows up to %3$s requests/domain/day and a maximum of %4$s requests/%5$s without registration - just select "%6$s" as preferred "Geocoding provider" in the according tab on the left to start using the service.','lmm'), 'https://www.mapsmarker.com/photon/', 'Photon@MapsMarker', '1.000', '10', __('second','lmm'), 'Photon@MapsMarker') . ' ' . $pro_button_link . ' ' . sprintf(__('For Maps Marker Pro users up to %1$s requests/domain/day and a maximum of %2$s requests/%3$s are allowed.','lmm'), '10.000', '20', __('second','lmm')),
'type' => 'helptext'
);
$this->_settings['geocoding_photon_language'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-photon',
'title' => __('Language','lmm'),
'desc' => sprintf(__('By default the language will be retrieved from the WordPress global variable $locale = %1$s (with a fallback to %2$s if not supported)','lmm'), '' . get_locale() . '', __('English','lmm')),
'type' => 'radio',
'std' => 'automatic',
'choices' => array(
'automatic' => __('automatic','lmm'),
'en' => __('English','lmm'),
'de' => __('German','lmm'),
'fr' => __('French','lmm'),
'it' => __('Italian','lmm')
)
);
$this->_settings['geocoding_photon_helptext2'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-photon',
'std' => '',
'title' => '
' . sprintf(__('Mapzen Search is a search engine for places worldwide, powered by open data and as result our recommended geolocation provider.','lmm'), 'https://www.mapsmarker.com/mapzen-search/'),
'type' => 'helptext'
);
$this->_settings['geocoding_mapzen_search_helptext2'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapzen',
'std' => '',
'title' => '
' . __('Authentication settings','lmm') . '
',
'desc' => sprintf(__('With a free API key up to %2$s requests/%3$s and a maximum of %4$s requests/%5$s are allowed. Even higher limits are available upon request.','lmm'), 'https://mapzen.com/developers/sign_in', '30.000', __('day','lmm'), '6', __('second','lmm'), 'mailto:hello@mapzen.com?subject=Maps Marker Pro - request for higher API limits'),
'type' => 'helptext'
);
$this->_settings['geocoding_mapzen_search_api_key'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapzen',
'title' => __('API key','lmm') . ' (' . __('required','lmm') . ')',
'desc' => sprintf(__('Get your free API key at %1$s','lmm'),'https://mapzen.com/developers/'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_mapzen_search_helptext3'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapzen',
'std' => '',
'title' => '
',
'desc' => __('The type of record is referred to as its layer. All records are indexed into the layers.','lmm'),
'type' => 'helptext'
);
$this->_settings['geocoding_mapzen_search_layer'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapzen',
'title' => __('Specific layer to use','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'none',
'choices' => array(
'none' => __('none (default setting, recommended)','lmm'),
'venue' => 'venue',
'address' => 'address',
'street' => 'street
' . sprintf(__('MapQuest Geocoding API allows up to %1$s transactions/month and a maximum of %2$s requests/%3$s with a free API key. Higher quotas are available on demand - click here for more details.','lmm'), '15.000', '10', __('second','lmm'), 'https://developer.mapquest.com/plans') . '
' . __('Please note that MapQuest basemaps should also be used if MapQuest geocoding is selected!','lmm') . ' ' . sprintf(__('Click here for a tutorial on how to activate MapQuest basemaps.','lmm'), 'https://www.mapsmarker.com/mapquest-api-key'),
'type' => 'helptext'
);
$this->_settings['geocoding_mapquest_geocoding_api_key'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapquest',
'title' => __('MapQuest Geocoding API key (required)','lmm'),
'desc' => sprintf(__('For a tutorial on how to get your free MapQuest Geocoding API key, please click here','lmm'),'https://www.mapsmarker.com/mapquest-geocoding'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_mapquest_geocoding_helptext2'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapquest',
'std' => '',
'title' => '',
'desc' => '
' . __('Location Biasing','lmm') . '
',
'type' => 'helptext'
);
$this->_settings['geocoding_mapquest_geocoding_bounds_status'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-mapquest',
'title' => __('MapQuest Geocoding bounds','lmm'),
'desc' => __( 'When using batch geocoding or when ambiguous results are returned, any results within the provided bounding box will be moved to the top of the results list. Below you find an example for Vienna/Austria:', 'lmm') . '
' . __('Authentication for Google Maps APIs Premium Plan customers','lmm') . '
' . sprintf(__('If you are a Google Maps APIs Premium Plan customer, please change the authentication method above to %2$s and fill in the credentials below which you received in the welcome email for "Google Maps APIs Premium Plan"-customers from Google.','lmm'), 'https://developers.google.com/maps/premium/overview', '"client ID + signature"'),
'type' => 'helptext'
);
$this->_settings['geocoding_google_geocoding_premium_client'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => 'client ID (' . __('required','lmm') . ')',
'desc' => '',
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_premium_signature'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => 'signature (' . __('required','lmm') . ')',
'desc' => '',
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_premium_channel'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => 'channel (' . __('optional','lmm') . ')',
'desc' => '',
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_helptext3'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'std' => '',
'title' => '
' . __('Location Biasing','lmm') . '
',
'desc' => __('You may bias results to a specified circle by passing a location and a radius parameter. This instructs the Place Autocomplete service to prefer showing results within that circle. Results outside of the defined area may still be displayed. You can use the components parameter to filter results to show only those places within a specified country.','lmm') . ' ' . __('If you would prefer to have no location bias, set the location to 0,0 and radius to 20000000 (20 thousand kilometers), to encompass the entire world.','lmm'),
'type' => 'helptext'
);
$this->_settings['geocoding_google_geocoding_location'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => 'location',
'desc' => sprintf(__('The point around which you wish to retrieve place information. Must be specified as latitude,longitude (e.g. %1$s). Can be retrieved for any location by switching to advanced editor on backend for example.','lmm'), '48.216038,16.378984'),
'std' => '0,0',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_radius'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => 'radius',
'desc' => __('The distance (in meters) within which to return place results. Note that setting a radius biases results to the indicated area, but may not fully restrict results to the specified area.','lmm'),
'std' => '20000000',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_helptext4'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'std' => '',
'title' => '
' . __('Advanced settings','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['geocoding_google_geocoding_language'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => __('language','lmm'),
'desc' => sprintf(__('The language in which to return results. See the list of supported domain languages. If you set a specific language at Settings / Google / "Google language localization", that language will also be used for Google Geocoder. If no language is set, the current WordPress locale (%2$s) will be used.','lmm'), 'https://developers.google.com/maps/faq#languagesupport', substr(get_locale(),0,2)),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_region'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => __('region','lmm'),
'desc' => sprintf(__('Optional region code, specified as a ccTLD ("top-level domain") two-character value. This parameter will only influence, not fully restrict, results from the geocoder. For more information see Region Biasing.','lmm'), 'https://developers.google.com/maps/documentation/geocoding/intro#RegionCodes'),
'std' => '',
'type' => 'text'
);
$this->_settings['geocoding_google_geocoding_components'] = array(
'version' => '3.11',
'pane' => 'geocoding',
'section' => 'geocoding-google',
'title' => __('components','lmm'),
'desc' => sprintf(__('Optional component filters, separated by a pipe (|). Each component filter consists of a component:value pair and will fully restrict the results from the geocoder. For more information see Component Filtering.','lmm'), 'https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering'),
'std' => '',
'type' => 'text'
);
/*===========================================
*
*
* pane basemaps
*
*
===========================================*/
/*
* Default basemap for new markers/layers
*/
$this->_settings['default_basemap_helptext1'] = array(
'version' => '1.0',
'pane' => 'basemaps',
'section' => 'basemaps-default_basemap',
'title' => '',
'desc' => __( 'Please select the basemap which should be pre-selected as default for new markers and layers. Can be changed afterwards on each marker/layer.', 'lmm'),
'type' => 'helptext'
);
$this->_settings['standard_basemap'] = array(
'version' => '3.1',
'pane' => 'basemaps',
'section' => 'basemaps-default_basemap',
'title' => __('Default basemap','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'osm_mapnik',
'choices' => array(
'osm_mapnik' => 'OpenStreetMap',
'stamen_terrain' => __('Stamen Terrain','lmm'),
'stamen_toner' => __('Stamen Toner','lmm'),
'stamen_watercolor' => __('Stamen Watercolor','lmm'),
'googleLayer_roadmap' => __('Google Maps (Roadmap)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_satellite' => __('Google Maps (Satellite)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_hybrid' => __('Google Maps (Hybrid)','lmm') . ' - ' . __('API key required!','lmm') . '',
'googleLayer_terrain' => __('Google Maps (Terrain)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerial' => __('Bing Maps (Aerial)','lmm') . ' - ' . __('API key required!','lmm') . '',
'bingaerialwithlabels' => __('Bing Maps (Aerial+Labels)','lmm') . ' - ' . __('API key required!','lmm'). '',
'bingroad' => __('Bing Maps (Road)','lmm') . ' - ' . __('API key required!','lmm'). '',
'ogdwien_basemap' => 'basemap.at',
'ogdwien_satellite' => __('basemap.at satellite','lmm'),
'mapbox' => 'MapBox 1',
'mapbox2' => 'MapBox 2',
'mapbox3' => 'MapBox 3',
'custom_basemap' => __('Custom basemap','lmm'),
'custom_basemap2' => __('Custom basemap 2','lmm'),
'custom_basemap3' => __('Custom basemap 3','lmm'),
'empty_basemap' => __('empty basemap','lmm')
)
);
/*
* Available basemaps in controlbox
*/
$this->_settings['default_basemap_helptext3'] = array(
'version' => '1.0',
'pane' => 'basemaps',
'section' => 'basemaps-available_basemaps_controlbox',
'std' => '',
'title' => '',
'desc' => __( 'Please select the basemaps which should be available in the control box.', 'lmm').'
' . __('Why we recommend OpenStreetMap','lmm') . '
' . __('Local knowledge','lmm') . ' ' . __('OpenStreetMap emphasizes local knowledge. Contributors use aerial imagery, GPS devices, and low-tech field maps to verify that OSM is accurate and up to date.','lmm') . '
' . __('Community driven','lmm') . ' ' . sprintf(__('The community of OpenStreetMap is diverse, passionate, and growing every day. Its contributors include enthusiast mappers, GIS professionals, engineers running the OSM servers, humanitarians mapping disaster-affected areas, and many more. To learn more about the community, see the user diaries, community blogs, and the OSM Foundation website.','lmm'), 'https://www.openstreetmap.org/diary','http://blogs.openstreetmap.org/','http://www.osmfoundation.org/') . '
' . __('Open Data','lmm') . ' ' . sprintf(__('OpenStreetMap is open data: you are free to use it for any purpose as long as you credit OpenStreetMap and its contributors. See the Copyright and License page for details.','lmm'), 'https://www.openstreetmap.org/copyright') . '
' . __('Legal','lmm') . ' ' . sprintf(__('OpenStreetMap.org and many other related services are formally operated by the OpenStreetMap Foundation (OSMF) on behalf of the community. Use of all OSMF operated services is subject to the Acceptable Use Policies and Privacy Policy. Please contact the OSMF if you have licensing, copyright or other legal questions and issues.','lmm'),'https://www.openstreetmap.org','http://osmfoundation.org/','http://wiki.openstreetmap.org/wiki/Acceptable_Use_Policy','http://wiki.osmfoundation.org/wiki/Privacy_Policy','http://osmfoundation.org/Contact') . '
' . __('Partners','lmm') . ' ' . sprintf(__('OpenStreetMap.org hosting is supported by the UCL VR Centre, Imperial College London and Bytemark Hosting, and other partners.','lmm'),'http://www.bartlett.ucl.ac.uk/','http://www.imperial.ac.uk/','http://www.bytemark.co.uk/','http://wiki.openstreetmap.org/wiki/Partners') . '
' . __('How to support OpenStreetMap','lmm'). '
' . sprintf(__('In order for OpenStreetMap to keep the service free and open for everyone, we encourage you to support OpenStreetMap by making a donation.','lmm'),'https://donate.openstreetmap.org/'),
'type' => 'helptext'
);
/*
* Stamen Map settings
*/
$this->_settings['stamen_maps_helptext'] = array(
'version' => '3.11',
'pane' => 'basemaps',
'section' => 'basemaps-stamen_maps',
'std' => '',
'title' => '',
'desc' => sprintf(__( 'For over a decade, Stamen has been exploring cartography with their clients and in research.','lmm'), 'https://www.stamen.com', 'https://stamen.com/work', 'http://stamen.com/projects') . ' ' . sprintf(__('Their map tiles are made available as part of the CityTracking project, funded by the Knight Foundation, in which Stamen is building web services and open source tools to display public data in easy-to-understand, highly visual ways.', 'lmm'), 'http://citytracking.org/', 'http://www.knightfoundation.org/', 'https://github.com/Citytracking') . '
' . sprintf(__('maps.stamen.com remains free (and ad-free), serves upwards of %2$s million tiles a month, and takes them hundreds of hours, and thousands of dollars, to sustain.','lmm'), 'http://maps.stamen.com', '600') . ' ' . sprintf(__('If you find any value or joy in these maps, or if you rely on them for your work or play, please consider a donation in any amount.','lmm'),'https://stamen.com/opensource/#donate'),
'type' => 'helptext'
);
/* Stamen terrain settings*/
$this->_settings['stamen_terrain_helptext'] = array(
'version' => '3.11',
'pane' => 'basemaps',
'section' => 'basemaps-stamen_maps',
'std' => '',
'title' => '
' . __('Stamen Terrain map settings','lmm') . '
',
'desc' => sprintf(__( 'Orient yourself with terrain maps, featuring hill shading and natural vegetation colors. These maps showcase advanced labeling and linework generalization of dual-carriageway roads. Terrain was developed in collaboration with Gem Spear and Nelson Minar. Available in four flavors:', 'lmm'), '') . '
',
'desc' => sprintf(__( 'These high-contrast black and white maps were first featured in the Dotspotting project. They are perfect for data mashups and exploring river meanders and coastal zones. Available in six flavors:', 'lmm'), 'http://dotspotting.org/') . '
',
'desc' => sprintf(__( 'Reminiscent of hand drawn maps, the Stamen watercolor maps apply raster effect area washes and organic edges over a paper texture to add warm pop to any map. Watercolor was inspired by the Bicycle Portraits project. Thanks to Cassidy Curtis for his early advice. There are no related settings available - this map can be used out of the box.', 'lmm'), 'https://www.kickstarter.com/projects/bicycleportraits/bicycle-portraits-a-photographic-book-part-iii-fin', 'http://otherthings.com/blog/') . '
',
'type' => 'helptext'
);
/*
* Google Maps JavaScript API Key
*/
$this->_settings['google_maps_api_key_helptext'] = array(
'version' => '2.6',
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'std' => '',
'title' => '',
'desc' => __( 'If you want to use Google Maps, you have to register a personal Google Maps Javascript API key.','lmm') . ' ' . sprintf(__('For terms of services, pricing, usage limits and more please visit %1$s', 'lmm'), 'https://www.mapsmarker.com/google-maps-javascript-api'),
'type' => 'helptext'
);
$this->_settings['google_maps_api_status'] = array(
'version' => '3.11', //info: was p1.6
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'title' => __('Google Maps JavaScript API status','lmm'),
'desc' => __('If disabled, existing Google maps will automatically use OpenStreetMap as basemap. In addition enabled Google basemaps in the layer controlbox will also be hidden automatically.','lmm'),
'type' => 'radio',
'std' => 'disabled', //info: re-enabled via install-and-updates.php for upgrades only
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['google_maps_api_key'] = array(
'version' => '2.6',
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'title' => __( 'Google Maps API key', 'lmm'),
'desc' => __( 'Please enter your Google Maps JavaScript API key here', 'lmm' ),
'std' => '',
'type' => 'text'
);
$this->_settings['google_maps_plugin'] = array(
'version' => 'p3.0',
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'title' => __('Google Maps leaflet implementation','lmm') . $pro_button_link,
'desc' => sprintf(__('GoogleMutant plugin is recommended although not supported on Internet Explorer 10 or lower and several older browsers versions (maps will automatically switch to OpenStreetMap for those users). Current browser market share for affected browsers: about %1$s and declining steadily. If you do not want Google basemaps to automatically switch to OpenStreetMap for those outdated browsers, please activate the legacy plugin.','lmm'), '2% (02/2017)'),
'type' => 'radio-pro',
'std' => 'google_legacy',
'choices' => array(
'google_mutant' => __('GoogleMutant plugin (higher performance, active development)','lmm'),
'google_legacy' => __('legacy plugin (slower performance, no active development)','lmm')
)
);
$this->_settings['google_maps_api_deferred_loading'] = array(
'version' => 'p2.6.2',
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'title' => __('Deferred loading','lmm') . $pro_button_link,
'desc' => __('If enabled, Google Maps API scripts will only be loaded on demand as this significantly decreases the loadtime for all OpenStreetMap based maps. Disabling this feature is only recommended if you are experiencing compatibility issues with other plugins or themes.','lmm'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['google_api_deregister_scripts'] = array(
'version' => '3.10.6',
'pane' => 'basemaps',
'section' => 'basemaps-google_js_api',
'title' => __('Dequeue Google Maps API scripts by third parties','lmm'),
'desc' => __('Only enable this compatibility option if you see the admin notice that another plugin or theme also embedds the Google Maps API (which can cause maps and address search to break if that implementation does not properly send the Google API key which is mandatory since June 22nd 2016!)','lmm') . '
',
'type' => 'radio',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
/*
* Google language localization
* https://spreadsheets.google.com/spreadsheet/pub?key=0Ah0xU81penP1cDlwZHdzYWkyaERNc0xrWHNvTTA1S1E&gid=1
*/
$this->_settings['google_maps_language_localization_helptext'] = array(
'version' => '2.7.1',
'pane' => 'basemaps',
'section' => 'basemaps-google_localization',
'std' => '',
'title' => '',
'desc' => __( 'Language used when displaying textual information such as the names for controls, copyright notices, driving directions and labels on Google maps, direction links and autocomplete for address search.', 'lmm'),
'type' => 'helptext'
);
$this->_settings['google_maps_language_localization'] = array(
'version' => '2.7.1',
'pane' => 'basemaps',
'section' => 'basemaps-google_localization',
'title' => __('Default language','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'browser_setting',
'choices' => array(
'browser_setting' => __('automatic 1 (distinct language for each user - detects the users browser language setting, preferred method by Google)','lmm'),
'wordpress_setting' => sprintf(__('automatic 2 (same language for each user - using the global variable $locale = %s)','lmm'), '' . substr(get_locale(),0,2) . ''),
'ar' => __('Arabic','lmm') . ' (' . __('language code','lmm') . ': ar)',
'bg' => __('Bulgarian','lmm') . ' (' . __('language code','lmm') . ': bg)',
'ca' => __('Catalan','lmm') . ' (' . __('language code','lmm') . ': ca)',
'cs' => __('Czech','lmm') . ' (' . __('language code','lmm') . ': cs)',
'da' => __('Danish','lmm') . ' (' . __('language code','lmm') . ': da)',
'de' => __('German','lmm') . ' (' . __('language code','lmm') . ': de)',
'el' => __('Greek','lmm') . ' (' . __('language code','lmm') . ': el)',
'en' => __('English','lmm') . ' (' . __('language code','lmm') . ': en)',
'en-AU' => __('English (Australian)','lmm') . ' (' . __('language code','lmm') . ': en-AU)',
'en-GB' => __('English (Great Britain)','lmm') . ' (' . __('language code','lmm') . ': en-GB)',
'es' => __('Spanish','lmm') . ' (' . __('language code','lmm') . ': es)',
'eu' => __('Basque','lmm') . ' (' . __('language code','lmm') . ': eu)',
'fa' => __('Farsi','lmm') . ' (' . __('language code','lmm') . ': fa)',
'fi' => __('Finnish','lmm') . ' (' . __('language code','lmm') . ': fi)',
'fil' => __('Filipino','lmm') . ' (' . __('language code','lmm') . ': fil)',
'fr' => __('French','lmm') . ' (' . __('language code','lmm') . ': fr)',
'gl' => __('Galician','lmm') . ' (' . __('language code','lmm') . ': gl)',
'gu' => __('Gujarati','lmm') . ' (' . __('language code','lmm') . ': gu)',
'hi' => __('Hindi','lmm') . ' (' . __('language code','lmm') . ': hi)',
'hr' => __('Croatian','lmm') . ' (' . __('language code','lmm') . ': hr)',
'hu' => __('Hungarian','lmm') . ' (' . __('language code','lmm') . ': hu)',
'id' => __('Indonesian','lmm') . ' (' . __('language code','lmm') . ': id)',
'it' => __('Italian','lmm') . ' (' . __('language code','lmm') . ': it)',
'iw' => __('Hebrew','lmm') . ' (' . __('language code','lmm') . ': iw)',
'ja' => __('Japanese','lmm') . ' (' . __('language code','lmm') . ': ja)',
'kn' => __('Kannada','lmm') . ' (' . __('language code','lmm') . ': kn)',
'ko' => __('Korean','lmm') . ' (' . __('language code','lmm') . ': ko)',
'lt' => __('Lithuanian','lmm') . ' (' . __('language code','lmm') . ': lt)',
'lv' => __('Latvian','lmm') . ' (' . __('language code','lmm') . ': lv)',
'ml' => __('Malayalam','lmm') . ' (' . __('language code','lmm') . ': ml)',
'mr' => __('Marathi','lmm') . ' (' . __('language code','lmm') . ': mr)',
'nl' => __('Dutch','lmm') . ' (' . __('language code','lmm') . ': nl)',
'no' => __('Norwegian','lmm') . ' (' . __('language code','lmm') . ': no)',
'pl' => __('Polish','lmm') . ' (' . __('language code','lmm') . ': pl)',
'pt' => __('Portuguese','lmm') . ' (' . __('language code','lmm') . ': pt)',
'pt-BR' => __('Portuguese (Brazil)','lmm') . ' (' . __('language code','lmm') . ': pt-BR)',
'pt-PT' => __('Portuguese (Portugal)','lmm') . ' (' . __('language code','lmm') . ': pt-PT)',
'ro' => __('Romanian','lmm') . ' (' . __('language code','lmm') . ': ro)',
'ru' => __('Russian','lmm') . ' (' . __('language code','lmm') . ': ru)',
'sk' => __('Slovak','lmm') . ' (' . __('language code','lmm') . ': sk)',
'sl' => __('Slovenian','lmm') . ' (' . __('language code','lmm') . ': sl)',
'sr' => __('Serbian','lmm') . ' (' . __('language code','lmm') . ': sr)',
'sv' => __('Swedish','lmm') . ' (' . __('language code','lmm') . ': sv)',
'tl' => __('Tagalog','lmm') . ' (' . __('language code','lmm') . ': tl)',
'ta' => __('Tamil','lmm') . ' (' . __('language code','lmm') . ': ta)',
'te' => __('Telugu','lmm') . ' (' . __('language code','lmm') . ': te)',
'th' => __('Thai','lmm') . ' (' . __('language code','lmm') . ': th)',
'uk' => __('Ukrainian','lmm') . ' (' . __('language code','lmm') . ': uk)',
'vi' => __('Vietnamese','lmm') . ' (' . __('language code','lmm') . ': vi)',
'zh-CN' => __('Chinese (simplified)','lmm') . ' (' . __('language code','lmm') . ': zh-CN)',
'zh-TW' => __('Chinese (traditional)','lmm') . ' (' . __('language code','lmm') . ': zh-TW)',
)
);
/*
* Google Maps base domain
*/
$this->_settings['google_maps_base_domain_helptext'] = array(
'version' => '2.7.1',
'pane' => 'basemaps',
'section' => 'basemaps-google_base_domain',
'std' => '',
'title' => '',
'desc' => __( 'The base domain from which to load the Google Maps API. If you want to change the language of the Google Maps interface (buttons etc) only, please change the option "Google language localization" above.', 'lmm') . ' ' . __('This base domain is also used for Google Maps Directions.','lmm'),
'type' => 'helptext'
);
$this->_settings['google_maps_base_domain'] = array(
'version' => '2.7.1',
'pane' => 'basemaps',
'section' => 'basemaps-google_base_domain',
'title' => __('Google Maps base domain','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'maps.google.com',
'choices' => array(
'maps.google.com' => 'maps.google.com',
'maps.google.at' => 'maps.google.at',
'maps.google.com.au' => 'maps.google.com.au',
'maps.google.com.ba' => 'maps.google.com.ba',
'maps.google.be' => 'maps.google.be',
'maps.google.bg' => 'maps.google.bg',
'maps.google.com.br' => 'maps.google.com.br',
'maps.google.ca' => 'maps.google.ca',
'maps.google.ch' => 'maps.google.ch',
'maps.google.cm' => 'maps.google.cm',
'ditu.google.cn' => 'ditu.google.cn',
'maps.google.cz' => 'maps.google.cz',
'maps.google.de' => 'maps.google.de',
'maps.google.dk' => 'maps.google.dk',
'maps.google.es' => 'maps.google.es',
'maps.google.fi' => 'maps.google.fi',
'maps.google.fr' => 'maps.google.fr',
'maps.google.it' => 'maps.google.it',
'maps.google.lk' => 'maps.google.lk',
'maps.google.jp' => 'maps.google.jp',
'maps.google.nl' => 'maps.google.nl',
'maps.google.no' => 'maps.google.no',
'maps.google.co.nz' => 'maps.google.co.nz',
'maps.google.pl' => 'maps.google.pl',
'maps.google.ru' => 'maps.google.ru',
'maps.google.se' => 'maps.google.se',
'maps.google.tw' => 'maps.google.tw',
'maps.google.co.uk' => 'maps.google.co.uk',
'maps.google.co.ve' => 'maps.google.co.ve'
)
);
$this->_settings['google_maps_base_domain_custom'] = array(
'version' => '2.7.1',
'pane' => 'basemaps',
'section' => 'basemaps-google_base_domain',
'title' => __( 'Custom base domain', 'lmm'),
'desc' => __( 'If your localized Google Maps basedomain is not available in the list above, please enter the domain name here (without http://, for example maps.google.com). If a domain name is entered, the setting "Google Maps base domain" from above gets overwritten.', 'lmm' ),
'std' => '',
'type' => 'text'
);
/*
* Google Maps styling
*/
$this->_settings['google_styling_helptext1'] = array(
'version' => 'p1.0',
'pane' => 'basemaps',
'section' => 'basemaps-google_styling',
'std' => '',
'title' => '',
'desc' => __( 'Styled maps allow you to customize the presentation of the standard Google base maps, changing the visual display of such elements as roads, parks, and built-up areas.', 'lmm') . ' ' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . '',
'type' => 'helptext'
);
$this->_settings['google_styling_json'] = array(
'version' => 'p1.0',
'pane' => 'basemaps',
'section' => 'basemaps-google_styling',
'title' => 'JSON' . $pro_button_link,
'desc' => sprintf(__('Please enter the custom JSON array to style your Google maps (you can use the Google Styled Maps Wizard to create custom styles easily). Example for hiding roads:','lmm'), 'https://mapstyle.withgoogle.com/') . ' [ { 'featureType': 'road.highway', 'elementType': 'geometry', 'stylers': [ { 'visibility': 'off' } ] },{ 'featureType': 'road.arterial', 'stylers': [ { 'visibility': 'off' } ] },{ 'featureType': 'road.local', 'stylers': [ { 'visibility': 'off' } ] } ]',
'std' => '',
'type' => 'text-pro'
);
/*
/* Bing Maps API Key
*/
$this->_settings['bingmaps_api_key_helptext'] = array(
'version' => '2.6',
'pane' => 'basemaps',
'section' => 'basemaps-bing',
'std' => '',
'title' => '',
'desc' => __( 'An API key is required if you want to use Bing Maps as basemap for marker or layer maps. Please click on the question mark for more info on how to get your API key.', 'lmm') . ' ',
'type' => 'helptext'
);
$this->_settings['bingmaps_api_key'] = array(
'version' => '2.6',
'pane' => 'basemaps',
'section' => 'basemaps-bing',
'title' => __( 'Bing Maps API key', 'lmm' ),
'desc' => '',
'std' => '',
'type' => 'text'
);
/* Bing culture parameter - http://msdn.microsoft.com/en-us/library/hh441729.aspx */
$this->_settings['bingmaps_culture_helptext'] = array(
'version' => '2.9',
'pane' => 'basemaps',
'section' => 'basemaps-bing',
'std' => '',
'title' => '
' . sprintf(__( 'This is the reason, why the successor map basemap.at - which covers the whole of Austria and which is also available as Open Data - can be used within this plugin.', 'lmm'), 'https://www.basemap.at') . '
' . __('The basemap.at integration is disabled by default - if you enable those basemaps via "Available basemaps in controlbox", please be aware that only the area of Austria is covered!','lmm') . '',
'type' => 'helptext'
);
/*
* MapBox settings
*/
$this->_settings['mapbox_helptext'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'std' => '',
'title' => '',
'desc' => '' . sprintf(__('Warning: as Mapbox now requires to use a custom API access token, custom Mapbox basemaps will not work anymore if you registered your Mapbox account before January 2015. In case your Mapbox maps are broken, please switch to another basemap like OpenStreetMap or upgrade to Maps Marker Pro, which enables you to continue using custom Mapbox basemaps - even with accounts created after January 2015 (please also note that Mapbox might discontinue the usage of their old API for existing users in the long run too!).','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_pro_upgrade') . ' ' . sprintf(__('A tutorial on how to configure Mapbox basemaps can be found at %1$s','lmm'), 'https://www.mapsmarker.com/mapbox'),
'type' => 'helptext'
);
$this->_settings['mapbox_user'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __( 'User', 'lmm' ),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'mapbox',
'type' => 'text'
);
$this->_settings['mapbox_map'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __('Style','lmm'),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'blue-marble-topo-jul',
'type' => 'text'
);
$this->_settings['mapbox_access_token'] = array(
'version' => 'p2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __('API access token','lmm') . $pro_button_link,
'desc' => __('Access to Mapbox web services requires an access token. The access token is used to associate requests to API resources with your account.','lmm'),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['mapbox_minzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __('Minimum zoom level','lmm'),
'desc' => '',
'std' => '0',
'type' => 'text'
);
$this->_settings['mapbox_maxzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __('Maximum zoom level','lmm'),
'desc' => '',
'std' => '8',
'type' => 'text'
);
$this->_settings['mapbox_attribution'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox1',
'title' => __('Attribution','lmm'),
'desc' => __("For example","lmm"). ": Copyright ".date('Y')." <a href="http://xy.com">Provider X</a>",
'std' => "MapBox/NASA, http://www.mapbox.com",
'type' => 'text'
);
/*
* MapBox 2 settings
*/
$this->_settings['mapbox2_helptext'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'std' => '',
'title' => '',
'desc' => '' . sprintf(__('Warning: as Mapbox now requires to use a custom API access token, custom Mapbox basemaps will not work anymore if you registered your Mapbox account before January 2015. In case your Mapbox maps are broken, please switch to another basemap like OpenStreetMap or upgrade to Maps Marker Pro, which enables you to continue using custom Mapbox basemaps - even with accounts created after January 2015 (please also note that Mapbox might discontinue the usage of their old API for existing users in the long run too!).','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_pro_upgrade') . ' ' . sprintf(__('A tutorial on how to configure Mapbox basemaps can be found at %1$s','lmm'), 'https://www.mapsmarker.com/mapbox'),
'type' => 'helptext'
);
$this->_settings['mapbox2_user'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __( 'User', 'lmm' ),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'mapbox',
'type' => 'text'
);
$this->_settings['mapbox2_map'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __('Style','lmm'),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'geography-class',
'type' => 'text'
);
$this->_settings['mapbox2_access_token'] = array(
'version' => 'p2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __('API access token','lmm') . $pro_button_link,
'desc' => __('Access to Mapbox web services requires an access token. The access token is used to associate requests to API resources with your account.','lmm'),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['mapbox2_minzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __('Minimum zoom level','lmm'),
'desc' => '',
'std' => '0',
'type' => 'text'
);
$this->_settings['mapbox2_maxzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __('Maximum zoom level','lmm'),
'desc' => '',
'std' => '8',
'type' => 'text'
);
$this->_settings['mapbox2_attribution'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox2',
'title' => __('Attribution','lmm'),
'desc' => __("For example","lmm"). ": Copyright ".date('Y')." <a href="http://xy.com">Provider X</a>",
'std' => "MapBox, http://www.mapbox.com",
'type' => 'text'
);
/*
* MapBox 3 settings
*/
$this->_settings['mapbox3_helptext'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'std' => '',
'title' => '',
'desc' => '' . sprintf(__('Warning: as Mapbox now requires to use a custom API access token, custom Mapbox basemaps will not work anymore if you registered your Mapbox account before January 2015. In case your Mapbox maps are broken, please switch to another basemap like OpenStreetMap or upgrade to Maps Marker Pro, which enables you to continue using custom Mapbox basemaps - even with accounts created after January 2015 (please also note that Mapbox might discontinue the usage of their old API for existing users in the long run too!).','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_pro_upgrade') . ' ' . sprintf(__('A tutorial on how to configure Mapbox basemaps can be found at %1$s','lmm'), 'https://www.mapsmarker.com/mapbox'),
'type' => 'helptext'
);
$this->_settings['mapbox3_user'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __( 'User', 'lmm' ),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'mapbox',
'type' => 'text'
);
$this->_settings['mapbox3_map'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __('Style','lmm'),
'desc' => __('extracted from Map ID within mapbox editor, e.g.','lmm') . 'YourUsername.kpf3blj3',
'std' => 'natural-earth-1',
'type' => 'text'
);
$this->_settings['mapbox3_access_token'] = array(
'version' => 'p2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __('API access token','lmm') . $pro_button_link,
'desc' => __('Access to Mapbox web services requires an access token. The access token is used to associate requests to API resources with your account.','lmm'),
'std' => '',
'type' => 'text-pro'
);
$this->_settings['mapbox3_minzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __('Minimum zoom level','lmm'),
'desc' => '',
'std' => '0',
'type' => 'text'
);
$this->_settings['mapbox3_maxzoom'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __('Maximum zoom level','lmm'),
'desc' => '',
'std' => '6',
'type' => 'text'
);
$this->_settings['mapbox3_attribution'] = array(
'version' => '2.1',
'pane' => 'basemaps',
'section' => 'basemaps-mapbox3',
'title' => __('Attribution','lmm'),
'desc' => __("For example","lmm"). ": Copyright ".date('Y')." <a href="http://xy.com">Provider X</a>",
'std' => "MapBox, http://www.mapbox.com",
'type' => 'text'
);
/*
* Custom basemap 1 settings
*/
$this->_settings['custom_basemap_helptext'] = array(
'version' => '1.0',
'pane' => 'basemaps',
'section' => 'basemaps-custom_basemap1',
'std' => '',
'title' => '',
'desc' => sprintf(__('For a community-curated list of custom basemaps, please visit %1$s','lmm'),'mapsmarker.com/custom-basemaps') . '
' . __('There are no related settings available - the empty basemap can be used out of the box if the related checkbox at "Available basemaps in control box" has been checked.', 'lmm') . '
',
'type' => 'helptext'
);
/*===========================================
*
*
* pane overlays
*
*
===========================================*/
/*
* Available overlays for new markers/layers
*/
$this->_settings['overlays_available_helptext'] = array(
'version' => '1.0',
'pane' => 'overlays',
'section' => 'overlays-available_overlays',
'std' => '',
'title' => '',
'desc' => __( 'Please select the overlays which should be available in the control box.', 'lmm').'
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://data.wien.gv.at/daten/geo?version=1.3.0&service=WMS&request=GetMap&crs=EPSG:4326&bbox=48.10,16.16,48.34,16.59&width=1&height=1&layers=ogdwien:WCANLAGEOGD&styles=&format=application/vnd.google-earth.kml+xml'
);
$this->_settings['wms_wms_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms1',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 2 settings
*/
$this->_settings['wms_wms2_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms2_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'OGD Vienna - Elevators at stations'
);
$this->_settings['wms_wms2_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://data.wien.gv.at/daten/wms'
);
$this->_settings['wms_wms2_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => 'AUFZUGOGD'
);
$this->_settings['wms_wms2_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms2_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/gif'
);
$this->_settings['wms_wms2_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms2_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.1.1'
);
$this->_settings['wms_wms2_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: City of Vienna (http://open.wien.at)'
);
$this->_settings['wms_wms2_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms2_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms2_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms2_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms2_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms2_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms2_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://data.wien.gv.at/daten/geo?version=1.3.0&service=WMS&request=GetMap&crs=EPSG:4326&bbox=48.10,16.16,48.34,16.59&width=1&height=1&layers=ogdwien:AUFZUGOGD&styles=&format=application/vnd.google-earth.kml+xml'
);
$this->_settings['wms_wms2_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms2_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms2_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms2_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms2',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 3 settings
*/
$this->_settings['wms_wms3_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms3_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Lake bathing water monitoring'
);
$this->_settings['wms_wms3_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://water.discomap.eea.europa.eu/arcgis/services/BathingWater/BathingWater_WM/MapServer/WmsServer?',
);
$this->_settings['wms_wms3_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '24'
);
$this->_settings['wms_wms3_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms3_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms3_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms3_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms3_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms3_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://water.discomap.eea.europa.eu/arcgis/services/BathingWater/BathingWater_WM/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=3'
);
$this->_settings['wms_wms3_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms3_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms3_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms3_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms3_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms3_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Air/EPRTRDiffuseAir_Dyna_WGS84/MapServer/generatekml?docName=&l%3A7=on&layers=7&layerOptions=nonComposite'
);
$this->_settings['wms_wms3_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms3_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms3_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms3_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms3',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 4 settings
*/
$this->_settings['wms_wms4_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms4_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Agricultural areas'
);
$this->_settings['wms_wms4_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Land/CLC2006_Dyna_WM/MapServer/WMSServer'
);
$this->_settings['wms_wms4_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '10'
);
$this->_settings['wms_wms4_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms4_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms4_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms4_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms4_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms4_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms4_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Land/CLC2000_Cach_WM/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=11'
);
$this->_settings['wms_wms4_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms4_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms4_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms4_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms4_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Land/CLC2006_Dyna_WM/MapServer/generatekml?docName=&l%3A5=on&layers=5&layerOptions=nonComposite'
);
$this->_settings['wms_wms4_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms4_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms4_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms4_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms4',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 5 settings
*/
$this->_settings['wms_wms5_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms5_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Landscape fragmentation'
);
$this->_settings['wms_wms5_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Land/LandscapeFragmentation_LAEA/MapServer/WmsServer?'
);
$this->_settings['wms_wms5_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '0'
);
$this->_settings['wms_wms5_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms5_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms5_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms5_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms5_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms5_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms5_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Land/LandscapeFragmentation_LAEA/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=0'
);
$this->_settings['wms_wms5_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms5_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms5_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms5_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'no',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms5_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Noise/Noise_Dyna_LAEA/MapServer/generatekml?docName=&l%3A460=on&layers=460&layerOptions=nonComposite'
);
$this->_settings['wms_wms5_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms5_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms5_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms5_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms5',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 6 settings
*/
$this->_settings['wms_wms6_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms6_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - WaterBodies'
);
$this->_settings['wms_wms6_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Land/CLC2006_Dyna_WM/MapServer/WMSServer'
);
$this->_settings['wms_wms6_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '2'
);
$this->_settings['wms_wms6_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms6_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms6_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms6_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms6_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms6_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms6_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Land/CLC2006_Dyna_WM/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=2'
);
$this->_settings['wms_wms6_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms6_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms6_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms6_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms6_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Land/CLC2006_Dyna_WM/MapServer/generatekml?docName=&l%3A14=on&layers=14&layerOptions=nonComposite'
);
$this->_settings['wms_wms6_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms6_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms6_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms6_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms6',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 7 settings
*/
$this->_settings['wms_wms7_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms7_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Mean annual nitrates in rivers 2008'
);
$this->_settings['wms_wms7_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Water/RiverAndLakes_Dyna_WM/MapServer/WMSServer'
);
$this->_settings['wms_wms7_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '14'
);
$this->_settings['wms_wms7_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms7_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms7_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms7_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms7_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms7_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms7_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/services/Water/RiverAndLakes_Dyna_WM/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=14'
);
$this->_settings['wms_wms7_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms7_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms7_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms7_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms7_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Water/RiverAndLakes_Dyna_WM/MapServer/generatekml?docName=&l%3A9=on&layers=9&layerOptions=nonComposite'
);
$this->_settings['wms_wms7_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms7_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms7_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms7_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms7',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 8 settings
*/
$this->_settings['wms_wms8_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms8_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - NOx emissions from road transport'
);
$this->_settings['wms_wms8_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://air.discomap.eea.europa.eu/arcgis/services/Air/EPRTRDiffuseAir_Dyna_WGS84/MapServer/WmsServer?'
);
$this->_settings['wms_wms8_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '5'
);
$this->_settings['wms_wms8_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms8_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms8_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms8_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms8_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms8_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms8_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://air.discomap.eea.europa.eu/arcgis/services/Air/EPRTRDiffuseAir_Dyna_WGS84/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=12'
);
$this->_settings['wms_wms8_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms8_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms8_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms8_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms8_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/ArcGIS/rest/services/Reports2010/Reports2008_Dyna_WGS84/MapServer/generatekml?docName=&l%3A26=on&layers=26&layerOptions=nonComposite'
);
$this->_settings['wms_wms8_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms8_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms8_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms8_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms8',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 9 settings
*/
$this->_settings['wms_wms9_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms9_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Urban Outlines'
);
$this->_settings['wms_wms9_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Land/UrbanAtlas_LAEA/MapServer/WmsServer?'
);
$this->_settings['wms_wms9_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '4'
);
$this->_settings['wms_wms9_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms9_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms9_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms9_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms9_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms9_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'no',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms9_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Land/UrbanAtlas_LAEA/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=4'
);
$this->_settings['wms_wms9_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms9_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms9_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms9_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'no',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms9_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms9_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms9_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms9_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms9_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms9',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*
* WMS layer 10 settings
*/
$this->_settings['wms_wms10_helptext'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['wms_wms10_name'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Name','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'EEA - Bieogeographical Regions'
);
$this->_settings['wms_wms10_baseurl'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('baseURL','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Bio/Article17_Dyna_WM/MapServer/WmsServer?'
);
$this->_settings['wms_wms10_layers'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Layers','lmm'),
'desc' => __('(required) Comma-separated list of WMS layers to show','lmm'),
'type' => 'text',
'std' => '1'
);
$this->_settings['wms_wms10_styles'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Styles','lmm'),
'desc' => __('Comma-separated list of WMS styles','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms10_format'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Format','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'image/png'
);
$this->_settings['wms_wms10_transparent'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Transparent','lmm'),
'desc' => __('If yes, the WMS service will return images with transparency','lmm'),
'type' => 'radio',
'std' => 'TRUE',
'choices' => array(
'TRUE' => __('true','lmm'),
'FALSE' => __('false','lmm')
)
);
$this->_settings['wms_wms10_version'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Version','lmm'),
'desc' => __('Version of the WMS service to use','lmm'),
'type' => 'text',
'std' => '1.3.0'
);
$this->_settings['wms_wms10_attribution'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Attribution','lmm'),
'desc' => '',
'type' => 'text',
'std' => 'WMS: European Environment Agency'
);
$this->_settings['wms_wms10_legend_enabled'] = array(
'version' => '1.1',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Display legend?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('Yes','lmm'),
'no' => __('No','lmm')
)
);
$this->_settings['wms_wms10_legend'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Legend','lmm'),
'desc' => __('URL of image which gets show when hovering the text "(Legend)" next to WMS attribution text','lmm'),
'type' => 'text',
'std' => 'https://discomap.eea.europa.eu/arcgis/services/Bio/Article17_Dyna_WM/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=2'
);
$this->_settings['wms_wms10_subdomains_enabled'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Support for subdomains?','lmm'),
'desc' => __('Will replace {s} from base url if available','lmm'),
'type' => 'radio',
'std' => 'no',
'choices' => array(
'no' => __('No','lmm'),
'yes' => __('Yes (please enter subdomains in next form field)','lmm')
)
);
$this->_settings['wms_wms10_subdomains_names'] = array(
'version' => '1.0',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __( 'Subdomain names', 'lmm' ),
'desc' => __('For example','lmm'). ": "subdomain1", "subdomain2", "subdomain3"",
'std' => '"subdomain1", "subdomain2", "subdomain3"',
'type' => 'text'
);
$this->_settings['wms_wms10_kml_helptext'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'std' => '',
'title' => '
' . __('KML settings','lmm') . '
',
'desc' => __('If the WMS server supports KML output of the WMS layer, the settings below will be used when a marker or layer map with this active WMS layer is exported as KML.','lmm'),
'type' => 'helptext'
);
$this->_settings['wms_wms10_kml_support'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => __('Does the WMS server support KML output?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'no',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm')
)
);
$this->_settings['wms_wms10_kml_href'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => 'href',
'desc' => __('http-address of the KML-webservice of the WMS layer','lmm'),
'type' => 'text',
'std' => ''
);
$this->_settings['wms_wms10_kml_refreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => 'refreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'onChange',
'choices' => array(
'onChange' => __('onChange (refresh when the file is loaded and whenever the Link parameters change)','lmm'),
'onInterval' => __('onInterval (refresh every n seconds (specified in refreshInterval)','lmm'),
'onExpire' => __('onExpire (refresh the file when the expiration time is reached)','lmm'),
'onStop' => __('onStop (after camera movement stops)','lmm')
)
);
$this->_settings['wms_wms10_kml_refreshInterval'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => 'refreshInterval',
'desc' => __('Indicates to refresh the file every n seconds','lmm'),
'type' => 'text',
'std' => '30'
);
$this->_settings['wms_wms10_kml_viewRefreshMode'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => 'viewrefreshMode',
'desc' => '',
'type' => 'radio',
'std' => 'never',
'choices' => array(
'never' => __('never (ignore changes in the view)','lmm'),
'onStop' => __('onStop (refresh the file n seconds after movement stops, where n is specified in viewRefreshTime)','lmm'),
'onRequest' => __('onRequest (refresh the file only when the user explicitly requests it)','lmm')
)
);
$this->_settings['wms_wms10_kml_viewRefreshTime'] = array(
'version' => '1.4.3',
'pane' => 'wms',
'section' => 'wms-wms10',
'title' => 'viewRefreshTime',
'desc' => __('After camera movement stops, specifies the number of seconds to wait before refreshing the view (is used when viewRefreshMode is set to onStop)','lmm'),
'type' => 'text',
'std' => '1'
);
/*===========================================
*
*
* pane Directions
*
*
===========================================*/
/*
* Directions General
*/
$this->_settings['directions_general_helptext1'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-general_settings',
'std' => '',
'title' => '',
'desc' => __( 'Please select your prefered directions provider. This setting will be used for the directions link in the panel on top of marker maps and for the action panel which gets attached to the popup text on each marker if enabled.', 'lmm'),
'type' => 'helptext'
);
$this->_settings['directions_provider'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-general_settings',
'title' => __('Use the following directions provider','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'googlemaps',
'choices' => array(
'googlemaps' => __('Google Maps (worldwide)','lmm') . ' - Demo',
'yours' => __('yournavigation.org (based on OpenStreetMap, worldwide)','lmm') . ' - Demo',
'ors' => __('openrouteservice.org (based on OpenStreetMap, Europe only)','lmm') . ' - Demo',
'bingmaps' => __('Bing Maps (worldwide)','lmm') . ' - Demo'
)
);
$this->_settings['directions_popuptext_panel'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-general_settings',
'title' => __('Attach directions panel with address to popup text on each marker','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'yes',
'choices' => array(
'yes' => __('yes','lmm'),
'no' => __('no','lmm') )
);
$this->_settings['directions_general_helptext2'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-general_settings',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
/*
* Directions Google Maps
*/
$this->_settings['directions_googlemaps_helptext1'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => '',
'desc' => '',
'type' => 'helptext',
'std' => ''
);
$this->_settings['directions_googlemaps_map_type'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => __('Map type','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'm',
'choices' => array(
'm' => __('Map','lmm'),
'k' => __('Satellite','lmm'),
'h' => __('Hybrid','lmm'),
'p' => __('Terrain','lmm')
)
);
$this->_settings['directions_googlemaps_traffic'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => __('Show traffic layer?','lmm'),
'desc' => '',
'type' => 'radio',
'std' => '1',
'choices' => array(
'1' => __('yes','lmm'),
'0' => __('no','lmm')
)
);
$this->_settings['directions_googlemaps_distance_units'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => __('Distance units','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'ptk',
'choices' => array(
'ptk' => __('metric (km)','lmm'),
'ptm' => __('imperial (miles)','lmm')
)
);
$this->_settings['directions_googlemaps_route_type_highways'] = array(
'version' => '1.0',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => __('Route type','lmm'),
'desc' => __('Avoid highways','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['directions_googlemaps_route_type_tolls'] = array(
'version' => '1.0',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => '',
'desc' => __('Avoid tolls','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['directions_googlemaps_route_type_public_transport'] = array(
'version' => '1.0',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => '',
'desc' => __('Public transport (works only in some areas)','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['directions_googlemaps_route_type_walking'] = array(
'version' => '1.0',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => '',
'desc' => __('Walking directions','lmm'),
'type' => 'checkbox',
'std' => 0
);
$this->_settings['directions_googlemaps_overview_map'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-google_maps',
'title' => __('Overview map','lmm'),
'desc' => '',
'type' => 'radio',
'std' => '0',
'choices' => array(
'0' => __('hidden','lmm'),
'1' => __('visible','lmm')
)
);
/*
* yournavigation.org
*/
$this->_settings['directions_yours_helptext1'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-yournavigation',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['directions_yours_type_of_transport'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-yournavigation',
'title' => __('Type of transport','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'motorcar',
'choices' => array(
'motorcar' => __('Motorcar','lmm'),
'bicycle' => __('Bicycle','lmm'),
'foot' => __('Foot','lmm')
)
);
$this->_settings['directions_yours_route_type'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-yournavigation',
'title' => __('Route type','lmm'),
'desc' => '',
'type' => 'radio',
'std' => '1',
'choices' => array(
'0' => __('fastest route','lmm'),
'1' => __('shortest route','lmm')
)
);
$this->_settings['directions_yours_layer'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-yournavigation',
'title' => __('Gosmore instance to calculate the route','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'mapnik',
'choices' => array(
'mapnik' => __('mapnik (for normal routing using car, bicycle or foot)','lmm'),
'cn' => __('cn (for using bicycle routing using cycle route networks only)','lmm')
)
);
/*
* openrouteservice.org
*/
$this->_settings['directions_ors_helptext1'] = array(
'version' => '1.4',
'pane' => 'directions',
'section' => 'directions-openrouteservice',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['directions_ors_routeWeigh'] = array(
'version' => '3.10.1',
'pane' => 'directions',
'section' => 'directions-openrouteservice',
'title' => 'routeWeigh',
'desc' => __('weighting method of routing','lmm'),
'type' => 'radio',
'std' => 'Fastest',
'choices' => array(
'Fastest' => __('Fastest','lmm'),
'Shortest' => __('Shortest','lmm'),
'Recommended' => __('Recommended','lmm')
)
);
$this->_settings['directions_ors_routeOpt'] = array(
'version' => '3.10.1',
'pane' => 'directions',
'section' => 'directions-openrouteservice',
'title' => 'routeOpt',
'desc' => __('preferred route profile','lmm'),
'type' => 'radio',
'std' => 'Car',
'choices' => array(
'Car' => __('Car','lmm'),
'Bicycle' => __('Bicycle','lmm'),
'Pedestrian' => __('Pedestrian','lmm'),
'HeavyVehicle' => __('HeavyVehicle','lmm')
)
);
$this->_settings['directions_ors_layer'] = array(
'version' => '3.11', //was 3.10.1
'pane' => 'directions',
'section' => 'directions-openrouteservice',
'title' => __('default background layer','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'B000',
'choices' => array(
'B000' => 'OpenMapsurfer',
'0B000' => 'OSM-WMS worldwide',
'00B00' => 'OSM Mapnik',
'0000B' => 'Stamen Map',
'000B0' => 'OpenCycleMap'
)
);
/*===========================================
*
*
* pane miscellaneous
*
*
===========================================*/
/*
* General settings
*/
$this->_settings['misc_general_helptext'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'misc-general_settings',
'std' => '',
'title' => '',
'desc' => '', //empty for not breaking settings layout
'type' => 'helptext'
);
$this->_settings['affiliate_id'] = array(
'version' => '3.6.4',
'pane' => 'misc',
'section' => 'misc-general_settings',
'title' => __( 'Affiliate ID', 'lmm' ),
'desc' => __( 'Enter your affiliate ID to replace the default MapsMarker.com-backlink on all maps with your personal affiliate link - enabling you to receive commissions up to 50% from sales of the pro version.', 'lmm' ) . ' ' . __('Click here for more infos on the Maps Marker affiliate program and how to get your affiliate ID','lmm') . '',
'std' => '',
'type' => 'text'
);
$this->_settings['misc_betatest'] = array(
'version' => 'p1.1',
'pane' => 'misc',
'section' => 'misc-general_settings',
'title' => __('Beta testing','lmm'). $pro_button_link,
'desc' => __('Set to enabled if you want to easily upgrade to beta releases.','lmm') . ' ' . __('Warning: not recommended on production sites - use on your own risk!','lmm') . '',
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'disabled' => __('disabled','lmm'),
'enabled' => __('enabled','lmm')
)
);
$this->_settings['misc_app_icon'] = array(
'version' => 'p4.0',
'pane' => 'misc',
'section' => 'misc-general_settings',
'title' => __('App icon URL','lmm') . $pro_button_link,
'desc' => __('Will be used if a link to a fullscreen map gets added to homescreen on mobiles. If empty, Maps Marker Pro logo will be used','lmm') . ' (188x188px)',
'std' => '',
'type' => 'text-pro',
);
$this->_settings['misc_general_helptext2'] = array(
'version' => '3.11',
'pane' => 'misc',
'section' => 'misc-general_settings',
'std' => '',
'title' => '',
'desc' => '
' . __('Whitelabel settings','lmm') . '
',
'type' => 'helptext'
);
$this->_settings['misc_whitelabel_backend'] = array(
'version' => 'p1.2',
'pane' => 'misc',
'section' => 'misc-general_settings',
'title' => __('Whitelabel backend','lmm'). $pro_button_link,
'desc' => __('Set to enabled if you want to remove all backlinks and logos on backend as well as making the pages and menu entries for Tools, Settings, Support, License visible to admins only (user capability activate_plugins).','lmm'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'disabled' => __('disabled','lmm'),
'enabled' => __('enabled','lmm')
)
);
$this->_settings['misc_backlink'] = array(
'version' => 'p1.0',
'pane' => 'misc',
'section' => 'misc-general_settings',
'title' => __('MapsMarker.com backlinks','lmm') . $pro_button_link,
'desc' => __('Option to hide backlinks to Mapsmarker.com on maps and screen overlays in KML files.','lmm') . '' . __('This feature is available in the pro version only! Click here to find out how you can start a free 30-day-trial easily','lmm') . ' ',
'type' => 'radio-pro',
'std' => 'show',
'choices' => array(
'show' => __('show','lmm'),
'hide' => __('hide','lmm')
)
);
/*
* Interface language settings
*/
$this->_settings['misc_language_helptext'] = array(
'version' => '2.4',
'pane' => 'misc',
'section' => 'misc-interface_language',
'std' => '',
'title' => '',
'desc' => __('The interface language to use on backend and/or on maps on frontend. Please note that the language for Google Maps and Bing maps can be set separately via the according basemap settings section.','lmm') . '
',
'desc' => __( 'Please select order by and sort order for "List all layers" page', 'lmm'),
'type' => 'helptext'
);
$this->_settings['misc_layer_listing_sort_order_by'] = array(
'version' => '2.3',
'pane' => 'misc',
'section' => 'misc-list_all_layers',
'title' => __('Order list of markers by','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'id',
'choices' => array(
'id' => 'ID',
'name' => __('layer name','lmm'),
'createdon' => __('created on','lmm'),
'createdby' => __('created by','lmm'),
'updatedon' => __('updated on','lmm'),
'updatedby' => __('updated by','lmm')
)
);
$this->_settings['misc_layer_listing_sort_sort_order'] = array(
'version' => '2.3',
'pane' => 'misc',
'section' => 'misc-list_all_layers',
'title' => __('Sort order','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'ASC',
'choices' => array(
'ASC' => __('ascending','lmm'),
'DESC' => __('descending','lmm')
)
);
/*
* Web API settings
*/
$this->_settings['api_helptext'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'std' => '',
'title' => '',
'desc' => __('Use the Web API to access a Maps Marker Pro install either from JavaScript in a plugin or theme, or from an external client such as a desktop, mobile or web app.','lmm') . ' ' . sprintf(__('For more information on how to use the MapsMarker API, please visit the API docs on mapsmarker.com','lmm'), 'https://www.mapsmarker.com/mapsmarker-api') . '
' . sprintf(__('For more information on all available APIs in Maps Marker Pro please click here.','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_apis'),
'type' => 'helptext'
);
$this->_settings['api_status'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('API status','lmm'),
'desc' => '',
'type' => 'radio',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['api_default_format'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('API default format','lmm'),
'desc' => __('Default output format (can be overwritten by parameter format on each API request)','lmm'),
'type' => 'radio',
'std' => 'json',
'choices' => array(
'json' => 'JSON',
'xml' => 'XML'
)
);
$this->_settings['api_json_callback'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('JSONP callback function name', 'lmm'),
'desc' => sprintf(__('Used for JSON format only, allows to overcome the same origin policy (can be overwritten by parameter callback on each API request)','lmm'), 'http://en.wikipedia.org/wiki/JSONP'),
'std' => 'jsonp',
'type' => 'text'
);
$this->_settings['api_helptext4'] = array(
'version' => '3.8.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'std' => '',
'title' => '
' . __('Authentication','lmm') . '
',
'desc' => sprintf(__('You will find a API URL generator and API URL tester in the tools section. Please see the API docs for more information on authentication.','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_tools#api-url-generator', LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_tools#api-url-tester'),
'type' => 'helptext'
);
$this->_settings['api_key'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('Public API key', 'lmm'),
'desc' => __('Both public and private API keys are needed for API calls!','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['api_key_private'] = array(
'version' => '3.8.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('Private API key', 'lmm'),
'desc' => __('Both public and private API keys are needed for API calls!','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['api_helptext3'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'std' => '',
'title' => '
' . __('Security options','lmm') . '
',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['api_permissions_view'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('Allowed API actions','lmm'),
'desc' => __('view existing markers/layers','lmm'),
'type' => 'checkbox',
'std' => 1
);
$this->_settings['api_permissions_add'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => '',
'desc' => __('add new markers/layers','lmm'),
'type' => 'checkbox',
'std' => 1
);
$this->_settings['api_permissions_update'] = array(
'version' => 'p1.0',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => '',
'desc' => __('update existing markers/layers','lmm') . $pro_feature_link,
'type' => 'checkbox-pro',
'std' => 0
);
$this->_settings['api_permissions_delete'] = array(
'version' => 'p1.0',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => '',
'desc' => __('delete existing markers/layers','lmm') . $pro_feature_link,
'type' => 'checkbox-pro',
'std' => 0
);
$this->_settings['api_permissions_search'] = array(
'version' => 'p1.5.7',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => '',
'desc' => __('search existing markers/layers','lmm') . $pro_feature_link,
'type' => 'checkbox-pro',
'std' => 0
);
$this->_settings['api_allowed_ip'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('IP access restriction', 'lmm'),
'desc' => __('If an IP address or range is entered above (like 12.34.56.*), only API calls from this IP address or range are allowed.','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['api_allowed_referer'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('Allowed referer', 'lmm'),
'desc' => __('If set (like http://www.your-domain.com/form.php), only API calls with this referer are allowed.','lmm'),
'std' => '',
'type' => 'text'
);
$this->_settings['api_request_type_get'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => __('Allowed API request methods','lmm'),
'desc' => 'GET',
'type' => 'checkbox',
'std' => 1
);
$this->_settings['api_request_type_post'] = array(
'version' => '3.6',
'pane' => 'misc',
'section' => 'misc-web_api',
'title' => '',
'desc' => 'POST',
'type' => 'checkbox',
'std' => 1
);
/*
* Permission settings
*/
$this->_settings['capabilities_helptext1'] = array(
'version' => '3.10.1',
'pane' => 'misc',
'section' => 'misc-permissions',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['capabilities_view_others'] = array(
'version' => 'p2.5',
'pane' => 'misc',
'section' => 'misc-permissions',
'title' => __( 'User role needed for viewing markers/layers from other users (applies only to backend access)', 'lmm' ) . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'edit_posts',
'choices' => array(
'activate_plugins' => __('Administrator (Capability activate_plugins)', 'lmm'),
'moderate_comments' => __('Editor (Capability moderate_comments)', 'lmm'),
'edit_published_posts' => __('Author (Capability edit_published_posts)', 'lmm'),
'edit_posts' => __('Contributor (Capability edit_posts)', 'lmm'),
'read' => __('Subscriber (Capability read)', 'lmm')
)
);
$this->_settings['capabilities_edit'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'misc-permissions',
'title' => __( 'User role needed for adding and editing markers/layers', 'lmm' ),
'desc' => '',
'type' => 'radio',
'std' => 'edit_posts',
'choices' => array(
'activate_plugins' => __('Administrator (Capability activate_plugins)', 'lmm'),
'moderate_comments' => __('Editor (Capability moderate_comments)', 'lmm'),
'edit_published_posts' => __('Author (Capability edit_published_posts)', 'lmm'),
'edit_posts' => __('Contributor (Capability edit_posts)', 'lmm'),
'read' => __('Subscriber (Capability read)', 'lmm')
)
);
$this->_settings['capabilities_edit_others'] = array(
'version' => 'p1.2',
'pane' => 'misc',
'section' => 'misc-permissions',
'title' => __( 'User role needed for editing markers/layers from other users', 'lmm' ) . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'edit_posts',
'choices' => array(
'activate_plugins' => __('Administrator (Capability activate_plugins)', 'lmm'),
'moderate_comments' => __('Editor (Capability moderate_comments)', 'lmm'),
'edit_published_posts' => __('Author (Capability edit_published_posts)', 'lmm'),
'edit_posts' => __('Contributor (Capability edit_posts)', 'lmm'),
'read' => __('Subscriber (Capability read)', 'lmm')
)
);
$this->_settings['capabilities_delete'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'misc-permissions',
'title' => __( 'User role needed for deleting markers/layers', 'lmm' ),
'desc' => '',
'type' => 'radio',
'std' => 'edit_posts',
'choices' => array(
'activate_plugins' => __('Administrator (Capability activate_plugins)', 'lmm'),
'moderate_comments' => __('Editor (Capability moderate_comments)', 'lmm'),
'edit_published_posts' => __('Author (Capability edit_published_posts)', 'lmm'),
'edit_posts' => __('Contributor (Capability edit_posts)', 'lmm'),
'read' => __('Subscriber (Capability read)', 'lmm')
)
);
$this->_settings['capabilities_delete_others'] = array(
'version' => 'p1.2',
'pane' => 'misc',
'section' => 'misc-permissions',
'title' => __( 'User role needed for deleting markers/layers from other users', 'lmm' ) . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'edit_posts',
'choices' => array(
'activate_plugins' => __('Administrator (Capability activate_plugins)', 'lmm'),
'moderate_comments' => __('Editor (Capability moderate_comments)', 'lmm'),
'edit_published_posts' => __('Author (Capability edit_published_posts)', 'lmm'),
'edit_posts' => __('Contributor (Capability edit_posts)', 'lmm'),
'read' => __('Subscriber (Capability read)', 'lmm')
)
);
/*
* XML sitemaps integration
*/
$this->_settings['xml_sitemaps_helptext1'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'std' => '',
'title' => '',
'desc' => sprintf(__( 'XML sitemaps help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it is much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. Geolocation information can also be added to sitemaps in order to improve your local SEO value for services like Google Places.
In order to automatically add links to your KML maps to your XML sitemaps, please install and activate the plugin %1$s. If you do not want to use that plugin, you can manually register your geositemap by following this tutorial.', 'lmm'), 'Google XML Sitemaps', LEAFLET_PLUGIN_URL . 'leaflet-geositemap.php', 'https://www.mapsmarker.com/geo-sitemap'),
'type' => 'helptext'
);
$this->_settings['xml_sitemaps_status'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Automatic Google XML sitemap integration','lmm') . $pro_button_link,
'desc' => sprintf(__('If enabled is selected and the plugin %1$s is active, KML links will automatically be added to your XML sitemap','lmm'), 'Google XML Sitemaps'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['xml_sitemaps_include'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Content to add to XML sitemap','lmm') . $pro_button_link,
'desc' => '',
'type' => 'radio-pro',
'std' => 'both',
'choices' => array(
'both' => __('marker and layer maps','lmm'),
'markers' => __('marker maps only','lmm'),
'layers' => __('layer maps only','lmm')
)
);
$this->_settings['xml_sitemaps_priority_markers'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Priority for marker maps','lmm') . $pro_button_link,
'desc' => __('The priority of maps relative to other URLs on your site','lmm'),
'type' => 'select-pro',
'std' => '0.5',
'choices' => array(
'0' => '0',
'0.1' => '0.1',
'0.2' => '0.2',
'0.3' => '0.3',
'0.4' => '0.4',
'0.5' => '0.5',
'0.6' => '0.6',
'0.7' => '0.7',
'0.8' => '0.8',
'0.9' => '0.9',
'1' => '1'
)
);
$this->_settings['xml_sitemaps_priority_layers'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Priority for layer maps','lmm') . $pro_button_link,
'desc' => __('The priority of maps relative to other URLs on your site','lmm'),
'type' => 'select-pro',
'std' => '0.5',
'choices' => array(
'0' => '0',
'0.1' => '0.1',
'0.2' => '0.2',
'0.3' => '0.3',
'0.4' => '0.4',
'0.5' => '0.5',
'0.6' => '0.6',
'0.7' => '0.7',
'0.8' => '0.8',
'0.9' => '0.9',
'1' => '1'
)
);
$this->_settings['xml_sitemaps_change_frequency_markers'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Change frequency for marker maps','lmm') . $pro_button_link,
'desc' => sprintf(__('How frequently the maps are likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Additional information available at %1$s','lmm'), 'sitemaps.org'),
'type' => 'select-pro',
'std' => 'monthly',
'choices' => array(
'always' => __('Always','lmm'),
'hourly' => __('Hourly','lmm'),
'daily' => __('Daily','lmm'),
'weekly' => __('Weekly','lmm'),
'monthly' => __('Monthly','lmm'),
'yearly' => __('Yearly','lmm'),
'never' => __('Never','lmm')
)
);
$this->_settings['xml_sitemaps_change_frequency_layers'] = array(
'version' => 'p2.6',
'pane' => 'misc',
'section' => 'misc-xml_sitemap',
'title' => __('Change frequency for layer maps','lmm') . $pro_button_link,
'desc' => sprintf(__('How frequently the maps are likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Additional information available at %1$s','lmm'), 'sitemaps.org'),
'type' => 'select-pro',
'std' => 'monthly',
'choices' => array(
'always' => __('Always','lmm'),
'hourly' => __('Hourly','lmm'),
'daily' => __('Daily','lmm'),
'weekly' => __('Weekly','lmm'),
'monthly' => __('Monthly','lmm'),
'yearly' => __('Yearly','lmm'),
'never' => __('Never','lmm')
)
);
/*
* Compatibility settings
*/
$this->_settings['misc_compat_settings_helptext1'] = array(
'version' => '3.11',
'pane' => 'misc',
'section' => 'misc-compatibility',
'std' => '',
'title' => '',
'desc' => __( 'The following settings only need to be changed if you experience any compatibility issues with your theme or other plugins.', 'lmm'),
'type' => 'helptext'
);
$this->_settings['misc_javascript_header_footer'] = array(
'version' => '3.1',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Where to insert Javascript files on frontend?','lmm'),
'desc' => __('Footer is recommended for better performance. If you are using WordPress lesser than v3.3, Javascript files automatically get inserted into the header of your site and the javascript needed for each maps inline within the content.','lmm') . ' ' . __('If you choose footer, javascripts will also only be loaded when a shortcode is used and not on all pages.','lmm') . ' ' . __('Setting this option to header+inline-javascript is required, if maps should be displayed withing a jQuery mobile framework.','lmm'),
'type' => 'radio',
'std' => 'footer',
'choices' => array(
'header' => __('header (+ inline javascript)','lmm'),
'footer' => __('footer','lmm')
)
);
$this->_settings['misc_responsive_support'] = array(
'version' => '3.2',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Support for responsive designs','lmm'),
'desc' => __('If enabled, maps will automatically be resized to width=100% if map width unit is set to px and the div parent element is smaller than the width of the map.','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['misc_conditional_css_loading'] = array(
'version' => '3.2.2',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Support for conditional css loading','lmm'),
'desc' => __('If enabled, css files will only be loaded if a shortcode is used.','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['misc_tab_hidden_div_compatibility'] = array(
'version' => 'p2.7.2',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Tab/hidden div compatibility','lmm') . $pro_button_link,
'desc' => __('Please enable this setting only if you are experiencing issues with maps in proprietary tab solutions or hidden divs which are displayed on demand.','lmm'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['async_geojson_loading'] = array(
'version' => 'p1.6',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Async GeoJSON loading for layer maps','lmm') . $pro_button_link,
'desc' => __('Disabling async GeoJSON loading will increase page loadtime and is only needed if multiple instances of a layer map should be displayed on one page.','lmm'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['maxzoom_compatibility_mode'] = array(
'version' => '3.11.1',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('maxZoom theme compatibility','lmm'),
'desc' => sprintf(__('Please only enable this setting if (Google) maps do not show markers but the following error in the browser console instead: %1$s','lmm'), '"Uncaught Map has no maxZoom specified"'),
'type' => 'radio',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['rewrite_baseurl'] = array(
'version' => 'p3.0.1',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('Permalinks base URL','lmm') . $pro_button_link,
'desc' => __('Needed for creating pretty links to fullscreen maps or API endpoints.','lmm') . ' ' . __('Only set this option to the URL of your WordPress folder if you are experiencing issues or recommended so by support!','lmm') . ' ' . sprintf(esc_attr__('If empty, "WordPress Address (URL)" - %1$s - will be used.','lmm'), get_site_url()),
'type' => 'text-pro',
'std' => ''
);
$this->_settings['wp_kses_status'] = array(
'version' => '3.12.1',
'pane' => 'misc',
'section' => 'misc-compatibility',
'title' => __('HTML filter for popuptexts','lmm') . ' (wp_kses)',
'desc' => sprintf(__('If enabled, unsupported code tags are stripped from popuptexts to prevent injection of malicious code (reference of supported code tags).','lmm'), 'https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/kses.php#L53') . ' ' . __('Disabling this option allows you to display unfiltered popuptexts and is only recommended if special HTML tags are needed.','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
/*
* WordPress integration settings
*/
$this->_settings['misc_wp_integr_helptext1'] = array(
'version' => '3.11',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'std' => '',
'title' => '',
'desc' => '',
'type' => 'helptext'
);
$this->_settings['shortcode'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __( 'Shortcode', 'lmm' ),
'desc' => __( 'Shortcode to add markers or layers into articles or pages - Example: [mapsmarker marker="1"]. Attention: if you change the shortcode after having embedded shortcodes into posts/Pages, the shortcode on these specific articles/pages has to be changed also manually - otherwise these markers/layers will not be show on frontend!', 'lmm' ),
'std' => 'mapsmarker',
'type' => 'text'
);
$this->_settings['misc_tinymce_button'] = array(
'version' => '1.9',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('TinyMCE button','lmm'),
'desc' => __('if enabled, an "Insert map" button gets added above the TinyMCE editor on post and page edit screens for easily searching and inserting maps','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['misc_add_georss_to_head'] = array(
'version' => '1.5',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('Add GeoRSS feed to <head>','lmm'),
'desc' => __('if enabled, a GeoRSS feed for all markers will be added to the <head>-section of the website, allowing users to subscribe to your markers','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['admin_bar_integration'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('WordPress Admin Bar integration','lmm'),
'desc' => __('show or hide drop down menu in Wordpress Admin Bar','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['misc_admin_dashboard_widget'] = array(
'version' => '2.5',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('WordPress admin dashboard widget','lmm'),
'desc' => __('shows a widget on the admin dashboard which displays latest markers and blog posts from mapsmarker.com','lmm'),
'type' => 'radio',
'std' => 'enabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['misc_global_admin_notices'] = array(
'version' => '3.5',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('Admin notices','lmm'),
'desc' => __('Option for global admin notices in backend (showing infos about plugin incompatibilities or invalid marker icon directory settings for example). Please be aware that hiding them results in not being informed about plugin incompatibilites discovered in future releases too!','lmm'),
'type' => 'radio',
'std' => 'show',
'choices' => array(
'show' => __('show','lmm'),
'hide' => __('hide','lmm')
)
);
$this->_settings['multilingual_integration_status'] = array(
'version' => 'p3.0',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('WPML/Polylang integration','lmm') . $pro_button_link,
'desc' => sprintf(__('if enabled and WPML or Polylang translation plugin is active, map texts can be translated. Fore more details please see %1s','lmm'), 'mapsmarker.com/multilingual'),
'type' => 'radio-pro',
'std' => 'disabled',
'choices' => array(
'enabled' => __('enabled','lmm'),
'disabled' => __('disabled','lmm')
)
);
$this->_settings['rewrite_slug'] = array(
'version' => 'p3.0',
'pane' => 'misc',
'section' => 'misc-wordpress_integration',
'title' => __('Permalinks slug','lmm') . $pro_button_link,
'desc' => sprintf(__('Used to create pretty links to fullscreen maps or API endpoints. Default value: %1$s','lmm'), 'maps') . ' ' . sprintf(__('Example link to fullscreen marker map ID 1: %1$s','lmm'), get_site_url() . '/maps/fullscreen/marker/1'),
'type' => 'text-pro',
'std' => 'maps'
);
/*===========================================
*
*
* pane reset
*
*
===========================================*/
$this->_settings['reset_helptext'] = array(
'version' => 'p1.0',
'pane' => 'reset',
'section' => 'reset-reset_settings',
'std' => '',
'title' => '',
'desc' => $pro_feature_link . ' ' . sprintf(__('You can backup your current settings on the tools page before resetting all options to their default values.','lmm'), LEAFLET_WP_ADMIN_URL . 'admin.php?page=leafletmapsmarker_tools'),
'type' => 'helptext'
);
$this->_settings['reset_settings'] = array(
'version' => '1.0',
'pane' => 'misc',
'section' => 'reset-reset_settings',
'title' => __('Warning - cannot be undone!','lmm'),
'type' => 'checkbox',
'std' => 0,
'class' => 'warning', // Custom class for CSS
'desc' => __( 'Check this box and click "Save Changes" below to reset plugin options to their defaults.','lmm' )
);
}
/**
* Initialize settings to their default values
*/
public function initialize_settings() {
$default_settings = array();
foreach ( $this->settings as $id => $setting ) {
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' ) {
$default_settings[$id] = $setting['std'];
}
}
update_option( 'leafletmapsmarker_options', $default_settings );
}
/**
* Register settings
*/
public function register_settings() {
global $pagenow;
$current_page = (isset($_REQUEST['page'])) ? $_REQUEST['page'] : '';
if ( ('options.php' !== $pagenow) && ! in_array( $current_page, array( 'leafletmapsmarker_settings' ) ) )
return;
register_setting( 'leafletmapsmarker_options', 'leafletmapsmarker_options', array ( &$this, 'validate_settings' ) );
$this->get_settings();
foreach ( $this->settings as $id => $setting ) {
$setting['id'] = $id;
$this->create_setting( $setting ); // ----setttings
}
}
/**
* save defaults for new options after plugin updates but keep values of old settings
*/
public function save_defaults_for_new_options() {
//info: set defaults for options introduced in v1.1
if (version_compare(get_option('leafletmapsmarker_version'),'1.0','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.2
if (version_compare(get_option('leafletmapsmarker_version'),'1.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.4
if (version_compare(get_option('leafletmapsmarker_version'),'1.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.4')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.4.3
if (version_compare(get_option('leafletmapsmarker_version'),'1.4.2','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.4.3')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.5
if (version_compare(get_option('leafletmapsmarker_version'),'1.4.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.5')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.6
if (version_compare(get_option('leafletmapsmarker_version'),'1.5.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.6')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.7
if (version_compare(get_option('leafletmapsmarker_version'),'1.6','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.7')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.8
if (version_compare(get_option('leafletmapsmarker_version'),'1.7','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.8')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v1.9
if (version_compare(get_option('leafletmapsmarker_version'),'1.8','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '1.9')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.1
if (version_compare(get_option('leafletmapsmarker_version'),'2.0','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.2
if (version_compare(get_option('leafletmapsmarker_version'),'2.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.3
if (version_compare(get_option('leafletmapsmarker_version'),'2.2','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.3')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.4
if (version_compare(get_option('leafletmapsmarker_version'),'2.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.4')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.5
if (version_compare(get_option('leafletmapsmarker_version'),'2.4','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.5')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.6
if (version_compare(get_option('leafletmapsmarker_version'),'2.5','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.6')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.7.1
if (version_compare(get_option('leafletmapsmarker_version'),'2.7','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.7.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.8
if (version_compare(get_option('leafletmapsmarker_version'),'2.7.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.8')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v2.9
if (version_compare(get_option('leafletmapsmarker_version'),'2.8.2','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '2.9')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.0
if (version_compare(get_option('leafletmapsmarker_version'),'2.9.2','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.0')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.1
if (version_compare(get_option('leafletmapsmarker_version'),'3.0','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.2
if (version_compare(get_option('leafletmapsmarker_version'),'3.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.2.2
if (version_compare(get_option('leafletmapsmarker_version'),'3.2.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.2.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.3
if (version_compare(get_option('leafletmapsmarker_version'),'3.2.5','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.3')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.4
if (version_compare(get_option('leafletmapsmarker_version'),'3.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.4')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.5
if (version_compare(get_option('leafletmapsmarker_version'),'3.4.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.5')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.5.2
if (version_compare(get_option('leafletmapsmarker_version'),'3.5.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.5.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.6
if (version_compare(get_option('leafletmapsmarker_version'),'3.5.4','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.6')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.4
if (version_compare(get_option('leafletmapsmarker_version'),'3.6.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.6.4')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.8.6
if (version_compare(get_option('leafletmapsmarker_version'),'3.8.5','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.8.6')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.8.7
if (version_compare(get_option('leafletmapsmarker_version'),'3.8.6','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.8.7')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.10.1
if (version_compare(get_option('leafletmapsmarker_version'),'3.10','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.10.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.10.6
if (version_compare(get_option('leafletmapsmarker_version'),'3.10.5','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.10.6')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.11
if (version_compare(get_option('leafletmapsmarker_version'),'3.10.6','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.11')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.11.1
if (version_compare(get_option('leafletmapsmarker_version'),'3.11','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.11.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.12.1
if (version_compare(get_option('leafletmapsmarker_version'),'3.12','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.12.1')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
//info: set defaults for options introduced in v3.12.2
if (version_compare(get_option('leafletmapsmarker_version'),'3.12.1','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.12.2')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
/* template for plugin updates
//info: set defaults for options introduced in v3.13
if (version_compare(get_option('leafletmapsmarker_version'),'3.12.3','='))
{
$new_options_defaults = array();
foreach ( $this->settings as $id => $setting )
{
if ( $setting['type'] != 'heading' && $setting['type'] != 'helptext' && $setting['type'] != 'helptext-twocolumn' && $setting['type'] != 'checkbox-pro' && $setting['type'] != 'select-pro' && $setting['type'] != 'radio-pro' && $setting['type'] != 'radio-reverse-pro' && $setting['type'] != 'textarea-pro' && $setting['type'] != 'text-pro' && $setting['type'] != 'text-reverse-pro' && $setting['version'] == '3.13')
{
$new_options_defaults[$id] = $setting['std'];
}
}
$options_current = get_option( 'leafletmapsmarker_options' );
$options_new = array_merge($options_current, $new_options_defaults);
update_option( 'leafletmapsmarker_options', $options_new );
}
*/
}
/**
* Validate settings
*/
public function validate_settings( $input ) {
if ( ! isset( $input['reset_settings'] ) ) {
$options = get_option( 'leafletmapsmarker_options' );
foreach ( $this->checkboxes as $id ) {
if ( isset( $options[$id] ) && ! isset( $input[$id] ) )
unset( $options[$id] );
}
return $input;
}
return false;
}
}