[OpenLayers-Users] created a new SR-ORG id on spatialreference.org but now need to revise the definition

2009-09-01 Thread stephane.poirier
Hi All, I created a new SR-ORG id on spatialreference.org (http://www.spatialreference.org/ref/sr-org/6728/proj4js/) but now, I need to revise some of its definition (proj4js's +lat_ts=90 needs to be +lat_ts=60 ). Also, must one absolutely go through the WKT definition to define the SR-ORG

Re: [OpenLayers-Users] switching default layer before initial map display

2009-08-31 Thread stephane.poirier
Thanks Francesco, You got it! Only changing the order in which layer are added fixed it, the first added google layer being the default among the other google layers. SP. From: Francesco Pennica Sent: Monday, August 31, 2009 5:58 AM To: stephane.poir...@usherbrooke.ca Cc:

[OpenLayers-Users] switching default layer before initial map display

2009-08-30 Thread stephane.poirier
Hi All, With the following code, I created a few google layers. Google streets gets to be the default. Now, how can I change the default layers to be, say, the google hybrid map? if(myepsg==EPSG:900913) { googlestreetsLayer=new OpenLayers.Layer.Google(Google Streets,{sphericalMercator:

[OpenLayers-Users] vector layers don't display in internet explore 8.0.6001 anymore

2009-08-30 Thread stephane.poirier
Hi All, My vector layers do display fine in Firefox, Chrome, Safari but don't display at all in IE 8.0.6001. I was using IE 8.0 compatibility view to have proper vector layer display until recently. But now, Ie 8.0 compatibility view does not seems to work or fix that issue anymore. Should I

[OpenLayers-Users] Does openlayers provide efficent client side spatial referenced query mechanism?

2009-05-31 Thread stephane.poirier
Hi All, Is it realistic to add 30,000 points to a layers, not having to display these points all at once, but rather display a subset of the intersecting points when the user selects a rectangular region? Are there function for such spatial referenced query? Is this too much for the client

[OpenLayers-Users] seeking more degrees of freedom when modifying rectangle feature

2009-05-26 Thread stephane.poirier
Hi All, To modify a feature, I currently use the drawcontrols code here below. When I have rectangle feature, I would like to have more flexibility when resizing (i.e. proportions not conserved). Do I have to switch to another type of feature to have more dregree of freedom when modifying the

[OpenLayers-Users] Invalid argument. OpenLayers.js, line 599 character 110 version 2.8 rc2

2009-05-26 Thread stephane.poirier
Hi All, Running my code in IE80, I get an Invalid argument in OpenLayers-2-8rc2_OpenLayers.js, line 599 character 110 (right after var style=document.createStyleSheet(); and before using style). Burn when I turn IE80 compatibility mode, it all works as fine as when using Mozilla Firefox.

[OpenLayers-Users] What is the proj4 definition for projection EPSG:3408, Proj4js.defs[EPSG:3408]=?

2009-05-20 Thread stephane.poirier
Hi All, Do draw a lat lon grid over map, I am using the graticule_v2-patch.js presented recently on http://trac.openlayers.org/attachment/ticket/1083/graticule_v2.patch It works fine for projection EPSG:42304 when using Proj4js.defs definition from

[OpenLayers-Users] Error in MSIE 8 creating a vector layer using OpenLayers 2.8 rc2

2009-05-18 Thread stephane.poirier
Hi All, I get an error in new MSIE 8 when adding a layer with the line: var daigridLayer=new OpenLayers.Layer.Vector(DAI Grid); I use the library OpenLayers 2.8 rc2 and MSIE8 complains with the internal line: style.addRule('olv\\:*',behavior: url(#default#VML); +position: absolute; display:

[OpenLayers-Users] How can one programmatically resize a rectangular feature right after it has been drawn?

2009-05-18 Thread stephane.poirier
Hi All, How can one programmatically resize a rectangular feature right after it has been drawn? Stephane___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

[OpenLayers-Users] conversion of bounding boxes to various projections

2009-05-18 Thread stephane.poirier
Hi All, Is it easy to use openlayers to convert bounding boxes from one EPSG to another. With WGS84 world geodesic datum projection EPSG:4326, North America has a bounding box of defaultBounds=new OpenLayers.Bounds(-180, 5, -10, 85); //north america, working with google, nasa, metacarta, etc.

[OpenLayers-Users] detection of layer loading success/fail

2009-02-11 Thread stephane.poirier
Hi All, How can one detect if a given server pushes the map or not? Here below is the line I use to get a layer from NASA server and need to switch to alternate layer server when it is down. var nasaLayer = new OpenLayers.Layer.WMS( NASA WMS,http://wms.jpl.nasa.gov/wms.cgi?;, {layers:

[OpenLayers-Users] rounding-off coordinate of feature geometry at creation

2009-01-22 Thread stephane.poirier
Hi All, I use the following code for handling point and rectangle creation. It works fine. Now, how can one round-off coordinates of the feature geometry before it is created (for point and rectangle)? And also, how can one restrict the drawing of a rectangle to discreet sizes? Stephane

[OpenLayers-Users] draw-feature demo

2009-01-12 Thread stephane.poirier
Hi All, I am running the OpenLayers-2.7/examples/draw-feature.html example program. Everything works fine in Firefox 3.0, but with Internet Explorer 7.0 the vector feautures do not display at all. Anyone knows why? Thanks, Stephane___ Users mailing

[OpenLayers-Users] mousedown

2009-01-12 Thread stephane.poirier
Hi All, I would like to detect when the mouse left button is down over the map. I can detect mouseup and mousemove using map.events.register(mouseup, this, function(e){ ... }); and map.events.register(mousemove, this, function(e){ ... }); but not when the mouse left button is clicked down.