benjaminvadant / leaflet-ugeojson Goto Github PK
View Code? Open in Web Editor NEWA leaflet plugin that updates a geojson layer each time the user move the map
License: MIT License
A leaflet plugin that updates a geojson layer each time the user move the map
License: MIT License
Hi! Nice plugin!
I need to make a custom request with a body like: {"x": "42", "-y":"-2"}
but I can't achieve it. Can you give me some help?
Thanks!
Hi!
Thanks very much for this plugin, it's really helpful!
Is there any way to pull the marker title/alt/icon from the GeoJSON when it's creating the markers layer?
I've set some properties and options which is fine, but it doesn't appear to get used anywhere.
Here's an example point that I'm working with:
{
"type":"Feature",
"geometry": {
"type":"Point",
"coordinates": [-121.917961,37.879574]
},
"properties": {
"id":56,
"time":"Early Morning (12am-6am)",
"type":"Live Sighting",
"species":"Mountain Lion, Puma Concolor",
"verification":"Confirmed"
},
"options": {
"title":"Sighting: Confirmed, Mountain Lion, Puma Concolor, Live Sighting",
"alt":"Sighting: Confirmed, Mountain Lion, Puma Concolor, Live Sighting"
}
}
I'm in full control of the JSON that gets passed, but not sure how to get it to "talk" to Leaflet.
Thank you!
Hi
Is it possible yo use ugeojson and cluster points?
I tried Leaflet.markercluster with ugeojson but i see 2 layers at the same time, the clustered one and the non-clustered. Here's what i tried:
var markers = L.markerClusterGroup();
lPoints=L.uGeoJSONLayer({endpoint:"getPoints.php", after: after}).addTo(map);
function after(data) {
markers.clearLayers();
markers.addLayer(lPoints);
map.addLayer(markers);
}
Any idea?
Is there an option to set a minimum zoomlevel required? While I would be able to do this on the server side, I would not consider this the best way to go.
And a second question. How would one bind an action to clicking an object in geojson layer?
Currently I have this very simple code:
http://camping.openstreetmap.de/map/
But these are the two things I would need to make it do what it should (besides a better web-design of course).
Cheers
Hi
Is it possible to temporarily disable updating geojson layer when moving map?
I have lots of points that are loaded into map, sometimes i want to move map to another area but dont want to fetch and display points in between...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.