2017 © Pedro Peláez
 

wordpress-plugin cmb2-field-leaflet-geocoder

Leaflet (with Geocoder) field type for CMB2.

image

villeristi/cmb2-field-leaflet-geocoder

Leaflet (with Geocoder) field type for CMB2.

  • Wednesday, January 11, 2017
  • by villeristi
  • Repository
  • 1 Watchers
  • 2 Stars
  • 121 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

CMB2 Field Leaflet Geocoder

A Leaflet (with Geocoder) field type for CMB2., (*1)

Build Status, (*2)

Installation

Composer

composer require villeristi/cmb2-field-leaflet-geocoder, (*3)

Manual

  1. Download the plugin
  2. Place the plugin folder in your /wp-content/plugins/ directory
  3. Activate the plugin in the plugins dashboard

Usage

array(
  'id' => $prefix . 'location',
  'name' => __('Coordinates'),
  'desc' => __('Drag the marker after finding the right spot to set the exact coordinates'),
  'type' => 'leaflet_map',
  /*
  For these extra attributes, please consult Leaflet [documentation](http://leafletjs.com/reference-1.0.0.html)
  'attributes' = array(
    'tilelayer'           => 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
    'searchbox_position'  => 'topright'; // topright, bottomright, topleft, bottomleft,
    'search'              => __( 'Search...' ),
    'not_found'           => __( 'Not found' ),
    'initial_coordinates' => [
        'lat' => 61.9241, // Go Finland!
        'lng' => 25.7482  // Go Finland!
    ],
    'initial_zoom'        => 4 // Zoomlevel when there's no coordinates set,
    'default_zoom'        => 8 // Zoomlevel after the coordinates have been set & page saved
  )
  */
),

The Versions

11/01 2017

dev-develop

dev-develop https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress

11/01 2017

dev-master

9999999-dev https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress

10/01 2017

0.1.3

0.1.3.0 https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress

10/01 2017

0.1.2

0.1.2.0 https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress

10/01 2017

0.1.1

0.1.1.0 https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress

10/01 2017

0.1.0

0.1.0.0 https://github.com/villeristi/CMB2-field-Leaflet-Geocoder

Leaflet (with Geocoder) field type for CMB2.

  Sources   Download

MIT

by Wille

plugin wordpress