Vue2leaflet: Customize every points on Polyline

Created on 13 Apr 2018  路  4Comments  路  Source: vue-leaflet/Vue2Leaflet

Hi, i want customize the polyline path with arrow or something like this
https://github.com/bbecquet/Leaflet.PolylineDecorator

image

but i am not found the plugin wrapped with the vue js, have you solution for that?
thanks

Most helpful comment

Hi @zaqisilverano I made a wrapper plugin for this, you can see it in https://github.com/jperelli/vue2-leaflet-polylinedecorator

All 4 comments

Hi @zaqisilverano,

As far as I know, no wrapper exists for PolylineDecorator so you can:

  • Write your own wrapper and share it with the community 馃憤,
  • Use PolylineDecorator on its own with Vue2Leaflet by doing something like this:
L.polylineDecorator(latlngs, options).addTo(this.$refs.map.mapObject);

where map is a ref added to the Vue2Leaflet map.

Hope this helps,

Hi @zaqisilverano I made a wrapper plugin for this, you can see it in https://github.com/jperelli/vue2-leaflet-polylinedecorator

Hi @jperelli Thanks man, very helpful for me. Very Nice!

I'm uploading it to npm tomorrow

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srtonz picture srtonz  路  4Comments

lusman20 picture lusman20  路  4Comments

mawieutc picture mawieutc  路  4Comments

hoticer picture hoticer  路  3Comments

DmitriyVTitov picture DmitriyVTitov  路  4Comments