From edfialk at gmail.com Tue May 1 12:44:25 2007 From: edfialk at gmail.com (Ed Fialkowski) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Way to disable pan/zoom? Message-ID: Hi, I was wondering if it is possible to not only eliminate the pan/zoom visual control from a map but also to disable panning all together so the user basically has no control over the movement of the map. Does anyone know if this can be done? Thanks in advance. -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070501/e0c7548b/attachment.html From erik.uzureau at metacarta.com Tue May 1 12:58:34 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Way to disable pan/zoom? In-Reply-To: References: Message-ID: <6ae3fb590705010958j313c03dia4aa5cbf36d3b3de@mail.gmail.com> hi ed just init your map like this: var myMap = new OpenLayers.Map("mapDiv", { controls: [] }); that way you dont get mousedefaults or the panzoom bar -erik On 5/1/07, Ed Fialkowski wrote: > > Hi, I was wondering if it is possible to not only eliminate the pan/zoom > visual control from a map but also to disable panning all together so the > user basically has no control over the movement of the map. > > Does anyone know if this can be done? > > Thanks in advance. > -Ed > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070501/d106c2ea/attachment.html From janos.gonzales at gmail.com Tue May 1 15:10:50 2007 From: janos.gonzales at gmail.com (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] mapserver example Message-ID: <647a4d110705011210o2256c38di8afa50cedc044d67@mail.gmail.com> Hello, I'm trying to use the mapserver example included with OpenLayers 2.3. I modified mapserver.html to point to my map file and I added the layer name that I wanted. When I view mapserver.html in the browsers i get a bunch of pink tiles. If I try to see the source of each tile I get a URL like : http://localhost/cgi-bin/mapserv?map=mymap.map&LAYERS=states&MODE=map&MAP_IMAGETYPE=png&mapext=-11.25+33.75+0+45&imgext=-11.25+33.75+0+45&map_size=256+256&imgx=128&imgy=128&imgxy=256%2B256 This gives an error loadForm(): Web application error. Not enough arguments for imgxy. However, if I replace all the %2B strings in the URL with plus signs + then the image works. What is up with that? From crschmidt at metacarta.com Tue May 1 16:05:07 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] mapserver example In-Reply-To: <647a4d110705011210o2256c38di8afa50cedc044d67@mail.gmail.com> References: <647a4d110705011210o2256c38di8afa50cedc044d67@mail.gmail.com> Message-ID: <20070501200507.GA31218@metacarta.com> On Tue, May 01, 2007 at 01:10:50PM -0600, J?nos Gonzales wrote: > Hello, > I'm trying to use the mapserver example included with OpenLayers 2.3. > I modified mapserver.html to point to my map file and I added the > layer name that I wanted. > > When I view mapserver.html in the browsers i get a bunch of pink > tiles. If I try to see the source of each tile I get a URL like : > > http://localhost/cgi-bin/mapserv?map=mymap.map&LAYERS=states&MODE=map&MAP_IMAGETYPE=png&mapext=-11.25+33.75+0+45&imgext=-11.25+33.75+0+45&map_size=256+256&imgx=128&imgy=128&imgxy=256%2B256 > > This gives an error loadForm(): Web application error. Not enough > arguments for imgxy. > > However, if I replace all the %2B strings in the URL with plus signs > + then the image works. What is up with that? This is a known bug in OpenLayers 2.3. OpenLayers 2.4 fixes this bug. If you can not use OpenLayers 2.4 for this application (it's currently in late RC stage, and should be final soon), please reply, and I will provide code which will fix this bug against 2.3. Regards, -- Christopher Schmidt MetaCarta From rakunkel at ucdavis.edu Tue May 1 19:26:20 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] refreshing a WFS layer Message-ID: I noticed the Layer.mergeNewParams() function in discussions about refreshing a WMS layer. Is this the best way to refresh a WFS layer? I want to refresh a WFS layer after formulating a new tag. So that would be a change to the url parameter. thanks Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070501/2e78c485/attachment.html From spietz at fh-bingen.de Wed May 2 06:22:29 2007 From: spietz at fh-bingen.de (Christine Spietz) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] show new features (dynamically added) in vector layer Message-ID: <015b01c78ca3$ccd641e0$b84f5d8f@PSP> Hi, I've allready posted the question at the end of April to dev@openlayers.org, but didn't get any answer. So perhaps somebody in this list has an idea and can help with the following problem: I have problems to show features which are dynamically added to a vector-layer. I first initialize my map with a baselayer and some overlays. One of the overlays is a vector-layer which has some polygon-feature inside. -----------------------------------snip>---------------------------------- layer_1 = new OpenLayers.Layer.Vector("layer_1"); //init the layer with ... var polygonFeature = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing])); layer.addFeatures([polygonFeature]); ... //add the layer to the map map.addLayer(layer_1); ----------------------------------->snip---------------------------------- This works fine. Now I insert another feature in the layer for example after a button ist clicked: -----------------------------------snip>---------------------------------- polygonFeature = new OpenLayers.Feature.Vector(geometry); polygonFeature .setFid(fid); layer_1.addFeatures([polygonFeature]); ----------------------------------->snip---------------------------------- layer.features.length gives the correct length of the feature-array in layer_1 and the geometry-object is a correct polygon. So everything seems to be fine Now I try to redraw the layer to show all polygon-features included in the layer. I tried several ways but none of them worked. -----------------------------------snip>v1------------------------------- layer_1.redrawFeature(fid,'default'); ----------------------------------->snip---------------------------------- -----------------------------------snip>v2------------------------------- map.removeLayer(layer_1,false); layer_1 = new OpenLayers.Layer.Vector("layer_1"); //draw the layer map.addLayer(layer_1); ----------------------------------->snip---------------------------------- -----------------------------------snip>v3------------------------------- drawControls = { polygon: new OpenLayers.Control.DrawFeature(layer_1,OpenLayers.Handler.Polygon) }; for(var key in drawControls) { map.addControl(drawControls[key]); } ----------------------------------->snip---------------------------------- I'm using openlayers2.4 rc1 with mozilla firefox 2.0.0.3. Can anybody please give ma a hint? Sincerely Christine From drspencer at hotmail.com Wed May 2 08:10:34 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Fwd: Turning on/off layers depending on zoom level In-Reply-To: <6ae3fb590704270835h7f7d4b26j68209ec989e2c2c8@mail.gmail.com> References: <9911124.post@talk.nabble.com> <9927966.post@talk.nabble.com> <6ae3fb590704101356g3166f6e0i57b28b934e5e1f4e@mail.gmail.com> <9929477.post@talk.nabble.com> <10048769.post@talk.nabble.com> <6ae3fb590704201050n4b0f1fcan870596c8256889df@mail.gmail.com> <10129213.post@talk.nabble.com> <6ae3fb590704251817g3b7c48flf4e588c4661471ba@mail.gmail.com> <10217404.post@talk.nabble.com> <6ae3fb590704270835h7f7d4b26j68209ec989e2c2c8@mail.gmail.com> Message-ID: <10284713.post@talk.nabble.com> Thank you for your input, Erik. However, I am not sure of where to put the "patch -p0 < inRangeVisibility.patch". I cant get it to work with the example I have. Magnus --------- How to Apply a patch: http://trac.openlayers.org/wiki/ApplyingPatches Made to order :-) -- View this message in context: http://www.nabble.com/Turning-on-off-layers-depending-on-zoom-level-tf3550126.html#a10284713 Sent from the OpenLayers Users mailing list archive at Nabble.com. From francois.vanderbiest at camptocamp.com Wed May 2 08:36:57 2007 From: francois.vanderbiest at camptocamp.com (=?ISO-8859-1?Q?Fran=E7ois_Van_Der_Biest?=) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] [Patch] "waiting" mouse cursor on WFS loading Message-ID: <86169bba0705020536s377623a4j12fcb8c8d0787e43@mail.gmail.com> Hi lists, I made a small patch to get a "waiting" mouse cursor on WFS loading, which I find quite useful. See http://trac.openlayers.org/ticket/688 For this to work, I've added a setCursor method to the map object, with the ability to switch between 4 kinds of cursors (move, wait, crosshair, auto). It probably can be expanded to every feature loading ... HTH, F. From crschmidt at metacarta.com Wed May 2 08:53:33 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Fwd: Turning on/off layers depending on zoom level In-Reply-To: <10284713.post@talk.nabble.com> References: <9927966.post@talk.nabble.com> <6ae3fb590704101356g3166f6e0i57b28b934e5e1f4e@mail.gmail.com> <9929477.post@talk.nabble.com> <10048769.post@talk.nabble.com> <6ae3fb590704201050n4b0f1fcan870596c8256889df@mail.gmail.com> <10129213.post@talk.nabble.com> <6ae3fb590704251817g3b7c48flf4e588c4661471ba@mail.gmail.com> <10217404.post@talk.nabble.com> <6ae3fb590704270835h7f7d4b26j68209ec989e2c2c8@mail.gmail.com> <10284713.post@talk.nabble.com> Message-ID: <20070502125333.GC12653@metacarta.com> On Wed, May 02, 2007 at 05:10:34AM -0700, kaka wrote: > > Thank you for your input, Erik. However, I am not sure of where to put the > "patch -p0 < inRangeVisibility.patch". I cant get it to work with the > example I have. kaka: The patch has been committed to trunk, so if you update to the latest SVN, it sould work. Regards, -- Christopher Schmidt MetaCarta From drspencer at hotmail.com Wed May 2 09:33:41 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Fwd: Turning on/off layers depending on zoom level In-Reply-To: <20070502125333.GC12653@metacarta.com> References: <9911124.post@talk.nabble.com> <9927966.post@talk.nabble.com> <6ae3fb590704101356g3166f6e0i57b28b934e5e1f4e@mail.gmail.com> <9929477.post@talk.nabble.com> <10048769.post@talk.nabble.com> <6ae3fb590704201050n4b0f1fcan870596c8256889df@mail.gmail.com> <10129213.post@talk.nabble.com> <6ae3fb590704251817g3b7c48flf4e588c4661471ba@mail.gmail.com> <10217404.post@talk.nabble.com> <6ae3fb590704270835h7f7d4b26j68209ec989e2c2c8@mail.gmail.com> <10284713.post@talk.nabble.com> <20070502125333.GC12653@metacarta.com> Message-ID: <10286211.post@talk.nabble.com> Ah, yes, works perfectly with the update. Thanks. Magnus Christopher Schmidt-4 wrote: > > On Wed, May 02, 2007 at 05:10:34AM -0700, kaka wrote: >> >> Thank you for your input, Erik. However, I am not sure of where to put >> the >> "patch -p0 < inRangeVisibility.patch". I cant get it to work with the >> example I have. > > kaka: > > The patch has been committed to trunk, so if you update to the latest > SVN, it sould work. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Turning-on-off-layers-depending-on-zoom-level-tf3550126.html#a10286211 Sent from the OpenLayers Users mailing list archive at Nabble.com. From aborruso at tin.it Wed May 2 10:24:10 2007 From: aborruso at tin.it (andy) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] is tilecache addess a wms address? Message-ID: <46389F0A.6070007@tin.it> Hi all, I'm playng a lot with openlayers and tilecache: I'm very impressed. All it's simply to install and configure, and we have very good results. I have configured an OpenLayers layer with thi kind of parameters: var mylayer = new OpenLayers.Layer.WMS( "My Layer", "http://www.myserver.com/tilecache/tilecache.cgi", {layers: 'My layer title', format: 'image/jpeg'}); The above url is a wms URL? Could I use a wms client and this url to access to the above layer? If yes which is the right url syntax? Thank you, a From crschmidt at metacarta.com Wed May 2 11:09:32 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] is tilecache addess a wms address? In-Reply-To: <46389F0A.6070007@tin.it> References: <46389F0A.6070007@tin.it> Message-ID: <20070502150932.GA15825@metacarta.com> On Wed, May 02, 2007 at 04:24:10PM +0200, andy wrote: > Hi all, > I'm playng a lot with openlayers and tilecache: I'm very impressed. All > it's simply to install and configure, and we have very good results. > > I have configured an OpenLayers layer with thi kind of parameters: > var mylayer = new OpenLayers.Layer.WMS( "My Layer", > "http://www.myserver.com/tilecache/tilecache.cgi", {layers: 'My layer > title', format: 'image/jpeg'}); > > The above url is a wms URL? Could I use a wms client and this url to > access to the above layer? If yes which is the right url syntax? Not really. It behaves like a WMS, to a certain extent, but most WMS requests will fail. It does conform to: http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation And has an appropriate GetCapabilities document which describes the parameters under which tiles can be accessed. However, I don't know of a WMS-C client other than OpenLayers. Regards, -- Christopher Schmidt MetaCarta From drspencer at hotmail.com Wed May 2 13:57:51 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Problems using a KML file Message-ID: <10291428.post@talk.nabble.com> Hi I am trying to use a KML file with OpenLayers. As I understand it, there is basic support for KML files containing points and lines, but not ploygons or formatting. I have tried using a KML file containing a line (more or less following parts of the European coast), but this is not correctly rendered using OpenLayers with FF/Opera and not at all using IE 7. Is this a known issue? Have a look at http://www.villageografica.com/test45/KML/kml-layer.html for a demo. Magnus -- View this message in context: http://www.nabble.com/Problems-using-a-KML-file-tf3682216.html#a10291428 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Wed May 2 14:14:57 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Problems using a KML file In-Reply-To: <10291428.post@talk.nabble.com> References: <10291428.post@talk.nabble.com> Message-ID: <20070502181457.GA18602@metacarta.com> On Wed, May 02, 2007 at 10:57:51AM -0700, kaka wrote: > > Hi > I am trying to use a KML file with OpenLayers. As I understand it, there is > basic support for KML files containing points and lines, but not ploygons or > formatting. I have tried using a KML file containing a line (more or less > following parts of the European coast), but this is not correctly rendered > using OpenLayers with FF/Opera and not at all using IE 7. Is this a known > issue? Have a look at > http://www.villageografica.com/test45/KML/kml-layer.html for a demo. The KML parser expects that there is no seperation by spaces after the commas in each coordinate pair. so, data should look like: x,y,z x,y,z The place to improve this is lib/OpenLayers/Format/KML.js , in parseCoords. Regards, -- Christopher Schmidt MetaCarta From drspencer at hotmail.com Wed May 2 14:40:42 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Problems using a KML file In-Reply-To: <20070502181457.GA18602@metacarta.com> References: <10291428.post@talk.nabble.com> <20070502181457.GA18602@metacarta.com> Message-ID: <10292155.post@talk.nabble.com> Yes, you are right. It?s working just fine now. Thank you Christopher. Magnus Christopher Schmidt-4 wrote: > > On Wed, May 02, 2007 at 10:57:51AM -0700, kaka wrote: >> >> Hi >> I am trying to use a KML file with OpenLayers. As I understand it, there >> is >> basic support for KML files containing points and lines, but not ploygons >> or >> formatting. I have tried using a KML file containing a line (more or less >> following parts of the European coast), but this is not correctly >> rendered >> using OpenLayers with FF/Opera and not at all using IE 7. Is this a known >> issue? Have a look at >> http://www.villageografica.com/test45/KML/kml-layer.html for a demo. > > The KML parser expects that there is no seperation by spaces after the > commas in each coordinate pair. so, data should look like: > > x,y,z x,y,z > > The place to improve this is lib/OpenLayers/Format/KML.js , in > parseCoords. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problems-using-a-KML-file-tf3682216.html#a10292155 Sent from the OpenLayers Users mailing list archive at Nabble.com. From drspencer at hotmail.com Wed May 2 17:42:40 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Turning on/off a GML layber depending on zoom level Message-ID: <10295350.post@talk.nabble.com> Hi again I recently got help on this forum on how to show/hide a marker layer based on zoom level. Now, I am trying to do the same with a GML layer that I recently added to the map. I am not sure of how to add the min/maxResolution to the second line below, the map stops rendering when I add the command. I thought that it would be more or less the same as in the first line, but I must be missing something. -------- var MarkersLayer2 = new OpenLayers.Layer.Text( "Region info", {location: "RegionLocations.txt", minResolution: 0.002, maxResolution: 0.02}); map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); -------- See http://www.villageografica.com//test47/Africa-test.html for the current version. I would like to remove the layer "Regioner" as the user zooms in. Any ideas warmly welcome. Magnus -- View this message in context: http://www.nabble.com/Turning-on-off-a-GML-layber-depending-on-zoom-level-tf3683443.html#a10295350 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Wed May 2 17:50:22 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Turning on/off a GML layber depending on zoom level In-Reply-To: <10295350.post@talk.nabble.com> References: <10295350.post@talk.nabble.com> Message-ID: <20070502215022.GA23004@metacarta.com> On Wed, May 02, 2007 at 02:42:40PM -0700, kaka wrote: > See http://www.villageografica.com//test47/Africa-test.html for the current > version. I would like to remove the layer "Regioner" as the user zooms in. > Any ideas warmly welcome. map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", {'minResolution': 0.002, maxResolution: 0.02})); Seems to work for me. (Can't test, cause I don't have the data locally, but the layer selector makes it look like it will.) if you can set this up, and it errors, I'd be interested in seeing any error message you get. Regards, -- Christopher Schmidt MetaCarta From drspencer at hotmail.com Wed May 2 19:26:56 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Turning on/off a GML layber depending on zoom level In-Reply-To: <20070502215022.GA23004@metacarta.com> References: <10295350.post@talk.nabble.com> <20070502215022.GA23004@metacarta.com> Message-ID: <10296652.post@talk.nabble.com> Thanks again, Christopher. Exactly what I was looking for. Magnus Christopher Schmidt-4 wrote: > > On Wed, May 02, 2007 at 02:42:40PM -0700, kaka wrote: >> See http://www.villageografica.com//test47/Africa-test.html for the >> current >> version. I would like to remove the layer "Regioner" as the user zooms >> in. >> Any ideas warmly welcome. > > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", > {'minResolution': 0.002, maxResolution: 0.02})); > > Seems to work for me. (Can't test, cause I don't have the data locally, > but the layer selector makes it look like it will.) > > if you can set this up, and it errors, I'd be interested in seeing any > error message you get. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Turning-on-off-a-GML-layber-depending-on-zoom-level-tf3683443.html#a10296652 Sent from the OpenLayers Users mailing list archive at Nabble.com. From bdwilton at gmail.com Wed May 2 22:24:18 2007 From: bdwilton at gmail.com (Brett Wilton) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] GMap layers become disabled Message-ID: Hello, I have OpenLayers 2.3 stable installed and have a standard google map displayed with some WMS overlays. What I have found is that when minZoomLevel is set the WMS overlays become disabled as I zoom in. >From reading other posts I take it this is a bug, can someone tell me has this been fixed in 2.4 or is there any other solution to this problem ? I have tried changing the Google.js to have maxZoomLevel:20 and added the appropriate resolutions. This means I can zoom in a couple of extra zoom levels but as this happens the WMS overlays get disabled, this still doesnt solve the problem with having a minZoomLevel, if that is set the overlays get disabled earlier. my code is similar to the following:- var options = { controls: [], numZoomLevels: 20, minZoomLevel: 5 }; OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; map = new OpenLayers.Map('map', options); var baseOptions = {isBaseLayer: true}; googleMap = new OpenLayers.Layer.Google (\"GoogleMap\", {type: G_NORMAL_MAP} ); googleMap.addOptions(baseOptions); googleHyb = new OpenLayers.Layer.Google (\"GoogleHyb\", {type: G_HYBRID_MAP} ); googleHyb.addOptions(baseOptions); var layerOptions = {isBaseLayer: false, visibility: false}; wms_nz = new OpenLayers.Layer.WMS(\"WMS NZ Coast\", \" http://localhost:8080/geoserver/wms?service=wms\", {layers: 'bimaris:nzcoast', format: 'image/png', transparent: true} ); wms_nz.addOptions(layerOptions); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/276f75e1/attachment.html From spietz at fh-bingen.de Thu May 3 02:50:31 2007 From: spietz at fh-bingen.de (Christine Spietz) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] show new features (dynamically added) in vectorlayer References: <015b01c78ca3$ccd641e0$b84f5d8f@PSP> Message-ID: <00a701c78d4f$5adc7a80$b84f5d8f@PSP> Hi Anselm, I addded "map.zoomToMaxExtent();" at the end of my function, what should force a repaint, but the dynamiccaly added features are still not painted. There also is no div or other element in front of my openlayer-map. Unfortunately I can not test the whole thing in IE because I am working with XForms in my form and there is a different processing of XForms in IE and Firefox. I have some new information which might perhaps help to solve the problem: I made an Output of the geometry of my features with ----------------------------------->snip---------------------------------- alert("---------------------geometry.toString() = "+geometry.toString()); -----------------------------------snip>---------------------------------- Curios: The original contained Polygons have output like: POLYGON((3432210.443 5496303.862, 3432272.872 5496336.091, ... )) The new added polygon behave in another way. before insertion in the layer I also get an output of the geometry this way POLYGON((3432210.443 5496303.862, 3432272.872 5496336.091, ... )) but after insertion I only get an out put like POLYGON(()) I think there is the problem. I thought that I might have to create a new Polygon-object which could be done the following way ----------------------------------->snip---------------------------------- geometryString = geometry.toString(); //POLYGON((...)) geometryString= geometryString.substring(9,geometryString.length-2); geometryStringArray= geometryString.split(","); //cointains the single Points (x y) var pointList = []; for (i=0;i---------------------------------- But this also does not help. Besides that I also recognized, that something might be wrong in the geometry-object because the following code did not work: ----------------------------------->snip---------------------------------- ii = geometry.components.length; for (i=0;i---------------------------------- throws an error: "linearRing.components has no properties" => There seems to be no Point-pbjects in linearRing So my conclusion is, that the new added features are not shown because there seems to be something wrong with geometry. I'm getting the geometry out of OpenLayers.Control.SelectFeature. There I added one line of code to the select-method: ----------------------------------->snip---------------------------------- select: function(geometry) { //added line: addFeatureToLayer(geometry.feature.fid, geometry.feature.attributes.flaeche, geometry); if(geometry.feature.originalStyle == null) { geometry.feature.originalStyle = geometry.feature.style; } this.layer.selectedFeatures.push(geometry.feature); this.layer.renderer.drawGeometry(geometry, this.selectStyle); this.onSelect(geometry); }, -----------------------------------snip>---------------------------------- Any ideas what is going wrong? Thanks for help Christine ----- Original Message ----- From: "Christine Spietz" To: Sent: Wednesday, May 02, 2007 12:22 PM Subject: [OpenLayers-Users] show new features (dynamically added) in vectorlayer > Hi, > > I've allready posted the question at the end of April to > dev@openlayers.org, > but didn't get any answer. > So perhaps somebody in this list has an idea and can help with the > following > problem: > > I have problems to show features which are dynamically added to a > vector-layer. > I first initialize my map with a baselayer and some overlays. One of the > overlays is a vector-layer which has some polygon-feature inside. > > -----------------------------------snip>---------------------------------- > layer_1 = new OpenLayers.Layer.Vector("layer_1"); > //init the layer with > ... > var polygonFeature = new OpenLayers.Feature.Vector(new > OpenLayers.Geometry.Polygon([linearRing])); > layer.addFeatures([polygonFeature]); > ... > //add the layer to the map > map.addLayer(layer_1); > ----------------------------------->snip---------------------------------- > > This works fine. Now I insert another feature in the layer for example > after > a button ist clicked: > > -----------------------------------snip>---------------------------------- > polygonFeature = new OpenLayers.Feature.Vector(geometry); > polygonFeature .setFid(fid); > layer_1.addFeatures([polygonFeature]); > ----------------------------------->snip---------------------------------- > > layer.features.length gives the correct length of the feature-array in > layer_1 and the geometry-object is a correct polygon. So everything seems > to > be fine > Now I try to redraw the layer to show all polygon-features included in the > layer. I tried several ways but none of them worked. > > -----------------------------------snip>v1------------------------------- > layer_1.redrawFeature(fid,'default'); > ----------------------------------->snip---------------------------------- > -----------------------------------snip>v2------------------------------- > map.removeLayer(layer_1,false); > layer_1 = new OpenLayers.Layer.Vector("layer_1"); > //draw the layer > map.addLayer(layer_1); > ----------------------------------->snip---------------------------------- > -----------------------------------snip>v3------------------------------- > drawControls = { > polygon: new > OpenLayers.Control.DrawFeature(layer_1,OpenLayers.Handler.Polygon) > }; > for(var key in drawControls) { > map.addControl(drawControls[key]); > } > ----------------------------------->snip---------------------------------- > > I'm using openlayers2.4 rc1 with mozilla firefox 2.0.0.3. > Can anybody please give ma a hint? > > Sincerely > Christine > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From drspencer at hotmail.com Thu May 3 05:08:23 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Possible GML drawing bug Message-ID: <10301359.post@talk.nabble.com> Hi I think I have found a bug related to GML rendering. See http://www.villageografica.com/test47/Africa-test.html . Try zooming out a lot, some 5 times. This will make GML rendering, so far working perfectly, incorrect. The drawing is now dislocated and oversized. Has anyone else noticed this? Magnus -- View this message in context: http://www.nabble.com/Possible-GML-drawing-bug-tf3685391.html#a10301359 Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Thu May 3 05:23:47 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] how to update location of Text layer? Message-ID: <9e9f418374c1cb8fe8464eec458727d9@145.50.39.11> Hi list, what is the correct way to refresh a Text layer with a new location? We are gonna have a server-side script which will generate the txt files for the markers, and this script can interpret a startdate and enddate which the user can select. Depending on this, a different set of markers need to be shown. Thanks in advance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From rdmailings at duif.net Thu May 3 07:40:12 2007 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image Message-ID: <4639CA1C.9010805@duif.net> Hi List, What is the preferred way to implement some kind of 'loading or busy message' for a slow wms server? I've got a map with some (faster) tiled reference layers, and one (slow) untiled wms top layer. While the reference layer loads pretty fast, the (dynamic) top layer is sometimes loaded after a few seconds. I want to inform users that they have to be patient for a while :-) If there is some kind of callback mechanisme possible which is called when the image is loaded? So I can show an image while loading, and remove it when this callback function is called. TIA Richard Duivenvoorde From crschmidt at metacarta.com Thu May 3 07:48:56 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] how to update location of Text layer? In-Reply-To: <9e9f418374c1cb8fe8464eec458727d9@145.50.39.11> References: <9e9f418374c1cb8fe8464eec458727d9@145.50.39.11> Message-ID: <20070503114856.GB2873@metacarta.com> On Thu, May 03, 2007 at 11:23:47AM +0200, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > what is the correct way to refresh a Text layer with a new location? I don't believe this functionality exists. (Note that the Text layer is probably the layer which has received the least attention since it was originally created in OpenLayers 1.0.) You could dig into the code to check, but I think the best answer is probably to create a new layer, and destroy the existing text layer. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 3 07:50:40 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Possible GML drawing bug In-Reply-To: <10301359.post@talk.nabble.com> References: <10301359.post@talk.nabble.com> Message-ID: <20070503115040.GC2873@metacarta.com> On Thu, May 03, 2007 at 02:08:23AM -0700, kaka wrote: > > Hi > I think I have found a bug related to GML rendering. See > http://www.villageografica.com/test47/Africa-test.html . Try zooming out a > lot, some 5 times. This will make GML rendering, so far working perfectly, > incorrect. The drawing is now dislocated and oversized. Has anyone else > noticed this? This is http://trac.openlayers.org/ticket/658 . This is fixed by the 'slowvector' branch: http://svn.openlayers.org/sandbox/crschmidt/slowvector/ . I'll update that branch to trunk before the weekend. A fix of this type will be included in OpenLayers 2.5. REgards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 3 07:52:17 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <4639CA1C.9010805@duif.net> References: <4639CA1C.9010805@duif.net> Message-ID: <20070503115217.GD2873@metacarta.com> On Thu, May 03, 2007 at 01:40:12PM +0200, Richard Duivenvoorde wrote: > Hi List, > > What is the preferred way to implement some kind of 'loading or busy > message' for a slow wms server? > > I've got a map with some (faster) tiled reference layers, and one (slow) > untiled wms top layer. While the reference layer loads pretty fast, the > (dynamic) top layer is sometimes loaded after a few seconds. I want to > inform users that they have to be patient for a while :-) > > If there is some kind of callback mechanisme possible which is called > when the image is loaded? So I can show an image while loading, and > remove it when this callback function is called. There are 'loadstart' and 'loadend' events on the layer. Those are probably the best thing to work with. Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Thu May 3 07:58:08 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image Message-ID: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> Hi Richard, there is for WMS.Untiled only: var layerloadcounter = 0; var activitydiv; mylayer.events.register( 'loadend', this, decreasecounter); mylayer.events.register( 'loadcancel', this, decreasecounter); mylayer.events.register( 'loadstart', this, increasecounter); function increasecounter() { layerloadcounter++; if (layerloadcounter > 0 && activitydiv) { activitydiv.style.visibility = "visible"; } } function decreasecounter(){ if (layerloadcounter > 0) layerloadcounter--; if (layerloadcounter == 0 && activitydiv) { activitydiv.style.visibility = "hidden"; } } And then have some kind of div in the center of the map div: function activitylayerinit() { sz = new OpenLayers.Size(); sz.h = gMapDHTMLWaitImageHeight; sz.w = gMapDHTMLWaitImageWidth; var dim = OpenLayers.Element.getDimensions(map.viewPortDiv); position = new OpenLayers.Pixel(dim.width-gMapDHTMLWaitImageWidth-25, gMapDHTMLWaitImageHeight); activitydiv = OpenLayers.Util.createDiv("ActivityLayer", position, sz, gMapDHTMLWaitImage); activitydiv.style.zIndex = 1000; map.viewPortDiv.appendChild(activitydiv); } Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Richard Duivenvoorde Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] wms untiled 'busy loading' message or image Datum: 03/05/07 09:40 > Hi List, > > What is the preferred way to implement some kind of 'loading or busy > message' for a slow wms server? > > I've got a map with some (faster) tiled reference layers, and one (slow) > untiled wms top layer. While the reference layer loads pretty fast, the > (dynamic) top layer is sometimes loaded after a few seconds. I want to > inform users that they have to be patient for a while :-) > > If there is some kind of callback mechanisme possible which is called > when the image is loaded? So I can show an image while loading, and > remove it when this callback function is called. > > TIA > > Richard Duivenvoorde > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From drspencer at hotmail.com Thu May 3 08:11:02 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Possible GML drawing bug In-Reply-To: <20070503115040.GC2873@metacarta.com> References: <10301359.post@talk.nabble.com> <20070503115040.GC2873@metacarta.com> Message-ID: <10303558.post@talk.nabble.com> OK, good to know that you are on top of things. Magnus Christopher Schmidt-4 wrote: > > On Thu, May 03, 2007 at 02:08:23AM -0700, kaka wrote: >> >> Hi >> I think I have found a bug related to GML rendering. See >> http://www.villageografica.com/test47/Africa-test.html . Try zooming out >> a >> lot, some 5 times. This will make GML rendering, so far working >> perfectly, >> incorrect. The drawing is now dislocated and oversized. Has anyone else >> noticed this? > > This is http://trac.openlayers.org/ticket/658 . This is fixed by the > 'slowvector' branch: > http://svn.openlayers.org/sandbox/crschmidt/slowvector/ . I'll update > that branch to trunk before the weekend. A fix of this type will be > included in OpenLayers 2.5. > > REgards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Possible-GML-drawing-bug-tf3685391.html#a10303558 Sent from the OpenLayers Users mailing list archive at Nabble.com. From rdmailings at duif.net Thu May 3 09:27:13 2007 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image Message-ID: <4639E331.4030207@duif.net> Thanks both! Exactly what I needed. grtz Richard Duivenvoorde From John.Westwood at port.ac.uk Thu May 3 11:14:39 2007 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Object orientated map interface Message-ID: <463A0A6F.FEDC.0053.0@port.ac.uk> Hi OpenLayers Gurus, I am trying to write an object orientated map interface with Javascript and OpenLayers. So far I have been partially successful. The problem occurs when I attempt to navigate one of the map windows. If I use the map controls located on the left then each map behaves independently, which is what I want. However, if I pan by clicking and dragging the map or if I zoom by shift clicking and drawing a zoom rectangle, then both maps respond simultaneously - which is NOT what I want. Is this a problem with my code? Or something to do with OpenLayers? Or something to do with AJAX in general? Any ideas would be greatly appreciated. I am attaching my code (a html file and a js file - renamed jscript so that it isn't blocked) and a picture of the output. Regards, John Westwood ================================ John Westwood Research Assistant Great Britain Historical GIS Project Department of Geography, University of Portsmouth Buckingham Building, Lion Terrace, Portsmouth PO1 3HE GIS Project Office: (023) 9284 2500 -------------- next part -------------- A non-text attachment was scrubbed... Name: ObjectOrientated.jpg Type: image/jpeg Size: 154485 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/ObjectOrientated.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: EmbeddedMap.jscript Type: application/octet-stream Size: 1684 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/EmbeddedMap.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/embedded.html From John.Westwood at port.ac.uk Thu May 3 12:02:42 2007 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Object orientated map interface In-Reply-To: References: <463A0A6F.FEDC.0053.0@port.ac.uk> Message-ID: <463A15B2.FEDC.0053.0@port.ac.uk> Awesome, that works perfectly. Thanks very much Ezequiel! Regards, John W. ================================ John Westwood Research Assistant Great Britain Historical GIS Project Department of Geography, University of Portsmouth Buckingham Building, Lion Terrace, Portsmouth PO1 3HE GIS Project Office: (023) 9284 2500 >>> "Ezequiel Gonzalez Rial" 03/05/2007 16:47 >>> John, I recommend you to split your map into different divs and when you call your function, pass them as parameters. Using your files I could make it work. I copy the modified lines: HTML: 17: newMap1 = new EmbeddedMap('map'); 19: newMap2 = new EmbeddedMap('map2'); +31:
Javascript: 1: function EmbeddedMap(div) 3: var map = new OpenLayers.Map(div); Hope you can use it this way. -- Best Regards Ezequiel Gonzalez Rial (gonrial@gmail.com) From jdege at korterra.com Thu May 3 12:34:37 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] LayerSwitcher and base layers? Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370959@mrburns.KorOffice.local> I'm using a layer switcher, and since I have only one base layer, I'd like to have it not displayed in the layer switcher. I set baseLayer.displayInLayerSwitcher = false, but it still showed up. Is there some reason why base layers have to be displayed in the layer switcher? If not, could be change it so that displayInLayerSwitcher is abided by for baselayers? From crschmidt at metacarta.com Thu May 3 13:08:49 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] LayerSwitcher and base layers? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370959@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370959@mrburns.KorOffice.local> Message-ID: <20070503170849.GA8052@metacarta.com> On Thu, May 03, 2007 at 11:34:37AM -0500, Jeff Dege wrote: > Is there some reason why base layers have to be displayed in the layer > switcher? No. > If not, could be change it so that displayInLayerSwitcher is > abided by for baselayers? Yep. Patches welcome. Regards, -- Christopher Schmidt MetaCarta From rakunkel at ucdavis.edu Thu May 3 13:24:58 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Class reference doc 404 Message-ID: Currently getting a 404 on the Class Reference page: http://openlayers.org/doc/reference.html Is there a new doc out? Thanks Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/c7ae4158/attachment.html From crschmidt at metacarta.com Thu May 3 13:30:40 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:28 2010 Subject: [OpenLayers-Users] Class reference doc 404 In-Reply-To: References: Message-ID: <20070503173040.GB8237@metacarta.com> On Thu, May 03, 2007 at 10:24:58AM -0700, Roger Kunkel wrote: > Currently getting a 404 on the Class Reference page: > > http://openlayers.org/doc/reference.html > > Is there a new doc out? Yep. http://dev.openlayers.org/docs/overview-summary.html Regards, -- Christopher Schmidt MetaCarta From mikequentel at yahoo.com Thu May 3 13:38:31 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers Message-ID: <681171.18283.qm@web32515.mail.mud.yahoo.com> True, ArcIMS has a WMS Connector that creates WMS capabilities XML files based on ArcIMS map services. The connector (servlet) then translates WMS requests into ArcXML requests to the ArcIMS server (ArcXML is an XML used by ESRI software). It also returns results that WMS clients can consume. Works for the most part as expected; however, it has limitations.... So, you might think that if you already have the ArcIMS WMS Connector, then what's the point of having ArcIMS support in OpenLayers? Answer: ArcIMS WMS Connector does not support SLD filters. So, if you want to filter a set of features (i.e., just draw a map of features selected from an attribute in a table), not from a GetFeatureInfo request (which is like a mouse click on the map--based on x y coord query), ArcIMS WMS Connector will not help. See http://forums.esri.com/Thread.asp?c=64&f=784&t=215215&mc=6 An ESRI representative confirmed that the WMS Connector does not support SLD filters (though, it supports some other use of SLD). ESRI have not provided readable source code for the WMS Connector--it is obfuscated. So, trying to extend the connector is a bit of work; one would probably be better off rolling their own WMS connector. So, that's why I'd love to see ArcIMS support in OpenLayers. For now, I am looking into ways to query ArcIMS (using 9.1 sp2), and return the filtered features URL in a way that OpenLayers can consume the resulting image. Another possibility would be to see how ArcIMS might support WFS. ESRI are not very supportive of open source software--it interferes with their sales of ArcGIS Server. From what I can see, MapServer and GeoServer offer better support for WMS than ArcIMS does. Anyone with advice on extending OL for attribute queries in ArcIMS, please do share. Thanks. Mike Quentel ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ From bdwilton at gmail.com Thu May 3 17:49:43 2007 From: bdwilton at gmail.com (bdw) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Why is there a large white background area beyond raster image overlays ? In-Reply-To: References: Message-ID: <10313787.post@talk.nabble.com> I managed to sort this out, transparent: true did work in the end, must have been a cache at some point along the line bdw wrote: > > Hello, > I'm a new user to OpenLayers I'm running 2.3 and are getting WMS data from > GeoServer 1.5.0. What I was trying to do was have a shape file as my base > map and various tiff image overlays (all requested as PNG). Both the base > map and a single overlay layer are displayed however the overlay image has > a > massive white area outside of the image extent. > > I have tried specifying transparent: true but no luck, I can reduce the > white area by setting maxExtent: new OpenLayers.Bounds(...) but can only > get > that to work when using lat & lon values (which dont seem to be accurate > to > the amount they reduce the white area. > > my code is similar to the following :- > map = new OpenLayers.Map( $('map'), { controls: [] }); > var basemap = new OpenLayers.Layer.WMS("NZ Coast", > "http://localhost:8080/geoserver/wms?service=wms", > {layers: 'bimaris:nzcoast', bgcolor: '#96B4CC', format: 'image/png'}, > {maxExtent: new OpenLayers.Bounds(166.25916889102302,-47.4098674940290, > 179.48459790941232,-34.001147239984334)} > ); > var overlay = new OpenLayers.Layer.WMS("Sat Img", > "http://localhost:8080/geoserver/wms?service=wms", > {layers: 'topp:be37a', format: 'image/png', transparent: true}, > {isBaseLayer: false, maxExtent: new OpenLayers.Bounds(176,-38,175,-37.86), > opacity: 0.5} > ); > > Any suggestions or help appreciated. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Why-is-there-a-large-white-background-area-beyond-raster-image-overlays---tf3657040.html#a10313787 Sent from the OpenLayers Users mailing list archive at Nabble.com. From ddespres at sigbea.fr Fri May 4 01:35:37 2007 From: ddespres at sigbea.fr (DESPRES Damien) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] WFS-T update-delete support Message-ID: <463AC629.3090908@sigbea.fr> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/832cfed7/attachment.html From benafia_olfa at yahoo.fr Fri May 4 06:27:02 2007 From: benafia_olfa at yahoo.fr (ben afia olfa) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] GetLegend Request Message-ID: <20070504102702.73955.qmail@web27311.mail.ukl.yahoo.com> Hi all Is openlayers is offering ways to get a map's legend by requesting a server like geoserver ? thanks ___________________________________________________________________________ D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions ! Profitez des connaissances, des opinions et des exp?riences des internautes sur Yahoo! Questions/R?ponses http://fr.answers.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/75986110/attachment.html From bartvde at osgis.nl Fri May 4 07:17:54 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Navigation question Message-ID: <00f40da44ca627e1d1a0f0eedefe5f05@145.50.39.11> Hi list, is the following combination possible: 1) onclick = recenter the map and: 2) zoombox without a key ? I can get the zoombox to work without a key by leaving out the keyMask parameter. But the onclick does not work, it will also trigger a very small box and the associated zoombox handler. Using 2.4RC3 and dragpan disabled. Thanks in advance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From crschmidt at metacarta.com Fri May 4 07:27:25 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] GetLegend Request In-Reply-To: <20070504102702.73955.qmail@web27311.mail.ukl.yahoo.com> References: <20070504102702.73955.qmail@web27311.mail.ukl.yahoo.com> Message-ID: <20070504112725.GB24280@metacarta.com> On Fri, May 04, 2007 at 10:27:02AM +0000, ben afia olfa wrote: > Hi all > Is openlayers is offering ways to get a map's legend by requesting a server like geoserver ? In general, I believe this is something that should be done at the application level. Clean patches accepted, as always. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri May 4 07:47:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] WFS-T update-delete support In-Reply-To: <463AC629.3090908@sigbea.fr> References: <463AC629.3090908@sigbea.fr> Message-ID: <20070504114728.GB24557@metacarta.com> On Fri, May 04, 2007 at 07:35:37AM +0200, DESPRES Damien wrote: >     I have not found on the website if the integration of WFS-T update > and delete operations are planned.
>     Have you some informations about that? Is it in the roadmap?
As far as I know, the WFS-T update/delete operations are supported in the code, but have no frontend available. This means that your application should be able to make immediate use of them. UI for modifying geometries is in development for 2.5. UI for deleting features is not available, but patches are welcome. (I don't know if it will make it into 2.5 without a patch.) The 'commit' method on the WFS layer will save the data. Regards, -- Christopher Schmidt MetaCarta From john.cole at uai.com Fri May 4 09:35:02 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] issue with AnchoredBubble... Message-ID: <76758090F8686C47A44B6FF52514A1D307909C77@hermes.uai.int> I'm trying to get the close button to appear in an anchored bubble, and I *think* I have found the issue, but I?m unsure of the proper fix. Online 77 of the AnchoredBubble.js: this.setRicoCorners(!this.rounded); this is called after the div.innerHTML has been set with the close box html, but this.rounded is false, so setRicoCorners(firstTime) is true, which overwrites the innerHTML, erasing the close box. Is it necessary to call setRicoCorners(true) or can it always be false, to preserve the close box? Thanks, John No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.2/787 - Release Date: 5/3/2007 2:11 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From john.cole at uai.com Fri May 4 10:06:39 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] issue with AnchoredBubble... Message-ID: <76758090F8686C47A44B6FF52514A1D307909C78@hermes.uai.int> Upon further investigation, the close box is getting removed in the Corner.js reRound function. It seems that reRound is assuming that there are only three children, the first being the top rico corners and the last being the bottom ones, but with the close button on there theDiv.parentNode.childNodes[2]; is the close button and not the bottom rico corners. Any suggestions for attacking this problem :-) Is the close button getting placed at the wrong level? Or should the popup keep up with how many children it's got when it rounds the corners? Thanks, John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of John Cole Sent: Friday, May 04, 2007 8:35 AM To: openlayers Subject: [OpenLayers-Users] issue with AnchoredBubble... I'm trying to get the close button to appear in an anchored bubble, and I *think* I have found the issue, but I?m unsure of the proper fix. Online 77 of the AnchoredBubble.js: this.setRicoCorners(!this.rounded); this is called after the div.innerHTML has been set with the close box html, but this.rounded is false, so setRicoCorners(firstTime) is true, which overwrites the innerHTML, erasing the close box. Is it necessary to call setRicoCorners(true) or can it always be false, to preserve the close box? Thanks, John No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.2/787 - Release Date: 5/3/2007 2:11 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.2/787 - Release Date: 5/3/2007 2:11 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.2/787 - Release Date: 5/3/2007 2:11 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From DCarreira at edia.pt Fri May 4 10:32:05 2007 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers Message-ID: <94C0F903807262438796839A98A9BA500193715B@beja001.edia.pt> I'm using ArcIMS and agree that ArcIMS support would be great. ArcXML does much more than WMS, AFAIK. For instance, I can create buffers and graphics layers on-the-fly, and query across layers (select features that intersect features on another layer). I can also load a new layer from data on disk. But maybe you could get a workaround for the lack of filter support in WMSConnector by using the examples on ArcIMS 9.2 help docs: file:///C:/Program files/ArcGIS/ArcIMS/Help/mergedProjects/wms_connect/sld/createandusestyl edlyrdesc.htm If you just symbolize the values you want to filter than it will be like querying. On the other hand, wfsconnector does support filter, but obviously is not wms... Another option, would be using OL WMS layers and append custom tags using mergenewparams. On the server you'd need a redirector script that would translate OL's custom requests to ArcIMS and vice-versa. But nothing would beat OL native support of ArcIMS layers. Duarte -----Mensagem original----- Message: 4 Date: Thu, 3 May 2007 10:38:31 -0700 (PDT) From: Mike Quentel Subject: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers To: OpenLayers Users Message-ID: <681171.18283.qm@web32515.mail.mud.yahoo.com> Content-Type: text/plain; charset=ascii True, ArcIMS has a WMS Connector that creates WMS capabilities XML files based on ArcIMS map services. The connector (servlet) then translates WMS requests into ArcXML requests to the ArcIMS server (ArcXML is an XML used by ESRI software). It also returns results that WMS clients can consume. Works for the most part as expected; however, it has limitations.... So, you might think that if you already have the ArcIMS WMS Connector, then what's the point of having ArcIMS support in OpenLayers? Answer: ArcIMS WMS Connector does not support SLD filters. So, if you want to filter a set of features (i.e., just draw a map of features selected from an attribute in a table), not from a GetFeatureInfo request (which is like a mouse click on the map--based on x y coord query), ArcIMS WMS Connector will not help. See http://forums.esri.com/Thread.asp?c=64&f=784&t=215215&mc=6 An ESRI representative confirmed that the WMS Connector does not support SLD filters (though, it supports some other use of SLD). ESRI have not provided readable source code for the WMS Connector--it is obfuscated. So, trying to extend the connector is a bit of work; one would probably be better off rolling their own WMS connector. So, that's why I'd love to see ArcIMS support in OpenLayers. For now, I am looking into ways to query ArcIMS (using 9.1 sp2), and return the filtered features URL in a way that OpenLayers can consume the resulting image. Another possibility would be to see how ArcIMS might support WFS. ESRI are not very supportive of open source software--it interferes with their sales of ArcGIS Server. From what I can see, MapServer and GeoServer offer better support for WMS than ArcIMS does. Anyone with advice on extending OL for attribute queries in ArcIMS, please do share. Thanks. Mike Quentel From crschmidt at metacarta.com Fri May 4 10:57:05 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers In-Reply-To: <94C0F903807262438796839A98A9BA500193715B@beja001.edia.pt> References: <94C0F903807262438796839A98A9BA500193715B@beja001.edia.pt> Message-ID: <20070504145705.GB26859@metacarta.com> On Fri, May 04, 2007 at 03:32:05PM +0100, Duarte Carreira wrote: > But nothing would beat OL native support of ArcIMS layers. The possibly significant cost of doing two round trips from the browser for each request might actually make that untrue. (No way to know without testing, but possible.) I'm not against it for that reason -- it's always been on my plate to implement an ArcXML layer (There's even a ticket for it in trac), but it's something to be aware of. Regards, -- Christopher Schmidt MetaCarta From mikequentel at yahoo.com Fri May 4 13:39:16 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] title or alt-looking mouseover labels for OpenLayers.Control.EditingToolbar Message-ID: <967553.1865.qm@web32511.mail.mud.yahoo.com> Please, need advice on creating mouseover alt/title-looking label functionality for the drawing tools in OpenLayers.Control.EditingToolbar. Has anyone created tool tip help (during mouseover on the tool) for any of the controls? Any examples? Many thanks. Mike Quentel ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From mikequentel at yahoo.com Fri May 4 13:51:12 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers Message-ID: <176281.77235.qm@web32502.mail.mud.yahoo.com> Thank you for the advice. In a few years, the old (3.x - 9.x) ArcIMS server software will likely become obsolete. ESRI are already pushing ArcGIS Server as their flagship server-side GIS/web mapping software. I do not know if ArcXML will continue to be a supported means of communicating with the server. But, as happened with other older versions of ESRI software (like ArcView 3.x, ARC/INFO, etc), there will be plenty of organisations using the older ArcIMS software for a good number of years. It has commanded popularity with very many government sites and corporate sites. So, I think ArcIMS support and general ArcXML support in OL would be very well-received. You could even publish it at the ESRI web site for sharing software and scripts: http://arcscripts.esri.com/ I bet if you did this, OL would become even more popular. OL greatly impresses me, and I have been using ESRI software for over a decade. Mike Quentel ----- Original Message ---- From: Christopher Schmidt To: Duarte Carreira Cc: users@openlayers.org Sent: Friday, 4 May, 2007 8:57:05 AM Subject: Re: [OpenLayers-Users] reason why there needs to be ArcIMS support in OpenLayers On Fri, May 04, 2007 at 03:32:05PM +0100, Duarte Carreira wrote: > But nothing would beat OL native support of ArcIMS layers. The possibly significant cost of doing two round trips from the browser for each request might actually make that untrue. (No way to know without testing, but possible.) I'm not against it for that reason -- it's always been on my plate to implement an ArcXML layer (There's even a ticket for it in trac), but it's something to be aware of. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From jdege at korterra.com Fri May 4 14:00:12 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] title or alt-looking mouseover labels forOpenLayers.Control.EditingToolbar In-Reply-To: <967553.1865.qm@web32511.mail.mud.yahoo.com> References: <967553.1865.qm@web32511.mail.mud.yahoo.com> Message-ID: <34E056CD4D475841B8C9ABCE956F92F637095F@mrburns.KorOffice.local> > -----Original Message----- > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] On Behalf Of Mike Quentel > Sent: Friday, May 04, 2007 12:39 PM > To: OpenLayers Users > Subject: [OpenLayers-Users] title or alt-looking mouseover > labels forOpenLayers.Control.EditingToolbar > > Please, need advice on creating mouseover alt/title-looking > label functionality for the drawing tools in > OpenLayers.Control.EditingToolbar. Has anyone created tool > tip help (during mouseover on the tool) for any of the > controls? Any examples? This works in IE6: var control = new OpenLayers.Control.DrawFeature(...); control.panel_div.title = 'Tool Tip'; From sderle at metacarta.com Fri May 4 15:07:25 2007 From: sderle at metacarta.com (Schuyler Erle) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Navigation question In-Reply-To: <00f40da44ca627e1d1a0f0eedefe5f05@145.50.39.11> References: <00f40da44ca627e1d1a0f0eedefe5f05@145.50.39.11> Message-ID: <1178305645.24820.8.camel@parvati> On Fri, 2007-05-04 at 13:17 +0200, Bart van den Eijnden (OSGIS) wrote > I can get the zoombox to work without a key by leaving out the keyMask > parameter. > > But the onclick does not work, it will also trigger a very small box and the > associated zoombox handler. Rather than calling map.events.register(), try calling map.events.registerPriority() on the onClick handler. Beware that this API function is going to change in OpenLayers 2.0 (whenever the heck that's going to be). SDE From tlanglois at archetypecorp.com Fri May 4 15:42:53 2007 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon Message-ID: <1178307773.3052.27.camel@langlap> I wrote a custom handler to draw an N-sided regular polygon by clicking and dragging a line to specify the radius. The polygon is drawn on mouse up. The number of sides is specified by the "sides" attribute. Here's an example. Click the polygon button in the toolbar in the upper right corner and click and drag to create the polygon. To change the sides, enter the number of sides you want and click submit. http://maps.terratrace.net/mapserver/vmaptest.html Attached is the handler code. The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/6e067e85/RegularPolygon.js.html From g.medard at ucl.ac.uk Fri May 4 15:56:12 2007 From: g.medard at ucl.ac.uk (Guillaume MEDARD) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] popup html content In-Reply-To: <463B8E8E.3020507@ucl.ac.uk> References: 1170277058.7181.154.camel@wardrobe.dhs.org <463B8E8E.3020507@ucl.ac.uk> Message-ID: <463B8FDC.7060105@ucl.ac.uk> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/3c27a907/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 475 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/3c27a907/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 396 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/3c27a907/attachment-0001.gif From kobben at itc.nl Fri May 4 16:10:13 2007 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] GetLegend Request References: <20070504102702.73955.qmail@web27311.mail.ukl.yahoo.com> <20070504112725.GB24280@metacarta.com> Message-ID: <5AF149DBB6DFE24AA3F4F53201E539AD1E2AC0@itcnt24.itc.nl> ...and if you use an SLD-enabled WMS such as Geoserver or Mapserver in WMSmode, you can just include the legend as an image on your web page: /> -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; ________________________________ From: users-bounces@openlayers.org on behalf of Christopher Schmidt Sent: Fri 5/4/2007 13:27 To: ben afia olfa Cc: openlayer Subject: Re: [OpenLayers-Users] GetLegend Request On Fri, May 04, 2007 at 10:27:02AM +0000, ben afia olfa wrote: > Hi all > Is openlayers is offering ways to get a map's legend by requesting a server like geoserver ? In general, I believe this is something that should be done at the application level. Clean patches accepted, as always. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From Eric.Lemoine at camptocamp.com Sat May 5 07:08:33 2007 From: Eric.Lemoine at camptocamp.com (Eric Lemoine) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon In-Reply-To: <1178307773.3052.27.camel@langlap> References: <1178307773.3052.27.camel@langlap> Message-ID: <5ec103de0705050408w6bab7904kd7c773b780502834@mail.gmail.com> On 5/4/07, Tim Langlois wrote: > I wrote a custom handler to draw an N-sided regular polygon by clicking > and dragging a line to specify the radius. The polygon is drawn on > mouse up. The number of sides is specified by the "sides" attribute. > > Here's an example. Click the polygon button in the toolbar in the upper > right corner and click and drag to create the polygon. To change the > sides, enter the number of sides you want and click submit. > > http://maps.terratrace.net/mapserver/vmaptest.html Get a 403 Forbidden. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com From mfrumin at rpa.org Sun May 6 14:54:20 2007 From: mfrumin at rpa.org (mfrumin) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Popup for WFS Feature Message-ID: <10348127.post@talk.nabble.com> using: 2.4-rc3 I think I get it -- to cutomize the way your WFS points are represented, you should subclass and override createMarker() and createPopup(). that said, when I look at the Feature class, it appears to have a createPopup() method, but having put in an alert() it never seems to get called when i click on the (default red diamond) marker. here's how I have created my WFS layer: layer = new OpenLayers.Layer.WFS( "Stations WFS", wfs, { typename: 'frumin:trx_stations', maxfeatures: 1 } , { featureClass: OpenLayers.Feature.WFS} ); map.addLayer(layer); and it works gorgeously in terms of getting the red marker, but I want to program some interactivity. maybe I shouldn't be surprised tho, because the example i got it from (http://openlayers.org/dev/examples/wfs.html) doesn't seem to have any interactivity on the markers either. what think? thanks, mike -- View this message in context: http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a10348127 Sent from the OpenLayers Users mailing list archive at Nabble.com. From gstamp at gmail.com Sun May 6 19:37:38 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: <6ae3fb590704270837n5d63723eq19f6ed3601d8e751@mail.gmail.com> References: <6ae3fb590704270837n5d63723eq19f6ed3601d8e751@mail.gmail.com> Message-ID: Sorry for the late reply. I'm just a plain old WMS layer. If I'm the only one getting this I'll see if I can come up with a self contained example and stick is somewhere public. Regards, Glen On 28/04/07, Erik Uzureau wrote: > > It might help to mention what layer you're using as a baselayer :-) > > On 4/26/07, Glen Stampoultzis wrote: > > > > I'm using the vector support in RC2 to draw a route. This is working > > very nicely but in FF there's a very distracting flicker when dragging the > > map around. It appears where the lines form triangles it get black area's > > that appear briefly before things are redrawn. Anyone seen this? I'm > > afraid I don't have a public facing example to show. > > > > -- Glen > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070507/33022bd1/attachment.html From benafia_olfa at yahoo.fr Mon May 7 06:30:29 2007 From: benafia_olfa at yahoo.fr (ben afia olfa) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Customizing control Message-ID: <984362.16371.qm@web27310.mail.ukl.yahoo.com> Hi , How can i do to add a personnal control in a map in a position that i defined by myself ____________________________________________________________________________________________ D?couvrez le blog Yahoo! Mail : derni?res nouveaut?s, astuces, conseils.. et vos r?actions ! http://blog.mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070507/906d79ea/attachment.html From nick at hogweed.org Mon May 7 07:01:47 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Is it possible to completely change the projection of a Map? Message-ID: <200705071201.47426.nick@hogweed.org> Hello everyone, As part of an OpenStreetMap editing application I'm doing, I would like to be able to replace not only the layers but also the projection of the base map. The application is a point-of-interest editor for OpenStreetMap, it allows users to use the OpenLayers Vector layer to trace the outlines of lakes and woods and also add POIs like hill summits. I want users to be able to switch between two base layers. The two base layers comprise Freemap (OpenStreetMap rendering client) which is projected in Mercator, and the New Popular Edition (old Ordnance Survey maps of the UK) which has the OSGB36 projection. At the moment I use a combination of PHP (i.e. completely reload the page from the server) and openlayers JS code to deal with the switch. In other words, the Map object created depends on a query string value. Can I instead do it all within OpenLayers without necessitating a page reload? My current code is as below (the variable "basemap" ultimately derives from a query string value, and "converter" is a class I've written to deal with conversion between projections). Thanks, Nick if (basemap=="npe") { cvtr = new converter("OSGB"); /* NPE BEGIN */ map = new OpenLayers.Map('map', { maxExtent: new OpenLayers.Bounds (0,0,599999,999999), maxResolution : 8, units: 'meters' } ); base = new OpenLayers.Layer.WMS( "New Popular Edition", "http://nick.dev.openstreetmap.org/openpaths/freemap.php", {'layers': 'npe'},{buffer:1} ); } else { // main freemap maps cvtr = new converter("Mercator"); map = new OpenLayers.Map('map', { maxExtent: new OpenLayers.Bounds (-700000,6500000,200000,8100000), resolutions: [10], tileSize: new OpenLayers.Size(500,500), units: 'meters' } ); base = new OpenLayers.Layer.WMS( "Freemap/Mapnik", "http://www.free-map.org.uk/cgi-bin/render", {buffer:1} ); } map.addLayer(base); From crschmidt at metacarta.com Mon May 7 07:24:34 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Is it possible to completely change the projection of a Map? In-Reply-To: <200705071201.47426.nick@hogweed.org> References: <200705071201.47426.nick@hogweed.org> Message-ID: <20070507112434.GA23551@metacarta.com> On Mon, May 07, 2007 at 12:01:47PM +0100, Nick Whitelegg wrote: > Hello everyone, > > As part of an OpenStreetMap editing application I'm doing, I would like to be > able to replace not only the layers but also the projection of the base map. > The application is a point-of-interest editor for OpenStreetMap, it allows > users to use the OpenLayers Vector layer to trace the outlines of lakes and > woods and also add POIs like hill summits. I want users to be able to switch > between two base layers. > > The two base layers comprise Freemap (OpenStreetMap rendering client) which is > projected in Mercator, and the New Popular Edition (old Ordnance Survey maps > of the UK) which has the OSGB36 projection. Add the projection properties to each layer. Layers inherit their projection from the map, but if they're different, then when you switch layers, the projection will change. Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Mon May 7 08:43:43 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Is it possible to completely change the projection of a Map? In-Reply-To: <20070507112434.GA23551@metacarta.com> References: <200705071201.47426.nick@hogweed.org> <20070507112434.GA23551@metacarta.com> Message-ID: <200705071343.43866.nick@hogweed.org> On Monday 07 May 2007 12:24, you wrote: > On Mon, May 07, 2007 at 12:01:47PM +0100, Nick Whitelegg wrote: > > Hello everyone, > > > > As part of an OpenStreetMap editing application I'm doing, I would like > > to be able to replace not only the layers but also the projection of the > > base map. The application is a point-of-interest editor for > > OpenStreetMap, it allows users to use the OpenLayers Vector layer to > > trace the outlines of lakes and woods and also add POIs like hill > > summits. I want users to be able to switch between two base layers. > > > > The two base layers comprise Freemap (OpenStreetMap rendering client) > > which is projected in Mercator, and the New Popular Edition (old Ordnance > > Survey maps of the UK) which has the OSGB36 projection. > > Add the projection properties to each layer. Layers inherit their > projection from the map, but if they're different, then when you switch > layers, the projection will change. OK thanks. Can I explicitly state a projection and it'll handle converting the units for me? How do I state that it's OSGB or Mercator projection? Thanks, Nick From john.cole at uai.com Mon May 7 10:39:18 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] issue with AnchoredPopup... Message-ID: <76758090F8686C47A44B6FF52514A1D307909C80@hermes.uai.int> I've created Ticket #698 with a patch for the AnchoredPopup. The issue is that there is no option for a close box with the AnchoredPopup. If you subclass the AnchoredPopup and override the initialize and add the closeBox parameter, it doesn't work. The reason it doesn't work is because the reRound function for creating the rounded corners is hard coded to chop off [0] and [2] div tags from the parent of the contentDiv. To solve this, I created a groupDiv in the popup class and put the contentDiv and the close box inside this container. I modified the test and tried to make everything OL'ish. If someone could review this and find it of merit, I would appreciate it. Thanks, John No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 5/6/2007 9:01 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From janos.gonzales at gmail.com Mon May 7 13:03:04 2007 From: janos.gonzales at gmail.com (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] kamap example Message-ID: <647a4d110705071003g2013d299rba08d4d59e4f47c1@mail.gmail.com> Hello, I'm trying to add a Kamap layer to the kamap.html example provided in version 2.3. I point to tile.php and everything works fine. However I can't change the kamap layer from a Base layer to an Overlays layer. I noticed that with other layers the mere addition of transparent:'true' in the layer definition will change one layer from Base to Overlay. Is this not possible with a Kamap layer? Thanks From jdege at korterra.com Mon May 7 18:22:34 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] What is serving examples/openmnnd.html? Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local> I've been looking at the openmnnd example, and have been very impressed by the performance it provides at serving raster imagery at a very wide range of scales. >From the code, it looks like the raster is coming from: http://geoint.lmic.state.mn.us/cgi-bin/wms Does anyone have any idea what sort of engine is behind that WMS server? How they've structured their raster data? From crschmidt at metacarta.com Mon May 7 18:29:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] What is serving examples/openmnnd.html? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local> Message-ID: <20070507222902.GA12212@metacarta.com> On Mon, May 07, 2007 at 05:22:34PM -0500, Jeff Dege wrote: > I've been looking at the openmnnd example, and have been very impressed > by the performance it provides at serving raster imagery at a very wide > range of scales. > > From the code, it looks like the raster is coming from: > > http://geoint.lmic.state.mn.us/cgi-bin/wms http://geoint.lmic.state.mn.us/ leads to http://www.lmic.state.mn.us/chouse/wms_image_server_description.html , which says "LMIC’s Geospatial Image Server has been developed to provide versatile access to large statewide raster databases according to the Open GIS Consortium’s Web Map Service (WMS) standards. The Land Management Information Center is a GIS service center for state government in Minnesota." and has contact informatin. Regards, -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Mon May 7 18:58:34 2007 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] What is serving examples/openmnnd.html? In-Reply-To: <20070507222902.GA12212@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local> <20070507222902.GA12212@metacarta.com> Message-ID: <463F68CB.5157.008F.0@dnr.state.mn.us> As I understant it that is a custom WMS engine that stores imagery at multiple resolutions using MySQL. If you get hold of someone tell 'em to get the image handing interface into GDAL. I've been unsuccessful in pushing them to do it... Steve >>> On 5/7/2007 at 5:29 PM, in message <20070507222902.GA12212@metacarta.com>, Christopher Schmidt wrote: > On Mon, May 07, 2007 at 05:22:34PM -0500, Jeff Dege wrote: >> I've been looking at the openmnnd example, and have been very impressed >> by the performance it provides at serving raster imagery at a very wide >> range of scales. >> >> From the code, it looks like the raster is coming from: >> >> http://geoint.lmic.state.mn.us/cgi-bin/wms > > http://geoint.lmic.state.mn.us/ leads to > http://www.lmic.state.mn.us/chouse/wms_image_server_description.html , > which says "LMIC???s Geospatial Image Server has been developed to > provide versatile access to large statewide raster databases according > to the Open GIS Consortium???s Web Map Service (WMS) standards. The > Land Management Information Center is a GIS service center for state > government in Minnesota." and has contact informatin. > > Regards, From ngocnd at gmail.com Tue May 8 03:50:49 2007 From: ngocnd at gmail.com (NgocND) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Can I use OpenLayer like Google map API. Message-ID: <70ac95f40705080050h53074e04i1b94df70259718b7@mail.gmail.com> Hi, Currently I use Google map API for our map. I have tiles image, so can I use these tiles image with OpenLayer? If yes, so how to config or setup? Thank you NgocND From bartvde at osgis.nl Tue May 8 03:52:35 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] grid funkyness with 2.4RC3 Message-ID: <12d66ee6aa575b9113b8df6a176174a3@145.50.39.11> Hi list, we still experience grid funkyness with 2.4RC3, see: http://www.osgis.nl/download/gridfunkyness.png I've tracked down the boundingboxes of the tilecache requests, starting at upperleft (1) and going down to lowerright (9): 1 2 3 4 5 6 7 8 9 1: BBOX=-50000,479200.467643,39600.233821,568800.701464 2: BBOX=-50000,658400.935286,308400.935286,1016801.870572 3: BBOX=129200.467643,479200.467643,218800.701464,568800.701464 4: BBOX=-50000,479200.467643,39600.233821,568800.701464 5: BBOX=-50000,300000,308400.935286,658400.935286 6: BBOX=129200.467643,389600.233821,218800.701464,479200.467643 7: BBOX=93360.374114,461280.420879,111280.420879,479200.467643 8: tile failed loading (white pixel) 9: BBOX=129200.467643,461280.420879,147120.514407,479200.467643 but have no idea on how to tackle this problem. Any ideas highly appreciated. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at osgis.nl Tue May 8 04:31:42 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] grid funkyness with 2.4RC3 Message-ID: <777ee809ca2c919d07667f40f5ad7cc6@145.50.39.11> Some more info on this problem. It can only be reproduced in Internet Explorer (we use 6) and not in Firefox. There are 2 baselayers in the application: one WMS untiled and one tiled WMS layer pointing to TileCache. To reproduce we have to: 1) set WMS.Untiled as baselayer 2) zoom out 3) before the baselayer appears, switch the baselayer Hopefully this rings a bell. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Bart van den Eijnden OSGIS Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] grid funkyness with 2.4RC3 Datum: 08/05/07 05:53 > Hi list, > > we still experience grid funkyness with 2.4RC3, see: > > http://www.osgis.nl/download/gridfunkyness.png > > I've tracked down the boundingboxes of the tilecache requests, starting at > upperleft (1) and going down to lowerright (9): > > 1 2 3 > 4 5 6 > 7 8 9 > > 1: BBOX=-50000,479200.467643,39600.233821,568800.701464 > 2: BBOX=-50000,658400.935286,308400.935286,1016801.870572 > 3: BBOX=129200.467643,479200.467643,218800.701464,568800.701464 > 4: BBOX=-50000,479200.467643,39600.233821,568800.701464 > 5: BBOX=-50000,300000,308400.935286,658400.935286 > 6: BBOX=129200.467643,389600.233821,218800.701464,479200.467643 > 7: BBOX=93360.374114,461280.420879,111280.420879,479200.467643 > 8: tile failed loading (white pixel) > 9: BBOX=129200.467643,461280.420879,147120.514407,479200.467643 > > but have no idea on how to tackle this problem. Any ideas highly > appreciated. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From s.lucas at idp.de Tue May 8 06:01:53 2007 From: s.lucas at idp.de (Lucas, Sabine von IDP Dr. Stein GmbH) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] IE problems with zoom Message-ID: <6AE66B62-FCC2-4C0B-A2C8-249CD9B1C7C7@idp.de> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: idp1.gif Type: image/gif Size: 799 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070508/bf22580a/idp1.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: idp.gif Type: image/gif Size: 2499 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070508/bf22580a/idp.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: idp2.gif Type: image/gif Size: 799 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070508/bf22580a/idp2.gif From bartvde at osgis.nl Tue May 8 06:45:11 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] IE problems with zoom Message-ID: <7e86098e2f0898eabc92ef8015c95c32@145.50.39.11> What is your link syntax? Is it something like: bla ? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Lucas, Sabine von IDP Dr. Stein GmbH Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] IE problems with zoom Datum: 08/05/07 07:57 > > > > > >   > If I do a Zoom-command  (map.zoomTo(lat,lon)) not over the PanZoomBar,but > over a link, it's not working in IE. The map is not complete to see. It's stopped anytime. >  In Firefox ist works. > Has anybody a idee? >   > > > > > > >   > > > > > > >        > Sabine > Lucas > > > Bereich > Softwareentwicklung > > IDP Dr. Stein GmbHHelene-Stein-HausBiedenkamp 11b21509 Glinde bei Hamburg > > > > Tel:Fax:  > +49 (0)40 713 753 - 37+49 (0)40 > 713 69 33 > > > > > > E−Mail:URL: > s.lucas@idp.dewww.idp.dewww.cubispolis.de > > > >   > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bartvde at osgis.nl Tue May 8 09:03:47 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Fw: AW: AW: IE problems with zoom Message-ID: <9288fe2ef48de41b1ab52ee29cdf99c8@145.50.39.11> Forwarding the answer to the list for future reference. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Lucas, Sabine von IDP Dr. Stein GmbH Naar: Bart van den Eijnden OSGIS Onderwerp: AW: AW: [OpenLayers-Users] IE problems with zoom Datum: 08/05/07 10:00 > :-) thank you , it works > > Sabine > > -----Urspr?ngliche Nachricht----- > Von: Bart van den Eijnden (OSGIS) [mailto:bartvde@osgis.nl] > Gesendet: Dienstag, 8. Mai 2007 13:47 > An: Lucas, Sabine von IDP Dr. Stein GmbH;Bart van den Eijnden OSGIS > Betreff: Re: AW: [OpenLayers-Users] IE problems with zoom > > > Try and add the return false part, so use: > > <td class="rechts"><a href="javascript:void(0);" > onclick="map.zoomOut();return false;" >Zoom auf erfasste Fl?che</a></td> > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Lucas, Sabine von IDP Dr. Stein GmbH <s.lucas@idp.de> > Naar: Bart van den Eijnden OSGIS <bartvde@osgis.nl> > Onderwerp: AW: [OpenLayers-Users] IE problems with zoom > Datum: 08/05/07 09:39 > > > Hi Bart, > > > > it's only this: > > > > &lt;td class=&quot;rechts&quot;&gt;&lt;a > href=&quot;javascript:void(0);&quot; onclick=&quot;map.zoomOut(); &quot; > &gt;Zoom auf erfasste Fl?che&lt;/a&gt;&lt;/td&gt; > > > > it's not important which zoom-methode i use. It doesnt'n work with > zoomToExtent or setCenter, too. > > > > > > Best regards, > > Sabine > > > > -----Urspr?ngliche Nachricht----- > > Von: Bart van den Eijnden (OSGIS) [mailto:bartvde@osgis.nl] > > Gesendet: Dienstag, 8. Mai 2007 12:45 > > An: Lucas, Sabine von IDP Dr. Stein GmbH;users@openlayers.org > > Betreff: Re: [OpenLayers-Users] IE problems with zoom > > > > > > What is your link syntax? > > > > Is it something like: > > > > &lt;a href=&quot;#&quot; onclick=&quot;myfunction();return > false;&quot;&gt;bla&lt;/a&gt; > > > > ? > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > --------- Oorspronkelijk bericht -------- > > Van: Lucas, Sabine von IDP Dr. Stein GmbH &lt;s.lucas@idp.de&gt; > > Naar: users@openlayers.org &lt;users@openlayers.org&gt; > > Onderwerp: [OpenLayers-Users] IE problems with zoom > > Datum: 08/05/07 07:57 > > > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; &amp;nbsp; > > &gt; > > > If&amp;nbsp;I&amp;nbsp;do&amp;nbsp;a&amp;nbsp;Zoom-command&amp;nbsp;&amp;nbsp;(map.zoomTo(lat,lon)) > > not over the PanZoomBar,but > > &gt; > > > over&amp;nbsp;a&amp;nbsp;link,&amp;nbsp;it's&amp;nbsp;not&amp;nbsp;working&amp;nbsp;in&amp;nbsp;IE.&amp;nbsp;The&amp;nbsp;map&amp;nbsp;is&amp;nbsp;not&amp;nbsp;complete&amp;nbsp;to&amp;nbsp;see.&amp;nbsp;It's > > stopped anytime. > > &gt; &amp;nbsp;In&amp;nbsp;Firefox&amp;nbsp;ist&amp;nbsp;works. > > &gt; Has anybody a idee? > > &gt; &amp;nbsp; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; &amp;nbsp; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; > > &gt; Sabine > > &gt; Lucas > > &gt; > > &gt; > > &gt; Bereich > > &gt; Softwareentwicklung > > &gt; > > &gt; > > > IDP&amp;nbsp;Dr.&amp;nbsp;Stein&amp;nbsp;GmbHHelene-Stein-HausBiedenkamp&amp;nbsp;11b21509&amp;nbsp;Glinde&amp;nbsp;bei&amp;nbsp;Hamburg > > &gt; > > &gt; > > &gt; > > &gt; Tel:Fax:&amp;nbsp; > > &gt; +49 (0)40 713 753 - 37+49 (0)40 > > &gt; 713 69 33 > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; E&amp;#8722;Mail:URL: > > &gt; s.lucas@idp.dewww.idp.dewww.cubispolis.de > > &gt; > > &gt; > > &gt; > > &gt; &amp;nbsp; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; _______________________________________________ > > &gt; Users mailing list > > &gt; Users@openlayers.org > > &gt; http://openlayers.org/mailman/listinfo/users > > &gt; > > > > > > > > > > > > > > > > > > From erik.uzureau at metacarta.com Tue May 8 11:15:33 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Popup for WFS Feature In-Reply-To: <10348127.post@talk.nabble.com> References: <10348127.post@talk.nabble.com> Message-ID: <6ae3fb590705080815g3c45e1a9nb002b178fac1b28c@mail.gmail.com> so you want popups tied to your markers... you seem to be on the right path. you just need to subclass OpenLayers.Feature.WFS and override createMarker(). In your new createMarker() you need to hook in the popup. The most standard way of doing that is on the onclick action of the marker. if you take a look at the popup.html example ( http://openlayers.org/dev/examples/popups.html) you can see how that's pretty easily done. lemme know if you need some more help, erik On 5/6/07, mfrumin wrote: > > > using: 2.4-rc3 > > I think I get it -- to cutomize the way your WFS points are represented, > you > should subclass and override createMarker() and createPopup(). > > that said, when I look at the Feature class, it appears to have a > createPopup() method, but having put in an alert() it never seems to get > called when i click on the (default red diamond) marker. here's how I > have > created my WFS layer: > > layer = new OpenLayers.Layer.WFS ( "Stations WFS", wfs, > { typename: 'frumin:trx_stations', maxfeatures: 1 } , > { featureClass: OpenLayers.Feature.WFS} > ); > map.addLayer(layer); > > and it works gorgeously in terms of getting the red marker, but I want to > program some interactivity. > > maybe I shouldn't be surprised tho, because the example i got it from > (http://openlayers.org/dev/examples/wfs.html) doesn't seem to have any > interactivity on the markers either. > > what think? > > thanks, > mike > -- > View this message in context: > http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a10348127 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070508/db1f3794/attachment.html From mikequentel at yahoo.com Tue May 8 14:51:14 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] syntax for OL consuming WFS layer served from ArcIMS 9.1 sp2 Message-ID: <132241.71048.qm@web32511.mail.mud.yahoo.com> Using the following syntax in the javascript: var wfdssMap = new OpenLayers.Map($('mapDiv'), {controls: [], tileSize: new OpenLayers.Size(512,512), buffer: 1, scales: [32000000, 16000000, 8000000, 4000000, 2000000, 1000000, 500000, 250000, 175000, 100000, 50000, 24000, 12000, 6000, 3000], units: "degrees"}); var wfsWFDSSFSPro = new OpenLayers.Layer.WFS("WFDSS_FSPRO_FTRSVC", "http://kpnatsp6:9080/wfsconnector/com.esri.wfs.Esrimap/WFDSS_FSPRO_FTRSVC?", {typename: "FSPRO_OUTPUT-FSPRO_OUTPUT", maxfeatures: 10 }, { featureClass: OpenLayers.Feature.WFS }); wfdssMap.addLayer(wfsWFDSSFSPro); Is this syntax correct? For some reason, I see know features being drawn. Is anyone else using ArcIMS WFS Connector with OL? Thank you. Mike Quentel ___________________________________________________________ Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com From crschmidt at metacarta.com Tue May 8 14:53:43 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] syntax for OL consuming WFS layer served from ArcIMS 9.1 sp2 In-Reply-To: <132241.71048.qm@web32511.mail.mud.yahoo.com> References: <132241.71048.qm@web32511.mail.mud.yahoo.com> Message-ID: <20070508185343.GA30519@metacarta.com> On Tue, May 08, 2007 at 11:51:14AM -0700, Mike Quentel wrote: > Using the following syntax in the javascript: > > var wfdssMap = new OpenLayers.Map($('mapDiv'), {controls: [], tileSize: new OpenLayers.Size(512,512), buffer: 1, scales: [32000000, 16000000, 8000000, 4000000, 2000000, 1000000, 500000, 250000, 175000, 100000, 50000, 24000, 12000, 6000, 3000], units: "degrees"}); > > var wfsWFDSSFSPro = new OpenLayers.Layer.WFS("WFDSS_FSPRO_FTRSVC", "http://kpnatsp6:9080/wfsconnector/com.esri.wfs.Esrimap/WFDSS_FSPRO_FTRSVC?", {typename: "FSPRO_OUTPUT-FSPRO_OUTPUT", maxfeatures: 10 }, { featureClass: OpenLayers.Feature.WFS }); > > wfdssMap.addLayer(wfsWFDSSFSPro); > > Is this syntax correct? For some reason, I see know features being drawn. You might want to read: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Tue May 8 15:01:11 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Vector Point Features -- can you use images? Message-ID: <200705082001.11582.nick@hogweed.org> Was just wondering.. is it possible to use images (icons) to mark Point features in the Vector layer? Thanks, Nick From crschmidt at metacarta.com Tue May 8 15:04:13 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Vector Point Features -- can you use images? In-Reply-To: <200705082001.11582.nick@hogweed.org> References: <200705082001.11582.nick@hogweed.org> Message-ID: <20070508190413.GA30705@metacarta.com> On Tue, May 08, 2007 at 08:01:11PM +0100, Nick Whitelegg wrote: > > Was just wondering.. is it possible to use images (icons) to mark Point > features in the Vector layer? You can either use markers or vectors in one layer -- not both. Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Tue May 8 15:51:36 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 Message-ID: <200705082051.36190.nick@hogweed.org> Hello everyone, I'm getting a strange effect if I use a Mercator projection WMS server with a bounding box which can take negative values in 2.4rc3 or the SVN version, which I didn't get in 2.2. Looking at the URL constructed to get the tiles, it appears to be URL-encoding the commas which messes up the bbox. i.e. the URL I get for the tiles in 2.4-rc3 is something like: http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000 &WIDTH=500&HEIGHT=500 rather than in 2.2: http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000 &WIDTH=500&HEIGHT=500 It doesn't seem to happen if I use the OSGB projection which uses all positive values. The code I use to construct the Map and layer is: map = new OpenLayers.Map('map', { maxExtent: new OpenLayers.Bounds (-700000,6500000,200000,8100000), resolutions: [10], tileSize: new OpenLayers.Size(500,500), units: 'meters' } ); base = new OpenLayers.Layer.WMS( "Freemap/Mapnik", "http://www.free-map.org.uk/cgi-bin/render", {buffer:1} ); Is this a bug or am I doing something wrong? Thanks, Nick From crschmidt at metacarta.com Tue May 8 16:46:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 In-Reply-To: <200705082051.36190.nick@hogweed.org> References: <200705082051.36190.nick@hogweed.org> Message-ID: <20070508204602.GA32674@metacarta.com> On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote: > Hello everyone, > > I'm getting a strange effect if I use a Mercator projection WMS server with a > bounding box which can take negative values in 2.4rc3 or the SVN version, > which I didn't get in 2.2. > > Looking at the URL constructed to get the tiles, it appears to be URL-encoding > the commas which messes up the bbox. > > i.e. the URL I get for the tiles in 2.4-rc3 is something like: > > http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000 > &WIDTH=500&HEIGHT=500 > > rather than in 2.2: > > http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000 > &WIDTH=500&HEIGHT=500 > Is this a bug or am I doing something wrong? This is a change, but not a bug. In general, I'd expect that your server code would take care of converting this for you. I'm really surprised that it doesn't. (What are you using for CGI?) In any case, this is meeting the WMS spec more closely. Before, we were breaking some WMS servers -- in this case, we've broken your WMS-ish server, but we were both breaking the spec before, and now OpenLayers is in the right ;) If it's difficult to work around this in your server-side code, let me know, and I'll come up with a hack you can apply to make OpenLayers stop doing this on your page. Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Tue May 8 16:54:03 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 In-Reply-To: <20070508204602.GA32674@metacarta.com> References: <200705082051.36190.nick@hogweed.org> <20070508204602.GA32674@metacarta.com> Message-ID: <200705082154.03939.nick@hogweed.org> > > If it's difficult to work around this in your server-side code, let me > know, and I'll come up with a hack you can apply to make OpenLayers stop > doing this on your page. > > Regards, OK thanks for clarifying that. It should be very easy to fix this - just a case of changing the separator when splitting the string. I'm using C++ for the cgi code, but evidently it isn't decoding the encoded commas. Nick From lancelot at inetnebr.com Tue May 8 19:48:43 2007 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 In-Reply-To: <20070508204602.GA32674@metacarta.com> References: <200705082051.36190.nick@hogweed.org> <20070508204602.GA32674@metacarta.com> Message-ID: <46410C5B.20002@inetnebr.com> Christopher Schmidt wrote: > On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote: > >> Hello everyone, >> >> I'm getting a strange effect if I use a Mercator projection WMS server with a >> bounding box which can take negative values in 2.4rc3 or the SVN version, >> which I didn't get in 2.2. >> >> Looking at the URL constructed to get the tiles, it appears to be URL-encoding >> the commas which messes up the bbox. >> >> i.e. the URL I get for the tiles in 2.4-rc3 is something like: >> >> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000 >> &WIDTH=500&HEIGHT=500 >> >> rather than in 2.2: >> >> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000 >> &WIDTH=500&HEIGHT=500 >> >> Is this a bug or am I doing something wrong? >> > > This is a change, but not a bug. In general, I'd expect that your server > code would take care of converting this for you. I'm really surprised > that it doesn't. (What are you using for CGI?) > There are quite a few WMS servers out there who can't handle url encoding the way you might expect them to point in fact only encoding the individual Layer Names seems to work better with the largest number of WMS servers in the wild. I modified the OpenLayers I am using (in TNTmap) to only escape the layer names when I started running into problems like the above. From lancelot at inetnebr.com Tue May 8 23:06:39 2007 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 In-Reply-To: <46410C5B.20002@inetnebr.com> References: <200705082051.36190.nick@hogweed.org> <20070508204602.GA32674@metacarta.com> <46410C5B.20002@inetnebr.com> Message-ID: <46413ABF.3030803@inetnebr.com> I might have exaggerated saying "quite a few" the numbers might not have been significant... but some of my bosses favorite WMS's were being hit by the problem. This was sufficient for me to change it and in some ways TNTmap is about being able to browse for and view via multiple clients pretty much any WMS. from 1.0.0 to 1.3.0+, so even errors in the servers should be compensated for if they can. Lance Dyas wrote: > Christopher Schmidt wrote: > >> On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote: >> >> >>> Hello everyone, >>> >>> I'm getting a strange effect if I use a Mercator projection WMS server with a >>> bounding box which can take negative values in 2.4rc3 or the SVN version, >>> which I didn't get in 2.2. >>> >>> Looking at the URL constructed to get the tiles, it appears to be URL-encoding >>> the commas which messes up the bbox. >>> >>> i.e. the URL I get for the tiles in 2.4-rc3 is something like: >>> >>> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000 >>> &WIDTH=500&HEIGHT=500 >>> >>> rather than in 2.2: >>> >>> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000 >>> &WIDTH=500&HEIGHT=500 >>> >>> Is this a bug or am I doing something wrong? >>> >>> >> This is a change, but not a bug. In general, I'd expect that your server >> code would take care of converting this for you. I'm really surprised >> that it doesn't. (What are you using for CGI?) >> >> > There are quite a few WMS servers out there who can't handle url > encoding the way you might expect them > to point in fact only encoding the individual Layer Names seems to work > better with the largest number > of WMS servers in the wild. I modified the OpenLayers I am using (in > TNTmap) to only escape the layer names > when I started running into problems like the above. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > . > > From bartvde at osgis.nl Wed May 9 01:43:52 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 Message-ID: <263c87bd338c6860f4c79d9806bf2715@145.50.39.11> Chris, are you sure about this? If I read http://trac.openlayers.org/ticket/491 then commas in the following parameters should not be urlencoded: -BBOX -LAYERS -STYLES Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Christopher Schmidt Naar: Nick Whitelegg Cc: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2 Datum: 08/05/07 18:46 > On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote: > > Hello everyone, > > > > I'm getting a strange effect if I use a Mercator projection WMS server with a > > bounding box which can take negative values in 2.4rc3 or the SVN version, > > which I didn't get in 2.2. > > > > Looking at the URL constructed to get the tiles, it appears to be URL-encoding > > the commas which messes up the bbox. > > > > i.e. the URL I get for the tiles in 2.4-rc3 is something like: > > > > http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000 > > &WIDTH=500&HEIGHT=500 > > > > rather than in 2.2: > > > > http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000 > > &WIDTH=500&HEIGHT=500 > > > Is this a bug or am I doing something wrong? > > This is a change, but not a bug. In general, I'd expect that your server > code would take care of converting this for you. I'm really surprised > that it doesn't. (What are you using for CGI?) > > In any case, this is meeting the WMS spec more closely. Before, we were > breaking some WMS servers -- in this case, we've broken your WMS-ish > server, but we were both breaking the spec before, and now OpenLayers is > in the right ;) > > If it's difficult to work around this in your server-side code, let me > know, and I'll come up with a hack you can apply to make OpenLayers stop > doing this on your page. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From tom at ukbassline.co.uk Wed May 9 06:22:39 2007 From: tom at ukbassline.co.uk (Tom) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Error Reporting Message-ID: <4fe6dd700705090322r281da0e1lb727181b4876d9fa@mail.gmail.com> Hi there, Apologies in advance as this is a bit of a noob question... How can I get OpenLayers to report errors? The only thing I have managed to find so far is: OpenLayers.Util.extend(options, {'reportError': true}); which doesn't seem to be making any difference. i.e. it still fails silently. Ideally I'd like to get it reporting to Firebug (console.log) but anywhere will do! cheers, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070509/77add46b/attachment.html From Terrence_A_Pietrondi at KeyBank.com Wed May 9 08:06:40 2007 From: Terrence_A_Pietrondi at KeyBank.com (Terrence_A_Pietrondi@KeyBank.com) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] External API Usage Message-ID: I wanted to know if there is any documentation on how to make use of the Yahoo, Google, Microsoft, etc, APIs when used as layers. For example if I wanted to use a Yahoo feature offered in their API, how could I make use of that on the OpenLayers.Map object, if at all. I understand that I need an API key for most layers, but it seems like a waste to just have the API for its tiles as a layer and not to be able to use the functionality. Thanks. Terrence A. Pietrondi terrence_a_pietrondi@keybank.com ******************************************************************************* This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information. 127 Public Square, Cleveland, OH 44114 ******************************************************************************* If you prefer not to receive future e-mail offers for products or services from Key send an e-mail to DNERequests@key.com with 'No Promotional E-mails' in the SUBJECT line. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070509/6e28ab57/attachment.html From david.delannoy at avignon.inra.fr Wed May 9 08:58:25 2007 From: david.delannoy at avignon.inra.fr (david delannoy) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Change icon on mouseover event Message-ID: <4641C571.6050000@avignon.inra.fr> Hello, I would like to change the icon when i mouse over a marker; do you have an idea? Thank you in advance, David -- David DELANNOY Ing?nieur en Bioinformatique Unit? Agroclim Site Agroparc INRA AVIGNON david.delannoy@avignon.inra.fr 04 32 72 24 13 From lp at rpag.ch Wed May 9 09:18:20 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers Message-ID: <929074CD8C635346B3FFFEFACDE01B45B7D87F@exrpmu1.ingnet.local> Hello List, I've Setup a mapserver with an example Map. I can successfully open the link from the MapServer in uDig on my notebook, without any other information than the link: Link Format: http://domain/cgi-bin/mapserv?map=/path/to/project.map&request=getcapabi lities&service=WMS&version=1.0.0 (I changed the domain and the path, the parameters stay the same). But I always fail trying to display the map inside OpenLayers. I tried to use http://openlayers.org/dev/examples/wms.html and changed it slightly: map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://domain/cgi-bin/mapserv?map=/path/to/project.map&request=getcapab ilities&service=WMS&version=1.0.0", {layers: 'basic'} ); map.addLayer(layer); But it does only display pink squares instead of images. As said, the MapServer works fine when opening with uDig... Thanks a lot for your assistance! Sincerely yours, Lucas P. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070509/6773689f/attachment.html From bfischer at houstonengineeringinc.com Wed May 9 09:45:47 2007 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] What is serving examples/openmnnd.html? In-Reply-To: <463F68CB.5157.008F.0@dnr.state.mn.us> References: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local><20070507222902.GA12212@metacarta.com> <463F68CB.5157.008F.0@dnr.state.mn.us> Message-ID: <2EF6E1058C047344B4DE0FD14111916769D1EC@hex01.houstonengineeringinc.com> Steve is right it is a custom solution developed with MySQL and some C code by LMIC. I will talk with my contacts their and see if I can do anything to try to get them to share the code. The speed is very impressive. The one limitation is it only supports the projection the image is currently stored in. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Steve Lime Sent: Monday, May 07, 2007 5:59 PM To: Jeff Dege; Christopher Schmidt Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] What is serving examples/openmnnd.html? As I understant it that is a custom WMS engine that stores imagery at multiple resolutions using MySQL. If you get hold of someone tell 'em to get the image handing interface into GDAL. I've been unsuccessful in pushing them to do it... Steve >>> On 5/7/2007 at 5:29 PM, in message <20070507222902.GA12212@metacarta.com>, Christopher Schmidt wrote: > On Mon, May 07, 2007 at 05:22:34PM -0500, Jeff Dege wrote: >> I've been looking at the openmnnd example, and have been very impressed >> by the performance it provides at serving raster imagery at a very wide >> range of scales. >> >> From the code, it looks like the raster is coming from: >> >> http://geoint.lmic.state.mn.us/cgi-bin/wms > > http://geoint.lmic.state.mn.us/ leads to > http://www.lmic.state.mn.us/chouse/wms_image_server_description.html , > which says "LMIC???s Geospatial Image Server has been developed to > provide versatile access to large statewide raster databases according > to the Open GIS Consortium???s Web Map Service (WMS) standards. The > Land Management Information Center is a GIS service center for state > government in Minnesota." and has contact informatin. > > Regards, _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Wed May 9 10:00:12 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Error Reporting In-Reply-To: <4fe6dd700705090322r281da0e1lb727181b4876d9fa@mail.gmail.com> References: <4fe6dd700705090322r281da0e1lb727181b4876d9fa@mail.gmail.com> Message-ID: <20070509140012.GB15447@metacarta.com> On Wed, May 09, 2007 at 11:22:39AM +0100, Tom wrote: > Hi there, > > Apologies in advance as this is a bit of a noob question... > > How can I get OpenLayers to report errors? The only thing I have managed to > find so far is: OpenLayers.Util.extend(options, {'reportError': true}); > which doesn't seem to be making any difference. i.e. it still fails > silently. > > Ideally I'd like to get it reporting to Firebug (console.log) but anywhere > will do! Improved debugging output is planned for 2.5 using Firebug // Firebug Lite. What specifically are you looking to get an error message about? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed May 9 10:02:34 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] External API Usage In-Reply-To: References: Message-ID: <20070509140234.GC15447@metacarta.com> On Wed, May 09, 2007 at 08:06:40AM -0400, Terrence_A_Pietrondi@KeyBank.com wrote: > > > I wanted to know if there is any documentation on how to make use of the > Yahoo, Google, Microsoft, etc, APIs when used as layers. For example if I > wanted to use a Yahoo feature offered in their API, how could I make use of > that on the OpenLayers.Map object, if at all. The design of OpenLayers is such that you wouldn't do that. If you have a need to do something with the API, it's probably a lack of functionality in OpenLayers that should be fixed. (This does, of course, depend on what you're trying to do.) You can probably read the code and figure out a way to do it, but it's not something that we maintain between releases -- the mapObect on the commercial layers is an internal API, not designed to be exposed. > I understand that I need an > API key for most layers, but it seems like a waste to just have the API for > its tiles as a layer and not to be able to use the functionality. Using the API as a tile source is how OpenLayers is designed. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed May 9 10:05:16 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45B7D87F@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45B7D87F@exrpmu1.ingnet.local> Message-ID: <20070509140516.GD15447@metacarta.com> On Wed, May 09, 2007 at 03:18:20PM +0200, Pfirter Lukas wrote: > map = new OpenLayers.Map( 'map' ); > layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://domain/cgi-bin/mapserv?map=/path/to/project.map&request=getcapab > ilities&service=WMS&version=1.0.0", {layers: 'basic'} ); > map.addLayer(layer); Try this instead: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://domain/cgi-bin/mapserv?map=/path/to/project.map", {layers: 'basic'} ); Regards, -- Christopher Schmidt MetaCarta From kobben at itc.nl Wed May 9 10:56:53 2007 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers References: <929074CD8C635346B3FFFEFACDE01B45B7D87F@exrpmu1.ingnet.local> <20070509140516.GD15447@metacarta.com> Message-ID: <5AF149DBB6DFE24AA3F4F53201E539AD1E2AC5@itcnt24.itc.nl> >Try this instead: > >layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", >"http://domain/cgi-bin/mapserv?map=/path/to/project.map ", {layers: 'basic'} ); ...or, if you need SLD based stylings (as I did): "http://domain/cgi-bin/mapserv?map=/path/to/project.map ", {layers: "landcover", SLD: "url-to-your-SLD "} ); ...and if you want the layer to be an overlay iso. a base layer: "http://domain/cgi-bin/mapserv?map=/path/to/project.map ", {layers: "landcover", SLD: "url-to-your-SLD ", format: "image/png", transparent: "true"} ); -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 From rpierce at actgeospatial.com Wed May 9 11:36:31 2007 From: rpierce at actgeospatial.com (Richie Pierce) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Yet another KaMap layer questions Message-ID: <003b01c7924f$d2d2f1e0$1200a8c0@ibmworkstation2> I've got precached tiles created with KaMap precache.php. Everything works fine in the Ka-Map viewer but trying to integrate it into OpenLayers I'm getting blank images. Checking the tilecache on disk it looks like it isn't using the precache, but creating new images. If I check the src url for the images there are two parameters that are different Here's the url for the KaMap viewer (which works): http://localhost:8080/kamap1/tile.php?map=dsmap &t=-1211136&l=146432&s=12000&g=__base__&i=png Here's the OpenLayers url (which is blank): http://localhost:8080/kamap1/tile.php?map=dsmap &t=0&l=0&s=12000&g=__base__&i=png Noticing that the t and l parameters are 0, I'm not sure where to look next. Any help would be greatly appreciated. Thanks Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce@actgeospatial.com www.actgeospatial.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070509/0f6eff1e/attachment.html From lee.keel at uai.com Wed May 9 13:41:37 2007 From: lee.keel at uai.com (Lee Keel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Selecting Text from Popup Message-ID: <76758090F8686C47A44B6FF52514A1D308A516AC@hermes.uai.int> Is there a way for a user to copy text from the anchored bubble onto the clipboard? I have looked at the Popup code and it looks like there is code in there specifically for selecting the text, but I can't seem to get it to select the text, even on the example pages. Thanks in advance. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070509/e2a3e6b9/attachment.html From crschmidt at metacarta.com Wed May 9 14:01:46 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Selecting Text from Popup In-Reply-To: <76758090F8686C47A44B6FF52514A1D308A516AC@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D308A516AC@hermes.uai.int> Message-ID: <20070509180146.GA18161@metacarta.com> On Wed, May 09, 2007 at 12:41:37PM -0500, Lee Keel wrote: > Is there a way for a user to copy text from the anchored bubble onto the > clipboard? I have looked at the Popup code and it looks like there is code > in there specifically for selecting the text, but I can't seem to get it to > select the text, even on the example pages. There is CSS in default/style.css to prevent selection inside the map. This (due to cascading) also applies to popups. Regards, -- Christopher Schmidt MetaCarta From lee.keel at uai.com Wed May 9 15:45:20 2007 From: lee.keel at uai.com (Lee Keel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Selecting Text from Popup Message-ID: <76758090F8686C47A44B6FF52514A1D308A516B2@hermes.uai.int> Christopher, If you are talking about the '-moz-user-select', then is there a way to override this css just for the div.olPopupContent? I tried setting it equal to 'all' in my css, but still no luck in getting it to allow selection. Is there any other way around this? I really need to be able to allow the user to select from this popup so that they can paste the contents into an email or word document. Also, another question on the styling of the popup. My text may extend past the end of the popup size. So, I was hoping that I could set overflow:scroll; and that would put a scroll bar on the popup, but that didn't work. Can you tell me if it is possible to add a scrollbar to the popup? Thanks again. Lee -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Wednesday, May 09, 2007 1:02 PM To: Lee Keel Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Selecting Text from Popup On Wed, May 09, 2007 at 12:41:37PM -0500, Lee Keel wrote: > Is there a way for a user to copy text from the anchored bubble onto the > clipboard? I have looked at the Popup code and it looks like there is code > in there specifically for selecting the text, but I can't seem to get it to > select the text, even on the example pages. There is CSS in default/style.css to prevent selection inside the map. This (due to cascading) also applies to popups. Regards, -- Christopher Schmidt MetaCarta This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From lp at rpag.ch Thu May 10 03:07:07 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers Message-ID: <929074CD8C635346B3FFFEFACDE01B45B7D883@exrpmu1.ingnet.local> I just got this work, thank you! I needed to implement the following code: var wmslayer = new OpenLayers.Layer.WMS( "WMS Layer", "http://domain.com/cgi-bin/mapserv?map=/path/to/file.map", {layers: 'Layername'} ); map.addLayers([wmslayer]); Now, the only problem I have left is, that the distance measuring bar, sended by the mapserver, is displayed a few times inside the OL window. Is it possible to still use this dynamically generated bar with OL but have it displayed only once (for example in a corner)? Or do I have to disable this bar in the ".map"-File and can not use it in OL? Lucas -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Barend K?bben Gesendet: Mittwoch, 9. Mai 2007 16:57 An: Users@openlayers.org Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers >Try this instead: > >layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", >"http://domain/cgi-bin/mapserv?map=/path/to/project.map > ", {layers: >'basic'} ); ...or, if you need SLD based stylings (as I did): "http://domain/cgi-bin/mapserv?map=/path/to/project.map ", {layers: "landcover", SLD: "url-to-your-SLD "} ); ...and if you want the layer to be an overlay iso. a base layer: "http://domain/cgi-bin/mapserv?map=/path/to/project.map ", {layers: "landcover", SLD: "url-to-your-SLD ", format: "image/png", transparent: "true"} ); -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070510/d53cd43f/attachment.html From benafia_olfa at yahoo.fr Thu May 10 05:13:08 2007 From: benafia_olfa at yahoo.fr (ben afia olfa) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] a getfeatureinfo doesn't work Message-ID: <721186.43325.qm@web27308.mail.ukl.yahoo.com> Hi , I tried to follow th exemple given by Brent Pedersen http://giifweb.cnr.berkeley.edu/fire/wind/gfi/gfi.html to get a feature info from a map got from geoserver but it dosen't work the problem is with OpenLayers.loadURL ( I use Openlayers 2.3) and here is my code :
____________________________________________________________________________________________ D?couvrez le blog Yahoo! Mail : derni?res nouveaut?s, astuces, conseils.. et vos r?actions ! http://blog.mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070510/f3cbe021/attachment.html From crschmidt at metacarta.com Thu May 10 06:43:31 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] a getfeatureinfo doesn't work In-Reply-To: <721186.43325.qm@web27308.mail.ukl.yahoo.com> References: <721186.43325.qm@web27308.mail.ukl.yahoo.com> Message-ID: <20070510104331.GA1833@metacarta.com> On Thu, May 10, 2007 at 09:13:08AM +0000, ben afia olfa wrote: > Hi , > I tried to follow th exemple given by Brent Pedersen http://giifweb.cnr.berkeley.edu/fire/wind/gfi/gfi.html > to get a feature info from a map got from geoserver but it dosen't work the problem is with OpenLayers.loadURL ( I use Openlayers 2.3) http://en.wikipedia.org/wiki/Same_origin_policy http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost Regards, -- Christopher Schmidt MetaCarta From kobben at itc.nl Thu May 10 07:30:29 2007 From: kobben at itc.nl (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] a getfeatureinfo doesn't work In-Reply-To: <20070510104331.GA1833@metacarta.com> Message-ID: If you use a queryable WMS as your source, you can also overcome it by requesting the info seperately in a GetFeatureInfo call and 'feeding' th result into an iframe. (see example at http://geoserver.itc.nl/mapserver/OpenLayersQuery.html) On 10-05-2007 12:43, "Christopher Schmidt" wrote: > http://en.wikipedia.org/wiki/Same_origin_policy > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost From woodbri at swoodbridge.com Thu May 10 08:12:55 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45B7D883@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45B7D883@exrpmu1.ingnet.local> Message-ID: <46430C47.3000408@swoodbridge.com> You can do this with the OpenLayers.Layer.MapServer.Untiled(...) object. THere might be a WMS.Untiled() layer also that you can use. -Steve Pfirter Lukas wrote: > > > I just got this work, thank you! > I needed to implement the following code: > > * var wmslayer = new OpenLayers.Layer.WMS( "WMS Layer", " ** > http://domain.com/cgi-bin/mapserv?map=/path/to/file.map * > * ", {layers: > 'Layername'} ); * > > * map.addLayers([wmslayer]); * > > Now, the only problem I have left is, that the distance measuring bar, > sended by the mapserver, is displayed a few times inside the OL window. > Is it possible to still use this dynamically generated bar with OL but > have it displayed only once (for example in a corner)? Or do I have to > disable this bar in the ".map"-File and can not use it in OL? > > Lucas > > > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces@openlayers.org [ mailto:users-bounces@openlayers.org > ] Im Auftrag von Barend K?bben > Gesendet: Mittwoch, 9. Mai 2007 16:57 > An: Users@openlayers.org > Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers > > >Try this instead: > > > >layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > >" http://domain/cgi-bin/mapserv?map=/path/to/project.map > > >< http://domain/cgi-bin/mapserv?map=/path/to/project.map > > ", {layers: > >'basic'} ); > > ...or, if you need SLD based stylings (as I did): > > " http://domain/cgi-bin/mapserv?map=/path/to/project.map > < > http://domain/cgi-bin/mapserv?map=/path/to/project.map > > ", > {layers: "landcover", > SLD: "url-to-your-SLD < > http://geoserver.itc.nl/mapserver/sld/galicia.xml > > "} > ); > > ...and if you want the layer to be an overlay iso. a base layer: > > " http://domain/cgi-bin/mapserv?map=/path/to/project.map > < > http://domain/cgi-bin/mapserv?map=/path/to/project.map > > ", > {layers: "landcover", > SLD: "url-to-your-SLD < > http://geoserver.itc.nl/mapserver/sld/galicia.xml > > ", > format: "image/png", > transparent: "true"} > ); > -- > Barend K?bben > International Institute for Geo-information Sciences and Earth > Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > > ph: +31-(0)534874253; mobile: +31-(0)622344955 > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From nick at hogweed.org Thu May 10 17:17:43 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Problem displaying OSM coastline shapefiles on Mapnik (Freemap) Message-ID: <200705102217.43917.nick@hogweed.org> Hello everyone, I'm trying to display sea and coastlines on Freemap using the shapefiles at artem.dev.openstreetmap.org. However I'm having no success - it doesn't show up (test area = Ventnor, Isle of Wight, UK). I think it must be something to do with projection as I had similar problems trying to get SRTM contours to show up. I tried the exact projection string in the current version of osm.xml i.e. coast-poly shape /var/www/images/world_boundaries/shoreline_a< /Parameter> but had no luck with that. Then I noticed all my other OSM layers for Freemap had this value instead (not sure why, as it says 'latlong'): The OSM coordinates are in mercator projection. The full XML file is at http://www.free-map.org.uk/osmmerc.xml Any ideas what might be wrong here? Thanks, Nick From nick at hogweed.org Thu May 10 18:28:43 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Problem displaying OSM coastline shapefiles on Mapnik (Freemap) In-Reply-To: <200705102217.43917.nick@hogweed.org> References: <200705102217.43917.nick@hogweed.org> Message-ID: <200705102328.43093.nick@hogweed.org> On Thursday 10 May 2007 22:17, Nick Whitelegg wrote: > Hello everyone, > > I'm trying to display sea and coastlines on Freemap using the shapefiles at > artem.dev.openstreetmap.org. However I'm having no success - it doesn't > show up (test area = Ventnor, Isle of Wight, UK). > Sorry! Meant to send this to users@mapnik.org, not openlayers.org. :-) Nick From tom at ukbassline.co.uk Fri May 11 03:34:29 2007 From: tom at ukbassline.co.uk (Tom) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Error Reporting In-Reply-To: <20070509140012.GB15447@metacarta.com> References: <4fe6dd700705090322r281da0e1lb727181b4876d9fa@mail.gmail.com> <20070509140012.GB15447@metacarta.com> Message-ID: <4fe6dd700705110034u74c2037dx6abdcec284b323cb@mail.gmail.com> Hi, Thanks for your reply. Currently I'm working with WFS stuff but it's not really one specific thing I'm after, just a general need to find out where OpenLayers is failing so I can trace that back to my own code to discover what I've not setup properly. I guess I'll just have to wait till 2.5 for that. Any idea what sort of timescale we're talking for that? Also, I did see in this mailing list somewhere that all WFS-T transactions are supported under the hood, is that true and how long before they're officially supported? cheers, Tom On 5/9/07, Christopher Schmidt wrote: > > On Wed, May 09, 2007 at 11:22:39AM +0100, Tom wrote: > > Hi there, > > > > Apologies in advance as this is a bit of a noob question... > > > > How can I get OpenLayers to report errors? The only thing I have > managed to > > find so far is: OpenLayers.Util.extend(options, {'reportError': true}); > > which doesn't seem to be making any difference. i.e. it still fails > > silently. > > > > Ideally I'd like to get it reporting to Firebug (console.log) but > anywhere > > will do! > > Improved debugging output is planned for 2.5 using Firebug // Firebug > Lite. What specifically are you looking to get an error message about? > > Regards, > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070511/8f3148fa/attachment.html From lp at rpag.ch Fri May 11 04:24:20 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers Message-ID: <929074CD8C635346B3FFFEFACDE01B45B7D888@exrpmu1.ingnet.local> Hi Barend, Your solutions sounds interesting. But I think this is for legends (as explanations of different objects) only. Or else a Javascript would have to reload that scalebar-image with every OL-Zoom-Change and tell it, how deep OL is zoomed in/out. Well I didn't get this to work anyways but don't want to invest further into it as it is only a test project to see what you can do with OL. But I would like to use this scalebar with "OpenLayers.Layer.WMS.Untiled". This layer works, but the scalebar disappears when I use this instead of "OpenLayers.Layer.WMS". The "Untiled"-performance is almost as good as before - just doesn't show the bar. Do I have to change anything ion the mapfile (currently: "STATUS EMBED")? Thanks, Lucas -----Urspr?ngliche Nachricht----- Von: Barend K?bben [mailto:kobben@itc.nl] Gesendet: Donnerstag, 10. Mai 2007 13:28 An: Pfirter Lukas Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers I guess that in your map file you have "SCALEBAR" set to STATUS EMBED". That way you'll get the scalebar repeated in every tile OpenLayers requests. AFAIK the onlys solution is having this tiling beahviour stopped, by asking for a "OpenLayers.Layer.WMS.Untiled" in stead of " OpenLayers.Layer.WMS". It will affect your performance though... For the Legend, you'd get the same problem, but you can overcome that one by having the "STATUS ON" and then request it seperately in you web page by issueing an OGC GetLegendGraphic request (for an example see http://geoserver.itc.nl/mapserver/OpenLayersQuery.html). Unfortunately there is no such thing for the scalebar... __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 10-05-2007 09:07, "Pfirter Lukas" wrote: > I just got this work, thank you! > I needed to implement the following code: > > var wmslayer = new OpenLayers.Layer.WMS( "WMS Layer", > "http://domain.com/cgi-bin/mapserv?map=/path/to/file.map", {layers: > 'Layername'} ); > map.addLayers([wmslayer]); > > Now, the only problem I have left is, that the distance measuring bar, sended > by the mapserver, is displayed a few times inside the OL window. Is it > possible to still use this dynamically generated bar with OL but have it > displayed only once (for example in a corner)? Or do I have to disable this > bar in the ".map"-File and can not use it in OL? > > Lucas > > > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im > Auftrag von Barend K?bben > Gesendet: Mittwoch, 9. Mai 2007 16:57 > An: Users@openlayers.org > Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers > >> Try this instead: >> >> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", >> "http://domain/cgi-bin/mapserv?map=/path/to/project.map >> ", {layers: >> 'basic'} ); > > ...or, if you need SLD based stylings (as I did): > > "http://domain/cgi-bin/mapserv?map=/path/to/project.map > ", > {layers: "landcover", > SLD: "url-to-your-SLD > "} > ); > > ...and if you want the layer to be an overlay iso. a base layer: > > "http://domain/cgi-bin/mapserv?map=/path/to/project.map > ", > {layers: "landcover", > SLD: "url-to-your-SLD > ", > format: "image/png", > transparent: "true"} > ); > -- > Barend K?bben > International Institute for Geo-information Sciences and Earth Observation > (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31-(0)534874253; mobile: +31-(0)622344955 > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From bartvde at osgis.nl Fri May 11 04:38:12 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers Message-ID: <803649a3d07bf77e5857f41c72bfa547@145.50.39.11> Your Mapserver image is probably larger than what you see, so the scalebar is out of sight. Try using ratio:1, like: baselayer0 = new OpenLayers.Layer.WMS.Untiled( "Standaard", "http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?", {layers: 'startkaart', 'format':'image/gif', 'transparent':'TRUE'}, {'numZoomLevels': 12, 'ratio':1, isBaseLayer: true} ); Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Pfirter Lukas Naar: Users@openlayers.org Onderwerp: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers Datum: 11/05/07 06:24 > Hi Barend, > > Your solutions sounds interesting. But I think this is for legends (as explanations of different objects) only. Or else a Javascript would have to reload that scalebar-image with every OL-Zoom-Change and tell it, how deep OL is zoomed in/out. Well I didn't get this to work anyways but don't want to invest further into it as it is only a test project to see what you can do with OL. > > But I would like to use this scalebar with "OpenLayers.Layer.WMS.Untiled". This layer works, but the scalebar disappears when I use this instead of "OpenLayers.Layer.WMS". The "Untiled"-performance is almost as good as before - just doesn't show the bar. Do I have to change anything ion the mapfile (currently: "STATUS EMBED")? > > Thanks, > Lucas > > > > -----Urspr?ngliche Nachricht----- > Von: Barend K?bben [mailto:kobben@itc.nl] > Gesendet: Donnerstag, 10. Mai 2007 13:28 > An: Pfirter Lukas > Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers > > I guess that in your map file you have "SCALEBAR" set to STATUS EMBED". That way you'll get the scalebar repeated in every tile OpenLayers requests. > AFAIK the onlys solution is having this tiling beahviour stopped, by asking for a "OpenLayers.Layer.WMS.Untiled" in stead of " OpenLayers.Layer.WMS". It will affect your performance though... > > For the Legend, you'd get the same problem, but you can overcome that one by having the "STATUS ON" and then request it seperately in you web page by issueing an OGC GetLegendGraphic request (for an example see http://geoserver.itc.nl/mapserver/OpenLayersQuery.html). Unfortunately there is no such thing for the scalebar... > > __ > Barend K?bben > International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > > > > On 10-05-2007 09:07, "Pfirter Lukas" <lp@rpag.ch> wrote: > > > I just got this work, thank you! > > I needed to implement the following code: > > > > var wmslayer = new OpenLayers.Layer.WMS( "WMS Layer", > > "http://domain.com/cgi-bin/mapserv?map=/path/to/file.map", {layers: > > 'Layername'} ); > > map.addLayers([wmslayer]); > > > > Now, the only problem I have left is, that the distance measuring bar, sended > > by the mapserver, is displayed a few times inside the OL window. Is it > > possible to still use this dynamically generated bar with OL but have it > > displayed only once (for example in a corner)? Or do I have to disable this > > bar in the ".map"-File and can not use it in OL? > > > > Lucas > > > > > > > > > > -----Urspr?ngliche Nachricht----- > > Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im > > Auftrag von Barend K?bben > > Gesendet: Mittwoch, 9. Mai 2007 16:57 > > An: Users@openlayers.org > > Betreff: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers > > > >> Try this instead: > >> > >> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > >> "http://domain/cgi-bin/mapserv?map=/path/to/project.map > >> <http://domain/cgi-bin/mapserv?map=/path/to/project.map> ", {layers: > >> 'basic'} ); > > > > ...or, if you need SLD based stylings (as I did): > > > > "http://domain/cgi-bin/mapserv?map=/path/to/project.map > > <http://domain/cgi-bin/mapserv?map=/path/to/project.map> ", > > {layers: "landcover", > > SLD: "url-to-your-SLD <http://geoserver.itc.nl/mapserver/sld/galicia..xml> > > "} > > ); > > > > ...and if you want the layer to be an overlay iso. a base layer: > > > > "http://domain/cgi-bin/mapserv?map=/path/to/project.map > > <http://domain/cgi-bin/mapserv?map=/path/to/project.map> ", > > {layers: "landcover", > > SLD: "url-to-your-SLD <http://geoserver.itc.nl/mapserver/sld/galicia..xml> > > ", > > format: "image/png", > > transparent: "true"} > > ); > > -- > > Barend K?bben > > International Institute for Geo-information Sciences and Earth Observation > > (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > > ph: +31-(0)534874253; mobile: +31-(0)622344955 > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From brad at cubewerx.com.au Fri May 11 04:41:59 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Possible bug Message-ID: I have been struggling with what I think is a bug in OL 2.4-rc1. When I try to place the MouseToolbar in its own DIV it works fine in FireFox but keeps returning errors in the JSconsol. It simply does not work in IE7.0. See http://demo.cubewerx.com.au/aamhatch_dev.html When I remove the MouseToolbar altogether it works without the error messages both in FF and IE. See http://demo.cubewerx.com.au/aamhatch_dev2.html I really would like to have MouseToolbar operational in both browsers and off the map DIV if possible. Cheers, Brad Spencer General Manager CubeWerx Australia Pty Ltd ABN: 37 115 163 285 Mob: +61 (0)404 841 131 Tel/Fax: +61 (0)2 9481 7024 mailto:brad@cubewerx.com.au http://www.cubewerx.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070511/b01244b0/attachment.html From pb at gis.umcs.lublin.pl Fri May 11 05:07:17 2007 From: pb at gis.umcs.lublin.pl (=?ISO-8859-2?B?UHJ6ZW15c7Nhdw==?= Bojczuk) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Storing vectors in OL Message-ID: <20070511110717.5a28ddc0.pb@gis.umcs.lublin.pl> Hello, list! Since there is no (known to me) way to save drawn/edited vectors (as in http://openlayers.org/dev/examples/editingtoolbar.html) to any kind of file, is it possible to store them in a permalink? As far as I know, permalink only stores layers, extent and zoom, but could it be possible to extend it to store the drawn vectors as well? Alternatively, if anyone knows a working solution where I can draw shapes in a browser (with a map in the background) and then save the results to a file, such information will be greatly appreciated. PB -- Geographical Information Systems Laboratory Institute of Earth Sciences, UMCS http://gis.umcs.lublin.pl/en/ From kobben at itc.nl Fri May 11 06:20:36 2007 From: kobben at itc.nl (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45B7D888@exrpmu1.ingnet.local> Message-ID: > Your solutions sounds interesting. But I think this is for legends (as > explanations of different objects) only. Or else a Javascript would have to > reload that scalebar-image with every OL-Zoom-Change and tell it, how deep OL > is zoomed in/out. Well I didn't get this to work anyways but don't want to > invest further into it as it is only a test project to see what you can do > with OL. It's for the legend only, because the WMS spec has no interface for scalebars. It should be trivial however to script the scalebar in OL, maybe even somebody has already done that (if not, maybe it's a nice student project ;-). > - just doesn't show the bar. Do I have to change anything ion the mapfile > (currently: "STATUS EMBED")? Not that I am aware of... Barend From andrew at andrewlarcombe.co.uk Fri May 11 06:17:15 2007 From: andrew at andrewlarcombe.co.uk (Andrew Larcombe) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] What is serving examples/openmnnd.html? In-Reply-To: <2EF6E1058C047344B4DE0FD14111916769D1EC@hex01.houstonengineeringinc.com> References: <34E056CD4D475841B8C9ABCE956F92F6370965@mrburns.KorOffice.local><20070507222902.GA12212@metacarta.com> <463F68CB.5157.008F.0@dnr.state.mn.us> <2EF6E1058C047344B4DE0FD14111916769D1EC@hex01.houstonengineeringinc.com> Message-ID: On 9 May 2007, at 14:45, Fischer, Brian wrote: > > Steve is right it is a custom solution developed with MySQL and > some C code by LMIC. I will talk with my contacts their and see if > I can do anything to try to get them to share the code. The speed > is very impressive. The one limitation is it only supports the > projection the image is currently stored in. > > Providing you've got limitations and you've got your creative hat on there are lots of nice optimisations you can do. I recently put together a wms service for 14TB of 25cm resolution air photos. Luckily the wms client being used had a fixed window size and fixed resolutions that it was going to view at, hence I was able to ramp up the optimisation by feeding the wms server pre-generating lower resolution overviews that I knew the client was going to request as tiled tiffs, each tile's being the size of the image the client was going to request and the tile's data being jpeg compressed. A lot of optimisation, but with a relatively static dataset optimising the input data to the wms server can really pay off. Cheers, Andrew --- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk email: andrew@andrewlarcombe.co.uk icq: 306690163 From andrew at andrewlarcombe.co.uk Fri May 11 06:25:01 2007 From: andrew at andrewlarcombe.co.uk (Andrew Larcombe) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Storing vectors in OL In-Reply-To: <20070511110717.5a28ddc0.pb@gis.umcs.lublin.pl> References: <20070511110717.5a28ddc0.pb@gis.umcs.lublin.pl> Message-ID: On 11 May 2007, at 10:07, Przemys?aw Bojczuk wrote: > Hello, list! > > Since there is no (known to me) way to save drawn/edited vectors > (as in > http://openlayers.org/dev/examples/editingtoolbar.html) to any kind of > file, is it possible to store them in a permalink? As far as I know, > permalink only stores layers, extent and zoom, but could it be > possible > to extend it to store the drawn vectors as well? > You should be able to create a function which posts your drawn object to a server where you can, for example, store it in a database for future use. eg for a box you could do something like this (warning, this code may not work ootb): /****** var onBoxDrawn = function(box) { //post the contents of box to the server } drawControl = new OpenLayers.Control(); OpenLayers.Util.extend(drawControl, { draw: function () { // this Handler.Box will intercept the shift- mousedown // before Control.MouseDefault gets to see it this.box = new OpenLayers.Handler.Box( drawControl, {"done": this.notice}, {keyMask: OpenLayers.Handler.MOD_SHIFT}); this.box.activate(); }, notice: onBoxDrawn }); ********/ add the drawControl to a panel, and add the panel to a map. This will allow you to shift-drag a rectangle and when you've finished drawing the onBoxDrawn function gets called. Hope that makes sense. Cheers, Andrew --- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk email: andrew@andrewlarcombe.co.uk icq: 306690163 From bartvde at osgis.nl Fri May 11 07:11:06 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Display Map from MapServer with OpenLayers Message-ID: <02881227fdd6f0e25e956d9d61c12af7@145.50.39.11> I've done that using PHP/Mapscript already. HTML code:
Schaal indicatie
javascript code: function scalebarinit(){ if (map) { map.events.register( 'moveend', this, updateScale); var image = document.getElementById('scaleIndicationBar'); // make sure it is reloaded when it fails loading OpenLayers.Event.observe(image, "load", OpenLayers.Util.onImageLoad.bindAsEventListener(image)); updateScale(); } } function updateScale(){ if (!map) { return false; } document.getElementById('scaleIndicationBar').src = "widgets/OpenLayersScalebar/drawScalebar.php?width="+map.size.w+"&height="+map.size.h+"&minx="+map.getExtent().left+"&miny="+map.getExtent().bottom+"&maxx="+map.getExtent().right+"&maxy="+map.getExtent().top; } PHP code: set("width", $width); } if ($height != '') { $oMap->set("height", $height); } if (($minx != '') && ($miny != '') && ($maxx != '') && ($maxy != '')) { $oMap->setExtent($minx, $miny, $maxx, $maxy); } if ($oMap->scale < 100000) { $oMap->scalebar->set("units", MS_METERS); } $oImage = $oMap->drawScaleBar(); $oMap->selectOutputFormat('GIF'); header("Content-type: image/gif"); // output scalebar to stdout $url = $oImage->saveImage(""); ?> Good luck. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Barend K?bben Naar: Pfirter Lukas , openlayer Onderwerp: Re: [OpenLayers-Users] Display Map from MapServer with OpenLayers Datum: 11/05/07 08:20 > > Your solutions sounds interesting. But I think this is for legends (as > > explanations of different objects) only. Or else a Javascript would have to > > reload that scalebar-image with every OL-Zoom-Change and tell it, how deep OL > > is zoomed in/out. Well I didn't get this to work anyways but don't want to > > invest further into it as it is only a test project to see what you can do > > with OL. > > It's for the legend only, because the WMS spec has no interface for > scalebars. > > It should be trivial however to script the scalebar in OL, maybe even > somebody has already done that (if not, maybe it's a nice student project > ;-). > > > - just doesn't show the bar. Do I have to change anything ion the mapfile > > (currently: "STATUS EMBED")? > Not that I am aware of... > > Barend > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From fmsd91 at hotmail.com Fri May 11 07:11:57 2007 From: fmsd91 at hotmail.com (Francisco Domingues) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Zooming and layer placement errors Message-ID: Hello all, I'm back again with my problems of zooming and wms layer position. In my map the zoom rectangle tool didn't work correctly, if you try to zoom in areas near the borders of the map viewer, and sometimes even in the center, it zooms to another zone completely different. Its this a bug or can I fix it somehow? The second problem is that some points of my layer appears in the ocean where they should be in land. This could be a problem of coordinates or resolution? When I zoom in it starts to get their original and correct position. Hope someone can help me. Thanks in advance! Francisco Domingues _________________________________________________________________ MSN Busca: f?cil, r?pido, direto ao ponto. http://search.msn.com.br From fmsd91 at hotmail.com Fri May 11 07:13:27 2007 From: fmsd91 at hotmail.com (Francisco Domingues) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Zooming and layer placement errors In-Reply-To: Message-ID: Hi! I forgot to input my webpage link: http://terrestrial.eionet.europa.eu/Fire%20Map%20Viewer/example Check it to see the errors... Thanks! >From: "Francisco Domingues" >To: users@openlayers.org >Subject: [OpenLayers-Users] Zooming and layer placement errors >Date: Fri, 11 May 2007 11:11:57 +0000 > > >Hello all, > >I'm back again with my problems of zooming and wms layer position. In my >map >the zoom rectangle tool didn't work correctly, if you try to zoom in areas >near the borders of the map viewer, and sometimes even in the center, it >zooms to another zone completely different. Its this a bug or can I fix it >somehow? >The second problem is that some points of my layer appears in the ocean >where they should be in land. This could be a problem of coordinates or >resolution? When I zoom in it starts to get their original and correct >position. >Hope someone can help me. >Thanks in advance! > >Francisco Domingues > >_________________________________________________________________ >MSN Busca: f?cil, r?pido, direto ao ponto. http://search.msn.com.br > >_______________________________________________ >Users mailing list >Users@openlayers.org >http://openlayers.org/mailman/listinfo/users _________________________________________________________________ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com From pb at gis.umcs.lublin.pl Fri May 11 07:16:10 2007 From: pb at gis.umcs.lublin.pl (=?ISO-8859-2?B?UHJ6ZW15c7Nhdw==?= Bojczuk) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Storing vectors in OL In-Reply-To: References: <20070511110717.5a28ddc0.pb@gis.umcs.lublin.pl> Message-ID: <20070511131610.5dbc6618.pb@gis.umcs.lublin.pl> Hello! Andrew Larcombe wrote: > You should be able to create a function which posts your drawn object > to a server where you can, for example, store it in a database for > future use. eg for a box you could do something like this (warning, > this code may not work ootb): That's a great hint, though I would rather to only send the final effect, for example by pushing a button. If is send it 'live' (as I understand putting the instructions in onBoxDrawn does just it), then what about if someone changes the vertex position? And it still leaves me with a problem of how to accomplish storing the vectors (PostGIS maybe, but I haven't used it all that much). Anyway, your post helped me greatly to follow what I believe to be the right direction. Thanks! Of course any other comments will still be appreciated. :-) PB -- Geographical Information Systems Laboratory Institute of Earth Sciences, UMCS http://gis.umcs.lublin.pl/en/ From crschmidt at metacarta.com Fri May 11 07:29:01 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Error Reporting In-Reply-To: <4fe6dd700705110034u74c2037dx6abdcec284b323cb@mail.gmail.com> References: <4fe6dd700705090322r281da0e1lb727181b4876d9fa@mail.gmail.com> <20070509140012.GB15447@metacarta.com> <4fe6dd700705110034u74c2037dx6abdcec284b323cb@mail.gmail.com> Message-ID: <20070511112901.GA11465@metacarta.com> On Fri, May 11, 2007 at 08:34:29AM +0100, Tom wrote: > Hi, > > Thanks for your reply. Currently I'm working with WFS stuff but it's not > really one specific thing I'm after, just a general need to find out where > OpenLayers is failing so I can trace that back to my own code to discover > what I've not setup properly. With the exception of XMLHttpRequests (which cause exceptions to fail silently), OpenLayers should complain in the javascript console about any errors. If you're working with WFS, I'm assuming this is exactly what your problem is :) The bug report for that is http://trac.openlayers.org/ticket/534 -- fixing it should not be too difficult, patches welcome. > I guess I'll just have to wait till 2.5 for > that. Any idea what sort of timescale we're talking for that? Months. September, october? the changes will make it into trunk before that though. > Also, I did > see in this mailing list somewhere that all WFS-T transactions are supported > under the hood, is that true and how long before they're officially > supported? They are officially supported. You just have to write your own UI :) Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri May 11 07:34:38 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Zooming and layer placement errors In-Reply-To: References: Message-ID: <20070511113438.GC11465@metacarta.com> On Fri, May 11, 2007 at 11:11:57AM +0000, Francisco Domingues wrote: > The second problem is that some points of my layer appears in the ocean > where they should be in land. This could be a problem of coordinates or > resolution? When I zoom in it starts to get their original and correct > position. This is expected behavior when using WMS over Google. Improvements in this functionality are planned for OL 2.5. Regards, -- Christopher Schmidt MetaCarta From john.cole at uai.com Fri May 11 11:50:37 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] selecting text in popup... Message-ID: <76758090F8686C47A44B6FF52514A1D307909C9B@hermes.uai.int> I'm trying to select the text from a OpenLayers.Popup, but it doesn't seem to be working. Looking at the popup.js, it appears that the intent is to allow selecting text: /** When mouse goes down within the popup, make a note of * it locally, and then do not propagate the mousedown * (but do so safely so that user can select text inside) Searching the code, it appears that several areas are setting document.onselectstart = function() { return false; } to turn off selecting text. I've located all of these calls, placed break points on them in firebug, and tried to select text in the popup, but none of these are being hit. Are there any other points where selecting is disabled besides the onselectstart functions? Thanks, John No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.8/797 - Release Date: 5/10/2007 5:10 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From mikequentel at yahoo.com Fri May 11 12:41:55 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] how do i append extra parameters to the outgoing WMS requests from OL client? Message-ID: <130700.48505.qm@web32503.mail.mud.yahoo.com> I'd like to add some extra parameters to the URLs created in the WMS requests from OL client. What is the easiest way to append new, custom params? Thank you. Mike Quentel ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From bartvde at osgis.nl Fri May 11 12:44:08 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] how do i append extra parameters to the outgoing WMS requests from OL client? In-Reply-To: <130700.48505.qm@web32503.mail.mud.yahoo.com> References: <130700.48505.qm@web32503.mail.mud.yahoo.com> Message-ID: <46449D58.3050403@osgis.nl> Use mergeNewParams on the layer. Best regards, Bart Mike Quentel schreef: > I'd like to add some extra parameters to the URLs created in the WMS requests from OL client. What is the easiest way to append new, custom params? > > Thank you. > > Mike Quentel > > > > > > ___________________________________________________________ > Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for > your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From lszklanny at where2getit.com Fri May 11 12:45:48 2007 From: lszklanny at where2getit.com (Les Szklanny) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Users Digest, Vol 8, Issue 19 In-Reply-To: References: Message-ID: <46449DBC.70109@where2getit.com> users-request@openlayers.org wrote: > Send Users mailing list submissions to > users@openlayers.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://openlayers.org/mailman/listinfo/users > or, via email, send a message with subject or body 'help' to > users-request@openlayers.org > > You can reach the person managing the list at > users-owner@openlayers.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. selecting text in popup... (John Cole) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 11 May 2007 10:50:37 -0500 > From: John Cole > Subject: [OpenLayers-Users] selecting text in popup... > To: openlayers > Message-ID: <76758090F8686C47A44B6FF52514A1D307909C9B@hermes.uai.int> > Content-Type: text/plain; charset="windows-1250" > > I'm trying to select the text from a OpenLayers.Popup, but it doesn't seem > to be working. > > Looking at the popup.js, it appears that the intent is to allow selecting > text: > > /** When mouse goes down within the popup, make a note of > * it locally, and then do not propagate the mousedown > * (but do so safely so that user can select text inside) > > Searching the code, it appears that several areas are setting > document.onselectstart = function() { return false; } to turn off selecting > text. > > I've located all of these calls, placed break points on them in firebug, and > tried to select text in the popup, but none of these are being hit. > > Are there any other points where selecting is disabled besides the > onselectstart functions? > > Thanks, > > John > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.6.8/797 - Release Date: 5/10/2007 > 5:10 PM > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > > > ------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > End of Users Digest, Vol 8, Issue 19 > ************************************ > > This doesn't work in FF 2.0, but it works OK in IE 6 and 7, and Opera 9.2. Is this a bug in OpenLayers? Les Szklanny Where2GetIt From mikequentel at yahoo.com Fri May 11 12:55:16 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Storing vectors in OL Message-ID: <92818.11412.qm@web32509.mail.mud.yahoo.com> This description of a solution might be helpful to you: The system I'm working has a drawing toolbar. The user draws a shape, then uses a selection tool to select the individual shape that was drawn. On this selection event, the vertices (in WKT format) and geometry type are stored in a hidden form field. When the user is ready to save the selected shape, the user clicks a submit button that submits (via AJAX) the geometry data to a Java bean that converts the geometry data into values that can be inserted into an ArcSDE-Oracle database. Once these shapes have been added to an ArcSDE featureclass, they are then rendered through an ArcIMS image service shared as a WMS (via the ArcIMS WMS Connector). That's one way to perpetuate the shapes that were drawn. You could probably replicate the same behaviour using PostGIS/PostgreSQL with GeoServer or Map Server. By the way, the ArcIMS WMS Connector is weak on OGC support, so if you can go with Map Server or GeoServer, do so. Mike Quentel ----- Original Message ---- From: Przemys?aw Bojczuk To: users@openlayers.org Sent: Friday, 11 May, 2007 5:16:10 AM Subject: Re: [OpenLayers-Users] Storing vectors in OL Hello! Andrew Larcombe wrote: > You should be able to create a function which posts your drawn object > to a server where you can, for example, store it in a database for > future use. eg for a box you could do something like this (warning, > this code may not work ootb): That's a great hint, though I would rather to only send the final effect, for example by pushing a button. If is send it 'live' (as I understand putting the instructions in onBoxDrawn does just it), then what about if someone changes the vertex position? And it still leaves me with a problem of how to accomplish storing the vectors (PostGIS maybe, but I haven't used it all that much). Anyway, your post helped me greatly to follow what I believe to be the right direction. Thanks! Of course any other comments will still be appreciated. :-) PB -- Geographical Information Systems Laboratory Institute of Earth Sciences, UMCS http://gis.umcs.lublin.pl/en/ _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html From mikequentel at yahoo.com Fri May 11 13:51:40 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] how do i append extra parameters to the outgoing WMS requests from OL client? Message-ID: <747365.38072.qm@web32507.mail.mud.yahoo.com> Thank you. This example works: var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}); wmsLayer.mergeNewParams({"beer": "good"}); Resulting output URL: http://labs.metacarta.com/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&BEER=good&SRS=EPSG%3A4326&BBOX=0%2C0%2C45%2C45&WIDTH=256&HEIGHT=256 ----- Original Message ---- From: Bart van den Eijnden (OSGIS) To: Mike Quentel Cc: OpenLayers Users Sent: Friday, 11 May, 2007 10:44:08 AM Subject: Re: [OpenLayers-Users] how do i append extra parameters to the outgoing WMS requests from OL client? Use mergeNewParams on the layer. Best regards, Bart Mike Quentel schreef: > I'd like to add some extra parameters to the URLs created in the WMS requests from OL client. What is the easiest way to append new, custom params? > > Thank you. > > Mike Quentel > > > > > > ___________________________________________________________ > Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for > your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com From crschmidt at metacarta.com Fri May 11 13:58:51 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] how do i append extra parameters to the outgoing WMS requests from OL client? In-Reply-To: <747365.38072.qm@web32507.mail.mud.yahoo.com> References: <747365.38072.qm@web32507.mail.mud.yahoo.com> Message-ID: <20070511175851.GA12877@metacarta.com> On Fri, May 11, 2007 at 10:51:40AM -0700, Mike Quentel wrote: > Thank you. This example works: > > var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}); > > wmsLayer.mergeNewParams({"beer": "good"}); The third parameter to the WMS Layer *is* parameters: var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic', 'beer':'good'}); mergeNewParams is designed for use after a layer is already in existence. Regards, -- Christopher Schmidt MetaCarta From seymore_glass2000 at yahoo.com Fri May 11 15:48:57 2007 From: seymore_glass2000 at yahoo.com (Seymore Glass) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Question about WFS-T Message-ID: <765058.2163.qm@web54610.mail.yahoo.com> Dear List: I have been trying to modify the wfs-scribble.html file (in the vector2.4 version of OpenLayers in the sandbox) to work with data on my server (served from GeoServer 1.4.1). The GET requests work great, but I am having a problem with the POST. The proper request is built, but when it is sent to the server via the proxy.cgi file, I get a server error as the response(Apache 2.0.49 - 500 Internal Server Error). I am using python 2.4 to run the cgi file. I would like to know if there is a better working version of OpenLayers for the wfs-t functionality, or if anyone has any suggestions on how to get things working for the version I have. I can send more detailed information if needed. Thanks for the help, Tony --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070511/e3fbfcd8/attachment.html From crschmidt at metacarta.com Fri May 11 18:27:10 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] Question about WFS-T In-Reply-To: <765058.2163.qm@web54610.mail.yahoo.com> References: <765058.2163.qm@web54610.mail.yahoo.com> Message-ID: <20070511222710.GA13966@metacarta.com> On Fri, May 11, 2007 at 12:48:57PM -0700, Seymore Glass wrote: > Dear List: > > I have been trying to modify the wfs-scribble.html file (in the vector2.4 version of OpenLayers in the sandbox) to work with data on my server (served from GeoServer 1.4.1). The GET requests work great, but I am having a problem with the POST. The proper request is built, but when it is sent to the server via the proxy.cgi file, I get a server error as the response(Apache 2.0.49 - 500 Internal Server Error). I am using python 2.4 to run the cgi file. proxy.cgi doesn't do POST. OpenLayers doesn't have an example proxy that does. In the past, I've configured this by setting up mod_proxy to point to GeoServer in a relative URL: http://openlayers.org/dev/examples/wfs-scribble.html now works again in this mechanism. (My GeoServer died some time ago -- I just restarted it.) Regards, -- Christopher Schmidt MetaCarta From g.medard at ucl.ac.uk Sat May 12 07:22:27 2007 From: g.medard at ucl.ac.uk (Guillaume MEDARD) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] political EU Message-ID: <4645A373.1090609@ucl.ac.uk> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070512/793b3691/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: viadeo.gif Type: image/gif Size: 475 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070512/793b3691/viadeo.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: btn_profile_bluetxt_80x15.gif Type: image/gif Size: 396 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070512/793b3691/btn_profile_bluetxt_80x15.gif From alok at cse.iitb.ac.in Sun May 13 01:16:44 2007 From: alok at cse.iitb.ac.in (Alok Jadhav) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] can't view text layer Message-ID: Hello, I want to display some markers from a file using OpenLayers.Layer.Text() my textfile is like this: point title description icon 72.82488,18.90948 COLABA1 COLABA1 72.79488,18.9594 COLABA2 COLABA2 72.89488,19.10948 COLABA3 COLABA3 72.92488,19.159 COLABA4 COLABA4 http://www.openlayers.org/api/img/zoom-world-mini.png (The values are tab seperated!) and part of code to use this file is : textLayer = new OpenLayers.Layer.Text( "text", {location: "./textfile2.txt"} ); markers = new OpenLayers.Layer.Markers( "Markers" ); // Markers for selected stop! var size = new OpenLayers.Size(22,32);B var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); tile = new OpenLayers.Layer.KaMap( "Mumbai Navigator KaMap","http://10.129.112.144:8080/mumbai/tile.php", {'layers': 'mumbai', map: 'mumbai', i: 'JPEG'} ); busStops = new OpenLayers.Layer.KaMap("Bus stops", "http://10.129.112.144:8080/mumbai/tile.php", {'g': 'grp', map: 'mumbai'}, {'isBaseLayer': false}); map.addLayers([tile, busStops, vectorLayer, markers, textLayer]); I cannot see any of the markers from the textfile on the map. If I add the markers manually using OpenLayers.Layer.Markers, they are visible but nothing from the text layer. I am just not able to solve this problem. I can't seem to know what is the problem. Please some1 tell me where I am going wrong. thanks in advance. -Alok From alok at cse.iitb.ac.in Sun May 13 08:38:52 2007 From: alok at cse.iitb.ac.in (Alok Jadhav) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] can't view text layer In-Reply-To: References: Message-ID: I could solve the problem. The problem was that we need to put lat lon in the point value instead of lon lat which i have used ... also .. I missed the tabs in the first line ...rest all the lines had tabs :) -Alok On Sun, 13 May 2007, Alok Jadhav wrote: > > > Hello, > I want to display some markers from a file using OpenLayers.Layer.Text() > > my textfile is like this: > > point title description icon > 72.82488,18.90948 COLABA1 COLABA1 > 72.79488,18.9594 COLABA2 COLABA2 > 72.89488,19.10948 COLABA3 COLABA3 > 72.92488,19.159 COLABA4 COLABA4 > http://www.openlayers.org/api/img/zoom-world-mini.png > > (The values are tab seperated!) > > > and part of code to use this file is : > > > textLayer = new OpenLayers.Layer.Text( "text", {location: > "./textfile2.txt"} ); > > markers = new OpenLayers.Layer.Markers( "Markers" ); // Markers > for selected stop! > var size = new OpenLayers.Size(22,32);B > var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); > tile = new OpenLayers.Layer.KaMap( "Mumbai Navigator > KaMap","http://10.129.112.144:8080/mumbai/tile.php", {'layers': 'mumbai', > map: 'mumbai', i: 'JPEG'} ); > busStops = new OpenLayers.Layer.KaMap("Bus stops", > "http://10.129.112.144:8080/mumbai/tile.php", {'g': 'grp', map: 'mumbai'}, > {'isBaseLayer': false}); > map.addLayers([tile, busStops, vectorLayer, markers, textLayer]); > > > > I cannot see any of the markers from the textfile on the map. If I add the > markers manually using OpenLayers.Layer.Markers, they are visible but > nothing from the text layer. > > I am just not able to solve this problem. I can't seem to know what is > the problem. Please some1 tell me where I am going wrong. > > thanks in advance. > > -Alok > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From DCarreira at edia.pt Sun May 13 11:54:06 2007 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] ajax onfailure does not decrease requests counter Message-ID: <94C0F903807262438796839A98A9BA500D404D@beja001.edia.pt> Hi all. I'm using OL2.3 and I'm using loadURL as the ajax mechanism. I use OpenLayers.Ajax.Responders.register to show and hide a small animated icon to show when client-server communication is going on. This works fine until there's a failed request. As far as I can see, when an ajax request fails OL does not update OpenLayers.Ajax.activeRequestCount, so my function does not hide the animated icon. I feel the counter should be decreased every time a request terminates, even if it failed. Also, I don't know if the responder onComplete gets fired when a request fails. As long as I'm on the subject I would like to ask if there's a way to know when tiles have finished loading on a map or layer? I have searched the list for this and did not find a solution. But OL is evolving so fast I'm hoping maybe there is. Thanks, Duarte Carreira -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070513/b9ab1107/attachment.html From crschmidt at metacarta.com Sun May 13 12:35:14 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] ajax onfailure does not decrease requests counter In-Reply-To: <94C0F903807262438796839A98A9BA500D404D@beja001.edia.pt> References: <94C0F903807262438796839A98A9BA500D404D@beja001.edia.pt> Message-ID: <20070513163514.GA22295@metacarta.com> On Sun, May 13, 2007 at 04:54:06PM +0100, Duarte Carreira wrote: > > Hi all. > > I'm using OL2.3 and I'm using loadURL as the ajax mechanism. > > I use OpenLayers.Ajax.Responders.register to show and hide a small animated icon to show when client-server communication is going on. This works fine until there's a failed request. > > As far as I can see, when an ajax request fails OL does not update OpenLayers.Ajax.activeRequestCount, so my function does not hide the animated icon. Huh. That's interesting, because I'm sure that onComplete is called (when registered as an option to Ajax.Request) on failures... > I feel the counter should be decreased every time a request terminates, even if it failed. Agreed. > Also, I don't know if the responder onComplete gets fired when a request fails. I'm under the impression that it does, but if it doesn't, patches to that part of the code to make it do the right thing are welcome. Feel free to open a ticket on the topic. > As long as I'm on the subject I would like to ask if there's a way to know when tiles have finished loading on a map or layer? I have searched the list for this and did not find a solution. But OL is evolving so fast I'm hoping maybe there is. I think WMS.Untiled has this ability, but other layers don't -- for the same types of problems you're now running into with Ajax :) Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Sun May 13 17:27:42 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:29 2010 Subject: [OpenLayers-Users] no display of the editingtoolbar control Message-ID: Hello, I got the OL Version 2.4 from svn to test the vector layers. I have played with the kml-layer and it's great. Now i have the problem, with the example "editingtoolbar.html", the control will not show. Have someone an idea, how to display the control? I'm using FF 1.5 and IE6. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From fred at knapzakvaart.nl Sun May 13 17:41:57 2007 From: fred at knapzakvaart.nl (Fred) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Strange behaviour LineString? Message-ID: <001101c795a7$89e98c90$ef82fea9@SALON> Hi list, First a want to say OpenLayer is a great API and I admire your work. I'm an old 3GL Develloper from Holland and sometimes I wonder about the Object way. Case: Environment: IE7 using OL 2.4rc3 Using a LineString from GML-file or using the example 'Vector-Features.html' and looking at the line seems to look fine on the screen. When I make a preview or Print from the map the line seems not a to be a line but a closed linestring. The first point is connected with the last. Thats not what I expect. This connected line is invisible (white) and the plane between it is also. So you can't see a part off the baselayer. Looking at the source in Collection.js (addComponents) I can't see the problem. With kind regards Fred van Beelen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070513/a1182c97/attachment.html From fmsd91 at hotmail.com Sun May 13 18:15:25 2007 From: fmsd91 at hotmail.com (Francisco Domingues) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Zooming and layer placement errors In-Reply-To: <20070511113438.GC11465@metacarta.com> Message-ID: Thanks for the explanation about my second problem! There is still the zoom error to fix unfortunatly... Any ideas? Francisco Domingues >From: Christopher Schmidt >To: Francisco Domingues >CC: users@openlayers.org >Subject: Re: [OpenLayers-Users] Zooming and layer placement errors >Date: Fri, 11 May 2007 07:34:38 -0400 > >On Fri, May 11, 2007 at 11:11:57AM +0000, Francisco Domingues wrote: > > The second problem is that some points of my layer appears in the ocean > > where they should be in land. This could be a problem of coordinates or > > resolution? When I zoom in it starts to get their original and correct > > position. > >This is expected behavior when using WMS over Google. Improvements in >this functionality are planned for OL 2.5. > >Regards, >-- >Christopher Schmidt >MetaCarta _________________________________________________________________ MSN Busca: f?cil, r?pido, direto ao ponto. http://search.msn.com.br From denny_sutanto1 at yahoo.com Mon May 14 03:14:45 2007 From: denny_sutanto1 at yahoo.com (sutanto denny) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] No mapserver Message-ID: <205727.72136.qm@web54410.mail.yahoo.com> Hi all, I'm a new user in the mailing list. i wonder if i can use openlayers technology with using mapserver. I have all the map images in my hard drive, they are already cut into pieces of tiles. is there any way i can use openlayers, to display my map file ? Thanks a lot ____________________________________________________________________________________Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC From pb at gis.umcs.lublin.pl Mon May 14 04:49:19 2007 From: pb at gis.umcs.lublin.pl (=?ISO-8859-2?B?UHJ6ZW15c7Nhdw==?= Bojczuk) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Storing vectors in OL In-Reply-To: <92818.11412.qm@web32509.mail.mud.yahoo.com> References: <92818.11412.qm@web32509.mail.mud.yahoo.com> Message-ID: <20070514104919.bf298be6.pb@gis.umcs.lublin.pl> Hello! Your solution sounds very interesting, do you have a working example on-line? I am using OpenLayers with MapServer and plan on using PostGIS or just files to store the effects. PB -- Geographical Information Systems Laboratory Institute of Earth Sciences, UMCS http://gis.umcs.lublin.pl/en/ From DCarreira at edia.pt Mon May 14 04:48:58 2007 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] ajax onfailure does not decrease requests counter Message-ID: <94C0F903807262438796839A98A9BA5001937944@beja001.edia.pt> Christopher, My function for onComplete tests for activeRequestCount == 0 and if it is then hides the progress animation. Now, when an ajax request fails the counter fails the test. This is the code for onComplete and onCreate: OpenLayers.Ajax.Responders.register({ onCreate: function() { if($('ocupado') && OpenLayers.Ajax.activeRequestCount > 0) { $('ocupado').style.display = 'block'; $('estado').innerHTML = '#: ' + OpenLayers.Ajax.activeRequestCount; } }, onComplete: function() { if($('ocupado') && OpenLayers.Ajax.activeRequestCount == 0) { $('ocupado').style.display = 'none'; $('estado').innerHTML = '#: ' + OpenLayers.Ajax.activeRequestCount; } } }); Reading your message I got the feeling that maybe my onComplete should decrease the counter? But it's working as long as there aren't any failures. So the counter is decreasing somewhere else. To work around this issue I've worked on the loadURL onFailure function. Here I decrease activeRequestCount, and hide the animation if it reaches 0. The application is now a bit extensive so it's not a really good test scenario. For the same reason, I cannot guarantee something weird other than OL is not going on. If I get the opportunity I will create a test scenario and report back on it. As for an onLoaded event for map or layer objects it's a pity we don't get one... but life goes on! Thanks for your help. Duarte -----Mensagem original----- De: Christopher Schmidt [mailto:crschmidt@metacarta.com] Enviada: domingo, 13 de Maio de 2007 17:35 Para: Duarte Carreira Cc: users@openlayers.org Assunto: Re: [OpenLayers-Users] ajax onfailure does not decrease requests counter On Sun, May 13, 2007 at 04:54:06PM +0100, Duarte Carreira wrote: > > Hi all. > > I'm using OL2.3 and I'm using loadURL as the ajax mechanism. > > I use OpenLayers.Ajax.Responders.register to show and hide a small animated icon to show when client-server communication is going on. This works fine until there's a failed request. > > As far as I can see, when an ajax request fails OL does not update OpenLayers.Ajax.activeRequestCount, so my function does not hide the animated icon. Huh. That's interesting, because I'm sure that onComplete is called (when registered as an option to Ajax.Request) on failures... > I feel the counter should be decreased every time a request terminates, even if it failed. Agreed. > Also, I don't know if the responder onComplete gets fired when a request fails. I'm under the impression that it does, but if it doesn't, patches to that part of the code to make it do the right thing are welcome. Feel free to open a ticket on the topic. > As long as I'm on the subject I would like to ask if there's a way to know when tiles have finished loading on a map or layer? I have searched the list for this and did not find a solution. But OL is evolving so fast I'm hoping maybe there is. I think WMS.Untiled has this ability, but other layers don't -- for the same types of problems you're now running into with Ajax :) Regards, -- Christopher Schmidt MetaCarta From mikequentel at yahoo.com Mon May 14 13:52:27 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] resize map div when onresize event occurs in body causing Google Maps issues Message-ID: <427090.76455.qm@web32514.mail.mud.yahoo.com> This code resizes the map div (specifically, its height) when the onresize event gets called on the body of the page. Problem is that Google Maps layer now has issues when user attempts to pan (attempting to pan resets the map extents to geographic areas far, far away from the original extent--nowhere near the intended mouse movement). var winW = screen.width; var winH = screen.height; function calculateBrowserWindow() { if (parseInt(navigator.appVersion) > 3) { if (navigator.appName == "Netscape") { winW = window.innerWidth; winH = window.innerHeight; } if (navigator.appName.indexOf("Microsoft") != -1) { winW = document.body.offsetWidth; winH = document.body.offsetHeight; } } } var mapWindowHeight = winH - 44 - 112; function setMapWindow() { calculateBrowserWindow(); mapWindowHeight = winH - 44 - 112; var mapDivReference = document.getElementById("mapDiv"); if (mapDivReference != null) { mapDivReference.style.height = mapWindowHeight; } } Now, I just found this reference to map.updateSize() : http://openlayers.org/pipermail/trac/2007-March/000859.html Will calling map.updateSize() solve the panning issue, or am I missing something else as well in this code? Thank you. Mike Quentel ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From mfrumin at rpa.org Tue May 15 01:05:15 2007 From: mfrumin at rpa.org (mfrumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace Message-ID: <10616661.post@talk.nabble.com> it is often useful to look at the code in the libraries to figure out how to do do stuff. unfortunately, it lacks any sane whitespacing scheme, and is impossible to peruse. eg (from http://openlayers.org/api/2.4-rc3/OpenLayers.js or the OpenLayers.js that comes in the download): OpenLayers.Util.modifyAlphaImageDiv=function(div,id,px,sz,imgURL,position,border,sizing,opacity){OpenLayers.Util.modifyDOMElement(div,id,px,sz);var img=div.childNodes[0];if(imgURL){img.src=imgURL;} OpenLayers.Util.modifyDOMElement(img,div.id+"_innerImage",null,sz,"relative",border);if(opacity){div.style.opacity=opacity;div.style.filter='alpha(opacity='+(opacity*100)+')';} if(OpenLayers.Util.alphaHack()){div.style.display="inline-block";if(sizing==null){sizing="scale";} div.style.filter="progid:DXImageTransform.Microsoft"+".AlphaImageLoader(src='"+img.src+"', "+"sizingMethod='"+sizing+"')";if(div.style.opacity){div.style.filter+=" alpha(opacity="+div.style.opacity*100+")";} img.style.filter="progid:DXImageTransform.Microsoft"+".Alpha(opacity=0)";}};OpenLayers.Util.createAlphaImageDiv=function(id,px,sz,imgURL,position,border,sizing,opacity,delayDisplay){var div=OpenLayers.Util.createDiv();var img=OpenLayers.Util.createImage(null,null,null,null,null,null,null,false);div.appendChild(img);if(delayDisplay){img.style.display="none";OpenLayers.Event.observe(img,"load",OpenLayers.Util.onImageLoad.bindAsEventListener(div));OpenLayers.Event.observe(img,"error",OpenLayers.Util.onImageLoadError.bindAsEventListener(div));} OpenLayers.Util.modifyAlphaImageDiv(div,id,px,sz,imgURL,position,border,sizing,opacity);return div;};OpenLayers.Util.upperCaseObject=function(object){var uObject=new Object();for(var key in object){uObject[key.toUpperCase()]=object[key];} return uObject;};OpenLayers.Util.applyDefaults=function(to,from){for(var key in from){if(to[key]==null){to[key]=from[key];}}};OpenLayers.Util.getParameterString=function(params){paramsArray=new Array();for(var key in params){var value=params[key];if((value!=null)&&(typeof value!='function')){var encodedValue;if(typeof value=='object'&&value.constructor==Array){var encodedItemArray=new Array();for(var itemIndex=0;itemIndex check out: http://transit.frumin.net/trx/test.php?lat=40.62413&lon=-73.95743&zoom=15&layers=B000TT in my subclass'd processXMLNode method, I pull some app-specific fields out of the return of the WFS request. clearly it 'works' because the data is used to generate the Icon that has the pictures. but why, in later functions such as createPopup, are this.data and this.pic undefined (see the alert()'s when u click on an icon/picture)? I am directly assigning this.pic in the processXMLNode function, and it doesn't stick. and this.data is used all over the place in the superclasses, why can't I see it? thanks, mike -- View this message in context: http://www.nabble.com/new-attributes-%28i.e.-this.whatever%29-dissappearing-for-WFS-subclass-tf3756365.html#a10616688 Sent from the OpenLayers Users mailing list archive at Nabble.com. From mfrumin at rpa.org Tue May 15 01:12:17 2007 From: mfrumin at rpa.org (mfrumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] no closebox in anchoredbubble popup from WFS-subclass'd feature Message-ID: <10616702.post@talk.nabble.com> see http://transit.frumin.net/trx/test.php?lat=40.62413&lon=-73.95743&zoom=15&layers=B000TT again. note when i create the popups I pass true as the last parameter, but still there is no closebox. this is unsweet. thanks, mike -- View this message in context: http://www.nabble.com/no-closebox-in-anchoredbubble-popup-from-WFS-subclass%27d-feature-tf3756367.html#a10616702 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue May 15 01:23:29 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace In-Reply-To: <10616661.post@talk.nabble.com> References: <10616661.post@talk.nabble.com> Message-ID: <20070515052329.GA29618@metacarta.com> On Mon, May 14, 2007 at 10:05:15PM -0700, mfrumin wrote: > > it is often useful to look at the code in the libraries to figure out how to > do do stuff. unfortunately, it lacks any sane whitespacing scheme, and is > impossible to peruse. eg (from > http://openlayers.org/api/2.4-rc3/OpenLayers.js or the OpenLayers.js that > comes in the download): The OpenLayers code is a set of 98 files, in the 'lib' directory of the distribution. What you are looking at is the 'compressed' version of the code -- due to the way browsers work, downloading those 98 files will take in excess of 60 seconds. Compressing it into one file saves those 60 seconds, making it more like 2 or 3. If you make a modification to the code in the 'lib' directory, then run the './build.py' script in the build directory, you will get the 'compressed' version you are looking at, suitable for deployment, rather than for readability. If you wish to modify code, you should *not* touch the compressed code, and instead edit what is in lib/ and run ./build.py. (The functionality of this script is described in http://trac.openlayers.org/wiki/Profiles .) Note that it is also possible to use the non-compressed code in your page, useful for debugging: just include lib/OpenLayers.js in your code directly. > does that look helpful to you? clean your stuff up, then maybe when we have > bugs we can possibly help report where they might be coming from. It's impolite to attack the project without taking the time to understand what's happening. I understand that our documentation is weak, but we do have this covered relatively well, and I've never had anyone ask this particular question before, so I'm not sure how we could have made it easier for you. Where should we link this description from so that you would have found it? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue May 15 01:27:11 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] new attributes (i.e. this.whatever) dissappearing for WFS subclass In-Reply-To: <10616688.post@talk.nabble.com> References: <10616688.post@talk.nabble.com> Message-ID: <20070515052711.GB29618@metacarta.com> On Mon, May 14, 2007 at 10:09:27PM -0700, mfrumin wrote: > > check out: > http://transit.frumin.net/trx/test.php?lat=40.62413&lon=-73.95743&zoom=15&layers=B000TT > > in my subclass'd processXMLNode method, I pull some app-specific fields out > of the return of the WFS request. clearly it 'works' because the data is > used to generate the Icon that has the pictures. > > but why, in later functions such as createPopup, are this.data and this.pic > undefined (see the alert()'s when u click on an icon/picture)? I am > directly assigning this.pic in the processXMLNode function, and it doesn't > stick. and this.data is used all over the place in the superclasses, why > can't I see it? You are misusing the 'register' call: You want the second argument to 'register' in your createMarker call to be 'this'. The second argument is the object which will be bound as 'this' -- you want to bind it to the feature (which has the 'this.pic' property set on it), rather than to the marker, which doesn't have any of your custom properties set. (if you need the marker, you can then do 'this.marker' inside createPopup. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue May 15 01:28:16 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] no closebox in anchoredbubble popup from WFS-subclass'd feature In-Reply-To: <10616702.post@talk.nabble.com> References: <10616702.post@talk.nabble.com> Message-ID: <20070515052816.GC29618@metacarta.com> On Mon, May 14, 2007 at 10:12:17PM -0700, mfrumin wrote: > > see > http://transit.frumin.net/trx/test.php?lat=40.62413&lon=-73.95743&zoom=15&layers=B000TT > again. note when i create the popups I pass true as the last parameter, but > still there is no closebox. this is unsweet. This is a known bug with a patch outstanding, and will be fixed before 2.4 is released. Regards, -- Christopher Schmidt MetaCarta From andy at hexten.net Tue May 15 05:11:25 2007 From: andy at hexten.net (Andy Armstrong) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace In-Reply-To: <10616661.post@talk.nabble.com> References: <10616661.post@talk.nabble.com> Message-ID: <478A6A7E-A698-4102-A972-393AF602593C@hexten.net> On 15 May 2007, at 06:05, mfrumin wrote: > does that look helpful to you? clean your stuff up, then maybe > when we have > bugs we can possibly help report where they might be coming from. Poor Mike :) -- Andy Armstrong, hexten.net From Terrence_A_Pietrondi at KeyBank.com Tue May 15 08:18:30 2007 From: Terrence_A_Pietrondi at KeyBank.com (Terrence_A_Pietrondi@KeyBank.com) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] NDFS Web Feature Service Message-ID: I have recently read that the NDFD is now hosting a Web Feature Service (http://www.weather.gov/forecasts/xml/OGC_services/). I wanted to know if anyone has had any success integrating this service with open layers, or any map for that matter and how they did so. Thanks. Terrence A. Pietrondi terrence_a_pietrondi@keybank.com ******************************************************************************* This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information. 127 Public Square, Cleveland, OH 44114 ******************************************************************************* If you prefer not to receive future e-mail offers for products or services from Key send an e-mail to DNERequests@key.com with 'No Promotional E-mails' in the SUBJECT line. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070515/127e1c6c/attachment.html From pagameba at gmail.com Tue May 15 08:53:09 2007 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace In-Reply-To: <10616661.post@talk.nabble.com> References: <10616661.post@talk.nabble.com> Message-ID: <5271F3EA-3E3E-4F6A-9285-5492BB6CE5A4@gmail.com> Mike, I think you should take about 5 extra seconds and actually look at the project before you start disrespecting it. I don't have a lot of patient or desire to help someone whose first communication with an Open Source project starts like this. So go do your homework and then come back and humbly apologize for rude and completely inaccurate statements Paul On 15-May-07, at 1:05 AM, mfrumin wrote: > does that look helpful to you? clean your stuff up, then maybe > when we have > bugs we can possibly help report where they might be coming from. > > thanks, > mike +-----------------------------------------------------------------+ |Paul Spencer pspencer@dmsolutions.ca | +-----------------------------------------------------------------+ |Chief Technology Officer | |DM Solutions Group Inc http://www.dmsolutions.ca/ | +-----------------------------------------------------------------+ From mfrumin at rpa.org Tue May 15 10:34:56 2007 From: mfrumin at rpa.org (Michael Frumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace In-Reply-To: <4EE429F44B.0EB0FF0DTFSHLBFZ@metacarta.com> References: <4EE429F44B.0EB0FF0DTFSHLBFZ@metacarta.com> Message-ID: <4649C510.6090704@rpa.org> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070515/74bbee8a/attachment.html From mfrumin at rpa.org Tue May 15 10:36:32 2007 From: mfrumin at rpa.org (Michael Frumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] no closebox in anchoredbubble popup from WFS-subclass'd feature In-Reply-To: <4EE42A6257.0EB0FF13TFSHLFKB@metacarta.com> References: <4EE42A6257.0EB0FF13TFSHLFKB@metacarta.com> Message-ID: <4649C570.4030007@rpa.org> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070515/fa1e2bfe/attachment.html From crschmidt at metacarta.com Tue May 15 11:02:20 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] no closebox in anchoredbubble popup from WFS-subclass'd feature In-Reply-To: <4649C570.4030007@rpa.org> References: <4EE42A6257.0EB0FF13TFSHLFKB@metacarta.com> <4649C570.4030007@rpa.org> Message-ID: <20070515150220.GA31766@metacarta.com> On Tue, May 15, 2007 at 10:36:32AM -0400, Michael Frumin wrote: > > > > > > > any sense of when that is supposed to be?  can you think of an easy > workaround for the time being, so that I can make my popups closeable > somehow?
Apply the patch locally and test it :) More testing == More Better! http://trac.openlayers.org/ticket/698 Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Tue May 15 14:51:43 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] no closebox in anchoredbubble popup from WFS-subclass'd feature In-Reply-To: <20070515150220.GA31766@metacarta.com> References: <4EE42A6257.0EB0FF13TFSHLFKB@metacarta.com> <4649C570.4030007@rpa.org> <20070515150220.GA31766@metacarta.com> Message-ID: <464A013F.5050907@swoodbridge.com> Micheal, Neat application. I just noticed that if you click on the thumb nail to open the pop-up, that clicking on it a second time will close it. -Steve Christopher Schmidt wrote: > On Tue, May 15, 2007 at 10:36:32AM -0400, Michael Frumin wrote: >> >> >> >> >> >> >> any sense of when that is supposed to be?  can you think of an easy >> workaround for the time being, so that I can make my popups closeable >> somehow?
> > Apply the patch locally and test it :) More testing == More Better! > > http://trac.openlayers.org/ticket/698 > > Regards, From mikequentel at yahoo.com Tue May 15 15:56:08 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] how to best extend drawing tools to include measure Message-ID: <819661.78384.qm@web32511.mail.mud.yahoo.com> I created a measure control (OpenLayers.Control.Measure) that uses a div (like the mouse position control) to display distance. So far, I have an example where the user can select a drawn line, and get back the total distance of the line. It employs the OpenLayers.Util.distVincenty function to calculate the distances of the components of the geometry, adding up the results. It also handles situations like the user attempting to measure the entire globe (handles situation if the pixel clicks exceed what they should for a hemisphere). This is still in its raw state, so if you see bugs, please let me know. The attached example seems to work well. Please, need advice...I would like to add this functionality to the drawing tools, such that when the user draws a line, the total distance is displayed in the measure control. I am not sure how to go about doing this. Would it be best to include this control in the OpenLayers.Handler.Path handler class? Attached is Measure.js, which represents OpenLayers.Control.Measure, as well as measure.html, to show an example. If you want to add this control to your OL directory tree..... The style.css would include the following: div.olControlMeasure { background-color: #FFFFFF; top: 30px; left: 400px; display: block; position: absolute; font-family: Arial; font-size: smaller; font-weight: bold; } The base OpenLayers class would need to include the Measure.js in its JS files array: var jsfiles=new Array( ... "OpenLayers/Control/Measure.js" ); ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html -------------- next part -------------- A non-text attachment was scrubbed... Name: =?utf-8?q?Measure.js?= Type: application/x-javascript Size: 3143 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070515/ecb837b8/utf-8qMeasure.js -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070515/ecb837b8/utf-8qmeasure.html From tlanglois at archetypecorp.com Tue May 15 16:17:22 2007 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] why is your code entirely lacking in whitespace In-Reply-To: <4649C510.6090704@rpa.org> References: <4EE429F44B.0EB0FF0DTFSHLBFZ@metacarta.com> <4649C510.6090704@rpa.org> Message-ID: <1179260243.3415.21.camel@langlap> There is always a silver lining. Because of this thread, I learned how to create the compressed js file :) Now, I can check that off my list of things to do :) On Tue, 2007-05-15 at 10:34 -0400, Michael Frumin wrote: > No, I'm just an idiot who still hasn't learned the lesson of going to > sleep when it's actually his bedtime. I had actually downloaded the > distribution and was looking for code with something like "find > OpenLayers-2.4-rc3/ | xargs grep Icon | grep new" which was yielding > bits of good code from lib/* in between masses of compressed code from > the OpenLayers.js files. > > Hasty as usual, so I hope everyone will accept my apology. I can only > hope to redeem myself by noting that I'll be publishing what I'm > working on as an example of how to subclass the WFS and do something > app-specific, in this case make a WFS layer for geocoded pictures, > where the icon is the picture itself. > > thanks, and sorry again, > mike > > crschmidt@metacarta.com wrote: > > On Mon, May 14, 2007 at 10:05:15PM -0700, mfrumin wrote: > > > > > > it is often useful to look at the code in the libraries to figure out how to > > > > > > > do do stuff. unfortunately, it lacks any sane whitespacing scheme, and is > > > impossible to peruse. eg (from > > > http://openlayers.org/api/2.4-rc3/OpenLayers.js or the OpenLayers.js that > > > comes in the download): > > > > > > > The OpenLayers code is a set of 98 files, in the 'lib' directory of the > > distribution. What you are looking at is the 'compressed' version of the > > code -- due to the way browsers work, downloading those 98 files will > > take in excess of 60 seconds. Compressing it into one file saves those > > 60 seconds, making it more like 2 or 3. > > > > If you make a modification to the code in the 'lib' directory, then run > > the './build.py' script in the build directory, you will get the > > 'compressed' version you are looking at, suitable for deployment, rather > > than for readability. If you wish to modify code, you should *not* touch > > the compressed code, and instead edit what is in lib/ and run > > ./build.py. (The functionality of this script is described in > > http://trac.openlayers.org/wiki/Profiles .) Note that it is also > > possible to use the non-compressed code in your page, useful for > > debugging: just include lib/OpenLayers.js in your code directly. > > > > > > > does that look helpful to you? clean your stuff up, then maybe when we have > > > bugs we can possibly help report where they might be coming from. > > > > > > > It's impolite to attack the project without taking the time to > > understand what's happening. I understand that our documentation is > > weak, but we do have this covered relatively well, and I've never had > > anyone ask this particular question before, so I'm not sure how we could > > have made it easier for you. Where should we link this description from > > so that you would have found it? > > > > Regards, > > -- Christopher Schmidt > > MetaCarta > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission. From simon at citysafe.org Wed May 16 07:02:28 2007 From: simon at citysafe.org (Simon Cantem) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Format.WKT.write method Message-ID: <16DFB10CD4D3C84A97A7ECB11015F8850A8DFB@server.citysafe.local> I've been playing with the Format.WKT class recently and just have a query with the write method. I'm using it to convert the vector elements to WKT so that I can then post the form and easily save it into PostgreSQL (with PostGIS). I've noticed that unlike the other Format classes, it expects a either a geometry object or an array of geometry objects, the other Format classes (eg Format.GML and Format.WFS) expect a features array. The disadvantage of this is that you can't just pass it the features property of the vector layer, and quickly convert it to WKT. I've made a change to my copy of /Format/WKT.js starting at line 67: if(isCollection) { if (i>0) { pieces.push(','); } geometry = collection[i].geometry; } else { geometry = collection[i]; } The check for "isCollection" is so that the WKT example still works. Is this a valid change or have I missed an easier way of doing this conversion? Thanks, Simon ------------------------------------------------------------------------ ------------------------ Simon Cantem System Administrator / Analyst Programmer CitySafe - www.citysafe.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070516/664d0c06/attachment.html From BCicconetti at dnr.state.md.us Wed May 16 12:50:23 2007 From: BCicconetti at dnr.state.md.us (Cicconetti, Bob) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] how to best extend drawing tools to includemeasure In-Reply-To: <819661.78384.qm@web32511.mail.mud.yahoo.com> Message-ID: <3CCE61578E85AB479D1E35EDB97F027982DB87@tawesmail1.LANGROUP.DNR.MD> What I've done is fairly similar, but use the much simpler getArea and getLength calls. My maps are set in State Plane Nad83m, and you may have to change a few things if you're in lat/lon. R C 1) First, extend the drawing controls div to allow for more buttons, and define the buttons. Copy or create new buttons in gimp/whatever. --- theme/default/style.css (revision 3151) +++ theme/default/style.css (working copy) @@ -108,7 +108,7 @@ float:right; right: 0px; height: 30px; - width: 200px; + width: 270px; } .olControlEditingToolbar div { float:right; @@ -148,3 +148,15 @@ background-image: url("img/draw_polygon_on.png"); background-repeat: no-repeat; } +.olControlEditingToolbar .olControlSelectFeatureItemInactive { + background-image: url("img/info_off.png"); +} +.olControlEditingToolbar .olControlSelectFeatureItemActive { + background-image: url("img/info_on.png"); +} +.olControlEditingToolbar .olControlDeleteFeatureItemInactive { + background-image: url("img/delete_off.png"); +} +.olControlEditingToolbar .olControlDeleteFeatureItemActive { + background-image: url("img/delete_on.png"); +} 2) Add this to my javascript: [...] // Extend the edit tool bar to allow deleting features, and gather // info about them. var selectTool = new OpenLayers.Control.SelectFeature(vlayer, { onSelect:feature_info, onUnselect:clear_feature_info }); var deleteTool = new OpenLayers.Control.SelectFeature(vlayer, { onSelect:deleteFeature, onUnselect:clear_feature_info }); var editToolBar = new OpenLayers.Control.EditingToolbar(vlayer); var myControls = [ selectTool, deleteTool ]; // Fun with gimp. Be sure to use patched style.css. myControls[0].displayClass = 'olControlSelectFeature'; myControls[1].displayClass = 'olControlDeleteFeature'; editToolBar.addControls(myControls); map.addControl(editToolBar); [...] function feature_info(feature) { //Extend to allow string length as well. if (feature.geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") { var str = feature.geometry.getArea(); // Assume units are meters, for now. // Magic numbers are evil, but ah well. var sqft = str / 0.09290304; var acres = str / 4046.856422; // FIXME: Round and truncate. 8 sig figs? if (sqft < 4000) str = "Area: (sq ft.) " + sqft; else str = "Area: (acres) " + acres; document.getElementById('area').innerHTML = str; } else if (feature.geometry.CLASS_NAME == "OpenLayers.Geometry.LineString") { var str = feature.geometry.getLength(); var feet = str / 0.3048; var miles = str / 1609.344; if (feet < 2000) str = "Length: (feet) " + feet; else str = "Length: (miles) " + miles; document.getElementById('area').innerHTML = str; } } function clear_feature_info(geometry) { document.getElementById('area').innerHTML = "Select Feature for Area or Length."; } function deleteFeature(geometry) { this.layer.removeFeatures(geometry); } > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > On Behalf Of Mike Quentel > Sent: Tuesday, May 15, 2007 3:56 PM > To: OpenLayers Users > Subject: [OpenLayers-Users] how to best extend drawing tools to > includemeasure > > I created a measure control (OpenLayers.Control.Measure) that uses a div > (like the mouse position control) to display distance. > > So far, I have an example where the user can select a drawn line, and get > back the total distance of the line. It employs the > OpenLayers.Util.distVincenty function to calculate the distances of the > components of the geometry, adding up the results. It also handles > situations like the user attempting to measure the entire globe (handles > situation if the pixel clicks exceed what they should for a hemisphere). > This is still in its raw state, so if you see bugs, please let me know. > The attached example seems to work well. > > Please, need advice...I would like to add this functionality to the > drawing tools, such that when the user draws a line, the total distance is > displayed in the measure control. I am not sure how to go about doing > this. Would it be best to include this control in the > OpenLayers.Handler.Path handler class? > > Attached is Measure.js, which represents OpenLayers.Control.Measure, as > well as measure.html, to show an example. > > If you want to add this control to your OL directory tree..... > > The style.css would include the following: > > div.olControlMeasure { > background-color: #FFFFFF; > top: 30px; > left: 400px; > display: block; > position: absolute; > font-family: Arial; > font-size: smaller; > font-weight: bold; > } > > The base OpenLayers class would need to include the Measure.js in its JS > files array: > > var jsfiles=new Array( > ... > "OpenLayers/Control/Measure.js" > ); > > > > > > > > > > ___________________________________________________________ > Yahoo! Mail is the world's favourite email. Don't settle for less, sign up > for > your free account today > http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07 .h > tml From mikequentel at yahoo.com Wed May 16 13:32:20 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] how to best extend drawing tools to includemeasure Message-ID: <489850.7907.qm@web32501.mail.mud.yahoo.com> Bob, Thanks very much for sharing your code and ideas. What I've done to add the distance measure functionality to a line drawing tool (in addition to the code I attached in my previous email) is the following: 1. I created another handler class called OpenLayers.Handler.MeasureTool, with essentially the same implementation as the Path.js, with a few modifications. 2. In MeasureTool, I added a class member representing the Measure control, as in: measure: null, 3. In MeasureTool, I overrided the setMap function of OpenLayers.Control, so that the class member measure is added to the map, as in: setMap: function() { OpenLayers.Control.prototype.setMap.apply(this, arguments); this.map.addControl(this.measure); }, 4. In the MeasureTool (which is almost identical to Path.js), I added the following to the drawGeometry function: drawGeometry: function() { this.layer.renderer.drawGeometry(this.line, this.style); this.layer.renderer.drawGeometry(this.point, this.style); // here is the call to the Measure control... this.measure.showDistance(this.line); }, Not clear what I'd have to do to change the functionality if I'm using WGS84, lat/lon. Doesn't the Vincenty formula work acceptably for lat/lon values? Many thanks for your help. Mike Quentel ----- Original Message ---- From: "Cicconetti, Bob" To: Mike Quentel ; OpenLayers Users Sent: Wednesday, 16 May, 2007 10:50:23 AM Subject: RE: [OpenLayers-Users] how to best extend drawing tools to includemeasure What I've done is fairly similar, but use the much simpler getArea and getLength calls. My maps are set in State Plane Nad83m, and you may have to change a few things if you're in lat/lon. R C 1) First, extend the drawing controls div to allow for more buttons, and define the buttons. Copy or create new buttons in gimp/whatever. --- theme/default/style.css (revision 3151) +++ theme/default/style.css (working copy) @@ -108,7 +108,7 @@ float:right; right: 0px; height: 30px; - width: 200px; + width: 270px; } .olControlEditingToolbar div { float:right; @@ -148,3 +148,15 @@ background-image: url("img/draw_polygon_on.png"); background-repeat: no-repeat; } +.olControlEditingToolbar .olControlSelectFeatureItemInactive { + background-image: url("img/info_off.png"); +} +.olControlEditingToolbar .olControlSelectFeatureItemActive { + background-image: url("img/info_on.png"); +} +.olControlEditingToolbar .olControlDeleteFeatureItemInactive { + background-image: url("img/delete_off.png"); +} +.olControlEditingToolbar .olControlDeleteFeatureItemActive { + background-image: url("img/delete_on.png"); +} 2) Add this to my javascript: [...] // Extend the edit tool bar to allow deleting features, and gather // info about them. var selectTool = new OpenLayers.Control.SelectFeature(vlayer, { onSelect:feature_info, onUnselect:clear_feature_info }); var deleteTool = new OpenLayers.Control.SelectFeature(vlayer, { onSelect:deleteFeature, onUnselect:clear_feature_info }); var editToolBar = new OpenLayers.Control.EditingToolbar(vlayer); var myControls = [ selectTool, deleteTool ]; // Fun with gimp. Be sure to use patched style.css. myControls[0].displayClass = 'olControlSelectFeature'; myControls[1].displayClass = 'olControlDeleteFeature'; editToolBar.addControls(myControls); map.addControl(editToolBar); [...] function feature_info(feature) { //Extend to allow string length as well. if (feature.geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") { var str = feature.geometry.getArea(); // Assume units are meters, for now. // Magic numbers are evil, but ah well. var sqft = str / 0.09290304; var acres = str / 4046.856422; // FIXME: Round and truncate. 8 sig figs? if (sqft < 4000) str = "Area: (sq ft.) " + sqft; else str = "Area: (acres) " + acres; document.getElementById('area').innerHTML = str; } else if (feature.geometry.CLASS_NAME == "OpenLayers.Geometry.LineString") { var str = feature.geometry.getLength(); var feet = str / 0.3048; var miles = str / 1609.344; if (feet < 2000) str = "Length: (feet) " + feet; else str = "Length: (miles) " + miles; document.getElementById('area').innerHTML = str; } } function clear_feature_info(geometry) { document.getElementById('area').innerHTML = "Select Feature for Area or Length."; } function deleteFeature(geometry) { this.layer.removeFeatures(geometry); } > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > On Behalf Of Mike Quentel > Sent: Tuesday, May 15, 2007 3:56 PM > To: OpenLayers Users > Subject: [OpenLayers-Users] how to best extend drawing tools to > includemeasure > > I created a measure control (OpenLayers.Control.Measure) that uses a div > (like the mouse position control) to display distance. > > So far, I have an example where the user can select a drawn line, and get > back the total distance of the line. It employs the > OpenLayers.Util.distVincenty function to calculate the distances of the > components of the geometry, adding up the results. It also handles > situations like the user attempting to measure the entire globe (handles > situation if the pixel clicks exceed what they should for a hemisphere). > This is still in its raw state, so if you see bugs, please let me know. > The attached example seems to work well. > > Please, need advice...I would like to add this functionality to the > drawing tools, such that when the user draws a line, the total distance is > displayed in the measure control. I am not sure how to go about doing > this. Would it be best to include this control in the > OpenLayers.Handler.Path handler class? > > Attached is Measure.js, which represents OpenLayers.Control.Measure, as > well as measure.html, to show an example. > > If you want to add this control to your OL directory tree..... > > The style.css would include the following: > > div.olControlMeasure { > background-color: #FFFFFF; > top: 30px; > left: 400px; > display: block; > position: absolute; > font-family: Arial; > font-size: smaller; > font-weight: bold; > } > > The base OpenLayers class would need to include the Measure.js in its JS > files array: > > var jsfiles=new Array( > ... > "OpenLayers/Control/Measure.js" > ); > > > > > > > > > > ___________________________________________________________ > Yahoo! Mail is the world's favourite email. Don't settle for less, sign up > for > your free account today > http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07 .h > tml ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk From noreply at geocartic.com Wed May 16 19:08:35 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Format.WKT.write method In-Reply-To: <16DFB10CD4D3C84A97A7ECB11015F8850A8DFB@server.citysafe.local> References: <16DFB10CD4D3C84A97A7ECB11015F8850A8DFB@server.citysafe.local> Message-ID: <464B8EF3.2040409@geocartic.com> Hey- Simon Cantem wrote: > ... I?ve noticed that unlike the other Format > classes, it expects a either a geometry object or an array of geometry > objects, the other Format classes (eg Format.GML and Format.WFS) expect > a features array. I agree. This is weird. Since WKT is about geometries (and doesn't have a place for feature attributes), I made it read and write geometries (in the OpenLayers sense). However, I agree that the serializer/deserializer should deal in features - since people should seldom be dealing with geometries (especially collections of geometry) in OpenLayers. I've created a ticket and patch that changes the behavior of the WKT format. If approved, wkt.read() will return a feature or array of features and wkt.write() will take a feature or array of features. Let me know what you think, Tim From simon at citysafe.org Thu May 17 05:32:30 2007 From: simon at citysafe.org (Simon Cantem) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Format.WKT.write method References: <16DFB10CD4D3C84A97A7ECB11015F8850A8DFB@server.citysafe.local> <464B8EF3.2040409@geocartic.com> Message-ID: <16DFB10CD4D3C84A97A7ECB11015F8850A8E08@server.citysafe.local> Hi Tim, Yep that's exactly what I was thinking, and the patch works great. Thanks, Simon -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Tim Schaub Sent: 17 May 2007 00:09 To: users@openlayers.org Subject: Re: [OpenLayers-Users] Format.WKT.write method Hey- Simon Cantem wrote: > ... I've noticed that unlike the other Format > classes, it expects a either a geometry object or an array of geometry > objects, the other Format classes (eg Format.GML and Format.WFS) expect > a features array. I agree. This is weird. Since WKT is about geometries (and doesn't have a place for feature attributes), I made it read and write geometries (in the OpenLayers sense). However, I agree that the serializer/deserializer should deal in features - since people should seldom be dealing with geometries (especially collections of geometry) in OpenLayers. I've created a ticket and patch that changes the behavior of the WKT format. If approved, wkt.read() will return a feature or array of features and wkt.write() will take a feature or array of features. Let me know what you think, Tim _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From bluecarto at gmail.com Thu May 17 13:07:53 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] how to best extend drawing tools to includemeasure In-Reply-To: <489850.7907.qm@web32501.mail.mud.yahoo.com> References: <489850.7907.qm@web32501.mail.mud.yahoo.com> Message-ID: I played around to get something working for your needs. This may be another way to get what you want. What I wanted to show is another way to get custom controls with less code. Though, it is surely not the best way. And you probably need to compute the distance in a different way than the simple getLength(). -------------------------------- var p = new OpenLayers.Control.Panel({'displayClass': 'olControlEditingToolbar'}); var distance = new OpenLayers.Control(); OpenLayers.Util.extend(distance, { geometry: null, draw: function() { this.geometry = new OpenLayers.Geometry.LineString(); this.handler = new OpenLayers.Handler.Path(distance, {"point": this.pointAdded, "done": this.geometryDone}); }, displayClass: 'olControlDrawFeaturePath', // should be something like olControlDistance pointAdded: function(point) { this.geometry.addPoint(point.clone()); $('distance').innerHTML = this.geometry.getLength(); } }); p.addControls([ new OpenLayers.Control.Navigation(), distance ]); map.addControl(p); p.activateControl(p.controls[0]); ------------------------------------ Regards Pierre On 5/16/07, Mike Quentel wrote: > Bob, > > Thanks very much for sharing your code and ideas. > > What I've done to add the distance measure functionality to a line drawing tool (in addition to the code I attached in my previous email) is the following: > > 1. I created another handler class called OpenLayers.Handler.MeasureTool, with essentially the same implementation as the Path.js, with a few modifications. > > 2. In MeasureTool, I added a class member representing the Measure control, as in: > > measure: null, > > 3. In MeasureTool, I overrided the setMap function of OpenLayers.Control, so that the class member measure is added to the map, as in: > > setMap: function() { > OpenLayers.Control.prototype.setMap.apply(this, arguments); > this.map.addControl(this.measure); > }, > > 4. In the MeasureTool (which is almost identical to Path.js), I added the following to the drawGeometry function: > > drawGeometry: function() { > this.layer.renderer.drawGeometry(this.line, this.style); > this.layer.renderer.drawGeometry(this.point, this.style); > > // here is the call to the Measure control... > this.measure.showDistance(this.line); > > }, > > Not clear what I'd have to do to change the functionality if I'm using WGS84, lat/lon. Doesn't the Vincenty formula work acceptably for lat/lon values? > > Many thanks for your help. > > Mike Quentel > > > ----- Original Message ---- > From: "Cicconetti, Bob" > To: Mike Quentel ; OpenLayers Users > Sent: Wednesday, 16 May, 2007 10:50:23 AM > Subject: RE: [OpenLayers-Users] how to best extend drawing tools to includemeasure > > What I've done is fairly similar, but use the much simpler getArea and > getLength calls. My maps are set in State Plane Nad83m, and you may have > to change a few things if you're in lat/lon. > > R C > > 1) First, extend the drawing controls div to allow for more buttons, and > define the buttons. Copy or create new buttons in gimp/whatever. > > --- theme/default/style.css (revision 3151) > +++ theme/default/style.css (working copy) > @@ -108,7 +108,7 @@ > float:right; > right: 0px; > height: 30px; > - width: 200px; > + width: 270px; > } > .olControlEditingToolbar div { > float:right; > @@ -148,3 +148,15 @@ > background-image: url("img/draw_polygon_on.png"); > background-repeat: no-repeat; > } > +.olControlEditingToolbar .olControlSelectFeatureItemInactive { > + background-image: url("img/info_off.png"); > +} > +.olControlEditingToolbar .olControlSelectFeatureItemActive { > + background-image: url("img/info_on.png"); > +} > +.olControlEditingToolbar .olControlDeleteFeatureItemInactive { > + background-image: url("img/delete_off.png"); > +} > +.olControlEditingToolbar .olControlDeleteFeatureItemActive { > + background-image: url("img/delete_on.png"); > +} > > 2) Add this to my javascript: > [...] > // Extend the edit tool bar to allow deleting features, and gather > // info about them. > var selectTool = new OpenLayers.Control.SelectFeature(vlayer, > { > onSelect:feature_info, > onUnselect:clear_feature_info > }); > > var deleteTool = new OpenLayers.Control.SelectFeature(vlayer, > { > onSelect:deleteFeature, > onUnselect:clear_feature_info > }); > > var editToolBar = new OpenLayers.Control.EditingToolbar(vlayer); > > var myControls = [ selectTool, deleteTool ]; > // Fun with gimp. Be sure to use patched style.css. > myControls[0].displayClass = 'olControlSelectFeature'; > myControls[1].displayClass = 'olControlDeleteFeature'; > > editToolBar.addControls(myControls); > map.addControl(editToolBar); > > [...] > > function feature_info(feature) { > //Extend to allow string length as well. > if (feature.geometry.CLASS_NAME == "OpenLayers.Geometry.Polygon") > { > > var str = feature.geometry.getArea(); > // Assume units are meters, for now. > // Magic numbers are evil, but ah well. > var sqft = str / 0.09290304; > var acres = str / 4046.856422; > > // FIXME: Round and truncate. 8 sig figs? > if (sqft < 4000) > str = "Area: (sq ft.) " + sqft; > else > str = "Area: (acres) " + acres; > > document.getElementById('area').innerHTML = str; > > } > else if (feature.geometry.CLASS_NAME == > "OpenLayers.Geometry.LineString") > { > var str = feature.geometry.getLength(); > var feet = str / 0.3048; > var miles = str / 1609.344; > > if (feet < 2000) > str = "Length: (feet) " + feet; > else > str = "Length: (miles) " + miles; > > document.getElementById('area').innerHTML = str; > } > > } > > function clear_feature_info(geometry) { > document.getElementById('area').innerHTML = "Select Feature for > Area or > Length."; > } > > function deleteFeature(geometry) { > this.layer.removeFeatures(geometry); > } > > > -----Original Message----- > > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] > > On Behalf Of Mike Quentel > > Sent: Tuesday, May 15, 2007 3:56 PM > > To: OpenLayers Users > > Subject: [OpenLayers-Users] how to best extend drawing tools to > > includemeasure > > > > I created a measure control (OpenLayers.Control.Measure) that uses a > div > > (like the mouse position control) to display distance. > > > > So far, I have an example where the user can select a drawn line, and > get > > back the total distance of the line. It employs the > > OpenLayers.Util.distVincenty function to calculate the distances of > the > > components of the geometry, adding up the results. It also handles > > situations like the user attempting to measure the entire globe > (handles > > situation if the pixel clicks exceed what they should for a > hemisphere). > > This is still in its raw state, so if you see bugs, please let me > know. > > The attached example seems to work well. > > > > Please, need advice...I would like to add this functionality to the > > drawing tools, such that when the user draws a line, the total > distance is > > displayed in the measure control. I am not sure how to go about doing > > this. Would it be best to include this control in the > > OpenLayers.Handler.Path handler class? > > > > Attached is Measure.js, which represents OpenLayers.Control.Measure, > as > > well as measure.html, to show an example. > > > > If you want to add this control to your OL directory tree..... > > > > The style.css would include the following: > > > > div.olControlMeasure { > > background-color: #FFFFFF; > > top: 30px; > > left: 400px; > > display: block; > > position: absolute; > > font-family: Arial; > > font-size: smaller; > > font-weight: bold; > > } > > > > The base OpenLayers class would need to include the Measure.js in its > JS > > files array: > > > > var jsfiles=new Array( > > ... > > "OpenLayers/Control/Measure.js" > > ); > > > > > > > > > > > > > > > > > > > > ___________________________________________________________ > > Yahoo! Mail is the world's favourite email. Don't settle for less, > sign up > > for > > your free account today > > > http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07 > .h > > tml > > > > > > > > > ___________________________________________________________ > New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. > http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From mikequentel at yahoo.com Thu May 17 14:05:14 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Message-ID: <294867.98472.qm@web32503.mail.mud.yahoo.com> I saw a post concerning how a WMS can be overlayed on Google Maps. I've experimented with WMS such as TerraServer, on the google.html example, like this: var wmsTerraServerLayer = new OpenLayers.Layer.WMS("TerraServer Topos", "http://terraserver.microsoft.com/ogcmap6.ashx", {layers: "DRG", format: "image/jpeg"}, {isBaseLayer: false}, {"buffer": 1}); I also saw the reply to http://openlayers.org/pipermail/users/2007-February/000756.html The reply mentions: "The WMS layer will automatically reproject, when using overlays, asking Google for the geographic location of tile corners, and then 'stretching' the WMS request to match". How does this work? Using TerraServer, I replicated the re-projection behaviour in the google.html example, then did a right click on the TerraServer image to see what the URL looks like: http://terraserver.microsoft.com/ogcmap6.ashx?LAYERS=DRG&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-112.5%2C37.71859%2C-90%2C53.330873&WIDTH=256&HEIGHT=256 The URL still reads EPSG: 4326, which is WGS84. Google Maps uses Mercator (54004). How is the TerraServer image being stretched? Is this something happening through Google? Please do explain. Thank you. Mike Quentel ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk From nick at hogweed.org Thu May 17 18:33:51 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Problem with calling default mouse down handler (2.4) Message-ID: <200705172333.51432.nick@hogweed.org> Hello everyone, I want to override a mouse down event on a map. Previously (in 2.2) I used code such as: function mouseDownHandler(e) { mouseIsDown = true; map.controls[0].defaultMouseDown(e); if(e.preventDefault) e.preventDefault(); return false; } However, now (2.4, trunk SVN version) I get the error: Error: map.controls[0].defaultMouseDown is not a function Source File: http://www.free-map.org.uk/freemap/javascript/vector/init.js Line: 195 What do I need to do now to call the default mouse down action? Thanks, Nick From Jeff.Yutzler at ionicenterprise.com Thu May 17 18:39:56 2007 From: Jeff.Yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Experience using OpenLayers Message-ID: <4D627E4BDD089D45842D8FE74D29BCD5064C54@server01.IONIC.local> I've spent some time over the last couple of weeks evaluating OpenLayers v2.3 as a web mapping client and I have a series of observations. First of all, a little about our architecture. We have a J2EE web application built on top of IONIC's Red Spider Enterprise API. We also have a web mapping client built on top of OpenLayers. In between we have an AJAX/JSON conduit between the two. This works well for us because the Enterprise API supports all of the OGC capabilities we need, things like Web Map Context, Web Feature Server, and Catalog. Besides, the idea of using an open proxy is not palatable for many of our customers for security reasons. Since we can take advantage of all of our OGC capabilities through the Enterprise API, we do all of that work on the web application side and pass the relevant bits to the client via AJAX/JSON. For us, the trivial use case is allowing the user to load a Web Map Context, add, remove, reorder, and configure WMS/WFS layers and do WMS GetFeatureInfo/WFS GetFeature requests to see the data underlying the layers. We were able to do most of these things with OpenLayers almost directly out of the box and we are pretty excited about that. The most interesting use case we have developed on top of OpenLayers to this point is the following: * an Oracle database is being populated in real time by an external process with feature / location data of moving features * We have a Web Map Context that we load into OpenLayers containing: o some base map o a WMS layer representing the current location of the features in the database o a WMS layer representing past locations of the features in the database. This layer supports temporal extents so we can see the feature tracks for a fixed length of time (this length is called feature decay) o a layer (extending OpenLayers.Layers.Markups) that contains feature information for the features currently on the screen (we cap the number of features so that it doesn't get unwieldy). We put invisible markups on the screen that the users can click on to find out feature details. * The user configures the map refresh rate and the feature decay. As the map refreshes, features start moving around the map. * The user can activate "chase mode" whereby the map recenters itself to where the chased feature is right now whenever it updates. The biggest problem we have with OpenLayers is the way image updates are handled. The main thing that attracted us to OpenLayers is the way the map scrolls smoothly when the user pans around. The screen does not turn blank and since adjacent tiles are already downloaded, updates are fast. Unfortunately, this only applies when the user moves laterally, not when specific tiles need to be redrawn. In our use case above, the map refreshes can take a few seconds depending on the amount of data involved and the speed of the server and it looks pretty lame when the layer disappears while it is reloading. We know it is possible to keep the old tile image in place, load the new image on top, then remove the old image when the new one is done loading, but I don't see any reference to this concept in the trac ticketing system. We would be interested in seeing this in a future release and would consider developing it ourselves if necessary. My next step in development is to support WFS-T. We are reluctant to try out 2.4RC3, but maybe it is time. We are also interested in multi-line, multi-polygon, and inner ring support. We've implemented this capability in other web clients so we know it can be done here. I see this is on the road map for 2.5. Since we have full WFS-T support via Red Spider Enterprise, this work should go quickly. The most annoying thing I had to do was provide something more capable than the default Layer Switcher. Before working with OpenLayers, we built a client from scratch on top of YUI so we had a lot of controls already built. Unfortunately, the YUI event model and the Prototype-based event model are like oil and water. I could not use the drag and drop ability from YUI because the Layer Switcher was eating the mouse up events before they could reach the
  • that was being dragged. Because of this, it would not stop dragging reliably. Ack! I ended up replacing the Layer Switcher completely with our own thing which is not awful, but it is so different it would not fit into your code base at all. By the way, is there an example for using the measurement tool? I don't see one anywhere. I see it in the code but I figure I would want to see an example of using it before I add it to our own client. Oh, and on the forum debate, I recommend not having a separate forum. However, I do suggest you publicize the link to Nabble a little more. I spent a lot of time blindly looking through the mail archives before I spotted it. I hope this is helpful to you. Regards, Jeff Yutzler -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070517/5b1b303b/attachment.html From crschmidt at metacarta.com Thu May 17 22:25:09 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Experience using OpenLayers In-Reply-To: <4D627E4BDD089D45842D8FE74D29BCD5064C54@server01.IONIC.local> References: <4D627E4BDD089D45842D8FE74D29BCD5064C54@server01.IONIC.local> Message-ID: <20070518022509.GA14455@metacarta.com> On Thu, May 17, 2007 at 06:39:56PM -0400, Jeff Yutzler wrote: > I've spent some time over the last couple of weeks evaluating > OpenLayers v2.3 as a web mapping client and I have a series of > observations. > > First of all, a little about our architecture. We have a J2EE web > application built on top of IONIC's Red Spider Enterprise API. We > also have a web mapping client built on top of OpenLayers. In between > we have an AJAX/JSON conduit between the two. This works well for us > because the Enterprise API supports all of the OGC capabilities we > need, things like Web Map Context, Web Feature Server, and Catalog. > Besides, the idea of using an open proxy is not palatable for many of > our customers for security reasons. Since we can take advantage of > all of our OGC capabilities through the Enterprise API, we do all of > that work on the web application side and pass the relevant bits to > the client via AJAX/JSON. Note that if the data you expose via JSOn is not public-to-the-whole-web, using JSON as a workaround as a 'solution' for the same origin policy may be dangerous. I mention this only because it's something that I didn't realize for a long time :) > For us, the trivial use case is allowing the user to load a Web Map > Context, add, remove, reorder, and configure WMS/WFS layers and do WMS > GetFeatureInfo/WFS GetFeature requests to see the data underlying the > layers. We were able to do most of these things with OpenLayers > almost directly out of the box and we are pretty excited about that. That's great to hear! > * an Oracle database is being populated in real time by an > external process with feature / location data of moving features > * We have a Web Map Context that we load into OpenLayers containing: > o some base map > o a WMS layer representing the current location of the features > in the database > o a WMS layer representing past locations of the features in > the database. This layer supports temporal extents so we > can see the feature tracks for a fixed length of time (this > length is called feature decay) > o a layer (extending OpenLayers.Layers.Markups) that > contains feature information for the features currently on > the screen (we cap the number of features so that it doesn't > get unwieldy). We put invisible markups on the screen that > the users can click on to find out feature details. > * The user configures the map refresh rate and the feature decay. > As the map refreshes, features start moving around the map. > * The user can activate "chase mode" whereby the map recenters > itself to where the chased feature is right now whenever it > updates. Any possibility of a demo URL for this? Even if it's with faked data, it would be interesting to see how OpenLayers can be used 'for real' -- I'm much more a cartogrpaher than a 'GIS' person. > The biggest problem we have with OpenLayers is the way image updates > are handled. The main thing that attracted us to OpenLayers is the > way the map scrolls smoothly when the user pans around. The screen > does not turn blank and since adjacent tiles are already downloaded, > updates are fast. Unfortunately, this only applies when the user > moves laterally, not when specific tiles need to be redrawn. In our > use case above, the map refreshes can take a few seconds depending on > the amount of data involved and the speed of the server and it looks > pretty lame when the layer disappears while it is reloading. We know > it is possible to keep the old tile image in place, load the new image > on top, then remove the old image when the new one is done loading, > but I don't see any reference to this concept in the trac ticketing > system. We would be interested in seeing this in a future release and > would consider developing it ourselves if necessary. When you say 'update', I assume you mean 'mergeNewParams'. There are some things that can be done in this regard -- the biggest problem is that right now, there's not a difference between 'move this tile' (which has to hide the old one so that spain doesn't end up in brazil) and 'change properties of this tile other than geo' which is a case where you don't want to hide the tile first. If you open a ticket for this, I can add more discussion there -- it's a feature that people have fumbled for the lack of, but not one that's been pushed high up on a priority list by existing users. > My next step in development is to support WFS-T. We are reluctant to > try out 2.4RC3, but maybe it is time. We are also interested in > multi-line, multi-polygon, and inner ring support. We've implemented > this capability in other web clients so we know it can be done here. > I see this is on the road map for 2.5. Since we have full WFS-T > support via Red Spider Enterprise, this work should go quickly. 2.4RC3 is a relatively complete release. With the exception of a few minor bugs (georss serialization, for example), I expect very few differences between RC3 and RC4, and it seems possible that RC4 will be the final release. An OpenLayers release doesn't make it to RC stage without a significant amount of testing, both automated and non-automated, so the RCs are pretty low risk. Multi-line, multi-polygon, and inner ring support exists in the format parsers. The place where it doesn't exist yet is in the UI for feature creation, but if you have existing data, it can be displayed. This doesn't sound like it will solve all of your use cases, but it will at least allow you to visualize the content even if you can't do everything you want with it. > The most annoying thing I had to do was provide something more capable > than the default Layer Switcher. Before working with OpenLayers, we > built a client from scratch on top of YUI so we had a lot of controls > already built. Unfortunately, the YUI event model and the > Prototype-based event model are like oil and water. I could not use > the drag and drop ability from YUI because the Layer Switcher was > eating the mouse up events before they could reach the
  • that was > being dragged. Because of this, it would not stop dragging reliably. > Ack! I ended up replacing the Layer Switcher completely with our own > thing which is not awful, but it is so different it would not fit into > your code base at all. Hm, it's unfortunate to hear that there is a major problem here. I'd like to work to resolve what that problem is, though I'd also like to go on a 6 month sojourn through the Rocky Mountains, and given current time constaints in my daily life, it seems that both are equally likely :) Still, it seems that if there is a significant problem using OpenLayers with other event frameworks, we have a bug, and I'd like to see it fixed. > By the way, is there an example for using the measurement tool? I > don't see one anywhere. I see it in the code but I figure I would > want to see an example of using it before I add it to our own client. Any measurement tool in the current code (possibly in MouseToolbar?) is out of date, and it is hoped that a more competent replacement will exist for 2.5. > Oh, and on the forum debate, I recommend not having a separate forum. > However, I do suggest you publicize the link to Nabble a little more. > I spent a lot of time blindly looking through the mail archives before > I spotted it. Any suggestions on where to put this? I know most things by URL, so an outsider point of view on this aspect of the project would be useful. Thanks for the feedback! Regards, -- Christopher Schmidt MetaCarta From gstamp at gmail.com Fri May 18 01:15:36 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Browser support for 2.4 Message-ID: Hi... just wondering what browsers will be supported for the 2.4 release. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070518/4fc3a68c/attachment.html From bluecarto at gmail.com Fri May 18 02:15:42 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Problem with calling default mouse down handler (2.4) In-Reply-To: <200705172333.51432.nick@hogweed.org> References: <200705172333.51432.nick@hogweed.org> Message-ID: If you are currently using the 2.4 version I advice you to have a look at examples/click.html That way you'll be able to register a "click" event on the map and do anything you with a callback. However, you might prefer to have no default controls activated on the map (http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowdoImakeanOpenLayersmapwithoutanycontrols) and then create yours by creating a control that inherits from OpenLayers.Control or extends it (examples/custom-controls.html). I'm not sure this answers your questions but I hope this helps. Regards Pierre On 5/18/07, Nick Whitelegg wrote: > Hello everyone, > > I want to override a mouse down event on a map. Previously (in 2.2) I used > code such as: > > > function mouseDownHandler(e) > { > > mouseIsDown = true; > map.controls[0].defaultMouseDown(e); > if(e.preventDefault) > e.preventDefault(); > return false; > } > > However, now (2.4, trunk SVN version) I get the error: > > Error: map.controls[0].defaultMouseDown is not a function > Source File: http://www.free-map.org.uk/freemap/javascript/vector/init.js > Line: 195 > > What do I need to do now to call the default mouse down action? > > Thanks, > Nick > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bluecarto at gmail.com Fri May 18 02:37:51 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Problem with calling default mouse down handler (2.4) In-Reply-To: References: <200705172333.51432.nick@hogweed.org> Message-ID: I'm sorry, I think I answered too quickly. Having a look at your code, and in the OpenLayers one, I found that the defaultMouseDown method still exists for some controls. In your current implementation (http://www.free-map.org.uk/freemap/), with firebug you can test "map.controls[0].defaultMouseDown()" and that works. But, you have to notice that not all controls implement the defaultMouseDown method (for example permalink). Probably in your case the map first control doesn't. Can you explain more precisely what behavior you want to handle with this ? Regards On 5/18/07, Pierre GIRAUD wrote: > If you are currently using the 2.4 version I advice you to have a look > at examples/click.html > That way you'll be able to register a "click" event on the map and do > anything you with a callback. > > However, you might prefer to have no default controls activated on the > map (http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowdoImakeanOpenLayersmapwithoutanycontrols) > and then create yours by creating a control that inherits from > OpenLayers.Control or extends it (examples/custom-controls.html). > > I'm not sure this answers your questions but I hope this helps. > > Regards > > Pierre > > On 5/18/07, Nick Whitelegg wrote: > > Hello everyone, > > > > I want to override a mouse down event on a map. Previously (in 2.2) I used > > code such as: > > > > > > function mouseDownHandler(e) > > { > > > > mouseIsDown = true; > > map.controls[0].defaultMouseDown(e); > > if(e.preventDefault) > > e.preventDefault(); > > return false; > > } > > > > However, now (2.4, trunk SVN version) I get the error: > > > > Error: map.controls[0].defaultMouseDown is not a function > > Source File: http://www.free-map.org.uk/freemap/javascript/vector/init.js > > Line: 195 > > > > What do I need to do now to call the default mouse down action? > > > > Thanks, > > Nick > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > From robe.dnd at cityofboston.gov Fri May 18 07:32:42 2007 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> I have a map that displays a Mapserver WMS of Abandoned property points and when the user clicks on a red dot, it queries the WFS service to get the detail of that section and overlays the WFS points as an extra layer. In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems a bit skewed off the mark. Am I doing something wrong or is this a known issue. I'm using the OpenLayers version in CVS. Below is the link to my map. http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx Thanks, Regina ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070518/84845ff5/attachment.html From olivier.terral at geomatys.fr Fri May 18 07:55:54 2007 From: olivier.terral at geomatys.fr (olivier.terral) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] [Mapbuilder-users] Why there is some offset between mouseclick point and the cross? In-Reply-To: References: Message-ID: <464D944A.8050106@geomatys.fr> Hi Alex, It's an OpenLayers (opensource project, mapbuilder use it for rendering) issue so I permit me to send this mail to the openlayers users list. Probably , they are in a best position to resolve this problem. Bye Alex Chew a ?crit : > I don't know why there is such an offset between mouse click point and > the cross or the rectangle. Zoomin,zoomout,dragpan and query are all > fall in this. It looks like the cross and rectangle is drawn with a > fixed x offset added(some value about 400px). It always on the right > of the correct positon it should be. > > I checked my config file, but still puzzled with this. > please help. > > Alex > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Mapbuilder-users mailing list > Mapbuilder-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > From woodbri at swoodbridge.com Fri May 18 09:07:08 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> Message-ID: <464DA4FC.90202@swoodbridge.com> Obe, Regina wrote: > > I have a map that displays a Mapserver WMS of Abandoned property points > and when the user clicks on a red dot, it queries the WFS service to get > the detail of that section and overlays the WFS points as an extra layer. > > In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems > a bit skewed off the mark. Am I doing something wrong or is this a > known issue. > > I'm using the OpenLayers version in CVS. > > Below is the link to my map. > > http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx > > Thanks, > Regina Your dots are off in firefox directly proportional to the distance north/south of the center of the map image. The farther you are from the centerline the farther off the point is from the correct place. Don't know if this helps, but it is a pattern the might hint as to what is happening. -Steve From crschmidt at metacarta.com Fri May 18 09:14:46 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Browser support for 2.4 In-Reply-To: References: Message-ID: <20070518131446.GA16853@metacarta.com> On Fri, May 18, 2007 at 03:15:36PM +1000, Glen Stampoultzis wrote: > Hi... just wondering what browsers will be supported for the 2.4 release. What functionality? The same browser support that we've always maintained -- Safari 1.3, Safari 2.0, IE6, IE7, FF2 (and probablay less), Opera9 (and probably less) are the ones I run through the tests in when I can get my hands on machines with those versions. The release notes explain limitations in support for vectors, specifically, the latest OS X Safari doesn't support SVG, so it has no vectors (download Webkit nightlies if you want them), IE doesn't have the XML Serializing tools needed for WFS-T, etc. Are you looking for something more specific than that? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri May 18 09:21:17 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> Message-ID: <20070518132117.GB16853@metacarta.com> On Fri, May 18, 2007 at 07:32:42AM -0400, Obe, Regina wrote: > I have a map that displays a Mapserver WMS of Abandoned property points > and when the user clicks on a red dot, it queries the WFS service to get > the detail of that section and overlays the WFS points as an extra > layer. > > In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems > a bit skewed off the mark. Am I doing something wrong or is this a > known issue. > > I'm using the OpenLayers version in CVS. > > Below is the link to my map. > > http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx The short answer is "You can't do that", unfortunately. Using the commercial layers as a base layer for WFS is not something that works in 2.4. WE're currently working on a couple of different solutions for this to be brought in after 2.4. Since you're in Massachusetts, depending on the type of information you're interested in from the maps, you may have o ther options for mapping -- the boston freemap, http://boston.freemap.in/ , offers decent quality road maps and supports a number of different projections, so you could use that as a base map instead. (I can help with that if need be.) If it's important to you to use commercial base layers, I have a branch of OpenLayers which will work in FF with the commercial base layers, however, I haven't yet made the neccesary changes to to the VML layer. So, you have a couple options: * Pursue using a WMS-basemap, via the Boston Freemap, or directly from MassGIS. (I can help with this.) * Wait for future developments which allow this usage. * Investigate using the SVG branch I talked about -- this one probably only makes sense if you have someone skilled in Javascript that you can talk to (whether that's you or someone else). I'm sorry for any inconvenience this may cause. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri May 18 09:22:56 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] [Mapbuilder-users] Why there is some offset between mouseclick point and the cross? In-Reply-To: <464D944A.8050106@geomatys.fr> References: <464D944A.8050106@geomatys.fr> Message-ID: <20070518132256.GC16853@metacarta.com> On Fri, May 18, 2007 at 01:55:54PM +0200, olivier.terral wrote: > Alex Chew a ?crit : > > I don't know why there is such an offset between mouse click point and > > the cross or the rectangle. Zoomin,zoomout,dragpan and query are all > > fall in this. It looks like the cross and rectangle is drawn with a > > fixed x offset added(some value about 400px). It always on the right > > of the correct positon it should be. > > > > I checked my config file, but still puzzled with this. > > please help. > Hi Alex, > > It's an OpenLayers (opensource project, mapbuilder use it for rendering) > issue so I permit me to send this mail to the openlayers users list. > Probably , they are in a best position to resolve this problem. I need more context. A URL, an HTML snippet, something. If you think it's an OpenLayers problem, please explain why -- I don't see it in any of the demos, but I also don't have enough context to know why. Regards, -- Christopher Schmidt MetaCarta From neitz-david at zai.com Fri May 18 09:23:30 2007 From: neitz-david at zai.com (Neitz, David) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS w/Google like Behavior Message-ID: <6308A50BEE83C844BEEF5CCB34969545A30358@danube.rivers.zai.com> Rather than spend an inordinate amount of time trying to figure this out, I decided to post this question to see if anyone has a resolution: Is it possible to get the wrap like functionality that you see in the google example with a WMS layer. The WMS server that I wrote understands how to deliver images across the International dateline. I'd like to be able to show maps that have the International Dateline as the center point on the map. Thanks for the assistance. Dave Neitz From crschmidt at metacarta.com Fri May 18 09:25:27 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS w/Google like Behavior In-Reply-To: <6308A50BEE83C844BEEF5CCB34969545A30358@danube.rivers.zai.com> References: <6308A50BEE83C844BEEF5CCB34969545A30358@danube.rivers.zai.com> Message-ID: <20070518132527.GA16935@metacarta.com> On Fri, May 18, 2007 at 09:23:30AM -0400, Neitz, David wrote: > > Rather than spend an inordinate amount of time trying to figure this out, I decided to post this question to see if anyone has a resolution: > > Is it possible to get the wrap like functionality that you see in the google example with a WMS layer. The WMS server that I wrote understands how to deliver images across the International dateline. I'd like to be able to show maps that have the International Dateline as the center point on the map. No. Keep an eye on http://trac.openlayers.org/ticket/487 for future developments in that regard. (Or to offer a patch!) Regards, -- Christopher Schmidt MetaCarta From robe.dnd at cityofboston.gov Fri May 18 09:34:30 2007 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox References: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob> <20070518132117.GB16853@metacarta.com> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D201979EE3@ZDND.DND.boston.cob> Chris, No problem. I just wanted to make sure I wasn't missing anything. I'll pursue using the other WMS layers. If it would help for me to test out the FF branch you have, I would be happy to do so. Thanks for a great product, Regina ________________________________ From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Fri 5/18/2007 9:21 AM To: Obe, Regina Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox On Fri, May 18, 2007 at 07:32:42AM -0400, Obe, Regina wrote: > I have a map that displays a Mapserver WMS of Abandoned property points > and when the user clicks on a red dot, it queries the WFS service to get > the detail of that section and overlays the WFS points as an extra > layer. > > In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems > a bit skewed off the mark. Am I doing something wrong or is this a > known issue. > > I'm using the OpenLayers version in CVS. > > Below is the link to my map. > > http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx The short answer is "You can't do that", unfortunately. Using the commercial layers as a base layer for WFS is not something that works in 2.4. WE're currently working on a couple of different solutions for this to be brought in after 2.4. Since you're in Massachusetts, depending on the type of information you're interested in from the maps, you may have o ther options for mapping -- the boston freemap, http://boston.freemap.in/ , offers decent quality road maps and supports a number of different projections, so you could use that as a base map instead. (I can help with that if need be.) If it's important to you to use commercial base layers, I have a branch of OpenLayers which will work in FF with the commercial base layers, however, I haven't yet made the neccesary changes to to the VML layer. So, you have a couple options: * Pursue using a WMS-basemap, via the Boston Freemap, or directly from MassGIS. (I can help with this.) * Wait for future developments which allow this usage. * Investigate using the SVG branch I talked about -- this one probably only makes sense if you have someone skilled in Javascript that you can talk to (whether that's you or someone else). I'm sorry for any inconvenience this may cause. Regards, -- Christopher Schmidt MetaCarta ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070518/d95066d5/attachment.html From jeff.yutzler at ionicenterprise.com Fri May 18 10:25:35 2007 From: jeff.yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Experience using OpenLayers In-Reply-To: <20070518022509.GA14455@metacarta.com> References: <4D627E4BDD089D45842D8FE74D29BCD5064C54@server01.IONIC.local> <20070518022509.GA14455@metacarta.com> Message-ID: <464DB75F.6080508@ionicenterprise.com> responses inline... Christopher Schmidt wrote: > On Thu, May 17, 2007 at 06:39:56PM -0400, Jeff Yutzler wrote: > >> ...tracking demonstration... >> > > Any possibility of a demo URL for this? Even if it's with faked data, it > would be interesting to see how OpenLayers can be used 'for real' -- I'm > much more a cartogrpaher than a 'GIS' person. > > The problem here is we don't currently have a convenient way leave all of the component pieces up and running perpetually. However, if this changes, we will post it. In the short term, it is more likely that we will generate a movie of the demonstration once I clean it up a little. Is that something you would want access to? >> The biggest problem we have with OpenLayers is the way image updates >> are handled. > When you say 'update', I assume you mean 'mergeNewParams'. > > Yes, 'mergeNewParams', in this case to update the TIME dimension of the WMS request. I will open a ticket. >> My next step in development is to support WFS-T. We are reluctant to >> try out 2.4RC3, but maybe it is time. We are also interested in >> multi-line, multi-polygon, and inner ring support. We've implemented >> this capability in other web clients so we know it can be done here. >> I see this is on the road map for 2.5. Since we have full WFS-T >> support via Red Spider Enterprise, this work should go quickly. >> > > 2.4RC3 is a relatively complete release. With the exception of a few > minor bugs (georss serialization, for example), I expect very few > differences between RC3 and RC4, and it seems possible that RC4 will be > the final release. An OpenLayers release doesn't make it to RC stage > without a significant amount of testing, both automated and > non-automated, so the RCs are pretty low risk. > OK, we'll take a look at 2.4RC3. > Multi-line, multi-polygon, and inner ring support exists in the format > parsers. The place where it doesn't exist yet is in the UI for feature > creation, but if you have existing data, it can be displayed. This > doesn't sound like it will solve all of your use cases, but it will at > least allow you to visualize the content even if you can't do everything > you want with it. > > We don't care about the format parsers because we handle all of that including rendering WFS layers as images through the Enterprise API. Well, that is not completely true, if the user selects a feature, we would want that rendered through OpenLayers. For us though, the easy part is the actual WFS-T transaction and the hard part is the digitizing and editing. Over the next few days, I will evaluate what OpenLayers does out of the box and figure out where to go from there. I know Chris Holmes has some ideas so we might be able to collaborate. >> The most annoying thing I had to do was provide something more capable >> than the default Layer Switcher...Unfortunately, the YUI event model and the >> Prototype-based event model are like oil and water. >> > > Hm, it's unfortunate to hear that there is a major problem here. I'd > like to work to resolve what that problem is, though I'd also like to go > on a 6 month sojourn through the Rocky Mountains, and given current time > constaints in my daily life, it seems that both are equally likely :) > Still, it seems that if there is a significant problem using OpenLayers > with other event frameworks, we have a bug, and I'd like to see it > fixed. > > Over the next week I will open a ticket and provide some sort of constrained use case. This isn't a bug - it is working exactly as designed. However, I was unable to come up with a design that would allow me to do what I wanted. Maybe someone more clever from that standpoint can come up with the right technique. >> Oh, and on the forum debate, I recommend not having a separate forum. >> However, I do suggest you publicize the link to Nabble a little more. >> I spent a lot of time blindly looking through the mail archives before >> I spotted it. >> > > Any suggestions on where to put this? I know most things by URL, so an > outsider point of view on this aspect of the project would be useful. > > How about here: http://openlayers.org/mailman/listinfo If that is not possible, perhaps here under "Social": http://trac.openlayers.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: jeff.yutzler.vcf Type: text/x-vcard Size: 331 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070518/84119690/jeff.yutzler.vcf From noreply at geocartic.com Fri May 18 11:52:14 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS w/Google like Behavior In-Reply-To: <6308A50BEE83C844BEEF5CCB34969545A30358@danube.rivers.zai.com> References: <6308A50BEE83C844BEEF5CCB34969545A30358@danube.rivers.zai.com> Message-ID: <464DCBAE.9030003@geocartic.com> Hello- Neitz, David wrote: > The WMS server that I wrote understands how to deliver images across the International dateline. I'm interested to hear more about this. Specifically, I'd like to see what a BBOX looks like for a tile that crosses the dateline. Since you mention the dateline, I assume you're working in EPSG:4326. If that is the case, let's imagine a tile that is centered on the dateline and spans 20 degrees in width/height. I imagine your BBOX might look like one of the following: 1) BBOX=-190,-10,-170,10 -or- 2) BBOX=170,-10,-170,10 The first option requires that your server knows that -190 really means 170 (degrees east). This looks the most reasonable to me because it is unambiguous (in terms of being able to calculate width from the BBOX). However, it is a request that will only work with custom WMS setups that can make this -190 to 170 translation, can render the tile in two pieces and merge the result (or something similar). The second option is madness. There is no way of knowing if the request is for a tile that crosses the dateline once or fifty times (no easy way to calculate the width of the request in map units). I don't think either of these options is particularly nice. It seems that the only general way to handle this is to have the client do one of two things: 1) allow for arbitrary tile sizes/grid origins and hide tiles or potions of tiles that cross the dateline 2) only allow for fixed tile sizes, zoom levels, and grid origins Also, since Google is mentioned here, it is worth talking about the differences between Google Maps and OpenLayers. Google can "wrap" the dateline because it decided ahead of time what the lattice of tiles should look like. At every zoom level, there are an integer number of tiles that fit perfectly between one edge of the world and the other. Google uses a Mercator projection and crops things so that at zoom 0 there is 1 tile covering (most of) the earth. At zoom 1, there are 4 tiles. Etc. If you want to serve up data in EPSG:4326 that does something similar, you might start out at 2 tiles covering the earth (each 180 x 180 degrees). Eight tiles at the next zoom level. Etc. So, if you were to create a custom layer in OpenLayers that would wrap the dateline, you could choose one of those two projections (or any other), and your resulting lattice of tiles would be different depending on your choice - keeping in mind that one will never overlay on the other. Interested to hear more thoughts. Tim I'd like to be able to show maps that have the International Dateline as the center point on the map. > > Thanks for the assistance. > > Dave Neitz > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From noreply at geocartic.com Fri May 18 12:48:03 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Experience using OpenLayers In-Reply-To: <464DB75F.6080508@ionicenterprise.com> References: <4D627E4BDD089D45842D8FE74D29BCD5064C54@server01.IONIC.local> <20070518022509.GA14455@metacarta.com> <464DB75F.6080508@ionicenterprise.com> Message-ID: <464DD8C3.7020200@geocartic.com> Hey- Jeff Yutzler wrote: > ... the hard part is the digitizing > and editing. Over the next few days, I will evaluate what OpenLayers > does out of the box and figure out where to go from there. I know Chris > Holmes has some ideas so we might be able to collaborate. We've only added very basic digitizing tools for the 2.4 release. If you saw the old vector branch examples, you'll know that there is potential for a lot more functionality. I've started piecing together some additional digitizing controls - and am hoping to find time to flesh these out for the next release. Keep in mind that these are small building blocks - they will be assembled to create a rich editing environment. See a couple examples: http://dev.openlayers.org/sandbox/tschaub/feature/examples/drag-feature.html http://dev.openlayers.org/sandbox/tschaub/feature/examples/modify-feature.html Plenty of issues with these still, but they will be resolved. Tim From noreply at geocartic.com Fri May 18 13:20:43 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? In-Reply-To: <294867.98472.qm@web32503.mail.mud.yahoo.com> References: <294867.98472.qm@web32503.mail.mud.yahoo.com> Message-ID: <464DE06B.8050901@geocartic.com> Hey- Mike Quentel wrote: > I saw a post concerning how a WMS can be overlayed on Google Maps. If you haven't figured this one out yet, here's an alternative: If you can configure your servers or you can find data that is served up in Mercator, you can overlay any type of layer over Google with the (still experimental) GoogleMercator layer. Since Google's data is projected in Mercator, it makes sense to me to treat it that way. The Google maps API obscures this by transforming to coordinates to EPSG:4326 (longlat/WGS84). This is handy for people who think in Lon/Lat, but it confuses things if you assume the imagery is projected in EPSG:4326. So, if you let OpenLayers stay in Mercator and transform requests to the Google layer, you can overlay any layer in the same projection on top of Google's tiles - this is true for WMS, WFS, tiled, untiled, any vector data, etc. The one requirement is that your data is served in Mercator as well. If you can deal with Mercator, you'll get better performance letting the servers do the projecting. You also get the ability to cache image tiles server side. Just another option to add to your quiver. See http://dev.openlayers.org/sandbox/tschaub/google/examples/google-mercator.html This assumes the following: # World Mercator <54004> +proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs <> Tim From mikequentel at yahoo.com Fri May 18 13:48:20 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Message-ID: <462407.97888.qm@web32511.mail.mud.yahoo.com> Tim, Thank you for the suggestions. Some of the external WMS that my application attempts to pull in are in WGS84. I see the suggestion of storing our data in Mercator. Not sure if this would work for our architecture, though I see what you are saying about the possibility of improving performance with Google. What I was hoping to understand is: how is Google Maps stretching the overlays? Also, I'm hoping to find what Google class and method controls this. Anyone that can explain this to me, I'd greatly appreciate it. Sorry if this is something very obvious, but I don't understand what is happening in Google Maps that allows the WMS overlay to be stretched onto the Google base layer. So the explanation might need to be dumbed down into layman's terms for me to understand. Many thanks. Mike Quentel ----- Original Message ---- From: Tim Schaub To: OpenLayers Users Sent: Friday, 18 May, 2007 11:20:43 AM Subject: Re: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Hey- Mike Quentel wrote: > I saw a post concerning how a WMS can be overlayed on Google Maps. If you haven't figured this one out yet, here's an alternative: If you can configure your servers or you can find data that is served up in Mercator, you can overlay any type of layer over Google with the (still experimental) GoogleMercator layer. Since Google's data is projected in Mercator, it makes sense to me to treat it that way. The Google maps API obscures this by transforming to coordinates to EPSG:4326 (longlat/WGS84). This is handy for people who think in Lon/Lat, but it confuses things if you assume the imagery is projected in EPSG:4326. So, if you let OpenLayers stay in Mercator and transform requests to the Google layer, you can overlay any layer in the same projection on top of Google's tiles - this is true for WMS, WFS, tiled, untiled, any vector data, etc. The one requirement is that your data is served in Mercator as well. If you can deal with Mercator, you'll get better performance letting the servers do the projecting. You also get the ability to cache image tiles server side. Just another option to add to your quiver. See http://dev.openlayers.org/sandbox/tschaub/google/examples/google-mercator.html This assumes the following: # World Mercator <54004> +proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs <> Tim _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk From mfrumin at rpa.org Sun May 20 16:46:56 2007 From: mfrumin at rpa.org (mfrumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] IE bug in 2.4 rc3 Message-ID: <10709878.post@talk.nabble.com> still working on my pictures-from-wfs example. testing in IE (6), getting a bunch of errors in the OpenLayers libs: http://transit.frumin.net/trx/debug.html (note this includes a local version of OL so that when debugging I can look at the readable non-compressed code) the error is "htmfile: unspecified error" in OpenLayers/Renderer/VML.js line 50 but it's workin great in firefox, so thanks!! -- View this message in context: http://www.nabble.com/IE-bug-in-2.4-rc3-tf3787106.html#a10709878 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Sun May 20 17:11:16 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] IE bug in 2.4 rc3 In-Reply-To: <10709878.post@talk.nabble.com> References: <10709878.post@talk.nabble.com> Message-ID: <20070520211116.GA2720@metacarta.com> On Sun, May 20, 2007 at 01:46:56PM -0700, mfrumin wrote: > > still working on my pictures-from-wfs example. testing in IE (6), getting a > bunch of errors in the OpenLayers libs: > http://transit.frumin.net/trx/debug.html > (note this includes a local version of OL so that when debugging I can look > at the readable non-compressed code) > > the error is "htmfile: unspecified error" in OpenLayers/Renderer/VML.js line > 50 Move your map initialization into an onload call, instead of loading it in a defer='defer' in the body of the page. (Moving it into the head of the page might work as well.) Line 50 of the VML.js is checking whether document.namespaces exists (because we can't set up VML unless it does), and it doesn't exist until the page is fully loaded. Regards, -- Christopher Schmidt MetaCarta From mfrumin at rpa.org Sun May 20 18:05:56 2007 From: mfrumin at rpa.org (Michael Frumin) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] IE bug in 2.4 rc3 In-Reply-To: <4EE713CEAB.0EB01068TFSSDFGJ@metacarta.com> References: <4EE713CEAB.0EB01068TFSSDFGJ@metacarta.com> Message-ID: <4650C644.504@rpa.org> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070520/15386ef7/attachment.html From fmsd91 at hotmail.com Sun May 20 19:20:15 2007 From: fmsd91 at hotmail.com (Francisco Domingues) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Transparency in IE Message-ID: Hello all! I have a wms point layer on my map that has opacity/transparency on Firefox but in IE it shows no transparency. Here is the variable of the wms point layer: var cities_wms = new OpenLayers.Layer.WMS( "Cities", "http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?", {layers: "cities", transparent: 'true', format: "image/png"}, {visibility:false},options); Should I include something more for transparency on IE? Thanks in advance, Francisco Domingues _________________________________________________________________ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com From seymore_glass2000 at yahoo.com Sun May 20 19:33:23 2007 From: seymore_glass2000 at yahoo.com (Seymore Glass) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Question about WFS-T In-Reply-To: <20070511222710.GA13966@metacarta.com> Message-ID: <670616.26938.qm@web54606.mail.re2.yahoo.com> Christopher: Thanks for the fast response. I looked at what you suggested, but unfortunately, I am not very familiar with configuring apache. Could you please provide a little more information on how you set up mod_proxy to point to GeoServer? It would be greatly appreciated. Thanks again, Tony Christopher Schmidt wrote: On Fri, May 11, 2007 at 12:48:57PM -0700, Seymore Glass wrote: > Dear List: > > I have been trying to modify the wfs-scribble.html file (in the vector2.4 version of OpenLayers in the sandbox) to work with data on my server (served from GeoServer 1.4.1). The GET requests work great, but I am having a problem with the POST. The proper request is built, but when it is sent to the server via the proxy.cgi file, I get a server error as the response(Apache 2.0.49 - 500 Internal Server Error). I am using python 2.4 to run the cgi file. proxy.cgi doesn't do POST. OpenLayers doesn't have an example proxy that does. In the past, I've configured this by setting up mod_proxy to point to GeoServer in a relative URL: http://openlayers.org/dev/examples/wfs-scribble.html now works again in this mechanism. (My GeoServer died some time ago -- I just restarted it.) Regards, -- Christopher Schmidt MetaCarta Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join Yahoo!'s user panel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070520/711e9144/attachment.html From penyaskito at gmail.com Sun May 20 19:33:57 2007 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Transparency in IE In-Reply-To: References: Message-ID: Use format: "image/gif" instead of png. Hope this helps. On 5/21/07, Francisco Domingues wrote: > > Hello all! > I have a wms point layer on my map that has opacity/transparency on Firefox > but in IE it shows no transparency. Here is the variable of the wms point > layer: > > var cities_wms = new OpenLayers.Layer.WMS( > "Cities", "http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?", {layers: "cities", > transparent: 'true', format: "image/png"}, {visibility:false},options); > > Should I include something more for transparency on IE? > Thanks in advance, > > Francisco Domingues > > _________________________________________________________________ > MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Regards, Christian L?pez Esp?nola From fmsd91 at hotmail.com Sun May 20 19:44:21 2007 From: fmsd91 at hotmail.com (Francisco Domingues) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Transparency in IE In-Reply-To: Message-ID: Thanks a lot! It worked fine... I found now that my refresh buttom is not working good. It gaves me a error debugging. Its only a buttom that reload the page and not the tiles and the map. There is any option to refresh only the map or the layer tiles so I clean the problems? Now the code buttom is like this: And the buttom is placed inside a
    like this: Thanks in advance, Francisco Domingues >From: "Christian L??pez Esp??nola" >To: "Francisco Domingues" >CC: users@openlayers.org >Subject: Re: [OpenLayers-Users] Transparency in IE >Date: Mon, 21 May 2007 01:33:57 +0200 > >Use format: "image/gif" instead of png. >Hope this helps. > >On 5/21/07, Francisco Domingues wrote: >> >>Hello all! >>I have a wms point layer on my map that has opacity/transparency on >>Firefox >>but in IE it shows no transparency. Here is the variable of the wms point >>layer: >> >>var cities_wms = new OpenLayers.Layer.WMS( >>"Cities", "http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?", {layers: >>"cities", >>transparent: 'true', format: "image/png"}, {visibility:false},options); >> >>Should I include something more for transparency on IE? >>Thanks in advance, >> >>Francisco Domingues >> >>_________________________________________________________________ >>MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com >> >>_______________________________________________ >>Users mailing list >>Users@openlayers.org >>http://openlayers.org/mailman/listinfo/users >> > > >-- >Regards, > >Christian L??pez Esp??nola _________________________________________________________________ MSN Busca: f?cil, r?pido, direto ao ponto. http://search.msn.com.br From gstamp at gmail.com Sun May 20 22:38:48 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Browser support for 2.4 In-Reply-To: <20070518131446.GA16853@metacarta.com> References: <20070518131446.GA16853@metacarta.com> Message-ID: That's basically the information that I was after - thank you. The vector thing was particularly important to me as I wanted to be able to plot a route on a map. Given that SVG isn't supported on Safari I was thinking that manually creating transparent tiles with the route on them might be the way to go for Safari. Does this seem like a reasonable approach or can you use something like the Canvas.js for doing this? Regards, Glen On 18/05/07, Christopher Schmidt wrote: > > On Fri, May 18, 2007 at 03:15:36PM +1000, Glen Stampoultzis wrote: > > Hi... just wondering what browsers will be supported for the 2.4release. > > What functionality? The same browser support that we've always > maintained -- Safari 1.3, Safari 2.0, IE6, IE7, FF2 (and probablay less), > Opera9 (and probably less) are the ones I run through the tests in when > I can get my hands on machines with those versions. > > The release notes explain limitations in support for vectors, > specifically, the latest OS X Safari doesn't support SVG, so it has no > vectors (download Webkit nightlies if you want them), IE doesn't have > the XML Serializing tools needed for WFS-T, etc. > > Are you looking for something more specific than that? > > Regards, > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070521/1f7ed14f/attachment.html From olivier.terral at geomatys.fr Mon May 21 03:49:13 2007 From: olivier.terral at geomatys.fr (olivier.terral) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] [Mapbuilder-users] Why there is some offset between mouseclick point and the cross? In-Reply-To: <20070518132256.GC16853@metacarta.com> References: <464D944A.8050106@geomatys.fr> <20070518132256.GC16853@metacarta.com> Message-ID: <46514EF9.1090004@geomatys.fr> Christopher Schmidt a ?crit : > On Fri, May 18, 2007 at 01:55:54PM +0200, olivier.terral wrote: > >> Alex Chew a ?crit : >> >>> I don't know why there is such an offset between mouse click point and >>> the cross or the rectangle. Zoomin,zoomout,dragpan and query are all >>> fall in this. It looks like the cross and rectangle is drawn with a >>> fixed x offset added(some value about 400px). It always on the right >>> of the correct positon it should be. >>> >>> I checked my config file, but still puzzled with this. >>> please help. >>> >> Hi Alex, >> >> It's an OpenLayers (opensource project, mapbuilder use it for rendering) >> issue so I permit me to send this mail to the openlayers users list. >> Probably , they are in a best position to resolve this problem. >> > > I need more context. A URL, an HTML snippet, something. If you think > it's an OpenLayers problem, please explain why -- I don't see it in any > of the demos, but I also don't have enough context to know why. > > Regards, > Hi http://www.openlayers.org/dev/examples/controls.html In this demo when you draw an aoi for zoom in, you click on the map and move the mouse, and you can see the rectangle corner of aoi it is a little on the bottom-right of mouse cross center. I hope I'm clear. Bye From mikequentel at yahoo.com Mon May 21 18:20:12 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Message-ID: <294793.66555.qm@web32508.mail.mud.yahoo.com> This is what I've found. MetaCarta developers, please correct me if I'm wrong about this bit of reverse engineering... In OpenLayers.Layer.FixedZoomLevels, in the initResolutions method, there is a test for the existence of array RESOLUTIONS. OpenLayers.Layer.Google, MultiMap, VirtualEarth, and Yahoo all create and populate the array RESOLUTIONS. So, given the following code in FixedZoomLevels... if (this.RESOLUTIONS != null) { var resolutionsIndex = 0; this.resolutions = []; for(var i= this.minZoomLevel; i < this.numZoomLevels; i++) { this.resolutions[resolutionsIndex++] = this.RESOLUTIONS[i]; } } there is a test for this.RESOLUTIONS. If it exists, RESOLUTIONS is used to populate the layer's resolutions. If I turn on (make visible) a WMS layer in WGS84, the bounding box (BBOX) coordinates in lat/lon will be different than when the same WMS gets overlaid onto Google, at the same scale (in this test case 1:54k). e.g.: WMS, not on Google: &BBOX=-105.46873%2C39.726611%2C-105.380839%2C39.814501 WMS, overlaid on Google: &BBOX=-105.46875%2C39.744022%2C-105.380859%2C39.811569 Note that the EPSG value is the same in both request fragments above, i.e., EPSG: 4326. Having a brief look at the FixedZoomLevels code, it appears that the extent (in lat/lon), resolution, and map width (pixels) are being used to determine the appropriate zoom levels. MetaCarta, this correct? Am I missing something? Thank you. Mike Quentel ----- Original Message ---- From: Mike Quentel To: Tim Schaub ; OpenLayers Users Sent: Friday, 18 May, 2007 11:48:20 AM Subject: Re: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Tim, Thank you for the suggestions. Some of the external WMS that my application attempts to pull in are in WGS84. I see the suggestion of storing our data in Mercator. Not sure if this would work for our architecture, though I see what you are saying about the possibility of improving performance with Google. What I was hoping to understand is: how is Google Maps stretching the overlays? Also, I'm hoping to find what Google class and method controls this. Anyone that can explain this to me, I'd greatly appreciate it. Sorry if this is something very obvious, but I don't understand what is happening in Google Maps that allows the WMS overlay to be stretched onto the Google base layer. So the explanation might need to be dumbed down into layman's terms for me to understand. Many thanks. Mike Quentel ----- Original Message ---- From: Tim Schaub To: OpenLayers Users Sent: Friday, 18 May, 2007 11:20:43 AM Subject: Re: [OpenLayers-Users] WMS layers dynamically re-projected on to Google Maps base layer--how does this work? Hey- Mike Quentel wrote: > I saw a post concerning how a WMS can be overlayed on Google Maps. If you haven't figured this one out yet, here's an alternative: If you can configure your servers or you can find data that is served up in Mercator, you can overlay any type of layer over Google with the (still experimental) GoogleMercator layer. Since Google's data is projected in Mercator, it makes sense to me to treat it that way. The Google maps API obscures this by transforming to coordinates to EPSG:4326 (longlat/WGS84). This is handy for people who think in Lon/Lat, but it confuses things if you assume the imagery is projected in EPSG:4326. So, if you let OpenLayers stay in Mercator and transform requests to the Google layer, you can overlay any layer in the same projection on top of Google's tiles - this is true for WMS, WFS, tiled, untiled, any vector data, etc. The one requirement is that your data is served in Mercator as well. If you can deal with Mercator, you'll get better performance letting the servers do the projecting. You also get the ability to cache image tiles server side. Just another option to add to your quiver. See http://dev.openlayers.org/sandbox/tschaub/google/examples/google-mercator.html This assumes the following: # World Mercator <54004> +proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs <> Tim _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From f.husson at brgm.fr Tue May 22 04:15:54 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Error with wfs-t (in wfs-scribble demo) Message-ID: <4044C732AA0FB847B32A199C8AEBEB650106C194@RES005.brgm.fr> Hello, I installed geoserver 1.5 and openlayers 2.3 war-files on Tomcat. I want to test the "wfs-scribble demo" to save my feature with geoserver, but I have this following error when I click on "Save" : WFS-TRANSACTION : FAILED The stack trace in Tomcat is : org.vfny.wfs.responses.WfsTransactionException : org.xml.sax.SAXException : Could not find featureType with name line, and uri : http://www.openplans.org/topp What is the problem ? I have change nothing in the war files... Thanks, Florian. ********************************************************************************************** Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) expressément désigné(s) comme tel(s). En cas de réception de ce mél par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifié à l'émission du message. Il convient néanmoins de vérifier l'absence de contamination à sa réception. The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070522/581a23d7/attachment.html From crschmidt at metacarta.com Tue May 22 07:04:11 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Error with wfs-t (in wfs-scribble demo) In-Reply-To: <4044C732AA0FB847B32A199C8AEBEB650106C194@RES005.brgm.fr> References: <4044C732AA0FB847B32A199C8AEBEB650106C194@RES005.brgm.fr> Message-ID: <20070522110411.GA10102@metacarta.com> On Tue, May 22, 2007 at 10:15:54AM +0200, Husson Florian wrote: > Hello, > > I installed geoserver 1.5 and openlayers 2.3 war-files on Tomcat. > > I want to test the "wfs-scribble demo" to save my feature with > geoserver, but I have this following error when I click on "Save" : > > WFS-TRANSACTION : FAILED > > The stack trace in Tomcat is : > > org.vfny.wfs.responses.WfsTransactionException : > org.xml.sax.SAXException : Could not find featureType with name line, > and uri : http://www.openplans.org/topp > > > What is the problem ? I have change nothing in the war files... The 'line' layer is not a default in GeoServer. You need to configure it. You can browse the admin interface to http://crschmidt.net:8080/geoserver/ , if that hlps you figure out how to set it up, but in general, configuration of GeoServer is beyond the scope of the OpenLayers mailing list (since I have no idea how to do it -- it took a lot of stumbling before I got it working in the first place). Maybe someone else can be more helpful. Regards, -- Christopher Schmidt MetaCarta From m.spring at gmx.de Tue May 22 11:38:47 2007 From: m.spring at gmx.de (Markus Spring) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Rendering/Requesting order of layers Message-ID: <46530E87.1090808@gemelli.local> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, at the moment I am working on a bicycle routing application where OL does the rendering part. public beta: http://mx004.mdeport.de/cgi-bin/Radlrouting (german only, but to test just put some letters in the start/ziel input fields and press enter) I have the background map as my base layer (through ka-map) and the dynamically generated route as an overlay. As the rendering of the baselayer can get pretty slow, at the current configuration the user (especially on a telephone line) is left with a slowly updating map where the route is drawn *last*. Is there any possibility to give an earlier feedback about the route to the user, like drawing the route first and the basemap afterwards, and then putting the route on top again, so having the baselayer sandwiched between the routes? Or do I have to make the route the baselayer and the background map the transparent overlay? Any advice is welcome. Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGUw6HxxUzQSse11ARAjv6AJ0aQf7oge2z2kWo7szZRnSVusEtQQCeLrdm V4eyahf83/dWLn34dcEt3MI= =31Tl -----END PGP SIGNATURE----- From gregor at hostgis.com Tue May 22 12:41:00 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Does this map work under Mac/Firefox? Message-ID: <46531D1C.9010404@hostgis.com> A co-worker says that the map doesn't work at all under Firefox on a Mac. He says that he gets a message to the effect that a script is unresponsive or being slow. (which I know from Flash but not JS) I can't verify this behavior myself, as my lab is all Windows PCs. Are any of you using Mac/Firefox, and able to hit up my map to verify whether it works? http://69.59.158.10/openlayers/ If not, are there known problems with Mac/Firefox or workarounds I should try? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at metacarta.com Tue May 22 12:55:24 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Does this map work under Mac/Firefox? In-Reply-To: <46531D1C.9010404@hostgis.com> References: <46531D1C.9010404@hostgis.com> Message-ID: <20070522165524.GA11665@metacarta.com> On Tue, May 22, 2007 at 10:41:00AM -0600, Gregor Mosheh wrote: > A co-worker says that the map doesn't work at all under Firefox on a > Mac. He says that he gets a message to the effect that a script is > unresponsive or being slow. (which I know from Flash but not JS) I can't > verify this behavior myself, as my lab is all Windows PCs. > > Are any of you using Mac/Firefox, and able to hit up my map to verify > whether it works? http://69.59.158.10/openlayers/ > > If not, are there known problems with Mac/Firefox or workarounds I > should try? Firefox on Mac tends to be about three to five times slower on complex Javascript tasks than Firefox on Windows. That said, I have no problem loading http://69.59.158.10/openlayers/ on my mac, and the code is far simpler than many of the more complex Javascript tasks I've performed on OpenLayers, none of which lead to problems with the 'unresponsive script' warning. I'd say that your coworker may want to look into his plugins, etc. to see what else might be causing his problem. Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Tue May 22 12:57:49 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Does this map work under Mac/Firefox? In-Reply-To: <20070522165524.GA11665@metacarta.com> References: <46531D1C.9010404@hostgis.com> <20070522165524.GA11665@metacarta.com> Message-ID: <4653210D.7090901@hostgis.com> > Firefox on Mac tends to be about three to five times slower on complex > Javascript tasks than Firefox on Windows. That said, I have no problem > loading http://69.59.158.10/openlayers/ on my mac Thanks a million, Mr Schmidt. That's exactly the sort of report I needed. You've saved me a long trip into town to borrow someone's computer. :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Eric.Lemoine at camptocamp.com Tue May 22 16:12:45 2007 From: Eric.Lemoine at camptocamp.com (Eric Lemoine) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] PanZoomBar issue Message-ID: <5ec103de0705221312kfa960b6y8e5ea1b78844d2c7@mail.gmail.com> Hi I've noticed a small issue with the PanZoomBar: if you hold the cursor and drop it either on + on - you actually still hold it and you can make it move by moving the mouse pointer over the map. This can be observed on . I'm using FF Linux. Shall I go ahead and open a ticket for this? Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com From cheung.jackey at gmail.com Tue May 22 21:29:32 2007 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Fw: unmatched edges in WMS(WMS-C) tiles Message-ID: <0FD30A3DFEDB4CE5871D8F554646F28E@jackey> Greetings! I'm setting up a map with MapServer + OpenLayers + Tilecache. There is a problem, as shown in the screen shot (http://www3.mapasia.com/jackout/e.png), edges of tiles don't match. I've tried the new "gutter" in OpenLayers, it works if I use only MapServer, but can't work with Tilecache. How can I fix this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070523/b31bd105/attachment.html From cheung.jackey at gmail.com Tue May 22 21:30:00 2007 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] unmatched edges in WMS(WMS-C) tiles Message-ID: <2F5BF583C256478C8BF31F767C740774@jackey> Greetings! I'm setting up a map with MapServer + OpenLayers + Tilecache. There is a problem, as shown in the screen shot (http://www3.mapasia.com/jackout/e.png), edges of tiles don't match. I've tried the new "gutter" in OpenLayers, it works if I use only MapServer, but can't work with Tilecache. How can I fix this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070523/4bf56207/attachment.html From crschmidt at metacarta.com Wed May 23 00:01:20 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Fw: unmatched edges in WMS(WMS-C) tiles In-Reply-To: <0FD30A3DFEDB4CE5871D8F554646F28E@jackey> References: <0FD30A3DFEDB4CE5871D8F554646F28E@jackey> Message-ID: <20070523040120.GA14454@metacarta.com> On Wed, May 23, 2007 at 09:29:32AM +0800, Jackey Cheung wrote: > Greetings! > > I'm setting up a map with MapServer + OpenLayers + Tilecache. > > There is a problem, as shown in the screen shot (http://www3.mapasia.com/jackout/e.png), edges of tiles don't match. I've tried the new "gutter" in OpenLayers, it works if I use only MapServer, but can't work with Tilecache. > > How can I fix this? metaTile=yes on the layer in your TileCache config. (Cool looking map.) Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Wed May 23 04:56:31 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Custome Layer Control Message-ID: Hello List, I?m trying to build my own layer manager control similar to LayerSwitcher but with extra controls and positioned outside of the map area. I can add a layer when indicated in an external control but am unsure how to deactivate the layer once selected by the user (not via layerSwitcher). Maybe someone has done this? Certainly it has been done inside the layerSwitcher control. I do not want to delve into the source code myself unless I have to. Hope someone can give me a quick soluition. Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070523/97765c99/attachment.html From crschmidt at metacarta.com Wed May 23 07:21:48 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Custome Layer Control In-Reply-To: References: Message-ID: <20070523112148.GA16538@metacarta.com> On Wed, May 23, 2007 at 06:56:31PM +1000, bradleyspencer wrote: > Maybe someone has done this? Certainly it has been done inside the > layerSwitcher control. I do not want to delve into the source code myself > unless I have to. As a developer, "I'd like to write my own code without having to read/understand the existing code" is a frustrating position to have someone take. We've spent a lot of time making the code easy to read/understand: for example, in the case of the LayerSwitcher, there's a 7 line function whose comment is: """ Cycles through the loaded data and base layer input arrays and makes the necessary calls to the Map object such that that the map's visual state corresponds to what the user has selected in the control """ Reading this function would lead you to the setVisibility function, which is well documented: http://dev.openlayers.org/docs/OpenLayers/Layer.html#setVisibility I understand that not everything is that simple, but looking at the code in this case would probably have been easier than sending the email. Keep this in mind as you develop, and don't be afraid to explore the existing code: We've designed it so that it is explorable, and it's a much better resource for how to do things than the mailing list will typically be. Regards, -- Christopher Schmidt MetaCarta From i83ks7q4 at googlemail.com Wed May 23 08:02:25 2007 From: i83ks7q4 at googlemail.com (B vG) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] scalebar Message-ID: In a message of February 14, Tim replied this: > >* for which release of OpenLayers is Tim's js/css scalebar planned? *> > Though the tickets are marked 2.5, I think these could make it into a > 2.4 release. I've got significant changes to the scale bar coming. > > Tim I'm wondering what the status currently is. After 3 months the ticket hasn't changed yet. I'm also curious about the 'significant changes'. Is there a SVN branch that I can find the latest scalebar code in? Will the latest version also take map projection in account (map scale needs to be adjusted with the latitude - or better: with the cosine of the latitude). When is version 2.4 planned to be released? Thanks, Bas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070523/623cd0d7/attachment.html From gregor at hostgis.com Wed May 23 12:10:49 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] label truncation Message-ID: <46546789.1070008@hostgis.com> Hi, all. I'm running afoul of one of the more-well-known problems of tiling: labels are being cut off. What is the recommended method to get around this? The obvious one seems to be metatiling, in order to reduce the number of borders; the other is to increase the tile size for the same reason. But those don't guarantee against a label somewhere being cut off; just a reduction in its frequency. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From tlanglois at archetypecorp.com Wed May 23 12:23:13 2007 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon Message-ID: <1179937394.3470.15.camel@langlap> Looks like security restrictions where preventing the old URL from working, so I thought I would resend this. I wrote a custom handler to draw an N-sided regular polygon by clicking and dragging a line to specify the radius. The polygon is drawn on mouse up. The number of sides is specified by the "sides" attribute. Here's an example. Click the polygon button in the toolbar in the upper right corner and click and drag to create the polygon. To change the sides, enter the number of sides you want and click submit. http://maps.terratrace.net/vmaptest.html The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission. -------------- next part -------------- /** * Handler to draw an N sided regular ploygon on the map. A point is drawn on mouse down, * a line is drawn on mouse move (representing the radius), and the polygon is drawn on mouse up. * Use the "sides" option to set the number of polygon sides. * * @class * @requires OpenLayers/Handler/Point.js * @requires OpenLayers/Geometry/Polygon.js */ OpenLayers.Handler.RegularPolygon = OpenLayers.Class.create(); OpenLayers.Handler.RegularPolygon.prototype = OpenLayers.Class.inherit(OpenLayers.Handler.Point, { /** * @type OpenLayers.Feature.Vector * @private */ line: null, /** * @type OpenLayers.Feature.Vector * @private */ regularPolygon: null, /** * The number of sides the polygon will have * @type int */ sides: 50, /** * @constructor * * @param {OpenLayers.Control} control * @param {Array} callbacks An object with a 'done' property whos value is * a function to be called when the path drawing is * finished. The callback should expect to recieve a * single argument, the polygon geometry. * If the callbacks object contains a 'point' * property, this function will be sent each point * as they are added. If the callbacks object contains * a 'cancel' property, this function will be called when * the handler is deactivated while drawing. The cancel * should expect to receive a geometry. * @param {Object} options */ initialize: function(control, callbacks, options) { OpenLayers.Handler.Point.prototype.initialize.apply(this, arguments); }, /** * Add temporary geometries */ createFeature: function() { this.line = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString()); this.point = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point()); this.regularPolygon = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon()); }, /** * Destroy temporary geometries */ destroyFeature: function() { this.line.destroy(); this.point.destroy(); this.regularPolygon.destroy(); this.line = null; this.regularPolygon = null; }, /** * Modify the existing geometry given the new point * */ modifyFeature: function() { var index = this.line.geometry.components.length - 1; this.line.geometry.components[index].x = this.point.geometry.x; this.line.geometry.components[index].y = this.point.geometry.y; }, /** * Render geometries on the temporary layer. */ drawFeature: function() { this.layer.drawFeature(this.line, this.style); this.layer.drawFeature(this.point, this.style); }, /** * Add point to geometry. Send the point index to override * the behavior of LinearRing that disregards adding duplicate points. */ addPoint: function() { this.line.geometry.addComponent(this.point.geometry.clone(), this.line.geometry.components.length); this.callback("point", [this.point.geometry]); }, /** * Return a clone of the relevant geometry. * * @type OpenLayers.Geometry.LineString */ geometryClone: function() { return this.regularPolygon.geometry.clone(); }, createRegularPolygon: function() { var pointList = []; // the radius is the length of the line segment var radius = this.line.geometry.getLength(); // draw the polygon, the center is the first point drawn at mousedown if (radius > 0) { var cenx = this.line.geometry.components[0].x; var ceny = this.line.geometry.components[0].y; var piNum = Math.PI * 2; var segments = piNum / this.sides; for (var a = 0; a < piNum; a += segments) { var x = cenx + radius * Math.sin(a); var y = ceny + radius * Math.cos(a); var newPoint = new OpenLayers.Geometry.Point(x,y); pointList.push(newPoint); } pointList.push(pointList[0]); var linearRing = new OpenLayers.Geometry.LinearRing(pointList); this.regularPolygon.geometry.addComponent(linearRing); } }, /** * Return the radius of the polygon * * @type int */ getRadius: function() { this.line.geometry.getLength(); }, /** * Handle mouse down. Add the starting (center) point of the polygon and render it * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mousedown: function(evt) { if(this.point == null) { this.createFeature(); } this.mouseDown = true; var lonlat = this.control.map.getLonLatFromPixel(evt.xy); this.point.geometry.x = lonlat.lon; this.point.geometry.y = lonlat.lat; this.addPoint(); this.drawFeature(); return true; }, /** * Handle mouse move. Adjust the geometry and redraw the line. * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mousemove: function (evt) { if ((this.line == null) || (this.line.geometry == null)) return true; if(this.line.geometry.components.length > 0) { var lonlat = this.map.getLonLatFromPixel(evt.xy); if (this.line.geometry.components.length == 1) { this.point = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point()); this.addPoint(); } this.point.geometry.x = lonlat.lon; this.point.geometry.y = lonlat.lat; this.modifyFeature(); this.drawFeature(); } return false; }, /** * Handle mouse up. Send the last point in the geometry to the control. If we * have a valid line segment (radius), then draw the polygon. * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mouseup: function (evt) { this.mouseDown = false; if (this.line.geometry.components.length == 2) { this.createRegularPolygon(); this.line.destroy(); } this.point.destroy(); this.line = null; this.point = null; this.finalize(); return false; }, /** @final @type String */ CLASS_NAME: "OpenLayers.Handler.RegularPolygon" }); From mikequentel at yahoo.com Wed May 23 12:25:02 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Custome Layer Control Message-ID: <990997.75563.qm@web32502.mail.mud.yahoo.com> Many thanks to MetaCarta for providing OL and maintaining the user list. OL is a great product. I will say this: I greatly appreciate the email response given to the question below, as I am trying to solve some issues related to overlaying WMS on Google Maps base layer (the extents keep moving eastward). The advice given helps to point me in the right direction. I know OL is an open source, BSD-licensed product; so I all the more appreciate whatever help anyone gives in advice. Unfortunately, when one is under pressure every week to produce noticeable results (thanks to the popularity of Agile XP), taking the time to reverse engineer an API can be a lot of extra work, so if someone has a quick answer to even an easy question, every little bit of help is greatly appreciated. Many thanks to anyone that responds to even the simplest question. I always appreciate anyone's attempt at helpful advice in this forum. Mike Quentel ----- Original Message ---- From: Christopher Schmidt To: bradleyspencer Cc: openlayers users Sent: Wednesday, 23 May, 2007 5:21:48 AM Subject: Re: [OpenLayers-Users] Custome Layer Control On Wed, May 23, 2007 at 06:56:31PM +1000, bradleyspencer wrote: > Maybe someone has done this? Certainly it has been done inside the > layerSwitcher control. I do not want to delve into the source code myself > unless I have to. As a developer, "I'd like to write my own code without having to read/understand the existing code" is a frustrating position to have someone take. We've spent a lot of time making the code easy to read/understand: for example, in the case of the LayerSwitcher, there's a 7 line function whose comment is: """ Cycles through the loaded data and base layer input arrays and makes the necessary calls to the Map object such that that the map's visual state corresponds to what the user has selected in the control """ Reading this function would lead you to the setVisibility function, which is well documented: http://dev.openlayers.org/docs/OpenLayers/Layer.html#setVisibility I understand that not everything is that simple, but looking at the code in this case would probably have been easier than sending the email. Keep this in mind as you develop, and don't be afraid to explore the existing code: We've designed it so that it is explorable, and it's a much better resource for how to do things than the mailing list will typically be. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html From crschmidt at metacarta.com Wed May 23 13:40:49 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] label truncation In-Reply-To: <46546789.1070008@hostgis.com> References: <46546789.1070008@hostgis.com> Message-ID: <20070523174049.GA18018@metacarta.com> On Wed, May 23, 2007 at 10:10:49AM -0600, Gregor Mosheh wrote: > Hi, all. > I'm running afoul of one of the more-well-known problems of tiling: > labels are being cut off. What is the recommended method to get around this? > > The obvious one seems to be metatiling, in order to reduce the number of > borders; the other is to increase the tile size for the same reason. But > those don't guarantee against a label somewhere being cut off; just a > reduction in its frequency. "PARTIALS OFF" This all depends entirely on your renderer. Mapnik doesn't have this problem so long as you draw your tiles with a buffer, because label placement is geographic. MapServer has "PARTIALS OFF", which turns off partial label drawing. Other tools may have other settings to turn off drawing of labels over tile boundaries. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed May 23 13:42:32 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon In-Reply-To: <1179937394.3470.15.camel@langlap> References: <1179937394.3470.15.camel@langlap> Message-ID: <20070523174232.GB18018@metacarta.com> On Wed, May 23, 2007 at 11:23:13AM -0500, Tim Langlois wrote: > Looks like security restrictions where preventing the old URL from > working, so I thought I would resend this. > > I wrote a custom handler to draw an N-sided regular polygon by clicking > and dragging a line to specify the radius. The polygon is drawn on > mouse up. The number of sides is specified by the "sides" attribute. > > Here's an example. Click the polygon button in the toolbar in the upper > right corner and click and drag to create the polygon. To change the > sides, enter the number of sides you want and click submit. > > http://maps.terratrace.net/vmaptest.html That's cool. Do you want to see this go into the main distribution? I'd like to see it added to a ticket, if you're willing to do that, since I think several groups of people have requested something similar. Regards, -- Christopher Schmidt MetaCarta From tlanglois at archetypecorp.com Wed May 23 14:22:44 2007 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon In-Reply-To: <20070523174232.GB18018@metacarta.com> References: <1179937394.3470.15.camel@langlap> <20070523174232.GB18018@metacarta.com> Message-ID: <1179944564.3470.25.camel@langlap> Yes, that would be great. In fact, I assumed since I extended from the OpenLayers API, and in keeping with the spirit of Open Source, I should make the code available. Thanks, Tim On Wed, 2007-05-23 at 13:42 -0400, Christopher Schmidt wrote: > On Wed, May 23, 2007 at 11:23:13AM -0500, Tim Langlois wrote: > > Looks like security restrictions where preventing the old URL from > > working, so I thought I would resend this. > > > > I wrote a custom handler to draw an N-sided regular polygon by clicking > > and dragging a line to specify the radius. The polygon is drawn on > > mouse up. The number of sides is specified by the "sides" attribute. > > > > Here's an example. Click the polygon button in the toolbar in the upper > > right corner and click and drag to create the polygon. To change the > > sides, enter the number of sides you want and click submit. > > > > http://maps.terratrace.net/vmaptest.html > > That's cool. Do you want to see this go into the main distribution? I'd > like to see it added to a ticket, if you're willing to do that, since I > think several groups of people have requested something similar. > > Regards, -- Tim Langlois Chief Software Architect Archetype, Inc. Office: 205.443.6555 tlanglois@archetypecorp.com The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission. From crschmidt at metacarta.com Wed May 23 14:33:29 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon In-Reply-To: <1179944564.3470.25.camel@langlap> References: <1179937394.3470.15.camel@langlap> <20070523174232.GB18018@metacarta.com> <1179944564.3470.25.camel@langlap> Message-ID: <20070523183329.GA18142@metacarta.com> On Wed, May 23, 2007 at 01:22:44PM -0500, Tim Langlois wrote: > Yes, that would be great. In fact, I assumed since I extended from the > OpenLayers API, and in keeping with the spirit of Open Source, I should > make the code available. If you could file a ticket/patch following the instructions on http://trac.openlayers.org/wiki/HowToContribute , that would be great: it's important to get an ICLA/CCLA for it to make sure it can go in. Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Wed May 23 14:56:55 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] label truncation In-Reply-To: <1179944470.2227.68.camel@wardrobe.dhs.org> References: <46546789.1070008@hostgis.com> <1179944470.2227.68.camel@wardrobe.dhs.org> Message-ID: <46548E77.2020803@hostgis.com> > What has worked for me was using TileCache with MetaTiles with > "PARTIALS OFF" in map file for Mapserver ( mention earlier by Chris), > using PARTIALS alone I had some discontinuities. D'oh! I knew that. I'll give that a try and not bother you again. :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From jeff.yutzler at ionicenterprise.com Wed May 23 16:19:37 2007 From: jeff.yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Vertical lines on WMS layer? In-Reply-To: References: Message-ID: <4654A1D9.7010902@ionicenterprise.com> When I set the following WMS layer into OpenLayers: map.addLayer(new OpenLayers.Layer.WMS( "IONIC Natural Earth WMS", "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: 'NATURALEARTH'})); I get behavior I have not seen anywhere else. At most scales, the layer looks fine. However, at 1:3M and 1:7M, white vertical lines appear at the tile boundaries. I suppose this is a defect in OpenLayers, but I'm not really even sure how to describe it. Any ideas? -------------- next part -------------- A non-text attachment was scrubbed... Name: jeff.yutzler.vcf Type: text/x-vcard Size: 331 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070523/956e19f5/jeff.yutzler.vcf From crschmidt at metacarta.com Wed May 23 16:55:39 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Vertical lines on WMS layer? In-Reply-To: <4654A1D9.7010902@ionicenterprise.com> References: <4654A1D9.7010902@ionicenterprise.com> Message-ID: <20070523205539.GA18688@metacarta.com> On Wed, May 23, 2007 at 04:19:37PM -0400, Jeff Yutzler wrote: > When I set the following WMS layer into OpenLayers: > > map.addLayer(new OpenLayers.Layer.WMS( "IONIC Natural Earth WMS", > "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: > 'NATURALEARTH'})); > > I get behavior I have not seen anywhere else. At most scales, the layer > looks fine. However, at 1:3M and 1:7M, white vertical lines appear at > the tile boundaries. I suppose this is a defect in OpenLayers, but I'm > not really even sure how to describe it. Any ideas? I doubt it's an OpenLayers defect. I expect that your WMS server is not coping so well. A way to test this would be to right click on an image, copy the URL, and put it in an HTML page with a red background. If you can see a white pixel along the edge of the tile, you're dealing with a problem on your WMS server. I just tried this with an empty HTML file: And I see a white line. So, go back to your WMS server, and get them to fix it :) Alternatively, use TileCache with metatiles. The buffer will hide this defect from you. Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Wed May 23 18:14:12 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Custome Layer Control In-Reply-To: <20070523112148.GA16538@metacarta.com> Message-ID: Ok I appreciate you at least responding to my question. I am not a trained OO programmer (just a hacker really) but I will try to muddle through this. Brad Spencer -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Wednesday, 23 May 2007 9:22 PM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] Custome Layer Control On Wed, May 23, 2007 at 06:56:31PM +1000, bradleyspencer wrote: > Maybe someone has done this? Certainly it has been done inside the > layerSwitcher control. I do not want to delve into the source code myself > unless I have to. As a developer, "I'd like to write my own code without having to read/understand the existing code" is a frustrating position to have someone take. We've spent a lot of time making the code easy to read/understand: for example, in the case of the LayerSwitcher, there's a 7 line function whose comment is: """ Cycles through the loaded data and base layer input arrays and makes the necessary calls to the Map object such that that the map's visual state corresponds to what the user has selected in the control """ Reading this function would lead you to the setVisibility function, which is well documented: http://dev.openlayers.org/docs/OpenLayers/Layer.html#setVisibility I understand that not everything is that simple, but looking at the code in this case would probably have been easier than sending the email. Keep this in mind as you develop, and don't be afraid to explore the existing code: We've designed it so that it is explorable, and it's a much better resource for how to do things than the mailing list will typically be. Regards, -- Christopher Schmidt MetaCarta From mikequentel at yahoo.com Wed May 23 19:36:45 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] toggling between WMS base layer and Google base layer causes viewport to drift Message-ID: <271231.36643.qm@web32505.mail.mud.yahoo.com> There is a WMS base layer in WGS84 (EPSG: 4326) that is the default base layer (it's visible after the map first launches). There is a Google base layer as well. As you probably know, the Google layer is in some kind of Mercator, with zoom resolutions that cannot be modified. Additionally, there are WMS overlays in WGS84. When user toggles the radio options back and forth between the WMS and Google, the view port "drifts" eastward. The WMS overlays look proper on the Google layer (they stretch on to Google correctly), but there is always this shift of the viewport. It's an annoyance for our users when their viewport extents suddenly shift, and they have to drag the map back to where it was. I've been trying to find a solution for this issue. In OpenLayers.Control.LayerSwitcher, I've tried to add a member to store the older extent information of the default (non-Google) base layer, as well as a function to directly tell Google to set its centre to the older centre, like this: /** @type Bounds */ olderCentre: null, updateGoogle: function() { var currentBaseLayer = this.map.baseLayer; if (currentBaseLayer != null) { if (currentBaseLayer.CLASS_NAME != "OpenLayers.Layer.Google") { this.olderCentre = currentBaseLayer.getExtent(); alert("this.olderCentre: " + this.olderCentre); } else { var gLatLon = new GLatLng(this.olderCentre.getCenterLonLat().lat, this.olderCentre.getCenterLonLat().lon); this.mapObject.setCenter(gLatLon); } } }, I'm getting the impression that this is not a good way to enforce the map extents in this user scenario. Not even sure where to attempt to call the function above. I am getting nowhere with this approach. Please, any advice? Mike Quentel ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ From bwoodall at bwoodall.org Thu May 24 03:16:26 2007 From: bwoodall at bwoodall.org (Bill Woodall) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] toggling between WMS base layer and Google base layer causes viewport to drift In-Reply-To: <271231.36643.qm@web32505.mail.mud.yahoo.com> References: <271231.36643.qm@web32505.mail.mud.yahoo.com> Message-ID: <1179990986.2199.135.camel@wardrobe.dhs.org> Hi Mike, Hi Mike, I've not seen it drift eastward only south or north. There are many sites that give good information about the workings of Gmaps, but the one that help me the most when I was making OL do Gmaps with WMS overlays ( and TC) was http://www.ponies.me.uk/maps/dbgmap.html The artifact that you might be seeing is that the change in Lat is not constant in Gmaps. Thus making the jump from a standard WMS layer to Gmap layer will get askew in the North-South. Below is a table shows the numbers of a Gmap for zoom level 9, decimal degree 91 , (1-5,254-258,507-511) Take a look at the Lat deltas Lon delta Lat delta LL Lon LL Lat UR Lon UR Lat 0.703125 0.0617792507352 -116.015625 84.9283209295 -115.3125 84.9901001802 0.703125 0.0625390621844 -116.015625 84.8657818673 -115.3125 84.9283209295 0.703125 0.0633081429807 -116.015625 84.8024737243 -115.3125 84.8657818673 0.703125 0.0640866033811 -116.015625 84.738387121 -115.3125 84.8024737243 0.703125 0.0648745548481 -116.015625 84.6735125661 -115.3125 84.738387121 0.703125 0.703001482999 -116.015625 0.703107352436 -115.3125 1.40610883544 0.703125 0.703107352436 -116.015625 0.0 -115.3125 0.703107352436 0.703125 0.703107352436 -116.015625 -0.703107352436 -115.3125 0.0 0.703125 0.703001482999 -116.015625 -1.40610883544 -115.3125 -0.703107352436 0.703125 0.702789823808 -116.015625 -2.10889865924 -115.3125 -1.40610883544 0.703125 0.0640866033811 -116.015625 -84.8024737243 -115.3125 -84.738387121 0.703125 0.0633081429807 -116.015625 -84.8657818673 -115.3125 -84.8024737243 0.703125 0.0625390621844 -116.015625 -84.9283209295 -115.3125 -84.8657818673 0.703125 0.0617792507352 -116.015625 -84.9901001802 -115.3125 -84.9283209295 0.703125 0.0610285995718 -116.015625 -85.0511287798 -115.3125 -84.9901001802 Hope that made some sense ..........Bill, On Wed, 2007-05-23 at 16:36 -0700, Mike Quentel wrote: > There is a WMS base layer in WGS84 (EPSG: 4326) that is the default base layer (it's visible after the map first launches). > > There is a Google base layer as well. As you probably know, the Google layer is in some kind of Mercator, with zoom resolutions that cannot be modified. > > Additionally, there are WMS overlays in WGS84. > > When user toggles the radio options back and forth between the WMS and Google, the view port "drifts" eastward. The WMS overlays look proper on the Google layer (they stretch on to Google correctly), but there is always this shift of the viewport. It's an annoyance for our users when their viewport extents suddenly shift, and they have to drag the map back to where it was. > > I've been trying to find a solution for this issue. In OpenLayers.Control.LayerSwitcher, I've tried to add a member to store the older extent information of the default (non-Google) base layer, as well as a function to directly tell Google to set its centre to the older centre, like this: > > /** @type Bounds */ > olderCentre: null, > > > updateGoogle: function() { > var currentBaseLayer = this.map.baseLayer; > if (currentBaseLayer != null) { > if (currentBaseLayer.CLASS_NAME != "OpenLayers.Layer.Google") { > this.olderCentre = currentBaseLayer.getExtent(); > alert("this.olderCentre: " + this.olderCentre); > } else { > var gLatLon = new GLatLng(this.olderCentre.getCenterLonLat().lat, this.olderCentre.getCenterLonLat().lon); > this.mapObject.setCenter(gLatLon); > } > } > }, > > I'm getting the impression that this is not a good way to enforce the map extents in this user scenario. Not even sure where to attempt to call the function above. I am getting nowhere with this approach. > > Please, any advice? > > Mike Quentel > > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there knows the answer. Try it > now. > http://uk.answers.yahoo.com/ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From olivier.terral at geomatys.fr Mon May 21 03:49:13 2007 From: olivier.terral at geomatys.fr (olivier.terral) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] [Mapbuilder-users] Why there is some offsetbetween mouseclick point and the cross? In-Reply-To: <20070518132256.GC16853@metacarta.com> References: <46 4D944A.8050106@geomatys.fr><20070518132256.GC16853@metacarta.com> Message-ID: <46514EF9.1090004@geomatys.fr> Christopher Schmidt a ?crit : > On Fri, May 18, 2007 at 01:55:54PM +0200, olivier.terral wrote: > >> Alex Chew a ?crit : >> >>> I don't know why there is such an offset between mouse click point and >>> the cross or the rectangle. Zoomin,zoomout,dragpan and query are all >>> fall in this. It looks like the cross and rectangle is drawn with a >>> fixed x offset added(some value about 400px). It always on the right >>> of the correct positon it should be. >>> >>> I checked my config file, but still puzzled with this. >>> please help. >>> >> Hi Alex, >> >> It's an OpenLayers (opensource project, mapbuilder use it for rendering) >> issue so I permit me to send this mail to the openlayers users list. >> Probably , they are in a best position to resolve this problem. >> > > I need more context. A URL, an HTML snippet, something. If you think > it's an OpenLayers problem, please explain why -- I don't see it in any > of the demos, but I also don't have enough context to know why. > > Regards, > Hi http://www.openlayers.org/dev/examples/controls.html In this demo when you draw an aoi for zoom in, you click on the map and move the mouse, and you can see the rectangle corner of aoi it is a little on the bottom-right of mouse cross center. I hope I'm clear. Bye ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mapbuilder-users mailing list Mapbuilder-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mapbuilder-users From DCarreira at edia.pt Thu May 24 06:04:40 2007 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] label truncation Message-ID: <94C0F903807262438796839A98A9BA500198BA6B@beja001.edia.pt> I have tried to use an overlayed wms layer that only draws labels and that seemed to work ok without chopping any labels. Don't know if it's luck or not... I'm using ArcIMS. Another idea that crossed my mind was using the same approach but with WMS.Untiled just for the labels layer. This way I suppose the map would continue to offer tile-by-tile download of the main map. The user wouldn't notice the difference, I suspect. Don't know if my assumptions are correct though. One disadvantage of using several layers in OL is memory usage grows a lot as the user pans and zooms. It seems the number of tiles downloaded keep accumulating in memory. After a while you could have FF taking 200MB. This is only from my limited experience and maybe there's something I could be doing to alleviate this that I don't know of. Regards, Duarte Carreira -----Mensagem original----- Date: Wed, 23 May 2007 12:56:55 -0600 From: Gregor Mosheh Subject: Re: [OpenLayers-Users] label truncation To: Bill Woodall Cc: users@openlayers.org Message-ID: <46548E77.2020803@hostgis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > What has worked for me was using TileCache with MetaTiles with > "PARTIALS OFF" in map file for Mapserver ( mention earlier by Chris), > using PARTIALS alone I had some discontinuities. D'oh! I knew that. I'll give that a try and not bother you again. :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From fx.prunayre at oieau.fr Thu May 24 06:41:28 2007 From: fx.prunayre at oieau.fr (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GeoRSS : new features ? In-Reply-To: <94C0F903807262438796839A98A9BA500198BA6B@beja001.edia.pt> Message-ID: <200705241041.l4OAfSY4002552@ns1.oieau.fr> Hi list, Working on the web interface of GeoNetwork (metadata catalog for geospatial information), we added some features to OpenLayers GeoRSS layers. Changes are : - added item agregation (if more than one item is located on the same place, the popup is filled with description of all items). The icon size increase according to the number of items - added support for georss:box element. A point is created on the UL corner of that item. A boxe is added to a boxes layer. You have one layer with markers and one layer with boxes. - added georss extent property (use to zoom to layer) - added popup width and height property. - added trigger event loadend A demo inside GeoNetwork is available here : http://dev.sandre.eaufrance.fr/gnopenlayers/ (you could search for nitrate or bassin for example) I will be pleased to send that to one of the committers if you think that could be added to openlayers (I'm new to openlayers and I'm not really aware of who is working on what !). If you think that there's some stuff to adapt, feel free to comment. Thanks to Nicolas for his input on items agregation. Cheers. Francois From bkausbk at web.de Thu May 24 06:58:44 2007 From: bkausbk at web.de (bkausbk@web.de) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Get WFS features geometry data Message-ID: <1575924423@web.de> Hi there, I'm new in OpenLayers and I'm trying to manipulate certain WFS features geometry data. I'm not sure how to start, but concerning certain examples Am I right in thinking that I have to start with following to load WFS Data: var map = new OpenLayers.Map("map"); var baselayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://someurl/map", {layers: "mapname"}); var wfslayer = new OpenLayers.Layer.WFS( "Some Name", "http://someurl/wfs", {}, {featureClass: OpenLayers.Feature.WFS} ); map.addLayers([baselayer, wfslayer]); So but how do I get access to the features of WFS? I found an example somewhere showing to access it by "map.layers[1].features" ... but corresponding the current source code there is NO "features" variable within OpenLayers.Layer class as it should be. Another problem is, I only want features of the current view, is this possible? regards Benjamin Kalytta _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From spietz at fh-bingen.de Thu May 24 07:12:57 2007 From: spietz at fh-bingen.de (Christine Spietz) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Get WFS features geometry data References: <1575924423@web.de> Message-ID: <024401c79df4$7e8c6660$b84f5d8f@PSP> Hi Benjamin, I worked with a VectorLayer in OpenLayers (perhaps you can also work with VectorLayer or do something analog with the WFS-Layer). In a VectorLayer you can access the properties of the Features the following way: polygonLayer = new OpenLayers.Layer.Vector("MyVectorLayer"); ... allFeatures = polygonLayer.features; for(i=0;i > var baselayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://someurl/map", {layers: "mapname"}); > var wfslayer = new OpenLayers.Layer.WFS( > "Some Name", > "http://someurl/wfs", > {}, > {featureClass: OpenLayers.Feature.WFS} > ); > > map.addLayers([baselayer, wfslayer]); > > So but how do I get access to the features of WFS? > > I found an example somewhere showing to access it by > "map.layers[1].features" ... but corresponding the current source code > there is NO "features" variable within OpenLayers.Layer class as it should > be. > > Another problem is, I only want features of the current view, is this > possible? > > regards > > Benjamin Kalytta > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Thu May 24 07:40:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] GeoRSS : new features ? In-Reply-To: <200705241041.l4OAfSY4002552@ns1.oieau.fr> References: <94C0F903807262438796839A98A9BA500198BA6B@beja001.edia.pt> <200705241041.l4OAfSY4002552@ns1.oieau.fr> Message-ID: <20070524114002.GA21609@metacarta.com> On Thu, May 24, 2007 at 12:41:28PM +0200, Fran?ois Prunayre wrote: > Hi list, > > Working on the web interface of GeoNetwork (metadata catalog for geospatial > information), we added some features to OpenLayers GeoRSS layers. > > Changes are : > - added item agregation (if more than one item is located on the same place, > the popup is filled with description of all items). The icon size increase > according to the number of items > - added support for georss:box element. A point is created on the UL corner > of that item. A boxe is added to a boxes layer. You have one layer with > markers and one layer with boxes. > - added georss extent property (use to zoom to layer) > - added popup width and height property. > - added trigger event loadend > > A demo inside GeoNetwork is available here : > http://dev.sandre.eaufrance.fr/gnopenlayers/ (you could search for nitrate > or bassin for example) > > I will be pleased to send that to one of the committers if you think that > could be added to openlayers (I'm new to openlayers and I'm not really aware > of who is working on what !). If you think that there's some stuff to adapt, > feel free to comment. If you can follow the instructions on 'Submitting code' under http://trac.openlayers.org/wiki/HowToContribute -- open a ticket, upload a patch, sendin a CCLA, etc. -- that'd be great. Note that patches with tests get pulled in faster, so if you can work on writing tests, that helps too. The patch you've created definitely sounds useful, so please do bring it in. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 24 07:42:11 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Get WFS features geometry data In-Reply-To: <1575924423@web.de> References: <1575924423@web.de> Message-ID: <20070524114211.GB21609@metacarta.com> On Thu, May 24, 2007 at 12:58:44PM +0200, bkausbk@web.de wrote: > var map = new OpenLayers.Map("map"); > > var baselayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://someurl/map", {layers: "mapname"}); > var wfslayer = new OpenLayers.Layer.WFS( > "Some Name", > "http://someurl/wfs", > {}, > {featureClass: OpenLayers.Feature.WFS} > ); > > map.addLayers([baselayer, wfslayer]); > > So but how do I get access to the features of WFS? Don't use a 'featureClass' -- this makes it a markers layer, rather than a vectors layer, and a markerslayer doesn't provide you access to the geographic data in the fashion you want. > I found an example somewhere showing to access it by "map.layers[1].features" ... but corresponding the current source code there is NO "features" variable within OpenLayers.Layer class as it should be. The 'featureClass' changes the behavior -- remove it and you will have a features property. > Another problem is, I only want features of the current view, is this possible? That's how WFS works, though it uses a buffer around the current view - that buffer can be dropped to 1.0 via a 'ratio: 1.0' option to the layer. Regards, -- Christopher Schmidt MetaCarta From bkausbk at web.de Thu May 24 08:24:25 2007 From: bkausbk at web.de (bkausbk@web.de) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Get WFS features geometry data Message-ID: <1576143280@web.de> Hi Christine, > [...] > feature = allFeatures[i]; > geometry = feature.geometry; Does it mean, that "geometry" variable is always available in OpenLayers.Feature or just in OpenLayers.Feature.Vector? Because concerning http://dev.openlayers.org/docs/OpenLayers/Feature/Vector.html it is only available in OpenLayers.Feature.Vector. But since I'm using OpenLayers.Layer.WFS and concerning Mr. Christopher Schmidt there is indeed a features variable if I don't use "featureClass" (although I can't find it in class documentation or source code) I would presume "features" is of type OpenLayers.Feature.WFS instead of OpenLayers.Feature.Vector or Am I wrong? > That's how WFS works, though it uses a buffer around the current view - > that buffer can be dropped to 1.0 via a 'ratio: 1.0' option to the layer. Ok, if I understand you well this buffer does only contain the features required for current view (if ratio is set to 1.0) or Am I wrong? If so, what happens if there are polygons out of view? Are they truncated in some way? regards Benjamin Kalytta PS: @Christine: Bist Du die jenige die sich mit dem Thema Multiple Feature Selection auseinander gesetzt hatte? _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From spietz at fh-bingen.de Thu May 24 08:47:30 2007 From: spietz at fh-bingen.de (Christine Spietz) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Get WFS features geometry data References: <1576143280@web.de> Message-ID: <02d101c79e01$b4355b20$b84f5d8f@PSP> Hi Benjamin, if I understand right, there are only 2 kinds of features in OpenLayers. (OpenLayers.Feature.Vector and OpenLayers.Feature.WFS) I think "geometry" is only available in OpenLayers.Feature.Vector, but I did not really work with the WFS-features. I made a VectorLayer (OpenLayers.Layer.Vector) and the input of this layer is a featureCollection with lots of features. I did not set the 'featureClass' and so I think I "automatically" got the Vector-Features in my Vector-Layer and there is a features variable.... regards Christine P.S.: Ja, ich bin die jenige ;-) ...... und habe mich eine Zeit lang mit Multiple Feature Selection auseinandergesetzt. > Hi Christine, > >> [...] >> feature = allFeatures[i]; >> geometry = feature.geometry; > > Does it mean, that "geometry" variable is always available in > OpenLayers.Feature or just in OpenLayers.Feature.Vector? Because > concerning http://dev.openlayers.org/docs/OpenLayers/Feature/Vector.html > it is only available in OpenLayers.Feature.Vector. > > But since I'm using OpenLayers.Layer.WFS and concerning Mr. Christopher > Schmidt there is indeed a features variable if I don't use "featureClass" > (although I can't find it in class documentation or source code) I would > presume "features" is of type OpenLayers.Feature.WFS instead of > OpenLayers.Feature.Vector or Am I wrong? > >> That's how WFS works, though it uses a buffer around the current view - >> that buffer can be dropped to 1.0 via a 'ratio: 1.0' option to the layer. > > Ok, if I understand you well this buffer does only contain the features > required for current view (if ratio is set to 1.0) or Am I wrong? If so, > what happens if there are polygons out of view? Are they truncated in some > way? > > regards > > Benjamin Kalytta > > PS: @Christine: Bist Du die jenige die sich mit dem Thema Multiple Feature > Selection auseinander gesetzt hatte? > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From f.husson at brgm.fr Thu May 24 09:29:06 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? Message-ID: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> Hello, I work with openlayers 2.4 and geoserver 1.5. In my application, the user must type an WFS url (getFeature) in a textarea, and when he validate, I would like to draw the feature(s) result. Is it possible? Thanks, Florian. --- Pensez à l'environnement avant d'imprimer ce message --- Think Environment before printing ********************************************************************************************** Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) expressément désigné(s) comme tel(s). En cas de réception de ce mél par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifié à l'émission du message. Il convient néanmoins de vérifier l'absence de contamination à sa réception. The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070524/e81e1870/attachment.html From crschmidt at metacarta.com Thu May 24 09:58:09 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? In-Reply-To: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> References: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> Message-ID: <20070524135809.GA22136@metacarta.com> On Thu, May 24, 2007 at 03:29:06PM +0200, Husson Florian wrote: > Hello, > > I work with openlayers 2.4 and geoserver 1.5. > > In my application, the user must type an WFS url (getFeature) in a > textarea, and when he validate, I would like to draw the feature(s) > result. > Is it possible? Yes. OpenLayers.Format.GML and the getfeatureinfo.html file in the examples directory are probably both helpful. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 24 16:12:35 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] FeatureServer Release Message-ID: <20070524201235.GA23455@metacarta.com> A couple weeks back, some people were asking about FeatureServer. It's now available: """ MetaCarta Labs is proud to announce the release of FeatureServer, an open source, Python based RESTful feature server. FeatureServer allows you to store points, lines, and polygons in a number of backends, and get the data out all at once or one piece at a time. You can get the data out as KML, JSON, GeoRSS, GML/WFS or even as HTML. """ -- http://labs.metacarta.com/blog/16.entry Code, SVN, Mailing List, Trac are all available from links on: http://featureserver.org/ If anyone has an interest in getting started with FeatureServer + OpenLayers, drop by #openlayers on irc.freenode.net, and I can help you out. Regards, -- Christopher Schmidt MetaCarta From noreply at geocartic.com Thu May 24 16:13:48 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] Vertical lines on WMS layer? In-Reply-To: <4654A1D9.7010902@ionicenterprise.com> References: <4654A1D9.7010902@ionicenterprise.com> Message-ID: <4655F1FC.6000909@geocartic.com> Jeff Yutzler wrote: > When I set the following WMS layer into OpenLayers: > > map.addLayer(new OpenLayers.Layer.WMS( "IONIC Natural Earth WMS", > "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: > 'NATURALEARTH'})); > > I get behavior I have not seen anywhere else. At most scales, the layer > looks fine. However, at 1:3M and 1:7M, white vertical lines appear at > the tile boundaries. I suppose this is a defect in OpenLayers, but I'm > not really even sure how to describe it. Any ideas? For tile renderers (WMS servers) that have unsavory edge effects, you can use the "gutter" option on a layer. This requests a larger tile than is actually displayed in OpenLayers - hiding ugly tile edges if you can't control the tiling yourself (with TileCache). This functionality was introduced during 2.4 development and will be included in the 2.4 release. (See http://trac.openlayers.org/ticket/529 for details.) In your case, the following layer definition gets rid of the white tile edges: var iconic = new OpenLayers.Layer.WMS("IONIC Natural Earth WMS", "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: 'NATURALEARTH'}, {gutter: 2}); map.addLayer(iconic); Nice looking map! Obviously, the best solution is to fix the Iconic WMS - until that is done, use gutters. Tim http://wms-sites.com/catalog/Natural-Earth-draped-over-SRTM/NATURALEARTH/ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From noreply at geocartic.com Thu May 24 16:37:23 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:30 2010 Subject: [OpenLayers-Users] label truncation In-Reply-To: <94C0F903807262438796839A98A9BA500198BA6B@beja001.edia.pt> References: <94C0F903807262438796839A98A9BA500198BA6B@beja001.edia.pt> Message-ID: <4655F783.9030003@geocartic.com> >> What has worked for me was using TileCache with MetaTiles with >> "PARTIALS OFF" in map file for Mapserver ( mention earlier by Chris), >> using PARTIALS alone I had some discontinuities. > > D'oh! I knew that. I'll give that a try and not bother you again. :) > > I'm posting this again here - hoping that google helps out others. MapServer has a metadata keyword named "labelcache_map_edge_buffer". Pair this with an integer number of pixels, and you get a map rendered with no labels in that buffer. The only documentation for this "experimental" feature that I can find lives here: http://mapserver.gis.umn.edu/download/current/HISTORY.TXT So, if you want a ten pixel label buffer on your tiles, in MapServer you can use METADATA "labelcache_map_edge_buffer" "10" END There, documented. Tim From Steve.Lime at dnr.state.mn.us Thu May 24 17:55:15 2007 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] FeatureServer Release Message-ID: <4655C3730200008F0000B171@co5.dnr.state.mn.us> Congrats! Eager to test... Steve >>> Christopher Schmidt 05/24/07 3:12 PM >>> A couple weeks back, some people were asking about FeatureServer. It's now available: """ MetaCarta Labs is proud to announce the release of FeatureServer, an open source, Python based RESTful feature server. FeatureServer allows you to store points, lines, and polygons in a number of backends, and get the data out all at once or one piece at a time. You can get the data out as KML, JSON, GeoRSS, GML/WFS or even as HTML. """ -- http://labs.metacarta.com/blog/16.entry Code, SVN, Mailing List, Trac are all available from links on: http://featureserver.org/ If anyone has an interest in getting started with FeatureServer + OpenLayers, drop by #openlayers on irc.freenode.net, and I can help you out. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From aileen at mapcentral.ph Thu May 24 21:29:26 2007 From: aileen at mapcentral.ph (Aileen Baylon) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] How do I dynamically plot a point using mapserver References: Message-ID: <00bb01c79e6c$2668afc0$9601a8c0@aileen> Hi All, How can we dynamically plot a point in OpenLayers? As of now, as I understand it, we can only do that if we hardcode it in the application or from a text file or rss. Is there anyway we can plot it dynamically? Aileen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070525/de4d6e7c/attachment.html From crschmidt at metacarta.com Thu May 24 22:25:54 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] How do I dynamically plot a point using mapserver In-Reply-To: <00bb01c79e6c$2668afc0$9601a8c0@aileen> References: <00bb01c79e6c$2668afc0$9601a8c0@aileen> Message-ID: <20070525022554.GA24819@metacarta.com> On Fri, May 25, 2007 at 09:29:26AM +0800, Aileen Baylon wrote: > Hi All, > > How can we dynamically plot a point in OpenLayers? > As of now, as I understand it, we can only do that if we hardcode it in the application or from a text file or rss. Is there anyway we can plot it dynamically? http://openlayers.org/dev/examples/markers.html Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 24 23:38:55 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] How do I dynamically plot a point using mapserver In-Reply-To: <019201c79e7d$935c5170$9601a8c0@aileen> References: <00bb01c79e6c$2668afc0$9601a8c0@aileen> <20070525022554.GA24819@metacarta.com> <019201c79e7d$935c5170$9601a8c0@aileen> Message-ID: <20070525033855.GA25026@metacarta.com> On Fri, May 25, 2007 at 11:34:10AM +0800, Aileen Baylon wrote: > Hi Christopher, > > Thanks for your quick reply! I appreciate it. > But the link you gave me STILL gets the lonlat data from a textfile which is STILL hardcoded... Ignore the Layer.Text. look at the Layer.Markers: specifically: you create the layer, create a marker (with an icon, if you like) and then add it via the 'addMarker' function. Regards, -- Christopher Schmidt MetaCarta From f.husson at brgm.fr Fri May 25 04:49:52 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? References: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> <20070524135809.GA22136@metacarta.com> Message-ID: <4044C732AA0FB847B32A199C8AEBEB650109977B@RES005.brgm.fr> My goal is to display on the map, the geometry result of a WFS getFeature. Something like that don't work, and I don't see how to do that... layer2 = new OpenLayers.Layer.WFS( "Quarry", "http://swing.brgm.fr/cgi-bin/carrieres?request=getfeature&service=wfs&version=1.0.0&typename=exploitationsponctualsproduction&maxFeatures=1", { typename: 'exploitationsponctualsproduction'}, OpenLayers.Feature.WFS ); map.addLayer(layer2); I looked at getfeatureinfo.html, but I didn't find anything. I looked at OpenLayers.Format.GML too and that must be the thing which I need, but I don't know how to make use of it and at which time I must call upon my WFS getFeature. Regards, Florian HUSSON. -----Message d'origine----- De : Christopher Schmidt [mailto:crschmidt@metacarta.com] Envoy? : jeudi 24 mai 2007 15:58 ? : Husson Florian Cc : users@openlayers.org Objet : Re: [OpenLayers-Users] create a layer from a getFeature url ? On Thu, May 24, 2007 at 03:29:06PM +0200, Husson Florian wrote: > Hello, > > I work with openlayers 2.4 and geoserver 1.5. > > In my application, the user must type an WFS url (getFeature) in a > textarea, and when he validate, I would like to draw the feature(s) > result. > Is it possible? Yes. OpenLayers.Format.GML and the getfeatureinfo.html file in the examples directory are probably both helpful. Regards, -- Christopher Schmidt MetaCarta ********************************************************************************************** Pensez ? l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce m?l et de ses pi?ces jointes est destin? ? l'usage exclusif du (des) destinataire(s) d?sign?(s) comme tel(s). En cas de r?ception par erreur, le signaler ? son exp?diteur et ne pas en divulguer le contenu. L'absence de virus a ?t? v?rifi?e ? l'?mission, il convient n?anmoins de s'assurer de l'absence de contamination ? sa r?ception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** From bluecarto at gmail.com Fri May 25 06:26:13 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? In-Reply-To: <4044C732AA0FB847B32A199C8AEBEB650109977B@RES005.brgm.fr> References: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> <20070524135809.GA22136@metacarta.com> <4044C732AA0FB847B32A199C8AEBEB650109977B@RES005.brgm.fr> Message-ID: This worked for me with this configuration : function init(){ OpenLayers.ProxyHost="/cgi-bin/proxy.cgi/?url="; map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); layer = new OpenLayers.Layer.WFS( "Owl Survey", "http://swing.brgm.fr/cgi-bin/carrieres", {typename: "exploitationsponctualsproduction", maxfeatures: 1}, { featureClass: OpenLayers.Feature.WFS}); map.addLayer(layer); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.zoomToMaxExtent(); } Please note that you probably need a proxy if the domain of you html page and the one for the WFS server are not the same. Regards. Pierre On 5/25/07, Husson Florian wrote: > My goal is to display on the map, the geometry result of a WFS getFeature. > > Something like that don't work, and I don't see how to do that... > > layer2 = new OpenLayers.Layer.WFS( "Quarry", > "http://swing.brgm.fr/cgi-bin/carrieres?request=getfeature&service=wfs&version=1.0.0&typename=exploitationsponctualsproduction&maxFeatures=1", > { typename: 'exploitationsponctualsproduction'}, > OpenLayers.Feature.WFS ); > map.addLayer(layer2); > > I looked at getfeatureinfo.html, but I didn't find anything. > > I looked at OpenLayers.Format.GML too and that must be the thing which I need, but I don't know how to make use of it and at which time I must call upon my WFS getFeature. > > > Regards, > Florian HUSSON. > > > > -----Message d'origine----- > De : Christopher Schmidt [mailto:crschmidt@metacarta.com] > Envoy? : jeudi 24 mai 2007 15:58 > ? : Husson Florian > Cc : users@openlayers.org > Objet : Re: [OpenLayers-Users] create a layer from a getFeature url ? > > On Thu, May 24, 2007 at 03:29:06PM +0200, Husson Florian wrote: > > Hello, > > > > I work with openlayers 2.4 and geoserver 1.5. > > > > In my application, the user must type an WFS url (getFeature) in a > > textarea, and when he validate, I would like to draw the feature(s) > > result. > > Is it possible? > > Yes. OpenLayers.Format.GML and the getfeatureinfo.html file in the examples directory are probably both helpful. > > Regards, > -- > Christopher Schmidt > MetaCarta > ********************************************************************************************** > > Pensez ? l'environnement avant d'imprimer ce message > Think Environment before printing > > Le contenu de ce m?l et de ses pi?ces jointes est destin? ? l'usage exclusif du (des) destinataire(s) d?sign?(s) > comme tel(s). > En cas de r?ception par erreur, le signaler ? son exp?diteur et ne pas en divulguer le contenu. > L'absence de virus a ?t? v?rifi?e ? l'?mission, il convient n?anmoins de s'assurer de l'absence de > contamination ? sa r?ception. > > The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) > only. > If you have received this email in error please notifythe system manager or the sender immediately and do not > disclose the contents to anyone or make copies. > eSafe scanned this email for viruses, vandals and malicious content. > > ********************************************************************************************** > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From Jeremy.Nix at sfsltd.com Fri May 25 11:34:36 2007 From: Jeremy.Nix at sfsltd.com (Jeremy Nix) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] OpenLayers User Subscription page Message-ID: <4657020C.8060109@sfsltd.com> This page has some issues. The only way I was able to subscribe to this list was by saving the source locally and stripping out everything but the submission
    . Just thought I'd pass that along in case anyone was wondering why their weren't new users flocking to this list. -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 From Jeremy.Nix at sfsltd.com Fri May 25 11:35:13 2007 From: Jeremy.Nix at sfsltd.com (Jeremy Nix) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization Message-ID: <46570231.8050302@sfsltd.com> Is there a way to delay a layer's initialization process? Here's the situation that we're running into. We have around ten layers that we want to make available, but the screen's initial loading time is immense as these layers are mostly tile layers and some servers are better than others at feeding up the images. We figure that in a given view, the user is most likely only going to use a handful (2-3) of the given layers. Maybe a property could be added to a layer to denote whether to initialize before set to visible. Does anybody else find that to be useful? Or have you found workarounds of your own to deal with similar loading time issues? -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 From jeff.yutzler at ionicenterprise.com Fri May 25 12:23:04 2007 From: jeff.yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Users Digest, Vol 8, Issue 38 In-Reply-To: References: Message-ID: <46570D68.7090303@ionicenterprise.com> Tim, This workaround works fine at large scale, but unfortunately it completely breaks down at small scale. When I try it at 1:433k, 1:216k, or 1:108k, I get even thicker white lines. Oh well. I have Ionic's RedSpiderWeb team looking at it. Thanks for trying. -Jeff users-request@openlayers.org wrote: From: Tim Schaub Subject: Re: [OpenLayers-Users] Vertical lines on WMS layer? To: users@openlayers.org Message-ID: <4655F1FC.6000909@geocartic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Jeff Yutzler wrote: > > When I set the following WMS layer into OpenLayers: > > > > map.addLayer(new OpenLayers.Layer.WMS( "IONIC Natural Earth WMS", > > "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: > > 'NATURALEARTH'})); > > > > I get behavior I have not seen anywhere else. At most scales, the layer > > looks fine. However, at 1:3M and 1:7M, white vertical lines appear at > > the tile boundaries. I suppose this is a defect in OpenLayers, but I'm > > not really even sure how to describe it. Any ideas? > For tile renderers (WMS servers) that have unsavory edge effects, you can use the "gutter" option on a layer. This requests a larger tile than is actually displayed in OpenLayers - hiding ugly tile edges if you can't control the tiling yourself (with TileCache). This functionality was introduced during 2.4 development and will be included in the 2.4 release. (See http://trac.openlayers.org/ticket/529 for details.) In your case, the following layer definition gets rid of the white tile edges: var iconic = new OpenLayers.Layer.WMS("IONIC Natural Earth WMS", "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", {layers: 'NATURALEARTH'}, {gutter: 2}); map.addLayer(iconic); -------------- next part -------------- A non-text attachment was scrubbed... Name: jeff.yutzler.vcf Type: text/x-vcard Size: 331 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070525/4d909592/jeff.yutzler.vcf From crschmidt at metacarta.com Fri May 25 13:44:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] OpenLayers User Subscription page In-Reply-To: <4657020C.8060109@sfsltd.com> References: <4657020C.8060109@sfsltd.com> Message-ID: <20070525174402.GA28118@metacarta.com> On Fri, May 25, 2007 at 11:34:36AM -0400, Jeremy Nix wrote: > This page has some issues. The only way I was able to subscribe to this > list was by saving the source locally and stripping out everything but > the submission . Just thought I'd pass that along in case anyone > was wondering why their weren't new users flocking to this list. This is probably my... oh, crap, Yeah, I see why now. I'll fix it, thanks. I only introduced it ~36 hours ago, so thanks for the catch! Regards, -- Christopher Schmidt MetaCarta From noreply at geocartic.com Fri May 25 13:51:35 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Users Digest, Vol 8, Issue 38 In-Reply-To: <46570D68.7090303@ionicenterprise.com> References: <46570D68.7090303@ionicenterprise.com> Message-ID: <46572227.5060904@geocartic.com> Hey- Jeff Yutzler wrote: > Tim, > This workaround works fine at large scale, but unfortunately it > completely breaks down at small scale. When I try it at 1:433k, 1:216k, > or 1:108k, I get even thicker white lines. Oh well. I have Ionic's > RedSpiderWeb team looking at it. > Thanks for trying. > -Jeff Hmm. Perhaps they fixed something. I only see 2px (at most) white edges regardless of scale. You can always use bigger gutters. In any event, the right thing to do is get it fixed at the source. Tim >> > When I set the following WMS layer into OpenLayers: >> > > map.addLayer(new OpenLayers.Layer.WMS( "IONIC Natural Earth >> WMS", > "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", >> {layers: > 'NATURALEARTH'})); >> > > I get behavior I have not seen anywhere else. At most scales, the >> layer > looks fine. However, at 1:3M and 1:7M, white vertical lines >> appear at > the tile boundaries. I suppose this is a defect in >> OpenLayers, but I'm > not really even sure how to describe it. Any >> ideas? >> > > For tile renderers (WMS servers) that have unsavory edge effects, you > can use the "gutter" option on a layer. This requests a larger tile > than is actually displayed in OpenLayers - hiding ugly tile edges if you > can't control the tiling yourself (with TileCache). > > This functionality was introduced during 2.4 development and will be > included in the 2.4 release. (See http://trac.openlayers.org/ticket/529 > for details.) > > In your case, the following layer definition gets rid of the white tile > edges: > > var iconic = new OpenLayers.Layer.WMS("IONIC Natural Earth WMS", > "http://demo.ionicenterprise.com/ionicweb/map/NATURALEARTH", > {layers: 'NATURALEARTH'}, > {gutter: 2}); > > map.addLayer(iconic); > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From darrencope at gmail.com Fri May 25 18:28:54 2007 From: darrencope at gmail.com (Darren Cope) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Hyperlinked Features Message-ID: <10f4de780705251528w41ef4927ud5cdb3ec461cbd90@mail.gmail.com> Hi all, I'm new to the OpenLayers world, but have set up a little application that displays exactly what I want it to. You can see it here: http://dmcope.freeshell.org/gis/multiple4.html I'm looking for a way to hyperlink each individual line feature (I'm serving them as a WMS via MapServer) to a webpage, so that a user could zoom in on the map, then click on a canoe trip feature in order to be taken to the info page for that particular trip. I have the URL stored as an attribute for each feature (currently shapefile format behind Mapserver.) What is the best way to accomplish this? My JavaScript knowledge is low, so please excuse me if this is trivial. I'd appreciate any help, examples, links, etc. Cheers, Darren Cope darrencope@gmail.com http://dmcope.freeshell.org From crschmidt at metacarta.com Fri May 25 19:03:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Hyperlinked Features In-Reply-To: <10f4de780705251528w41ef4927ud5cdb3ec461cbd90@mail.gmail.com> References: <10f4de780705251528w41ef4927ud5cdb3ec461cbd90@mail.gmail.com> Message-ID: <20070525230328.GA29639@metacarta.com> On Fri, May 25, 2007 at 06:28:54PM -0400, Darren Cope wrote: > Hi all, > > I'm new to the OpenLayers world, but have set up a little application > that displays exactly what I want it to. You can see it here: > http://dmcope.freeshell.org/gis/multiple4.html > > I'm looking for a way to hyperlink each individual line feature (I'm > serving them as a WMS via MapServer) to a webpage, so that a user > could zoom in on the map, then click on a canoe trip feature in order > to be taken to the info page for that particular trip. I have the URL > stored as an attribute for each feature (currently shapefile format > behind Mapserver.) What is the best way to accomplish this? http://openlayers.org/dev/examples/getfeatureinfo.html is probably a good starting point: it will let you do a query to the WMS server. (This isn't a complete solution, but it may help point you in the right direction.) Cool map. Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Fri May 25 19:18:03 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <46570231.8050302@sfsltd.com> Message-ID: Jeremy, I had this very same issue so I built my own Layer Manager which is populated from an external XML file. See http://ozdemo.getmyip.com/skin03.html This also allows me to add radio buttons for getfeatureinfo events and links attached to the layer names for legend displays. Much more flexible than the LayerSwitcher I think. Still in development and only working in FF at this point. Cheers, Brad Spencer General Manager CubeWerx Australia Pty Ltd ABN: 37 115 163 285 Mob: +61 (0)404 841 131 Tel/Fax: +61 (0)2 9481 7024 mailto:brad@cubewerx.com.au http://www.cubewerx.com.au -----Original Message----- From: Jeremy Nix [mailto:Jeremy.Nix@sfsltd.com] Sent: Saturday, 26 May 2007 1:35 AM To: users@openlayers.org Subject: [OpenLayers-Users] Delaying Layer Initialization Is there a way to delay a layer's initialization process? Here's the situation that we're running into. We have around ten layers that we want to make available, but the screen's initial loading time is immense as these layers are mostly tile layers and some servers are better than others at feeding up the images. We figure that in a given view, the user is most likely only going to use a handful (2-3) of the given layers. Maybe a property could be added to a layer to denote whether to initialize before set to visible. Does anybody else find that to be useful? Or have you found workarounds of your own to deal with similar loading time issues? -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Fri May 25 19:35:57 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <46570231.8050302@sfsltd.com> References: <46570231.8050302@sfsltd.com> Message-ID: <20070525233557.GA29676@metacarta.com> On Fri, May 25, 2007 at 11:35:13AM -0400, Jeremy Nix wrote: > Is there a way to delay a layer's initialization process? Here's the > situation that we're running into. We have around ten layers that we > want to make available, but the screen's initial loading time is immense > as these layers are mostly tile layers and some servers are better than > others at feeding up the images. We figure that in a given view, the > user is most likely only going to use a handful (2-3) of the given > layers. Maybe a property could be added to a layer to denote whether to > initialize before set to visible. Does anybody else find that to be > useful? Or have you found workarounds of your own to deal with similar > loading time issues? Layers shouldn't be loading tiles if they're not visible. If they are, it's a bug. Example HTML would help debug it. (Visibility is controlled via setVisibility.) Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Sat May 26 04:28:39 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <20070525233557.GA29676@metacarta.com> Message-ID: Hello Christopher, I have the same problem (therefor I'm still using Openlayers 1.0). The initialization of the map cause to load all servers, not only the visible ones. This is the part, where I add my layers to the map: //set the visibility of the layer OLLayers[i].setVisibility(mapObj.OL[i].Visibility); //add the layer to the map map.addLayer(OLLayers[i]); OpenLayers should only load tiles for the baselayer from gis.ibbeck.de and wms.jpl.nasa.gov for the world image. If you use firebug, you could see, that the tiles for the other servers are also loaded. After the first load of the map, pan and zoom loads only the tiles for the visible servers. http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, 50.819 I'm using OpenLayers 2.3. It's the same with 2.4. I have localy tested with Version 2.4. I believe Revision 3142 (after svn), but in the OpenLayers.js is defined: OpenLayers.VERSION_NUMBER="$Revision: 2942 $". (If I load the newest version from http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says the html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still "$Revision: 2942 $". Miss I something or is this a bug). Is it possible with the number of the revision also deliver a variable with the plain text for the OpenLayers Version(example: 2.4 RC4). Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Christopher Schmidt Gesendet: Samstag, 26. Mai 2007 01:36 An: Jeremy Nix Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Delaying Layer Initialization On Fri, May 25, 2007 at 11:35:13AM -0400, Jeremy Nix wrote: > Is there a way to delay a layer's initialization process? Here's the > situation that we're running into. We have around ten layers that we > want to make available, but the screen's initial loading time is > immense as these layers are mostly tile layers and some servers are > better than others at feeding up the images. We figure that in a given > view, the user is most likely only going to use a handful (2-3) of the > given layers. Maybe a property could be added to a layer to denote > whether to initialize before set to visible. Does anybody else find > that to be useful? Or have you found workarounds of your own to deal > with similar loading time issues? Layers shouldn't be loading tiles if they're not visible. If they are, it's a bug. Example HTML would help debug it. (Visibility is controlled via setVisibility.) Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Sat May 26 08:04:52 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: References: <20070525233557.GA29676@metacarta.com> Message-ID: <20070526120452.GA636@metacarta.com> On Sat, May 26, 2007 at 10:28:39AM +0200, Arnd Wippermann wrote: > Hello Christopher, > > I have the same problem (therefor I'm still using Openlayers 1.0). Okay, thanks. I'd heard reports, but they were always vague in the problems they were reporting. > OpenLayers should only load tiles for the baselayer from gis.ibbeck.de and > wms.jpl.nasa.gov for the world image. If you use firebug, you could see, > that the tiles for the other servers are also loaded. Agreed. I'll file this as a bug against 2.5. Since it's been around since the start of the 2.0 branch, it's not enough to delay 2.4. > After the first load of the map, pan and zoom loads only the tiles for the > visible servers. > > http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= > 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, > 50.819 > > (If I load the newest version from > http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says the > html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still > "$Revision: 2942 $". Miss I something or is this a bug). This is expected -- the VERSION_NUMBER is relevant to the last time that file was updated. Part of the release process is to edit the OpenLayers.js file (to change the license), so releases get a new VERSION_NUMBER -- it's only useful on releases. Unfortunately, I don't know of a better way to automate this. > Is it possible with the number of the revision also deliver a variable with > the plain text for the OpenLayers Version(example: 2.4 RC4). There is no automatic way of doing this, and it's a step that I fear would be missed if we made it a human intervention step, which is why it's not done. If you're actually using RC4 -- that is, from the /tags/ instead of the branch -- the VERSION_NUMBER represents that. Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Sat May 26 09:55:44 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <20070526120452.GA636@metacarta.com> References: <20070525233557.GA29676@metacarta.com> <20070526120452.GA636@metacarta.com> Message-ID: <46583C60.7070704@swoodbridge.com> Christopher, How about adding something to the build script like: svn info | grep "Revision:" Revision: 3188 to grab the trunk Revision and adding that string somehow to the packaged OpenLayers.js then you would have an unambiguous svn Revision. OK, this won't if you don't have svn installed but it could be conditional on having it. Or if the .svn directory is available then that info is in the .svn/entries xml file and this might be a better place to fetch it from programmatically. I'm not sure if Windows and Macs also have this structure. Anyway, I'm just think out loud here in case it might help. Sorry, I don't have a patch to offer. OL 2.4RC5 is looking might fine. Many thanks to you and all the contributors for many hours of hard work to make this fine product release. -Steve W Christopher Schmidt wrote: > On Sat, May 26, 2007 at 10:28:39AM +0200, Arnd Wippermann wrote: >> Hello Christopher, >> >> I have the same problem (therefor I'm still using Openlayers 1.0). > > Okay, thanks. I'd heard reports, but they were always vague in the > problems they were reporting. >> OpenLayers should only load tiles for the baselayer from gis.ibbeck.de and >> wms.jpl.nasa.gov for the world image. If you use firebug, you could see, >> that the tiles for the other servers are also loaded. > > Agreed. I'll file this as a bug against 2.5. Since it's been around since > the start of the 2.0 branch, it's not enough to delay 2.4. > >> After the first load of the map, pan and zoom loads only the tiles for the >> visible servers. >> >> http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= >> 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, >> 50.819 >> >> (If I load the newest version from >> http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says the >> html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still >> "$Revision: 2942 $". Miss I something or is this a bug). > > This is expected -- the VERSION_NUMBER is relevant to the last time that > file was updated. Part of the release process is to edit the > OpenLayers.js file (to change the license), so releases get a new > VERSION_NUMBER -- it's only useful on releases. Unfortunately, I don't > know of a better way to automate this. > >> Is it possible with the number of the revision also deliver a variable with >> the plain text for the OpenLayers Version(example: 2.4 RC4). > > There is no automatic way of doing this, and it's a step that I fear > would be missed if we made it a human intervention step, which is why > it's not done. If you're actually using RC4 -- that is, from the /tags/ > instead of the branch -- the VERSION_NUMBER represents that. > > Regards, From crschmidt at metacarta.com Sun May 27 11:40:18 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Demos for OL Presentation Message-ID: <20070527154018.GA15245@metacarta.com> I'm going to be getting up on stage in front of several thousand people on Tuesday and talking for 5 minutes about OpenLayers. One of the things I'd like to do is do a quick through a half dozen demos of users of OpenLayers: There won't be any visible URLs, just quick video snapshots of using the site. If you have a site like this you would like to show up, send links! I can give an organization name, product name, and a short demo -- if you'd like your URL to go with it, I can add it to the page I'm going to be creating in the OpenLayers wiki for links, too. If the demo is kinda flakey, that's not a huge deal: I'm going to be recording everything to video, so so long as I can get a good 15 second snapshot of working functionality, it'll be fine. If you don't want your URL to be public, but you want the free advertising, you can email me off list. I'm most interested in good-looking demos with some functionality over the top of the standard OpenLayers examples. I plan to make the video tomorrow morning at the latest, so the sooner you get in, the better chance you have :) Also, if you're going to be at Where, do you have any interest in a BoF event? It looks like there might still be slots open for one on Tuesday night -- and Tim/Erik/Schuyler/I are going to be at where, so it might be a good chance to get together. Regards, -- Christopher Schmidt MetaCarta From richard.greenwood at gmail.com Sun May 27 16:44:23 2007 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent Message-ID: I can not seem to make my layers transparent. Only the top most layer is visible, and it is blocking out the underlying layers. I've tried transparent:true and format both gif & png. Also tried isBaseLayer:false. (example layer below). The layers show up correctly in the layer control (that is to say they are accompanied by check boxes as opposed to radio buttons.) I'm using MapServer 4.8.3 and OL 2.4-rc4 & rc5 Any ideas? Rich var podLayer = new OpenLayers.Layer.MapServer.Untiled( "Points of Diversion", "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/wwdc.map", {layers:'pod', transparent:true, format:'image/png'} ); -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From penyaskito at gmail.com Sun May 27 16:53:11 2007 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent In-Reply-To: References: Message-ID: See http://trac.openlayers.org/ticket/678 Hope this helps On 5/27/07, Richard Greenwood wrote: > I can not seem to make my layers transparent. Only the top most layer > is visible, and it is blocking out the underlying layers. I've tried > transparent:true and format both gif & png. Also tried > isBaseLayer:false. (example layer below). The layers show up > correctly in the layer control (that is to say they are accompanied by > check boxes as opposed to radio buttons.) > > I'm using MapServer 4.8.3 and OL 2.4-rc4 & rc5 > > Any ideas? > Rich > > > var podLayer = new OpenLayers.Layer.MapServer.Untiled( "Points of Diversion", > "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/wwdc.map", > {layers:'pod', transparent:true, format:'image/png'} ); > > > -- > Richard Greenwood > richard.greenwood@gmail.com > www.greenwoodmap.com > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Regards, Christian L?pez Esp?nola From brad at cubewerx.com.au Sun May 27 17:45:36 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent In-Reply-To: Message-ID: Richard, Have you tried Opacity: 0.5 in the options part of the layer def? Cheers, Brad.... -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood@gmail.com] Sent: Monday, 28 May 2007 6:44 AM To: Users@openlayers.org Subject: [OpenLayers-Users] layers not transparent I can not seem to make my layers transparent. Only the top most layer is visible, and it is blocking out the underlying layers. I've tried transparent:true and format both gif & png. Also tried isBaseLayer:false. (example layer below). The layers show up correctly in the layer control (that is to say they are accompanied by check boxes as opposed to radio buttons.) I'm using MapServer 4.8.3 and OL 2.4-rc4 & rc5 Any ideas? Rich var podLayer = new OpenLayers.Layer.MapServer.Untiled( "Points of Diversion", "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/ww dc.map", {layers:'pod', transparent:true, format:'image/png'} ); -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From richard.greenwood at gmail.com Sun May 27 19:28:53 2007 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent In-Reply-To: References: Message-ID: On 5/27/07, bradleyspencer wrote: > Richard, > > Have you tried Opacity: 0.5 in the options part of the layer def? > > Cheers, > > Brad.... Brad, Christian; Thanks, but that forced it back to a "base layer". I looked at ticket 6678 as Christian suggested, but I'm not sure I followed it exactly. In my Apache logs, "true" is lowercase for the transparency. Is it supposed to be uppercase? I doubt it, because all the example apps seem to work correctly. I tested on my Mac with a recent nightly build of MapServer "4.99" and the problem is the same. I must be missing something. I've included more of my app below in case something jumps out at anybody. (I'm only on my 2nd day w/ OL, so mistakes are plentiful). Thanks, Rich var map = new OpenLayers.Map("map", {maxExtent: new OpenLayers.Bounds(-111.2, 40.95, -103.9, 45.01), maxResolution: "auto", units: 'degrees', projection: "EPSG:4326"}); var countiesLayer = new OpenLayers.Layer.MapServer.Untiled( "Wyoming Counties", "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/wwdc.map", {layers: 'county'}, {isBaseLayer: true}); var irrigationLayer = new OpenLayers.Layer.MapServer.Untiled( "Irrigated Land", "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/wwdc.map", {layers: 'irrigatedland',transparent: "true", format: "image/png"} var podLayer = new OpenLayers.Layer.MapServer.Untiled( "Points of Diversion", "http://lucca:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/OpenLayers/rwg/wwdc/wwdc.map", {layers:'pod'}, {isBaseLayer: false }, {Opacity: 0.5} ); map.addLayers([countiesLayer,irrigationLayer,podLayer]); -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From crschmidt at metacarta.com Sun May 27 19:43:27 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent In-Reply-To: References: Message-ID: <20070527234327.GA18758@metacarta.com> On Sun, May 27, 2007 at 02:44:23PM -0600, Richard Greenwood wrote: > I can not seem to make my layers transparent. Only the top most layer > is visible, and it is blocking out the underlying layers. I've tried > transparent:true and format both gif & png. Also tried > isBaseLayer:false. (example layer below). The layers show up > correctly in the layer control (that is to say they are accompanied by > check boxes as opposed to radio buttons.) > > I'm using MapServer 4.8.3 and OL 2.4-rc4 & rc5 Can you make a transparent image via a WMS request? (Check it by changing the background color in your browser, for example, and then viewing the image, and changing the parameters until it's transparent.) If you can't, your problem is at the mapfile level. If you can, send back a URL, and then we can work backwards from that. Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Mon May 28 07:13:09 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? Message-ID: <465AB945.90703@hostgis.com> Hi, all. What does "couldn't calculate tile index for layer" mean? I can't find anything in Google... An error occurred: couldn't calculate tile index for layer imagery from ([-123.890888, 40.587201, -123.846943, 40.631146999999999]) File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line 479, in cgiHandler format, image = service.dispatchRequest( params, path_info, req_method, host ) File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line 395, in dispatchRequest tile = WMS(self).parse(params, path_info, host) File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line 120, in parse return self.getMap(param) File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line 127, in getMap raise Exception( -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bartvde at osgis.nl Mon May 28 08:03:59 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? In-Reply-To: <465AB945.90703@hostgis.com> References: <465AB945.90703@hostgis.com> Message-ID: <465AC52F.6070607@osgis.nl> This means your settings in tilecache.cfg differ from the settings in your OpenLayers javascript client code. Mostly things like resolutions and maxExtent. Check to see if those are exactly the same. Best regards, Bart Gregor Mosheh schreef: > Hi, all. > What does "couldn't calculate tile index for layer" mean? I can't find > anything in Google... > > > An error occurred: couldn't calculate tile index for layer imagery from > ([-123.890888, 40.587201, -123.846943, 40.631146999999999]) > File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line > 479, in cgiHandler > format, image = service.dispatchRequest( params, path_info, > req_method, host ) > File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line > 395, in dispatchRequest > tile = WMS(self).parse(params, path_info, host) > File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line > 120, in parse > return self.getMap(param) > File "/usr/lib64/python2.4/site-packages/TileCache/Service.py", line > 127, in getMap > raise Exception( > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From darrencope at gmail.com Mon May 28 08:06:10 2007 From: darrencope at gmail.com (Darren Cope) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Hyperlinked Features In-Reply-To: <20070525230328.GA29639@metacarta.com> References: <10f4de780705251528w41ef4927ud5cdb3ec461cbd90@mail.gmail.com> <20070525230328.GA29639@metacarta.com> Message-ID: <10f4de780705280506o1f61fd4lc2a1d6d31d03c986@mail.gmail.com> Hi Christopher, Thanks for the link. That is the closest example I could find as well. However, my JavaScript knowledge is minimal, so I can't seem to figure it out. Is there an easier way to accomplish what I want, or will I have to dig into learning JavaScript? I have seem some OpenLayers demos with an "identify" tool. Perhaps that is the way to go, with a hyperlink showing up as one of the identify results? Anyone else have any thoughts? Darren On 5/25/07, Christopher Schmidt wrote: > On Fri, May 25, 2007 at 06:28:54PM -0400, Darren Cope wrote: > > Hi all, > > > > I'm new to the OpenLayers world, but have set up a little application > > that displays exactly what I want it to. You can see it here: > > http://dmcope.freeshell.org/gis/multiple4.html > > > > I'm looking for a way to hyperlink each individual line feature (I'm > > serving them as a WMS via MapServer) to a webpage, so that a user > > could zoom in on the map, then click on a canoe trip feature in order > > to be taken to the info page for that particular trip. I have the URL > > stored as an attribute for each feature (currently shapefile format > > behind Mapserver.) What is the best way to accomplish this? > > http://openlayers.org/dev/examples/getfeatureinfo.html is probably a > good starting point: it will let you do a query to the WMS server. (This > isn't a complete solution, but it may help point you in the right > direction.) > > Cool map. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Darren Cope darrencope@gmail.com http://dmcope.freeshell.org From richard.greenwood at gmail.com Mon May 28 09:53:09 2007 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Hyperlinked Features In-Reply-To: <10f4de780705280506o1f61fd4lc2a1d6d31d03c986@mail.gmail.com> References: <10f4de780705251528w41ef4927ud5cdb3ec461cbd90@mail.gmail.com> <20070525230328.GA29639@metacarta.com> <10f4de780705280506o1f61fd4lc2a1d6d31d03c986@mail.gmail.com> Message-ID: On 5/28/07, Darren Cope wrote: > Hi Christopher, > > Thanks for the link. That is the closest example I could find as > well. However, my JavaScript knowledge is minimal, so I can't seem to > figure it out. Is there an easier way to accomplish what I want, or > will I have to dig into learning JavaScript? I have seem some > OpenLayers demos with an "identify" tool. Perhaps that is the way to > go, with a hyperlink showing up as one of the identify results? > > Anyone else have any thoughts? > > Darren The getFeatureInfo functionality is an example of an "identify" tool. I'm not sure that it will get you exactly what you want (open a new page) but it may get you close enough. It will display attribute data from your canoe trip layer, and from that you could link to a page. In your mapserver map file you need to define a TEMPLATE for your canoe trip layer. The template is a separate HTML file like: Name of trip: [NAME]
    Date: [DATE]
    Link: href="[HREF]">Click to see my pictures where NAME, DATE, and HREF are columns in your shapefile (or whatever format your canoe trip data is in). Mapserver will substitute in the correct values for the [parameters]. The user clicks on a line segment and the attribute data gets put into the div. Keep paddling, Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From richard.greenwood at gmail.com Mon May 28 10:05:15 2007 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent In-Reply-To: References: Message-ID: On 5/28/07, Arnd Wippermann wrote: > Hello Richard, > > I think, for Mapserver you must take the parameter "map_transparent" : "ON". > > Mit freundlichen Gr?ssen That is it! Thanks you / Danke. Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From f.husson at brgm.fr Mon May 28 10:22:30 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? References: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> <20070524135809.GA22136@metacarta.com> <4044C732AA0FB847B32A199C8AEBEB650109977B@RES005.brgm.fr> Message-ID: <4044C732AA0FB847B32A199C8AEBEB65010C3044@RES005.brgm.fr> Thanks for this configuration Pierre, it works for me too ! However, the GML result of this getFeature is a Point, but the picture on the map is not a point but a marker. Can I modify this ? And, for this WFS url : http://swing.brgm.fr/cgi-bin/limitesadm?service=wfs&version=1.0.0&request=getfeature&typename=departments&maxFeatures=1 the result is a Polygon, but nothing is drawing on the map whith this configuration : layer2 = new OpenLayers.Layer.WFS( "departm", "http://swing.brgm.fr/cgi-bin/limitesadm", {typename: 'departments', maxfeatures: 1}, { featureClass: OpenLayers.Feature.WFS}); map.addLayer(layer2); Why ? Regards. Florian -----Message d'origine----- De : Pierre GIRAUD [mailto:bluecarto@gmail.com] Envoy? : vendredi 25 mai 2007 12:26 ? : Husson Florian Cc : users@openlayers.org Objet : Re: [OpenLayers-Users] create a layer from a getFeature url ? This worked for me with this configuration : function init(){ OpenLayers.ProxyHost="/cgi-bin/proxy.cgi/?url="; map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); layer = new OpenLayers.Layer.WFS( "Owl Survey", "http://swing.brgm.fr/cgi-bin/carrieres", {typename: "exploitationsponctualsproduction", maxfeatures: 1}, { featureClass: OpenLayers.Feature.WFS}); map.addLayer(layer); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.zoomToMaxExtent(); } Please note that you probably need a proxy if the domain of you html page and the one for the WFS server are not the same. Regards. Pierre On 5/25/07, Husson Florian wrote: > My goal is to display on the map, the geometry result of a WFS getFeature. > > Something like that don't work, and I don't see how to do that... > > layer2 = new OpenLayers.Layer.WFS( "Quarry", > "http://swing.brgm.fr/cgi-bin/carrieres?request=getfeature&service=wfs&version=1.0.0&typename=exploitationsponctualsproduction&maxFeatures=1", > { typename: 'exploitationsponctualsproduction'}, > OpenLayers.Feature.WFS ); map.addLayer(layer2); > > I looked at getfeatureinfo.html, but I didn't find anything. > > I looked at OpenLayers.Format.GML too and that must be the thing which I need, but I don't know how to make use of it and at which time I must call upon my WFS getFeature. > > > Regards, > Florian HUSSON. > > > > -----Message d'origine----- > De : Christopher Schmidt [mailto:crschmidt@metacarta.com] Envoy? : > jeudi 24 mai 2007 15:58 ? : Husson Florian Cc : users@openlayers.org > Objet : Re: [OpenLayers-Users] create a layer from a getFeature url ? > > On Thu, May 24, 2007 at 03:29:06PM +0200, Husson Florian wrote: > > Hello, > > > > I work with openlayers 2.4 and geoserver 1.5. > > > > In my application, the user must type an WFS url (getFeature) in a > > textarea, and when he validate, I would like to draw the feature(s) > > result. > > Is it possible? > > Yes. OpenLayers.Format.GML and the getfeatureinfo.html file in the examples directory are probably both helpful. > > Regards, > -- > Christopher Schmidt > MetaCarta > ********************************************************************** > ************************ > > Pensez ? l'environnement avant d'imprimer ce message Think > Environment before printing > > Le contenu de ce m?l et de ses pi?ces jointes est destin? ? l'usage > exclusif du (des) destinataire(s) d?sign?(s) comme tel(s). > En cas de r?ception par erreur, le signaler ? son exp?diteur et ne pas en divulguer le contenu. > L'absence de virus a ?t? v?rifi?e ? l'?mission, il convient n?anmoins > de s'assurer de l'absence de contamination ? sa r?ception. > > The contents of this email and any attachments areconfidential. They > are intended for the named recipient(s) only. > If you have received this email in error please notifythe system > manager or the sender immediately and do not disclose the contents to anyone or make copies. > eSafe scanned this email for viruses, vandals and malicious content. > > ********************************************************************** > ************************ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > ********************************************************************************************** Pensez ? l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce m?l et de ses pi?ces jointes est destin? ? l'usage exclusif du (des) destinataire(s) d?sign?(s) comme tel(s). En cas de r?ception par erreur, le signaler ? son exp?diteur et ne pas en divulguer le contenu. L'absence de virus a ?t? v?rifi?e ? l'?mission, il convient n?anmoins de s'assurer de l'absence de contamination ? sa r?ception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** From crschmidt at metacarta.com Mon May 28 10:25:54 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] create a layer from a getFeature url ? In-Reply-To: <4044C732AA0FB847B32A199C8AEBEB65010C3044@RES005.brgm.fr> References: <4044C732AA0FB847B32A199C8AEBEB6501099222@RES005.brgm.fr> <20070524135809.GA22136@metacarta.com> <4044C732AA0FB847B32A199C8AEBEB650109977B@RES005.brgm.fr> <4044C732AA0FB847B32A199C8AEBEB65010C3044@RES005.brgm.fr> Message-ID: <20070528142554.GA1063@metacarta.com> On Mon, May 28, 2007 at 04:22:30PM +0200, Husson Florian wrote: > Thanks for this configuration Pierre, it works for me too ! > > However, the GML result of this getFeature is a Point, but the picture on the map is not a point but a marker. Can I modify this ? > > > And, for this WFS url : > http://swing.brgm.fr/cgi-bin/limitesadm?service=wfs&version=1.0.0&request=getfeature&typename=departments&maxFeatures=1 > > the result is a Polygon, but nothing is drawing on the map whith this configuration : > > layer2 = new OpenLayers.Layer.WFS( "departm", > "http://swing.brgm.fr/cgi-bin/limitesadm", > {typename: 'departments', maxfeatures: 1}, > { featureClass: OpenLayers.Feature.WFS}); > map.addLayer(layer2); Polygons can't be drawn with the 'featureClass' option. Drop the featureClass. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon May 28 13:11:37 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Where Presentation Message-ID: <20070528171137.GA7615@metacarta.com> http://openlayers.org/presentations/wherepres/ This is what I think I'm going to use as my 'sildes' up on stage at Where. If you have any problems with anything in there, now is the time to speak :) Regards, -- Christopher Schmidt MetaCarta From benafia_olfa at yahoo.fr Mon May 28 16:32:36 2007 From: benafia_olfa at yahoo.fr (ben afia olfa) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] proxy host Message-ID: <20070528203236.48926.qmail@web27313.mail.ukl.yahoo.com> Hi all , GetFeatureinfo dosen't work for me at all .the problem is with the proxy host can Any body tell me how to set a proxy host please ? and where to copy the file proxy.cgi ? ____________________________________________________________________________________________ D?couvrez le blog Yahoo! Mail : derni?res nouveaut?s, astuces, conseils.. et vos r?actions ! http://blog.mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070528/4a24bd67/attachment.html From richard.greenwood at gmail.com Mon May 28 22:53:18 2007 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] layers not transparent [sum] Message-ID: My MapServer layers were not transparent - they entirely masked each other out. The problem had nothing to do with OpenLayers. In the MapServer map file, one needs to set: TRANSPARENT ON or it can be passed to MapServer as 'map_transparent':'ON' You may also need: {"isBaseLayer":false} In typical MapServer applications, all of the requested layers are combined into a single image on the server and that image is delivered to the client (browser), so transparency is not usually a consideration. With OpenLayers, each layer is delivered to the client as a separate image, and OpenLayers combines them. Hence the need for transparency. Thanks for help from Christian, Brad, Christopher, and Arnd, Best regards, Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From francois.vanderbiest at camptocamp.com Tue May 29 04:08:11 2007 From: francois.vanderbiest at camptocamp.com (=?ISO-8859-1?Q?Fran=E7ois_Van_Der_Biest?=) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Demos for OL Presentation In-Reply-To: <20070527154018.GA15245@metacarta.com> References: <20070527154018.GA15245@metacarta.com> Message-ID: <86169bba0705290108n5d0f5fbexf46b5af7862d4c4a@mail.gmail.com> Hi Christopher, Maybe it's too late, maybe it's not ? Well, I hope you'll get it for your demo : http://www.nuitdesmusees.culture.fr/ First page is a static image ... a clic on a european country leads you to a page with OL customized to our client needs (The French Ministry of Culture). We used a pre-2.4 version of OL. Behind stands a TileCache which served around 3 million tiles in one day (may 19th). Regards, Fran?ois Van Der Biest Camptocamp SA 2007/5/27, Christopher Schmidt : > > I'm going to be getting up on stage in front of several thousand people > on Tuesday and talking for 5 minutes about OpenLayers. One of the things > I'd like to do is do a quick through a half dozen demos of users of > OpenLayers: There won't be any visible URLs, just quick video snapshots > of using the site. > > If you have a site like this you would like to show up, send links! I > can give an organization name, product name, and a short demo -- if > you'd like your URL to go with it, I can add it to the page I'm going to > be creating in the OpenLayers wiki for links, too. > > If the demo is kinda flakey, that's not a huge deal: I'm going to be > recording everything to video, so so long as I can get a good 15 second > snapshot of working functionality, it'll be fine. > > If you don't want your URL to be public, but you want the free > advertising, you can email me off list. > > I'm most interested in good-looking demos with some functionality over > the top of the standard OpenLayers examples. > > I plan to make the video tomorrow morning at the latest, so the sooner > you get in, the better chance you have :) > > Also, if you're going to be at Where, do you have any interest in a BoF > event? It looks like there might still be slots open for one on Tuesday > night -- and Tim/Erik/Schuyler/I are going to be at where, so it might > be a good chance to get together. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070529/9dfa2400/attachment.html From yjacolin at free.fr Tue May 29 05:52:59 2007 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] error 404 Message-ID: <200705291152.59566.yjacolin@free.fr> Hi, The reference page doesn't seems exist, and they are some link to this page (in http://trac.openlayers.org/wiki/Documentation, all API links) Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From crschmidt at metacarta.com Tue May 29 11:10:16 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] OpenLayers 2.4 Release Message-ID: <20070529151016.GA11540@metacarta.com> The OpenLayers Development Team is proud to announce the final release of OpenLayers 2.4! Included in this release: * In-browser vector support using SVG/VML * Reworked controls to better support extensibility * Added support for toolbar style control deployment * Substantial enhancements to existing Layer classes, particularly WFS * A massive effort to track down and eliminate memory leaks of JavaScript objects and DOM node * Tons and tons of bug fixes - a total of 183 tickets closed, more than any other release. OpenLayers 2.4 has seen major contributions from the community, including almost all of the work in creating the vector support. This development has included large contributions from employees of camptocamp, LISAsoft, DM Solutions, and MetaCarta, in addition to a large funding effort by OpenMNND in helping to finalize and integrate the OpenLayers 2.4 Vector Branch into trunk. This release has truly demonstrated the power of the open source development method for the OpenLayers project, and I am thankful to all the users, developers, testers, etc. who have made this possible. To run 2.4 in your applications, include the following tag in your OpenLayers-powered page: Official Release Notes including all features and bug fixes can be found at http://trac.openlayers.org/wiki/Release/2.4/Notes Bug reports can be filed in Trac, under the 2.4 version. As always, thanks for any and all feedback... and thanks for using OpenLayers! Regards, -- Christopher Schmidt MetaCarta From richard at cloudamber.com Tue May 29 12:13:12 2007 From: richard at cloudamber.com (Richard Thurbin) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Drawing polygons In-Reply-To: <6ae3fb590703141723g55c29b28t85a75572564b9020@mail.gmail.com> Message-ID: <7ADE915C-F695-461E-BFD7-DB6E5F947C44@hustle.mail.cloudamber.com> Well done all on the v2.4 release. Regarding the EditingToolbar, I have implemented the openlayers example: http://dev.openlayers.org/sandbox/vector-2.4/examples/editingtoolbar.html Here: http://83.104.224.181/test/pages/admin/webform1.aspx. After some investigation, it seems the red bit below of the new layer code is making the toolbar not work (except pan). layer = new OpenLayers.Layer.WMS("Map", " http://models.itoworld.com/map/wms", { 'layers': 'vwa,vpa,via,r,rw,vlb', 'srs': 'EPSG:27700', 'format': 'image/png', 'transparent': 'off' }, { 'isBaseLayer': true, 'maxExtent': new OpenLayers.Bounds(0,0,700000,1100000), 'maxResolution': 1000, 'projection': 'EPSG:27700' } ); If I take the red out it works (but the layer is useless). Any ideas? Regards, Richard Thurbin Mobile: +44 7917 704 145 VOIP: +44 8458 905 299 Fax: +44 8700 518 913 Email: richard.thurbin@cloudamber.com Cloud Amber Research and Development Amber House Brockley Road Elsworth Cambridge CB23 4JS United Kingdom http://www.cloudamber.com http://www.carboncalculator.info http://www.qbust.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070529/4037c362/attachment.html From gregor at hostgis.com Tue May 29 15:41:26 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? In-Reply-To: <465AC52F.6070607@osgis.nl> References: <465AB945.90703@hostgis.com> <465AC52F.6070607@osgis.nl> Message-ID: <465C81E6.9010105@hostgis.com> > Gregor Mosheh schreef: >> What does "couldn't calculate tile index for layer" mean? I can't find >> anything in Google... >> An error occurred: couldn't calculate tile index for layer imagery >> from ([-123.890888, 40.587201, -123.846943, 40.631146999999999]) Bart van den Eijnden (OSGIS) wrote: > This means your settings in tilecache.cfg differ from the settings in > your OpenLayers javascript client code. > Mostly things like resolutions and maxExtent. Well, I am stumped. I'm handy with Mapserver, but my primary vocation is DBA and sysadmin, so I admit to being out of my usual waters. Is there some documentation I can read to get up to speed? I can't find the documentation for TileCache (just a readme with vague mention of some params) and OpenLayers seems to only have the class documentation which is sparse and incomplete, so I'm a bit lost as to my suggested reading... I've been advised to "check the maxExtent and resolutions" but with no documentation... My map, the broken one: http://69.59.158.10/openlayers/ The error: An error occurred: couldn't calculate tile index for layer cities from ([-123.803009, 40.587181999999999, -123.715118, 40.675072999999998]) My tilecache.cfg: [cache] type=DiskCache base=/maps/cache [schematic] debug=false extension=jpeg type=WMSLayer url=http://labs.metacarta.com/wms/vmap0 layers=basic bbox=-124.15456,40.41142,-123.7844,40.61528 [imagery] debug=false extension=jpeg type=MapServerLayer mapfile=/maps/wms/wms.map layers=imagery bbox=-124.15456,40.41142,-123.7844,40.61528 [highways] extension=gif debug=false type=MapServerLayer mapfile=/maps/wms/wms.map layers=highways bbox=-124.15456,40.41142,-123.7844,40.61528 [cities] debug=false extension=gif type=MapServerLayer mapfile=/maps/wms/wms.map layers=cities bbox=-124.15456,40.41142,-123.7844,40.61528 From crschmidt at metacarta.com Tue May 29 15:57:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? In-Reply-To: <465C81E6.9010105@hostgis.com> References: <465AB945.90703@hostgis.com> <465AC52F.6070607@osgis.nl> <465C81E6.9010105@hostgis.com> Message-ID: <20070529195728.GA12561@metacarta.com> On Tue, May 29, 2007 at 01:41:26PM -0600, Gregor Mosheh wrote: > My map, the broken one: > http://69.59.158.10/openlayers/ > > The error: > An error occurred: couldn't calculate tile index for layer cities from > ([-123.803009, 40.587181999999999, -123.715118, 40.675072999999998]) > > My tilecache.cfg: > > [cache] > type=DiskCache > base=/maps/cache > > [schematic] > debug=false > extension=jpeg > type=WMSLayer > url=http://labs.metacarta.com/wms/vmap0 > layers=basic > bbox=-124.15456,40.41142,-123.7844,40.61528 add here: maxResolution=1.40625 Also, for your overlays, add a 'reproject: false' option if they're tc overlays: layer = new OpenLayers.Layer.WMS("Cities", "/cgi-bin/tilecache.cgi?", {layers:'cities', format:'image/gif', transparent:'true' }, {reproject: false} ); Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Tue May 29 16:49:38 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? In-Reply-To: <20070529195728.GA12561@metacarta.com> References: <465AB945.90703@hostgis.com> <465AC52F.6070607@osgis.nl> <465C81E6.9010105@hostgis.com> <20070529195728.GA12561@metacarta.com> Message-ID: <465C91E2.4090209@hostgis.com> Ah, excellent. Again, Mr. Schmidt, you have saved my day. http://69.59.158.10/openlayers/ I did take an extra step, though, and change the MapServerLayer layers into WMSServer layers and pointed them at http://localhost/mapserv in the usual fashion. I presume that a wms driver will be slower than a mapfile driver, but I do enjoy the debugging ability and the pluggability for when we move the imagery hosting elsewhere. Besides, I plan to seed the cache anyway... So thank you again! Although my map now *works* I would like to go the extra step and *understand* what's going on here. I even volunteer to write up the Wiki page on what I had to go through, if this stuff isn't so obvious that it's not necessary. OL's FAQ entry about getting it to work with TC just says to read the README, so... :) [cities] debug=false extension=gif type=WMSLayer url=http://localhost/cgi-bin/mapserv?map=/maps/wms/wms.map layers=cities bbox=-124.15456,40.41142,-123.7844,40.61528 maxResolution=1.40625 These last 2 are what fixed it, and are what I don't get. Why would tilecache need to know the max extent? The WMS server will gladly serve up -180,-90,180,90 without an error (though of course Humboldt County isn't in fact visible). Is this a matter of OL making a request that TC refuses to serve, or what? And what is the maxResolution used for on TC's part? > Also, for your overlays, add a 'reproject: false' option if they're tc > overlays: Interesting; that does fix it and seems to be necessary. What does the reproject:false option accomplish? It wasn't necessary when I first set this stuff up and had it working, but evidently is necessary now... -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at metacarta.com Tue May 29 16:57:58 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] what does this error mean? In-Reply-To: <465C91E2.4090209@hostgis.com> References: <465AB945.90703@hostgis.com> <465AC52F.6070607@osgis.nl> <465C81E6.9010105@hostgis.com> <20070529195728.GA12561@metacarta.com> <465C91E2.4090209@hostgis.com> Message-ID: <20070529205758.GA12793@metacarta.com> On Tue, May 29, 2007 at 02:49:38PM -0600, Gregor Mosheh wrote: > [cities] > debug=false > extension=gif > type=WMSLayer > url=http://localhost/cgi-bin/mapserv?map=/maps/wms/wms.map > layers=cities > bbox=-124.15456,40.41142,-123.7844,40.61528 > maxResolution=1.40625 > > These last 2 are what fixed it, and are what I don't get. > > Why would tilecache need to know the max extent? The WMS server will > gladly serve up -180,-90,180,90 without an error (though of course > Humboldt County isn't in fact visible). Is this a matter of OL making a > request that TC refuses to serve, or what? > And what is the maxResolution used for on TC's part? Yes. TileCache only serves tiles in the setup you specify. The default OpenLayers maxResolution is 1.40625. The Default TileCache maxResolution is the width of the bounding box / 512 -- at the 'whole world', that's .703125, at your bbox, it's much much smaller than that. > > >Also, for your overlays, add a 'reproject: false' option if they're tc > >overlays: > > Interesting; that does fix it and seems to be necessary. What does the > reproject:false option accomplish? It wasn't necessary when I first set > this stuff up and had it working, but evidently is necessary now... reprojection is a functionality that makes sense for the commercial baselayers, but not for a wms baselayer. It's on by defaul, and shouldn't be. It ends up modifying the MWS requests by more than a single pixel, which TileCache then rejects as being an invalid tile -- you didn't notice that in the past, because the tiles are 'close enough' that they look right normally. This part is in the README for TileCache, as is info about maxResolutions, admittedly relatively small: """ The most important thing to do is to ensure that the OpenLayers Layer has the same resolutions and bounding box as your TileCache layer. You can define the resolutions in OpenLayers via the 'resolutions' option or the 'maxResolution' option on the layer. The maxExtent should be defined to match the bbox parameter of the TileCache layer. If you are using TileCache for overlays, you should set the 'reproject' option on the layer to 'false'. """ Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Tue May 29 17:25:54 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] min/max zoom Message-ID: <465C9A62.2010006@hostgis.com> Hi, all. Now that I'm past the killer problems, I can ask about features. :) Can I configure OL to only allow certain zoom levels? http://69.59.158.10/openlayers/ This map is set to 20 zoom levels, though I only like levels 11 through 20. The opening default is 12. I see the map.maxZoomLevel and max.MinZoomLevel settings, but these seem not to affect the ability to zoom. And I see the map.numZoomLevels setting, but that seems not to affect the range of zooms (from world to house) but only the number of steps. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Tue May 29 17:33:14 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] GeoRSS layer changes it name randomly Message-ID: <465C9C1A.6050106@hostgis.com> Hiya. :) I'm experiencing an odd behavior, which I suspect to be a bug. This map has a GeoRSS layer and popup markers. In the layer controller widget, the RSS layer's name will change spontaneously, which it definitely should not be doing. Should I file this as a bug, or is this supposed to happen? Procedure: * Open the map at http://69.59.158.10/openlayers/ * Open the layer control widget so you can see it when it happens. * Toggle to the Photo layer. * Note that the name of the RSS layer has changed. It consistently changes it names to Wolverton Gulch, which coincidentally is the first entry in the RSS data. The RSS data can be accessed at: http://69.59.158.10/openlayers/data.php -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at metacarta.com Tue May 29 17:56:47 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] min/max zoom In-Reply-To: <465C9A62.2010006@hostgis.com> References: <465C9A62.2010006@hostgis.com> Message-ID: <20070529215647.GA12972@metacarta.com> On Tue, May 29, 2007 at 03:25:54PM -0600, Gregor Mosheh wrote: > Hi, all. > Now that I'm past the killer problems, I can ask about features. :) > > Can I configure OL to only allow certain zoom levels? > http://69.59.158.10/openlayers/ > This map is set to 20 zoom levels, though I only like levels 11 through > 20. The opening default is 12. > > I see the map.maxZoomLevel and max.MinZoomLevel settings, but these seem > not to affect the ability to zoom. And I see the map.numZoomLevels > setting, but that seems not to affect the range of zooms (from world to > house) but only the number of steps. Set a maxResolution that's smaller. That makes the '0' level differently sized. 'auto' will make the map fit the maxExtent in the window exactly, but doesn't work with TileCache. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue May 29 17:58:39 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] GeoRSS layer changes it name randomly In-Reply-To: <465C9C1A.6050106@hostgis.com> References: <465C9C1A.6050106@hostgis.com> Message-ID: <20070529215839.GB12972@metacarta.com> On Tue, May 29, 2007 at 03:33:14PM -0600, Gregor Mosheh wrote: > Hiya. :) > > I'm experiencing an odd behavior, which I suspect to be a bug. > This map has a GeoRSS layer and popup markers. In the layer controller > widget, the RSS layer's name will change spontaneously, which it > definitely should not be doing. It's not spontaneously: when the layerswitcher redraws (when you change a layer visibility, for example), it updates the name from a heuristic based on the URL to being the first 'title' element in the feed. > Should I file this as a bug, or is this supposed to happen? Yep, it should be filed as a bug. Regards, -- Christopher Schmidt MetaCarta From rakunkel at ucdavis.edu Tue May 29 18:43:50 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] design advice Message-ID: <948B42E9-6619-484E-B911-A7522B4C99F6@ucdavis.edu> Hi, I'm in need of some design advice. My application uses a vector layer created via a WFS call with a Filter to query and display intersecting geometries. This generally works well, but I need to alter the Filter and reload the result frequently. So far, I've been destroying the vector layer and creating a new one each time. Is this an inefficient approach? and what sequence of methods should I use? I noticed there is a removeFeatures() and a destroyFeatures() function in vector.js. Should I just use destroy() and recreate the layer or use removeFeatures() and somehow reload the layer. I also use the selectFeature control - should it also be destroyed and recreated. Thoughts and sample code appreciated. Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070529/a4a64911/attachment.html From gregor at hostgis.com Tue May 29 19:29:57 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] min/max zoom In-Reply-To: <20070529215647.GA12972@metacarta.com> References: <465C9A62.2010006@hostgis.com> <20070529215647.GA12972@metacarta.com> Message-ID: <465CB775.7060706@hostgis.com> Christopher Schmidt wrote: > Set a maxResolution that's smaller. That makes the '0' level differently > sized. 'auto' will make the map fit the maxExtent in the window > exactly, but doesn't work with TileCache. Well, that kinda worked. I guessed about the resolution, and probably got it wrong: maxresolution = (smaller of height/width of map, in degrees) / 256 In this case: ( -124.15456 - -123.7844 ) / 256 = 0.0014459375 This does set the center, kinda. I guess I'll have to tweak and tweak for a few hours to get it just right. But it's a start. But it does create a new problem. Sigh. If I zoom out, or if I zoom in a few levels and pan to the edge, it now created pink "nuh-uh tiles" at the edges. Examples: zoom level 6, west edge zoom level 0, south side What's with that? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From lancelot at inetnebr.com Wed May 30 07:05:44 2007 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Demos for OL Presentation In-Reply-To: <20070527154018.GA15245@metacarta.com> References: <20070527154018.GA15245@metacarta.com> Message-ID: <465D5A88.2020403@inetnebr.com> Christopher Schmidt wrote: > I'm going to be getting up on stage in front of several thousand people > on Tuesday and talking for 5 minutes about OpenLayers. One of the things > I'd like to do is do a quick through a half dozen demos of users of > OpenLayers: There won't be any visible URLs, just quick video snapshots > of using the site. > > If you have a site like this you would like to show up, send links! TNTmap is certainly a possibility http://www.microimages.com/tntmap > I > can give an organization name, product name, and a short demo -- if > you'd like your URL to go with it, I can add it to the page I'm going to > be creating in the OpenLayers wiki for links, too. > Thought there was already a page of this type...? From bluecarto at gmail.com Wed May 30 08:41:08 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] design advice In-Reply-To: <948B42E9-6619-484E-B911-A7522B4C99F6@ucdavis.edu> References: <948B42E9-6619-484E-B911-A7522B4C99F6@ucdavis.edu> Message-ID: Did you try having something similar to WMS reload hacks. I mean using mergeNewParams() with a randomized parameter. http://openlayers.org/pipermail/users/2007-April/001455.html You may also have a look at the refresh method available for vector layers. Regards. Pierre On 5/30/07, Roger Kunkel wrote: > > Hi, > > I'm in need of some design advice. > > My application uses a vector layer created via a WFS call with a Filter to > query and display intersecting geometries. > This generally works well, but I need to alter the Filter and reload the > result frequently. So far, I've been destroying the > vector layer and creating a new one each time. Is this an inefficient > approach? and what sequence of methods should I use? > I noticed there is a removeFeatures() and a destroyFeatures() function in > vector.js. > > Should I just use destroy() and recreate the layer or use removeFeatures() > and somehow reload the layer. > I also use the selectFeature control - should it also be destroyed and > recreated. > > Thoughts and sample code appreciated. > > > > > Roger Kunkel > CERES Program > Dept. of Land Air & Water Resources > UC Davis > rakunkel@ucdavis.edu > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From tom at ukbassline.co.uk Wed May 30 10:16:44 2007 From: tom at ukbassline.co.uk (Tom) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] maxExtent has no properties In-Reply-To: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> References: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> Message-ID: <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> Hi all, I'm currently trying to get the co-ordinates of the origin of the map in order to utilise the geoserver meta tiler extension to WMS see: http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters These co-ordinates must be included in the WMS URL so I'm doing the following: ... var map; function init() { var options = {resolutions:[72,36,18,9.6,4.8,2.4,1.2,0.6,0.3,0.15,0.125],maxExtent:new OpenLayers.Bounds (0,0,2000000,2000000),maxResolution:'auto',units:'meters',projection:'EPSG:27700',controls:[]}; map = new OpenLayers.Map( $('map'), options ); map.setCenter(new OpenLayers.LonLat(543443,255213), 7); var olextent = map.getExtent(); var origincoords=toString(olextent.bottom) + ',' + toString(olextent.left); ... and I'm getting the following error: maxExtent has no properties isValidLonLat(lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME=OpenLayers.LonLat )Map.js (line 933) setCenter( lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME= OpenLayers.LonLat , 7, undefined, undefined)Map.js (line 804) init() classexample.php (line 11) onload(load ) classexample.php (line 1) valid = maxExtent.containsLonLat(lonlat); Any ideas? cheers, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070530/d678a140/attachment.html From crschmidt at metacarta.com Wed May 30 10:49:43 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] maxExtent has no properties In-Reply-To: <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> References: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> Message-ID: <20070530144943.GC18498@metacarta.com> On Wed, May 30, 2007 at 03:16:44PM +0100, Tom wrote: > maxExtent has no properties > isValidLonLat(lon=543443,lat=255213 lon=543443 lat=255213 > CLASS_NAME=OpenLayers.LonLat > )Map.js (line 933) > setCenter( lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME= > OpenLayers.LonLat , 7, undefined, undefined)Map.js (line 804) > init() classexample.php (line 11) > onload(load ) classexample.php (line 1) > valid = maxExtent.containsLonLat(lonlat); > > Any ideas? Gotta have a layer. Add a base layer, and give it another go. Regards, -- Christopher Schmidt MetaCarta From tom at ukbassline.co.uk Wed May 30 11:01:48 2007 From: tom at ukbassline.co.uk (Tom) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] maxExtent has no properties In-Reply-To: <20070530144943.GC18498@metacarta.com> References: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> <20070530144943.GC18498@metacarta.com> Message-ID: <4fe6dd700705300801h192aa9e6p84227726415f0ae8@mail.gmail.com> Ah interesting, in this case that's ok because I'm not using Geoserver for the base layer but if I was I'd have a catch 22. Can't use the new feature because I need a layer to get the bounds but I need the bounds to request the layer! On 5/30/07, Christopher Schmidt wrote: > > On Wed, May 30, 2007 at 03:16:44PM +0100, Tom wrote: > > maxExtent has no properties > > isValidLonLat(lon=543443,lat=255213 lon=543443 lat=255213 > > CLASS_NAME=OpenLayers.LonLat > > )Map.js (line 933) > > setCenter( lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME= > > OpenLayers.LonLat , 7, undefined, undefined)Map.js (line 804) > > init() classexample.php (line 11) > > onload(load ) classexample.php (line 1) > > valid = maxExtent.containsLonLat(lonlat); > > > > Any ideas? > > Gotta have a layer. Add a base layer, and give it another go. > > Regards, > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070530/d60aea28/attachment.html From rakunkel at ucdavis.edu Wed May 30 12:19:21 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] design advice In-Reply-To: References: <948B42E9-6619-484E-B911-A7522B4C99F6@ucdavis.edu> Message-ID: <46F3D3D9-2E64-4725-AB59-3917A44E347C@ucdavis.edu> Thanks, I have seen the mergeNewParams() method mentioned in this list before. I'm a little unclear on how to apply to to a WFS layer with a Filter param. Anyone have an example? On May 30, 2007, at 5:41 AM, Pierre GIRAUD wrote: > Did you try having something similar to WMS reload hacks. I mean using > mergeNewParams() with a randomized parameter. > http://openlayers.org/pipermail/users/2007-April/001455.html > > You may also have a look at the refresh method available for vector > layers. > > Regards. > > Pierre > > On 5/30/07, Roger Kunkel wrote: >> >> Hi, >> >> I'm in need of some design advice. >> >> My application uses a vector layer created via a WFS call with a >> Filter to >> query and display intersecting geometries. >> This generally works well, but I need to alter the Filter and >> reload the >> result frequently. So far, I've been destroying the >> vector layer and creating a new one each time. Is this an inefficient >> approach? and what sequence of methods should I use? >> I noticed there is a removeFeatures() and a destroyFeatures() >> function in >> vector.js. >> >> Should I just use destroy() and recreate the layer or use >> removeFeatures() >> and somehow reload the layer. >> I also use the selectFeature control - should it also be destroyed >> and >> recreated. >> >> Thoughts and sample code appreciated. >> >> >> >> >> Roger Kunkel >> CERES Program >> Dept. of Land Air & Water Resources >> UC Davis >> rakunkel@ucdavis.edu >> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu From rob.braswell at unh.edu Wed May 30 12:45:15 2007 From: rob.braswell at unh.edu (Bobby Braswell) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] OpenLayers.Layer.Image overlay? Message-ID: <65548752-1030-4539-B748-E5FD4E4AF57F@unh.edu> Hi- I have a png image that shows up nicely as a base layer, but I'd actually like to include it as an overlay. I think I just need to say "isBaseLayer: false" in the declaration, but can't figure out exactly how to do that. This is what I have now: navmap = new OpenLayers.Layer.Image( 'Nav', 'http://waage.sr.unh.edu/ data/13283_1.png', new OpenLayers.Bounds(-70.7700123,42.9445234,-70.5597821,43.1740090), new OpenLayers.Size(8563, 12740), {maxResolution: 'auto'} ); If I try to include this image as a mapserver WMS layer in the usual way, the resulting image quality (as it appears in the browser) is very poor for some reason. I mention this because perhaps there is some solution to the problem from that angle. I can't figure out why mapserver is generating an image that looks so much different from the original. Best, Rob Braswell University of New Hampshire From arnd.wippermann at web.de Wed May 30 13:25:00 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Drawing polygons In-Reply-To: <211BC620-B340-437C-9463-166A1F3C475F@hustle.mail.cloudamber.com> Message-ID: Hello Richard, if you put the bounds and the maxresolution into the map initalization it works. I have changed your script for testing. Put the layerswitcher control in your original script and you can see that the editable layer is inactive. If you zoom in, the layer gets activated. What the cause of this I don't know. I'm using 2.4 RC5. I hope that helps. Perhaps next week I can put my own example online. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ Editing Tool Example
    _____ Von: richard@cloudamber.com [mailto:richard@cloudamber.com] Gesendet: Mittwoch, 30. Mai 2007 01:28 An: arnd.wippermann@web.de Betreff: RE: [OpenLayers-Users] Drawing polygons Thanks Arnd. The next two lines in the code are exactly as the example: vlayer = new OpenLayers.Layer.Vector( "Editable" ); map.addLayer(vlayer); map.addControl(new OpenLayers.Control.EditingToolbar(vlayer)); but no joy... any chance of a link to your version to compare and contrast? TIA _____ From: arnd.wippermann@web.de [mailto:arnd.wippermann@web.de] Sent: 29 May 2007 23:11 To: 'Richard Thurbin' Subject: AW: [OpenLayers-Users] Drawing polygons Hello Richard, i would think, you need an editable vector layer, where to draw the features. I have used the same example to build an own test for drawing and then saving features in an ODBC DB and it works fine. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Richard Thurbin Gesendet: Dienstag, 29. Mai 2007 18:13 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] Drawing polygons Well done all on the v2.4 release. Regarding the EditingToolbar, I have implemented the openlayers example: http://dev.openlayers.org/sandbox/vector-2.4/examples/editingtoolbar.html Here: http://83.104.224.181/test/pages/admin/webform1.aspx. After some investigation, it seems the red bit below of the new layer code is making the toolbar not work (except pan). layer = new OpenLayers.Layer.WMS("Map", " http://models.itoworld.com/map/wms", { 'layers': 'vwa,vpa,via,r,rw,vlb', 'srs': 'EPSG:27700', 'format': 'image/png', 'transparent': 'off' }, { 'isBaseLayer': true, 'maxExtent': new OpenLayers.Bounds(0,0,700000,1100000), 'maxResolution': 1000, 'projection': 'EPSG:27700' } ); If I take the red out it works (but the layer is useless). Any ideas? Regards, Richard Thurbin Mobile: +44 7917 704 145 VOIP: +44 8458 905 299 Fax: +44 8700 518 913 Email: richard.thurbin@cloudamber.com Cloud Amber Research and Development Amber House Brockley Road Elsworth Cambridge CB23 4JS United Kingdom http://www.cloudamber.com http://www.carboncalculator.info http://www.qbust.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070530/a6f35e98/attachment.html From rakunkel at ucdavis.edu Wed May 30 16:36:41 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] how to cleanly remove a vector layer Message-ID: I'm having trouble using and then removing a vector layer. removeFeatures() - produces errors saying that the feature is not defined when feature.geometry is referenced. calling destroy on the layer causes continuous mouse event errors - it seems that the getFeatureFromEvent method keeps getting called even though I've destroyed the layer. I've tried calling removeLayer before destroying it, to no avail. Any suggestions? Thank you. Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070530/2d53e439/attachment.html From crschmidt at metacarta.com Wed May 30 16:53:41 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] how to cleanly remove a vector layer In-Reply-To: References: Message-ID: <20070530205341.GA19633@metacarta.com> On Wed, May 30, 2007 at 01:36:41PM -0700, Roger Kunkel wrote: > > I'm having trouble using and then removing a vector layer. > removeFeatures() - produces errors saying that the feature is not > defined when feature.geometry is referenced. map.layers[1].removeFeatures(map.layers[1].features); works for me on http://openlayers.org/dev/examples/vector-features.html . > calling destroy on the layer causes continuous mouse event errors > - it seems that the getFeatureFromEvent method keeps getting called > even though I've destroyed the layer. Yep. That's a bug. The only piece of advice I have for that is to not destroy a layer if you have selectefatures handler on it :) I'll file it as a bug. Regards, -- Christopher Schmidt MetaCarta From rakunkel at ucdavis.edu Wed May 30 17:35:07 2007 From: rakunkel at ucdavis.edu (Roger Kunkel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] how to cleanly remove a vector layer In-Reply-To: <20070530205341.GA19633@metacarta.com> References: <20070530205341.GA19633@metacarta.com> Message-ID: <45BB80FF-11FE-4862-9C9B-7828E7D2212A@ucdavis.edu> Thanks for your reply. I was using the removeFeatures incorrectly. On May 30, 2007, at 1:53 PM, Christopher Schmidt wrote: > On Wed, May 30, 2007 at 01:36:41PM -0700, Roger Kunkel wrote: >> >> I'm having trouble using and then removing a vector layer. >> removeFeatures() - produces errors saying that the feature is not >> defined when feature.geometry is referenced. > > map.layers[1].removeFeatures(map.layers[1].features); works for me on > http://openlayers.org/dev/examples/vector-features.html . > >> calling destroy on the layer causes continuous mouse event errors >> - it seems that the getFeatureFromEvent method keeps getting called >> even though I've destroyed the layer. > > Yep. That's a bug. The only piece of advice I have for that is to not > destroy a layer if you have selectefatures handler on it :) I'll > file it > as a bug. > > Regards, > -- > Christopher Schmidt > MetaCarta Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu From mikequentel at yahoo.com Wed May 30 19:22:48 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] how to cleanly remove a vector layer Message-ID: <57677.95699.qm@web32506.mail.mud.yahoo.com> This might be of help to you... OpenLayers.Control.EraseFeatures = OpenLayers.Class.create(); OpenLayers.Control.EraseFeatures.prototype = OpenLayers.Class.inherit( OpenLayers.Control, { /** @type OpenLayers.Control.TYPES */ type: OpenLayers.Control.TYPE_BUTTON, trigger: function () { if (this.map) { var map = this.map; for(i = 0; i < map.layers.length; i++) { var currentLayer = map.layers[i]; if (currentLayer.isVector) { if (currentLayer.selectedFeatures.length > 0) { currentLayer.destroySelectedFeatures(); } else { currentLayer.destroyFeatures(); } //if (currentLayer.selectedFeatures... } //if (currentLayer.isVector... } // for (i = 0... } //if (this.map... }, /** @final @type String */ CLASS_NAME: "OpenLayers.Control.EraseFeatures" }); Mike Quentel ----- Original Message ---- From: Roger Kunkel To: Christopher Schmidt Cc: users@openlayers.org Sent: Wednesday, 30 May, 2007 3:35:07 PM Subject: Re: [OpenLayers-Users] how to cleanly remove a vector layer Thanks for your reply. I was using the removeFeatures incorrectly. On May 30, 2007, at 1:53 PM, Christopher Schmidt wrote: > On Wed, May 30, 2007 at 01:36:41PM -0700, Roger Kunkel wrote: >> >> I'm having trouble using and then removing a vector layer. >> removeFeatures() - produces errors saying that the feature is not >> defined when feature.geometry is referenced. > > map.layers[1].removeFeatures(map.layers[1].features); works for me on > http://openlayers.org/dev/examples/vector-features.html . > >> calling destroy on the layer causes continuous mouse event errors >> - it seems that the getFeatureFromEvent method keeps getting called >> even though I've destroyed the layer. > > Yep. That's a bug. The only piece of advice I have for that is to not > destroy a layer if you have selectefatures handler on it :) I'll > file it > as a bug. > > Regards, > -- > Christopher Schmidt > MetaCarta Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ From mikequentel at yahoo.com Wed May 30 19:28:36 2007 From: mikequentel at yahoo.com (Mike Quentel) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] how to cleanly remove a vector layer Message-ID: <335779.23051.qm@web32508.mail.mud.yahoo.com> Also, add the following to OpenLayers.Layer.Vector: destroySelectedFeatures: function () { for (var i = (this.selectedFeatures.length - 1); i >= 0; i--) { var selectedFeature = this.selectedFeatures[i]; this.selectedFeatures = OpenLayers.Util.removeItem(this.selectedFeatures, selectedFeature); this.renderer.eraseGeometry(selectedFeature.geometry); } }, Mike Quentel ----- Original Message ---- From: Mike Quentel To: Roger Kunkel Cc: users@openlayers.org Sent: Wednesday, 30 May, 2007 5:22:48 PM Subject: Re: [OpenLayers-Users] how to cleanly remove a vector layer This might be of help to you... OpenLayers.Control.EraseFeatures = OpenLayers.Class.create(); OpenLayers.Control.EraseFeatures.prototype = OpenLayers.Class.inherit( OpenLayers.Control, { /** @type OpenLayers.Control.TYPES */ type: OpenLayers.Control.TYPE_BUTTON, trigger: function () { if (this.map) { var map = this.map; for(i = 0; i < map.layers.length; i++) { var currentLayer = map.layers[i]; if (currentLayer.isVector) { if (currentLayer.selectedFeatures.length > 0) { currentLayer.destroySelectedFeatures(); } else { currentLayer.destroyFeatures(); } //if (currentLayer.selectedFeatures... } //if (currentLayer.isVector... } // for (i = 0... } //if (this.map... }, /** @final @type String */ CLASS_NAME: "OpenLayers.Control.EraseFeatures" }); Mike Quentel ----- Original Message ---- From: Roger Kunkel To: Christopher Schmidt Cc: users@openlayers.org Sent: Wednesday, 30 May, 2007 3:35:07 PM Subject: Re: [OpenLayers-Users] how to cleanly remove a vector layer Thanks for your reply. I was using the removeFeatures incorrectly. On May 30, 2007, at 1:53 PM, Christopher Schmidt wrote: > On Wed, May 30, 2007 at 01:36:41PM -0700, Roger Kunkel wrote: >> >> I'm having trouble using and then removing a vector layer. >> removeFeatures() - produces errors saying that the feature is not >> defined when feature.geometry is referenced. > > map.layers[1].removeFeatures(map.layers[1].features); works for me on > http://openlayers.org/dev/examples/vector-features.html . > >> calling destroy on the layer causes continuous mouse event errors >> - it seems that the getFeatureFromEvent method keeps getting called >> even though I've destroyed the layer. > > Yep. That's a bug. The only piece of advice I have for that is to not > destroy a layer if you have selectefatures handler on it :) I'll > file it > as a bug. > > Regards, > -- > Christopher Schmidt > MetaCarta Roger Kunkel CERES Program Dept. of Land Air & Water Resources UC Davis rakunkel@ucdavis.edu _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html From woodbri at swoodbridge.com Wed May 30 21:47:55 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] maxExtent has no properties In-Reply-To: <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> References: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> Message-ID: <465E294B.2020501@swoodbridge.com> Tom wrote: > Hi all, > > I'm currently trying to get the co-ordinates of the origin of the map in > order to utilise the geoserver meta tiler extension to WMS see: > http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters These > co-ordinates must be included in the WMS URL so I'm doing the following: I ran into this error the other night and found that I had forgotten to set: map.addOptions({isBaseLayer: true}); which seemed to solve the problem. -Steve W. > ... > var map; > function init() > { > var options = > {resolutions:[72,36,18,9.6,4.8,2.4,1.2,0.6,0.3,0.15,0.125],maxExtent:new > OpenLayers.Bounds(0,0,2000000,2000000),maxResolution:'auto',units:'meters',projection:'EPSG:27700',controls:[]}; > map = new OpenLayers.Map( $('map'), options ); > map.setCenter(new OpenLayers.LonLat(543443,255213), 7); > var olextent = map.getExtent(); > var origincoords=toString(olextent.bottom) + ',' + toString(olextent.left); > ... > > and I'm getting the following error: > > maxExtent has no properties > isValidLonLat(lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME= > OpenLayers.LonLat)Map.js (line 933) > setCenter( lon=543443,lat=255213 lon=543443 lat=255213 > CLASS_NAME=OpenLayers.LonLat , 7, undefined, undefined)Map.js (line 804) > init() classexample.php (line 11) > onload(load ) classexample.php (line 1) > valid = maxExtent.containsLonLat(lonlat); > > Any ideas? > > cheers, > > Tom > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From lists at jpw.biz Wed May 30 23:49:41 2007 From: lists at jpw.biz (Mick Jagger) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] vector questions Message-ID: <20070530234941.0b147052.lists@jpw.biz> Hi, I'm new to OpenLayers and was trying to create some polygons and points using vectors and google maps. I keep getting an odd problem that whenever I pan the map in the Y direction the vector layer items move accordingly. However if I pan in the X direction, they stay in place. Markers never move, staying in place where defined. I saw a dev ticket regarding google maps problems, but it didn't describe the issue, is this same problem? Also, I've not found any docs or examples on creating a circle? Is there something available? Thanks, -- lists@jpw.biz -- From cheung.jackey at gmail.com Thu May 31 00:00:38 2007 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Meta layer and Partial labels Message-ID: <38F2366EAE91422DA8CC4AF0DF0C1216@jackey> Greetings. using meta layers helps me combat the edges effects, but after I used meta layers, labels are broken. many of the labels are partially invisible at the edge of tiles. is there any way to fix this issue? do I have to separate the labels into a different layer? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/d78f37fc/attachment.html From woodbri at swoodbridge.com Thu May 31 00:13:59 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Meta layer and Partial labels In-Reply-To: <38F2366EAE91422DA8CC4AF0DF0C1216@jackey> References: <38F2366EAE91422DA8CC4AF0DF0C1216@jackey> Message-ID: <465E4B87.1030207@swoodbridge.com> Jackey Cheung wrote: > > Greetings. > > using meta layers helps me combat the edges effects, but after I used > meta layers, labels are broken. many of the labels are partially > invisible at the edge of tiles. is there any way to fix this issue? do I > have to separate the labels into a different layer? If you are using mapserver to generate the images, set PARTIALS FALSE in the LABEL block. -Steve W From cheung.jackey at gmail.com Thu May 31 01:48:16 2007 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Meta layer and Partial labels References: <38F2366EAE91422DA8CC4AF0DF0C1216@jackey> <465E4B87.1030207@swoodbridge.com> Message-ID: <79C347937CDC477892C879A74312C64E@jackey> I did, and labels are quite normal until I use the meta layer. ----- Original Message ----- From: "Stephen Woodbridge" To: "Jackey Cheung" Cc: Sent: Thursday, May 31, 2007 12:13 Subject: Re: [OpenLayers-Users] Meta layer and Partial labels > Jackey Cheung wrote: >> >> Greetings. >> >> using meta layers helps me combat the edges effects, but after I used >> meta layers, labels are broken. many of the labels are partially >> invisible at the edge of tiles. is there any way to fix this issue? do I >> have to separate the labels into a different layer? > > If you are using mapserver to generate the images, set PARTIALS FALSE in > the LABEL block. > > -Steve W From tom at ukbassline.co.uk Thu May 31 04:33:59 2007 From: tom at ukbassline.co.uk (Tom) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] maxExtent has no properties In-Reply-To: <465E294B.2020501@swoodbridge.com> References: <4fe6dd700705300656w2a408502i31cf9b5b3a2c353@mail.gmail.com> <4fe6dd700705300716s6ad1b771rd2993ee7990f32bc@mail.gmail.com> <465E294B.2020501@swoodbridge.com> Message-ID: <4fe6dd700705310133o6ab2a4f0id88ac27f5d55e5c7@mail.gmail.com> It seems that the error actually comes from map.setCenter() and if a layer is added first all is well, while the addOptions() function seems to apply to layers rather than the map. I added that option to the map constructor and it made no difference. My problem now is just that I can get this to work but only after a layer has been added but ideally I need to know the origin before a layer is added. Maybe I can add a dummy layer? Apparently Geoserver now uses OpenLayers for it's demos and they use exactly what I'm trying to achieve so I'm going to have a look into how they've done it... thanks all. On 5/31/07, Stephen Woodbridge wrote: > > Tom wrote: > > Hi all, > > > > I'm currently trying to get the co-ordinates of the origin of the map in > > order to utilise the geoserver meta tiler extension to WMS see: > > http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters These > > co-ordinates must be included in the WMS URL so I'm doing the following: > > I ran into this error the other night and found that I had forgotten to > set: > > map.addOptions({isBaseLayer: true}); > > which seemed to solve the problem. > > -Steve W. > > > ... > > var map; > > function init() > > { > > var options = > > {resolutions:[72,36,18,9.6,4.8,2.4,1.2,0.6,0.3,0.15,0.125],maxExtent:new > > OpenLayers.Bounds > (0,0,2000000,2000000),maxResolution:'auto',units:'meters',projection:'EPSG:27700',controls:[]}; > > map = new OpenLayers.Map( $('map'), options ); > > map.setCenter(new OpenLayers.LonLat(543443,255213), 7); > > var olextent = map.getExtent(); > > var origincoords=toString(olextent.bottom) + ',' + toString( > olextent.left); > > ... > > > > and I'm getting the following error: > > > > maxExtent has no properties > > isValidLonLat(lon=543443,lat=255213 lon=543443 lat=255213 CLASS_NAME= > > OpenLayers.LonLat)Map.js (line 933) > > setCenter( lon=543443,lat=255213 lon=543443 lat=255213 > > CLASS_NAME=OpenLayers.LonLat , 7, undefined, undefined)Map.js (line 804) > > init() classexample.php (line 11) > > onload(load ) classexample.php (line 1) > > valid = maxExtent.containsLonLat(lonlat); > > > > Any ideas? > > > > cheers, > > > > Tom > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/2b91fa70/attachment.html From csengstock at gmail.com Thu May 31 05:00:08 2007 From: csengstock at gmail.com (Christian Sengstock) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] strange click events with internet explorer Message-ID: hi list, i extended the OpenLayers.Control.MouseToolbar with a new button takeing click events to create a new overlay in the map on the given point. I get the position like this: OpenLayers.Control.MouseToolbar.prototype = ... ... defaultMouseDown: function(evt) { ... var lonlat = this.map.getLonLatFromViewPortPx(evt.xy); // using these lonlat to create overlays. ... } This works fine for Firefox. With InternetExplorer however the click event (evt.xy) returns the wrong location. It seem like the offset of the map div element is not substracted from the xy pixel. The same problems occurs for the "zoombox" which is already implemented as a functionality in the MouseToolbar. Is this a known problem and is there maybe a workaround? I think the problem depends on where the map div is located in the DOM, because it worked properly when i tested the MouseToolbar with a very basic html page (just the map div). From robe.dnd at cityofboston.gov Thu May 31 09:31:25 2007 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D201979EE3@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob><20070518132117.GB16853@metacarta.com> <53F9CF533E1AA14EA1F8C5C08ABC08D201979EE3@ZDND.DND.boston.cob> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D201FC1406@ZDND.DND.boston.cob> Chris, First wanted to thank you again for your help on this. Switching to MassGIS WMS Aerial layers helped quite a bit in allowing to zoom in closer and also highlighting the position in firefox correctly. I'm using 2.5 by the way. Now I have a couple other issues which I'm not sure the best way to tackle. Here are some links for reference Gif interface http://dndmaps.cityofboston.gov/mapserv/dnd/htdocs/remsproperty.htm PNG interface http://dndmaps.cityofboston.gov/mapserv/dnd/htdocs/remspropertypng.htm This is a slightly different project from before, but I'm using basically the same tricks. If you type in say 18 intervale click search and then click on radio button Problem 1 Then click on a brown outlined parcel - in firefox - quite often it highlights the whole selected parcel black in both the png and gif interface. It doesn't do this in IE 7. Less often but sometimes in firefox when you select an aerial layer for display - it turns the view port black. I haven't been able to replicate this issue with the PNG interface. Problem 2 The png interface doesn't really work in IE 6. I know IE 6 doesn't really understand transparent PNGs and from a quick glance of the Open Layers code (I forget where) - it looks like there is a hack in place to compensate for that, but in all my efforts, I've never been able to get this to work in IE6. Is the only way to combat this to just check if the version of IE being run is less than 7 use GIF layers and otherwise use PNG, or is there a more elegant solution to that. Thanks, Regina ________________________________ From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Obe, Regina Sent: Friday, May 18, 2007 9:35 AM To: Christopher Schmidt Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox Chris, No problem. I just wanted to make sure I wasn't missing anything. I'll pursue using the other WMS layers. If it would help for me to test out the FF branch you have, I would be happy to do so. Thanks for a great product, Regina ________________________________ From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Fri 5/18/2007 9:21 AM To: Obe, Regina Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox On Fri, May 18, 2007 at 07:32:42AM -0400, Obe, Regina wrote: > I have a map that displays a Mapserver WMS of Abandoned property points > and when the user clicks on a red dot, it queries the WFS service to get > the detail of that section and overlays the WFS points as an extra > layer. > > In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems > a bit skewed off the mark. Am I doing something wrong or is this a > known issue. > > I'm using the OpenLayers version in CVS. > > Below is the link to my map. > > http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx The short answer is "You can't do that", unfortunately. Using the commercial layers as a base layer for WFS is not something that works in 2.4. WE're currently working on a couple of different solutions for this to be brought in after 2.4. Since you're in Massachusetts, depending on the type of information you're interested in from the maps, you may have o ther options for mapping -- the boston freemap, http://boston.freemap.in/ , offers decent quality road maps and supports a number of different projections, so you could use that as a base map instead. (I can help with that if need be.) If it's important to you to use commercial base layers, I have a branch of OpenLayers which will work in FF with the commercial base layers, however, I haven't yet made the neccesary changes to to the VML layer. So, you have a couple options: * Pursue using a WMS-basemap, via the Boston Freemap, or directly from MassGIS. (I can help with this.) * Wait for future developments which allow this usage. * Investigate using the SVG branch I talked about -- this one probably only makes sense if you have someone skilled in Javascript that you can talk to (whether that's you or someone else). I'm sorry for any inconvenience this may cause. Regards, -- Christopher Schmidt MetaCarta ________________________________ The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/7a3d0f22/attachment.html From robe.dnd at cityofboston.gov Thu May 31 09:40:10 2007 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] GML features not lining up in FireFox In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D201FC1406@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D201EE7A2D@ZDND.DND.boston.cob><20070518132117.GB16853@metacarta.com><53F9CF533E1AA14EA1F8C5C08ABC08D201979EE3@ZDND.DND.boston.cob> <53F9CF533E1AA14EA1F8C5C08ABC08D201FC1406@ZDND.DND.boston.cob> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D201FC1427@ZDND.DND.boston.cob> Slight correction - I meant 2.4 ________________________________ From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Obe, Regina Sent: Thursday, May 31, 2007 9:31 AM To: Christopher Schmidt Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox Chris, First wanted to thank you again for your help on this. Switching to MassGIS WMS Aerial layers helped quite a bit in allowing to zoom in closer and also highlighting the position in firefox correctly. I'm using 2.5 by the way. Now I have a couple other issues which I'm not sure the best way to tackle. Here are some links for reference Gif interface http://dndmaps.cityofboston.gov/mapserv/dnd/htdocs/remsproperty.htm PNG interface http://dndmaps.cityofboston.gov/mapserv/dnd/htdocs/remspropertypng..htm This is a slightly different project from before, but I'm using basically the same tricks. If you type in say 18 intervale click search and then click on radio button Problem 1 Then click on a brown outlined parcel - in firefox - quite often it highlights the whole selected parcel black in both the png and gif interface. It doesn't do this in IE 7. Less often but sometimes in firefox when you select an aerial layer for display - it turns the view port black. I haven't been able to replicate this issue with the PNG interface. Problem 2 The png interface doesn't really work in IE 6. I know IE 6 doesn't really understand transparent PNGs and from a quick glance of the Open Layers code (I forget where) - it looks like there is a hack in place to compensate for that, but in all my efforts, I've never been able to get this to work in IE6. Is the only way to combat this to just check if the version of IE being run is less than 7 use GIF layers and otherwise use PNG, or is there a more elegant solution to that. Thanks, Regina ________________________________ From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Obe, Regina Sent: Friday, May 18, 2007 9:35 AM To: Christopher Schmidt Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox Chris, No problem. I just wanted to make sure I wasn't missing anything. I'll pursue using the other WMS layers. If it would help for me to test out the FF branch you have, I would be happy to do so. Thanks for a great product, Regina ________________________________ From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Fri 5/18/2007 9:21 AM To: Obe, Regina Cc: OpenLayers Users Subject: Re: [OpenLayers-Users] GML features not lining up in FireFox On Fri, May 18, 2007 at 07:32:42AM -0400, Obe, Regina wrote: > I have a map that displays a Mapserver WMS of Abandoned property points > and when the user clicks on a red dot, it queries the WFS service to get > the detail of that section and overlays the WFS points as an extra > layer. > > In IE 7, my WMS and WFS line up perfectly, but in Firefox, the WFS seems > a bit skewed off the mark. Am I doing something wrong or is this a > known issue. > > I'm using the OpenLayers version in CVS. > > Below is the link to my map. > > http://www.cityofboston.gov/dnd/AbandonedPrivateMap.aspx The short answer is "You can't do that", unfortunately. Using the commercial layers as a base layer for WFS is not something that works in 2.4. WE're currently working on a couple of different solutions for this to be brought in after 2.4. Since you're in Massachusetts, depending on the type of information you're interested in from the maps, you may have o ther options for mapping -- the boston freemap, http://boston.freemap.in/ , offers decent quality road maps and supports a number of different projections, so you could use that as a base map instead. (I can help with that if need be.) If it's important to you to use commercial base layers, I have a branch of OpenLayers which will work in FF with the commercial base layers, however, I haven't yet made the neccesary changes to to the VML layer. So, you have a couple options: * Pursue using a WMS-basemap, via the Boston Freemap, or directly from MassGIS. (I can help with this.) * Wait for future developments which allow this usage. * Investigate using the SVG branch I talked about -- this one probably only makes sense if you have someone skilled in Javascript that you can talk to (whether that's you or someone else). I'm sorry for any inconvenience this may cause. Regards, -- Christopher Schmidt MetaCarta ________________________________ The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. ________________________________ The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/8d29fd11/attachment.html From crschmidt at metacarta.com Thu May 31 10:12:22 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] vector questions In-Reply-To: <20070530234941.0b147052.lists@jpw.biz> References: <20070530234941.0b147052.lists@jpw.biz> Message-ID: <20070531141222.GA26260@metacarta.com> On Wed, May 30, 2007 at 11:49:41PM -0400, Mick Jagger wrote: > Hi, > I'm new to OpenLayers and was trying to create some polygons and points using vectors and google maps. I keep getting an odd problem that whenever I pan the map in the Y direction the vector layer items move accordingly. However if I pan in the X direction, they stay in place. Markers never move, staying in place where defined. I saw a dev ticket regarding google maps problems, but it didn't describe the issue, is this same problem? This is http://trac.openlayers.org/ticket/658, "Vector layer does not work with Google". There is information in that ticket on how to check out some code that doesn't suffer this problem. > Also, I've not found any docs or examples on creating a circle? Is there something available? Thanks, http://openlayers.org/pipermail/users/2007-May/001577.html is probably what your'e looking for, but the basic answer is 'You can't do that': Instead, you draw a many-sided polygon. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 31 10:16:17 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Meta layer and Partial labels In-Reply-To: <79C347937CDC477892C879A74312C64E@jackey> References: <38F2366EAE91422DA8CC4AF0DF0C1216@jackey> <465E4B87.1030207@swoodbridge.com> <79C347937CDC477892C879A74312C64E@jackey> Message-ID: <20070531141617.GB26260@metacarta.com> On Thu, May 31, 2007 at 01:48:16PM +0800, Jackey Cheung wrote: > I did, and labels are quite normal until I use the meta layer. http://openlayers.org/pipermail/users/2007-May/001756.html The default metaBuffer is 10px. Try setting the labelcache edge buffer to something like 10 or 20, and see if that helps. (And remember to clear your cache!) Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 31 10:21:51 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] strange click events with internet explorer In-Reply-To: References: Message-ID: <20070531142151.GD26260@metacarta.com> On Thu, May 31, 2007 at 11:00:08AM +0200, Christian Sengstock wrote: > Is this a known problem and is there maybe a workaround? I think the > problem depends on where the map div is located in the DOM, because it > worked properly when i tested the MouseToolbar with a very basic html > page (just the map div). I'm not aware of this problem, or a workaround. (This just means I haven't run into it, largely because I mostly use simple DOMs :)) Anyone else run into this issue? Regards, -- Christopher Schmidt MetaCarta From percyd at pdx.edu Thu May 31 13:42:08 2007 From: percyd at pdx.edu (percy) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] strange click events with internet explorer In-Reply-To: <20070531142151.GD26260@metacarta.com> References: <20070531142151.GD26260@metacarta.com> Message-ID: <465F08F0.1070800@pdx.edu> This sounds similar to a problem I had last October. I think it was fixed in version 2.2, I'll paste the email below... Percy -------- Original Message -------- Subject: Re: [OpenLayers-Users] "interesting" cross browser problem with mouse click position Date: Fri, 27 Oct 2006 11:09:34 -0700 From: percy To: Christopher Schmidt CC: users@openlayers.org References: <20061011160003.A6010EDFAF@rainier.metacarta.com> <45401072.3020304@pdx.edu> <20061026143712.GB15808@metacarta.com> that fixed it, thanks! any idea when 2.2 will become the "stable" release? I just got the SVN version out yesterday and was playing with that SWEET new MousePosition control. I need to wait to put that on our production server until it gets blessed, though. Thanks again for the groovy interface, Percy Christopher Schmidt wrote: > On Wed, Oct 25, 2006 at 06:33:38PM -0700, percy wrote: > >> Hi All, >> >> We are attempting to use an openlayers frontend to a kamap tiled backend. >> >> My test page, http://ngmdb.usgs.gov/ol/examples/ngmdb4.html , works >> great in both "major" browsers. However when we integrate it into the >> main search page (which is not yet on a public site, but here's a >> simpler Kamap version: http://ngmdb.usgs.gov/ngm_compsearch_map.html) we >> get errant behaviour with regard to how the mouseclicks are handled by >> OpenLayers in FireFox! >> >> to see this in action, just edit your test file by sticking in this div >> just after the body tag: >> >>
    >> Push the map down the screen >>
    >> >> and then load the test file in a browser. firefox will exhibit the same >> breaking behavior as it does on the working page!" >> > > Mistakenly sent my response to Percy, rather than to the list: This was > fixed with r1692, http://trac.openlayers.org/changeset/1692 closing bug > #333, http://trac.openlayers.org/ticket/333 , and the patch available at > the bottom of the page on r1692 should allow you to fix this issue for > older OpenLayers instances. Alternatively, this fix is included in the > 2.2-rc1 currently being tested, and will be included in the final 2.2 > release. > > Regards, > Christopher Schmidt wrote: > On Thu, May 31, 2007 at 11:00:08AM +0200, Christian Sengstock wrote: >> Is this a known problem and is there maybe a workaround? I think the >> problem depends on where the map div is located in the DOM, because it >> worked properly when i tested the MouseToolbar with a very basic html >> page (just the map div). > > I'm not aware of this problem, or a workaround. (This just means I > haven't run into it, largely because I mostly use simple DOMs :)) > > Anyone else run into this issue? > > Regards, -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From mpurdy at wisc.edu Thu May 31 14:36:39 2007 From: mpurdy at wisc.edu (MATTHEW J PURDY) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Popup closebox and formatting. Message-ID: Hello all, I'm an amateur at this, but I really want my popup windows to have a closebox on them like the example 'popup.html' included in the download. As of now, you have to re-click the icon to get the window to destroy. I'm also interested in formatting the windows to make them more attractive. Can anyone recommend a simple way to do this? Maybe modify the popup.js? Here is a rough draft of my OL mapping app. http://beta.glos.us/openlayers2/examples/Integrated_viewer_v4.html Thank you. From mail at kevinkempfer.de Thu May 31 14:38:56 2007 From: mail at kevinkempfer.de (Kevin Kempfer) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Tiles removed too early Message-ID: <465F1640.8070903@kevinkempfer.de> Hello, when I drag the map to the north, the tiles on the bottom edge of the screen are removed before they are outside the viewport. Dragging the map to the south is the same effect: The tiles are loaded too late. In both cases, there's whitespace visible. This only applies to north/south dragging, east/west is OK! The same happens when clicking on the navigation icons, so it should not be a problem with the mouse dragging feature. Is the a way to avoid this behaviour? Thanks, Kevin. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3249 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/24b9adf1/smime.bin From mail at kevinkempfer.de Thu May 31 14:57:29 2007 From: mail at kevinkempfer.de (Kevin Kempfer) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Again: Tiles removed too early Message-ID: <465F1A99.4010905@kevinkempfer.de> Hello again, I just found out, that the problem disappears as soon as the user zooms in or out once. This is OpenLayers Revision 2942 on Firefox 2.0.0.3 and Ubuntu 7.04 Thanks, Kevin -------- Original-Nachricht -------- Hello, when I drag the map to the north, the tiles on the bottom edge of the screen are removed before they are outside the viewport. Dragging the map to the south is the same effect: The tiles are loaded too late. In both cases, there's whitespace visible. This only applies to north/south dragging, east/west is OK! The same happens when clicking on the navigation icons, so it should not be a problem with the mouse dragging feature. Is the a way to avoid this behaviour? Thanks, Kevin. -- Air conditioned Environment - Do not open Windows! -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3249 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070531/0e17a590/smime.bin From crschmidt at metacarta.com Thu May 31 16:16:37 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Popup closebox and formatting. In-Reply-To: References: Message-ID: <20070531201637.GA27387@metacarta.com> On Thu, May 31, 2007 at 01:36:39PM -0500, MATTHEW J PURDY wrote: > Hello all, > > I'm an amateur at this, but I really want my popup windows to have a closebox on them like the example 'popup.html' included in the download. As of now, you have to re-click the icon to get the window to destroy. I'm also interested in formatting the windows to make them more attractive. Can anyone recommend a simple way to do this? Maybe modify the popup.js? Popups have a 'closeBox' option: http://dev.openlayers.org/docs/OpenLayers/Popup.html#initialize set it to true. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu May 31 16:22:55 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Again: Tiles removed too early In-Reply-To: <465F1A99.4010905@kevinkempfer.de> References: <465F1A99.4010905@kevinkempfer.de> Message-ID: <20070531202255.GB27387@metacarta.com> On Thu, May 31, 2007 at 08:57:29PM +0200, Kevin Kempfer wrote: > Hello again, > > I just found out, that the problem disappears as soon as the user zooms > in or out once. > > This is OpenLayers Revision 2942 on Firefox 2.0.0.3 and Ubuntu 7.04 displayOutsideMaxExtent option on the layer. set it to true. Regards, -- Christopher Schmidt MetaCarta From john.cole at uai.com Thu May 31 16:44:31 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] editingtoolbar - adding a new control... Message-ID: <76758090F8686C47A44B6FF52514A1D307909CEA@hermes.uai.int> Ok, I've been tracing the objects and I'm a little confused :-) I'd like to take the editingtoolbar control, add another tool like the path tool, and capture the event so I can calculate the length of the geometry (eg a measure tool). What I'm having a problem with is how to hook up a function to capture the 'done' event raised by the DrawFeature class. Looking through all of the examples, the WFS scribble and WFS-T example are using the wfs layer itself to submit the new features. So they don't provide a hook example. Could someone provide a hint as to capturing the done event from the DrawFeature class? Thanks, John No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 5/30/2007 3:03 PM This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From drspencer at hotmail.com Thu May 31 17:16:39 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Popup closebox and formatting. In-Reply-To: <20070531201637.GA27387@metacarta.com> References: <20070531201637.GA27387@metacarta.com> Message-ID: <10902156.post@talk.nabble.com> I am trying to add a closebox to some markers, but I can?t get the close boxes to show up. See http://www.villageografica.com/test50/test.html for a test. The markers are located in http://www.villageografica.com/test50/ProjectLocations.txt . What am I doing wrong here? Magnus Christopher Schmidt-4 wrote: > > On Thu, May 31, 2007 at 01:36:39PM -0500, MATTHEW J PURDY wrote: >> Hello all, >> >> I'm an amateur at this, but I really want my popup windows to have a >> closebox on them like the example 'popup.html' included in the download. >> As of now, you have to re-click the icon to get the window to destroy. >> I'm also interested in formatting the windows to make them more >> attractive. Can anyone recommend a simple way to do this? Maybe modify >> the popup.js? > > Popups have a 'closeBox' option: > > http://dev.openlayers.org/docs/OpenLayers/Popup.html#initialize > > set it to true. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Popup-closebox-and-formatting.-tf3848193.html#a10902156 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Thu May 31 17:25:46 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] editingtoolbar - adding a new control... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909CEA@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909CEA@hermes.uai.int> Message-ID: <20070531212546.GA27586@metacarta.com> On Thu, May 31, 2007 at 03:44:31PM -0500, John Cole wrote: > Ok, I've been tracing the objects and I'm a little confused :-) > > I'd like to take the editingtoolbar control, add another tool like the path > tool, and capture the event so I can calculate the length of the geometry > (eg a measure tool). > > What I'm having a problem with is how to hook up a function to capture the > 'done' event raised by the DrawFeature class. You actually probably want to be doing one of two things: * Using the 'featureAdded' method on the DrawFeature Control * Creating a different control using the Path/Point/Poly handler. Tim Schaub might be able to offer more insight. Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Thu May 31 20:42:26 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] Looks like Google has added Driving Directions to there API Message-ID: <465F6B72.2050504@swoodbridge.com> http://googlemapsapi.blogspot.com/2007/05/driving-directions-support-added-to.html My guess is that others will follow. Has there been any thought about building generic tools in OL to support driving directions? or geocoding for that matter. Then providing generic service providers like Layers for maps. -Steve From lists at jpw.biz Thu May 31 23:23:49 2007 From: lists at jpw.biz (Mick Jagger) Date: Wed Sep 1 17:15:31 2010 Subject: [OpenLayers-Users] vector questions In-Reply-To: <20070531141222.GA26260@metacarta.com> References: <20070530234941.0b147052.lists@jpw.biz> <20070531141222.GA26260@metacarta.com> Message-ID: <20070531232349.2ba66e50.lists@jpw.biz> > This is http://trac.openlayers.org/ticket/658, "Vector layer does not > work with Google". There is information in that ticket on how to check > out some code that doesn't suffer this problem. This code in the ticket worked, and kept the polygon in place when I panned around the map. However interestingly enough, it caused a problem with the code referenced below to create a circle with multiple polygon segments. With the stock openlayers 2.4 the circle looks fine. But with this new code, it becomes an oval that is distended in the y direction on the map. Using other layers such as WMS or Yahoo didn't have this problem, just google. > http://openlayers.org/pipermail/users/2007-May/001577.html is probably > Instead, you draw a many-sided polygon. -- lists@jpw.biz --