WFS Reprojection Example

reprojection, styling, stylemap, wfs, vector, advanced

Shows the use of the client side reprojection support.

This example shows client side reprojection. 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).

Also shown is styleMap for the layer with unique value rules. Colors are assigned based on the STATE_FIPS attribute.

See the wfs-reprojection.js source to see how this is done.