Re: [OpenLayers-Users] How to add a an overlay on top of a map?

2009-01-21 Thread Gregor at HostGIS
newbie wrote: > want to add a layer where I can like draw polygon and capture the > coordinates accordingly. How can I do this ? In my opinion, the #1 rule of "How do I... in OpenLayers" is to look over the rich set of examples. The examples include drawing and capturing shapes, rendering commer

[OpenLayers-Users] How to add a an overlay on top of a map?

2009-01-21 Thread newbie
Dear All, I am using geoserver and managed to put a sample shapefile and able to view my simple map well. The problem now is that on top that map I want to add a layer where I can like draw polygon and capture the coordinates accordingly. How can I do this ? Thanks. -- View this messag

Re: [OpenLayers-Users] FEatures orders

2009-01-21 Thread darrepac
darrepac wrote: > > > > >> You decide. Not the absolute z-index, only the order is relevant >> (greater than / less than comparison). This z-index also has nothing >> to do with the CSS z-index. >> >> > > Ok but I just want to know example value to not put stupid value which > will make t

Re: [OpenLayers-Users] FEatures orders

2009-01-21 Thread darrepac
> You decide. Not the absolute z-index, only the order is relevant > (greater than / less than comparison). This z-index also has nothing > to do with the CSS z-index. > > Ok but I just want to know example value to not put stupid value which will make the features below the map for example.

Re: [OpenLayers-Users] [OpenLayers-Dev] SelectFeature Control Ticket #1666 (new feature)

2009-01-21 Thread Andreas Hocevar
2009/1/21 Andre Pereira de Matos : > Does anyone know if this ticket about select feature control firing events > on multiple layers (not just in the topmost layer) will be released soon? It fires events *only* on the layer that the selected feature belongs to. Not in the topmost layer that the co

Re: [OpenLayers-Users] Looking for Openlayers.js patched (Ticket #1666)

2009-01-21 Thread Andreas Hocevar
Hi, On Tue, Jan 20, 2009 at 11:24 AM, Stefano Bonnin wrote: > I'm looking for an Openlayers.js patched with singleroot.3.patch (see > Ticket #1666) > I have tryed to apply the patch but without success. The patch applies fine to the current trunk. See http://trac.openlayers.org/wiki/ApplyingPatc

Re: [OpenLayers-Users] FEatures orders

2009-01-21 Thread Andreas Hocevar
On Sun, Jan 18, 2009 at 10:29 PM, darrepac wrote: > > > > Andreas Hocevar-2 wrote: >> >> You could use z-indexing on the layer. See >> http://www.openlayers.org/dev/examples/ordering.html for an example. >> >> You would probably have to sort your features by size, and create >> ascending z-indices

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Amos Hayes
Hi Eric. Yes, I realize that and would love to see it. Since interaction use cases were part of the conversation, I just thought you might be interested in an example of a select/hover/ styling use case that a built-in solution should be able to address. It seems to me it would be a very co

Re: [OpenLayers-Users] Programatically Select a Feature

2009-01-21 Thread Arnd Wippermann
Hi, With the Select Control I do it this way: ctrlSelectFeatures = new OpenLayers.Control.SelectFeature(... ctrlSelectFeatures.select(vlyr.features[idx]); The reference to the feature have to come from your select box. An example for the Select Control can be seen here: http://gis.ibbeck.de/

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Eric Lemoine
Yeah, we can't solve that issue without storing some state in a location shared by every control, the feature itself seems the good spot. Eric 2009/1/21, Alexandre Dube : > Hey Eric, Ivan, > > That issue could occur if both controls would actually change the > renderIntent of the feature ( with

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Eric Lemoine
Hi Amos What we're trying to do here is come up with code design that doesn't require creating new controls. Eric 2009/1/21, Amos Hayes : > > We've had to implement separate select and hover functionality on top > of select feature. If you like, have a look at this work in progress: > > http://a

Re: [OpenLayers-Users] [OpenLayers-Dev] SelectFeature Control Ticket #1666 (new feature)

2009-01-21 Thread Christopher Schmidt
On Wed, Jan 21, 2009 at 02:40:45PM +, Andre Pereira de Matos wrote: > Can I use the patch now? What can I do to have this feature? This code is still in development. As with all code still in development, it is subject to change. The code is open source: you *can* do anything you want with it.

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Amos Hayes
We've had to implement separate select and hover functionality on top of select feature. If you like, have a look at this work in progress: http://atlas.gcrc.carleton.ca/kitikmeot/ -- Amos Hayes Geomatics and Cartographic Research Centre Carleton University aha...@gcrc.carleton.ca +1.613.520.2

[OpenLayers-Users] Programatically Select a Feature

2009-01-21 Thread Dizzle
I have a modify control on a map, and there are multiple features on that map. I also have an associated option for each feature in a select box on the page. When the user changes the select box, I'm having trouble figuring out how to automatically select that feature on the map for use by the m

[OpenLayers-Users] SelectFeature Control Ticket #1666 (new feature)

2009-01-21 Thread Andre Pereira de Matos
Hi devs and users, Does anyone know if this ticket about select feature control firing events on multiple layers (not just in the topmost layer) will be released soon? Can I use the patch now? What can I do to have this feature? Regards, André Matos http://maps.sapo.pt

Re: [OpenLayers-Users] Projection problem

2009-01-21 Thread David Martinez Morata
Thanks for your answere! But after a great War with all the logs files, html files, map files I WIN!!! Just a estrange space characters in javascript code. Thanks for every body Martinez Morata David *Thinking GIS* 2009/1/21 Christopher Schmidt > > I think you're really not providing enough in

Re: [OpenLayers-Users] SelectFeature control and click event on marker

2009-01-21 Thread Alexandre Dube
Currently, OpenLayers doesn't support feature selection from multiple layers with a unique selectfeature control. But developers are working on this. See Andreas last answer : http://n2.nabble.com/Problem-with-multiple-SelectFeature-controls-td2156949.html#a2156949 Best regards, Alexandre Wal

Re: [OpenLayers-Users] Hover control sample (share)

2009-01-21 Thread Alexandre Dube
Hey Eric, Ivan, That issue could occur if both controls would actually change the renderIntent of the feature ( without actually selecting the feature ). Let's assume that you can only have one feature hovered at a time ( only one feature can be hovered by the mouse). That said, we could h

Re: [OpenLayers-Users] Request & ProxyHost Question

2009-01-21 Thread Christopher Schmidt
On Wed, Jan 21, 2009 at 02:29:29AM -0700, Tim Schaub wrote: > Hey- > > Semantica wrote: > > Hi all, > > > > I am considering doing my getLegend requests via XMLHTTPRequest instead of > > img.src and have run into the common problem of cross-site scripting errors. > > Does someone have an example

Re: [OpenLayers-Users] Projection problem

2009-01-21 Thread Christopher Schmidt
On Wed, Jan 21, 2009 at 11:43:44AM +0100, David Martinez Morata wrote: > Ok > > I test change the vector layer for a epsg:27572 code (my layers are in this > SRS) ands i have the same problem > I think I couldn't make two reprojections of my layers in the server.(?) > Thnks for any other sugestion

Re: [OpenLayers-Users] Projection problem

2009-01-21 Thread David Martinez Morata
Ok I test change the vector layer for a epsg:27572 code (my layers are in this SRS) ands i have the same problem I think I couldn't make two reprojections of my layers in the server.(?) Thnks for any other sugestion 2009/1/20 Arnd Wippermann > Hi, > > perhaps the projection EPSG:900913 is not

[OpenLayers-Users] wrong PX-Coordinates in IE as result of getMousePosition?

2009-01-21 Thread Marc Jansen
Hi list, I experienced differences in the returned values from getMousePosition in IE 6 compaired to FF 3. I am not 100% sure but it might be related to this bug: http://trac.openlayers.org/ticket/1268 My setup is as follows: a map without border, margin or text-align specified (but with regular

Re: [OpenLayers-Users] Request & ProxyHost Question

2009-01-21 Thread Tim Schaub
Hey- Semantica wrote: > Hi all, > > I am considering doing my getLegend requests via XMLHTTPRequest instead of > img.src and have run into the common problem of cross-site scripting errors. > Does someone have an example on how to work around this issue using a > proxy-host or something else? Out

Re: [OpenLayers-Users] SelectFeature control and click event on marker

2009-01-21 Thread Walter Lorenzetti
Eric Lemoine ha scritto: > Hi > Hi Eric, and thanks for reply > You can configure your select feature control with multiple:true. > I try but nothing else... Sorry but I explain me bad: On my OL application I've a WFS layer and several MARKERS layer clickable with popup I'd like open a popu

Re: [OpenLayers-Users] SelectFeature control and click event on marker

2009-01-21 Thread Walter Lorenzetti
Eric Lemoine ha scritto: > Hi > Hi Eric, and thanks for reply > You can configure your select feature control with multiple:true. > I try but nothing else... Sorry but I explain me bad: On my OL application I've a WFS layer and several MARKERS layer clickable with popup I'd like open a popu