File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ export function finishView (view) {
459
459
const content = $value . text ( )
460
460
try {
461
461
let position , zoom
462
- if ( content . match ( / ^ [ \d \. \ ,\s ] + $ / ) ) {
462
+ if ( content . match ( / ^ [ \d . , \s ] + $ / ) ) {
463
463
const [ lng , lat , zoo ] = content . split ( ',' ) . map ( parseFloat )
464
464
zoom = zoo
465
465
position = [ lat , lng ]
@@ -474,7 +474,7 @@ export function finishView (view) {
474
474
475
475
L . tileLayer ( 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' , {
476
476
attribution : '<a href="https://www.openstreetmap.org/">OSM</a>' ,
477
- maxZoom : 18 ,
477
+ maxZoom : 18
478
478
} ) . addTo ( map )
479
479
L . marker ( position , {
480
480
icon : L . icon ( {
@@ -489,7 +489,6 @@ export function finishView (view) {
489
489
}
490
490
} )
491
491
492
-
493
492
// image href new window(emoji not included)
494
493
const images = view . find ( 'img.raw[src]' ) . removeClass ( 'raw' )
495
494
images . each ( ( key , value ) => {
You can’t perform that action at this time.
0 commit comments