File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,7 +476,12 @@ export function finishView (view) {
476476 attribution : '<a href="https://www.openstreetmap.org/">OSM</a>' ,
477477 maxZoom : 18 ,
478478 } ) . addTo ( map )
479- L . marker ( position ) . addTo ( map )
479+ L . marker ( position , {
480+ icon : L . icon ( {
481+ iconUrl : `${ serverurl } /build/leaflet/images/marker-icon.png` ,
482+ shadowUrl : `${ serverurl } /build/leaflet/images/marker-shadow.png`
483+ } )
484+ } ) . addTo ( map )
480485 $elem . addClass ( 'geo' )
481486 } catch ( err ) {
482487 $elem . append ( `<div class="alert alert-warning">${ escapeHTML ( err ) } </div>` )
Original file line number Diff line number Diff line change @@ -181,6 +181,11 @@ module.exports = {
181181 from : '*' ,
182182 to : 'dictionary-de-ch/'
183183 } ,
184+ {
185+ context : path . join ( __dirname , 'node_modules/leaflet' ) ,
186+ from : 'dist' ,
187+ to : 'leaflet'
188+ }
184189 ] ) ,
185190 new MiniCssExtractPlugin ( )
186191 ] ,
You can’t perform that action at this time.
0 commit comments