On Jul 16, 2010, at 9:40 AM, ext Ian Turton wrote: > On Thu, Jul 15, 2010 at 10:13 PM, <[email protected]> wrote: >> Hi, >> >> I have a map that I think should work at: >> >> http://crschmidt.net/mapping/mas/wfs-states.html >> >> This is a minimal modification of the wfs-states.html included in the >> examples. >> >> Specifically, I've added: >> * Proj4js lib >> * <script >> src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script> >> >> And modified the layer to be a simple layer that requires reprojection. >> >> var wfs = new OpenLayers.Layer.Vector("States", { >> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], >> protocol: new OpenLayers.Protocol.WFS({ >> url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs", >> version: '1.0.0', > > I think you'll need to use version 1.1.0 of the WFS spec to get > reprojection. 1.0 only supports 4326.
Reprojection should be working on the client side; there's an example of it in: http://openlayers.org/dev/examples/wfs-reprojection.html "In the case where the projection of a vector layer differs from the projection of the map, features are requested in the layer projection and transformed during parsing. It is assumed that the layer projection is "native" projection of the data (the coordinate reference system of the data on the server)." Additionally, though this map doesn't work in Safari when I first load it, when I zoom in or out, the map *does* load. (In Firefox, it doesn't at all.) So this seems like it's more complex than "ur doin it wrong", though maybe I'm still missing something obvious. Regards, -- Christopher Schmidt Nokia _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
