[OpenLayers-Users] Open Layers Selection Methods

2010-03-11 Thread Chris Gountanis
Hello I was playing with direct OL function select: new OpenLayers.Control.SelectFeature but there seems to be no example documentation on who to format what layers and what to return. I am getting errors and when I turn multiple on I don't know what to change as the documentation does not have

Re: [OpenLayers-Users] Open Layers Selection Methods

2010-03-11 Thread Bart van den Eijnden
SelectFeature only works on OpenLayers.Layer.Vector. So vector layers only, no image layers. I think what you are looking for is OpenLayers.Control.WMSGetFeatureInfo, but the real drill-down (on several services) is only available in OpenLayers trunk, see:

[OpenLayers-Users] show two layers with different projections

2010-03-11 Thread GeoGEOrge
I am trying to use openlayers to display a raster with projection EPSG:4326 and a vector layer with projection EPSG:2249. I am able to display each separately, but I cannot get the vectors to show on top of the raster. both are WMS layers served by GeoServer 2.0.0 var options = {

Re: [OpenLayers-Users] handle right mouse click

2010-03-11 Thread mario1...@libero.it
Hi, I've notice that the right mouse click remove the first line drown (not the last one) durning the polygon drawing. Instead the route drawing works fine. Is it possible to do the same thing with polygons? Regards, Mario I have achieved this by changing the mousedown handler in

Re: [OpenLayers-Users] show two layers with different projections

2010-03-11 Thread Robert Sanson
When a server such as Geoserver or Mapserver can support more than one projection, OpenLayers needs to send a request to return each layer in the same projection used by your map, otherwise the server may not know to send it in the correct projection, in which case the data will not line up in

Re: [OpenLayers-Users] show two layers with different projections

2010-03-11 Thread M_Airola
Ummm. I wonder what happens if you try the following: Try putting your data over Google. (By the way, this will only work on a local machine unless you have an API key which is free, but I didn't include it in my example: script

Re: [OpenLayers-Users] show two layers with different projections

2010-03-11 Thread GeoGEOrge
Thank you for the suggestion and the code to try. I get the similar results: I get the google street map with a big white square on it that extends from the north pole to the south pole. If I change it so both google and polygon are baselayers, I can zoom in on the google streetmap to the right

[OpenLayers-Users] How to programmatically open/close Popup?

2010-03-11 Thread Stephen Woodbridge
Hi all, I have an OpenLayers.Popup.FramedCloud popup that contains a form for entering/editing a features attributes. The form has a save button with an onClick function attached that needs to save the data to the server then close the popup. Currently the button only issue an alert. How can

[OpenLayers-Users] Popup bug/problem when popup causes the map to pan

2010-03-11 Thread Stephen Woodbridge
Hi all, I have a problem when I open a popup that causes the map to pan so it fits on the view, that popup seems to be damaged because when you manually try to close it by the close box it throws a JS error. This can be reproduced here:

Re: [OpenLayers-Users] Questions on using Protocol.HTTP and custom XML to load/edit features

2010-03-11 Thread Stephen Woodbridge
Eric Lemoine wrote: On Monday, March 8, 2010, Stephen Woodbridge wood...@swoodbridge.com wrote: OK, to partially answer some of my own questions ... inline below. Stephen Woodbridge wrote: Hi all, I am trying to implement a vector layer that will allow editing point data. The data is

Re: [OpenLayers-Users] Questions on using Protocol.HTTP and custom XML to load/edit features

2010-03-11 Thread Stephen Woodbridge
Stephen Woodbridge wrote: Eric Lemoine wrote: On Monday, March 8, 2010, Stephen Woodbridge wood...@swoodbridge.com wrote: OK, to partially answer some of my own questions ... inline below. Stephen Woodbridge wrote: Hi all, I am trying to implement a vector layer that will allow editing