Re: [OpenLayers-Users] OpenLayers Dojo widget

2008-10-16 Thread Erik Uzureau
In a sort of side note to this, one thing I discovered at the FOSS4G conference is a user that is using Google Web Toolkit (GWT), and it apparently comes with a mapstraction widget hook sort of "built in". It was only a brief conversation, but enough to give me a little smirk and get me thinking.

Re: [OpenLayers-Users] what is Roja?

2008-10-16 Thread Erik Uzureau
I have spoken (emailed) with Gianni several times about the project, there is for sure no ill intensions (re forking). At the time that I was speaking with him, it seemed the main issue of the project was focused on doing routing, adding routing functionality to openlayers. I tried unsuccessfully

Re: [OpenLayers-Users] using OpenStreetMap provider on OpenLayers

2008-10-16 Thread Erik Uzureau
not sure if i even really think this is appropriate or not, but I have made a ticket for this here: http://trac.openlayers.org/ticket/1781 so the debate can at least be brought into the ticket's comments field. e On Wed, Oct 8, 2008 at 5:09 PM, Eric Lemoine <[EMAIL PROTECTED]> wrote: > Hi. Th

Re: [OpenLayers-Users] Google Chrome

2008-10-16 Thread Erik Uzureau
http://trac.openlayers.org/ticket/1780 On Sun, Oct 5, 2008 at 3:52 AM, Christopher Schmidt <[EMAIL PROTECTED] > wrote: > On Sat, Oct 04, 2008 at 10:55:23PM -0300, Adams wrote: > > I ran the following tests on Google Chrome: > > > > http://openlayers.org/dev/tests/auto-tests.html > > > > 7 failed

Re: [OpenLayers-Users] Customised Popup in Openlayers

2008-10-16 Thread Bijoy K. Anupam
Hi Reena, You will have to use normal JavaScript programming technique to accomplish this. I assume you can insert anything into the popup from outside. popup = new OpenLayers.Popup("chicken", new OpenLayers.LonLat(5,40), new OpenLayers.Size(200,200),

[OpenLayers-Users] DOCTYPE declaration breaks IE (all versions)

2008-10-16 Thread David Martin
Hi all, I have been working on a very strange issue that has taken me a few days to find. The issue is I have found it and now have no idea how I can fix it. It is reproducible and I have published two pages one with and one without the error. You need to use IE to find it as FF, Opera and othe

[OpenLayers-Users] Customised Popup in Openlayers

2008-10-16 Thread S.Reena
Hi, I want to make a popup which has 3 drop down boxes...but the content of 2nd option box depends on the contents of 1st option box...so we select 1st option box ..den depending on this selection ..value comes in 2nd option box and so on .Is this possible? Thanks in advance. Cheers, Reena.

Re: [OpenLayers-Users] getDataExtent() for GML layer?

2008-10-16 Thread Robert Sanson
Hi Chris I was doing exactly that. IE complained about a null object. Firefox 3 just hung. Thanks for the explanation. regards, Robert >>> Christopher Schmidt <[EMAIL PROTECTED]> 17/10/2008 2:31 p.m. >>> On Fri, Oct 17, 2008 at 11:44:09AM +1300, Robert Sanson wrote: > I couldn't get getDa

Re: [OpenLayers-Users] getDataExtent() for GML layer?

2008-10-16 Thread Christopher Schmidt
On Fri, Oct 17, 2008 at 11:44:09AM +1300, Robert Sanson wrote: > I couldn't get getDataExtent()) to work for a OpenLayers.Layer.GML I expect you were creating the layer, then imediately calling getDataExtent, before the data had loaded. Instead, you coul have registerd for the 'loadend' event on t

Re: [OpenLayers-Users] getDataExtent() for GML layer?

2008-10-16 Thread Robert Sanson
I couldn't get getDataExtent()) to work for a OpenLayers.Layer.GML I changed to a OpenLayers.Layer.Vector and then it worked: var g = new OpenLayers.Format.GML(); var fbndurl = "http://10.65.192.1/cgi-bin/agbwfs.exe?farmid="+farmid+"&request=getfeature&typename=farm&service=wfs&version=1.0.

Re: [OpenLayers-Users] getDataExtent() for GML layer?

2008-10-16 Thread Christopher Schmidt
On Fri, Oct 17, 2008 at 11:08:17AM +1300, Robert Sanson wrote: > Does anyone know if Layer function getDataExtent() has been implemented for a > GML layer constructed with: The singleTile option is completely useless... as is the extractAttributes option, I'm pretty sure... Anyway, "yes, as of 2

[OpenLayers-Users] getDataExtent() for GML layer?

2008-10-16 Thread Robert Sanson
Does anyone know if Layer function getDataExtent() has been implemented for a GML layer constructed with: fbnd = new OpenLayers.Layer.GML("Farm boundary", "http://10.65.192.1/cgi-bin/agbwfs.exe?farmid="+farmid+"&request=getfeature&typename=farm&service=wfs&version=1.0.0&SRS=EPSG

Re: [OpenLayers-Users] Sort of Feature switcher

2008-10-16 Thread Arnd Wippermann
Hi Pascal, Interesting problem. I have added some functionality to the last example. Perhaps it helps. I use a stylemap with addUniqueValueRules for the gml layer with a rule for attribute visibility. If the attribute visibility = "visible" the feature is visible. To change the visibility, I chan

Re: [OpenLayers-Users] Adding an attribute field to a vector layer

2008-10-16 Thread Robert Sanson
Thanks to Arnd and Dane, this is what works: I first create the layer: function cropsreturn(cropsresponse) { crop_style.strokeColor = "#ff"; if (cropsresponse.responseText.indexOf('Error') != -1) { window.alert("no crops"); crops =

Re: [OpenLayers-Users] Donut polygons?

2008-10-16 Thread Christopher Schmidt
On Fri, Oct 17, 2008 at 09:33:06AM +1300, Robert Sanson wrote: > Is it possible to create donut polygons with the > OpenLayers.Control.DrawFeature control acting on a Vetcor layer, > or modify an existing polygon to create a hole inside the polygon with the > OpenLayers.Control.ModifyFeature con

[OpenLayers-Users] Donut polygons?

2008-10-16 Thread Robert Sanson
Is it possible to create donut polygons with the OpenLayers.Control.DrawFeature control acting on a Vetcor layer, or modify an existing polygon to create a hole inside the polygon with the OpenLayers.Control.ModifyFeature control? Many thanks, Robert Sanson -

Re: [OpenLayers-Users] delete feature & vertices - further

2008-10-16 Thread Robert Sanson
Hi Eric Thanks for that - yes, the patch fixed the problem. Cheers, Robert Sanson >>> "Eric Lemoine" <[EMAIL PROTECTED]> 16/10/2008 5:51 p.m. >>> See #1741. That would be good to know if the patch makes your problem go away. Eric 2008/10/16, Eric Lemoine <[EMAIL PROTECTED]>: > Hi. Do you

Re: [OpenLayers-Users] delete feature & vertices - further

2008-10-16 Thread Robert Sanson
Yes, I actually have select, draw and modify controls: //Select, Draw and Modify controls - these are specific to the layer controls = { select: new OpenLayers.Control.SelectFeature(crops, {callbacks: {'over':feature_info}}), dpolygon: new OpenLayers.Control.Draw

[OpenLayers-Users] Sort of Feature switcher

2008-10-16 Thread darrepac
Hello, Thanks to Arnd, I have implemented a GML layer with some polygons on top of an other layer (now WMS). Some polygons are one over an other and sometimes, it is simply not possible to select one polygon as it is behind some others. For this reason and also to ease the User Experience, I woul

[OpenLayers-Users] Swapping the base layer

2008-10-16 Thread Greg Ederer
Hi, I have a control in a web page that lets the user swap out the base layer in a map. Currently, I do this: // setup tiled layer var tmpLayer = new OpenLayers.Layer.WMS( "tiled", "http://"; + hostName + ":8080/geoserver/wms", { styles: '', layers: reso

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread Arnd Wippermann
Hi, if it's a problem with the projection, then OL is not responsable. OL only creates a WMS request based on the declared map.projection for each tile. theWMSServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&SRS=[map.projection]&B BOX=[tileExtent]&LAYERS= If the WMS request fails, it could

Re: [OpenLayers-Users] OpenLayers Dojo widget

2008-10-16 Thread Greg Ederer
Thanks, Pieter. I'll check this out. Cheers, Greg Pieter De Graef wrote: > If you want a map in Dojo, check out geomajas.org. > It differs from OL though in that it is a client-server solution, > concentrated around vectors. > > Regards, > > Pieter De Graef > > DFC Software Engineering > Brug

Re: [OpenLayers-Users] getCenter + reprojection

2008-10-16 Thread Eric Lemoine
Units must be "m" with 900913. This may not be related to your particular issue though. Eric 2008/10/16, Volodymer Grigorenko <[EMAIL PROTECTED]>: > Hi all > i`ve have a problem with get center and in prop projection > the situation is so function below works fine but when browser window > chang

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread Burgholzer,Robert
Jeff, I do not know for sure, but I would try using a simple SRID type in the projection block for your countries layer. I believe that I have had trouble with using proj=latlong, and I now use something like so: PROJECTION "init=epsg:4269" END You will have to choose the proper epsg for

Re: [OpenLayers-Users] Clustering and addFeatures method

2008-10-16 Thread Jacolin Yves
Le Thursday 16 October 2008 17:31:19 Eric Lemoine, vous avez écrit : > Hi Yves. I don't see anything wrong with what you're doing. So you're > saying you are adding two features (far from each other), and > nevertheless see only one of the two on the map, right? Could you cook > up a small example

Re: [OpenLayers-Users] Clustering and addFeatures method

2008-10-16 Thread Eric Lemoine
Hi Yves. I don't see anything wrong with what you're doing. So you're saying you are adding two features (far from each other), and nevertheless see only one of the two on the map, right? Could you cook up a small example so that we can reproduce the problem. Eric 2008/10/16, Jacolin Yves <[EMAIL

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread Jana Golinowski
Hi Jeff, > Here are the layers: [...] > LAYER > NAME "cities" [...] > EXPRESSION(3 <= [POP_RANK] and [POP_RANK] <= 5) [...] > LAYER > NAME "largecities" [...] > EXPRESSION([POP_RANK]<=2) [...] > LAYER > NAME "majorcities" [...] > EXPRESSION ([Pop_2000]

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread jeffcopes
Here are the layers: # # City layer - Cities # LAYER NAME "cities" GROUP "CITIES" DATA "/ssa/data/MapServer/Earth/Vectordata/WorldMap/Cities" STATUS off PROCESSING "CLOSE_CONNECTION=DEFER" TYPE point LABELCACHE on

[OpenLayers-Users] Clustering and addFeatures method

2008-10-16 Thread Jacolin Yves
Hello, I am trying to set up a cluster strategy for one of my vector layer. I add this code to my existing code: var vector = new OpenLayers.Layer.Vector(name, { strategies: [ new OpenLayers.Strategy.Cluster({distance:20})

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread Burgholzer,Robert
Jeff, Go ahead and post your mapfile (or the 4 relevant layers) to the listserv. Also, try to remember that the openlayers listserv defaults to having the reply-to address be the poster, not the listserv, so you have to hit "reply-to-all" to get it to go to the listserv. r.b. Robert W. Burgho

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread Burgholzer,Robert
Jeff, I think that is another good place to check. You did not include your options variable in the code you posted, are you saying this does not have a projection specified? Also, make sure that the countries layer has it's projection specified in the mapserver layer. You might want to go a

Re: [OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-16 Thread jeffcopes
Arnd and Robert, The problem may not be the number of layers being rendered, and it may not be the projection information. Commenting out "rivers" and "cities" layers and running only the "countries" layer had, as expected, only the "countries" layer in the layer switcher, but when selected, the

Re: [OpenLayers-Users] Using OL with Google baseLayer

2008-10-16 Thread Jacolin Yves
Le Thursday 16 October 2008 12:42:34 Christopher Schmidt, vous avez écrit : > On Thu, Oct 16, 2008 at 12:16:54PM +0200, Jacolin Yves wrote: > > Hi list, > > > > I am switching my OL baselayers to the Google Maps's one. So I have to > > change my projection for all my data to "google mercator". All

Re: [OpenLayers-Users] Using OL with Google baseLayer

2008-10-16 Thread Christopher Schmidt
On Thu, Oct 16, 2008 at 12:16:54PM +0200, Jacolin Yves wrote: > Hi list, > > I am switching my OL baselayers to the Google Maps's one. So I have to change > my projection for all my data to "google mercator". All my datas were in > lambert 2 etendue (french projection, epsg code: 27572). > > I

[OpenLayers-Users] Using OL with Google baseLayer

2008-10-16 Thread Jacolin Yves
Hi list, I am switching my OL baselayers to the Google Maps's one. So I have to change my projection for all my data to "google mercator". All my datas were in lambert 2 etendue (french projection, epsg code: 27572). I succed to change it for all my shapefile using ogr2ogr or gdal with the fol

[OpenLayers-Users] getCenter + reprojection

2008-10-16 Thread Volodymer Grigorenko
Hi all i`ve have a problem with get center and in prop projection the situation is so function below works fine but when browser window changes size it centers extend on 0lat 0lon ant suggestions var options = { controls: [], projection: new OpenLayers.Projection("EPSG:900913"), displayProject

[OpenLayers-Users] Why Does the Map Move to the Southeast When I Switch between Google Maps Layers in IE?

2008-10-16 Thread pem
I have build a site where users can add vector-features on a google base map. The Vector layer is then recieved as GML. The problem is using IE: - zoom with hold shift and draw an rectangle - switch from normal layer to Hybrid, the map is moved to southeast, how much is depending on the zoom-leve