[OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator

2008-01-14 Thread Jachym Cepicky
Hi, I would like to display GML vector layer in epsg:4326 on top of WMS Layer in epsg:900913. The map is initialized like var options = { maxExtent: new OpenLayers.Bounds(115, 610, 250, 660), maxResolution: auto, projection: new

[OpenLayers-Users] Google layer not centering well + minor things

2008-01-14 Thread Cranio
So I've managed to superimpose a Google layer with my WMS mapserver layers. I have now a strange behaviour though. While in Firefox everything goes ok, in IExplorer the WMS map center well, but Google maps don't align. They seem shifted on the upper left corner, showing a gray border on the

Re: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator

2008-01-14 Thread Mike Adair
Note that this should work too, and allows you to handle points in coordinate systems other than EPSG:4326: - include proj4js in your app via the script tag - then: preFeatureInsert = function(feature) { var src = new OpenLayers.Projection('EPSG:4326'); var dest = new

Re: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator

2008-01-14 Thread Jachym Cepicky
Nice one, I heard about proj4js, thought never used it Thanks for this hint Jachym Mike Adair píše v Po 14. 01. 2008 v 10:09 -0500: Note that this should work too, and allows you to handle points in coordinate systems other than EPSG:4326: - include proj4js in your app via the script tag

Re: [OpenLayers-Users] Pink Tile Killing Me

2008-01-14 Thread Lee Keel
From: Lee Keel Sent: Sun 1/13/2008 9:27 PM To: Lee Keel; Lee Keel; Andrea Aime Cc: users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me From: Andrea Aime [mailto:[EMAIL PROTECTED] Lee Keel ha scritto: Hello list. I am having a problem

Re: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator

2008-01-14 Thread Christopher Schmidt
On Mon, Jan 14, 2008 at 10:09:46AM -0500, Mike Adair wrote: Note that this should work too, and allows you to handle points in coordinate systems other than EPSG:4326: - include proj4js in your app via the script tag This isn't neccesary for spherical mercator: the reprojection code is

[OpenLayers-Users] need help with projection issues

2008-01-14 Thread O. Baum
Hello list, I am new to OpenLayers and made my first attempts in using the JavaScript API of Google Maps and OpenLayers 2.5 these days. I want to draw vector graphics into the OpenLayers map. I have read and understood basically that I have to follow

Re: [OpenLayers-Users] need help with projection issues

2008-01-14 Thread Christopher Schmidt
On Mon, Jan 14, 2008 at 05:06:44PM +0100, O. Baum wrote: Hello list, I am new to OpenLayers and made my first attempts in using the JavaScript API of Google Maps and OpenLayers 2.5 these days. I want to draw vector graphics into the OpenLayers map. I have read and understood basically

Re: [OpenLayers-Users] Google layer not centering well + minor things

2008-01-14 Thread Cranio
Well. I solved a minor problem by uploading the theme folder, which was missing. Now the Google logo and coords are displayed correctly. Though, the Google map still has this strange behaviour... Cranio wrote: So I've managed to superimpose a Google layer with my WMS mapserver layers. I

Re: [OpenLayers-Users] Pink Tile Killing Me

2008-01-14 Thread Andrew de klerk
This is definately not a solution to the reason why the tiles are coming up pink...but the following code makes it look less error-like OpenLayers.Util.onImageLoadErrorColor = transparent; Andrew Arnd Wippermann wrote: Hi, I have the same problem with IE and OL. When IE failed to load a

Re: [OpenLayers-Users] need help with projection issues

2008-01-14 Thread Linda Rawson
As far as displaying the mouseposition I added this to that code. if (this.map.projection = EPSG:900913) { var v_lonLat = OpenLayers.Layer.SphericalMercator.inverseMercator(lonLat.lon, lonLat.lat); lonLat.lon = v_lonLat.lon; lonLat.lat = v_lonLat.lat; v_lonLat = null; } var digits =

Re: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer

2008-01-14 Thread Maria Panagou
you check this behavior visiting my app http://gaia.dbnet.ece.ntua.gr/mpanagou/ol_start.htm -- View this message in context: http://www.nabble.com/add%2C-remove-base-layers-depending-on-zoom%2C-change-baselayer-tp14789355p14814197.html Sent from the OpenLayers Users mailing list archive at

Re: [OpenLayers-Users] need help with projection issues

2008-01-14 Thread Thomas Wood
On Jan 14, 2008 8:08 PM, Linda Rawson [EMAIL PROTECTED] wrote: As far as displaying the mouseposition I added this to that code. if (this.map.projection = EPSG:900913 ) { var v_lonLat = OpenLayers.Layer.SphericalMercator.inverseMercator(lonLat.lon, lonLat.lat); lonLat.lon = v_lonLat.lon;

Re: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer

2008-01-14 Thread Maria Panagou
Yes, but if refer to satellite layer in this way, wouldn't that mean that when I zoom in that layer, something will happen? I really want something to happen (display/hide layers) when I zoom in the map generally. At initialization of map, layer satellite is hidden and off the layerswitcher so,

Re: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer

2008-01-14 Thread Attila Csipa
On Monday 14 January 2008 23:33:04 Maria Panagou wrote: Yes, but if refer to satellite layer in this way, wouldn't that mean that when I zoom in that layer, something will happen? I really want something to happen (display/hide layers) when I zoom in the map generally. At initialization of