Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread geoman
Thank you - that code works great in IE. In Firefox, the lines disappear as you move the map with the hand tool. I tried to debug it, but I couldn't figure out the problem... Arnd Wippermann wrote: > > Hi, > > To get a visible center on the map, i create a vector layer with a > horizontal and

Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread Arnd Wippermann
Hi, To get a visible center on the map, i create a vector layer with a horizontal and a vertical line updated through map.events.register('move',...). You can test it with the following code. Run it in the firebug console. Arnd Wippermann map.events.register('move', map, function() { point

[OpenLayers-Users] How to build GML geometry

2008-09-09 Thread Lehtonen, Mika
Hi, one more beginners question: If I have let's say a Point Geometry in OL. How can I serialize or build a GML out of it. I tried it in many ways, but didn't succeed. - mika - ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/

Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread geoman
My image doesn't move with the map b/c I stuck it in the map_OpenLayers_ViewPort div (which I probably shouldn't do), so I don't need to recenter when the map moves. I do need to recenter when the window is resized, and there is a handy event for that: window.onresize; -Craig Eric Lemoine-3 wro

Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread geoman
Thanks for the code. It is much more elegant than my solution, but I tried it and it has the same problem - markers do not pick up events (like mouseover and click) when they are under the crosshairs. Btw, specifying the height and width of the image fixed my 'off-center' problem. Mike Quente

Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread Mike Quentel
OpenLayers.Control.Crosshairs = OpenLayers.Class.create(); OpenLayers.Control.Crosshairs.X = 320; OpenLayers.Control.Crosshairs.Y = 240; OpenLayers.Control.Crosshairs.prototype = OpenLayers.Class.inherit( OpenLayers.Control, { element: null, position: null, initialize: function(

Re: [OpenLayers-Users] center crosshairs?

2008-09-09 Thread Eric Lemoine
Hi. You can probably register a moveend listener and re-center the marker on each map move. Eric 2008/9/9, geoman <[EMAIL PROTECTED]>: > > Hello, > > I am trying to add a icon that is fixed at the center of a map, to show > where the center is when people are zooming. I didn't see a way to add an

[OpenLayers-Users] center crosshairs?

2008-09-09 Thread geoman
Hello, I am trying to add a icon that is fixed at the center of a map, to show where the center is when people are zooming. I didn't see a way to add an icon to a map directly, and it looks like if I put the icon in a marker and then add that to a layer on the map then the icon will move with the

Re: [OpenLayers-Users] about projections

2008-09-09 Thread ajohnson
Do you have layers in different projections within a WMS or WFS? If that is the case, as long as the WMS can perform the reprojection for you, then I believe if you just state one projection in Openlayers, it will work for you. Amy > Hi list, > > I need help how to integrate different projections,

Re: [OpenLayers-Users] Users Digest, Vol 24, Issue 23

2008-09-09 Thread Jan Rune Henriksen
> 10. OpenLayers.Control.PanZoomBar : Can I get the Zoom bar> (slider) without > the Pan buttons? (Matthew Pettis) Hi. One way to do this is by putting this in the bottom of the style.css file: #OpenLayers_Control_PanZoom_panup, #OpenLayers_Control_PanZoom_panleft, #OpenLayers_Control_PanZoom_p

Re: [OpenLayers-Users] Foss4g

2008-09-09 Thread Erik Uzureau
Hello Andrew, I am pretty sure most if not all of us will be there for the friday workshop: OpenLayers - Building Web Mapping Applications with a Solid Foundation See here: http://spreadsheets.google.com/pub?key=p-YpIgK8cxLIjFv0ZK6R0Mg for full schedule. ...if, however, people are interested in

Re: [OpenLayers-Users] Highlighting the selected geometry

2008-09-09 Thread Lehtonen, Mika
Yep, thanks. I am using Geoserver so SLD approach is ok. One stupid question. I started to play around with GetFeature, but how can you get just the feature you clicked. I tried something similar like in OL example [1], but with GetFeature and WFS. So the following is what I tried: map.event

[OpenLayers-Users] [Fwd: Re: Highlighting the selected geometry]

2008-09-09 Thread Lehtonen, Mika
Oops, forgot the list address. So I do some cross-posting at the same time. - mika - --- Begin Message --- Yep, thanks. I am using Geoserver so SLD approach is ok. One stupid question. I started to play around with GetFeature, but how can you get just the feature you clicked. I tried something

Re: [OpenLayers-Users] Highlighting the selected geometry

2008-09-09 Thread Lehtonen, Mika
Ok, thanks for the hint. I will still try to do this without vector layer, like Brad Spencer suggested. cheers, - mika - Alexandre Dube kirjoitti: > Hi Mika, > > If your 'other one' layer is vector, you might what to check this > example : http://openlayers.org/dev/examples/select-feature.html

[OpenLayers-Users] Event handling on Yahoo map as BaseLayer

2008-09-09 Thread surekha
I am using OpenLayers 2.6 and not able to register a click event on the map, when I set 'Yahoo' as the BaseLayer. Is there anything that I could be missing while setting the yahoo layer ? Any help will be appreciated. Thanks, Surekha. -- View this message in context: http://www.nabble.com/Event

Re: [OpenLayers-Users] Highlighting the selected geometry

2008-09-09 Thread Alexandre Dube
Hi Mika, If your 'other one' layer is vector, you might what to check this example : http://openlayers.org/dev/examples/select-feature.html It might have what you seek : a select feature control. Just right-click and "view page source" to see the code. Cheers, Alexandre Lehtonen, Mika wrote:

[OpenLayers-Users] LayerSwitcher with icons and custom titles

2008-09-09 Thread Carolin Wengerter
Hello List! I've searched the list but didn't found anything. Perhaps somebody can give me a word of advice. I have got a map with different WFS-Layers and markers/icons. Now I want to include the icons in the LayerSwitcher like a legend. How can I do this? And here another question: I changed th

[OpenLayers-Users] Foss4g

2008-09-09 Thread Andrew de Klerk
Hi all As part of the Foss4g conference, I see there is a code sprint set for the Saturday. I will probably not be able to make that, so apart from that, are there any plans for us users to meet the great folk who have made open layers possible? Is there going to be a stand? Or perhaps we could

[OpenLayers-Users] Highlighting the selected geometry

2008-09-09 Thread Lehtonen, Mika
Hi, is there any examples available which I could use with the following task? Tried to google, but didn't find any good ones. I have two wms-layers in my map. The another one includes some polygons. In order to get some info out when clicking the polygon, I built a system which does that. But