geoJSON Layer Type works fine if giving arbitrary
GeoJSON Data on (/admin/structure/openlayers/layers/list/).
However, if using the URL option it is breaking the openlayers map. If it is set up to use URL (without any
GeoJSON Data) and this layer is enabled then the map is not displayed at all.
This issue is caused by how the geoJSON data is being loaded when the BBOX option is disabled.
If the BBOX option is enabled it loads correctly because it is being loaded from another part of the code.
In addition, the logic used to choose the BBOX strategy could share some common code with other strategies as well.
- Change how the geoJSON URL is loaded, making it similar to the code used for BBOX strategy.
- Share code between
Fixed, and other possible strategies. Only the strategy type must be changed, all the remaining loading code is the same.
edit: moved this issue to openlayers module as the patch is against one of its files.
edit: added better issue description