Re: [OpenLayers-Users] Set Z-Index of a Feature

2009-01-27 Thread Dizzle
"); I've tried things like this: selectedFeature.style = OpenLayers.Util.applyDefaults({ graphicZIndex: 1}, OpenLayers.Feature.Vector.style['default']); to no avail. Any help would be appreciated. - Dom Andreas Hocevar-2 wrote: > > Hi, > > On Tue, Jan 27, 2

[OpenLayers-Users] Set Z-Index of a Feature

2009-01-27 Thread Dizzle
I have a vector layer that contains many polygons created using wkt.read(...). Is it possible to programatically set the z-index of a polygon? For example, a user can select a polygon that may have polygons inside of it. Once the outer polygon is selected, the user cannot select an inner polygo

[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] Show Limited Area of Map

2008-11-21 Thread dizzle
I have a polygon in my map and I would like the map to only display the bounds that contains the polygon. I believe I have to code correct, but it is showing more than the bounds. I have tried setting the second parameter in zoomToExtent to both true and false. True cuts off the polygon, false

Re: [OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-11-06 Thread dizzle
to the sandbox. Let me > do it and go back to you... Eric > > 2008/10/29, dizzle <[EMAIL PROTECTED]>: >> >> I'm not familiar with what vector rendering is when it comes to browsers, >> so >> can someone explain to me why >> http://dev.openlayers.org

Re: [OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-10-29 Thread dizzle
Thanks for the info. Do I have to write my own line snapping, or is there a js include that I need to add? Thanks again. Kenneth Skovhede, GEOGRAF A/S wrote: > > IE supports VML, everyone else supports SVG. > OpenLayers tries to detect what type of vector rendering to use. > Due to a bug in O

[OpenLayers-Users] Firefox Vector Rendering in Modify Feature Example

2008-10-29 Thread dizzle
I'm not familiar with what vector rendering is when it comes to browsers, so can someone explain to me why http://dev.openlayers.org/sandbox/camptocamp/feature/examples/modify-feature.html doesn't work in FF3 or FF2? I'm looking for the line and vertex snapping functionality, but I need it to wor

[OpenLayers-Users] Automatically Starting Line Drawing

2008-10-27 Thread dizzle
I have markers on a map, and when a marker is selected a popup opens with a button. When that button is clicked, a line DrawFeature is activated. I was wondering if it was possible to have the first point in the line automatically clicked where the original marker's location is. The point of th