Tag Info

Hot answers tagged

2

From the API docs (http://openlayers.org/en/v3.4.0/apidoc/ol.Map.html?unstable=true#forEachFeatureAtPixel): To stop detection, callback functions can return a truthy value. map.forEachFeatureAtPixel(pixel, function(feature) { el.innerHTML += feature.get('Proj_Client') + '<br>'; return true; });


2

The route1Data you are trying to remove is not the original route data that was added. You need to declare your layer outside of vlocation. I modified vlocation to the follow and it adds and removes the layer in my fiddle. var currentRoute; function vlocation(locx, xx) { var vdatax = locx; if (currentRoute) map.removeLayer(currentRoute); if ...


2

I just found this post, from your post here and wanted to share some Python code I wrote that helps select a given feature in a JavaScript app. This code is obviously very specific to the Selenium and Python bindings, but I've got good mileage from it across different browsers, OS and screen resolutions. The idea is that if you Know the real world x/y of ...


1

I found a solution here: http://stackoverflow.com/questions/17005784/clustering-markers-on-mapbox-leaflet I used this code to display my markers: var markers = new L.MarkerClusterGroup(); var geoJsonFeature = rodents1; var geoJsonLayer = L.geoJson(rodents1); var map = L.mapbox.map('map','mapbox.streets') .setView([42.35,-71.08],13); ...


1

Not clear if you want all the points to be the same color, or styled according to some property in your data (a category of animal, etc.). Assuming the latter, you could set up your map slightly differently and use the pointToLayer function to return a circle marker for each point: // make an object to lookup a hex color for each category in your data var ...


1

An idea is: Use the lidar data to classify ground and non-ground points. Then, build a Digital Elevation Model (DEM) from the ground points. Here is a way of doing it. Use the RGB values from the aerial images to color code the lidar point cloud. Here are examples showing how this can be done. Now, it is possible to display the DEM and the color-coded ...



Only top voted, non community-wiki answers of a minimum length are eligible