Geojson not showing on map

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Geojson not showing on map

Hi User,
I am trying to add a json layer on the map,.Its not showing any error but data is not coming on map.

var  geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", {
        styleMap: styleMap1,
                projection: epsg4326,
                strategies: [new OpenLayers.Strategy.Fixed()],
                protocol: new OpenLayers.Protocol.HTTP({
                    url: "http://localhost/data.php",
                    format: new OpenLayers.Format.GeoJSON()
Its just showing

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check

 Setting 'XMLHttpRequest.withCredentials' for synchronous requests is deprecated.
Please help me to add the json layer on the map..

Thanks in advance
GIS Developer