[OpenLayers-Users] Vector Layer from GeoJSON with server-side defined callback
Morescratch
morescratch at live.com
Thu Jun 18 08:59:20 PDT 2015
Hi all,
I am trying to load a geoJSON file from:
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonp
As you can see the response includes a server-side defined callback
parameter. The resource will not get returned if anything is added to URL
(e.g. ?callback=somegnarlycallbackparameter). Here is what I have so far:
protocol: new OpenLayers.Protocol.Script( {
url:
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonpL,
callbackKey: '',
callbackTemplate: '',
format: new OpenLayers.Format.GeoJSON( { ... } )
....
} );
Using that the request URL is:
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonp?=
Which still gets refused by the source.
Any ideas?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Vector-Layer-from-GeoJSON-with-server-side-defined-callback-tp5211719.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list