Leaflet.RotatedMarker icon indicating copy to clipboard operation
Leaflet.RotatedMarker copied to clipboard

VUE

Open mhsystem opened this issue 6 years ago • 3 comments

Hello, how can I use it in Vue2?

mhsystem avatar Apr 28 '18 14:04 mhsystem

@mhsystem I made a wrapper of this package for Vue https://www.npmjs.com/package/vue2-leaflet-rotatedmarker

mudin avatar May 21 '18 05:05 mudin

@mhsystem You can use by import 'leaflet-rotatedmarker' in your Vue component file.

jkatagi avatar Jun 06 '18 09:06 jkatagi

@mhsystem Oh, I tried both bbecquet/Leaflet.RotatedMarker and imudin/vue2-leaflet-rotatedmarker in Vue2. And I found out that when updating a direction of the marker in computed, bbecquet/Leaflet.RotatedMarker cannot update to new direction until zoom in/out the map, but imudin/vue2-leaflet-rotatedmarker can update immediately.

So I recommend you to use imudin/vue2-leaflet-rotatedmarker in Vue2.

jkatagi avatar Jun 07 '18 02:06 jkatagi