Re: [OpenLayers-Users] Problem with Layer.vector

2009-08-03 Thread Eric Lemoine
On Monday, August 3, 2009, Nicholas Efremov-Kendall wrote: > Hi all,I've been trying to implement my gml as a layer.vector, as opposed to > a layer.gml. I'm loading both into the browser with the different methods, > and I can from firebug that the file is getting loaded, but it's not being > d

Re: [OpenLayers-Users] also strange vector behavior (obviously I've messed up)

2009-08-03 Thread Eric Lemoine
On Monday, August 3, 2009, Nicholas Efremov-Kendall wrote: > Hi all, > Not sure what's going on here, and what/why I'm doing wrong.I'm loading > successfully a gml layer which isn't displaying in the right placevar topo = > new OpenLayers.Layer.GML ("Topography", "data/topo.gml", >  

[OpenLayers-Users] Issues with layers

2009-08-03 Thread Nicholas Efremov-Kendall
Hi all, As before I'm having some problems with some of my GML layers. In particular, I'm trying to display three vector overlays, one of which is meant to be a dynamic POI, but that's another story. The issue is this: Only one of my layers "sites" is displaying correctly. The topo layer only displ

Re: [OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Nicholas Efremov-Kendall
Hi, You can either specify the zoom level in your map options and drop the zoomtomaxextent, or once you've loaded data, you a map.centerfunction set on whatever data you load. best, N e.g. if( ! map.getCenter() ){ sites2.events.register('loadend', sites2, function(){map.zoomToExtent(sites2.getD

Re: [OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Marc Jansen
Hi Raul, just a guess: JavaScript / OpenLayers is case sensitive, so first you would need to write: minExtent: new OpenLayers.Bounds(-75.69927, -4.79079, -75.67719, 4.81273), maxExtent: new OpenLayers.Bounds(-180,-90,180,90) Then you could set min- and max extent on the map-object as well, e.g.

[OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Raul David Orozco
Hi. I´m dealing with an issue  and I'm out of ideas right now. I've a layer created in my own WMS server, this layer is built with data from some part of my city of residence, but when I load the layer with OL, the zoom level is very far away, because of that my map looks like a tiny black dot,

Re: [OpenLayers-Users] also strange vector behavior (obviously I've messed up)

2009-08-03 Thread Nicholas Efremov-Kendall
Firebug doesn't pick anything up. On Mon, Aug 3, 2009 at 8:54 PM, Christopher Schmidt wrote: > On Mon, Aug 03, 2009 at 08:35:10PM +0300, Nicholas Efremov-Kendall wrote: > > Hi all, > > Not sure what's going on here, and what/why I'm doing wrong. > > I'm loading successfully a gml layer which isn

Re: [OpenLayers-Users] also strange vector behavior (obviously I've messed up)

2009-08-03 Thread Christopher Schmidt
On Mon, Aug 03, 2009 at 08:35:10PM +0300, Nicholas Efremov-Kendall wrote: > Hi all, > Not sure what's going on here, and what/why I'm doing wrong. > I'm loading successfully a gml layer which isn't displaying in the right > place > var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml",

[OpenLayers-Users] also strange vector behavior (obviously I've messed up)

2009-08-03 Thread Nicholas Efremov-Kendall
Hi all, Not sure what's going on here, and what/why I'm doing wrong. I'm loading successfully a gml layer which isn't displaying in the right place var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml", { style: {strokeWidth: 1, strokeColor:"#CC"}, } ); when I add projecti

[OpenLayers-Users] Problem with Layer.vector

2009-08-03 Thread Nicholas Efremov-Kendall
Hi all, I've been trying to implement my gml as a layer.vector, as opposed to a layer.gml. I'm loading both into the browser with the different methods, and I can from firebug that the file is getting loaded, but it's not being displayed. Thus, if I re-sent my auto-center to sites2.events, it doesn

Re: [OpenLayers-Users] since I'm a little dense...

2009-08-03 Thread Nicholas Efremov-Kendall
Adrian, Thanks a lot! (you've also inadvertently answered another question of mine). I was considering trying to implement something similar, but with having php-reload the page on submit, thus changing the static GML resource when the page refreshed. I think the javascript option is a little bit

Re: [OpenLayers-Users] Measure control problem (SOLVED)

2009-08-03 Thread Steve . Toutant
Setting geodesic: true fixed it. I misunderstood this property. Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél.: (

Re: [OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
No, I need planar distance since my map is in Mercator projection. I provided The coordinates of point 1 and point 2 in lat/long just for test purpose. Sorry for the confusion. Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environneme

Re: [OpenLayers-Users] Measure control problem

2009-08-03 Thread Kwong Hu Kiu
I think you are looking for the Vincenty distance formula. It's included in the examples as well. To: users@openlayers.org From: steve.tout...@inspq.qc.ca Date: Mon, 3 Aug 2009 10:44:10 -0400 Subject: [OpenLayers-Users] Measure control problem Hello, I created a measure control based on the

[OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
Hello, I created a measure control based on the measure.js example My measure control doesn't display the good distance. The distance is longer than expected. I tried with these coordinates # : lat, long Point 1 : 46.81509864093307, -71.22436522446064 Point 2 : 45.54483148742626, -73.630371083500

Re: [OpenLayers-Users] KML

2009-08-03 Thread Christopher Schmidt
On Mon, Aug 03, 2009 at 01:00:32AM -0700, maelstrom666 wrote: > > Hi I am very new to OL and I am having some issues with kml and markers. > When I go to > http://openlayers.org/dev/examples/sundials-spherical-mercator.html , the > sundials show up fine. > In the zip file I downloaded from the mai

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Adrian Popa
Thank you for your suggestion - I will try it and let you know how it works! Regards, Adrian Alexandre Dube wrote: > Hi Adrian, > > Take a look at this example (1). You can use 2 SelectFeature > controls for what you need, one with hover:true and > highlightOnly:true, the other with hover fal

Re: [OpenLayers-Users] Overriding some default CSS values

2009-08-03 Thread Adrian Popa
Hello Marc, Your example for the mouse coordinates worked beautifully, thanks. However, the "setOpacity" example didn't work (the opacity attribute didn't change in Firebug). I've tried setting popup.opacity = 0.7 - and although I've seen the change in firebug, my popup doesn't seem to honor it

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Alexandre Dube
Hi Adrian, Take a look at this example (1). You can use 2 SelectFeature controls for what you need, one with hover:true and highlightOnly:true, the other with hover false. The first one won't actually select the feature and you can register 3 kinds of "highlight" events (see the source) to

Re: [OpenLayers-Users] Overriding some default CSS values

2009-08-03 Thread Marc Jansen
Hi Adrian, to change the color of the mousecoordinates div, simply override the css like: .olControlMousePosition { color: red; } (tested) to set the opacity of one popup you could use: popup.setOpacity(0.7); (tested) If you generally want to have another opacity issue: OpenLayers.Po

Re: [OpenLayers-Users] GetFeatureInfo does not display animated gif icon in IE6

2009-08-03 Thread Peter Dawn
Hi Eric, You are probably right. Do you know of a workaround this. Why does IE not render a GIF while processing the getfeatureinfo request. Perhaps I can display text 'Please wait'. Cheers. On Mon, Aug 3, 2009 at 5:42 PM, Eric Lemoine wrote: > On Mon, Aug 3, 2009 at 6:24 AM, Peter Dawn wrote: >

[OpenLayers-Users] Overriding some default CSS values

2009-08-03 Thread Adrian Popa
Hello, I'm trying to change the transparency of the "FramedCloud" popup in openlayers - to make it 90% opaque. Also, I'd like to change the font color for the MousePosition control. I want to make these changes as much as 'unintrusive' as possible - meaning I'd rather change these values in my

[OpenLayers-Users] KML

2009-08-03 Thread maelstrom666
Hi I am very new to OL and I am having some issues with kml and markers. When I go to http://openlayers.org/dev/examples/sundials-spherical-mercator.html , the sundials show up fine. In the zip file I downloaded from the main website, this example was included. However I do not see the sundials on

[OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Adrian Popa
Hello everyone, This is sort of a repeat message of "Re: [OpenLayers-Users] Labels/Tooltips on mouse over a Vector layer" - but with a slightly different idea. Problem: I want to display a small div/popup with the marker's name when the user hovers his mouse over the location, and I want to

Re: [OpenLayers-Users] GetFeatureInfo does not display animated gif icon in IE6

2009-08-03 Thread Eric Lemoine
On Mon, Aug 3, 2009 at 6:24 AM, Peter Dawn wrote: > Hi everyone, > > I am working on a Geoserver/OpenLayer web application. I need to test it in > IE6. > > Now I have a GetFeatureInfo function, where the user clicks on the map > and I do a GetFeatureInfo call and I display the results on the > scr

Re: [OpenLayers-Users] since I'm a little dense...

2009-08-03 Thread Adrian Popa
Hello Nick, Here's some code - it's not complete - because it mostly lacks variable definitions which should be globals. However, they should be easy to add: //layer definition markers = new OpenLayers.Layer.Vector("Alarms", { projection: map.displayProjection, strategie