Re: [OpenLayers-Users] Getting map coordinates for a Marker. How??

2008-09-05 Thread Bijoy
I have the same problem... plen wrote: Hello, I have added a marker (new OpenLayers.Marker(..)) to my map and added the marker to the markers layer. I have then added the marker to the OpenLayers.Control.DragMarker. My question is how can I get the new coordinates for where the

Re: [OpenLayers-Users] IE6 requests FORMAT=image/GIF - solved

2008-09-05 Thread Christopher Schmidt
On Fri, Sep 05, 2008 at 08:23:29AM +0300, Lehtonen, Mika wrote: Does anyone know how to deal with the png transparency in IE6 with WMS-requests? If I set overlay layer to transparent (transparent:true), it isn't transparent in IE6. I know I can add alpha:true which makes pngs' transparent

Re: [OpenLayers-Users] Markers on Google move around N/S

2008-09-05 Thread Salvaro
Thanks again Christopher :). Which was the solution to make the controls work (in Spherical Mercator) before the displayProjection function? Is possible to change displayProjection (or projection) on-the-fly or only is possible to change the options when you create the object? Thanks,

Re: [OpenLayers-Users] Switch to google layer set diff center then at other layers

2008-09-05 Thread Salvaro
I've the same problem. It seems the Google Layer have no data (including the center) when was loaded for the first time. Temporarily I solved it getting the center before change the layer, and setting a new center after. Isn't the best solution, but works well hehehe. (To solve the problem with

Re: [OpenLayers-Users] Markers on Google move around N/S

2008-09-05 Thread Christopher Schmidt
On Fri, Sep 05, 2008 at 04:22:10AM -0700, Salvaro wrote: Thanks again Christopher :). Which was the solution to make the controls work (in Spherical Mercator) before the displayProjection function? Work? They worked just fine: They displayed meters to the user :) Is possible to change

[OpenLayers-Users] Custom XML

2008-09-05 Thread Kenny France
Hi Guys, has anyone managed to load a custom XML to display markers and Polylines? my XML currently looks like this marker id/id lat/lat lng/lng icon/icon title/title description/description /marker What I am trying to do is the following read the XML and

Re: [OpenLayers-Users] IE6 requests FORMAT=image/GIF - solved

2008-09-05 Thread Lehtonen, Mika
Setting format to image/gif left my polygons opaque in IE6, although I have opacity set to 0.2 in my SLD. In the other browser there are no problems. Maybe I had a bad syntax? Also, I am using MapFish, but as I remember, the test OL 2.6 of mine had same problems. - mika - Christopher Schmidt

Re: [OpenLayers-Users] IE6 requests FORMAT=image/GIF - solved

2008-09-05 Thread Christopher Schmidt
On Fri, Sep 05, 2008 at 04:38:37PM +0300, Lehtonen, Mika wrote: Setting format to image/gif left my polygons opaque in IE6, although I have opacity set to 0.2 in my SLD. In the other browser there are no problems. Maybe I had a bad syntax? No, it just wasn't clear to me that was what you

[OpenLayers-Users] google maps layer moved

2008-09-05 Thread Felipe Reyes
Hi openlayers users, I'm currently developing a multilayer map with openlayers, a OSM tiles cache layer, and a google maps layer, currently in firefox both work ok, but in IE (6 and 7) the google maps layer appears moved (I attached a shot for example), and I don't know the reason, if I disable

Re: [OpenLayers-Users] IE6 requests FORMAT=image/GIF - solved

2008-09-05 Thread Lehtonen, Mika
And that would work in IE6 with layer format to set image/gif? - mika - Christopher Schmidt kirjoitti: You could put the opacity to 1.0 in your SLD, and use client-side opacity set to 0.2 in OpenLayers. Regards, ___ Users mailing list

Re: [OpenLayers-Users] IE6 requests FORMAT=image/GIF - solved

2008-09-05 Thread Christopher Schmidt
On Fri, Sep 05, 2008 at 05:43:00PM +0300, Lehtonen, Mika wrote: And that would work in IE6 with layer format to set image/gif? - mika - Should. Regards, -- Christopher Schmidt MetaCarta ___ Users mailing list Users@openlayers.org

Re: [OpenLayers-Users] Zoom to a Layer's Extent

2008-09-05 Thread Eric Lemoine
How about map.zoomToMaxExtent()? Eric 2008/9/5, Bill Thoen [EMAIL PROTECTED]: All I know is that I have some vectors in a layer somewhere on the map, but I don't know where their center is or how far out I need to zoom to them all at the maximum zoom scale. I need a bounding box for an entire

[OpenLayers-Users] Line

2008-09-05 Thread Kenny France
could somebody Pleaase have a look at the following and tell me why its not drawing a line? var style_green = { strokeColor: #00FF00, strokeOpacity: 1, strokeWidth: 3, pointRadius: 6, pointerEvents:

Re: [OpenLayers-Users] Zoom to a Layer's Extent

2008-09-05 Thread Bill Thoen
That would zoom out to the entire map. I just want to automatically zoom out to the extents of a layer and center on it. I shouldn't have called it 'baseLayer' because it's not a Base Layer; it's an Overlay Layer. Imagine a Base Layer of North America, and then you load a WFS layer of say,

Re: [OpenLayers-Users] Zoom to a Layer's Extent

2008-09-05 Thread Bill Thoen
Never mind... I just figured out that getDataExtent() applies to markers, not features like polygons and linestrings. Does anybody know if there is a function for WFS layers that returns the bounding box of that layer regardless of what type of map objects it contains? Bill Thoen wrote: If I

Re: [OpenLayers-Users] Zoom to a Layer's Extent

2008-09-05 Thread Christopher Schmidt
On Fri, Sep 05, 2008 at 11:30:20AM -0600, Bill Thoen wrote: Never mind... I just figured out that getDataExtent() applies to markers, not features like polygons and linestrings. Does anybody know if there is a function for WFS layers that returns the bounding box of that layer regardless

Re: [OpenLayers-Users] Line

2008-09-05 Thread Bill Thoen
That line is in the Atlantic Ocean at a spot just north of the Azores. But if you're expecting it to show up somewhere in South Africa, you need to specify coordinates as Lon, Lat instead of Lat, Lon. Kenny France wrote: could somebody Pleaase have a look at the following and tell me why