if (($zoom < 0) || ($zoom > 30)) { $lat = -1; }
}
if (defined(param('layers'))) {
- my @layerlist = ('osmde', 'osmorg');
+ # Mapping for Openlayers Permalinks
+ my @layerlist = ('osmde', 'osmorg', 'osmorglowzoom', 'luftbilderl');
my $layers = param('layers');
my $i;
for ($i = 0; $i < int(@layerlist); $i++) {
}
}
}
+if (defined(param('layer'))) {
+ # Mapping for Leaflet Permalinks
+ my $layers = param('layer');
+ if ($layers eq 'RRZE tileserver osm.de style tiles') { $baselayer = 'osmde'; }
+ if ($layers eq 'RRZE tileserver osm.org style tiles') { $baselayer = 'osmorg'; }
+ if ($layers eq 'RRZE tileserver osm.org style with different lowzoom tiles') { $baselayer = 'osmorglowzoom'; }
+ if ($layers eq 'Luftbild Erlangen') { $baselayer = 'luftbilderl'; }
+}
# If mlon/mlat is defined but lon/lat isn't, use mlat/mlon as center pos.
if (($lon == -999.0) && ($lat == -999.0)) {
if ($mlat != -999.0) { $lat = $mlat; }