Legende | '),a+=""}backbonemenu.renderTo($("#mainmenu"),{id:"menu"}),$(document).ready(function(){Backbone.history.start({pushState:!1,root:stadtplantools.base_url})}),mapview.map.attributionControl.setPrefix(""),mapview.map.on("click",function(i){identifiedFeature&&mapview.map.removeLayer(identifiedFeature),"eignungsgebiete"!=curResult&&selLayer.identify().on(mapview.map).at(i.latlng).layers("visible:"+selLayer.options.layers.join(",")).returnGeometry(!0).run(function(e,t){var a,n,r;0",3==feature.layerId?n="Schulwegeplan demnächst zum Download verfügbar.":2==feature.layerId&&(n="Die markierte Fernwärmeleitung ist eine geplante Leitung.")),t=$(""+a+"
"),r=_.uniqueId("overlay_"),stadtplantools.large_screen&&n?t.append(n):n&&($('mehr Info...').appendTo(t),$(document).on("click","#"+r,function(e){e.preventDefault(),stadtplantools.openOverlay(a,n)})),L.popup({maxWidth:Math.min(.8*$("#map").width(),500),maxHeight:.8*window.innerHeight}).setLatLng(i.latlng).setContent(t.html()).openOn(mapview.map).on("remove",function(){mapview.map.removeLayer(identifiedFeature)}))})}),mapview.switchToBaseLayer("Karte grau");var search=new Search(mapview.map,{url:"/osp_default/_search",searchColumn:"title",geometryColumnPoint:"geometry.geopoint",geometryColumnShape:"geometry.geoshape"});search.renderTo($("#search")),backbonemenu.menu.activateByItem(curMenuItem),schulwege()