All Projects → mudin → vue2-leaflet-rotatedmarker

mudin / vue2-leaflet-rotatedmarker

Licence: MIT license
rotated marker plugin extension for vue2-leaflet package

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue2-leaflet-rotatedmarker

Leaflet.motion
A simple tool to animate polylines and polygons in different way
Stars: ✭ 76 (+347.06%)
Mutual labels:  leaflet, markers
Leaflet Color Markers
color variations of the standard leaflet marker
Stars: ✭ 363 (+2035.29%)
Mutual labels:  leaflet, markers
vue2-leaflet-vectorgrid
A Leaflet.VectorGrid plugin for the vue2-leaflet package.
Stars: ✭ 17 (+0%)
Mutual labels:  leaflet, vue2-leaflet
Prunecluster
Fast and realtime marker clustering for Leaflet
Stars: ✭ 473 (+2682.35%)
Mutual labels:  leaflet, markers
leaflet-tag-filter-button
Adds tag filter control for layers (marker, geojson features etc.) to LeafLet.
Stars: ✭ 48 (+182.35%)
Mutual labels:  leaflet, markers
routes
Google Maps Api test using marker rotation and routes.
Stars: ✭ 38 (+123.53%)
Mutual labels:  rotation
leaflet-geojson-selector
Show GeoJSON Layer like as Interactive Menu List
Stars: ✭ 88 (+417.65%)
Mutual labels:  leaflet
leaflet.esri
ESRI Plugin for Leaflet R Package
Stars: ✭ 31 (+82.35%)
Mutual labels:  leaflet
ng-leaflet
Angular 2 component for Leaflet 1.x (WIP - Help Wanted)
Stars: ✭ 16 (-5.88%)
Mutual labels:  leaflet
FanLayout
可定制性超强的圆弧滑动组件
Stars: ✭ 28 (+64.71%)
Mutual labels:  rotation
leaflet-examples
🍁 A collection of examples of leaflet map usage
Stars: ✭ 90 (+429.41%)
Mutual labels:  markers
react-esri-leaflet
react components for esri-leaflet
Stars: ✭ 24 (+41.18%)
Mutual labels:  leaflet
web-maps-wcag-evaluation
Manual accessibility evaluation of popular web map tools.
Stars: ✭ 28 (+64.71%)
Mutual labels:  leaflet
rotation master
Provide conversion between the major representations of 3D rotation and visualize the orientation of a rigid body
Stars: ✭ 157 (+823.53%)
Mutual labels:  rotation
python-rotate-backups
Simple command line interface for backup rotation
Stars: ✭ 136 (+700%)
Mutual labels:  rotation
SKanimATE
Animated Flatground Skateboard Tricks
Stars: ✭ 18 (+5.88%)
Mutual labels:  rotation
mapr
Map species occurrence data
Stars: ✭ 34 (+100%)
Mutual labels:  leaflet
get phylomarkers
A pipeline to select optimal markers for microbial phylogenomics and species tree estimation using coalescent and concatenation approaches
Stars: ✭ 34 (+100%)
Mutual labels:  markers
GTD-Visualization
全球恐怖袭击数据可视化
Stars: ✭ 31 (+82.35%)
Mutual labels:  leaflet
papyrusjs
papyrus.js renders maps of Minecraft: Bedrock Edition worlds using node.js, LevelDB and leaflet.
Stars: ✭ 53 (+211.76%)
Mutual labels:  leaflet

License npm version HitCount size

vue2-leaflet-rotatedmarker

This is a RotatedMarker plugin extension for vue2-leaflet package

Install

npm install --save vue2-leaflet-rotatedmarker

Demo

git clone https://github.com/imudin/vue2-leaflet-rotatedmarker
cd vue2-leaflet-rotatedmarker
yarn
yarn example

# or alternatively using npm
npm install
npm run example

Then you should be able to navigate with your browser and see the demo in http://localhost:4000/

You can see the demo code in the file example.vue

Usage

on <template> add

something like this

<v-map :zoom=10 :center="initialLocation">
  <v-icondefault :image-path="'/statics/leafletImages/'"></v-icondefault>
  <v-tilelayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></v-tilelayer>
  <v-rotated-marker v-for="l in locations" :key="l.id" 
    :lat-lng="l.latlng" 
    :icon="icon" 
    @click="handleMarkerClick(l)"
    :rotationAngle="l.rotationAngle">
</v-rotated-marker>
</v-map>

on <script> add

option 1

In the same template file, at <script> part, this will make the component available only to the template in this file

import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'
...
export default {
  ...
  components: {
    'v-rotated-marker': Vue2LeafletRotatedMarker
    ...
  },
  ...
}

option 2

At main Vue configuration, this will make the component available to all templates in your app

import Vue from 'vue'
import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'
...
Vue.component('v-rotated-marker', Vue2LeafletRotatedMarker)

Develop and build

npm install
npm run build

Author

mudin

License

MIT rotated marker plugin extension for vue2-leaflet package

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].