Skip to content

Commit

Permalink
Updated sozialraumdaten links (#45) & quickfix mapbox tile service de…
Browse files Browse the repository at this point in the history
…precation
  • Loading branch information
mukil committed Feb 14, 2021
1 parent 985815c commit 72ccc6f
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 28 deletions.
14 changes: 6 additions & 8 deletions src/main/resources/views/website-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
bounds = L.latLngBounds(corner1, corner2)
lCoordinate = L.latLng(latitude, longitude)
map = L.map('map', { center: [ latitude, longitude ], zoom: 16, minZoom: 10, maxBounds: bounds, zoomSnap: 0.5 })
L.tileLayer('https://api.tiles.mapbox.com/v4/kiezatlas.pd8lkp64/{z}/{x}/{y}.png?' // old style id="kiezatlas.map-feifsq6f"
+ 'access_token=pk.eyJ1Ijoia2llemF0bGFzIiwiYSI6ImNpa3BndjU2ODAwYm53MGxzM3JtOXFmb2IifQ._PcBhOcfLYDD8RP3BS0U_g', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery &#169; <a href="http://mapbox.com">Mapbox</a>',
id: 'kiezatlas.m7222ia5'}).addTo(map)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', maxZoom: 19}).addTo(map)
// override map instance of leafletMap
leafletMap.setup('map', false, map, 16)
leafletMap.set_map_center(lCoordinate)
Expand Down Expand Up @@ -192,7 +190,7 @@ <h3 th:text="${angebotsinfo.angebotsName}">Name des Angebots</h3>
</div>
<div id="map-sidebar"></div>
<!--div class="ui input circle-control blue4">
<input type="button" class="ui button" onclick="activate_circle_search()" value="Umkreissuche aktivieren" />
<input type="button" class="ui button" onclick="set_mapcontrol_mode_query()" value="Umkreissuche aktivieren" />
</div-->
</div>
</div>
Expand Down Expand Up @@ -262,8 +260,8 @@ <h3>
</div>
<div class="sozialraumdaten" th:if="${!#strings.isEmpty(geoobject.LORId)}">
<label>Sozialraumdaten:</label>
<a th:href="@{http://sozialraumdaten.kiezatlas.de/seiten/2018/12/(lor=${geoobject.LORId})}">
Statistische Informationen zur Bev&ouml;lkerungsstruktur in der Umgebung dieses Ortes
<a th:href="@{http://sozialraumdaten.kiezatlas.de/seiten/2020/06/(lor=${geoobject.LORId})}">
Statistische Informationen zur Bev&ouml;lkerungsstruktur in der Umgebung dieses Ortes (Stand: Juni 2020)
</a>
</div>
<div class="regionen" th:if="${!#strings.isEmpty(geoobject.bezirk)}">
Expand Down
8 changes: 3 additions & 5 deletions src/main/resources/views/website-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@
}
document.cookie = " dm4_no_geocoding=true;"
map = L.map('map', { scrollWheelZoom: true } ).setView(lCoordinate, (geoObjectId !== -1) ? 17 : 14)
L.tileLayer('https://api.tiles.mapbox.com/v4/kiezatlas.pd8lkp64/{z}/{x}/{y}.png?' // old style id="kiezatlas.map-feifsq6f"
+ 'access_token=pk.eyJ1Ijoia2llemF0bGFzIiwiYSI6ImNpa3BndjU2ODAwYm53MGxzM3JtOXFmb2IifQ._PcBhOcfLYDD8RP3BS0U_g', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery &#169; <a href="http://mapbox.com">Mapbox</a>',
id: 'kiezatlas.m7222ia5'}).addTo(map)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', maxZoom: 19}).addTo(map)
draggableMarker = L.marker(lCoordinate, { draggable: true} )
draggableMarker.on('dragend', function(e) {
var pos = draggableMarker.getLatLng()
Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/views/website-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h2 class="header blue5bg white thin">
<h3>Interessante Infos<span class="context"></span></h3>
</div>
<div class="news-area ui active dimmer inverted">
<div class="news-item">
<!--div class="news-item">
<div class="date bold">26.11, 18 Uhr, Kiezatlas Meeting f&uuml;r Software Entwickler*innen</div>
<div class="headline">
Wann: 18-20 Uhr, Wo: In Sch&ouml;neberg in der <a href="/website/geo/166473">Internetwerkstatt Netti</a><br/>
Expand All @@ -93,13 +93,12 @@ <h3>Interessante Infos<span class="context"></span></h3>
</ul>
Weitere Details zum Treffen findet ihr <a href="/angebote/2443077">hier</a>.
</div>
</div>
</div-->
<div class="news-item">
<div class="date bold">Sozialraumdaten</div>
<div class="headline">
Unsere sozialraumorienterte Auswertung der Zahlen des Amtes für Statistik Berlin-Brandenburg ist wieder auf dem neuesten Stand.
Dazu wurde die Auswertung des <em>Monitoring Soziale Stadt</em> von 2015 auf 2017 aktualisiert.
&Uuml;ber den <a href="/website/sozialraumdaten">Sozialraumdaten-Stadtplan gelangen Sie mit zwei Klicks</a> auf eine von 438 Auswertungen der Bev&ouml;lkerungsstruktur in den Berliner Kiezen.
Unsere sozialraumorienterte Auswertung der Zahlen des Amtes für Statistik Berlin-Brandenburg ist wieder auf dem neuesten Stand (Juni 2020).
&Uuml;ber den <a href="/website/sozialraumdaten">Sozialraumdaten-Stadtplan gelangen Sie mit zwei Klicks</a> auf eine von 438 Auswertungen der Bev&ouml;lkerungsstruktur in den Berliner Kiez'en.
</div>
</div>
<div class="news-item">
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/views/website-lor.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ <h3>Sozialraumdaten im Kiezatlas - Datenbank lebensweltlich orientierter Planung
<div class="welcome ui container">
<p>
Diese Karte zeigt den Status von 447 kleinr&auml;umlichen Planungseinheiten Berlins (<em title="Lebensweltlich orientierter Planungsraum">LORs</em>) aus dem <b>Monitoring Soziale Stadt 2017</b>.
&Uuml;ber die Auswahl eines Planungsraums in der Karte gelangen Sie zu den Kiezatlas-Sozialraumdaten.
&Uuml;ber die Auswahl eines Planungsraums in der Karte gelangen Sie zu den Kiezatlas-Sozialraumdaten (Stand: <b>Juni 2020</b>).
</p>
<p>
Datenbasis der Sozialraumdaten:<br/>Altersverteilung, Staatsangeh&ouml;rigkeit und Migration des <a target="_blank" title="zur Website des Amts f&uuml;r Statistik BB" href="https://www.statistik-berlin-brandenburg.de/regionales/kleinraumdaten/einwohnerOD.asp?Kat=6101">Amts für Statistik Berlin Brandenburg</a> (2011/12 - 2019/06), <a target="_blank" href="https://www.stadtentwicklung.berlin.de/planen/basisdaten_stadtentwicklung/monitoring/index.shtml" title="zur Website des Monitorings Soziale Stadt">Monitoring Soziale Stadt</a> (2017).
Datenbasis der Sozialraumdaten:<br/>Altersverteilung, Staatsangeh&ouml;rigkeit und Migration des <a target="_blank" title="zur Website des Amts f&uuml;r Statistik BB" href="https://www.statistik-berlin-brandenburg.de/regionales/kleinraumdaten/einwohnerOD.asp?Kat=6101">Amts für Statistik Berlin Brandenburg</a> (2011/12 - 2020/06), <a target="_blank" href="https://www.stadtentwicklung.berlin.de/planen/basisdaten_stadtentwicklung/monitoring/index.shtml" title="zur Website des Monitorings Soziale Stadt">Monitoring Soziale Stadt</a> (2017).
</p>
</div>
</div>
Expand Down
12 changes: 5 additions & 7 deletions src/main/resources/web/ka-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ var leafletMap = (function($, L) {
} else {
map.map = new L.Map(elementId)
map.elementId = elementId
L.tileLayer('https://api.tiles.mapbox.com/v4/kiezatlas.pd8lkp64/{z}/{x}/{y}.png?' // old style id="kiezatlas.map-feifsq6f"
+ 'access_token=pk.eyJ1Ijoia2llemF0bGFzIiwiYSI6ImNpa3BndjU2ODAwYm53MGxzM3JtOXFmb2IifQ._PcBhOcfLYDD8RP3BS0U_g', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery &#169; <a href="http://mapbox.com">Mapbox</a>',
id: 'kiezatlas.m7222ia5'}).addTo(map.map)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors,'
+ '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', maxZoom: 19}).addTo(map.map)
}
L.Util.setOptions(map.map, {
dragging: true, touchZoom: true, scrollWheelZoom: false, doubleClickZoom: true,
Expand Down Expand Up @@ -110,8 +108,8 @@ var leafletMap = (function($, L) {
if (map.is_circle_query_active()) {
mapping.circle_search_control = new L.CircleEditor(
map.get_current_location_coords(), mapping.circle_search_radius, {
color: colors.ka_gold, weight: 3, opacity: .4, extendedIconClass: "extend-icon-medium",
className: "leaflet-search-control", clickable: false, zIndexOffset: 101, fillColor: colors.ka_gold
color: colors.ka_blue ,weight: 3, opacity: .4, extendedIconClass: "extend-icon-medium",
className: "leaflet-search-control", clickable: false, zIndexOffset: 101, fillColor: colors.m_blue
})
mapping.control_group.addLayer(mapping.circle_search_control)
mapping.circle_search_control.on('edit', function(event) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/web/ka-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var model = {
leafletMap.render_circle_search_control(fitBounds)
console.log("Activating circle query control...")
} else {
leafletMap.set_circle_control_fixed(true)
leafletMap.render_circle_search_control(fitBounds)
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/ka-monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ $(document).ready(function () {
infoEW = features[i].get('EW');
infoLink = features[i].get('SCHLUESSEL');
}
var link = '<a href="https://sozialraumdaten.kiezatlas.de/seiten/2019/06/?lor='+infoLink+'">Link zur Auswertung</a><br/>'
var link = '<a href="https://sozialraumdaten.kiezatlas.de/seiten/2020/06/?lor='+infoLink+'">Link zur Auswertung</a><br/>'
var statusDyn = 'Status Index: ' + (infoStatus).toFixed(2) + ', ' + 'Dynamik: ' + infoDyn + '<br/>'
if (infoDyn == null) {
link = "Keine Auswertung aufgrund zu geringer Einwohnerzahl, "
Expand Down

0 comments on commit 72ccc6f

Please sign in to comment.