New answers tagged

0

If you are using ol.Map#forEachFeatureAtPixel for detecting clicks, you can set the optional layerFilter: map.forEachFeatureAtPixel(pixel, function(feature) { // do something with detected features }, undefined, function(layer) { return layer !== geolocationLayer; }); In the above snippet, geolocationLayer is the vector layer from the example you ...


1

You need either a Thesaurus that maps your search-terms to general terms (e.g. UK-->England, United Kingdom --> England, ...) or a gazetteer-service that does the same but also provides functionalties to search by geo-location and get the the name stored within that database that relates to that location (e.g. (60, 0) --> London). Both are available on the ...


2

You can load this into QGIS okay - it has 3 point features and 12 line features. The coordinate system is undefined, so exactly where on the planet the features live can't be determined. The bounding box of the coordinates is xMin,yMin 325880.38,6409376.11 : xMax,yMax 651934.19,12818724.96 - which isn't lat-long. The ogrinfo command will tell you most of ...


0

One thing you need to do is move the creation of the "Myposition" layer out of the callback and into an initialization function (possibly as part of startWatch() as long as you remove the layer in stopWatch()). OpenLayers might be smart enough not to recreate the layer if you use the same name (I am not sure which it does), but you might also be creating ...



Top 50 recent answers are included