Skip to main content
24 events
when toggle format what by license comment
S Aug 16, 2021 at 13:19 history bounty ended Geographos
S Aug 16, 2021 at 13:19 history notice removed Geographos
Aug 16, 2021 at 13:19 vote accept Geographos
Aug 14, 2021 at 13:48 answer added TomazicM timeline score: 1
S Aug 13, 2021 at 10:50 history bounty started Geographos
S Aug 13, 2021 at 10:50 history notice added Geographos Canonical answer required
Aug 13, 2021 at 7:32 comment added Geographos OK, so why are they undefinied? Should I move them somewhere beneath?
Aug 12, 2021 at 17:01 comment added TomazicM If you set a breakpoint at L.control.layers(maptiles, overlays).addTo(map);, you'll see that annular, hybrid and total are all undefined at the time of the call. Here ends my debugging.
Aug 12, 2021 at 16:39 comment added Geographos Uploaded, still the same mate. I don't know where the problem is
Aug 12, 2021 at 16:02 comment added TomazicM This is my last try: you are using grouped layer overlays syntax for creation of standard layers control, as I wrote in my second comment. Use normal Leaflet syntax, which has no groups.
Aug 12, 2021 at 15:18 comment added Geographos I have uploaded the website
Aug 12, 2021 at 15:14 comment added Geographos Yes, because I have removed the issue. Let me upload it for you
Aug 12, 2021 at 14:57 comment added TomazicM But this is the working version, not the one that does not work. There are no overlays in the layer control.
Aug 12, 2021 at 13:56 comment added Geographos Ok, @TomazicM please inspect this website. It's my current stage of work: eclipse.mkrgeo-blog.com
Aug 12, 2021 at 12:21 comment added TomazicM This is not full working JSFiddle. All the data is missing (like 20240408.js and so on) and many libraries are also missing (like Leaflet.GoogleMutant.js, leaflet.groupedlayercontrol.js and so on).
Aug 12, 2021 at 11:30 comment added Geographos only the with the first element is working when I set: L.control.layers(maptiles).addTo(map); nothing else unfortunately
Aug 12, 2021 at 11:21 comment added Geographos I've attached the full jsfiddle for it: jsfiddle.net/okezw4dL
Aug 12, 2021 at 11:19 comment added TomazicM This is then just question of debugging. Without having your code it's more or less impossible to find out what goes wrong. Your JSFiddle is missing data. Limit it to less data and include data in the code.
Aug 12, 2021 at 10:59 history edited Geographos CC BY-SA 4.0
error text added
Aug 12, 2021 at 10:39 comment added Geographos I've tried with the basic Leaflet Geojson example leafletjs.com/examples/geojson and it's still the same
Aug 11, 2021 at 17:02 comment added TomazicM First try with standard Leaflet layer control L.control.layers(maptiles, overlays).addTo(map); and see if everything works. To make this control work, overlays must have standard Leaflet structure (same as maptiles), not the one for L.control.groupedLayers.
Aug 11, 2021 at 16:45 comment added timlohnes Hey MKR, At first glance, looks like you have a lot going on in there. I'm no expert, but I think the data needs to be loaded first. I moved the bottom 3 geojson bits to the top. Then it says things like can't find A23, etc. Where is the data for Annular, etc? Then looks like some typos, layer.feature.properties.descriptio, missing 'n'. I would start way simple with the example from github, get it running, then 1 by 1 add new features.
Aug 11, 2021 at 11:29 history edited Geographos CC BY-SA 4.0
code added
Aug 11, 2021 at 10:40 history asked Geographos CC BY-SA 4.0