Florian Bischof

Results 294 comments of Florian Bischof
trafficstars

Can you pls post your data & code

Pls post also the output of the console: ``` setTimeout(function() { console.log(JSON.stringify(layersGeoJSON.toGeoJSON())); var sliderControl = L.control ..... } ```

The silder is working correct, your data from the db are wrong. Second polygon: ` var data = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-16.893112,32.751589],[-16.903291,32.7509],[-16.902947,32.756097],[-16.908789,32.757974],[-16.912054,32.755376],[-16.9136,32.749745],[-16.920664,32.75182],[-16.941184,32.7616],[-16.92671,32.732156],[-16.893112,32.751589],[-16.893112,32.751589],[-16.903291,32.7509],[-16.902947,32.756097],[-16.908789,32.757974],[-16.912054,32.755376],[-16.9136,32.749745],[-16.920664,32.75182],[-16.941184,32.7616],[-16.934735,32.741515],[-16.941092,32.743537],[-16.94281,32.74267],[-16.946591,32.743248],[-16.949512,32.736895],[-16.951745,32.733574],[-16.949855,32.732852],[-16.943154,32.738194],[-16.93336,32.737328],[-16.92671,32.732156],[-16.893112,32.751589]]]}}]}" ` ``` // Add polygon var geojson = L.geoJSON(JSON.parse(data)); mymap.fitBounds(geojson.getBounds()); ```...

Maybe this is not a problem of geojson: ``` getting data from database coordinates = [coords[1], coords[0]] LatLng.push(coordinates ); ``` You pushing the data to the `LatLng` array but maybe...

Hi @geyerbri you have done nice work. Maybe you can create a new fork/branche from my master and update your code to the branche and then make a pull request...

Hi @geyerbri, I fixed the problem. It was because normal markers have no `feature` (geojson) property

Fixed in https://github.com/Falke-Design/LeafletSlider

The Silder is working with Leaflet Layergroups (Featuregroup & GeoJson group). You can't add plain json data. You can create a FeatureGroup and then add it to the Slider: ```...

The dates are sortet by default from the smallest to the largest. You can reverse it with `orderDesc: true` Options: ``` orderMarkers: true, orderDesc: true, ``` I don't know if...

Fixed in https://github.com/Falke-Design/LeafletSlider