[OpenLayers-Users] Vector layer returns entire data set
Rohan Parkes
rohan.parkes at pelicancorp.com
Wed Aug 4 18:52:16 EDT 2010
My original response is still in moderation, so I should just report that I have discovered that I have to add the maxExtent property in the vector layer. It works properly now.
Still, it’s surprising that none of the examples I saw needed to do that. I thought the maxExtent value would bubble up to the overlay from the base layer. Also puzzled by the nonsensical values that were being passed by the layer to the server.
Rohan Parkes
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Bartlomiej Burkot
Sent: Saturday, 31 July 2010 01:20
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] Vector layer returns entire data set
Hi Rohan
1) include the Singapore’s projection proj4js definition :
<script src="proj4js/lib/proj4js.js <view-source:http://mapakrakow.pl/%7Ebbarni/mk4/proj4js/lib/proj4js.js> "></script>
<script src="proj4js/lib/defs/EPSG3414.js <view-source:http://mapakrakow.pl/%7Ebbarni/mk4/proj4js/lib/defs/EPSG2180.js> "></script>
2) Configure proxy server:
OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";
(geoserver work on port 8080)
3) featureNS - it should be the same URL you provided to GeoServer when you created the namespace.
4) check your stylemap object
5) don't use the namespace prefix in the featuretype.
(http://comments.gmane.org/gmane.comp.gis.openlayers.user/12319)
{
url: "/MyApp/Proxy.ashx",
featureType: "boundary",
featurePrefix: "mystore",
version: "1.1.0"
})
6) use:
srsName: "EPSG:3414",
in Your protocol: new OpenLayers.Protocol.WFS
7) try to add: featurePrefix: and schema: parameters to OpenLayers.Protocol.WFS
BR
Bartek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100805/b822fcf8/attachment.html
More information about the Users
mailing list