The follo I'm using the following code to get to know, for each approximate neighbourhood, the name of all hotels inside. The neighbourhood has no precise boundaries, but it's rather represented by a buffer around each neighbourhood which is just a point data. Both neighbourhood and points of interest (it.poi.accomodation) are in EPSG:4326 The following code is working, but it's calculating the radius of the buffer in grades. I would need to set meters instead.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Vincent Dc
Leaflet Easybutton to load zipped shapefiles - and Geojson, kml, gpx.. not giving properties except for shapefile
The following code allows for loading local shapefiles, geojson, kml and gpx, but items properties are not the same. only shapefiles will return its properties with a bindpopup of global properties.
Retrieve geometry from GeoJSON to L.polygon in Leaflet?
Since I have a problem with Leaflet draw, which, unfortunately is discontinued, I'm trying to rely on Leaflet editable for editing: before I learn how to save edits, I just want to retrieve a polygon from my database as a L.polygon that Leaflet editable can read. About the code: this is Leaflet CRUD , available on github, modified, relying on Leaflet draw. This is the state of the code: the data is read through the ajax call and is retrieved as geojson or featuregroup...
leaflet.js: Retrieve geometry from geojson to L.polygon
Good afternoon, since I have a problem with leaflet draw, which, ununderstandably is discontinued, I'm trying to rely on leaflet editable for editing: before i learn how to save edits , i just want to retrieve a polygon from my database as a L.polygon that leaflet editable can read. About the code: this is Leaflet CRUD , availiable on github, modified, relying on leaflet draw. This is the state of the code: the data is read but is not passing to the L.polygon.
Tell the loading state of any of these layers (Leaflet Basemap control)
Asked today Viewed 3 times What is the javascript command to know the loading state of the current layer ? this example is using Leaflet Basemaps control (https://github.com/consbio/Leaflet.Basemaps) I'd like to know is the layer is loading, with 'true' or 'false', when the page loads or when I move the map.
Leaflet : extract object (through its object) and submit it to turf function
Asked today Viewed 3 times A Leaflet layer holds some objects and each one has a bindpopup enabled, now I can't pass a single of these objects to a turf function.
Leaflet.js transfer information of a point: latitude, longitude, feature properties and variables, to a function
Asked today Viewed 10 times I'm trying to extract some information from a L.geojson feature of the map, containing points, through a newly created button inside a BindPopup feature, pointing to a function. Such function then writes the information to the cookies, and calls a PHP file through Ajax to write a new point in a Postgis database, with hopefully some informations attached.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Vincent
Contact Vincent, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack