Active
Project:
Leaflet
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2016 at 12:38 UTC
Updated:
15 Feb 2016 at 08:03 UTC
Jump to comment: Most recent
Am I doing something wrong, but here's my data. I've tested it on http://geojson.io/#map=8/50.347/30.704 where it's displayed as supposed. But when it put into geojson field, data is not displayed.
Comments
Comment #2
skolesnyk commentedExpected behaviour:
https://imgur.com/e4GTDY4
Comment #3
skolesnyk commentedI think this is should be treated as bug. Please, help.
Comment #4
robertwb commented@skolesnyk - this may well be a bug, but I am usure now if this is with the base Leaflet js library, or with our implementation of it. In other words, your pastebin example, which is quite helpful, uses the mapbox implementation of leaflet which has a few customizations. Dos your json work if you load it in a normal Leaflet map (not mapbox lib) outside of drupal?
Comment #5
skolesnyk commentedWhere can I test feed json data to non drupal leaflet map?
Comment #6
robertwb commentedI think this may get you where you want to go: http://leafletjs.com/examples/geojson.html
Comment #7
skolesnyk commentedMy data was standard: first is coordinates of the outer polygon, then coordinates of the inner (hole) polygon. As in https://gis.stackexchange.com/a/150820/66385 and https://jsfiddle.net/goldrydigital/wo060nos/