Coder Social home page Coder Social logo

leaflet-ugeojson's People

Contributors

benjaminvadant avatar bettse avatar dsanz-hiberus avatar glmaljkovich avatar jmvivo avatar peterbaumert avatar v-zaburdaev avatar yanfeyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

leaflet-ugeojson's Issues

[QUESTION] Custom body

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!

MInimum Zoomlevel?

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).

ugeojson and clustering

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?

disable geojson update

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...

Add marker title/icon?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.