*/ ?>

Shortcode Helper



:

array( '[leaflet-map zoom=12 lat=51.05 lng=-114.06]', ), __("Many Markers!", 'leaflet-map') => array( '[leaflet-map zoom=10 lat=43.65 lng=-79.385]', '[leaflet-marker]', '[leaflet-marker lat=43.68 lng=-79.275]', '[leaflet-marker lat=43.67 lng=-79.4]', ), __("Draggable Marker", 'leaflet-map') => array( '[leaflet-map zoom=8 lat=-33.85 lng=151.21 scrollwheel=1]', '[leaflet-marker draggable=1]', ), __("Marker Icon", 'leaflet-map') => array( '[leaflet-map zoom=10 address="cochrane, Ontario" scrollwheel=1]', '[leaflet-marker iconUrl="https://i.imgur.com/Q54ueuO.png" iconSize="80,50" iconAnchor="40,60"]' ), __("Zoom Buttons", 'leaflet-map') => array( '[leaflet-map zoom=9 lat=48.855 lng=2.35 zoomcontrol=1]', ), __("Alternate Map Tiles w/scrollwheel", 'leaflet-map') => array( '[leaflet-map zoom=2 scrollwheel=1 lat=-2.507 lng=32.902 tileurl=https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg subdomains=abcd attribution="Map tiles by Stamen Design, under CC BY 3.0."]', ), __("Marker Popup Messages (on click)", 'leaflet-map') => array( '[leaflet-map lat=59.913 lng=10.739 zoom=12]', '[leaflet-marker]OSLO![/leaflet-marker]', ), __("Links In Marker Messages (visible)", 'leaflet-map') => array( '[leaflet-map lat=28.41 lng=-81.58 zoom=15]', '[leaflet-marker visible="true"] Disney World! Link [/leaflet-marker]', ), __("Basic Lines w/Scrollwheel", 'leaflet-map') => array( '[leaflet-map lat=41 lng=29 scrollwheel=1 zoom=6]', '[leaflet-line latlngs="41, 29; 44, 18;"]' ), __("Basic Circle", 'leaflet-map') => array( '[leaflet-map lat=52 lng=5 zoom=9]', '[leaflet-circle lat=52 lng=5 radius=17500]' ), __("Fitted Colored Line on Addresses", 'leaflet-map') => array( '[leaflet-map]', '[leaflet-line color="purple" addresses="Sayulita; Puerto Vallarta;" fitline=1]' ), __("More Crazy Line Attributes", 'leaflet-map') => array( '[leaflet-map]', '[leaflet-line color="red" weight=10 dasharray="2,15" addresses="Halifax, NS; Tanzania" classname=marching-ants fitbounds=1]' ), __("Disable all Interaction", 'leaflet-map') => array( '[leaflet-map address="las vegas" boxZoom=false doubleClickZoom=false dragging=false keyboard=false scrollwheel=0 attribution=0]', ), __("Add GeoJSON by URL (with popups)", 'leaflet-map') => array( '[leaflet-map doubleClickZoom=true scrollwheel=true]', '[leaflet-geojson src=https://cdn.rawgit.com/bozdoz/064a7101b95a324e8852fe9381ab9a18/raw/03f4f54b13a3a7e256732760a8b679818d9d36fc/map.geojson fitbounds=1 popup_property="popup-text"]' ), __("Test Image Map", 'leaflet-map') => array( '[leaflet-image zoom=1 zoomcontrol=1 scrollwheelzoom=1 attribution=0]', '[leaflet-marker]' ) ); foreach ($examples as $title => $collection) { echo '
'; echo "

$title

"; foreach ($collection as $shortcode) { echo do_shortcode($shortcode); echo "

$shortcode

"; } echo '
'; } ?>