Skip to content
Snippets Groups Projects
Commit 76fb0932 authored by Felix Kaechele's avatar Felix Kaechele Committed by Xaver Maierhofer
Browse files

[BUGFIX] Allow negative coordinates

The world is more than just the part east of the prime meridian and
north of the equator :stuck_out_tongue_winking_eye:



This allows deeplinks to have negative coordinates. Also fixes the
coordinate picker when selecting coordinates with negative values.

Signed-off-by: default avatarFelix Kaechele <felix@kaechele.ca>
parent 9212b0e4
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ define(['Navigo'], function (Navigo) { ...@@ -85,7 +85,7 @@ define(['Navigo'], function (Navigo) {
var router = new Navigo(null, true); var router = new Navigo(null, true);
router router
.on(/^\/?#?\/([\w]{2})?\/?(map|graph)?\/?([a-f\d]{12})?([a-f\d\-]{25})?\/?(?:(\d+)\/([\d.]+)\/([\d.]+))?$/, customRoute) .on(/^\/?#?\/([\w]{2})?\/?(map|graph)?\/?([a-f\d]{12})?([a-f\d\-]{25})?\/?(?:(\d+)\/(-?[\d.]+)\/(-?[\d.]+))?$/, customRoute)
.on({ .on({
'*': function () { '*': function () {
router.fullUrl(); router.fullUrl();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment