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
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
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/
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
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
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(
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
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
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,
> 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
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
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
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
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
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
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:
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
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
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
19 matches
Mail list logo