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.

http://pastebin.com/rJZZP0P5

Comments

skolesnyk created an issue. See original summary.

skolesnyk’s picture

Issue summary: View changes

Expected behaviour:
https://imgur.com/e4GTDY4

skolesnyk’s picture

Category: Support request » Bug report

I think this is should be treated as bug. Please, help.

robertwb’s picture

@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?

skolesnyk’s picture

Where can I test feed json data to non drupal leaflet map?

robertwb’s picture

I think this may get you where you want to go: http://leafletjs.com/examples/geojson.html

skolesnyk’s picture

My 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/