From m.manso at upm.es Wed Nov 7 06:27:38 2012 From: m.manso at upm.es (Miguel-Angel Manso-Callejo (UPM)) Date: Wed, 07 Nov 2012 15:27:38 +0100 Subject: [OpenLayers-Dev] Cross-domain problem with a external vector layer in format GeoJSON or GeoJSONP Message-ID: <509A6FDA.8010300@upm.es> Dear all, I'm trying to add a dinamic layer of earthquakes over a tiled WMS layer. Feeds of earthquakes are provided by USGS (http://earthquake.usgs.gov/earthquakes/feed/) in different formats included GeoJSON and GeoJSONP. I have included next Jscript to add the vector layer var vector_layer = new OpenLayers.Layer.Vector("GeoJSON", { projection: "EPSG:4326", strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: "http://earthquake.usgs.gov/earthquakes/feed/geojson/2.5/day", format: new OpenLayers.Format.GeoJSON({ ignoreExtraDims: true }) }) }); map.addLayer(vector_layer); But none of the browsers (IE, FireFox or Chrome) shows the points of the earthquakes. Can any one help me, please? Best regards, Miguel A. Manso From ahocevar at opengeo.org Wed Nov 7 06:51:01 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 7 Nov 2012 15:51:01 +0100 Subject: [OpenLayers-Dev] Cross-domain problem with a external vector layer in format GeoJSON or GeoJSONP In-Reply-To: <509A6FDA.8010300@upm.es> References: <509A6FDA.8010300@upm.es> Message-ID: Hi, this question would be better suited for the openlayers-users list. If your layer is available in GeoJSONP format, you will want to use OpenLayers.Strategy.Script instead of OpenLayers.Strategy.Fixed. See http://openlayers.org/dev/examples/cross-origin.html for an example. Andreas. On Wed, Nov 7, 2012 at 3:27 PM, Miguel-Angel Manso-Callejo (UPM) wrote: > Dear all, > > I'm trying to add a dinamic layer of earthquakes over a tiled WMS layer. > Feeds of earthquakes are provided by USGS > (http://earthquake.usgs.gov/earthquakes/feed/) in different formats included > GeoJSON and GeoJSONP. > > I have included next Jscript to add the vector layer > > var vector_layer = new OpenLayers.Layer.Vector("GeoJSON", { > projection: "EPSG:4326", > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: > "http://earthquake.usgs.gov/earthquakes/feed/geojson/2.5/day", > format: new OpenLayers.Format.GeoJSON({ ignoreExtraDims: > true }) > }) > }); > map.addLayer(vector_layer); > > But none of the browsers (IE, FireFox or Chrome) shows the points of the > earthquakes. > > Can any one help me, please? > > Best regards, > Miguel A. Manso > _______________________________________________ > Dev mailing list > Dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ramotswa at gmail.com Wed Nov 7 08:42:12 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Wed, 7 Nov 2012 16:42:12 +0000 Subject: [OpenLayers-Dev] WMTS GetCap bug? Message-ID: Hello All, In combination with RD Hales we have come across something slightly strange, and were wondering if it was a change you were aware of. Basically, a wmts getCapabilities doc from a Geoserver v2.2 no longer has the