Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-19 Thread Adrian Popa
Any suggestions on how to move the layer switcher icon to be relative to the bottom of the map? On 07/16/2010 05:41 PM, Adrian Popa wrote: I studied CSS extensively the past two days, and I sort of managed to move it, but I still have two problems: 1. I can't position the

Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-19 Thread Adrian Popa
Found a fix for the right rounded corners. Here's a patch for LayerSwitcher.js Regards, Adrian --- LayerSwitcher.js 2010-07-19 10:24:26.0 +0300 +++ LayerSwitcherNew.js 2010-07-19 10:24:20.0 +0300 @@ -531,7 +531,7 @@ OpenLayers.Control.LayerSwitcher =

Re: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS

2010-07-19 Thread Eduardo José Ramos
Hi To solve the non calling issue, I've deployed the WFS and the Web application to the same server. Since they were in the same machine but in different ports it's necessary to setup the Openalyers.proxyHost, or make them work in the same Application Pool. I've done the latter and seen the

[OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Anne Blankert
Hello list, OpenStreetMap and also some popular commercial mapservices (google, bing, yahoo) are using the so called sphericalmercator projection. OpenLayers has built-in support for this type of layer, inherited from OpenLayers.Layer.SphericalMercator. If you use a sphericalmercator layer

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Bart van den Eijnden (OSGIS)
Hi Anne, in trunk this has been addressed, see: http://trac.openlayers.org/ticket/2665 Best regards, Bart Hello list, OpenStreetMap and also some popular commercial mapservices (google, bing, yahoo) are using the so called sphericalmercator projection. OpenLayers has built-in support

[OpenLayers-Users] Missing namespace prefix for PropertyName geometryName

2010-07-19 Thread Eduardo Ramos
Hello i'm having some trouble finding how to set the namespace for the geometry in the WFS request. My request is: var layer = new OpenLayers.Layer.Vector(BootyIsland, { strategies: [new OpenLayers.Strategy.BBOX()], projection: new

Re: [OpenLayers-Users] Missing namespace prefix for PropertyName geometryName

2010-07-19 Thread Eduardo Ramos
Just one add: the WFS response for the DescribeFeatureType is: ?xml version=1.0 encoding=utf-8? schema targetNamespace=http://www.mapinfo.com/wfs; xmlns:miwfs=http://www.mapinfo.com/wfs; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:gml=http://www.opengis.net/gml;

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Anne Blankert
Hello Bart, I am not sure if http://trac.openlayers.org/ticket/2665 takes care of the side effect that Control.Measure and MousePosition are no longer working properly after resetting the projection code? Anne On 7/19/2010 12:29 PM, Bart van den Eijnden (OSGIS) wrote: Hi Anne, in trunk

[OpenLayers-Users] Cluster strategy different styles

2010-07-19 Thread Arnaud Vandecasteele
Hello all, In my application I use a cluster strategy to aggregate my data. I would like to know if it's possible to use a specific style for : * the data they are not clustered * the data they are clustered For example, here is the code I use actually : var vesselStyle = new

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Bart van den Eijnden (OSGIS)
Hi Anne, check the example (first couple of lines in comments): http://trac.openlayers.org/browser/trunk/openlayers/examples/web-mercator.js?rev=10384 So that's up to the application to provide (at least for now). But I can also see that's not really easy for end-users. What do other people

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread christopher.schmidt
On Jul 19, 2010, at 8:51 AM, ext Anne Blankert wrote: Hello Bart, My 2 cents: In my opinion it is quite difficult for users to discover: - OpenStreetMap, Google, Bing, Yahoo etc. use a projection called 'SphericalMercator' - 'SphericalMercator' in OpenLayers uses code 'epsg:900913'

Re: [OpenLayers-Users] vector layers not shown with geoserver

2010-07-19 Thread Gilberto Ramos
rakesh.modi1585 wrote: Hi Gilberto, Thanks for your reply. now i am using var wfs = new OpenLayers.Layer.Vector(wfs, { strategies: [new OpenLayers.Strategy.BBOX()], projection: new OpenLayers.Projection(EPSG:4326), protocol: new OpenLayers.Protocol.WFS({

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Anne Blankert
Thanks for pointing to this fairly complete documentation. However, the subject of why and how to use the epsg:900913 aliases and the caveats is not yet included. I've added a section SphericalMercator and EPSG aliases to http://trac.openlayers.org/wiki/SphericalMercator. I don't think users

[OpenLayers-Users] change only one attribute in style?

2010-07-19 Thread ulao
ok This does not make sense to me, and I hope its just me and not by design... I do somthing like this polygonFeature.style = { pointRadius: ${type}, // sized according to type attribute fillColor: #ff,

Re: [OpenLayers-Users] change only one attribute in style?

2010-07-19 Thread Piero Campa
I guess that whether you create your own styleMap, the values that you don't explicitly set are then set to their default. I think it's a standard way of working, but maybe I didn't get 100% your intentions... Piero -- View this message in context:

[OpenLayers-Users] Proxyhost Error -Could not determine geoserver request from http request org.apache.catalina.connector

2010-07-19 Thread Odeneho
Hi all, I set up a proxyhost for my WFS layers which were working fine without any problems in OpenLayers application. I upgraded my GeoServer to the latest version 2.0.2 and tested my application and everything seemed to be ok. However, for some reason, my proxyhost is not working with the

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Bart van den Eijnden
Hi Anne, the best way for documentation fixes/additions is to create a patch (svn diff or unified diff) on the rst document (available in svn) and create a Trac ticket with the patch attached. TIA. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out

Re: [OpenLayers-Users] change only one attribute in style?

2010-07-19 Thread ulao
thank you for the answers. Arnd, that is what I needed ! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/change-only-one-attribute-in-style-tp5312670p5313047.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

[OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Mike Purvis
Hi, I currently have a map that uses an OpenLayers.Layer.Image as the baselayer, and then draws a bunch of vectors on top of it. However, the image in question is simple enough that I'd really rather just do away with it and use vectors for my background as well. What's the best way to do this?

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Lennox Antoine
You could just use a tile layer that always returns a blank image. Something like this should work : var vzl = new OpenLayers.Layer.TMS( 'test', 'http://google.com', { getURL: function(bounds){ return http://yourserver.com/blank.gif;; }, buffer: 0,

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread BMcBride
var nobase = new OpenLayers.Layer(No Basemap,{isBaseLayer: true, 'displayInLayerSwitcher': true}); - Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context:

Re: [OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

2010-07-19 Thread Phil Scadden
. What do other people think about providing the EPSG aliases by default in the OL library? good idea. AGS uses 102113 and I use an override to manage this projection issue. eg Ext.override(OpenLayers.Layer.WMS, { getFullRequestString:function(newParams,

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Mike Purvis
In both those cases I get global coordinates, though, don't I? My Image layer is like so: baseLayer = new OpenLayers.Layer.Image( Image, /static/img/gridmap.png, new OpenLayers.Bounds(0, 0, 3, 3), new OpenLayers.Size(600, 600), {}); It's a 600x600 image, and the coordinate

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Lennox Antoine
What effect are you referring to? Why do you care to restrict the bounds of the layer if you're just displaying blank tiles? Lennox On Mon, Jul 19, 2010 at 5:19 PM, Mike Purvis m...@uwmike.com wrote: In both those cases I get global coordinates, though, don't I? My Image layer is like so:

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Mike Purvis
Well, I'm only displaying blank tiles on that layer, but there are a number of items in the vector layer above—I would like to restrict the viewport to the region containing these items. M. On Mon, Jul 19, 2010 at 6:04 PM, Lennox Antoine lxn...@gmail.com wrote: What effect are you referring

[OpenLayers-Users] ArcGIS Online Cached tiles datum shift

2010-07-19 Thread Vadim Bokin
Hi, Does anyone have the _exact_ proj4js definition for ESRI projections EPSG:102100 and the older EPSG:102113? My maps have a y-coordinate shift (both north and south at different zooms) off by many map pixels. Always close, but no cigar. X-coordinate is always dead on. I can add in

Re: [OpenLayers-Users] Empty Base Layer?

2010-07-19 Thread Lennox Antoine
When you intialize your map, pass it a restrictedExtent so that it will only show your area of interest. See this example : http://openlayers.org/dev/examples/restricted-extent.html Also, it should be possible to use one of your vector layers as a basemap, rather than creating a layer that does

Re: [OpenLayers-Users] ArcGIS Online Cached tiles datum shift

2010-07-19 Thread Vadim Bokin
Robert, I've made good progress with your suggestion. I created a new class and just extended XYZ.js with the 2 methods you provided. But I still have a problem. Old Code: locations where close, but kept jumping around north or south of the right location New code: locations are almost

Re: [OpenLayers-Users] ArcGIS Online Cached tiles datum shift

2010-07-19 Thread Mike Swope
You might also keep in mind, that they are using arcgis.com now. Perhaps some more info is there? On Mon, Jul 19, 2010 at 9:17 PM, Vadim Bokin vbo...@gmail.com wrote: Robert, I've made good progress with your suggestion. I created a new class and just extended XYZ.js with the 2 methods you