Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 55615

An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps

1 vote
Accepted

Leaflet Layer Control problem

Add a basemaps variable to hold the layers, then add that to the control. var osmLink = '<a href="http://openstreetmap.org">OpenStreetMap</a>', thunLink = '<a href="http://thunderforest.com/">Thu …
timlohnes's user avatar
  • 1,238
1 vote
Accepted

Hide and show markers in a Leaflet map using zoomend

You can remove a layer holding the markers, then you could turn them on again. Is that what you are thinking?update of your fiddle. Just make sure to add each marker to the layer Group, not the map. …
timlohnes's user avatar
  • 1,238
2 votes
Accepted

LeafletJS: How to hide legend when layer is clicked?

I think you need to listen for 'overlayremove' to listen to the District Population being unchecked. Give this a shot, not entirely sure. map.on('overlayadd', function(eventLayer){ if (eventLayer …
timlohnes's user avatar
  • 1,238
3 votes
Accepted

onEachFeature Leaflet

Just run that code inside of zoomToFeature, the function that is called on click. function zoomToFeature(e) { map.fitBounds(e.target.getBounds()); L.geoJson(polska2, { style: …
timlohnes's user avatar
  • 1,238
1 vote

Get array of LatLngs from ArcGIS feature layer polyline using Esri-Leaflet

Try something like this. Gives you an array of each polygons coordinates, but you could organize the x, y however you like once you access them. // add our feature layer to the map …
timlohnes's user avatar
  • 1,238
0 votes
1 answer
352 views

esri-leaflet edit multiple featureLayers

I'm trying to use the esri-leaflet example on editing (https://esri.github.io/esri-leaflet/examples/editing.html) to edit two different featureLayers. … First when I add a point with leaflet draw, I want it to automatically create a buffer around the point. …
timlohnes's user avatar
  • 1,238
0 votes
Accepted

Add Links to Leaflet Choropleth Map

Here is the updated section of your fiddle. Remove the zoomToFeature function and replace with stateLink. If you have the urls stored with the data, you wouldn't need to do this. Would just assign url …
timlohnes's user avatar
  • 1,238
9 votes
Accepted

Adding offset to GeoJSON layer in Leaflet?

See a fiddle here, Leaflet Offset geojson Main code var myLines = [{ "type": "LineString", "coordinates": [[-100, 40], [-105, 45], [-110, 55]] }, { "type": "LineString", "coordinates": [[-110 …
timlohnes's user avatar
  • 1,238