@ffly4u/vue2-leaflet-tocoordinates

1.0.2 • Public • Published

vue2-leaflet-toCoordinates

This is a toCoordinates plugin extension for vue2-leaflet package

Install

with npm:

npm install --save @ffly4u/leaflet-tocoordinates @ffly4u/vue2-leaflet-tocoordinates

or yarn:

yarn add @ffly4u/leaflet-tocoordinates @ffly4u/vue2-leaflet-tocoordinates

Usage

Look toCoordinates plugin Options for options

<v-map :zoom=3 :center="location">
  <v-tilelayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></v-tilelayer>
  <!-- IMPORTANT PART HERE -->
  <v-to-coordinates :options="toCoordinatesOptions" ></v-to-coordinates>
  <!-- /IMPORTANT PART HERE -->
</v-map>

<script>
import Vue from 'vue';
import Vue2Leaflet from 'vue2-leaflet';
import VToCoordinates from '@ffly4u/vue2-leaflet-toCoordinates';
import '@ffly4u/leaflet-tocoordinates/dist/leaflet.css';

Vue.component('v-map', Vue2Leaflet.Map);
Vue.component('v-tilelayer', Vue2Leaflet.TileLayer);

export default {
  components: { VToCoordinates },
  data() {
    return {
      toCoordinatesOptions: {
        // options
      },
    };
  },
};
</script>

License

MIT

/@ffly4u/vue2-leaflet-tocoordinates/

    Package Sidebar

    Install

    npm i @ffly4u/vue2-leaflet-tocoordinates

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • benjaminvadant
    • ffly4usupport
    • sebtiz13