From 806348e67651bbdf5df8b0919fc412d7140a1b43 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Mon, 27 Apr 2020 17:49:16 +0200 Subject: Clean up links, open links in new tab --- htdocs/mapscript.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index ee47f0a..8010b35 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -5,6 +5,8 @@ var polyconf_show_street_names = 5; // Zoom level for when to start showing stre var polyconf_show_cities = 5; /* City outlines will be filled on this level and further away */ var polyconf_show_districts = 4; /* Shown from polyconf_show_cities until this*/ +var wikiurl_base = "https://wiki.linux-forks.de/mediawiki/index.php/" + var streetLabelsRenderer = new L.StreetLabels({ collisionFlg: true, propertyName: 'name', @@ -160,7 +162,7 @@ function load_tiles(name, id) { minNativeZoom: 0, minZoom: 0, noWrap: true, - attribution: 'Map data © Linux-Forks', + attribution: 'Map data © Linux-Forks', id: id, tileSize: 256, zoomOffset: 0, @@ -204,7 +206,7 @@ function load_geojson(name, url, geotype, iconcolor, active=1, style={}) { default: /* else it is a marker with the specified icon */ onEachFeature = function(feature, layer) { label = String(feature.properties.name) - layer.bindPopup('

' + feature.properties.name + ' (' + feature.geometry.coordinates + ')

' + '

' + '

' + feature.properties.description + '

'); + layer.bindPopup('

' + feature.properties.name + ' (' + feature.geometry.coordinates + ')

' + '

' + '

' + feature.properties.description + '

'); layer.bindTooltip(label, { permanent: true, direction: "center", @@ -502,7 +504,7 @@ var baseballIcon = L.AwesomeMarkers.icon({ function onMapClick(e) { var addinfo = ""; if (current_location != "") - addinfo = " (part of " + current_location + ")"; + addinfo = " (part of " + current_location + ")"; if (current_feature) { popup.setLatLng(e.latlng).setContent("This is " + current_feature.properties.name + addinfo).openOn(mymap); } else { -- cgit v1.2.3