[OpenLayers-Users] Geojson not showing on map

adityakumar529 adityakumar529 at gmail.com
Sun Sep 13 10:04:43 PDT 2015


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
http://xhr.spec.whatwg.org/.

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

Thanks in advance




-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geojson-not-showing-on-map-tp5224001.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list