From 75d33a61b967f05f4a78a9836d1a41f74b278b50 Mon Sep 17 00:00:00 2001 From: mmebsout Date: Thu, 14 Jun 2018 17:17:52 +0200 Subject: [PATCH] Update JsonProvider.js Add dataType do ajax request of Json FeatureCollection. Without this getting json from this cross-domain example url won't work (https://raw.githubusercontent.com/jdomingu/ThreeGeoJSON/master/test_geojson/countries_states.geojson) --- src/mizar/js/JsonProvider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mizar/js/JsonProvider.js b/src/mizar/js/JsonProvider.js index 4a3c1b8..a5a30cc 100644 --- a/src/mizar/js/JsonProvider.js +++ b/src/mizar/js/JsonProvider.js @@ -38,6 +38,7 @@ function handleJSONFeature( gwLayer, configuration ) $.ajax({ type: "GET", url: configuration.url, + dataType: configuration.type, success: function(response){ JsonProcessor.handleFeatureCollection( gwLayer, response ); gwLayer.addFeatureCollection( response );