Tag Info

New answers tagged

1

You have two issues. First, it is Point not point in the GeoJSON, ie, it is case sensitive. You can always use GeoJSONlint to check for the validity of GeoJSON, though it also shows up as an error in the developer console. Second, your link the cdn for the leaflet.css, needs to have the http: in front, ie, http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js -- ...


0

You have to add a getFeatureInfo-Control: http://dev.openlayers.org/examples/getfeatureinfo-control.html Here's a question about how to add images in the GetfeatureInfo-Response How to Add image and hyperlink along with GetFeatureInfo Popup? How to Add image and hyperlink along with GetFeatureInfo Popup? Some more information about Geoserver's ...


3

It seems you re mixing some concepts features[i] = new ol.format.GeoJSON( url: './testData.geojson') }; The above code can't work because the ol.format.GeoJSON API does not accept url as a parameter eg the official doc. You also try to loop on a GeoJSON call (if I consider above sample was intented for this) The normal way (there are more than one) ...


0

I found the solution : var search = document.getElementById('suche'); search.appendChild(new L.Control.GeoSearch({ provider: new L.GeoSearch.Provider.OpenStreetMap(), }).onAdd(map));



Top 50 recent answers are included