[OpenLayers-Users] Custom Toolbar

2010-04-15 Thread Andrew Haigh
OpenLayers 2.9 RC 2 I'm attempting to create a custom tool and toolbar class but I seem to be running into an issue with the custom toolbar. Here is my code below ZoomToAgreementExtent = OpenLayers.Class(OpenLayers.Control, { type: OpenLayers.Control.TYPE_BUTTON, trigger: function() {

Re: [OpenLayers-Users] zoomToScale Issue

2010-03-19 Thread Andrew Haigh
Bart, I don't set a list of fixed scales / resolutions and I have now set the fractionalZoom and everything is now sorted and working ok. Thanks Andrew On 17 March 2010 09:38, bart...@osgis.nl wrote: Hi, how is your map instantiated? With a fixed set of scales/resolutions? Or are you

[OpenLayers-Users] Vector Layer Labels

2010-03-18 Thread Andrew Haigh
OpenLayers Nightly Build Revision 10086 GeoServer 2.0.1 I'm attempting to label a vector layer using a Style Layer Descriptor (see below) which works fine in GeoServer but the labels do not display in OpenLayers. I can do the same thing using the OpenLayers.Style object but I'd really like use

[OpenLayers-Users] zoomToScale Issue

2010-03-17 Thread Andrew Haigh
All, I'm using OpenLayers (latest trunk version) with GeoServer 2.0.1 to display various layers which have scale rules defined on them within the GeoServer SLD (i.e. MaxScaleDenominator and / or MinScaleDenominator). I initially found that the scale in OpenLayers didn't match that in GeoServer

Re: [OpenLayers-Users] zoomToScale Issue

2010-03-17 Thread Andrew Haigh
Hi, Thanks for your help, that is correct I was using a WMS without any fixed resolution / cached layers. Adding the code you suggested resolved this issue. Many thanks Andrew On 17 March 2010 13:01, Mapmaker bmcbr...@chacompanies.com wrote: If you are using WMS without fixed-resolution or

Re: [OpenLayers-Users] Filtering a WFS Layer

2010-03-15 Thread Andrew Haigh
: [feature.fid] }) On Fri, Mar 12, 2010 at 11:23 AM, Andrew Haigh haighaj+oll...@googlemail.com haighaj%2boll...@googlemail.com wrote: I'm attempting to work out how to apply a filter to a WFS layer (from GeoServer 2.0.1), I've looked at the examples / documentation / forums and there seems

[OpenLayers-Users] WFS Layer / Vector Layer

2010-03-10 Thread Andrew Haigh
All, I'm relatively new to OpenLayers and I have downloaded version 2.8 from the website (Revision 9492) and I am attempting to use it with GeoServer 2.0.1. I have successfully added an OpenLayers.Layer.WFS layer using the following: var wfsLayer = new OpenLayers.Layer.WFS( WFS,

Re: [OpenLayers-Users] WFS Layer / Vector Layer

2010-03-10 Thread Andrew Haigh
Bart, Thanks for that your first suggestion seems to have resolved the problem and I can now see the requests in Fiddler :) Is there a way to force the WFS layer to use HTTP Get rather than Post for requests? Thanks Andrew On 10 March 2010 10:29, bart...@osgis.nl wrote: Hi, don't use the

Re: [OpenLayers-Users] WFS Layer / Vector Layer

2010-03-10 Thread Andrew Haigh
Bart, No I can't think of a good reason to use Get over Post, I just wondered if it was possible. Thanks for your assistance Andrew On 10 March 2010 11:52, bart...@osgis.nl wrote: Hi Andrew, nope, only POST is supported. Why would you want GET? I had this discussion with Tim Schaub in the