mirror of https://github.com/status-im/codimd.git
fix(geo-map): fix west longitude and south latitude not parsed correctly
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
66ec25dddb
commit
5b5d0417f5
|
@ -450,7 +450,7 @@ export function finishView (view) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let position, zoom
|
let position, zoom
|
||||||
if (content.match(/^[\d.,\s]+$/)) {
|
if (content.match(/^[-\d.,\s]+$/)) {
|
||||||
const [lng, lat, zoo] = content.split(',').map(parseFloat)
|
const [lng, lat, zoo] = content.split(',').map(parseFloat)
|
||||||
zoom = zoo
|
zoom = zoo
|
||||||
position = [lat, lng]
|
position = [lat, lng]
|
||||||
|
|
Loading…
Reference in New Issue