I am having trouble loading a geoJSON layer (below is my defintion). everything works fine when I read the file locally in a web browser e.g. file:///Z:/inetpub/wwwroot/bang.html however when I try to access the site through the doman e.g www.daverules.com/bang.html none of my geoJSON layers show up.
it should also bear mentioning that I have a couple of leaflet maps that will load geoJSON with similar url's without issue.
var wellsLayer = new ol.layer.Vector({ source: new ol.source.GeoJSON({ projection: 'EPSG:3857', url: "./data/WELLS.geojson" }), name: 'Wells', style: customStyleFunction }); any help would be appreciated. response from the serve is as follows. it shows file not found however I am pretty sure its there. GET http://daverules.com/data/WELLS.geojson 404 (Not Found)
أكثر...
it should also bear mentioning that I have a couple of leaflet maps that will load geoJSON with similar url's without issue.
var wellsLayer = new ol.layer.Vector({ source: new ol.source.GeoJSON({ projection: 'EPSG:3857', url: "./data/WELLS.geojson" }), name: 'Wells', style: customStyleFunction }); any help would be appreciated. response from the serve is as follows. it shows file not found however I am pretty sure its there. GET http://daverules.com/data/WELLS.geojson 404 (Not Found)
أكثر...