Closed
Description
System Information | Affected Versions
leaflet: 1.0.3
vue2-leaflet: 0.0.47
vue: 2.2.6
chrome: 58.0.3029.81 (64-bit)
Description
In v.0.0.47
, I have noticed an issue with the Marker
component being duplicated/shadowed when rendered in the map.
Code
<v-map :zoom=15 :center="[organization.latitude, organization.longitude]">
<v-tilelayer :token="mapboxAPIKey" url="https://api.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token={token}"></v-tilelayer>
<v-marker :lat-lng="{'lat': organization.latitude, 'lng': organization.longitude}">
<v-popup :content="organization.name"></v-popup>
</v-marker>
</v-map>
edit: fixed code copy paste error
Fix
If I remove the transform: translate3d(395px, 200px, 0px)
style from the img.leaflet-marker-icon
, then the issue is resolved.
Edit: This change seems to move the "clickable" marker out of the pane, so it cannot be used as the trigger for a popup. The incorrect "fat" marker is the one that remains. I will look into other possible "full" resolutions.
Attachments
Metadata
Metadata
Assignees
Labels
No labels