From d.pru at hotmail.com Tue Jan 1 22:36:01 2008 From: d.pru at hotmail.com (David Pruitt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Panning a map with OpenLayers Message-ID: I have been programming for several years now, but I am fairly new to OpenLayers. I am building a mapping application that in essence can be seen as being very similar to the example map shown at http://world.freemap.in/ Basically, the user can pan around the map, zoom in our out, etc., and click on a country to view certain information that we would like to display to our users - so in that way it is very similar to the example map that uses the CIA factbook. I am still learning OpenLayers, and so it seemed like the best way to do this was to make a polygon which was the shape of each country in the world, and then take each of these polygons that I have created and overlay them on top of the appropriate country on the world map at the correct longitude/latitude. Since polygons (which are features) can be selected, the user could easily pan around the map, click on a country, and the click would be captured by the overlying feature. Once the click is captured...information is displayed in a window. Here is the problem: I realized that (at least to my knowledge), panning is not allowed when the mouse is clicked on a selectable feature. For example, if I have a feature which is the shape of a square sitting on top of part of Africa - I can click on the ocean next to it and pan around the map just fine. If I just happen to click on that square however, yes....the square is selected....but I can't pan around the map! Not unless I click outside of the square! How can I remedy this problem? I notice that the example map that uses the CIA factbook allows me to pan. For example, I can click and hold on China and pan around the map, but if I click and release on China - then it goes and retrieves the CIA factbook information from China. I want to do the same for my mapping application, but I don't understand how to accomplish this yet with OpenLayers. So that is my main question that I would like answered. While I am writing this email, however, I would like to throw out one more question to the users. Is OpenLayers compatible at all with ThickBox? If that's not clear then I can explain a little bit more in a subsequent email. Thanks! David _________________________________________________________________ i?m is proud to present Cause Effect, a series about real people making a difference. http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080101/34e1feb1/attachment.html From madair at dmsolutions.ca Wed Jan 2 09:48:08 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class? In-Reply-To: <4774D8CA.5157.008F.0@dnr.state.mn.us> References: <4769D7CE0200008F00012C97@co5.dnr.state.mn.us> <476FD890.3040902@dmsolutions.ca> <4774D8CA.5157.008F.0@dnr.state.mn.us> Message-ID: <477BA428.50706@dmsolutions.ca> Steve, There is currently a bit of hack in proj4js to prevent a point from being transformed a second time (to prevent re-transforming the last point of polygons which in OL is a copy of the first point). That's probably not the best place for that check, but if you comment out the return statement at line 93 or so the inverse transform also works correctly. Mike Steve Lime wrote: > Mike: I wanted to let you know that the forward transformation does indeed > work, thanks. I wasn't able to go the other way. > > Proj4js.defs['EPSG:3031'] = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'; // Antarctica Polar Stereographic > var wgs84 = new OpenLayers.Projection('WGS84'); > > var point = new OpenLayers.Geometry.Point(lon, lat); > OpenLayers.Projection.transform(point, wgs84, map.getProjectionObject()); // forward > alert(point.x +" "+ point.y); // correct > OpenLayers.Projection.transform(point, map.getProjectionObject(), wgs84); // reverse > alert(point.x +" "+ point.y); // no change, expect the original lat/lon > > It's not a big deal for me since I really only need the forward transformation... > Thanks for the hard work! > > Steve > > > >>>> On 12/24/2007 at 10:04 AM, in message <476FD890.3040902@dmsolutions.ca>, Mike >>>> > Adair wrote: > >> Steve, >> >> I've updated Proj4js with the proj4 version of the stereographic >> projection and my test point now comes out at the correct location. >> >> You can get the update at >> https://svn.codehaus.org/mapbuilder/cscs/trunk/proj4js/lib and use the >> file proj4js-compressed.js (or proj4js-combined.js if you want to debug >> what's going on inside). Compressed and combined versions of proj4js >> include all files required. >> >> Let me know if that works for you. >> >> Mike >> >> >> >> Steve Lime wrote: >> >>> I'm working with openlayers trunk trying to get some point projection to >>> >> work. Code like this: >> >>> >>> >>> >>> >>> map = new OpenLayers.Map( $('map'), {maxExtent: new >>> >> OpenLayers.Bounds(-2668252.000000,-2707008.500000,2813685.000000,2774928.5000 >> 00), >> >>> maxResolution: 10706.9082, >>> >> units: 'm', projection: 'EPSG:3031'} ); >> >>> Proj4js.defs['EPSG:3031'] = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 >>> >> +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'; // Antarctica >> Polar Stereographic >> >>> var wgs84 = new OpenLayers.Projection('WGS84'); >>> >>> var point = new OpenLayers.Geometry.Point(lon, lat); >>> OpenLayers.Projection.transform(point, wgs84, map.getProjection()); >>> alert(point.x +" "+ point.y); >>> >>> doesn't seem to work, the x, y members remain unchanged. Any ideas? >>> >>> Thanks! >>> >>> Steve >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >>> > > > From Steve.Lime at dnr.state.mn.us Wed Jan 2 10:14:42 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class? Message-ID: <477B56030200008F00012F88@co5.dnr.state.mn.us> Thanks Mike, good to know, although it's not intuitive as is. I appreciate the help. Steve >>> Mike Adair 01/02/08 8:48 AM >>> Steve, There is currently a bit of hack in proj4js to prevent a point from being transformed a second time (to prevent re-transforming the last point of polygons which in OL is a copy of the first point). That's probably not the best place for that check, but if you comment out the return statement at line 93 or so the inverse transform also works correctly. Mike Steve Lime wrote: > Mike: I wanted to let you know that the forward transformation does indeed > work, thanks. I wasn't able to go the other way. > > Proj4js.defs['EPSG:3031'] = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'; // Antarctica Polar Stereographic > var wgs84 = new OpenLayers.Projection('WGS84'); > > var point = new OpenLayers.Geometry.Point(lon, lat); > OpenLayers.Projection.transform(point, wgs84, map.getProjectionObject()); // forward > alert(point.x +" "+ point.y); // correct > OpenLayers.Projection.transform(point, map.getProjectionObject(), wgs84); // reverse > alert(point.x +" "+ point.y); // no change, expect the original lat/lon > > It's not a big deal for me since I really only need the forward transformation... > Thanks for the hard work! > > Steve > > > >>>> On 12/24/2007 at 10:04 AM, in message <476FD890.3040902@dmsolutions.ca>, Mike >>>> > Adair wrote: > >> Steve, >> >> I've updated Proj4js with the proj4 version of the stereographic >> projection and my test point now comes out at the correct location. >> >> You can get the update at >> https://svn.codehaus.org/mapbuilder/cscs/trunk/proj4js/lib and use the >> file proj4js-compressed.js (or proj4js-combined.js if you want to debug >> what's going on inside). Compressed and combined versions of proj4js >> include all files required. >> >> Let me know if that works for you. >> >> Mike >> >> >> >> Steve Lime wrote: >> >>> I'm working with openlayers trunk trying to get some point projection to >>> >> work. Code like this: >> >>> >>> >>> >>> >>> map = new OpenLayers.Map( $('map'), {maxExtent: new >>> >> OpenLayers.Bounds(-2668252.000000,-2707008.500000,2813685.000000,2774928.5000 >> 00), >> >>> maxResolution: 10706.9082, >>> >> units: 'm', projection: 'EPSG:3031'} ); >> >>> Proj4js.defs['EPSG:3031'] = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 >>> >> +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'; // Antarctica >> Polar Stereographic >> >>> var wgs84 = new OpenLayers.Projection('WGS84'); >>> >>> var point = new OpenLayers.Geometry.Point(lon, lat); >>> OpenLayers.Projection.transform(point, wgs84, map.getProjection()); >>> alert(point.x +" "+ point.y); >>> >>> doesn't seem to work, the x, y members remain unchanged. Any ideas? >>> >>> Thanks! >>> >>> Steve >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >>> > > > From jlacroix at mapgears.com Wed Jan 2 12:15:17 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Does OL have utility function to convert WKB into something usable? In-Reply-To: <4772B84D.8020505@swoodbridge.com> References: <4769E4D4.7070900@swoodbridge.com> <4772B4CD.4000204@openplans.org> <4772B84D.8020505@swoodbridge.com> Message-ID: <477BC6A5.6050901@mapgears.com> Hi, Sorry to jump late in this one, but did you hear of the Encoded Polyline Algorithm Format from the Google Maps API? it transform a polyline into a, usually shorter, ascii string. http://code.google.com/apis/maps/documentation/polylinealgorithm.html I don't know if there's a licencing restriction on it though. Some more docs/examples here: http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/ Julien Stephen Woodbridge wrote: > Tim Schaub wrote: > >>Hey- >> >>Stephen Woodbridge wrote: >> >>>Hi all, >>> >>>Does OL have utility function to convert WKB into something usable? >>>Searching with google did not show anything appropriate. >> >>Reading binary files is problematic cross-browser. In Firefox, we can >>override the mime-type to "text/plain; charset=x-user-defined" and parse >>a byte at a time, but this doesn't work in IE. >> >>I'd be happy to be told otherwise, but I think the answer is use known >>character sets with browsers (not binary files). > > > Tim and all who answered, > > Thank you for your responses. It does not seem that any existing tool > support this format. It is a binary encoded as a sequence of numbers and > should not be too hard to to decode, but after a little more research it > turns out that this is NOT more compact than just returning the numbers > as I thought it might be. My goal was to find a more compact > representation for a route polyline to decrease the bandwidth between > the Ajax client and the server. > > I'll probably revisit this later, but other tasks intrude at the moment. > > Thanks and best regards, > -Stephen Woodbridge > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From a_murdoch at hotmail.com Wed Jan 2 13:58:17 2008 From: a_murdoch at hotmail.com (Andrew Murdoch) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] WMS overlaid on Google "spherical mercator" in OpenLayers In-Reply-To: <477BB239.7020309@psu.edu> References: <477BB239.7020309@psu.edu> Message-ID: Hello, I'm cross-posting to the Geoserver and OpenLayers lists with this question. I'm using Geoserver 1.6.0 RC2 and OpenLayers 2.5 with Firefox 2.0.0.11. I'm trying to display a WMS layer overtop of Google background data using the OpenLayers javascript client. The Google data shows up fine and I'm getting the topp:states WMS layer from Geoserver to show up, but only half of the WMS states features show up at zoom level 1. Only the eastern states show up with a vertical line cutting north to south. When I zoom in closer on the US, all the WMS features show up overlain on the Google data. It's almost as if at small "world-wide" scales, there are too many tiles to display and the WMS is only partially displayed. I've duplicated this behavior with other WMS layers from my Geoserver installation. At small "world-wide" scales, the WMS data is cut off. When you zoom in, the WMS is displayed normally. I've been using a modified copy of the "spherical-mercator.html" example to get this far. I can send in javascript code or screenshots if that would be helpful. Thanks for your help!! Andrew _________________________________________________________________ i?m is proud to present Cause Effect, a series about real people making a difference. http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080102/c8d8a3fc/attachment.html From cjmose at gmail.com Thu Jan 3 09:51:36 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] OverviewMapControl config tips? Message-ID: <14598136.post@talk.nabble.com> My map is configured with the following options: var mapOptions = { minExtent: new OpenLayers.Bounds(-1,-1,1,1), maxExtent: new OpenLayers.Bounds(-180,-90,180,90), restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90), maxResolution: 0.17578125, numZoomLevels: 8, buffer:1 } and my OverviewMapControl is configured with these options: var overviewMapOptions = { mapOptions: { maxResolution: 0.17578125, numZoomLevels: 8 } } (please forgive any typos as this was hand transcribed - the actual config is free of typos and works fine with my current TileCache setup). The issue I have is that the OverviewMapControl is basically useless from zoom levels 0-3 - the red "extent" rectangle just fills the entire OverviewMapControl and can't actually be used to drag the map more then a very minuscule amount. I've looked over the js file but I think I'm just having a poor comprehension day as I'm not seeing what I can change to try and alleviate this. Ideally the draggable rectangle would stay constant size regardless of the zoom level of the overviewmap/bounds of the "main" map. Anyone have any hints/tips as to how I can accomplish this or at least provide a useable overviewmap at zoom levels 0-3? Thanks! -- View this message in context: http://www.nabble.com/OverviewMapControl-config-tips--tp14598136p14598136.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tschaub at openplans.org Thu Jan 3 12:32:21 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] OverviewMapControl config tips? In-Reply-To: <14598136.post@talk.nabble.com> References: <14598136.post@talk.nabble.com> Message-ID: <477D1C25.5030102@openplans.org> Hey- cmose wrote: > My map is configured with the following options: > var mapOptions = { > minExtent: new OpenLayers.Bounds(-1,-1,1,1), > maxExtent: new OpenLayers.Bounds(-180,-90,180,90), > restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90), > maxResolution: 0.17578125, > numZoomLevels: 8, > buffer:1 > } > > and my OverviewMapControl is configured with these options: > var overviewMapOptions = { > mapOptions: { > maxResolution: 0.17578125, > numZoomLevels: 8 > } > } > The extent rectangle on the overview map represents the extent of your main map. If the resolution of your main map equals the resolution of your overview map, then the extent rectangle is trying to be as large (pixel dimension) as your main map viewport. Assuming your overview map is smaller than your main map, this means the extent rectangle is trying to be bigger than the overview map. You need to configure your overview map to display resolutions *greater* than your main map (more map units per pixel, smaller scale). You can accomplish this in one of two ways: 1) decrease the maxResolution of your main map, or 2) increase the maxResolution of your overview map (through the mapOptions property of the control) The latter may require increasing the max resolution in your TileCache config as well. Make sense? Tim > (please forgive any typos as this was hand transcribed - the actual config > is free of typos and works fine with my current TileCache setup). > > The issue I have is that the OverviewMapControl is basically useless from > zoom levels 0-3 - the red "extent" rectangle just fills the entire > OverviewMapControl and can't actually be used to drag the map more then a > very minuscule amount. I've looked over the js file but I think I'm just > having a poor comprehension day as I'm not seeing what I can change to try > and alleviate this. > > Ideally the draggable rectangle would stay constant size regardless of the > zoom level of the overviewmap/bounds of the "main" map. > > Anyone have any hints/tips as to how I can accomplish this or at least > provide a useable overviewmap at zoom levels 0-3? > > Thanks! From cjmose at gmail.com Thu Jan 3 12:43:48 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] OverviewMapControl config tips? In-Reply-To: <477D1C25.5030102@openplans.org> References: <14598136.post@talk.nabble.com> <477D1C25.5030102@openplans.org> Message-ID: <14601624.post@talk.nabble.com> Tim, Thanks much - I thought that might be the case but I *believe* I tried that before (e.g., giving my TileCache config a higher maxResolution then my map instance.) I seem to recall that not working the last time I attempted it but I'll give it a shot again. It's quite possible I was monkeying around with other things at the time and they were the sticky wicket. Tim Schaub wrote: > > Hey- > > cmose wrote: >> My map is configured with the following options: >> var mapOptions = { >> minExtent: new OpenLayers.Bounds(-1,-1,1,1), >> maxExtent: new OpenLayers.Bounds(-180,-90,180,90), >> restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90), >> maxResolution: 0.17578125, >> numZoomLevels: 8, >> buffer:1 >> } >> >> and my OverviewMapControl is configured with these options: >> var overviewMapOptions = { >> mapOptions: { >> maxResolution: 0.17578125, >> numZoomLevels: 8 >> } >> } >> > > The extent rectangle on the overview map represents the extent of your > main map. If the resolution of your main map equals the resolution of > your overview map, then the extent rectangle is trying to be as large > (pixel dimension) as your main map viewport. Assuming your overview map > is smaller than your main map, this means the extent rectangle is trying > to be bigger than the overview map. > > You need to configure your overview map to display resolutions *greater* > than your main map (more map units per pixel, smaller scale). You can > accomplish this in one of two ways: > > 1) decrease the maxResolution of your main map, or > 2) increase the maxResolution of your overview map (through the > mapOptions property of the control) > > The latter may require increasing the max resolution in your TileCache > config as well. > > Make sense? > Tim > >> (please forgive any typos as this was hand transcribed - the actual >> config >> is free of typos and works fine with my current TileCache setup). >> >> The issue I have is that the OverviewMapControl is basically useless from >> zoom levels 0-3 - the red "extent" rectangle just fills the entire >> OverviewMapControl and can't actually be used to drag the map more then a >> very minuscule amount. I've looked over the js file but I think I'm just >> having a poor comprehension day as I'm not seeing what I can change to >> try >> and alleviate this. >> >> Ideally the draggable rectangle would stay constant size regardless of >> the >> zoom level of the overviewmap/bounds of the "main" map. >> >> Anyone have any hints/tips as to how I can accomplish this or at least >> provide a useable overviewmap at zoom levels 0-3? >> >> Thanks! > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/OverviewMapControl-config-tips--tp14598136p14601624.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From linda.rawson at gmail.com Thu Jan 3 13:13:13 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Look who is using OpenLayers Message-ID: <6e9b30fb0801031013v22a839b6m46308c364b36ba40@mail.gmail.com> Hi all, I have been working on a website for Bushnell -> http://www.bushnell.com/gps/gps.cfm?setcookie=yes&continent=North%20America&language=English§ion=GPS&interest = We use openlayers to locate images that can subsequently be downloaded to the gps units. After many hours of hard work we have finally deployed our website using openlayers. You will need a login to use the web site but you can see an image capture of the web site here -> http://www.sensorytech.net/img/Bushnell.jpg. The imagery at the higher resolutions is still coming along but DigitalGlobe and DMSolutions are working on this. Thanks for all your help and especially to the following: Christopher Schmidt Erik Uzureau Gregor Mosheh - HostGIS.com Andrew de Klerk - Quartex Google DMSolutions DHTMLX DigitalGlobe -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080103/67df6658/attachment.html From via at dicyt.umss.edu.bo Thu Jan 3 14:08:47 2008 From: via at dicyt.umss.edu.bo (via@dicyt.umss.edu.bo) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] New with openLayer Message-ID: <4710.192.168.1.170.1199387327.squirrel@www.dicyt.umss.edu.bo> Hello to all, I am new with this topics (maps), what I want is how can I create my maps, draw my map and put this in the internet, showing places and other information. Some body can help me?, where is the start point for this regards Marcelo From erik.uzureau at metacarta.com Thu Jan 3 15:01:34 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Vector layer polygon point limits In-Reply-To: <20071204120202.GB22955@metacarta.com> References: <20071204120202.GB22955@metacarta.com> Message-ID: <6ae3fb590801031201k2dad5c63k22e4166e0db4cd15@mail.gmail.com> if anyone has specific numbers for this, it would probably be helpful to add them here: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhatisthemaximumnumberofCoordinatesFeaturesIcandrawwithaVectorlayer --e On 12/4/07, Christopher Schmidt wrote: > On Tue, Dec 04, 2007 at 10:09:36AM +1100, bradleyspencer wrote: > > Is there an explicit limit on the number of points that can be used to draw > > a temporary polygon with the vectorLayer class. > > No. The limitation is entirely based on what the browser will let you > do. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Thu Jan 3 15:18:14 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Switching to singleTile mode (and back) on the fly In-Reply-To: <2bb6ee950712050152q3902c550i23239cb3f2db9db5@mail.gmail.com> References: <2bb6ee950711290420m44d51582vae4106a331be8c99@mail.gmail.com> <20071129124711.GB25356@metacarta.com> <2bb6ee950712041017h7ef3a290r30c39f0389ba66c2@mail.gmail.com> <20071204190006.GA9097@metacarta.com> <2bb6ee950712041333i5a8ba2a4u51fea4bf81616c95@mail.gmail.com> <20071204214238.GA27287@metacarta.com> <2bb6ee950712050152q3902c550i23239cb3f2db9db5@mail.gmail.com> Message-ID: <6ae3fb590801031218w11e79888o65ad5112b34c0d18@mail.gmail.com> seems like maybe it would be nice to have layer switcher's redraw() re-init the layerStates array automatically? or if not automatically, at least via a parameter to the function or something.... the layerStates property to me should be a private of the layerswitcher, that no user should need to know about and certainly not modify... thoughts? erik On 12/5/07, Jon Blower wrote: > > You can force > > this by doing layerswitcher_control.layerStates = []; to clear out the > > layerStates, which will cause it to redraw. > > Thanks Christopher, that worked a treat. To summarize, the code > sequence that works is: > > myLayer.displayInLayerSwitcher = false; > layerSwitcher.layerStates = []; > layerSwitcher.redraw(); > > Jon > > On Dec 4, 2007 9:42 PM, Christopher Schmidt wrote: > > On Tue, Dec 04, 2007 at 09:33:41PM +0000, Jon Blower wrote: > > > OK, attached is an HTML file that shows the problem. As you can see > > > from the code I'm doing the following: > > > > > > 1) Creating two overlay layers, only one of which is to be displayed > > > in the layer switcher > > > 2) Adding both overlays to the map > > > 3) Toggling the displayInLayerSwitcher property of each overlay layer > > > 4) Redrawing the layer switcher control > > > > > > Initially nothing changes as a result of (3) and (4), i.e. the layers > > > that are displayed in the switcher don't change. However, if you > > > click the overlay's checkbox in the layer switcher it seems to sort > > > itself out and work correctly. > > > > > > So, it seems that the layer switcher only redraws when it is clicked. > > > > You need to change the state of the LayerSwitcher -- by turning a layer > > on or off using setVisibility -- before it will redraw. You can force > > this by doing layerswitcher_control.layerStates = []; to clear out the > > layerStates, which will cause it to redraw. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > > > > > > -- > -------------------------------------------------------------- > Dr Jon Blower Tel: +44 118 378 5213 (direct line) > Technical Director Tel: +44 118 378 8741 (ESSC) > Reading e-Science Centre Fax: +44 118 378 6413 > ESSC Email: jdb@mail.nerc-essc.ac.uk > University of Reading > 3 Earley Gate > Reading RG6 6AL, UK > -------------------------------------------------------------- > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From zhanna at planetzhanna.com Thu Jan 3 15:26:24 2008 From: zhanna at planetzhanna.com (Zhanna Maher) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Historic topo maps? Message-ID: <477D44F0.5070309@planetzhanna.com> I recall seeing, a few months ago, a way to access a layer of historic USGS topo maps. Now I am unable to find it. Does anyone know the server and layer name? Thanks, Zhanna Maher From snowdrop at ath.forthnet.gr Thu Jan 3 20:03:07 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Preventing zoom out Message-ID: <14608863.post@talk.nabble.com> Is the option maxResolution is supposed to prevent the user zooming out more than the maxresolution? I have an OL app, with google maps and other wms. I want my map centered in a specific country and the user not to be able to pan or zoom outside some extents. I have restricted panning using 'restrictedExtent' but what about zooming out. I can't figure that out. -- View this message in context: http://www.nabble.com/Preventing-zoom-out-tp14608863p14608863.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cjmose at gmail.com Thu Jan 3 21:55:37 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] OverviewMapControl config tips? In-Reply-To: <14601624.post@talk.nabble.com> References: <14598136.post@talk.nabble.com> <477D1C25.5030102@openplans.org> <14601624.post@talk.nabble.com> Message-ID: <14610015.post@talk.nabble.com> Tried again and I must have had something bollocks'd up the last time as it worked just fine this time. I just need to play with the ratios now to get the overview map to zoom in more often and I'll be good to go! Thanks much. cmose wrote: > > Tim, > Thanks much - I thought that might be the case but I *believe* I tried > that before (e.g., giving my TileCache config a higher maxResolution then > my map instance.) I seem to recall that not working the last time I > attempted it but I'll give it a shot again. It's quite possible I was > monkeying around with other things at the time and they were the sticky > wicket. > > > Tim Schaub wrote: >> >> Hey- >> >> cmose wrote: >>> My map is configured with the following options: >>> var mapOptions = { >>> minExtent: new OpenLayers.Bounds(-1,-1,1,1), >>> maxExtent: new OpenLayers.Bounds(-180,-90,180,90), >>> restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90), >>> maxResolution: 0.17578125, >>> numZoomLevels: 8, >>> buffer:1 >>> } >>> >>> and my OverviewMapControl is configured with these options: >>> var overviewMapOptions = { >>> mapOptions: { >>> maxResolution: 0.17578125, >>> numZoomLevels: 8 >>> } >>> } >>> >> >> The extent rectangle on the overview map represents the extent of your >> main map. If the resolution of your main map equals the resolution of >> your overview map, then the extent rectangle is trying to be as large >> (pixel dimension) as your main map viewport. Assuming your overview map >> is smaller than your main map, this means the extent rectangle is trying >> to be bigger than the overview map. >> >> You need to configure your overview map to display resolutions *greater* >> than your main map (more map units per pixel, smaller scale). You can >> accomplish this in one of two ways: >> >> 1) decrease the maxResolution of your main map, or >> 2) increase the maxResolution of your overview map (through the >> mapOptions property of the control) >> >> The latter may require increasing the max resolution in your TileCache >> config as well. >> >> Make sense? >> Tim >> >>> (please forgive any typos as this was hand transcribed - the actual >>> config >>> is free of typos and works fine with my current TileCache setup). >>> >>> The issue I have is that the OverviewMapControl is basically useless >>> from >>> zoom levels 0-3 - the red "extent" rectangle just fills the entire >>> OverviewMapControl and can't actually be used to drag the map more then >>> a >>> very minuscule amount. I've looked over the js file but I think I'm just >>> having a poor comprehension day as I'm not seeing what I can change to >>> try >>> and alleviate this. >>> >>> Ideally the draggable rectangle would stay constant size regardless of >>> the >>> zoom level of the overviewmap/bounds of the "main" map. >>> >>> Anyone have any hints/tips as to how I can accomplish this or at least >>> provide a useable overviewmap at zoom levels 0-3? >>> >>> Thanks! >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- View this message in context: http://www.nabble.com/OverviewMapControl-config-tips--tp14598136p14610015.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cjmose at gmail.com Thu Jan 3 22:05:01 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Preventing zoom out In-Reply-To: <14608863.post@talk.nabble.com> References: <14608863.post@talk.nabble.com> Message-ID: <14610120.post@talk.nabble.com> well, I wasn't any help with the last your last question but lets see if I can add some value :-) I believe maxResolution is zoom level 0 on the map. If you don't specify a resolution's array and only specify maxResolution and numZoomLevels (n) every zoom level is the previous zoom level/2, e.g., Zoom0: maxResolution Zoom1: maxResolution/2 Zoom2: Zoom1/2 Zoom3: Zoom2/2 hope that helps Maria Panagou wrote: > > Is the option maxResolution is supposed to prevent the user zooming out > more than the maxresolution? I have an OL app, with google maps and other > wms. I want my map centered in a specific country and the user not to be > able to pan or zoom outside some extents. I have restricted panning using > 'restrictedExtent' but what about zooming out. I can't figure that out. > -- View this message in context: http://www.nabble.com/Preventing-zoom-out-tp14608863p14610120.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Jan 4 00:24:45 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] OpenLayers equivalent of ka-map pause event? Message-ID: <477D6EBD0200008F000130B7@co5.dnr.state.mn.us> For completeness here's what has worked for me, as hijacked from ka-map: var timer=null, delay=2000; var paused=false; function mousePaused(e) { var coord = map.getLonLatFromViewPortPx(e.xy); ... do something with the coordinate ... } function mouseMove(e) { if(timer) clearTimeout(timer); if(paused == false) self.timer = setTimeout(function(){clearTimeout(timer); paused = true; mousePaused(e); paused=false;}, delay); } function mouseOut(e) { clearTimeout(timer); } and in the onload function... map.events.register("mousemove", map, mouseMove); map.events.register("mouseout", map, mouseOut); I can file a ticket if that would help. Steve >>> Tim Schaub 12/26/07 2:10 PM >>> Mike Quentel wrote: > As far as the mouse events go, you might consider using a timer to > detect if user has paused for the amount of time over the map feature. > onmouseover could start the timer. If user does not move (mousemove) > after a certain amount of time, then show the pop-up window if over a > map feature. We could cook up a pause handler pretty easily. This would let you develop controls that respond to mouse pauses. The reason to use a handler for this is so that it can be used in multiple controls - or can be used to set the behavior of a control that might respond to clicks by default. For example, an Information control (requests GetFeatureInfo by default) might use a click handler by default (responding to single or double-clicks) - giving this control a pause handler instead of a click handler would change it's behavior to respond to mouse pauses instead of mouse clicks. No code floating around yet for this, but it shouldn't be hard to write. A ticket would be the first step. Then a patch. Tim > > I had to make timer functionality to ignore mouse wheel events that were > too fast. I've attached a simpler example of using a timer. This is > not the same as using the javascript setTimeout function. > > Cheers, > > Mike Quentel > > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > On Behalf Of Steve Lime > Sent: Wednesday, 19 December 2007 16:12 > To: Eric Lemoine > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] OpenLayers equivalent of ka-map pause > event? > > I'd just want a callback run with the x,y of the pause. In my case I do > pure MapServer query requests with JSON or HTML responses. I ported the > ka-map approach to my own non-tiled framework (for example, > http://www.dnr.state.mn.us/waters/csg/index.html) and want to use a > similar approach with OpenLayers clients I'm working on. > > Steve > >>>> On 12/19/2007 at 2:47 PM, in message > <5ec103de0712191247m1c7576b2vb63a50b0dbe0059d@mail.gmail.com>, "Eric > Lemoine" > wrote: >> On Dec 19, 2007 9:37 PM, Steve Lime > wrote: >>> Folks familiar with ka-map might also be familiar with a mouse pause >>> event >> that has proven >>> to be really useful (for me anyway). I fires if the mouse has been >> stationary a certain >>> amount of time. I grep'd the source but didn't find anything obvious. > >>> Does >> anything like it >>> exist? Thanks. >> Steve >> >> What kind of request would you like to see triggered? WMS > GetFeatureInfo? >> FYI, we implemented this in MapFish, using our own REST-based protocol > >> between the client and the server. >> >> -- >> Eric > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > --------------------------------------------------------------------- > This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. > > > !DSPAM:4033,4769fcc0133261439371379! > > > ------------------------------------------------------------------------ > > Scroll mouse wheel to see delta here. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > !DSPAM:4033,4769fcc0133261439371379! _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From snowdrop at ath.forthnet.gr Fri Jan 4 07:00:40 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Preventing zoom out In-Reply-To: <14610120.post@talk.nabble.com> References: <14608863.post@talk.nabble.com> <14610120.post@talk.nabble.com> Message-ID: <14614936.post@talk.nabble.com> I don't think this is true. In my map I have default num of zoomlevels (16). I also set the center of my map with var extent = new OpenLayers.Bounds( 20, 34.7, 28.5, 41.7) var map; function init(){ map = new OpenLayers.Map( 'map' , {restrictedExtent:extent, maxExtent:extent, maxResolution: 0.010986328125, controls: [new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MouseToolbar(), new OpenLayers.Control.MousePosition({prefix: '?: ', separator: ', ?: '})], theme:null}); var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP,'maxZoomLevel':16} ); var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP }); var dtm = new OpenLayers.Layer.WMS( "ICEDS (Integrated CEOS European Data Server) WMS", "http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?", {layers: "srtm"}); var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1:80/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes.map', layers: 'Quakes', transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); map.setCenter(extent.getCenterLonLat,7); so what i get is a map centered at my specified extent, zoomed at level 7 and one can zoom out to level 0 which is the whole world well, I wasn't any help with the last your last question but lets see if I can add some value :-) I believe maxResolution is zoom level 0 on the map. If you don't specify a resolution's array and only specify maxResolution and numZoomLevels (n) every zoom level is the previous zoom level/2, e.g., Zoom0: maxResolution Zoom1: maxResolution/2 Zoom2: Zoom1/2 Zoom3: Zoom2/2 hope that helps -- View this message in context: http://www.nabble.com/Preventing-zoom-out-tp14608863p14614936.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mrsourkid at gmail.com Fri Jan 4 08:22:21 2008 From: mrsourkid at gmail.com (Clare Lindley) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] New with openLayer In-Reply-To: <4710.192.168.1.170.1199387327.squirrel@www.dicyt.umss.edu.bo> References: <4710.192.168.1.170.1199387327.squirrel@www.dicyt.umss.edu.bo> Message-ID: <8648a4d90801040522t6549da79k632ddd8c0b52c006@mail.gmail.com> Hi Marcelo I'm fairly new to Open Layers myself, but I have found these examples to be a good starting point: http://openlayers.org/dev/examples/ And here's a link to the Open Layers documentation: http://dev.openlayers.org/docs/files/OpenLayers-js.html Cheers Clare On Jan 3, 2008 7:08 PM, wrote: > Hello to all, > > I am new with this topics (maps), what I want is how can I create my maps, > draw my map and put this in the internet, showing places and other > information. > > Some body can help me?, where is the start point for this > > regards > > Marcelo > > _______________________________________________ > 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/20080104/5f30bf04/attachment.html From snowdrop at ath.forthnet.gr Fri Jan 4 08:45:11 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Preventing zoom out In-Reply-To: <14614936.post@talk.nabble.com> References: <14608863.post@talk.nabble.com> <14610120.post@talk.nabble.com> <14614936.post@talk.nabble.com> Message-ID: <14616669.post@talk.nabble.com> I finally figured it out. All I had to do was specify, MIN_ZOOM_LEVEL, in google maps declaration which now look like: var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, MIN_ZOOM_LEVEL: 7, maxExtent:extent} ); -- View this message in context: http://www.nabble.com/Preventing-zoom-out-tp14608863p14616669.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zhanna at planetzhanna.com Fri Jan 4 08:48:09 2008 From: zhanna at planetzhanna.com (Zhanna Maher) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Historic topo maps? In-Reply-To: <6e9b30fb0801032323mbfd6248o8c4743aa5a4e3d01@mail.gmail.com> References: <477D44F0.5070309@planetzhanna.com> <6e9b30fb0801032323mbfd6248o8c4743aa5a4e3d01@mail.gmail.com> Message-ID: Thanks, Linda, but I think the Terraservice only has the current (or reasonably so) topo maps. The ones I saw before were much older. Zhanna ________________________________________ From: Linda Rawson [mailto:linda.rawson@gmail.com] Sent: Friday, January 04, 2008 2:23 AM To: Zhanna Maher Subject: Re: [OpenLayers-Users] Historic topo maps? I think it might be here -> http://terraserver-usa.com/webservices.aspx ? Linda On Jan 3, 2008 1:26 PM, Zhanna Maher wrote: I recall seeing, a few months ago, a way to access a layer of historic USGS topo maps. ?Now I am unable to find it. ?Does anyone know the server and layer name? Thanks, Zhanna Maher From zhanna at planetzhanna.com Fri Jan 4 08:52:42 2008 From: zhanna at planetzhanna.com (Zhanna Maher) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Historic topo maps? In-Reply-To: References: <477D44F0.5070309@planetzhanna.com> Message-ID: Hi Andrea, that?s exactly the layer I?m looking for! But do you know how I can access it directly? They are caching the layers so wouldn?t I need to see their config file to get the actual WMS server name? Thanks, Zhanna ________________________________________ From: iomeneandrei@gmail.com [mailto:iomeneandrei@gmail.com] On Behalf Of Andrea Borruso Sent: Friday, January 04, 2008 3:52 AM To: Zhanna Maher Subject: Re: [OpenLayers-Users] Historic topo maps? Hi zhanna, look at this: http://tilecache.org/demo.html ? regards, ? Andrea On Jan 3, 2008 9:26 PM, Zhanna Maher wrote: I recall seeing, a few months ago, a way to access a layer of historic USGS topo maps. ?Now I am unable to find it. ?Does anyone know the server and layer name? Thanks, Zhanna Maher From bjousse at orange.fr Fri Jan 4 12:59:35 2008 From: bjousse at orange.fr (bjousse) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] WFS layer shifted in IE7 Message-ID: <14621757.post@talk.nabble.com> Hi, I work on a project with geoServer + openlayers + jquery. projection is EPSG:2154 I include a WFS layer at startup and another one with a request any type, at any zoom. Everything is OK with FF, but when a WFS llayer is added to the map, it is shifted to the right. If i go to any other zoom level IN, it is OK, if I come back to the original zoom level, it is shifted again, when I zoom out, the shift increases. Does any body have an idea ? -- View this message in context: http://www.nabble.com/WFS-layer-shifted-in-IE7-tp14621757p14621757.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From erik.uzureau at metacarta.com Fri Jan 4 14:35:49 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Build With vector Support In-Reply-To: <14302922.post@talk.nabble.com> References: <14302536.post@talk.nabble.com> <20071212195945.GA21131@metacarta.com> <14302809.post@talk.nabble.com> <5ec103de0712121205h40c4d736i58d7393949cf3352@mail.gmail.com> <14302922.post@talk.nabble.com> Message-ID: <6ae3fb590801041135v3ae6fce9y6bc3daf353e3665@mail.gmail.com> On 12/12/07, Andrew de klerk wrote: > > Ok - i think thats what i was getting at...sorry to harp on about it, but it > does help to get a clearer understanding of the OL opbject model..I excluded > SVG because i din't think i needed it, but needed VML..So if i am > understanding correctly IE renders vectors using VML and every other browser > renders using SVG? In case noone else cleared this up for you... yes, your understanding is I think correct. At the very least Firefox uses SVG... not sure about Safari and Opera. Erik > Andrew > > > Eric Lemoine-3 wrote: > > > > On Dec 12, 2007 9:03 PM, Andrew de klerk wrote: > >> > >> Thanks...that is an oversight :) > >> > >> Any clues as to why it works in IE without vector support built in? > > > > Because OpenLayers/Renderer/VML.js is not exluded. > > -- > > Eric > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > View this message in context: http://www.nabble.com/Build-With-vector-Support-tp14302536p14302922.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From dejung.gewissler at oit.state.nj.us Fri Jan 4 14:54:13 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] GML/vector layers in IE Message-ID: <477E8EE5.8020602@oit.state.nj.us> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080104/43e47ce4/attachment.html From erik.uzureau at metacarta.com Fri Jan 4 15:18:26 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] browsers supported In-Reply-To: <4767d99b.14c4260a.5336.ffffebae@mx.google.com> References: <4767d99b.14c4260a.5336.ffffebae@mx.google.com> Message-ID: <6ae3fb590801041218s36bbd005r109e39654849a699@mail.gmail.com> Supported Browsers (in theory) http://trac.openlayers.org/wiki/Browsers On 12/18/07, Andrew de Klerk wrote: > > > > Hi all > > > > I was wondering what the supported browsers are for openlayers. I have > encountered a minor bug related to IE7 and when a geometry tool is selected > (point, line or polygon) when the users hard refreshes the page ( I have > logged this ticket). But, the reason why I ask is that I have noticed in > Opera the user cannot double click to close (finish adding) a geometry. Is > Opera supported? > > > > Also, related to the ticket I added, do they go through an approval phase as > I could not find the ticket I added? I was logged in as openlayers. > > > > Keep up the excellent work! > > > > Andrew > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From crschmidt at metacarta.com Fri Jan 4 15:18:52 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <477E8EE5.8020602@oit.state.nj.us> References: <477E8EE5.8020602@oit.state.nj.us> Message-ID: <20080104201852.GA21694@alta.metacarta.com> On Fri, Jan 04, 2008 at 02:54:13PM -0500, Dejung Gewissler wrote: > > Pleaes don't send HTML email. > First, the vector layer not registering itself properly on the map i.e. > the features are not in their correct location. In addition to them not > being in their correct locations initially is that when you zoom in, > them seem to jump to another location. The problem has not been obvious > to me as it works OK in FF. Is this problem related to the style support? If you remove the style / rule usage, does this problem go away? I'd expect not, but want to narrow it down. Also, you're not using Google Maps as a base layer by any chance, are you? Also, does your map have a border or margin around it? You can look at this in Firefox by looking at the element using Firebug, clicking the HTML tab, clicking "Inspect" and looking at the 'Layout' sub-tab to the right in Firebug. > Second, the GML layer is not honoring the style/rule definitions in IE. > Default colors are fine. Classified features don't display the correct > colors.
A small Javascript/HTML example of this would be good. Ah, I see you've attached one. Andreas may be able to help in that case. > Third, when panning the map with a mouse drag event in IE the vector > layer moves fine, but on the mouseout event (to stop that drag/pan) the > vector layer flickers once. It seems that it is flashing the original > location (before the pan started) once and then drawing the vectors in > their final location. This flicker makes using the app in IE less > elegant.
I feel like there either is or was an open ticket on this. It's possible that we punted on it for some reason, or that this is a different issue. Eric or Pierre might have more ideas on that. Regards, -- Christopher Schmidt MetaCarta From miles.togoe at gmail.com Fri Jan 4 15:23:09 2008 From: miles.togoe at gmail.com (MilesTogoe) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Build With vector Support In-Reply-To: <6ae3fb590801041135v3ae6fce9y6bc3daf353e3665@mail.gmail.com> References: <14302536.post@talk.nabble.com> <20071212195945.GA21131@metacarta.com> <14302809.post@talk.nabble.com> <5ec103de0712121205h40c4d736i58d7393949cf3352@mail.gmail.com> <14302922.post@talk.nabble.com> <6ae3fb590801041135v3ae6fce9y6bc3daf353e3665@mail.gmail.com> Message-ID: <477E95AD.9070007@gmail.com> Erik Uzureau wrote: > On 12/12/07, Andrew de klerk wrote: > >> Ok - i think thats what i was getting at...sorry to harp on about it, but it >> does help to get a clearer understanding of the OL opbject model..I excluded >> SVG because i din't think i needed it, but needed VML..So if i am >> understanding correctly IE renders vectors using VML and every other browser >> renders using SVG? >> > > In case noone else cleared this up for you... yes, your understanding > is I think correct. At the very least Firefox uses SVG... not sure > about Safari and Opera. > Both Safari (Leopard) and Opera support SVG - so I would assume OL renders SVG for these two. From crschmidt at metacarta.com Fri Jan 4 15:25:39 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <20080104201852.GA21694@alta.metacarta.com> References: <477E8EE5.8020602@oit.state.nj.us> <20080104201852.GA21694@alta.metacarta.com> Message-ID: <20080104202539.GB21694@alta.metacarta.com> On Fri, Jan 04, 2008 at 03:18:52PM -0500, Christopher Schmidt wrote: > On Fri, Jan 04, 2008 at 02:54:13PM -0500, Dejung Gewissler wrote: > > > > > > Pleaes don't send HTML email. > > > First, the vector layer not registering itself properly on the map i.e. > > the features are not in their correct location. In addition to them not > > being in their correct locations initially is that when you zoom in, > > them seem to jump to another location. The problem has not been obvious > > to me as it works OK in FF. > Also, does your map have a border or margin around it? You can look at > this in Firefox by looking at the element using Firebug, clicking the > HTML tab, clicking "Inspect" and looking at the 'Layout' sub-tab to the > right in Firebug. The answer to the question is "Yes": you have a 5px margin on your map div. I suspect that putting #map { margin: 0px } in your CSS will fix your offset. This is a bug in the way IE handles CSS, which we have not worked around in our code. This is covered by #817 (or at least, it's the same issue as #817, even if it isn't explicitly discussed). Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jan 4 15:27:27 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Build With vector Support In-Reply-To: <477E95AD.9070007@gmail.com> References: <14302536.post@talk.nabble.com> <20071212195945.GA21131@metacarta.com> <14302809.post@talk.nabble.com> <5ec103de0712121205h40c4d736i58d7393949cf3352@mail.gmail.com> <14302922.post@talk.nabble.com> <6ae3fb590801041135v3ae6fce9y6bc3daf353e3665@mail.gmail.com> <477E95AD.9070007@gmail.com> Message-ID: <20080104202727.GC21694@alta.metacarta.com> On Fri, Jan 04, 2008 at 01:23:09PM -0700, MilesTogoe wrote: > Erik Uzureau wrote: > > On 12/12/07, Andrew de klerk wrote: > > > >> Ok - i think thats what i was getting at...sorry to harp on about it, but it > >> does help to get a clearer understanding of the OL opbject model..I excluded > >> SVG because i din't think i needed it, but needed VML..So if i am > >> understanding correctly IE renders vectors using VML and every other browser > >> renders using SVG? > >> > > > > In case noone else cleared this up for you... yes, your understanding > > is I think correct. At the very least Firefox uses SVG... not sure > > about Safari and Opera. > > > Both Safari (Leopard) and Opera support SVG - so I would assume OL > renders SVG for these two. Correct. Safari < 3.x doesn't support SVG, and doesn't render vectors at all. Same is true of FF < 1.5. Regards, -- Christopher Schmidt MetaCarta From dejung.gewissler at oit.state.nj.us Fri Jan 4 17:38:16 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <20080104202539.GB21694@alta.metacarta.com> References: <477E8EE5.8020602@oit.state.nj.us> <20080104201852.GA21694@alta.metacarta.com> <20080104202539.GB21694@alta.metacarta.com> Message-ID: <477EB558.1060501@oit.state.nj.us> Christopher Schmidt wrote: > On Fri, Jan 04, 2008 at 03:18:52PM -0500, Christopher Schmidt wrote: > >> On Fri, Jan 04, 2008 at 02:54:13PM -0500, Dejung Gewissler wrote: >> >>> >>> >>> >> Pleaes don't send HTML email. >> Sorry about the email format. I've changed my email settings. Please let me know if it happens again. >> >>> First, the vector layer not registering itself properly on the map i.e. >>> the features are not in their correct location. In addition to them not >>> being in their correct locations initially is that when you zoom in, >>> them seem to jump to another location. The problem has not been obvious >>> to me as it works OK in FF. >>> >> Also, does your map have a border or margin around it? You can look at >> this in Firefox by looking at the element using Firebug, clicking the >> HTML tab, clicking "Inspect" and looking at the 'Layout' sub-tab to the >> right in Firebug. >> > > The answer to the question is "Yes": you have a 5px margin on your map > div. I suspect that putting #map { margin: 0px } in your CSS will fix > your offset. This is a bug in the way IE handles CSS, which we have not > worked around in our code. This is covered by #817 (or at least, it's > the same issue as #817, even if it isn't explicitly discussed). > > Regards, > I removed all the CSS formatting from my page except BODY and MAP and have made all possible margins and borders to 0px. This solved the 2nd issue! The VML layer was not displaying the correct location because there was a text-align property in the MAP div set to right. Doh! I also tried removing the style/rule classifications, but the flash still happens while panning. This leaves the style/rule classifications not functioning properly in IE and the flicker/flash issue. My gut feeling is that my issue is not the same as #817 because the flicker is always back to the original location of the vector layer before the panning started, not by 5 or 10 pixels. Of course I could be wrong. I am not using Google as a base layer. We have both an ArcGIS server cache and a WMS single tile map service as baselayer options. I even tried removing the AGS map cache but the flicker still exists. Here is the stripped down example: http://199.20.64.48/ags/arcgis/server/appTests/OL/x_for_outside_20080104/index_2.html Thanks, Dejung From crschmidt at metacarta.com Fri Jan 4 17:41:52 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <477EB558.1060501@oit.state.nj.us> References: <477E8EE5.8020602@oit.state.nj.us> <20080104201852.GA21694@alta.metacarta.com> <20080104202539.GB21694@alta.metacarta.com> <477EB558.1060501@oit.state.nj.us> Message-ID: <20080104224152.GA24005@alta.metacarta.com> On Fri, Jan 04, 2008 at 05:38:16PM -0500, Dejung Gewissler wrote: > Christopher Schmidt wrote: > >>Pleaes don't send HTML email. > >> > Sorry about the email format. I've changed my email settings. Please let > me know if it happens again. No problem. If it had been particularly ardurous to read, I wouldn't have responded in the first place -- my response was only so that you don't get people like me brushing you off in the future :) > This leaves the style/rule classifications not functioning properly in > IE and the flicker/flash issue. My gut feeling is that my issue is not > the same as #817 because the flicker is always back to the original > location of the vector layer before the panning started, not by 5 or 10 > pixels. Of course I could be wrong. You're right that this is not #817 -- the style rules are the only thing that was affected by #817, Sorry about that. The other two issues are definitely issues. The latter sounds familiar insofar as I know that it's been reported as a bug before, but I'm not sure if it's been fixed. I know nothing about the former, but I'm hopeful that you'll get a response, since your example was pretty brief, so it seems like someone with some knowledge and IE will be able to resolve it pretty quickly. (I, unfortunately, have neither. :) Regards, -- Christopher Schmidt MetaCarta From aeskreis at gmail.com Fri Jan 4 22:33:49 2008 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] changing tile load functionality Message-ID: I am currently using OpenLayers 2.5 with kamap1.0 as my backend, trying to speed this thing up a little bit. I know getting rid of kamap and replacing it with something else would probably help a lot, but im trying to optimize openlayers before i dive into that. Right now, the main problem i can see that openlayers is having and is giving the appearance of poor speed, is that it is loading tiles off the screen before loading tiles on the screen. I would like to change this functionality. I'm not afraid to get my hands dirty with code, so if anyone has any suggestions about a way to change this, i'm open to suggestions. One thing i was considering, ive been looking at the code, and it appears that it loads the tiles from left to right. One thing ive considered is loading htem in a spiral fashion, starting with the center of the map. This would give the appearnce of speed, by loading the tiles on the screen first, then continuing to load off-screen tiles in the backgroudn to prepare for panning. It seems the place to make this change is in initGriddedTiles(), but im not 100% sure and i dont wanna f*** things up too bad without getting some advice/opinions from the openlayers experts. So, any ideas how to make the initial tiles grabbed by openlayers to be the ones on the screen, as opposed to ones off the screen? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080104/d77ee864/attachment.html From crschmidt at metacarta.com Fri Jan 4 22:49:39 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] changing tile load functionality In-Reply-To: References: Message-ID: <20080105034939.GA27948@alta.metacarta.com> On Fri, Jan 04, 2008 at 10:33:49PM -0500, Adam Eskreis wrote: > I am currently using OpenLayers 2.5 with kamap1.0 as my backend, trying to > speed this thing up a little bit. I know getting rid of kamap and replacing > it with something else would probably help a lot, but im trying to optimize > openlayers before i dive into that. Right now, the main problem i can see > that openlayers is having and is giving the appearance of poor speed, is > that it is loading tiles off the screen before loading tiles on the screen. > I would like to change this functionality. I'm not afraid to get my hands > dirty with code, so if anyone has any suggestions about a way to change > this, i'm open to suggestions. 1. {buffer: 0} in your layer options. This will decrease the tiles loaded outside the map by a huge amount. If tile loading is slow, do this first. 2. Multi-Host URLs: http://a.myserver.example.com, http://b.myserver.example.com/ . This way, the browser will load more tiles at once. Optimial number of hosts is probably 3. See multiserver.html in examples. > One thing i was considering, ive been looking at the code, and it appears > that it loads the tiles from left to right. One thing ive considered is > loading htem in a spiral fashion, starting with the center of the map. This > would give the appearnce of speed, by loading the tiles on the screen first, > then continuing to load off-screen tiles in the backgroudn to prepare for > panning. It seems the place to make this change is in initGriddedTiles(), > but im not 100% sure and i dont wanna f*** things up too bad without getting > some advice/opinions from the openlayers experts. Your'e on the right track, but I don't think you read the last line of initGriddedTiles: this.spiralTileLoad(); Essentially, the grid is created left-to-right -- but the tiles are 'empty' tiles until they're loaded by spiralTileLoad. Regards, -- Christopher Schmidt MetaCarta From aborruso at tin.it Sat Jan 5 04:46:54 2008 From: aborruso at tin.it (Andrea Borruso) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Historic topo maps? In-Reply-To: References: <477D44F0.5070309@planetzhanna.com> Message-ID: Hi Zhanna, I do not know if there is a public wms address. You shuold ask to tilecache people. best regards, a On Jan 4, 2008 2:52 PM, Zhanna Maher wrote: > Hi Andrea, that's exactly the layer I'm looking for! But do you know how > I > can access it directly? They are caching the layers so wouldn't I need to > see their config file to get the actual WMS server name? > > Thanks, > Zhanna > > ________________________________________ > From: iomeneandrei@gmail.com [mailto:iomeneandrei@gmail.com] On Behalf Of > Andrea Borruso > Sent: Friday, January 04, 2008 3:52 AM > To: Zhanna Maher > Subject: Re: [OpenLayers-Users] Historic topo maps? > > Hi zhanna, > look at this: > http://tilecache.org/demo.html > > regards, > > Andrea > On Jan 3, 2008 9:26 PM, Zhanna Maher wrote: > > I recall seeing, a few months ago, a way to access a layer of historic > USGS topo maps. Now I am unable to find it. Does anyone know the > server and layer name? > > Thanks, > Zhanna Maher > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080105/28cf775e/attachment.html From nick at hogweed.org Sat Jan 5 05:04:45 2008 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Mercator coordinates mismatch (informationfreeway.org and Freemap) Message-ID: <200801051004.45653.nick@hogweed.org> Hello everyone, Freemap has been Mercator for a while now, but has used its own zoom levels rather than the standard Google zoom levels. By using code from informationfreeway.org, I have now converted Freemap to use the Google zoom levels and tiling scheme, but I'm now getting a mismatch in the Mercator coordinates used compared to previously. Previously, the mercator coordinates (-85000, 6595000) corresponded to Fernhurst, West sussex, UK but (as you can see at http://www.free-map.org.uk) they now correspond to Lavant, some 15 miles south. The code I previously used to convert from latlon to mercator is a standard algorithm found on the web and is at http://www.free-map.org.uk/freemap/javascript/lib/converter.js (look in the Mercator section) The OpenLayers code I now use to set up the map is the same as that in informationfreeway.org, and can be found at http://www.free-map.org.uk/freemap/javascript/mapnik/init.js The markers overlays are using the old code, so the markers you see *are* the Fernhurst area ones. Any ideas what might have gone wrong? Thanks, Nick From bjousse at orange.fr Sat Jan 5 07:01:51 2008 From: bjousse at orange.fr (bjousse) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] WFS layer shifted in IE7 In-Reply-To: <14621757.post@talk.nabble.com> References: <14621757.post@talk.nabble.com> Message-ID: <14632376.post@talk.nabble.com> Well, I read todays' digest and got my answer from Dejung Gewissler. just setting text-align: left; in the map CSS style did it..... thanks bjousse wrote: > > Hi, > > I work on a project with geoServer + openlayers + jquery. projection is > EPSG:2154 > I include a WFS layer at startup and another one with a request any type, > at any zoom. > > Everything is OK with FF, but when a WFS llayer is added to the map, it is > shifted to the right. If i go to any other zoom level IN, it is OK, if I > come back to the original zoom level, it is shifted again, when I zoom > out, the shift increases. > > Does any body have an idea ? > -- View this message in context: http://www.nabble.com/WFS-layer-shifted-in-IE7-tp14621757p14632376.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Sat Jan 5 09:12:30 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Mercator coordinates mismatch (informationfreeway.org and Freemap) In-Reply-To: <200801051004.45653.nick@hogweed.org> References: <200801051004.45653.nick@hogweed.org> Message-ID: <20080105141229.GC3299@alta.metacarta.com> On Sat, Jan 05, 2008 at 10:04:45AM +0000, Nick Whitelegg wrote: > Any ideas what might have gone wrong? Nick solved this on another list. Regards, -- Christopher Schmidt MetaCarta From plists at prometheus.org.yu Sat Jan 5 13:13:25 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Drag cancellation ? Message-ID: <200801051913.25380.plists@prometheus.org.yu> I was writing functions for a DragFreature control and wanted to implement an undo/invalid choice type of feature, but I can't seem to find how to cancel a drag (if f.e. the drop location is found to be invalid in the onComplete function). I tried restoring geometry (which I saved in onStart) but that didn't quite work as expected (leaves me with 2 drawn features, on both new AND old locations, although the number of features in the layer has not changed) so I'm under the impression there is a simpler way of doing this or it's just that I can't see the forest from the tree... var undogeometry = null; var drag = new OpenLayers.Control.DragFeature(pointlayer,{ onStart: function(feature, pixel) { undogeometry = feature.geometry.clone(); }, onComplete: function(feature, pixel) { if (invalid_loc(feature.geometry)) { feature.geometry.destroy(); feature.geometry = undogeometry.clone(); undogeometry.destroy(); feature.layer.redraw(); alert('Invalid location !'); } } }); From d.pru at hotmail.com Sun Jan 6 21:22:51 2008 From: d.pru at hotmail.com (David Pruitt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Selecting a country Message-ID: Let's say I have a user who is looking at my map, and clicks on a specific country. What is the best way to recognize which country he clicked on? I thought using features would be good, but a user can't pan around the map if he/she is holding down the mouse button on a feature. Is there any way to accomplish this WITHOUT using MapServer or GeoServer or something of that sort? David _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080106/825c8c4d/attachment.html From eric.c2c at gmail.com Mon Jan 7 00:42:27 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Selecting a country In-Reply-To: References: Message-ID: <5ec103de0801062142h9fefd39rdc99956d400aca7c@mail.gmail.com> On Jan 7, 2008 3:22 AM, David Pruitt wrote: > > Let's say I have a user who is looking at my map, and clicks on a specific > country. What is the best way to recognize which country he clicked on? > > I thought using features would be good, but a user can't pan around the map > if he/she is holding down the mouse button on a feature. > > Is there any way to accomplish this WITHOUT using MapServer or GeoServer or > something of that sort? Hello If the countries aren't rendered by the browser (and therefore you don't have information about these countries on the client side) then you need to send a request to some service to get information on the clicked country. Have you had some other solution in mind? -- Eric From eric.c2c at gmail.com Mon Jan 7 00:59:01 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <200801051913.25380.plists@prometheus.org.yu> References: <200801051913.25380.plists@prometheus.org.yu> Message-ID: <5ec103de0801062159u7c3b6034r2c5f5597a3d95ff1@mail.gmail.com> On Jan 5, 2008 7:13 PM, Attila Csipa wrote: > I was writing functions for a DragFreature control and wanted to implement an > undo/invalid choice type of feature, but I can't seem to find how to cancel a > drag (if f.e. the drop location is found to be invalid in the onComplete > function). I tried restoring geometry (which I saved in onStart) but that > didn't quite work as expected (leaves me with 2 drawn features, on both new > AND old locations, although the number of features in the layer has not > changed) so I'm under the impression there is a simpler way of doing this or > it's just that I can't see the forest from the tree... > > var undogeometry = null; > var drag = new OpenLayers.Control.DragFeature(pointlayer,{ > onStart: function(feature, pixel) > { > undogeometry = feature.geometry.clone(); > }, > onComplete: function(feature, pixel) > { > if (invalid_loc(feature.geometry)) > { > feature.geometry.destroy(); > feature.geometry = undogeometry.clone(); > undogeometry.destroy(); > feature.layer.redraw(); > alert('Invalid location !'); > } > } > }); Hi Attila Off the top of my head: you could try to erase the feature before calling layer.redraw() in the onComplete() callback. To erase the feature use feature.layer.eraseFeatures([feature]). -- Eric From d.pru at hotmail.com Mon Jan 7 01:05:32 2008 From: d.pru at hotmail.com (David Pruitt) Date: Wed Sep 1 17:16:00 2010 Subject: [OpenLayers-Users] =?windows-1256?q?Selecting_a_country=FE?= Message-ID: Well, there are a few reasons why using MapServer is out of the question. 1. I am running my mapping application on some server space that I have on the computer science servers here on campus. Although I am granted server space, I obviously have no ability to change the settings to Apache or put MapServer into the cgi-bin of Apache. Therefore, although I can run PHP scripts (which I do), running something like MapServer is out of the question. 2. I am running Apache on my personal machine....and so of course I could install MapServer on here, but my personal machine is not the "production environment"...it is simply the testing environment. The production environment is my server space on the CS servers - and if I can't run MapServer on those servers, there is no point running it on my test server (my personal computer). 3. Even if I did have access to a production server where I could configure Apache how I wanted it to be - I am completely unfamiliar with MapServer and WMS requests - although I am very familiar with HTTP requests and networking in general. WMS is simply a protocol I don't know. In addition, I don't know how to create a map that would work with MapServer. Consequently: I am currently using the free map available at: http://labs.metacarta.com/wms/vmap0? Which is also used in many of the OpenLayers demos. I am thinking, however, of using Google Maps possibly, but I am not sure yet. So this is my dilemma: Under these circumstances, how can I recognize which country a user has clicked on the map? Several months ago at work I made a simple mapping application in Flash (at which time I didn't even know OpenLayers or MapServer existed). For that mapping application we simply overlayed an image of each country on top of itself on the world map, and then the overlayed image acted as a button - thus making it quite simple to tell which country had been clicked. I was hoping to do something similar with OpenLayers in this mapping application that I am currently building, but using the "Features" in OpenLayers to create polygons that I could overlay over each country - and essentially have each polygon act as a button so I could tell which country had been clicked. I noticed however, that if I held my mouse button down on one of these polygons, I could no longer pan around the map...which is definitely a problem. How does the example map at http://world.freemap.in/ accomplish this task? I looked at the code, and although I am new to OpenLayers and this whole WMS thing...it seems like it is making some WMS requests to a MapServer server. Thanks for any help. David> Date: Mon, 7 Jan 2008 06:42:27 +0100> From: eric.c2c@gmail.com> To: d.pru@hotmail.com> Subject: Re: [OpenLayers-Users] Selecting a country> CC: users@openlayers.org> > On Jan 7, 2008 3:22 AM, David Pruitt wrote:> >> > Let's say I have a user who is looking at my map, and clicks on a specific> > country. What is the best way to recognize which country he clicked on?> >> > I thought using features would be good, but a user can't pan around the map> > if he/she is holding down the mouse button on a feature.> >> > Is there any way to accomplish this WITHOUT using MapServer or GeoServer or> > something of that sort?> > Hello> > If the countries aren't rendered by the browser (and therefore you> don't have information about these countries on the client side) then> you need to send a request to some service to get information on the> clicked country. Have you had some other solution in mind?> > --> Eric _________________________________________________________________ Make distant family not so distant with Windows Vista? + Windows Live?. http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080107/4e80b244/attachment.html From penyaskito at gmail.com Mon Jan 7 01:42:48 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Selecting a country Message-ID: You should use the webservices at http://www.geonames.org/export As example, I live here :-) http://ws.geonames.org/findNearbyPlaceNameJSON?lat=37.867&lng=-5.6 You can make great things using this and an AJAX request. Hope this helps. On Jan 7, 2008 7:05 AM, David Pruitt wrote: > > Well, there are a few reasons why using MapServer is out of the question. > > 1. I am running my mapping application on some server space that I have on > the computer science servers here on campus. Although I am granted server > space, I obviously have no ability to change the settings to Apache or put > MapServer into the cgi-bin of Apache. Therefore, although I can run PHP > scripts (which I do), running something like MapServer is out of the > question. > > 2. I am running Apache on my personal machine....and so of course I could > install MapServer on here, but my personal machine is not the "production > environment"...it is simply the testing environment. The production > environment is my server space on the CS servers - and if I can't run > MapServer on those servers, there is no point running it on my test server > (my personal computer). > > 3. Even if I did have access to a production server where I could configure > Apache how I wanted it to be - I am completely unfamiliar with MapServer and > WMS requests - although I am very familiar with HTTP requests and networking > in general. WMS is simply a protocol I don't know. In addition, I don't > know how to create a map that would work with MapServer. > > Consequently: > > I am currently using the free map available at: > > http://labs.metacarta.com/wms/vmap0? > > Which is also used in many of the OpenLayers demos. I am thinking, however, > of using Google Maps possibly, but I am not sure yet. > > So this is my dilemma: Under these circumstances, how can I recognize which > country a user has clicked on the map? > > Several months ago at work I made a simple mapping application in Flash (at > which time I didn't even know OpenLayers or MapServer existed). For that > mapping application we simply overlayed an image of each country on top of > itself on the world map, and then the overlayed image acted as a button - > thus making it quite simple to tell which country had been clicked. I was > hoping to do something similar with OpenLayers in this mapping application > that I am currently building, but using the "Features" in OpenLayers to > create polygons that I could overlay over each country - and essentially > have each polygon act as a button so I could tell which country had been > clicked. I noticed however, that if I held my mouse button down on one of > these polygons, I could no longer pan around the map...which is definitely a > problem. > > How does the example map at http://world.freemap.in/ accomplish this task? > I looked at the code, and although I am new to OpenLayers and this whole WMS > thing...it seems like it is making some WMS requests to a MapServer server. > > Thanks for any help. > > David > > > Date: Mon, 7 Jan 2008 06:42:27 +0100 > > From: eric.c2c@gmail.com > > To: d.pru@hotmail.com > > Subject: Re: [OpenLayers-Users] Selecting a country > > CC: users@openlayers.org > > > > On Jan 7, 2008 3:22 AM, David Pruitt wrote: > > > > > > Let's say I have a user who is looking at my map, and clicks on a > specific > > > country. What is the best way to recognize which country he clicked on? > > > > > > I thought using features would be good, but a user can't pan around the > map > > > if he/she is holding down the mouse button on a feature. > > > > > > Is there any way to accomplish this WITHOUT using MapServer or GeoServer > or > > > something of that sort? > > > > Hello > > > > If the countries aren't rendered by the browser (and therefore you > > don't have information about these countries on the client side) then > > you need to send a request to some service to get information on the > > clicked country. Have you had some other solution in mind? > > > > -- > > Eric > > > ________________________________ > Make distant family not so distant with Windows Vista(R) + Windows Live?. > Start now! > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Regards, Christian L?pez Esp?nola From d.pru at hotmail.com Mon Jan 7 01:44:51 2008 From: d.pru at hotmail.com (David Pruitt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Selecting a country In-Reply-To: References: Message-ID: That looks perfect! Thanks for that tip. David> Date: Mon, 7 Jan 2008 07:42:48 +0100> From: penyaskito@gmail.com> To: d.pru@hotmail.com> Subject: Re: [OpenLayers-Users] Selecting a country> CC: users@openlayers.org> > You should use the webservices at http://www.geonames.org/export> > As example, I live here :-)> http://ws.geonames.org/findNearbyPlaceNameJSON?lat=37.867&lng=-5.6> > You can make great things using this and an AJAX request.> Hope this helps.> > On Jan 7, 2008 7:05 AM, David Pruitt wrote:> >> > Well, there are a few reasons why using MapServer is out of the question.> >> > 1. I am running my mapping application on some server space that I have on> > the computer science servers here on campus. Although I am granted server> > space, I obviously have no ability to change the settings to Apache or put> > MapServer into the cgi-bin of Apache. Therefore, although I can run PHP> > scripts (which I do), running something like MapServer is out of the> > question.> >> > 2. I am running Apache on my personal machine....and so of course I could> > install MapServer on here, but my personal machine is not the "production> > environment"...it is simply the testing environment. The production> > environment is my server space on the CS servers - and if I can't run> > MapServer on those servers, there is no point running it on my test server> > (my personal computer).> >> > 3. Even if I did have access to a production server where I could configure> > Apache how I wanted it to be - I am completely unfamiliar with MapServer and> > WMS requests - although I am very familiar with HTTP requests and networking> > in general. WMS is simply a protocol I don't know. In addition, I don't> > know how to create a map that would work with MapServer.> >> > Consequently:> >> > I am currently using the free map available at:> >> > http://labs.metacarta.com/wms/vmap0?> >> > Which is also used in many of the OpenLayers demos. I am thinking, however,> > of using Google Maps possibly, but I am not sure yet.> >> > So this is my dilemma: Under these circumstances, how can I recognize which> > country a user has clicked on the map?> >> > Several months ago at work I made a simple mapping application in Flash (at> > which time I didn't even know OpenLayers or MapServer existed). For that> > mapping application we simply overlayed an image of each country on top of> > itself on the world map, and then the overlayed image acted as a button -> > thus making it quite simple to tell which country had been clicked. I was> > hoping to do something similar with OpenLayers in this mapping application> > that I am currently building, but using the "Features" in OpenLayers to> > create polygons that I could overlay over each country - and essentially> > have each polygon act as a button so I could tell which country had been> > clicked. I noticed however, that if I held my mouse button down on one of> > these polygons, I could no longer pan around the map...which is definitely a> > problem.> >> > How does the example map at http://world.freemap.in/ accomplish this task?> > I looked at the code, and although I am new to OpenLayers and this whole WMS> > thing...it seems like it is making some WMS requests to a MapServer server.> >> > Thanks for any help.> >> > David> >> > > Date: Mon, 7 Jan 2008 06:42:27 +0100> > > From: eric.c2c@gmail.com> > > To: d.pru@hotmail.com> > > Subject: Re: [OpenLayers-Users] Selecting a country> > > CC: users@openlayers.org> > >> > > On Jan 7, 2008 3:22 AM, David Pruitt wrote:> > > >> > > > Let's say I have a user who is looking at my map, and clicks on a> > specific> > > > country. What is the best way to recognize which country he clicked on?> > > >> > > > I thought using features would be good, but a user can't pan around the> > map> > > > if he/she is holding down the mouse button on a feature.> > > >> > > > Is there any way to accomplish this WITHOUT using MapServer or GeoServer> > or> > > > something of that sort?> > >> > > Hello> > >> > > If the countries aren't rendered by the browser (and therefore you> > > don't have information about these countries on the client side) then> > > you need to send a request to some service to get information on the> > > clicked country. Have you had some other solution in mind?> > >> > > --> > > Eric> >> >> > ________________________________> > Make distant family not so distant with Windows Vista(R) + Windows Live?.> > Start now!> > _______________________________________________> > Users mailing list> > Users@openlayers.org> > http://openlayers.org/mailman/listinfo/users> >> >> > > > -- > Regards,> > Christian L?pez Esp?nola _________________________________________________________________ Make distant family not so distant with Windows Vista? + Windows Live?. http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080107/c7410342/attachment.html From plists at prometheus.org.yu Mon Jan 7 05:25:14 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <5ec103de0801062159u7c3b6034r2c5f5597a3d95ff1@mail.gmail.com> References: <200801051913.25380.plists@prometheus.org.yu> <5ec103de0801062159u7c3b6034r2c5f5597a3d95ff1@mail.gmail.com> Message-ID: <200801071125.15269.plists@prometheus.org.yu> On Monday 07 January 2008 06:59:01 Eric Lemoine wrote: > Off the top of my head: you could try to erase the feature before > calling layer.redraw() in the onComplete() callback. To erase the > feature use feature.layer.eraseFeatures([feature]). Thanks for the tip, after taking a look at the source of Layer.Vector.removeFeatures, I found what I needed (and also figured out why i didn't work in the first place). Just changing the geometry of an already drawn feature leaves the old geometry in the renderer, that's why I ended up with both old and new geometries even though there was only one feature with one geometry. The magic line in onComplete (before restoring the original geometry) thus is: feature.layer.renderer.eraseGeometry(feature.geometry); From eric.c2c at gmail.com Mon Jan 7 06:39:30 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <200801071125.15269.plists@prometheus.org.yu> References: <200801051913.25380.plists@prometheus.org.yu> <5ec103de0801062159u7c3b6034r2c5f5597a3d95ff1@mail.gmail.com> <200801071125.15269.plists@prometheus.org.yu> Message-ID: <5ec103de0801070339n5b222e45h5729b1fafa1f46db@mail.gmail.com> On Jan 7, 2008 11:25 AM, Attila Csipa wrote: > On Monday 07 January 2008 06:59:01 Eric Lemoine wrote: > > Off the top of my head: you could try to erase the feature before > > calling layer.redraw() in the onComplete() callback. To erase the > > feature use feature.layer.eraseFeatures([feature]). > > Thanks for the tip, after taking a look at the source of > Layer.Vector.removeFeatures, I found what I needed (and also figured out why > i didn't work in the first place). Just changing the geometry of an already > drawn feature leaves the old geometry in the renderer, that's why I ended up > with both old and new geometries even though there was only one feature with > one geometry. The magic line in onComplete (before restoring the original > geometry) thus is: > > feature.layer.renderer.eraseGeometry(feature.geometry); The line I gave you does just the same in this case I guess. -- Eric From plists at prometheus.org.yu Mon Jan 7 07:56:30 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <5ec103de0801070339n5b222e45h5729b1fafa1f46db@mail.gmail.com> References: <200801051913.25380.plists@prometheus.org.yu> <200801071125.15269.plists@prometheus.org.yu> <5ec103de0801070339n5b222e45h5729b1fafa1f46db@mail.gmail.com> Message-ID: <200801071356.30712.plists@prometheus.org.yu> On Monday 07 January 2008 12:39:30 Eric Lemoine wrote: > > > Off the top of my head: you could try to erase the feature before > > > calling layer.redraw() in the onComplete() callback. To erase the > > > feature use feature.layer.eraseFeatures([feature]). > > > > one feature with one geometry. The magic line in onComplete (before > > restoring the original geometry) thus is: > > > > feature.layer.renderer.eraseGeometry(feature.geometry); > > The line I gave you does just the same in this case I guess. Almost - the dragged feature is not a copy, so if you do removeFeatures() it's gone for good (sort of blackholed instead of reverting to a previous state so the user can try dragging again). You could, of course, clone the whole feature in which case you CAN erase and replace it, but it seemed an overkill as the feature had a hefty attribute array and the only thing that needed reverting was the geometry (feature cloning has other possible drawbacks if one is not careful as they are sometimes expected to be sort-of persistent - IDs, order, etc). From Jeremy.Nix at sfsltd.com Mon Jan 7 08:18:10 2008 From: Jeremy.Nix at sfsltd.com (Jeremy Nix) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Problems with SVG.setExtent() in Firefox/Windows Message-ID: <47822692.8050200@sfsltd.com> We've isolated a bug in the SVG renderer that occurs in Windows only that causes Firefox to lock up. It happens in the SVG.setExtent() method at the setAttributeNS call. By commenting out this call, the operation succeeded successfully. I'm unsure what the purpose of this call is, so if this is in fact a browser related bug, what is the harm of keeping this line commented out? Thanks for any help. -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 From adams at terrestris.de Mon Jan 7 08:28:58 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] FOSSGIS 2008 CFP Message-ID: <4782291A.8020406@terrestris.de> Dear list, sorry for all non-german speakers! This is the official announcement for the german speaking free and open source gis conference, which will take place in Freiburg, Germany this year from April 1st-3rd. More information on www.fossgis.de Best regards, Till Adams From here in german only: FOSSGIS 2008 - die Open Source GIS Branche in Freiburg Vom 01. bis 03. April 2008 pr?sentiert sich die Open Source Branche zu Geographischen Informationssystemen auf der FOSSGIS 2008 an der Albert-Ludwigs-Universit?t Freiburg, wo die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme stattfindet. An drei Ausstellungstagen werden auf der Konferenz in parallel laufenden Workshops und Vortragsreihen die neuesten Open Source Entwicklungen aus dem Bereich Webmapping, Geodatenmanagement und Desktop-GIS pr?sentiert. Geo-Anwendungen auf Basis Freier Software sind einer der dynamischsten Wachstumsm?rkte im gesamten IT-Markt. Die Nachfrage nach Geoinformationen erf?hrt nicht nur durch popul?re Massenanwendungen wie Google Maps & Co. erhebliche Steigerungen. Auch die Bereiche Neogeography, Business Mapping, Tourismusanwendungen, 3D-Anwendungen, mobile GI-Systeme oder Metadaten erfahren seit Jahren einen stetigen Aufw?rtstrend. Aktuelle Themen wie der standardisierte Datenaustausch mittels ISO-Normen und OGC-Spezifikationen und die Ma?nahmen zur Erf?llung der im Mai 2007 in Kraft getretenen EU-Richtlinie INSPIRE stehen im Mittelpunkt der FOSSGIS 2008. F?r diese und viele weitere Anwendungen werden auf der FOSSGIS 2008 bew?hrte und innovative Open Source Anwendungen vorgestellt. Interessenten k?nnen sich auf der Webseite der FOSSGIS 2008 (http://www.fossgis.de) informieren und f?r den Besuch der Anwenderkonferenz anmelden. Der Eintritt ist kostenfrei, eine Registrierung ist allerdings notwendig: http://www.fossgis.de/wiki/index.php/Anmeldung Der Call for Papers f?r Anwenderberichte und Workshops ist ab sofort offen und l?uft noch bis zum 01. M?rz 2008, interessierte Anwender k?nnen sich unter cfp_fossgis@freegis.org um die Teilnahme bewerben. Weitere Informationen finden Sie unter http://www.fossgis.de/wiki/index.php/CFP_2008 Organisationen und Unternehmen, die sich noch als Aussteller oder Sponsoren registrieren wollen, finden alle relevanten Informationen unter http://www.fossgis.de/wiki/index.php/Messe_Sponsoring_2008 F?r allgemeine R?ckfragen finden sich unter der Webadresse http://www.fossgis.de/wiki/ die Kontaktdaten des Organisationsteams. Wir freuen uns auf Ihren Besuch! Mit freundlichem Gru?, Till Adams ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From eric.c2c at gmail.com Mon Jan 7 10:20:47 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <200801071356.30712.plists@prometheus.org.yu> References: <200801051913.25380.plists@prometheus.org.yu> <200801071125.15269.plists@prometheus.org.yu> <5ec103de0801070339n5b222e45h5729b1fafa1f46db@mail.gmail.com> <200801071356.30712.plists@prometheus.org.yu> Message-ID: <5ec103de0801070720h7df1a1fbt644bbbcaa533415b@mail.gmail.com> On Jan 7, 2008 1:56 PM, Attila Csipa wrote: > On Monday 07 January 2008 12:39:30 Eric Lemoine wrote: > > > > Off the top of my head: you could try to erase the feature before > > > > calling layer.redraw() in the onComplete() callback. To erase the > > > > feature use feature.layer.eraseFeatures([feature]). > > > > > > one feature with one geometry. The magic line in onComplete (before > > > restoring the original geometry) thus is: > > > > > > feature.layer.renderer.eraseGeometry(feature.geometry); > > > > The line I gave you does just the same in this case I guess. > > Almost - the dragged feature is not a copy, so if you do removeFeatures() it's I never suggested to use removeFeatures(). I mentioned eraseFeatures() if I recall correctly :-) -- Eric From plists at prometheus.org.yu Mon Jan 7 10:33:41 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Drag cancellation ? In-Reply-To: <5ec103de0801070720h7df1a1fbt644bbbcaa533415b@mail.gmail.com> References: <200801051913.25380.plists@prometheus.org.yu> <200801071356.30712.plists@prometheus.org.yu> <5ec103de0801070720h7df1a1fbt644bbbcaa533415b@mail.gmail.com> Message-ID: <200801071633.41425.plists@prometheus.org.yu> On Monday 07 January 2008 16:20:47 Eric Lemoine wrote: > I never suggested to use removeFeatures(). I mentioned eraseFeatures() > if I recall correctly :-) Whoops, looks like all the ice here finally got to my reading abilities :) You're correct, eraseFeatures is effectively a wrapper for eraseGeometry and has nothing to do with removeFeatures. From erik.uzureau at metacarta.com Mon Jan 7 12:22:51 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] move from a to b with sliding effect In-Reply-To: References: Message-ID: <6ae3fb590801070922h7a05067cr927060f9abd0563d@mail.gmail.com> Hi Brent, This functionality is not yet in place, but it is in the works. Erik On 12/21/07, Brent Lund wrote: > > > > > > I'm wondering if it is possible to move from "a" to "b" on a map with a > slide effect. > > > > This flash intro demonstrates what I am looking for : > http://www.lmic.state.mn.us/ghol/. > > > > Thanks, > > > > Brent > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From erik.uzureau at metacarta.com Mon Jan 7 12:39:38 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Adding multiple anchored popups In-Reply-To: <3a1b1f1f0712201656m29a7e7c7ncd5ce1f568af4cc9@mail.gmail.com> References: <3a1b1f1f0712201656m29a7e7c7ncd5ce1f568af4cc9@mail.gmail.com> Message-ID: <6ae3fb590801070939s58aa2bdcjcf8dde1031aa9820@mail.gmail.com> The "exclusive" property of the addPopup() method on the map might have something to do with this... /** * APIMethod: addPopup * * Parameters: * popup - {} * exclusive - {Boolean} If true, closes all other popups first */ addPopup: function(popup, exclusive) { if (exclusive) { //remove all other popups from screen for (var i = this.popups.length - 1; i >= 0; --i) { this.removePopup(this.popups[i]); } } popup.map = this; this.popups.push(popup); var popupDiv = popup.draw(); if (popupDiv) { popupDiv.style.zIndex = this.Z_INDEX_BASE['Popup'] + this.popups.length; this.layerContainerDiv.appendChild(popupDiv); } }, On 12/20/07, Bradley McLain wrote: > Currently I have an array of location details that I am running through a > simple while loop to populate my map with markers. > > This is working perfect and is as follows. > > var markers = new OpenLayers.Layer.Markers ( "Markers" ); > map.addLayer(markers); > > //Setting Size and Offset of Markers > var size = new OpenLayers.Size(20,34); > var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); > > var site = 0; > > while (site < locationList.length) > { > var icon = new > OpenLayers.Icon('../../img/gmarker.png',size,offset); > markers.addMarker( > new OpenLayers.Marker(new > OpenLayers.LonLat(locationList[site].lon,locationList[site].lat),icon)); > > site++; > > } > > What I want to do is add anchored popups to all of these markers, having > each one work properly, I've tried hacking around with the example but I can > only ever get one to add at a time. > > Any help with this would be much appreciated. > > Brad > > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From eric.c2c at gmail.com Mon Jan 7 17:35:31 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Selecting a country Message-ID: <5ec103de0801071435x123d42f5tc61315ef4fe75294@mail.gmail.com> On Jan 7, 2008 7:05 AM, David Pruitt wrote: > How does the example map at http://world.freemap.in/ accomplish this task? > I looked at the code, and although I am new to OpenLayers and this whole WMS > thing...it seems like it is making some WMS requests to a MapServer server. Yes it sends GetFeatureInfo requests to the WMS server. -- Eric From vishnup at ibsplc.com Mon Jan 7 22:08:19 2008 From: vishnup at ibsplc.com (vishnuprasadav) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] change the color of a layer - GML, KML, GeoRSS? Message-ID: <14592268.post@talk.nabble.com> Vishnu wrote: > > Hi , > I am using OpenLayers. I 've added KML layer to the map .But i need to > change the color of each Polygon in my KML layer.Anyone knows about > that?Or any other alternatives in Openlayers to do that? > In Openlayers example there is a kml file named Lines.kml which has > different styles applied for various lines.But those colors are not > appearing on the example html file.Any comment on this. > Thanks in advance > > Cheers, > Vishnu Prasad > -- View this message in context: http://www.nabble.com/change-the-color-of-a-layer---GML%2C-KML%2C-GeoRSS--tp13006447p14592268.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rdewit at users.sourceforge.net Mon Jan 7 22:46:29 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] change the color of a layer - GML, KML, GeoRSS? In-Reply-To: <14592268.post@talk.nabble.com> References: <14592268.post@talk.nabble.com> Message-ID: <1199763989.5937.9.camel@bender> Hi Vishnu, With changing the colors in OL I cannot help you. What I can tell you is that OL currently lacks styling support for KML and that I'm working on getting that in OL (you can have a look at [1], please ignore the Component WMS bit). Still a fair amount of work needs to be done to get these changes in a next release of OL, so I'm not sure if they'll make it in time for the 2.6 release. Kind regards, Roald [1] http://dev.openlayers.org/sandbox/rdewit/kml/examples/kml_wmsc_ows5.html On Mon, 2008-01-07 at 19:08 -0800, vishnuprasadav wrote: > > Vishnu wrote: > > > > Hi , > > I am using OpenLayers. I 've added KML layer to the map .But i need to > > change the color of each Polygon in my KML layer.Anyone knows about > > that?Or any other alternatives in Openlayers to do that? > > In Openlayers example there is a kml file named Lines.kml which has > > different styles applied for various lines.But those colors are not > > appearing on the example html file.Any comment on this. > > Thanks in advance > > > > Cheers, > > Vishnu Prasad > > > -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From jgarcia at saig.es Tue Jan 8 07:11:02 2008 From: jgarcia at saig.es (=?ISO-8859-1?Q?Jes=FAs_Garc=EDa_Carrero?=) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Ubuntu + Apache + proxy.cgi Message-ID: <47836856.2000609@saig.es> Hi there! First of all happy new year. I've been working with proxy.cgi provided with OpenLayers (congratulations to the core team on this great software) under Apache+Windows (only changing python path in the first line). It's all right. Now I'm trying to do the same using Ubuntu. The problem I've found is Apache configuration in Ubuntu is very different than Windows one (and I'm sure it's different than other linux Apache packages). I think it's due to Apache package for Ubuntu way of organizing things. Where do I have to put proxy.cgi? I have a cgi-bin folder but it doesn't work there... Many thanks in advance! From eric.c2c at gmail.com Tue Jan 8 07:14:24 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Ubuntu + Apache + proxy.cgi In-Reply-To: <47836856.2000609@saig.es> References: <47836856.2000609@saig.es> Message-ID: <5ec103de0801080414y2a71f7e0pfc5dad13fc80d56e@mail.gmail.com> On Jan 8, 2008 1:11 PM, Jes?s Garc?a Carrero wrote: > Hi there! First of all happy new year. > > I've been working with proxy.cgi provided with OpenLayers > (congratulations to the core team on this great software) under > Apache+Windows (only changing python path in the first line). It's all > right. > > Now I'm trying to do the same using Ubuntu. The problem I've found is > Apache configuration in Ubuntu is very different than Windows one (and > I'm sure it's different than other linux Apache packages). I think it's > due to Apache package for Ubuntu way of organizing things. Where do I > have to put proxy.cgi? I have a cgi-bin folder but it doesn't work there... Have you tried putting proxy.cgi under /usr/lib/cgi-bin. That dir is the default Apache cgi dir in Debian/Ubuntu. -- Eric From a_murdoch at hotmail.com Tue Jan 8 09:44:03 2008 From: a_murdoch at hotmail.com (ahm126) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] WMS overlaid on Google "spherical mercator" in OpenLayers In-Reply-To: References: Message-ID: <14691039.post@talk.nabble.com> I got a few responses, but nobody has solved my problem yet. I seem to be struggling with similar problems that Maria Panagou and Linda Rawson were having earlier. Is there a way to get WMS services rendered through Geoserver 1.6RC2 (currently running on localhost) to display over Google (or other commercial) background data? It seems that was the the whole impetus behind creating the "sphericalMercator" functionality and providing the "spherical-mercator.html" example. However, I've tried really hard to get this working and failed so far. I don't know what else I can try at this point. I've tried adding/changing/removing the maxExtent and maxResolution from the map declaration and from the layer declarations, without results. The Google layer shows up perfectly. I can partially see my WMS layers, but they are "cut-off" by two vertical lines through the eastern US and Siberia. Europe and Asia display fine, but North and South America are missing. Let me know what further info I can provide to help figure this out! Thanks! Andrew Here is part of the code I'm using (based on the spherical-mercator.html example page: var bounds = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34); function init(){ var options = { projection: "EPSG:900913", units: "m", numZoomLevels: 18, maxExtent: bounds }; map = new OpenLayers.Map('map', options); // create Google Mercator layers var gmap = new OpenLayers.Layer.Google( "Google Streets", {'sphericalMercator': true} ); var layer1 = new OpenLayers.Layer.WMS( "Countries", "http://127.0.0.1:8080/geoserver/wms", { layers: 'topp:ahm_countries', styles: '', transparent: true, format: 'image/png' }, { maxExtent: bounds, maxResolution: "auto", isBaseLayer: false, displayOutsideMaxExtent: true, wrapDateLine: true } ); var states_wms = new OpenLayers.Layer.WMS( "TOPP States", "http://localhost:8080/geoserver/wms?", { layers: 'topp:states', styles: '', srs: 'EPSG:4326', format: 'image/png', transparent: true }, { opacity: 0.75, isBaseLayer: false, displayOutsideMaxExtent: true, wrapDateLine: true } ); map.addLayers([gmap, layer1, states_wms]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition({element: $('position')})); map.zoomToMaxExtent() ahm126 wrote: > > > > > Hello, > > I'm cross-posting to the Geoserver and OpenLayers lists with this > question. > > I'm using Geoserver 1.6.0 RC2 and OpenLayers 2.5 with Firefox 2.0.0.11. > I'm trying to display a WMS layer overtop of Google background data using > the OpenLayers javascript client. The Google data shows up fine and I'm > getting the topp:states WMS layer from Geoserver to show up, but only half > of the WMS states features show up at zoom level 1. Only the eastern > states show up with a vertical line cutting north to south. When I zoom > in closer on the US, all the WMS features show up overlain on the Google > data. It's almost as if at small "world-wide" scales, there are too many > tiles to display and the WMS is only partially displayed. > > I've duplicated this behavior with other WMS layers from my Geoserver > installation. At small "world-wide" scales, the WMS data is cut off. > When you zoom in, the WMS is displayed normally. > > I've been using a modified copy of the "spherical-mercator.html" example > to get this far. I can send in javascript code or screenshots if that > would be helpful. > > Thanks for your help!! > Andrew > > _________________________________________________________________ > i?m is proud to present Cause Effect, a series about real people making a > difference. > http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/WMS-overlaid-on-Google-%22spherical-mercator%22-in-OpenLayers-tp14584062p14691039.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From aaime at openplans.org Tue Jan 8 10:43:43 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] WMS overlaid on Google "spherical mercator" in OpenLayers In-Reply-To: <14691039.post@talk.nabble.com> References: <14691039.post@talk.nabble.com> Message-ID: <47839A2F.5050107@openplans.org> ahm126 ha scritto: > The Google layer shows up perfectly. I can partially see my WMS layers, but > they are "cut-off" by two vertical lines through the eastern US and Siberia. > Europe and Asia display fine, but North and South America are missing. > > Let me know what further info I can provide to help figure this out! It's a known GeoServer issue: http://jira.codehaus.org/browse/GEOS-1293 Unfortunately we had no time to fix it, so GeoServer 1.6.0 will most probably be released as is, and the issue will be fixed in 1.6.1 (it's not a regression, GeoServer never rendered properly maps crossing the dateline). Cheers Andrea From eric.c2c at gmail.com Tue Jan 8 11:10:24 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] OpenLayers equivalent of ka-map pause event? In-Reply-To: <477D6EBD0200008F000130B7@co5.dnr.state.mn.us> References: <477D6EBD0200008F000130B7@co5.dnr.state.mn.us> Message-ID: <5ec103de0801080810i6f0d778dh6378481fee3e071f@mail.gmail.com> On Jan 4, 2008 6:24 AM, Steve Lime wrote: > For completeness here's what has worked for me, as hijacked from ka-map: > > var timer=null, delay=2000; > var paused=false; > > function mousePaused(e) { > var coord = map.getLonLatFromViewPortPx(e.xy); > ... do something with the coordinate ... > } > > function mouseMove(e) { > if(timer) clearTimeout(timer); > if(paused == false) > self.timer = setTimeout(function(){clearTimeout(timer); paused = true; mousePaused(e); paused=false;}, delay); > } > > function mouseOut(e) { > clearTimeout(timer); > } > > and in the onload function... > > map.events.register("mousemove", map, mouseMove); > map.events.register("mouseout", map, mouseOut); > > I can file a ticket if that would help I implemented an hover handler that more or less does what you showed us above. See . -- Eric From mailing_lists at umbrellaconsulting.com Tue Jan 8 12:09:32 2008 From: mailing_lists at umbrellaconsulting.com (Josh Livni) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Ubuntu + Apache + proxy.cgi In-Reply-To: <47836856.2000609@saig.es> References: <47836856.2000609@saig.es> Message-ID: <4783AE4C.3020805@umbrellaconsulting.com> Not sure if you're somewhat new to linux or not, but just in case, here are some common gotchas I've come across: In addition to copying the proxy.cgi to a folder where Apache will run cgi executables for you, also be sure your proxy.cgi is executable (permission-wise) by the user running the apache process (probably www-user). You may wish to just to 'chmod a+x proxy.cgi) to ensure it's executable by everyone for testing. If you do want to make a new folder that is specifically cgi-executable to put your proxy.cgi in, a simple example of how to do this for tilecache is available under the 'running under cgi' section of the readme for that program (http://svn.tilecache.org/trunk/tilecache/docs/README.txt), and you can follow the same concept for any cgi program you want to run. Also, just in case, be sure you can run the program outside of apache by just doing ./proxy.cgi in a shell -- if there are errors, such as it can't find the python program, or you've edited in windows and the newlines are compatible, this will help isolate some problems. Cheers, -Josh Jes?s Garc?a Carrero wrote: > Hi there! First of all happy new year. > > I've been working with proxy.cgi provided with OpenLayers > (congratulations to the core team on this great software) under > Apache+Windows (only changing python path in the first line). It's all > right. > > Now I'm trying to do the same using Ubuntu. The problem I've found is > Apache configuration in Ubuntu is very different than Windows one (and > I'm sure it's different than other linux Apache packages). I think > it's due to Apache package for Ubuntu way of organizing things. Where > do I have to put proxy.cgi? I have a cgi-bin folder but it doesn't > work there... > > Many thanks in advance! > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From castlewrks at hughes.net Tue Jan 8 17:32:01 2008 From: castlewrks at hughes.net (Robert J Becraft) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> Message-ID: <4783F9E1.9030904@hughes.net> Erik, Yes, it is up at: http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap All the layers work and the Semantic markup on the country pages provides some junk to come up when you click on the markers. Matt was great help in getting it to work. Robert. Erik Uzureau wrote: > Hi Robert, > > Just a quick note... did you ever manage to get this working? > > I'm hunting for more examples to help people use OpenLayers > in different contexts.. > > Erik > > On 11/3/07, Robert J Becraft wrote: > >> Matt Williamson wrote: >> >>> Robert, >>> >>> I'm the author of the extension Christopher mentioned (thanks!). Yes, >>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ >>> >>> If you need any help, let me know. The extension also relies on >>> another MediaWiki extension called Semantic MediaWiki, which I highly >>> recommend anyway. Currently it requires version SMW 0.7, but I've >>> officially started work on the modifications necessary to make it work >>> with SMW 1.0--I hope to have the update out by the end of November or so. >>> >>> Let me know if you have any questions or need any help with it! >>> >>> -Matt >>> >> Hello Matt, >> >> I got the simple example up and running... I'm now trying to understand >> your documentation and convert my map at >> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I >> think I blew a gasket trying to follow the documentation. >> >> You have (I believe), two different components mixed together in your >> descriptions... part of the setup requires an understanding of the >> Semantic_MediaWiki extension and the second part is how your extension >> uses that setup to do its part of putting the map together and adding >> the elements. >> >> It would be a great help if you could walk me through this process once >> so that I can get the gist of it. >> >> Regards, >> Robert J Becraft >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > From erik.uzureau at metacarta.com Tue Jan 8 18:31:08 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <4783F9E1.9030904@hughes.net> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> <4783F9E1.9030904@hughes.net> Message-ID: <6ae3fb590801081531u2e70e32ap85dbfb11c89b45cb@mail.gmail.com> Robert, Would it be OK with you if I add a link to this project on the http://trac.openlayers.org/wiki/Gallery ? Erik On 1/8/08, Robert J Becraft wrote: > Erik, > Yes, it is up at: > > http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap > > All the layers work and the Semantic markup on the country pages > provides some junk to come up when you click on the markers. Matt was > great help in getting it to work. > > Robert. > > > > Erik Uzureau wrote: > > Hi Robert, > > > > Just a quick note... did you ever manage to get this working? > > > > I'm hunting for more examples to help people use OpenLayers > > in different contexts.. > > > > Erik > > > > On 11/3/07, Robert J Becraft wrote: > > > >> Matt Williamson wrote: > >> > >>> Robert, > >>> > >>> I'm the author of the extension Christopher mentioned (thanks!). Yes, > >>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ > >>> > >>> If you need any help, let me know. The extension also relies on > >>> another MediaWiki extension called Semantic MediaWiki, which I highly > >>> recommend anyway. Currently it requires version SMW 0.7, but I've > >>> officially started work on the modifications necessary to make it work > >>> with SMW 1.0--I hope to have the update out by the end of November or so. > >>> > >>> Let me know if you have any questions or need any help with it! > >>> > >>> -Matt > >>> > >> Hello Matt, > >> > >> I got the simple example up and running... I'm now trying to understand > >> your documentation and convert my map at > >> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I > >> think I blew a gasket trying to follow the documentation. > >> > >> You have (I believe), two different components mixed together in your > >> descriptions... part of the setup requires an understanding of the > >> Semantic_MediaWiki extension and the second part is how your extension > >> uses that setup to do its part of putting the map together and adding > >> the elements. > >> > >> It would be a great help if you could walk me through this process once > >> so that I can get the gist of it. > >> > >> Regards, > >> Robert J Becraft > >> > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > >> > > > > > > From erik.uzureau at metacarta.com Tue Jan 8 18:33:43 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <4783F9E1.9030904@hughes.net> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> <4783F9E1.9030904@hughes.net> Message-ID: <6ae3fb590801081533h6c6811a3kf6b8ac568817d020@mail.gmail.com> Also note that there is a destroy() related bug in this page somewhere..... I notice this because when I am looking at it in IE and I navigate away from the page (which automatically triggers map.destroy()) I get script errors complaining of "this.tile is null". ...which I don't get in FF On 1/8/08, Robert J Becraft wrote: > Erik, > Yes, it is up at: > > http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap > > All the layers work and the Semantic markup on the country pages > provides some junk to come up when you click on the markers. Matt was > great help in getting it to work. > > Robert. > > > > Erik Uzureau wrote: > > Hi Robert, > > > > Just a quick note... did you ever manage to get this working? > > > > I'm hunting for more examples to help people use OpenLayers > > in different contexts.. > > > > Erik > > > > On 11/3/07, Robert J Becraft wrote: > > > >> Matt Williamson wrote: > >> > >>> Robert, > >>> > >>> I'm the author of the extension Christopher mentioned (thanks!). Yes, > >>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ > >>> > >>> If you need any help, let me know. The extension also relies on > >>> another MediaWiki extension called Semantic MediaWiki, which I highly > >>> recommend anyway. Currently it requires version SMW 0.7, but I've > >>> officially started work on the modifications necessary to make it work > >>> with SMW 1.0--I hope to have the update out by the end of November or so. > >>> > >>> Let me know if you have any questions or need any help with it! > >>> > >>> -Matt > >>> > >> Hello Matt, > >> > >> I got the simple example up and running... I'm now trying to understand > >> your documentation and convert my map at > >> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I > >> think I blew a gasket trying to follow the documentation. > >> > >> You have (I believe), two different components mixed together in your > >> descriptions... part of the setup requires an understanding of the > >> Semantic_MediaWiki extension and the second part is how your extension > >> uses that setup to do its part of putting the map together and adding > >> the elements. > >> > >> It would be a great help if you could walk me through this process once > >> so that I can get the gist of it. > >> > >> Regards, > >> Robert J Becraft > >> > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > >> > > > > > > From man_kills_everything at hotmail.com Wed Jan 9 06:27:11 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Re projecting Google Message-ID: <14709777.post@talk.nabble.com> Hi, I've got data in EPSG:27700 (British National Grid) and want to overlay it on Google data. However, I want to reproject the Google data into EPSG:27700 and not the other way around. Can this be done? Alternatively, can OpenLayers convert from Google coordinates to EPSG:27700 coordinates? All I need is to be able to get the 27700 coordinates of the current view. Thanks, Jon B. -- View this message in context: http://www.nabble.com/Reprojecting-Google-tp14709777p14709777.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From plists at prometheus.org.yu Wed Jan 9 07:18:39 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events Message-ID: <200801091318.39631.plists@prometheus.org.yu> Stiff familiarizing myself with OpenLayers, I ran into something I'm not sure is a design intention or am I simply doing something wrong: Controls do not have events, and if I have a control that operates on features, my map events get obstructed. Example - I have a Control.DragFeature on the map, but would also like that a single non-drag click (map.events.register("click"...)) would result in a popup. The order of control/event addition/registration apparently did not have any effect on their behaviour - just clicking on features which were in a layer that was marked as a layer for DragFeature did nothing but change the cursor from draggable to normal. Essentially I'd like to do something like the fallThrough property of the Event class except controls AFAICS have no event properties. Am I being clueless again ? :) From crschmidt at metacarta.com Wed Jan 9 07:25:26 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <14709777.post@talk.nabble.com> References: <14709777.post@talk.nabble.com> Message-ID: <20080109122526.GA4446@alta.metacarta.com> On Wed, Jan 09, 2008 at 03:27:11AM -0800, Jon Britton wrote: > > Hi, > I've got data in EPSG:27700 (British National Grid) and want to overlay it > on Google data. However, I want to reproject the Google data into EPSG:27700 > and not the other way around. Can this be done? Project the google *data*? Google ain't yours, man: You can't do anything fun with it (and definitely not reproject it!) > Alternatively, can OpenLayers convert from Google coordinates to EPSG:27700 > coordinates? All I need is to be able to get the 27700 coordinates of the > current view. It is possible, using the trunk versio of OpenLayers, to convert from Google coordinates to lon/lat. It is possible, using proj4js or perhaps a custom transformation function, to convert from lon/lat to EPSG:27700. I know of at least one person who has done it -- I'll try and remember who and get him to post. Regards, -- Christopher Schmidt MetaCarta From David.Renz at cityofmedford.org Wed Jan 9 12:22:15 2008 From: David.Renz at cityofmedford.org (David J. Renz) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] (no subject) Message-ID: hello. i am new to the list and to openLayers. i am trying to load a wms service from geoserver. when i go to geoserver (administrator on my local machine) and look at the demo requests for the service i am trying to load i can connect to it fine, using either a standard wms request or an openLayers request. however, when i try to load the wms layer in OpenLayers it fails. the error is "bounds has no properties", in my OpenLayers.js file on line 533. i am using the "Link to the hosted version" file from the website. i am pretty sure that i have the projection/extent messed up, but don't really know where the problem is. any leads would be appreciated. ie (these work from geoserver): geoserver demo: openLayers WMS ---------------------------------- http://127.0.0.1:8080/geoserver/wms?bbox=4154738.29412617,104907.9070201 7272,4463982.597581711,516373.2919801983&styles=&Format=application/open layers&request=GetMap&layers=MED_POST:cadstreets&width=550&height=250&sr s=EPSG:2270 geoserver demo: wms ---------------------------------- http://127.0.0.1:8080/geoserver/wms?bbox=4154738.29412617,104907.9070201 7272,4463982.597581711,516373.2919801983&styles=&Format=image/png&reques t=GetMap&layers=MED_POST:cadstreets&height=600&width=600&srs=EPSG:2270 open layers code is below (fails): ----------------------------- var bounds = new OpenLayers.Bounds(4154738.29412617,104907.90702017272,4463982.597581711, 516373.2919801983); alert("Bounds are \n" + bounds); var map = new OpenLayers.Map('map', { projection: "EPSG:2270", units: "ft", maxExtent: bounds,}); var gs_wms = new OpenLayers.Layer.WMS( "Med", "http://127.0.0.1:8080/geoserver/wms",{layers: 'MED_POST:cadstreets' , 'transparent':"true",'format': "image/png"}); gs_wms.setVisibility(false); map.addLayers(gs_wms]) map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); map.zoomToMaxExtent(); Thanks, david From Paul.McCullough at sfgov.org Wed Jan 9 12:28:20 2008 From: Paul.McCullough at sfgov.org (Paul McCullough) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] display lat/long data (kml, etc); map not in epsg:4326 Message-ID: <14716521.post@talk.nabble.com> All, How do I display lat/long data (kml, georss, etc) on a map control that is not using the epsg:4326 projection? Epsg:4326 is not ideal because it the display appears to be "stretched" along x axis. Within the context of epsg:4326, I have successfully used this labor saving device: var geoRSSLayer = new OpenLayers.Layer.GeoRSS('Test GeoRSS Layer', ./data/pollplace_wgs84.georss.xml', {icon:blueIcon, format:OpenLayers.Format.GeoRSS} ) I have looked at epsg:900913 and it displays nicely for my area - and has other mash up benefits. But if I switch to epsg:900913 (or any other projection for that matter) how do I plot lat/long data on the control? I see this - SpericalMeractor.js And I (mostly) like this - http://www.openlayers.org/dev/examples/spherical-mercator.html I am quite happy to write my own code, but I need some guidance. Thanks Paul -- View this message in context: http://www.nabble.com/display-lat-long-data-%28kml%2C-etc%29--map-not-in-epsg%3A4326-tp14716521p14716521.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From alim.karim at gmail.com Wed Jan 9 13:00:06 2008 From: alim.karim at gmail.com (alim karim) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] trying to add vector data from featureserver Message-ID: i am trying to add a vector layer into an openlayers map. the vector data originates from a shapefile and is served up by featureserver. the code below is what i have so far. using this, nothing appears within the map. no errors are reported either. querying the featureserver directly gives me the data i need, so the problem is at the openlayers end. var ol_map = new OpenLayers.Map("map", {projection: 'EPSG:4326', maxResolution:"auto"}); var vec = new OpenLayers.Layer.GML("FS", "http://192.168.0.105/featureserver/featureserver.cgi/ogr_test_latlong?format=gml", {format: OpenLayers.Format.APP, isBaseLayer: true}); ol_map.addLayer(vec); var max_extent = new OpenLayers.Bounds(1167908.917283, 786004.626689, 1178260.558180, 791188.04900); ol_map.setOptions({maxExtent: max_extent, center: new OpenLayers.LonLat(-123.46675, 52.088474)}); ol_map.zoomToMaxExtent(); i have tried retrieving the data as geojson (which would be ideal) and creating a vector layer from that using: var ol_layer = new OpenLayers.Layer.Vector("some name", {isBaseLayer: false}); new Ajax.Request( http://192.168.0.105/featureserver/featureserver.cgi/ogr_test_latlong { method:'get', requestHeaders: {Accept: 'application/json'}, onSuccess: function(transport){ var geojson = new OpenLayers.Format.GeoJSON(); feature_coll = geojson.read(transport.responseText, "FeatureCollection"); ol_layer.addFeatures(feature_coll); }, onComplete: function (){}, onFailure: function (transport) { alert ("an error occurred."); } }); } in both cases, i can see that the data is indeed returned (through firebug), but i do not see anything appearing on the map. any help would be appreciated. thanks in advance From crschmidt at metacarta.com Wed Jan 9 14:54:23 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] display lat/long data (kml, etc); map not in epsg:4326 In-Reply-To: <14716521.post@talk.nabble.com> References: <14716521.post@talk.nabble.com> Message-ID: <20080109195423.GA13165@alta.metacarta.com> On Wed, Jan 09, 2008 at 09:28:20AM -0800, Paul McCullough wrote: > > All, > > How do I display lat/long data (kml, georss, etc) on a map control that is > not using the epsg:4326 projection? You can't, yet. But you will be able to in 2.6. The thing you want to do is add reprojection calls after data is loaded in the Layer.GeoRSS and other classes. I plan to work on this as a patch -- maybe over the weekend? -- but haven't had a chance yet. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Jan 9 14:57:58 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] display lat/long data (kml, etc); map not in epsg:4326 In-Reply-To: <20080109195423.GA13165@alta.metacarta.com> References: <14716521.post@talk.nabble.com> <20080109195423.GA13165@alta.metacarta.com> Message-ID: <20080109195758.GC13165@alta.metacarta.com> On Wed, Jan 09, 2008 at 02:54:23PM -0500, Christopher Schmidt wrote: > On Wed, Jan 09, 2008 at 09:28:20AM -0800, Paul McCullough wrote: > > > > All, > > > > How do I display lat/long data (kml, georss, etc) on a map control that is > > not using the epsg:4326 projection? > > You can't, yet. But you will be able to in 2.6. The thing you want to do > is add reprojection calls after data is loaded in the Layer.GeoRSS and > other classes. I plan to work on this as a patch -- maybe over the > weekend? -- but haven't had a chance yet. If your'e interested in taking over the task, I'll mentor you through it -- in that case, follow up on dev, and I'll put together some pointers on what we should do. Regards, -- Christopher Schmidt MetaCarta From grand.edgemaster at gmail.com Wed Jan 9 16:36:15 2008 From: grand.edgemaster at gmail.com (Thomas Wood) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Re projecting Google Message-ID: <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> > Message: 9 > Date: Wed, 9 Jan 2008 07:25:26 -0500 > From: Christopher Schmidt > Subject: Re: [OpenLayers-Users] Re projecting Google > To: Jon Britton > Cc: users@openlayers.org > Message-ID: <20080109122526.GA4446@alta.metacarta.com> > Content-Type: text/plain; charset=us-ascii > > On Wed, Jan 09, 2008 at 03:27:11AM -0800, Jon Britton wrote: > > > > Hi, > > I've got data in EPSG:27700 (British National Grid) and want to overlay it > > on Google data. However, I want to reproject the Google data into EPSG:27700 > > and not the other way around. Can this be done? > > Project the google *data*? Google ain't yours, man: You can't do > anything fun with it (and definitely not reproject it!) > > > Alternatively, can OpenLayers convert from Google coordinates to EPSG:27700 > > coordinates? All I need is to be able to get the 27700 coordinates of the > > current view. > > It is possible, using the trunk versio of OpenLayers, to convert from > Google coordinates to lon/lat. It is possible, using proj4js or perhaps > a custom transformation function, to convert from lon/lat to EPSG:27700. > I know of at least one person who has done it -- I'll try and remember > who and get him to post. > > Regards, > -- > Christopher Schmidt > MetaCarta I have written a class that plugs into the existing reprojection code. As you mention reprojecting coords here's a quick demo of usage: ll = new OpenLayers.LonLat(-11554.3527964992,6686865.32722571); ll.transform((new OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection("EPSG:27700")); This will convert Google coords (Google sphericalMercator) to OSGB. The class supports OSGB to and from Google (ESPG:900913), and OSGB to and from WGS84 lat/long (ESPG:4326). Some of the math functions are poorly documented (it was a quick convert from an already-existing conversion class) Finally, the code is here: http://ge.pythonmoo.co.uk/maps/OpenLayers.Projection.OrdnanceSurvey.js Please don't hotlink it. -- Regards, Thomas Wood (Edgemaster) From castlewrks at hughes.net Wed Jan 9 17:10:36 2008 From: castlewrks at hughes.net (Robert J Becraft) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <6ae3fb590801081533h6c6811a3kf6b8ac568817d020@mail.gmail.com> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> <4783F9E1.9030904@hughes.net> <6ae3fb590801081533h6c6811a3kf6b8ac568817d020@mail.gmail.com> Message-ID: <4785465C.3030601@hughes.net> Erik, You may want to retry this. I was updating maps last night and may have caused this to occur. I don't have any problems in IE or FF. Erik Uzureau wrote: > Also note that there is a destroy() related bug in this page > somewhere..... I notice this because when I am looking at it in IE and > I navigate away from the page (which automatically triggers > map.destroy()) I get script errors complaining of "this.tile is null". > > ...which I don't get in FF > > > > On 1/8/08, Robert J Becraft wrote: > >> Erik, >> Yes, it is up at: >> >> http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap >> >> All the layers work and the Semantic markup on the country pages >> provides some junk to come up when you click on the markers. Matt was >> great help in getting it to work. >> >> Robert. >> >> >> >> Erik Uzureau wrote: >> >>> Hi Robert, >>> >>> Just a quick note... did you ever manage to get this working? >>> >>> I'm hunting for more examples to help people use OpenLayers >>> in different contexts.. >>> >>> Erik >>> >>> On 11/3/07, Robert J Becraft wrote: >>> >>> >>>> Matt Williamson wrote: >>>> >>>> >>>>> Robert, >>>>> >>>>> I'm the author of the extension Christopher mentioned (thanks!). Yes, >>>>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ >>>>> >>>>> If you need any help, let me know. The extension also relies on >>>>> another MediaWiki extension called Semantic MediaWiki, which I highly >>>>> recommend anyway. Currently it requires version SMW 0.7, but I've >>>>> officially started work on the modifications necessary to make it work >>>>> with SMW 1.0--I hope to have the update out by the end of November or so. >>>>> >>>>> Let me know if you have any questions or need any help with it! >>>>> >>>>> -Matt >>>>> >>>>> >>>> Hello Matt, >>>> >>>> I got the simple example up and running... I'm now trying to understand >>>> your documentation and convert my map at >>>> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I >>>> think I blew a gasket trying to follow the documentation. >>>> >>>> You have (I believe), two different components mixed together in your >>>> descriptions... part of the setup requires an understanding of the >>>> Semantic_MediaWiki extension and the second part is how your extension >>>> uses that setup to do its part of putting the map together and adding >>>> the elements. >>>> >>>> It would be a great help if you could walk me through this process once >>>> so that I can get the gist of it. >>>> >>>> Regards, >>>> Robert J Becraft >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>>> >>>> >>> >> > > From David.Renz at cityofmedford.org Wed Jan 9 18:00:08 2008 From: David.Renz at cityofmedford.org (David J. Renz) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] bounds has no properties In-Reply-To: Message-ID: hello. i am trying to get some input on this error. i am new to OpenLayers and am just trying to load some of our own data. i am trying to load a wms layer from geoserver (spatial data comes from PostGres). when i go to geoserver (administrator on my local machine) and look at the demo requests for the service i am trying to load i can connect to it fine, using either a standard wms request or an openLayers request. however, when i try to load the wms layer in OpenLayers it fails. Error: "bounds has no properties" OpenLayers.js : line 533 I got the extents from ogrinfo. They seem to work for the geoserver requests, but not the openLayers. i am using the "Link to the hosted version" file from the website. i cannot figure out where this is failing. any leads would be appreciated. ie (these work from geoserver): geoserver demo: openLayers WMS ---------------------------------- http://127.0.0.1:8080/geoserver/wms?bbox=4154738.29412617,104907.9070201 7272,4463982.597581711,516373.2919801983&styles=&Format=application/open layers&request=GetMap&layers=MED_POST:cadstreets&width=550&height=250&sr s=EPSG:2270 geoserver demo: wms ---------------------------------- http://127.0.0.1:8080/geoserver/wms?bbox=4154738.29412617,104907.9070201 7272,4463982.597581711,516373.2919801983&styles=&Format=image/png&reques t=GetMap&layers=MED_POST:cadstreets&height=600&width=600&srs=EPSG:2270 open layers code is below (fails): ----------------------------- var bounds = new OpenLayers.Bounds(4154738.29412617,104907.90702017272,4463982.597581711, 516373.2919801983); alert("Bounds are \n" + bounds); var map = new OpenLayers.Map('map', { projection: "EPSG:2270", units: "ft", maxExtent: bounds,}); var gs_wms = new OpenLayers.Layer.WMS( "Med", "http://127.0.0.1:8080/geoserver/wms",{layers: 'MED_POST:cadstreets' , 'transparent':"true",'format': "image/png"}); gs_wms.setVisibility(true); map.addLayers(gs_wms]) map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); map.zoomToMaxExtent(); Thanks, david _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From erik.uzureau at metacarta.com Wed Jan 9 18:00:21 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <4785465C.3030601@hughes.net> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> <4783F9E1.9030904@hughes.net> <6ae3fb590801081533h6c6811a3kf6b8ac568817d020@mail.gmail.com> <4785465C.3030601@hughes.net> Message-ID: <6ae3fb590801091500m7dae48f8l36d34e0a1d09c3bb@mail.gmail.com> yup! seems to be fixed :-) can we include this link on the gallery page? thanks erik On 1/9/08, Robert J Becraft wrote: > Erik, You may want to retry this. I was updating maps last night and > may have caused this to occur. > > I don't have any problems in IE or FF. > > Erik Uzureau wrote: > > Also note that there is a destroy() related bug in this page > > somewhere..... I notice this because when I am looking at it in IE and > > I navigate away from the page (which automatically triggers > > map.destroy()) I get script errors complaining of "this.tile is null". > > > > ...which I don't get in FF > > > > > > > > On 1/8/08, Robert J Becraft wrote: > > > >> Erik, > >> Yes, it is up at: > >> > >> http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap > >> > >> All the layers work and the Semantic markup on the country pages > >> provides some junk to come up when you click on the markers. Matt was > >> great help in getting it to work. > >> > >> Robert. > >> > >> > >> > >> Erik Uzureau wrote: > >> > >>> Hi Robert, > >>> > >>> Just a quick note... did you ever manage to get this working? > >>> > >>> I'm hunting for more examples to help people use OpenLayers > >>> in different contexts.. > >>> > >>> Erik > >>> > >>> On 11/3/07, Robert J Becraft wrote: > >>> > >>> > >>>> Matt Williamson wrote: > >>>> > >>>> > >>>>> Robert, > >>>>> > >>>>> I'm the author of the extension Christopher mentioned (thanks!). Yes, > >>>>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ > >>>>> > >>>>> If you need any help, let me know. The extension also relies on > >>>>> another MediaWiki extension called Semantic MediaWiki, which I highly > >>>>> recommend anyway. Currently it requires version SMW 0.7, but I've > >>>>> officially started work on the modifications necessary to make it work > >>>>> with SMW 1.0--I hope to have the update out by the end of November or so. > >>>>> > >>>>> Let me know if you have any questions or need any help with it! > >>>>> > >>>>> -Matt > >>>>> > >>>>> > >>>> Hello Matt, > >>>> > >>>> I got the simple example up and running... I'm now trying to understand > >>>> your documentation and convert my map at > >>>> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I > >>>> think I blew a gasket trying to follow the documentation. > >>>> > >>>> You have (I believe), two different components mixed together in your > >>>> descriptions... part of the setup requires an understanding of the > >>>> Semantic_MediaWiki extension and the second part is how your extension > >>>> uses that setup to do its part of putting the map together and adding > >>>> the elements. > >>>> > >>>> It would be a great help if you could walk me through this process once > >>>> so that I can get the gist of it. > >>>> > >>>> Regards, > >>>> Robert J Becraft > >>>> > >>>> _______________________________________________ > >>>> Users mailing list > >>>> Users@openlayers.org > >>>> http://openlayers.org/mailman/listinfo/users > >>>> > >>>> > >>>> > >>> > >> > > > > > > From erik.uzureau at metacarta.com Wed Jan 9 18:51:21 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] VE as a base layer in Openlayers In-Reply-To: <474B8EB1.8070502@ionicenterprise.com> References: <474B8EB1.8070502@ionicenterprise.com> Message-ID: <6ae3fb590801091551s228f7696u6e0e26e7a0222c14@mail.gmail.com> Thanks a million for this Jeff! This is a big fix. :-) Erik On 11/26/07, Jeff Yutzler wrote: > Ticket 1175 > http://trac.openlayers.org/ticket/1175 > > bradleyspencer wrote: > > Jeff, > > > > Can you do this please since you came up with the workaround. > > > > Cheers, > > > > Brad > > > > -----Original Message----- > > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] > > Sent: Tuesday, 27 November 2007 11:44 AM > > To: bradleyspencer > > Cc: Jeff Yutzler; users@openlayers.org > > Subject: Re: [OpenLayers-Users] VE as a base layer in Openlayers > > > > On Tue, Nov 27, 2007 at 10:41:16AM +1100, bradleyspencer wrote: > > > >> Jeff, > >> > >> That did the job. This needs a ticket I'd say. > >> > >> It has always been advised that this was a VE bug but its now fixed at > >> > > least > > > >> for me. > >> > > > > I was under the impression that it was. If one of you could file a bug > > so we can get this fixed, that would be great. > > > > Thanks, > > -- > > Christopher Schmidt > > MetaCarta > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > From linda.rawson at gmail.com Wed Jan 9 18:59:40 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Firefox help needed for google sphericalMercator Message-ID: <6e9b30fb0801091559r4c4d4f48g3ce882818d0aa94a@mail.gmail.com> Ok. I need the ability to load the googlekey outside the default page. So in sphericalMercator.html it is loaded this way: I created this file called google.js which is the following: //////////////////// var GOOGLE_TILES_KEY="ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ"; var GOOGLE_TILES_SERVER="http://maps.google.com/maps?file=api&v=2&key="; var ____path = ""; function urlPath(path, notCtx) { var incCtx = notCtx || false; var url = (!incCtx ? ____path : "") + path; return url; } function loadScript(path, notCtx) { var url = urlPath(path, notCtx); document.write ('<' + 'script src="' + url + '"'+' type="text/javascript"><' + '/script>'); } function init() { var sloc = ""; var SCRIPT_NAME = "googleKey.js"; var scripts = document.getElementsByTagName('script'); for (var i = 0; i < scripts.length; i++) { var src = scripts[i].getAttribute('src'); if (src) { var index = src.lastIndexOf(SCRIPT_NAME); // is it found, at the end of the URL? if ((index > -1) && (index + SCRIPT_NAME.length == src.length)) { sloc = src.slice(0, -SCRIPT_NAME.length); break; } } } ____path = sloc; loadScript(GOOGLE_TILES_SERVER + GOOGLE_TILES_KEY, true); } init(); //////////////////// This works fine in internet explorer but in firefox I get: OpenLayers.Bounds is not a constructor Any ideas? -- Linda Rawson From castlewrks at hughes.net Wed Jan 9 21:22:31 2008 From: castlewrks at hughes.net (Robert J Becraft) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] MediaWikia In-Reply-To: <6ae3fb590801091500m7dae48f8l36d34e0a1d09c3bb@mail.gmail.com> References: <472BD8BB.8070301@hughes.net> <20071103181206.GA24642@metacarta.com> <472CF1AC.2070804@hughes.net> <6ae3fb590801080926j38981b43v2532ebb513b6e102@mail.gmail.com> <4783F9E1.9030904@hughes.net> <6ae3fb590801081533h6c6811a3kf6b8ac568817d020@mail.gmail.com> <4785465C.3030601@hughes.net> <6ae3fb590801091500m7dae48f8l36d34e0a1d09c3bb@mail.gmail.com> Message-ID: <47858167.20502@hughes.net> Sure. Include away... I don't plan on moving it or removing it anytime. It may get more goodies added to it as time progresses. Erik Uzureau wrote: > yup! seems to be fixed :-) > > can we include this link on the gallery page? > > thanks > erik > > On 1/9/08, Robert J Becraft wrote: > >> Erik, You may want to retry this. I was updating maps last night and >> may have caused this to occur. >> >> I don't have any problems in IE or FF. >> >> Erik Uzureau wrote: >> >>> Also note that there is a destroy() related bug in this page >>> somewhere..... I notice this because when I am looking at it in IE and >>> I navigate away from the page (which automatically triggers >>> map.destroy()) I get script errors complaining of "this.tile is null". >>> >>> ...which I don't get in FF >>> >>> >>> >>> On 1/8/08, Robert J Becraft wrote: >>> >>> >>>> Erik, >>>> Yes, it is up at: >>>> >>>> http://www.metaphaze.com/AvalonWikia/index.php5?title=AvalonMap >>>> >>>> All the layers work and the Semantic markup on the country pages >>>> provides some junk to come up when you click on the markers. Matt was >>>> great help in getting it to work. >>>> >>>> Robert. >>>> >>>> >>>> >>>> Erik Uzureau wrote: >>>> >>>> >>>>> Hi Robert, >>>>> >>>>> Just a quick note... did you ever manage to get this working? >>>>> >>>>> I'm hunting for more examples to help people use OpenLayers >>>>> in different contexts.. >>>>> >>>>> Erik >>>>> >>>>> On 11/3/07, Robert J Becraft wrote: >>>>> >>>>> >>>>> >>>>>> Matt Williamson wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Robert, >>>>>>> >>>>>>> I'm the author of the extension Christopher mentioned (thanks!). Yes, >>>>>>> check it out, and also the demo wiki at http://s89238293.onlinehome.us/w/ >>>>>>> >>>>>>> If you need any help, let me know. The extension also relies on >>>>>>> another MediaWiki extension called Semantic MediaWiki, which I highly >>>>>>> recommend anyway. Currently it requires version SMW 0.7, but I've >>>>>>> officially started work on the modifications necessary to make it work >>>>>>> with SMW 1.0--I hope to have the update out by the end of November or so. >>>>>>> >>>>>>> Let me know if you have any questions or need any help with it! >>>>>>> >>>>>>> -Matt >>>>>>> >>>>>>> >>>>>>> >>>>>> Hello Matt, >>>>>> >>>>>> I got the simple example up and running... I'm now trying to understand >>>>>> your documentation and convert my map at >>>>>> http://www.metaphaze.com/Avalon/AMII_world_map.htm to my wiki page. I >>>>>> think I blew a gasket trying to follow the documentation. >>>>>> >>>>>> You have (I believe), two different components mixed together in your >>>>>> descriptions... part of the setup requires an understanding of the >>>>>> Semantic_MediaWiki extension and the second part is how your extension >>>>>> uses that setup to do its part of putting the map together and adding >>>>>> the elements. >>>>>> >>>>>> It would be a great help if you could walk me through this process once >>>>>> so that I can get the gist of it. >>>>>> >>>>>> Regards, >>>>>> Robert J Becraft >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@openlayers.org >>>>>> http://openlayers.org/mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>>> >>> >> > > From man_kills_everything at hotmail.com Thu Jan 10 04:52:02 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> Message-ID: <14730820.post@talk.nabble.com> Thanks! This should do nicely. Jon Britton Thomas Wood-4 wrote: > >> Message: 9 >> Date: Wed, 9 Jan 2008 07:25:26 -0500 >> From: Christopher Schmidt >> Subject: Re: [OpenLayers-Users] Re projecting Google >> To: Jon Britton >> Cc: users@openlayers.org >> Message-ID: <20080109122526.GA4446@alta.metacarta.com> >> Content-Type: text/plain; charset=us-ascii >> >> On Wed, Jan 09, 2008 at 03:27:11AM -0800, Jon Britton wrote: >> > >> > Hi, >> > I've got data in EPSG:27700 (British National Grid) and want to overlay >> it >> > on Google data. However, I want to reproject the Google data into >> EPSG:27700 >> > and not the other way around. Can this be done? >> >> Project the google *data*? Google ain't yours, man: You can't do >> anything fun with it (and definitely not reproject it!) >> >> > Alternatively, can OpenLayers convert from Google coordinates to >> EPSG:27700 >> > coordinates? All I need is to be able to get the 27700 coordinates of >> the >> > current view. >> >> It is possible, using the trunk versio of OpenLayers, to convert from >> Google coordinates to lon/lat. It is possible, using proj4js or perhaps >> a custom transformation function, to convert from lon/lat to EPSG:27700. >> I know of at least one person who has done it -- I'll try and remember >> who and get him to post. >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta > > I have written a class that plugs into the existing reprojection code. > > As you mention reprojecting coords here's a quick demo of usage: > ll = new OpenLayers.LonLat(-11554.3527964992,6686865.32722571); > ll.transform((new OpenLayers.Projection("EPSG:900913"), new > OpenLayers.Projection("EPSG:27700")); > > This will convert Google coords (Google sphericalMercator) to OSGB. > The class supports OSGB to and from Google (ESPG:900913), and OSGB to > and from WGS84 lat/long (ESPG:4326). > > Some of the math functions are poorly documented (it was a quick > convert from an already-existing conversion class) > > Finally, the code is here: > http://ge.pythonmoo.co.uk/maps/OpenLayers.Projection.OrdnanceSurvey.js > Please don't hotlink it. > > -- > Regards, > Thomas Wood > (Edgemaster) > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Reprojecting-Google-tp14709777p14730820.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Thu Jan 10 06:29:26 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <200801091318.39631.plists@prometheus.org.yu> References: <200801091318.39631.plists@prometheus.org.yu> Message-ID: <5ec103de0801100329v147e44a7w5cacd00f633b7f80@mail.gmail.com> On Jan 9, 2008 1:18 PM, Attila Csipa wrote: > Stiff familiarizing myself with OpenLayers, I ran into something I'm not sure > is a design intention or am I simply doing something wrong: Controls do not > have events, and if I have a control that operates on features, my map events > get obstructed. Example - I have a Control.DragFeature on the map, but would > also like that a single non-drag click (map.events.register("click"...)) > would result in a popup. The order of control/event addition/registration > apparently did not have any effect on their behaviour - just clicking on > features which were in a layer that was marked as a layer for DragFeature did > nothing but change the cursor from draggable to normal. Essentially I'd like > to do something like the fallThrough property of the Event class except > controls AFAICS have no event properties. Am I being clueless again ? :) Since pretty soon, the drag handler has a stopDown API property that one can set to allow/disallow event propagation. You can try to do dragControl.dragHandler.stopDown = true. Currently, there's no way to set the drag handler options when initializing the drag feature control. I think this is lacking. -- Eric From marcelino at tecgraf.puc-rio.br Thu Jan 10 13:03:04 2008 From: marcelino at tecgraf.puc-rio.br (Marcelino Ferreira Soares Neto) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Openlayers.Handler.MOD_SHIFT Message-ID: <000001c853b3$0c9d83c0$0855a8c0@teccentro.tecgraf.pucrio.br> Openlayers.Handler.MOD_SHIFT is null or not an object This error happens always when I access my application from outside the network. Someone knows what happens? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080110/72e62961/attachment.html From a_murdoch at hotmail.com Thu Jan 10 13:03:56 2008 From: a_murdoch at hotmail.com (ahm126) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] WMS overlaid on Google "spherical mercator" in OpenLayers In-Reply-To: <47839A2F.5050107@openplans.org> References: <14691039.post@talk.nabble.com> <47839A2F.5050107@openplans.org> Message-ID: <14740079.post@talk.nabble.com> Andrea, Thanks for letting me know. It's a bit of a disappointment, but I can work around it by simply not using Google (or other commercial data). I'm sure it's a show-stopper for some people though. I suppose I can also work around by turning off the OpenLayers "wrapDateLine" option and resize the Google map to only show one "wrap" of the Earth? Is there any way for users to "vote" on JIRA issues to potentially help prioritize updates? Not sure how the JIRA system works. I've really enjoyed working with Geoserver! Thanks for the hard work. Andrew aaime wrote: > > > It's a known GeoServer issue: http://jira.codehaus.org/browse/GEOS-1293 > > Unfortunately we had no time to fix it, so GeoServer 1.6.0 will most > probably be released as is, and the issue will be fixed in 1.6.1 (it's > not a regression, GeoServer never rendered properly maps crossing the > dateline). > > Cheers > Andrea > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/WMS-overlaid-on-Google-%22spherical-mercator%22-in-OpenLayers-tp14584062p14740079.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From erik.uzureau at metacarta.com Thu Jan 10 13:23:40 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <475C030D.2020806@inetnebr.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> Message-ID: <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> Hi everyone... Lance is still stuck on this. Can anyone help? Here is an updated email that he's sent. Notice how there is a stripe of duplicated tiles on the lefthand side... seems strange. http://www.dyasdesigns.com/croatia/zagrebopenerror.htm -e On 12/9/07, Lance Dyas wrote: > To give a little more clue the most obvious error is > TileCache Layer is doubling a Stripe of the tiles on left side at the > outer most zoom > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > after zooming in some of the top row(s) of tiles are being repeated > > Lance Dyas wrote: > > Works great as a WMS but and through TileCache but not as TileCache Layer > > > > here it is as a WMS > > http://www.dyasdesigns.com/croatia/zagrebopen.htm > > > > but switching to a TileCache.... layer does some wierd things.. really > > wierd things? > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > _______________________________________________ > > 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 bpederse at gmail.com Thu Jan 10 14:00:03 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> Message-ID: here's a patch that fixes that. i just checked the code in Layer.py from tilecache to see what it did. svn diff TileCache.js Index: TileCache.js =================================================================== --- TileCache.js (revision 5710) +++ TileCache.js (working copy) @@ -103,8 +103,8 @@ var res = this.map.getResolution(); var bbox = this.maxExtent; var size = this.tileSize; - var tileX = Math.floor((bounds.left - bbox.left) / (res * size.w)); - var tileY = Math.floor((bounds.bottom - bbox.bottom) / (res * size.h)); + var tileX = Math.round((bounds.left - bbox.left) / (res * size.w)); + var tileY = Math.round((bounds.bottom - bbox.bottom) / (res * size.h)); var tileZ = this.map.zoom; /** * Zero-pad a positive integer. On Jan 10, 2008 10:23 AM, Erik Uzureau wrote: > Hi everyone... Lance is still stuck on this. Can anyone help? > > Here is an updated email that he's sent. Notice how there is a > stripe of duplicated tiles on the lefthand side... seems strange. > > http://www.dyasdesigns.com/croatia/zagrebopenerror.htm > > > -e > > > On 12/9/07, Lance Dyas wrote: > > To give a little more clue the most obvious error is > > TileCache Layer is doubling a Stripe of the tiles on left side at the > > outer most zoom > > > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > > > after zooming in some of the top row(s) of tiles are being repeated > > > > Lance Dyas wrote: > > > Works great as a WMS but and through TileCache but not as TileCache Layer > > > > > > here it is as a WMS > > > http://www.dyasdesigns.com/croatia/zagrebopen.htm > > > > > > but switching to a TileCache.... layer does some wierd things.. really > > > wierd things? > > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > > _______________________________________________ > > > 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 erik.uzureau at metacarta.com Thu Jan 10 14:49:26 2008 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> Message-ID: <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> Hi Brent, thanks for this patch... it looks like a good fix. Do you think you could turn this into a ticket? I think this is something we should have in OpenLayers. E On 1/10/08, Brent Pedersen wrote: > here's a patch that fixes that. i just checked the code in Layer.py > from tilecache to see what it did. > > svn diff TileCache.js > Index: TileCache.js > =================================================================== > --- TileCache.js (revision 5710) > +++ TileCache.js (working copy) > @@ -103,8 +103,8 @@ > var res = this.map.getResolution(); > var bbox = this.maxExtent; > var size = this.tileSize; > - var tileX = Math.floor((bounds.left - bbox.left) / (res * size.w)); > - var tileY = Math.floor((bounds.bottom - bbox.bottom) / (res * size.h)); > + var tileX = Math.round((bounds.left - bbox.left) / (res * size.w)); > + var tileY = Math.round((bounds.bottom - bbox.bottom) / (res * size.h)); > var tileZ = this.map.zoom; > /** > * Zero-pad a positive integer. > > > > On Jan 10, 2008 10:23 AM, Erik Uzureau wrote: > > Hi everyone... Lance is still stuck on this. Can anyone help? > > > > Here is an updated email that he's sent. Notice how there is a > > stripe of duplicated tiles on the lefthand side... seems strange. > > > > http://www.dyasdesigns.com/croatia/zagrebopenerror.htm > > > > > > -e > > > > > > On 12/9/07, Lance Dyas wrote: > > > To give a little more clue the most obvious error is > > > TileCache Layer is doubling a Stripe of the tiles on left side at the > > > outer most zoom > > > > > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > > > > > after zooming in some of the top row(s) of tiles are being repeated > > > > > > Lance Dyas wrote: > > > > Works great as a WMS but and through TileCache but not as TileCache Layer > > > > > > > > here it is as a WMS > > > > http://www.dyasdesigns.com/croatia/zagrebopen.htm > > > > > > > > but switching to a TileCache.... layer does some wierd things.. really > > > > wierd things? > > > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm > > > > _______________________________________________ > > > > 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 bpederse at gmail.com Thu Jan 10 14:57:02 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> Message-ID: On Jan 10, 2008 11:49 AM, Erik Uzureau wrote: > Hi Brent, thanks for this patch... it looks like a good fix. Do you > think you could turn this into a ticket? I think this is something we > should have in OpenLayers. > > E > sure. done. http://trac.openlayers.org/ticket/1261 -b From linda.rawson at gmail.com Thu Jan 10 15:49:23 2008 From: linda.rawson at gmail.com (Linda_Rawson) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Firefox help needed for google sphericalMercator In-Reply-To: <6e9b30fb0801091559r4c4d4f48g3ce882818d0aa94a@mail.gmail.com> References: <6e9b30fb0801091559r4c4d4f48g3ce882818d0aa94a@mail.gmail.com> Message-ID: <14743368.post@talk.nabble.com> I found the solution. It seems there is a slight difference in the DOM between the two browsers. function loadScript(path, notCtx) { var url = urlPath(path, notCtx); // Internet Explorer if (navigator.appName.indexOf("Microsoft") == 0) { document.write ('<' + 'script src="' + url + '"'+' type="text/javascript"><' + '/script>'); } else { var element = document.createElement('script'); // set the 'src' attribute of the element element.setAttribute('src', url); element.setAttribute('type', 'text/javascript'); // insert the new node into the current document document.getElementsByTagName("head")[0].appendChild(element); } } function init() { // Internet Explorer if (navigator.appName.indexOf("Microsoft") == 0) { var sloc = ""; var SCRIPT_NAME = "googleKey.js"; var scripts = document.getElementsByTagName('script'); for (var i = 0; i < scripts.length; i++) { var src = scripts[i].getAttribute('src'); if (src) { var index = src.lastIndexOf(SCRIPT_NAME); // is it found, at the end of the URL? if ((index > -1) && (index + SCRIPT_NAME.length == src.length)) { sloc = src.slice(0, -SCRIPT_NAME.length); break; } } } ____path = sloc; } loadScript(GOOGLE_TILES_SERVER + GOOGLE_TILES_KEY, true); } Linda Linda_Rawson wrote: > > Ok. I need the ability to load the googlekey outside the default page. > > So in sphericalMercator.html it is loaded this way: > > > > I created this file called google.js which is the following: > > //////////////////// > var > GOOGLE_TILES_KEY="ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ"; > var GOOGLE_TILES_SERVER="http://maps.google.com/maps?file=api&v=2&key="; > var ____path = ""; > function urlPath(path, notCtx) { > var incCtx = notCtx || false; > var url = (!incCtx ? ____path : "") + path; > return url; > } > function loadScript(path, notCtx) { > var url = urlPath(path, notCtx); > document.write ('<' + 'script src="' + url + '"'+' > type="text/javascript"><' + '/script>'); > } > function init() { > var sloc = ""; > var SCRIPT_NAME = "googleKey.js"; > var scripts = document.getElementsByTagName('script'); > for (var i = 0; i < scripts.length; i++) { > var src = scripts[i].getAttribute('src'); > if (src) { > var index = src.lastIndexOf(SCRIPT_NAME); > // is it found, at the end of the URL? > if ((index > -1) && (index + SCRIPT_NAME.length == src.length)) { > sloc = src.slice(0, -SCRIPT_NAME.length); > break; > } > } > } > ____path = sloc; > loadScript(GOOGLE_TILES_SERVER + GOOGLE_TILES_KEY, true); > } > init(); > > //////////////////// > > This works fine in internet explorer but in firefox I get: > > OpenLayers.Bounds is not a constructor > > Any ideas? > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Firefox-help-needed-for-google-sphericalMercator-%3COpenLayers.Bounds-is-not-a-constructor%3E-tp14724839p14743368.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From conniehl at gmail.com Thu Jan 10 16:46:32 2008 From: conniehl at gmail.com (Connie Leung) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Using OpenLayers with ArcGIS Server Message-ID: Hi, I have a website that is based on ArcGIS Server ADF (.net). I would like to display points stored in sql server on the map. The requirements for the points are 1) display the point dynamically based on data stored in the db 2) draggable on the map (in order to update the coordinate in db). 3) the point is selectable by a single point of click 4) have a mouse over popup box associate with each point. I was looking at the openLayers examples and seems like its Vector layer can do all 4 requirements. My question is does anyone of you have experience in integrating openlayers with ArcGIS Server? Do you think it is doable? Do you recommended to overlay openlayers with ArcGIS Server? I am not a savoy developer, I would be great if anyone can you give me some pointer where to start. Thanks for any advice in advance Connie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080110/6a91c580/attachment.html From gregor at hostgis.com Thu Jan 10 19:21:08 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] CSS reference? Message-ID: <4786B674.2070402@hostgis.com> Does anyone have a reference on what CSS classes can be applied to various elements? The class documentation doesn't have it, and it'd be immensely useful to be able to e.g. specify the font in the layer selector, or position the PanZoomBar. -- 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 drrobison at openroadsconsulting.com Thu Jan 10 20:08:05 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Linestring oriented features In-Reply-To: References: Message-ID: <4786C175.9080609@openroadsconsulting.com> Is it possible to create a layer within OL to add and draw features that are linestrings rather than points? Kind of a linestring oriented marker. Thanks, David -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 From crschmidt at metacarta.com Thu Jan 10 20:22:17 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Linestring oriented features In-Reply-To: <4786C175.9080609@openroadsconsulting.com> References: <4786C175.9080609@openroadsconsulting.com> Message-ID: <20080111012217.GB9788@alta.metacarta.com> On Thu, Jan 10, 2008 at 08:08:05PM -0500, David R Robison wrote: > Is it possible to create a layer within OL to add and draw features that > are linestrings rather than points? Kind of a linestring oriented marker. Like http://openlayers.org/dev/examples/draw-feature.html ? Regards, -- Christopher Schmidt MetaCarta From lancelot at inetnebr.com Fri Jan 11 00:51:27 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> Message-ID: <478703DF.6020503@inetnebr.com> The fix is great and the tilecache layer is working nicely ... but isnt there always a but... this is probably an easy one.. ;-) the overview map now isnt recognising the layer name properly in the urls it requests... http://www.dyasdesigns.com/tiles/%5Bobject%20Object%5D/08/000/000/000/000/000/000.png http://www.dyasdesigns.com/croatia/zagrebopen2.htm Erik Uzureau wrote: > Hi Brent, thanks for this patch... it looks like a good fix. Do you > think you could turn this into a ticket? I think this is something we > should have in OpenLayers. > > E > > On 1/10/08, Brent Pedersen wrote: > >> here's a patch that fixes that. i just checked the code in Layer.py >> from tilecache to see what it did. >> >> svn diff TileCache.js >> Index: TileCache.js >> =================================================================== >> --- TileCache.js (revision 5710) >> +++ TileCache.js (working copy) >> @@ -103,8 +103,8 @@ >> var res = this.map.getResolution(); >> var bbox = this.maxExtent; >> var size = this.tileSize; >> - var tileX = Math.floor((bounds.left - bbox.left) / (res * size.w)); >> - var tileY = Math.floor((bounds.bottom - bbox.bottom) / (res * size.h)); >> + var tileX = Math.round((bounds.left - bbox.left) / (res * size.w)); >> + var tileY = Math.round((bounds.bottom - bbox.bottom) / (res * size.h)); >> var tileZ = this.map.zoom; >> /** >> * Zero-pad a positive integer. >> >> >> >> On Jan 10, 2008 10:23 AM, Erik Uzureau wrote: >> >>> Hi everyone... Lance is still stuck on this. Can anyone help? >>> >>> Here is an updated email that he's sent. Notice how there is a >>> stripe of duplicated tiles on the lefthand side... seems strange. >>> >>> http://www.dyasdesigns.com/croatia/zagrebopenerror.htm >>> >>> >>> -e >>> >>> >>> On 12/9/07, Lance Dyas wrote: >>> >>>> To give a little more clue the most obvious error is >>>> TileCache Layer is doubling a Stripe of the tiles on left side at the >>>> outer most zoom >>>> >>>> http://www.dyasdesigns.com/croatia/zagrebopen2.htm >>>> >>>> after zooming in some of the top row(s) of tiles are being repeated >>>> >>>> Lance Dyas wrote: >>>> >>>>> Works great as a WMS but and through TileCache but not as TileCache Layer >>>>> >>>>> here it is as a WMS >>>>> http://www.dyasdesigns.com/croatia/zagrebopen.htm >>>>> >>>>> but switching to a TileCache.... layer does some wierd things.. really >>>>> wierd things? >>>>> http://www.dyasdesigns.com/croatia/zagrebopen2.htm >>>>> _______________________________________________ >>>>> 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 maplabs at light42.com Fri Jan 11 02:24:48 2008 From: maplabs at light42.com (Brian Hamlin) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] OL and FS - puzzled Message-ID: <4A2AB785-C016-11DC-9E67-000A277A733C@light42.com> I have recently hooked up a trivial instance of FeatureServer against a PostGIS data source The WFS GML is being displayed in an OpenLayers display Why arent there as many markers showing in the window as are coming back from the server? I have maxfeatures set to 50... I can see the 50 features coming back as GML, and in fact I can see in the HTML tab of Firebug 50 elements in the SVG for the WFS layer. http;//sial.org/pbot/29762 However, there are only 21 markers visible to me in the map div. Are they offscreen? insights, pointers welcome -Brian From maplabs at light42.com Fri Jan 11 04:00:53 2008 From: maplabs at light42.com (Brian Hamlin) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] OL and FS - puzzled In-Reply-To: <4A2AB785-C016-11DC-9E67-000A277A733C@light42.com> References: <4A2AB785-C016-11DC-9E67-000A277A733C@light42.com> Message-ID: On Jan 10, 2008, at 11:24 PM, Brian Hamlin wrote: > I have recently hooked up a trivial instance of FeatureServer against a > PostGIS data source > The WFS GML is being displayed in an OpenLayers display > > Why arent there as many markers showing in the window as are coming > back from the server? > > I have maxfeatures set to 50... > I can see the 50 features coming back as GML, and in fact I can see in > the HTML tab of > Firebug 50 elements in the SVG for the WFS layer. > http;//sial.org/pbot/29762 > > However, there are only 21 markers visible to me in the map div. Are > they offscreen? > so yes, with a moments collected thought, I just added the standard svg header around that svg node and yes, it displays in a browser window standalone. I can now see that aside from the transform="scale(1,-1)" there are no other tricky coords going on.. So then I can see that indeed, many of the points, perhaps even 29 of them, are outside of the viewing area in some way.. So the question simply becomes why? pre-fetch for better browsing ?.. looks like the span of pts is roughly... double the dimensions ? or a buffer of 400-500 px worth ? perhaps this is documented behavior, I just havent read everything yet > insights, pointers welcome -Brian From bluecarto at gmail.com Fri Jan 11 06:54:45 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] OL and FS - puzzled In-Reply-To: References: <4A2AB785-C016-11DC-9E67-000A277A733C@light42.com> Message-ID: As far as I can remember, there is a ratio option. Here is the definition given in the code : "the ratio of image/tile size to map size (this is the untiled buffer)" Given this, you can set a ratio to 1 and you'll see your 50 markers in the current visible extent. A ratio set to 2 prevents the data reload if user pans just a little bit. Hope this helps. Regards, Pierre On Jan 11, 2008 10:00 AM, Brian Hamlin wrote: > On Jan 10, 2008, at 11:24 PM, Brian Hamlin wrote: > > > I have recently hooked up a trivial instance of FeatureServer against a > > PostGIS data source > > The WFS GML is being displayed in an OpenLayers display > > > > Why arent there as many markers showing in the window as are coming > > back from the server? > > > > I have maxfeatures set to 50... > > I can see the 50 features coming back as GML, and in fact I can see in > > the HTML tab of > > Firebug 50 elements in the SVG for the WFS layer. > > http;//sial.org/pbot/29762 > > > > However, there are only 21 markers visible to me in the map div. Are > > they offscreen? > > > > so yes, with a moments collected thought, I just added the standard svg > header around that svg node and yes, it displays in a browser window > standalone. I can now see that aside from the transform="scale(1,-1)" > there are no other tricky coords going on.. So then I can see that > indeed, many of the points, perhaps even 29 of them, are outside of the > viewing area in some way.. > > So the question simply becomes why? pre-fetch for better browsing ?.. > > looks like the span of pts is roughly... double the dimensions ? > or a buffer of 400-500 px worth ? > > perhaps this is documented behavior, I just havent read everything yet > > > > insights, pointers welcome > > -Brian > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bluecarto at gmail.com Fri Jan 11 07:22:59 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Linestring oriented features In-Reply-To: <20080111012217.GB9788@alta.metacarta.com> References: <4786C175.9080609@openroadsconsulting.com> <20080111012217.GB9788@alta.metacarta.com> Message-ID: What is the use case ? Do you need to map wind direction or something similar ? If it's the case, it would be technically possible to use the vectorSymbols I started to develop [1] and give it an angle. [1] http://dev.openlayers.org/sandbox/camptocamp/vectorSymbols/examples/vector-symbols.html Regards, Pierre On Jan 11, 2008 2:22 AM, Christopher Schmidt wrote: > On Thu, Jan 10, 2008 at 08:08:05PM -0500, David R Robison wrote: > > Is it possible to create a layer within OL to add and draw features that > > are linestrings rather than points? Kind of a linestring oriented marker. > > Like http://openlayers.org/dev/examples/draw-feature.html ? > > Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Fri Jan 11 08:17:32 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <478703DF.6020503@inetnebr.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> Message-ID: <20080111131731.GA19664@alta.metacarta.com> On Thu, Jan 10, 2008 at 11:51:27PM -0600, Lance Dyas wrote: > The fix is great and the tilecache layer is working nicely ... but isnt > there always a but... > this is probably an easy one.. ;-) the overview map now isnt recognising > the > layer name properly in the urls it requests... > http://www.dyasdesigns.com/tiles/%5Bobject%20Object%5D/08/000/000/000/000/000/000.png > > http://www.dyasdesigns.com/croatia/zagrebopen2.htm Without looking at your code, it sounds like you've got an object where a string is expected. Might double check that you're sending the right parameters. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Fri Jan 11 08:26:24 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Openlayers.Handler.MOD_SHIFT In-Reply-To: <000001c853b3$0c9d83c0$0855a8c0@teccentro.tecgraf.pucrio.br> References: <000001c853b3$0c9d83c0$0855a8c0@teccentro.tecgraf.pucrio.br> Message-ID: <5ec103de0801110526w350c8b40q8b3cd79193590558@mail.gmail.com> On Jan 10, 2008 7:03 PM, Marcelino Ferreira Soares Neto wrote: > > > > > Openlayers.Handler.MOD_SHIFT is null or not an object > > > > This error happens always when I access my application from outside the > network. > > Someone knows what happens? Your email doesn't provide enough information (at least to me) to be able to help you. -- Eric From plists at prometheus.org.yu Fri Jan 11 08:49:20 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <5ec103de0801100329v147e44a7w5cacd00f633b7f80@mail.gmail.com> References: <200801091318.39631.plists@prometheus.org.yu> <5ec103de0801100329v147e44a7w5cacd00f633b7f80@mail.gmail.com> Message-ID: <200801111449.21666.plists@prometheus.org.yu> On Thursday 10 January 2008 12:29:26 Eric Lemoine wrote: > Since pretty soon, the drag handler has a stopDown API property that Now that's what I call bleeding edge :) > one can set to allow/disallow event propagation. You can try to do > dragControl.dragHandler.stopDown = true. Currently, there's no way to OK, I'm a bit confused here: stopDown = true _allows_ or disallows event propagation ? True is noted as the default and, interpreting the docs, stops (disallows) event propagation - (as the code itself is propagate = !this.stopDown;). From the svn log (and your message above) OTOH I'm under the impression it's the other way around. In any case (in mine DragHandler and a 'click' Map.Event above a feature), I've tried setting both true/false manually but that did not change much as (according to my admittedly poor firebug skills) the event still gets stopped in somebodys OpenLayers.Handler.Feature (maybe it needs a stopDown property, too, or modification to a common ancestor ?). PS sorry if this is too technical, feel free to reply on -dev if it seems more appropriate. From drrobison at openroadsconsulting.com Fri Jan 11 09:05:47 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Linestring oriented features In-Reply-To: References: <4786C175.9080609@openroadsconsulting.com> <20080111012217.GB9788@alta.metacarta.com> Message-ID: <478777BB.3060707@openroadsconsulting.com> We are trying to display road closure incidents on a OL map. These incidents are linestrings. I think I will try the Vector layer with Vector features... David Pierre GIRAUD wrote: > What is the use case ? > Do you need to map wind direction or something similar ? > > If it's the case, it would be technically possible to use the > vectorSymbols I started to develop [1] and give it an angle. > > [1] http://dev.openlayers.org/sandbox/camptocamp/vectorSymbols/examples/vector-symbols.html > > Regards, > Pierre > > On Jan 11, 2008 2:22 AM, Christopher Schmidt wrote: > >> On Thu, Jan 10, 2008 at 08:08:05PM -0500, David R Robison wrote: >> >>> Is it possible to create a layer within OL to add and draw features that >>> are linestrings rather than points? Kind of a linestring oriented marker. >>> >> Like http://openlayers.org/dev/examples/draw-feature.html ? >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080111/d08021f0/attachment.html From mpriour at kestrelcomputer.com Fri Jan 11 10:23:52 2008 From: mpriour at kestrelcomputer.com (mpriour) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] CSS reference? In-Reply-To: <4786B674.2070402@hostgis.com> References: <4786B674.2070402@hostgis.com> Message-ID: <14758365.post@talk.nabble.com> You can find the css classes in: OpenLayers-2.5\theme\default\style.css for the Nav Tool Bar use can find several entries begining with: .olControlNavToolbar The general pattern is olControl[Class Name] for controls and olLayer[ClassName] for layers Also you can use the DOM Explorer is FF or Dev Toolbar in IE to find elements by click and get all the CSS & DOM info you need about the elements Matt Priour Gregor Mosheh-3 wrote: > > Does anyone have a reference on what CSS classes can be applied to > various elements? The class documentation doesn't have it, and it'd be > immensely useful to be able to e.g. specify the font in the layer > selector, or position the PanZoomBar. > > -- > 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 > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/CSS-reference--tp14747187p14758365.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cranio at quipo.it Fri Jan 11 10:30:59 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] [newbie] Different projections, Mapserver as WMS Message-ID: <14757400.post@talk.nabble.com> Hi you all! I'm an absolute beginner so I hope that you'll have some patience. What I am trying to do is to have two layers on an Openlayers map. The FIRST layer is the OpenLayers WMS that we can found in many examples. I believe it relies on a "EPSG:4326" projection, right? var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}); Then, the SECOND layer is a MapServer layer that uses "EPSG:26592" that I define this way: var my_wms = new OpenLayers.Layer.WMS( "Apulia", "http://my.domain.net/cgi-bin/mapserv?map=/var/www/path-to-mapfile/mymapfile.map", {layers: "comuni", transparent: "true", format: "image/png" }); But it doesn't work... If I change the projection of the map defining the map as: var map = new OpenLayers.Map('map',{projection:"EPSG:26592"}); the 2nd layers gives no error but the bounds are totally wrong, and i lose 1st layer. If i leave the default proj for map, EPSG:4326, the 1st layer works but the 2nd gives me an error (SRS). Any help will be appreciated! Please lemme know if you need some more info (f.ex. the MapServer mapfile or things like that). -- View this message in context: http://www.nabble.com/-newbie--Different-projections%2C-Mapserver-as-WMS-tp14757400p14757400.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From madair at dmsolutions.ca Fri Jan 11 10:53:33 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <20080109122526.GA4446@alta.metacarta.com> References: <14709777.post@talk.nabble.com> <20080109122526.GA4446@alta.metacarta.com> Message-ID: <478790FD.2010902@dmsolutions.ca> I've added a test point for EPSG:27700 to proj4js and it is accurate to less than a mm. I was encountering a problem in that the proj4 C code codes the datum name as 'OSGB36' whereas spatialreference.org is returning 'OSB36', not sure why. In any case I've added an alias for that in proj4js now. Mike Christopher Schmidt wrote: > On Wed, Jan 09, 2008 at 03:27:11AM -0800, Jon Britton wrote: > >> Hi, >> I've got data in EPSG:27700 (British National Grid) and want to overlay it >> on Google data. However, I want to reproject the Google data into EPSG:27700 >> and not the other way around. Can this be done? >> > > Project the google *data*? Google ain't yours, man: You can't do > anything fun with it (and definitely not reproject it!) > > >> Alternatively, can OpenLayers convert from Google coordinates to EPSG:27700 >> coordinates? All I need is to be able to get the 27700 coordinates of the >> current view. >> > > It is possible, using the trunk versio of OpenLayers, to convert from > Google coordinates to lon/lat. It is possible, using proj4js or perhaps > a custom transformation function, to convert from lon/lat to EPSG:27700. > I know of at least one person who has done it -- I'll try and remember > who and get him to post. > > Regards, > From dejung.gewissler at oit.state.nj.us Fri Jan 11 10:58:16 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <20080104224152.GA24005@alta.metacarta.com> References: <477E8EE5.8020602@oit.state.nj.us> <20080104201852.GA21694@alta.metacarta.com> <20080104202539.GB21694@alta.metacarta.com> <477EB558.1060501@oit.state.nj.us> <20080104224152.GA24005@alta.metacarta.com> Message-ID: <47879218.60804@oit.state.nj.us> So I spent quite a while trying to figure out the why the styling wasn't taking hold in IE but worked in FF. Alas it my shortsightedness in not realizing that "FF0000" and "#FF0000" are not the same!!! FF is more forgiving I guess and accepted the color without the hash but IE defaulted to black. Posting this in case anyone in the future has such problems. The vector layer issue is still outstanding, but I saw that there was a ticket filed. So far I tracked down the offending function to being moveTo() in Vector.js at line 222. If you put an alert('stop'); after line 228 you will pause the flash as it happens. It seems that vector layer is being repositioned and then the root element that holds the vectors is also being repositioned. ....I haven't had time to go beyond that. Any thoughts? -Dejung -- Dejung Gewissler New Jersey Office of Information Technology Office of Geographic Information Systems 200 Riverview Plaza PO Box 212, Trenton, NJ 08625-0212 609.777.3754 From crschmidt at metacarta.com Fri Jan 11 10:59:40 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] GML/vector layers in IE In-Reply-To: <47879218.60804@oit.state.nj.us> References: <477E8EE5.8020602@oit.state.nj.us> <20080104201852.GA21694@alta.metacarta.com> <20080104202539.GB21694@alta.metacarta.com> <477EB558.1060501@oit.state.nj.us> <20080104224152.GA24005@alta.metacarta.com> <47879218.60804@oit.state.nj.us> Message-ID: <20080111155940.GB22318@alta.metacarta.com> On Fri, Jan 11, 2008 at 10:58:16AM -0500, Dejung Gewissler wrote: > So I spent quite a while trying to figure out the why the styling wasn't > taking hold in IE but worked in FF. Alas it my shortsightedness in not > realizing that "FF0000" and "#FF0000" are not the same!!! FF is more > forgiving I guess and accepted the color without the hash but IE > defaulted to black. Posting this in case anyone in the future has such > problems. Glad to hear it was that simple. > The vector layer issue is still outstanding, but I saw that there was a > ticket filed. So far I tracked down the offending function to being > moveTo() in Vector.js at line 222. If you put an alert('stop'); after > line 228 you will pause the flash as it happens. It seems that vector > layer is being repositioned and then the root element that holds the > vectors is also being repositioned. ....I haven't had time to go > beyond that. Any thoughts? Nope, but please feel free to add this to the ticket. (I don't have or use IE, and have no way of testing.) Regards, -- Christopher Schmidt MetaCarta From dejung.gewissler at oit.state.nj.us Fri Jan 11 11:15:52 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Hover style not working on GML Message-ID: <47879638.1070301@oit.state.nj.us> Hi All- I've added a GML layer to the map would like the following scenario: 1) features rendered differently based on feature values (done with styles and rules) 2) on mouseover/hover of a feature the hover styles to take effect 3) on click of the feature a popup should appear 1) is done. 2) I can't get to work unless I attach a selectFeature control to the layer and set {hover: true}. Is there a way to accomplish this task without using the selectFeature control? The reason why is that I would like to use the selectFeature control in 3) and attach some functionality to the onSelect callback. In addition when I set {hover: true} on the selectFeature control the hover styles are not being honored. They default to blue for both stroke and fill. I am currently implementing the following: var styleHash = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"]); var styleRR = new OpenLayers.Style(styleHash); var rulePopGreat = new OpenLayers.Rule.Comparison({ type: OpenLayers.Rule.Comparison.GREATER_THAN, property: "POP2000", value: "500000", symbolizer: {"Polygon": {fillColor: "#FF0000", strokeColor: "#00FF00", "hoverStrokeColor": "#00FF00", "hoverFillColor": "white"}}}); var rulePopLess = new OpenLayers.Rule.Comparison({ type: OpenLayers.Rule.Comparison.LESS_THAN, property: "POP2000", value: "200000", symbolizer: {"Polygon": {fillColor: "#0000FF", strokeColor: "#000000", "hoverStrokeColor": "#000000", "hoverFillColor": "white"}}}); styleRR.addRules([rulePopGreat, rulePopLess]); myGML = new OpenLayers.Layer.GML("GML", "GML_County_Simplify.xml", {visibility:false, maxResolution:5000, style: styleRR}); Thanks , Dejung -- Dejung Gewissler New Jersey Office of Information Technology Office of Geographic Information Systems 200 Riverview Plaza PO Box 212, Trenton, NJ 08625-0212 609.777.3754 From eric.c2c at gmail.com Fri Jan 11 11:36:05 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] Hover style not working on GML In-Reply-To: <47879638.1070301@oit.state.nj.us> References: <47879638.1070301@oit.state.nj.us> Message-ID: <5ec103de0801110836g52f5816wd9a76eec72378c55@mail.gmail.com> On Jan 11, 2008 5:15 PM, Dejung Gewissler wrote: > Hi All- Hi Dejung > I've added a GML layer to the map would like the following scenario: > 1) features rendered differently based on feature values (done with > styles and rules) > 2) on mouseover/hover of a feature the hover styles to take effect > 3) on click of the feature a popup should appear > > 1) is done. 2) I can't get to work unless I attach a selectFeature > control to the layer and set {hover: true}. Is there a way to accomplish > this task without using the selectFeature control? Not that I'm aware of. But I understand why you're asking this - the hover* style properties. I've never use these properties myself, and I don't know if they're actually usable. Someone may want to jump in... > The reason why is > that I would like to use the selectFeature control in 3) and attach some > functionality to the onSelect callback. Have you tried using two select feature controls on the same layer, one with hover:true, the other with hover:false? Again, I've never tried this myself, and I'm not actually sure it'll work. If that doesn't work, I'd say it's a bug in OpenLayers, and we'll need to fix it. > In addition when I set {hover: > true} on the selectFeature control the hover styles are not being > honored. They default to blue for both stroke and fill. Yeah, the selectStyle property of the select feature control matters here. Again, I don't know whether these hover* properties are usable (I dont think they are, but I may be wrong). Hope this helps, -- Eric From eric.c2c at gmail.com Fri Jan 11 11:49:09 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <200801111449.21666.plists@prometheus.org.yu> References: <200801091318.39631.plists@prometheus.org.yu> <5ec103de0801100329v147e44a7w5cacd00f633b7f80@mail.gmail.com> <200801111449.21666.plists@prometheus.org.yu> Message-ID: <5ec103de0801110849l221f6518m7ebe1eab344c4ff6@mail.gmail.com> On Jan 11, 2008 2:49 PM, Attila Csipa wrote: > On Thursday 10 January 2008 12:29:26 Eric Lemoine wrote: > > Since pretty soon, the drag handler has a stopDown API property that > > Now that's what I call bleeding edge :) > > > one can set to allow/disallow event propagation. You can try to do > > dragControl.dragHandler.stopDown = true. Currently, there's no way to > > OK, I'm a bit confused here: stopDown = true _allows_ or disallows event > propagation ? stopDown=true does stop event propagation. > True is noted as the default and, interpreting the docs, stops > (disallows) event propagation - (as the code itself is propagate > = !this.stopDown;). From the svn log (and your message above) OTOH I'm under > the impression it's the other way around. Yes, the svn commit message seems wrong to me too. > In any case (in mine DragHandler > and a 'click' Map.Event above a feature), I've tried setting both true/false > manually but that did not change much as (according to my admittedly poor > firebug skills) the event still gets stopped in somebodys > OpenLayers.Handler.Feature (maybe it needs a stopDown property, too, or > modification to a common ancestor ?). I'm having trouble following you here. Could you post some code? > PS sorry if this is too technical, feel free to reply on -dev if it seems more > appropriate. I'll leave it here since the discussion started here. But this indeed would have been more appropriate on dev. -- Eric From jlacroix at mapgears.com Fri Jan 11 13:02:01 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] [newbie] Different projections, Mapserver as WMS In-Reply-To: <14757400.post@talk.nabble.com> References: <14757400.post@talk.nabble.com> Message-ID: <4787AF19.3060207@mapgears.com> Hi, Your MapServer layer probably doesn't support the EPSG:4326 projection. To make it support this projection, you must specify it in the wms_srs metadata in your mapfile. This metadata list all SRS available for the layer. See the wms_srs metadata explanation here: http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms Julien Cranio wrote: > Hi you all! I'm an absolute beginner so I hope that you'll have some > patience. > > What I am trying to do is to have two layers on an Openlayers map. > > The FIRST layer is the OpenLayers WMS that we can found in many examples. > I believe it relies on a "EPSG:4326" projection, right? > > var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}); > > Then, the SECOND layer is a MapServer layer that uses "EPSG:26592" that I > define this way: > > var my_wms = new OpenLayers.Layer.WMS( "Apulia", > "http://my.domain.net/cgi-bin/mapserv?map=/var/www/path-to-mapfile/mymapfile.map", > {layers: "comuni", transparent: "true", format: "image/png" }); > > But it doesn't work... If I change the projection of the map defining the > map as: > > var map = new OpenLayers.Map('map',{projection:"EPSG:26592"}); > > the 2nd layers gives no error but the bounds are totally wrong, and i lose > 1st layer. > If i leave the default proj for map, EPSG:4326, the 1st layer works but > the 2nd gives me an error (SRS). > > Any help will be appreciated! Please lemme know if you need some more info > (f.ex. the MapServer mapfile or things like that). > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From bbrehmer at refractions.net Fri Jan 11 13:12:58 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Possible pink tile fix Message-ID: <4787B1AA.6030202@refractions.net> Hello all, I just wanted to throw this out there as it might be useful to others; We'd been having some problems with pink tiles, even with IMAGE_RELOAD_ATTEMPTS set to a large number (10). The tile reload would max out and the tile still wouldn't load properly in IE6 & 7. But adding a dynamic dummy parameter to the problem images' URL seems to have solved the problem. In the Util.js::onImageLoadError() function we simply modify the src of the tile: var tmp_src = this.src; this.src = tmp_src+"&retry="+this._attempts; This allows you to monitor how many times an image fails to load from your server logs as well. Thanks, Ben From plists at prometheus.org.yu Fri Jan 11 16:21:36 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <5ec103de0801110849l221f6518m7ebe1eab344c4ff6@mail.gmail.com> References: <200801091318.39631.plists@prometheus.org.yu> <200801111449.21666.plists@prometheus.org.yu> <5ec103de0801110849l221f6518m7ebe1eab344c4ff6@mail.gmail.com> Message-ID: <200801112221.36635.plists@prometheus.org.yu> On Friday 11 January 2008 17:49:09 Eric Lemoine wrote: > > In any case (in mine DragHandler > > and a 'click' Map.Event above a feature), I've tried setting both > > true/false manually but that did not change much as (according to my > > admittedly poor firebug skills) the event still gets stopped in somebodys > > OpenLayers.Handler.Feature (maybe it needs a stopDown property, too, or > > modification to a common ancestor ?). > > I'm having trouble following you here. Could you post some code? Yes, I outdid myself with the parentheses, sorry about that. The code: var drag = new OpenLayers.Control.DragFeature(pointlayer,{ onStart: function(feature, pixel) { storeGeometry(feature.geometry); }, onComplete: function(feature, pixel) { processNewGeometry(feature.geometry); } }); drag.dragHandler.stopDown = false; map.addControl(drag); drag.activate(); map.events.register("click", map, function(e) { var lonlat = map.getLonLatFromViewPortPx(e.xy); alert("You clicked near " + lonlat.lat + " N, " + + lonlat.lon + " E"); }); What I want to do is to preserve 'click' functionality even if the click happened over a draggable feature. pointlayer is a GML layer containing features with point geometries. What happens in the svn version is that in pointlayer.events, Events.js on line 627, after Handler.Drag returns continueChain = true due to the stopDown property, but on the call to the next listener (a Handler.Feature), continueChain = false and thus it doesn't fall through to other elements. I'm still familiarizing myself with OL structures, so my assessment might be wrong of course... From lancelot at inetnebr.com Fri Jan 11 18:54:46 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <20080111131731.GA19664@alta.metacarta.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> <20080111131731.GA19664@alta.metacarta.com> Message-ID: <478801C6.3070601@inetnebr.com> So everybody knows I found the problem the clone method of TileCache.Layer is not sending the layername correctly so Overview Map is getting the options object in place of the layername. Christopher Schmidt wrote: > On Thu, Jan 10, 2008 at 11:51:27PM -0600, Lance Dyas wrote: > >> The fix is great and the tilecache layer is working nicely ... but isnt >> there always a but... >> this is probably an easy one.. ;-) the overview map now isnt recognising >> the >> layer name properly in the urls it requests... >> http://www.dyasdesigns.com/tiles/%5Bobject%20Object%5D/08/000/000/000/000/000/000.png >> >> http://www.dyasdesigns.com/croatia/zagrebopen2.htm >> > > Without looking at your code, it sounds like you've got an object where > a string is expected. Might double check that you're sending the right > parameters. > > Regards, > From crschmidt at metacarta.com Fri Jan 11 22:23:17 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <478801C6.3070601@inetnebr.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> <20080111131731.GA19664@alta.metacarta.com> <478801C6.3070601@inetnebr.com> Message-ID: <20080112032317.GA967@alta.metacarta.com> On Fri, Jan 11, 2008 at 05:54:46PM -0600, Lance Dyas wrote: > So everybody knows I found the problem the clone method of > TileCache.Layer is not sending the layername correctly > so Overview Map is getting the options object in place of > the layername. Please file this as a ticket. Regards, -- Christopher Schmidt MetaCarta From lancelot at inetnebr.com Sat Jan 12 00:14:38 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <20080112032317.GA967@alta.metacarta.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> <20080111131731.GA19664@alta.metacarta.com> <478801C6.3070601@inetnebr.com> <20080112032317.GA967@alta.metacarta.com> Message-ID: <47884CBE.50800@inetnebr.com> Follow up, the error was already fixed in the Trunk a month ago (Thanks Fred), but I hadnt updated my local version. Christopher Schmidt wrote: > On Fri, Jan 11, 2008 at 05:54:46PM -0600, Lance Dyas wrote: > >> So everybody knows I found the problem the clone method of >> TileCache.Layer is not sending the layername correctly >> so Overview Map is getting the options object in place of >> the layername. >> > > Please file this as a ticket. > > Regards, > From lancelot at inetnebr.com Sat Jan 12 00:49:13 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <47884CBE.50800@inetnebr.com> References: <475B1D20.2060804@inetnebr.com> <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> <20080111131731.GA19664@alta.metacarta.com> <478801C6.3070601@inetnebr.com> <20080112032317.GA967@alta.metacarta.com> <47884CBE.50800@inetnebr.com> Message-ID: <478854D9.8020702@inetnebr.com> Nor is the version here updated http://www.openlayers.org/api/OpenLayers.js It seems many of very nice fixes and general improvements wait quite a while before becoming part of the "latest release" Lance Dyas wrote: > Follow up, the error was already fixed in the Trunk a month ago (Thanks > Fred), but I hadnt updated my > local version. > > Christopher Schmidt wrote: > >> On Fri, Jan 11, 2008 at 05:54:46PM -0600, Lance Dyas wrote: >> >> >>> So everybody knows I found the problem the clone method of >>> TileCache.Layer is not sending the layername correctly >>> so Overview Map is getting the options object in place of >>> the layername. >>> >>> >> Please file this as a ticket. >> >> Regards, >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > . > > From aaime at openplans.org Sat Jan 12 05:41:45 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] [Geoserver-users] WMS overlaid on Google "spherical mercator" in OpenLayers In-Reply-To: References: <477BB239.7020309@psu.edu> Message-ID: <47889969.1000807@openplans.org> Andrew Murdoch ha scritto: > Hello, > > I'm cross-posting to the Geoserver and OpenLayers lists with this question. > > I'm using Geoserver 1.6.0 RC2 and OpenLayers 2.5 with Firefox 2.0.0.11. > I'm trying to display a WMS layer overtop of Google background data > using the OpenLayers javascript client. The Google data shows up fine > and I'm getting the topp:states WMS layer from Geoserver to show up, but > only half of the WMS states features show up at zoom level 1. Only the > eastern states show up with a vertical line cutting north to south. > When I zoom in closer on the US, all the WMS features show up overlain > on the Google data. It's almost as if at small "world-wide" scales, > there are too many tiles to display and the WMS is only partially displayed. > > I've duplicated this behavior with other WMS layers from my Geoserver > installation. At small "world-wide" scales, the WMS data is cut off. > When you zoom in, the WMS is displayed normally. > > I've been using a modified copy of the "spherical-mercator.html" example > to get this far. I can send in javascript code or screenshots if that > would be helpful. Yep, known issue with GeoServer WMS renderer, it does not work if the tile crosses the dateline: http://jira.codehaus.org/browse/GEOS-1293 Cheers Andrea From cranio at quipo.it Sat Jan 12 06:20:26 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Google doesn't line up with other WMS Message-ID: <14772076.post@talk.nabble.com> So, this newbie managed to get his externap Mapserver workin on OpenLayers. Now another problem for me: I tried to add a Google layer, it displays fine, but doesn't line up with my other WMS map, nor with the MetaCarta WMS layer (the default one of many examples). So, I guess, I have projection issues, but I am lost between how to define: - the Mapserver Mapfile projection (now served as epsg:26592) - the single layers in mapfiles projections (now undeclared) - the Openlayers map projection (I believe that, now in my test programs, it is default epsg:4632) to have Google or Yahoo WMS maps correctly line up with mine. Any help appreciated and sorry for the newbie question :) -- View this message in context: http://www.nabble.com/Google-doesn%27t-line-up-with-other-WMS-tp14772076p14772076.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From yjacolin at free.fr Sat Jan 12 06:26:08 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Google doesn't line up with other WMS In-Reply-To: <14772076.post@talk.nabble.com> References: <14772076.post@talk.nabble.com> Message-ID: <200801121226.08840.yjacolin@free.fr> Le samedi 12 janvier 2008 12:20, Cranio a ?crit?: > So, this newbie managed to get his externap Mapserver workin on OpenLayers. > Now another problem for me: I tried to add a Google layer, it displays > fine, but doesn't line up with my other WMS map, nor with the MetaCarta WMS > layer (the default one of many examples). > > So, I guess, I have projection issues, but I am lost between how to define: > - the Mapserver Mapfile projection (now served as epsg:26592) > - the single layers in mapfiles projections (now undeclared) > - the Openlayers map projection (I believe that, now in my test programs, > it is default epsg:4632) > > to have Google or Yahoo WMS maps correctly line up with mine. > Any help appreciated and sorry for the newbie question :) Hi, You need to use 'SphericalMercator' parameter in your map option and in your google options, See http://trac.openlayers.org/wiki/SphericalMercator for correct information ;) Y. -- Yves Jacolin ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From cranio at quipo.it Sat Jan 12 08:14:03 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Google doesn't line up with other WMS In-Reply-To: <200801121226.08840.yjacolin@free.fr> References: <14772076.post@talk.nabble.com> <200801121226.08840.yjacolin@free.fr> Message-ID: <14773197.post@talk.nabble.com> Thanks Yves but still doesn't work. When sphericalMercator is true, I get wrong centering (but this may be to the mismatched proj'n) but I lose also all the drag capabilities, and zoom seems to zoom in the wrong area. Also, my mapfile has this header: PROJECTION "init=epsg:26592" END If i change it to epsg:900913 (or whatever google uses, I don't remember now) my map simply won't shop up, with non error. Any ideas? Yves Jacolin wrote: > > Le samedi 12 janvier 2008 12:20, Cranio a ?crit : > [cut] >> So, I guess, I have projection issues, but I am lost between how to >> define: >> - the Mapserver Mapfile projection (now served as epsg:26592) >> - the single layers in mapfiles projections (now undeclared) >> - the Openlayers map projection (I believe that, now in my test programs, >> it is default epsg:4632) >> >> to have Google or Yahoo WMS maps correctly line up with mine. >> Any help appreciated and sorry for the newbie question :) > Hi, > > You need to use 'SphericalMercator' parameter in your map option and in > your > google options, See http://trac.openlayers.org/wiki/SphericalMercator for > correct information ;) > > Y. > -- > Yves Jacolin > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Google-doesn%27t-line-up-with-other-WMS-tp14772076p14773197.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From yjacolin at free.fr Sat Jan 12 08:24:17 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Google doesn't line up with other WMS In-Reply-To: <14773197.post@talk.nabble.com> References: <14772076.post@talk.nabble.com> <200801121226.08840.yjacolin@free.fr> <14773197.post@talk.nabble.com> Message-ID: <200801121424.17628.yjacolin@free.fr> Hi, Did you check that this EPSG code exist in your epsg file? Did you adapt your code to the new projection ('SphericalMercator')? Sorry, I can not help you so much. Y. Le samedi 12 janvier 2008 14:14, Cranio a ?crit?: > Thanks Yves but still doesn't work. > > When sphericalMercator is true, I get wrong centering (but this may be > to the mismatched proj'n) but I lose also all the drag capabilities, and > zoom seems to zoom in the wrong area. > > Also, my mapfile has this header: > PROJECTION > "init=epsg:26592" > END > > If i change it to epsg:900913 (or whatever google uses, I don't remember > now) > my map simply won't shop up, with non error. > > Any ideas? > > Yves Jacolin wrote: > > Le samedi 12 janvier 2008 12:20, Cranio a ??crit : > > [cut] > > > >> So, I guess, I have projection issues, but I am lost between how to > >> define: > >> - the Mapserver Mapfile projection (now served as epsg:26592) > >> - the single layers in mapfiles projections (now undeclared) > >> - the Openlayers map projection (I believe that, now in my test > >> programs, it is default epsg:4632) > >> > >> to have Google or Yahoo WMS maps correctly line up with mine. > >> Any help appreciated and sorry for the newbie question :) > > > > Hi, > > > > You need to use 'SphericalMercator' parameter in your map option and in > > your > > google options, See http://trac.openlayers.org/wiki/SphericalMercator for > > correct information ;) > > > > Y. > > -- > > Yves Jacolin > > ------------- > > http://yjacolin.gloobe.org > > http://softlibre.gloobe.org > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users -- Yves Jacolin ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From eric.c2c at gmail.com Sat Jan 12 08:40:25 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <200801112221.36635.plists@prometheus.org.yu> References: <200801091318.39631.plists@prometheus.org.yu> <200801111449.21666.plists@prometheus.org.yu> <5ec103de0801110849l221f6518m7ebe1eab344c4ff6@mail.gmail.com> <200801112221.36635.plists@prometheus.org.yu> Message-ID: <5ec103de0801120540x4e0a6f03vd8ded7d8563bdcf8@mail.gmail.com> On Jan 11, 2008 10:21 PM, Attila Csipa wrote: > Yes, I outdid myself with the parentheses, sorry about that. The code: > > var drag = new OpenLayers.Control.DragFeature(pointlayer,{ > onStart: function(feature, pixel) > { > storeGeometry(feature.geometry); > }, > onComplete: function(feature, pixel) > { > processNewGeometry(feature.geometry); > } > }); > > drag.dragHandler.stopDown = false; > map.addControl(drag); > drag.activate(); > map.events.register("click", map, function(e) { > var lonlat = map.getLonLatFromViewPortPx(e.xy); > alert("You clicked near " + lonlat.lat + " N, " + > + lonlat.lon + " E"); > }); > > What I want to do is to preserve 'click' functionality even if the click > happened over a draggable feature. pointlayer is a GML layer containing > features with point geometries. What happens in the svn version is that in > pointlayer.events, Events.js on line 627, after Handler.Drag returns > continueChain = true due to the stopDown property, but on the call to the > next listener (a Handler.Feature), continueChain = false and thus it doesn't > fall through to other elements. I'm still familiarizing myself with OL > structures, so my assessment might be wrong of course... Setting the drag handler's stopDown property to false won't help you because the event you want to get "click" not "mousedown". Anyhow the feature handler (also used in the drag feature control) stops the propagation of clicks that occur on features. That's what kills you here. Currently, there's no way to prevent the feature handler from stopping the propagation of clicks occuring on features. I think this deserves a ticket and a patch. In the meantime, you can try the patch attached to this email. The patch adds the property stopHandledClick to the feature handler. By default, stopHandledClick is set to true. By making it false, clicks occuring on features will propagate. So apply the patch and replace drag.dragHandler.stopDown = false; with drag.featureHandler.stopHandledClick = false; Hope this helps, PS: if you'd like to quickly see this patch included in the trunk, feel free to open a ticket in the trac, complement my patch with tests, and attach the patch to the ticket. That'd be a good first code contribution to OpenLayers ;-) Thanks, -- Eric -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-r5728-feature-handler.diff Type: text/x-patch Size: 3017 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080112/eed6bb29/patch-r5728-feature-handler.bin From snowdrop at ath.forthnet.gr Sat Jan 12 11:10:36 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] show different base layers, depending on zoom level Message-ID: <14775260.post@talk.nabble.com> I would like to have a base layer called 'nomoi' show at startup of my map. and when the user zooms in, display the google maps as base layer and remove nomoi. I don't want Google to be added from the start cause I've defined a specific extent and zoom level for my map, which google doesn't support(has fixed zoom levels). I'm trying to do so by using the following code but it doesn't work. google is being added right from the start. am i wrongly using the if statement? if(!map.getResolution()<0.01373291015625) map.addLayers([satellite, hybrid]); hybrid.setVisibility(true); map.removeLayers([nomoi]); -- View this message in context: http://www.nabble.com/show-different-base-layers%2C-depending-on-zoom-level-tp14775260p14775260.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cranio at quipo.it Sat Jan 12 11:19:13 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Google doesn't line up with other WMS In-Reply-To: <200801121424.17628.yjacolin@free.fr> References: <14772076.post@talk.nabble.com> <200801121226.08840.yjacolin@free.fr> <14773197.post@talk.nabble.com> <200801121424.17628.yjacolin@free.fr> Message-ID: <14775373.post@talk.nabble.com> Yves, on the contrary, you helped me really a lot with your suggestion on the epsg file. The point is, I had to do the following steps: - open spericalmercator layers (based on spherical-mercator.html example) - put ESPG:900913 entry in espg file - mark my map as 4326 and the particular layer i'm working on with its correct epsg (was wrog before) Now everything lines up correctly, there's an offset of about 20-30m in latitude but it's not important for my project for now. Thanks for all the help! Yves Jacolin wrote: > > Hi, > > Did you check that this EPSG code exist in your epsg file? > > Did you adapt your code to the new projection ('SphericalMercator')? > > Sorry, I can not help you so much. > > Y. > Le samedi 12 janvier 2008 14:14, Cranio a ?crit : >> Thanks Yves but still doesn't work. >> >> When sphericalMercator is true, I get wrong centering (but this may be >> to the mismatched proj'n) but I lose also all the drag capabilities, and >> zoom seems to zoom in the wrong area. >> >> Also, my mapfile has this header: >> PROJECTION >> "init=epsg:26592" >> END >> >> If i change it to epsg:900913 (or whatever google uses, I don't remember >> now) >> my map simply won't shop up, with non error. >> >> Any ideas? >> >> Yves Jacolin wrote: >> > Le samedi 12 janvier 2008 12:20, Cranio a ??crit : >> > [cut] >> > >> >> So, I guess, I have projection issues, but I am lost between how to >> >> define: >> >> - the Mapserver Mapfile projection (now served as epsg:26592) >> >> - the single layers in mapfiles projections (now undeclared) >> >> - the Openlayers map projection (I believe that, now in my test >> >> programs, it is default epsg:4632) >> >> >> >> to have Google or Yahoo WMS maps correctly line up with mine. >> >> Any help appreciated and sorry for the newbie question :) >> > >> > Hi, >> > >> > You need to use 'SphericalMercator' parameter in your map option and in >> > your >> > google options, See http://trac.openlayers.org/wiki/SphericalMercator >> for >> > correct information ;) >> > >> > Y. >> > -- >> > Yves Jacolin >> > ------------- >> > http://yjacolin.gloobe.org >> > http://softlibre.gloobe.org >> > _______________________________________________ >> > Users mailing list >> > Users@openlayers.org >> > http://openlayers.org/mailman/listinfo/users > > -- > Yves Jacolin > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Google-doesn%27t-line-up-with-other-WMS-tp14772076p14775373.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Sat Jan 12 12:05:53 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] TileCache works when used through wms layer but not as a TileCache Layer In-Reply-To: <478854D9.8020702@inetnebr.com> References: <475C030D.2020806@inetnebr.com> <6ae3fb590801101023q64e5f4aagd138cb55454ebab8@mail.gmail.com> <6ae3fb590801101149if987ed7td9e7b9940555b695@mail.gmail.com> <478703DF.6020503@inetnebr.com> <20080111131731.GA19664@alta.metacarta.com> <478801C6.3070601@inetnebr.com> <20080112032317.GA967@alta.metacarta.com> <47884CBE.50800@inetnebr.com> <478854D9.8020702@inetnebr.com> Message-ID: <20080112170553.GA18219@alta.metacarta.com> On Fri, Jan 11, 2008 at 11:49:13PM -0600, Lance Dyas wrote: > Nor is the version here updated > http://www.openlayers.org/api/OpenLayers.js Yes, that's the latest release. (2.5, at the time of this writing.) > It seems many of very nice fixes and general improvements > wait quite a while before becoming part of the "latest release" Yes, that's the difference between following trunk and using a release. Welcome to open source software :) Regards, -- Christopher Schmidt MetaCarta From lee_keel at trimble.com Sat Jan 12 16:30:49 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> Hello list. I am having a problem with pink tiles. Configuration: I am using OL 2.5, that I download from the link at http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept 10. Running against Postgres. Problem: I am getting a pink tile from my wms layers in ie, but the problem is that they show at different times. Once the pink tile turns on for that layer, its always there. So for example, one of the layers the pink tile comes on when zoomed to max extents, any other resolution for that layer returns data just fine. But once you have zoomed to max extents and get the pink tile, if you zoom in, the pink tile is there but there is also data. What I have Tried: The layer has no max extents in the map file, nor a max extent when layer is added to OL. I have set all the resolutions and I have removed all the resolutions. I have changed all sorts of settings, but can't seem to find the problem. I have a sample application, that doesn't use ol. I have tested that the data does render through this sample app, so I know the data is coming from mapserver just fine. I am open to any and all recommendations. I was suppose to have this completed yesterday, but this is my last hurdle. Granted it is one big hurdle. Thanks in advance, Lee From aaime at openplans.org Sat Jan 12 17:58:38 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> Message-ID: <4789461E.80406@openplans.org> Lee Keel ha scritto: > Hello list. I am having a problem with pink tiles. > > Configuration: I am using OL 2.5, that I download from the link at > http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept > 10. Running against Postgres. ... > I am open to any and all recommendations. I was suppose to have this > completed yesterday, but this is my last hurdle. Granted it is one > big hurdle. There's a secret setting to solve this issue. Add the following to your openlayers code: OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; This will make OL try to download each tile 5 times before giving up. Should help. Cheers Andrea From crschmidt at metacarta.com Sat Jan 12 18:15:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me In-Reply-To: <4789461E.80406@openplans.org> References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> <4789461E.80406@openplans.org> Message-ID: <20080112231519.GA26255@alta.metacarta.com> On Sat, Jan 12, 2008 at 11:58:38PM +0100, Andrea Aime wrote: > Lee Keel ha scritto: > > Hello list. I am having a problem with pink tiles. > > > > Configuration: I am using OL 2.5, that I download from the link at > > http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept > > 10. Running against Postgres. > ... > > > I am open to any and all recommendations. I was suppose to have this > > completed yesterday, but this is my last hurdle. Granted it is one > > big hurdle. > > There's a secret setting to solve this issue. Add the following to > your openlayers code: > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; > > This will make OL try to download each tile 5 times before giving > up. Should help. "Secret"? I hope it's not secret -- what can we do to make it less secret? Regards, -- Christopher Schmidt MetaCarta From aaime at openplans.org Sat Jan 12 18:31:43 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me In-Reply-To: <20080112231519.GA26255@alta.metacarta.com> References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> <4789461E.80406@openplans.org> <20080112231519.GA26255@alta.metacarta.com> Message-ID: <47894DDF.9030902@openplans.org> Christopher Schmidt ha scritto: > On Sat, Jan 12, 2008 at 11:58:38PM +0100, Andrea Aime wrote: >> Lee Keel ha scritto: >>> Hello list. I am having a problem with pink tiles. >>> >>> Configuration: I am using OL 2.5, that I download from the link at >>> http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept >>> 10. Running against Postgres. >> ... >> >>> I am open to any and all recommendations. I was suppose to have this >>> completed yesterday, but this is my last hurdle. Granted it is one >>> big hurdle. >> There's a secret setting to solve this issue. Add the following to >> your openlayers code: >> OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; >> >> This will make OL try to download each tile 5 times before giving >> up. Should help. > > "Secret"? I hope it's not secret -- what can we do to make it less > secret? Ha ha, mine was a bit of irony, I know it's not secret, but the pink tile issue is common when using OL without a tilecache, and it took me some time to find it as well (I think I hunted down the problem with google and nabble, not sure). I guess two things might help: * make a pinktile.html example that people will surely look at when... they see pink tiles * document the setting in the faq maybe :) Cheers Andrea From plists at prometheus.org.yu Sat Jan 12 20:02:18 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Controls and map events In-Reply-To: <5ec103de0801120540x4e0a6f03vd8ded7d8563bdcf8@mail.gmail.com> References: <200801091318.39631.plists@prometheus.org.yu> <200801112221.36635.plists@prometheus.org.yu> <5ec103de0801120540x4e0a6f03vd8ded7d8563bdcf8@mail.gmail.com> Message-ID: <200801130202.18475.plists@prometheus.org.yu> On Saturday 12 January 2008 14:40:25 Eric Lemoine wrote: > Setting the drag handler's stopDown property to false won't help you > because the event you want to get "click" not "mousedown". Anyhow the D'oh, right ! (this is where slight forehead slapping takes place on my part). > So apply the patch and replace > drag.dragHandler.stopDown = false; > with > drag.featureHandler.stopHandledClick = false; > Hope this helps, Works like a charm. > PS: if you'd like to quickly see this patch included in the trunk, > feel free to open a ticket in the trac, complement my patch with > tests, and attach the patch to the ticket. That'd be a good first code > contribution to OpenLayers ;-) Fair enough ;-) Submitted and awaiting review ! http://trac.openlayers.org/ticket/1266 From eric.c2c at gmail.com Sun Jan 13 09:28:45 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Possible pink tile fix In-Reply-To: <4787B1AA.6030202@refractions.net> References: <4787B1AA.6030202@refractions.net> Message-ID: <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> On Jan 11, 2008 7:12 PM, Ben Brehmer wrote: > Hello all, > > I just wanted to throw this out there as it might be useful to others; > We'd been having some problems with pink tiles, even with > IMAGE_RELOAD_ATTEMPTS set to a large number (10). The tile reload would > max out and the tile still wouldn't load properly in IE6 & 7. But adding > a dynamic dummy parameter to the problem images' URL seems to have > solved the problem. > > In the Util.js::onImageLoadError() function we simply modify the src of > the tile: > > var tmp_src = this.src; > this.src = tmp_src+"&retry="+this._attempts; > > This allows you to monitor how many times an image fails to load from > your server logs as well. Ben, Thanks for sharing this thing. Was your problem related to some cache effect in IE? -- Eric From lee_keel at trimble.com Sun Jan 13 13:25:02 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> <4789461E.80406@openplans.org> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C14@usd-am-xch-01.am.trimblecorp.net> ________________________________ From: Andrea Aime [mailto:aaime@openplans.org] > Lee Keel ha scritto: > > Hello list. I am having a problem with pink tiles. > > > > Configuration: I am using OL 2.5, that I download from the link at > > http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept > > 10. Running against Postgres. > > ... > > > > I am open to any and all recommendations. I was suppose to have this > > completed yesterday, but this is my last hurdle. Granted it is one > > big hurdle. > > There's a secret setting to solve this issue. Add the following to > your openlayers code: > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; > > This will make OL try to download each tile 5 times before giving > up. Should help. > > Cheers > Andrea This did not fix my problem. I have set this to as high as 10 and it still did not help. Any more ideas? From lee_keel at trimble.com Sun Jan 13 13:28:21 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><4789461E.80406@openplans.org> <944DCD961F4CD649BCEBB52E3C929F6501863C14@usd-am-xch-01.am.trimblecorp.net> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C15@usd-am-xch-01.am.trimblecorp.net> And just to add to this, I do have other layers that I don't get any data for. All I get from the layer is 1 big pink tile. ________________________________ From: users-bounces@openlayers.org on behalf of Lee Keel Sent: Sun 1/13/2008 12:25 PM To: Andrea Aime Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me ________________________________ From: Andrea Aime [mailto:aaime@openplans.org] > Lee Keel ha scritto: > > Hello list. I am having a problem with pink tiles. > > > > Configuration: I am using OL 2.5, that I download from the link at > > http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept > > 10. Running against Postgres. > > ... > > > > I am open to any and all recommendations. I was suppose to have this > > completed yesterday, but this is my last hurdle. Granted it is one > > big hurdle. > > There's a secret setting to solve this issue. Add the following to > your openlayers code: > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; > > This will make OL try to download each tile 5 times before giving > up. Should help. > > Cheers > Andrea This did not fix my problem. I have set this to as high as 10 and it still did not help. Any more ideas? _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From snowdrop at ath.forthnet.gr Sun Jan 13 13:47:14 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer Message-ID: <14789355.post@talk.nabble.com> I'm trying to display a different base layer, depending on zoom levels. I use the following code: map.events.register("zoomend", map, function() { if (map.getZoom()>0) { if (map.getNumLayers()<5) { map.addLayers([satellite, hybrid]); //map.setBaseLayer(satellite]); map.removeLayer(nomoi); } } else { map.removeLayer(satellite); map.removeLayer(hybrid); map.addLayer(nomoi); } }); the above works well when you zoom in and out the map, but if you get to the extents of the map (zoomlevel:0) when else code executes, then if you try to zoom again in the map, the code stops working and I see in Firefly that the problem is: this.pane has no properties [Break on this error] this.pane.style.zIndex = parseInt(this.div.style.zIndex) + 1; moreover when I try changing the baseLayer as well with //map.setBaseLayer(satellite]); this works but the whole behavior of layer switcher is altered. I can't no longer switch between different baselayers from layer switcher. when i click on a layer, the whole map pans help please! -- View this message in context: http://www.nabble.com/add%2C-remove-base-layers-depending-on-zoom%2C-change-baselayer-tp14789355p14789355.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From plists at prometheus.org.yu Sun Jan 13 14:25:23 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer In-Reply-To: <14789355.post@talk.nabble.com> References: <14789355.post@talk.nabble.com> Message-ID: <200801132025.23464.plists@prometheus.org.yu> On Sunday 13 January 2008 19:47:14 Maria Panagou wrote: > I'm trying to display a different base layer, depending on zoom levels. I > use the following code: My first idea would be to put all layers that are referenced (regardless of zoom level) in my map and then just change their properties to hide/show the ones that are applicable to the given zoom level. See the Layer.displayInLayerSwitcher and Layer.visible properties. From lee_keel at trimble.com Sun Jan 13 22:27:32 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><4789461E.80406@openplans.org> <944DCD961F4CD649BCEBB52E3C929F6501863C14@usd-am-xch-01.am.trimblecorp.net> <944DCD961F4CD649BCEBB52E3C929F6501863C15@usd-am-xch-01.am.trimblecorp.net> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C16@usd-am-xch-01.am.trimblecorp.net> From: Andrea Aime [mailto:aaime@openplans.org] > Lee Keel ha scritto: > > Hello list. I am having a problem with pink tiles. > > > > Configuration: I am using OL 2.5, that I download from the link at > > http://www.openlayers.org/api/OpenLayers.js, with ms4w beta from Sept > > 10. Running against Postgres. > > ... > > > > I am open to any and all recommendations. I was suppose to have this > > completed yesterday, but this is my last hurdle. Granted it is one > > big hurdle. > > There's a secret setting to solve this issue. Add the following to > your openlayers code: > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; > > This will make OL try to download each tile 5 times before giving > up. Should help. > > Cheers > Andrea Some more information..... In Firefox, the data does not show at all. I took the url that is being used to request the data and I get an error for that request. The error I get is: The specified CGI application misbehaved by not returning a complete set of HTTP headers. But I know that mapserver is serving the data correctly because I can see it in ie and in my sample app using ff. -LK From jachym.cepicky at gmail.com Mon Jan 14 08:11:09 2008 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator Message-ID: <1200316269.6451.24.camel@kocour> Hi, I would like to display GML vector layer in epsg:4326 on top of WMS Layer in epsg:900913. The map is initialized like var options = { maxExtent: new OpenLayers.Bounds(1150000, 6100000, 2500000, 6600000), maxResolution: "auto", projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326") }; map = new OpenLayers.Map("map", options); var topo = new OpenLayers.Layer.WMS( "Topo", http://www.bnhelp.cz/cgi-bin/crtopo2", {layers:'doprava',format:"image/gif"}, {group:"base",sphericalMercator:true}); // the vector map definition var vector = new OpenLayers.Layer.GML("Vector","gml.xml"); When I try to initialize the map, the vector layer is not drawed, because of the coordinates are in different projection. Q1: Is there some option, which would force the vector layer, that it's feature will be recalculated from wgs84 to sphericalmercator, if the base layer would be in spherical mercator ? ---- Then I tried to redefine preFeatureInsert method of OpenLayers.Layer.Vector, to get coordinates for all features in epsg:900913 preFeatureInsert = function(feature) { for (var i = 0; i < feature.geometry.components.length; i++) { var x = feature.geometry.components[i].x; var y = feature.geometry.components[i].y; var ll = kolo.forwardMercator(x,y); x = x * 20037508.34 / 180; y = Math.log(Math.tan((90 + y) * Math.PI / 360)) / (Math.PI / 180); y = y * 20037508.34 / 180; feature.geometry.components[i].x = x; feature.geometry.components[i].y = y; } }; // the vector map definition var vector = new OpenLayers.Layer.GML("Vector","gml.xml", {preFeatureInsert:preFeatureInsert}); When I then redraw the map, no vector features are displayed. But when I check the "vector" layer object with Firebug, the vector features do have coordinates in epsg:900913 and the values do look reasonable. Q2: What do I wrong? Is there some better method, how to reproject vector features from wgs84 to epsg:900913? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080114/61e71f2f/attachment.bin From jachym.cepicky at gmail.com Mon Jan 14 09:56:05 2008 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator In-Reply-To: <1200316269.6451.24.camel@kocour> References: <1200316269.6451.24.camel@kocour> Message-ID: <1200322565.6451.31.camel@kocour> Hi, Jachym Cepicky p??e v Po 14. 01. 2008 v 14:11 +0100: > [...] > > Then I tried to redefine preFeatureInsert method of OpenLayers.Layer.Vector, to get coordinates > for all features in epsg:900913 > > preFeatureInsert = function(feature) { > for (var i = 0; i < feature.geometry.components.length; i++) { > var x = feature.geometry.components[i].x; > var y = feature.geometry.components[i].y; > var ll = kolo.forwardMercator(x,y); > > x = x * 20037508.34 / 180; > y = Math.log(Math.tan((90 + y) * Math.PI / 360)) / (Math.PI / 180); > > y = y * 20037508.34 / 180; > > feature.geometry.components[i].x = x; > feature.geometry.components[i].y = y; > > } > }; > > // the vector map definition > > var vector = new OpenLayers.Layer.GML("Vector","gml.xml", > {preFeatureInsert:preFeatureInsert}); > this works. the error was somewhere else j -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080114/b139b71b/attachment.bin From madair at dmsolutions.ca Mon Jan 14 10:09:46 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator In-Reply-To: <1200322565.6451.31.camel@kocour> References: <1200316269.6451.24.camel@kocour> <1200322565.6451.31.camel@kocour> Message-ID: <478B7B3A.5060203@dmsolutions.ca> Note that this should work too, and allows you to handle points in coordinate systems other than EPSG:4326: - include proj4js in your app via the ... REST OF JOOMLA CODE ... Another 2 questions: - I figured out mapExtent by trial and error, but which is the projection the coords refer to? They seem to be wrong. - Why are coords and the google logo on the upper left corner? -- View this message in context: http://www.nabble.com/Google-layer-not-centering-well-%2B-minor-things-tp14803541p14803541.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jachym.cepicky at gmail.com Mon Jan 14 10:17:53 2008 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:16:01 2010 Subject: [OpenLayers-Users] reprojection of vector layer from wgs84 to sphericalmercator In-Reply-To: <478B7B3A.5060203@dmsolutions.ca> References: <1200316269.6451.24.camel@kocour> <1200322565.6451.31.camel@kocour> <478B7B3A.5060203@dmsolutions.ca> Message-ID: <1200323873.6451.33.camel@kocour> Nice one, I heard about proj4js, thought never used it Thanks for this hint Jachym Mike Adair p??e v Po 14. 01. 2008 v 10:09 -0500: > Note that this should work too, and allows you to handle points in > coordinate systems other than EPSG:4326: > > - include proj4js in your app via the > > > > > >

OpenLayers With Google Layer Example

>
>
value="redraw" />
> > > ----------->8--------------------------------------------------------------------------------- > > Thanks for your help! > > Regards, > > O. Baum > From alim.karim at gmail.com Wed Jan 16 12:38:55 2008 From: alim.karim at gmail.com (alim karim) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] APP format Message-ID: hello list. does anyone know if the APP format available in OL 2.5? i don't see it in the api docs, but it looks like it APP.js was added to the repository at some point. perhaps it was added to a branch that i am unaware of? any info appreciated. thanks. From crschmidt at metacarta.com Wed Jan 16 12:46:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] APP format In-Reply-To: References: Message-ID: <20080116174623.GA656@alta.metacarta.com> On Wed, Jan 16, 2008 at 09:38:55AM -0800, alim karim wrote: > hello list. > > does anyone know if the APP format available in OL 2.5? It's not. The code was a demo, I never cared to maintain it, and it didn't actually work. It was in a branch at one point, but starting from that code at this point gains you very little (since it was a fork of the older GeoRSS layer) and there was no serious thought put into the implementation. APP is a 'protocol' -- Protocols shouldn't be implemented by formats. Protocols are implemented by layers, building on top of (in this case) the GeoRSS format. So, I would recommend that if you want to pursue APP, you should do it seperately from that code. Regards, -- Christopher Schmidt MetaCarta From snowdrop at ath.forthnet.gr Wed Jan 16 13:38:33 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> Message-ID: <14888247.post@talk.nabble.com> thanks for your hint. when i remove MIN_ZOOM_LEVEL, the problem disappears. What now? I really need to use MIN_ZOOM_LEVEL. Eric Lemoine-3 wrote: > > On Jan 15, 2008 10:04 PM, Maria Panagou wrote: >> > > > Do you have the same problem if you remove the MIN_ZOOM_LEVEL and/or > maxExtent settings? > > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/google-layer-zoom-tp14847416p14888247.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From snowdrop at ath.forthnet.gr Wed Jan 16 14:52:41 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <14888247.post@talk.nabble.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> Message-ID: <14890739.post@talk.nabble.com> I found out that it's a bug in OL after all, which can be fixed with a patch attached to this ticket -- View this message in context: http://www.nabble.com/google-layer-zoom-tp14847416p14890739.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Wed Jan 16 18:09:14 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <14890739.post@talk.nabble.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> Message-ID: <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> On Jan 16, 2008 8:52 PM, Maria Panagou wrote: > > I found out that it's a bug in OL after all, which can be fixed with a patch > attached to this ticket > > The patch attached to this ticket has already been applied. -- Eric From eric.c2c at gmail.com Wed Jan 16 18:11:32 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <14888247.post@talk.nabble.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> Message-ID: <5ec103de0801161511v37287ae3pd8f699490c6e05bb@mail.gmail.com> On Jan 16, 2008 7:38 PM, Maria Panagou wrote: > > thanks for your hint. when i remove MIN_ZOOM_LEVEL, the problem disappears. > What now? I really need to use MIN_ZOOM_LEVEL. Would that work with the 'numZoomLevels' and 'maxZoomLevel' options. -- Eric From rdewit at users.sourceforge.net Wed Jan 16 23:29:20 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> Message-ID: <1200544160.6353.20.camel@bender> Hi Eric, Maria might not be using the trunk version but most probably 2.5. Is there a daily updated trunk version available on the website to be included in web pages for testing? Roald On Thu, 2008-01-17 at 00:09 +0100, Eric Lemoine wrote: > On Jan 16, 2008 8:52 PM, Maria Panagou wrote: > > > > I found out that it's a bug in OL after all, which can be fixed with a patch > > attached to this ticket > > > > > > The patch attached to this ticket has already been applied. > > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From sdoyle_2 at yahoo.com Thu Jan 17 00:19:32 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon Message-ID: <14910427.post@talk.nabble.com> I'm trying to reconstitute a polygon from points I previously saved from a polygon to the backend. The points are correct and I'm reconstructing by: 1.) Creating an array of Points based on retrieved points. 2.) Creating a LinearRing with the Array of Points 3.) Creating a Polygon with the LinearRing. When I call the DrawFeatures drawFeature method with this Polygon it complains about a node not having parent properties. This is using the same DrawFeature that was used to create the polygon in the first place. Looking at the drawFeature function it creates the Vector based on the passed in geometry then adds the feature to the layer and draws the feature. Any ideas? Thanks, S.D. -- View this message in context: http://www.nabble.com/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14910427.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bluecarto at gmail.com Thu Jan 17 05:47:46 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <14910427.post@talk.nabble.com> References: <14910427.post@talk.nabble.com> Message-ID: I think you are missing one last step : 4.) Creating a Feature.Vector given the created polygon. I may be wrong though. Regards, Pierre On Jan 17, 2008 6:19 AM, samd wrote: > > I'm trying to reconstitute a polygon from points I previously saved from a > polygon to the backend. The points are correct and I'm reconstructing by: > > 1.) Creating an array of Points based on retrieved points. > 2.) Creating a LinearRing with the Array of Points > 3.) Creating a Polygon with the LinearRing. > > When I call the DrawFeatures drawFeature method with this Polygon it > complains about a node not having parent properties. This is using the same > DrawFeature that was used to create the polygon in the first place. Looking > at the drawFeature function it creates the Vector based on the passed in > geometry then adds the feature to the layer and draws the feature. > > Any ideas? > > Thanks, S.D. > -- > View this message in context: http://www.nabble.com/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14910427.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From adams at terrestris.de Thu Jan 17 05:50:54 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial Message-ID: <478F330E.2040304@terrestris.de> dear list, we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? I was googling around for a while and didn't find anything, not on MS Ve developer net or on any openlayers pages. thanks in advance and best regards, Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From crschmidt at metacarta.com Thu Jan 17 07:33:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <1200544160.6353.20.camel@bender> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> <1200544160.6353.20.camel@bender> Message-ID: <20080117123300.GD15082@alta.metacarta.com> On Thu, Jan 17, 2008 at 03:29:20PM +1100, Roald de Wit wrote: > Hi Eric, > > Maria might not be using the trunk version but most probably 2.5. > Is there a daily updated trunk version available on the website to be > included in web pages for testing? You can always *test* with /dev/lib/OpenLayers.js, which is updated every 10 minutes. There is no 'nightly build', because it seems likely to encourage people to deploy against trunk, which I highly discourage. If you're going to test trunk, it's not particularly onoerous to checkout svn, and build your own copy -- and after you do it the first time, it's relatively cheap to do it again. In this way, you get to make the decisino on when it updates -- which means that you can do testing yourself before deploying. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Jan 17 07:36:13 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: References: <14910427.post@talk.nabble.com> Message-ID: <20080117123613.GE15082@alta.metacarta.com> On Thu, Jan 17, 2008 at 11:47:46AM +0100, Pierre GIRAUD wrote: > I think you are missing one last step : > 4.) Creating a Feature.Vector given the created polygon. > > I may be wrong though. You're right, based on the description. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Jan 17 07:40:18 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial In-Reply-To: <478F330E.2040304@terrestris.de> References: <478F330E.2040304@terrestris.de> Message-ID: <20080117124018.GG15082@alta.metacarta.com> On Thu, Jan 17, 2008 at 11:50:54AM +0100, Till Adams wrote: > dear list, > > we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). > > Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? No clue. If you find VirtualEarth documentation for how to connect, then share a link to that, someone might be able to advise how to implement it in OpenLayers. I'm not aware of any comercial VE usage inside OL at this time. Regards, -- Christopher Schmidt MetaCarta From marten.sward at smhi.se Thu Jan 17 07:57:37 2008 From: marten.sward at smhi.se (=?iso-8859-1?Q?Sw=E4rd_M=E5rten?=) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Raise a feature over other features Message-ID: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> Hello folks! If I draw a small polygon on the map and then draws a large one on top of it then I can't edit the small one because the larger one "blocks the way".. So my question is, is there any way to raise a feature above the other features and bring it to the front? Best regards: M?rten ************************************************************************ Mvh: M?rten Sw?rd Systemutvecklare/Webbutvecklare, ITs SMHI, Sveriges Meteorologiska och Hydrologiska Institut Tel: +46 11 495 8469 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080117/e87d9ebb/attachment.html From crschmidt at metacarta.com Thu Jan 17 09:35:39 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Raise a feature over other features In-Reply-To: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> References: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> Message-ID: <20080117143539.GA17813@alta.metacarta.com> On Thu, Jan 17, 2008 at 01:57:37PM +0100, Sw?rd M?rten wrote: > Hello folks! > If I draw a small polygon on the map and then draws a large one on top of it then I can't edit the small one because the larger one "blocks the way".. So my question is, is there any way to raise a feature above the other features and bring it to the front? layer.removeFeatures(lowerFeature) layer.addFeatures(lowerFeature) should put it on top, I think. (I'm not saying this is a good situation, but it should work.) Regards, -- Christopher Schmidt MetaCarta From ivaxoyar at hotmail.com Thu Jan 17 09:40:56 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Raise a feature over other features In-Reply-To: <20080117143539.GA17813@alta.metacarta.com> References: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> <20080117143539.GA17813@alta.metacarta.com> Message-ID: Hi , i've some visualization problem with my map. I have a text layer where all my markers appear with a gray border and they have nbo border. The same happens with the panzoom icon (zoom in and zoom out) and i don't really know what can i do. This happens too with the close box of the popup of the text layr. I don't know if this is something about the images format (they are all in ong) or a configuration problem. I would really appreciate some help. Thanks in advanced!! xavi > Date: Thu, 17 Jan 2008 09:35:39 -0500> To: marten.sward@smhi.se> From: crschmidt@metacarta.com> CC: users@openlayers.org> Subject: Re: [OpenLayers-Users] Raise a feature over other features> > On Thu, Jan 17, 2008 at 01:57:37PM +0100, Sw?rd M?rten wrote:> > Hello folks!> > If I draw a small polygon on the map and then draws a large one on top of it then I can't edit the small one because the larger one "blocks the way".. So my question is, is there any way to raise a feature above the other features and bring it to the front?> > layer.removeFeatures(lowerFeature)> layer.addFeatures(lowerFeature)> > should put it on top, I think.> > (I'm not saying this is a good situation, but it should work.) > > Regards,> -- > Christopher Schmidt> MetaCarta> _______________________________________________> Users mailing list> Users@openlayers.org> http://openlayers.org/mailman/listinfo/users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080117/7311346c/attachment.html From ivaxoyar at hotmail.com Thu Jan 17 09:41:59 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Images problems In-Reply-To: References: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> <20080117143539.GA17813@alta.metacarta.com> Message-ID: Sorry I sent it in a wrong way...Hi ,i've some visualization problem with my map. I have a text layer where all my markers appear with a gray border and they have nbo border. The same happens with the panzoom icon (zoom in and zoom out) and i don't really know what can i do. This happens too with the close box of the popup of the text layr. I don't know if this is something about the images format (they are all in ong) or a configuration problem. I would really appreciate some help. Thanks in advanced!! xavi _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080117/eaa606d7/attachment.html From euzuro at gmail.com Thu Jan 17 10:18:39 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Images problems In-Reply-To: References: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> <20080117143539.GA17813@alta.metacarta.com> Message-ID: <6ae3fb590801170718i4f00553alb35b9153f89e81b5@mail.gmail.com> Sounds to me like maybe you are including a stylesheet with img { border: 1px solid grey } somewhere... install firebug* and then open the page on your browser. click on the little green dot in the bottom righthand corner to bring up firebug. click on "inspect" button in the upper left of the firebug window and then select one of the images with the grey border. firebug will show you the element in your html tree and in the righthand pane, it will show you the full css hierarchy for rendering the element. my guess is that you will find the above somewhere in that pane. * http://www.getfirebug.com On 1/17/08, Xavier Rayo wrote: > Sorry I sent it in a wrong way... > > > > Hi , > i've some visualization problem with my map. I have a text layer where all > my markers appear with a gray border and they have nbo border. The same > happens with the panzoom icon (zoom in and zoom out) and i don't really know > what can i do. This happens too with the close box of the popup of the text > layr. I don't know if this is something about the images format (they are > all in ong) or a configuration problem. I would really appreciate some help. > Thanks in advanced!! > > xavi > > ________________________________ > Express yourself instantly with MSN Messenger! MSN Messenger > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From ivaxoyar at hotmail.com Thu Jan 17 11:12:37 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Images problems In-Reply-To: <6ae3fb590801170718i4f00553alb35b9153f89e81b5@mail.gmail.com> References: <575A94F91D20704387D1C69A913E95EE0131DFCD@CORRE.ad.smhi.se> <20080117143539.GA17813@alta.metacarta.com> <6ae3fb590801170718i4f00553alb35b9153f89e81b5@mail.gmail.com> Message-ID: Thanks! i'm working on a web page with different stylesheets and there were interferences trough the stylesheet of my map and the others. THANKS AGAIN!!! XAVI > Date: Thu, 17 Jan 2008 09:18:39 -0600> From: euzuro@gmail.com> To: ivaxoyar@hotmail.com> Subject: Re: [OpenLayers-Users] Images problems> CC: crschmidt@metacarta.com; marten.sward@smhi.se; users@openlayers.org> > Sounds to me like maybe you are including a stylesheet with> > img {> > border: 1px solid grey> }> > > somewhere...> > install firebug* and then open the page on your browser. click on the> little green dot in the bottom righthand corner to bring up firebug.> click on "inspect" button in the upper left of the firebug window and> then select one of the images with the grey border. firebug will show> you the element in your html tree and in the righthand pane, it will> show you the full css hierarchy for rendering the element. my guess is> that you will find the above somewhere in that pane.> > > * http://www.getfirebug.com> > > On 1/17/08, Xavier Rayo wrote:> > Sorry I sent it in a wrong way...> >> >> >> > Hi ,> > i've some visualization problem with my map. I have a text layer where all> > my markers appear with a gray border and they have nbo border. The same> > happens with the panzoom icon (zoom in and zoom out) and i don't really know> > what can i do. This happens too with the close box of the popup of the text> > layr. I don't know if this is something about the images format (they are> > all in ong) or a configuration problem. I would really appreciate some help.> > Thanks in advanced!!> >> > xavi> >> > ________________________________> > Express yourself instantly with MSN Messenger! MSN Messenger> > _______________________________________________> > Users mailing list> > Users@openlayers.org> > http://openlayers.org/mailman/listinfo/users> >> > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080117/dd4b4f1f/attachment.html From cranio at quipo.it Thu Jan 17 12:37:18 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Which coord system?? Message-ID: <14925678.post@talk.nabble.com> Hi folks. Sorry for all these questions, I hope not to annoy anyone... Someone is able to tell me (giving a look to the JavaScript code, it's really short), what is the system that the coords shown on screen refer to? http://marti.homelinux.net/mymap.php It seems not Gauss-Boaga (epsg:26592), nor UTM33. I need really to know it because I need to place markers based on some UTM33 coords I have in a database. Mayble Google one? (epsg:900913) And how do I convert between systems? I've set map extent by trial and error, but I cannot do it for the markers because it will take time and nothing guarantees me that it is a linear transformation, right? Thanks in advance :) -- View this message in context: http://www.nabble.com/Which-coord-system---tp14925678p14925678.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdoyle_2 at yahoo.com Thu Jan 17 13:25:09 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <20080117123613.GE15082@alta.metacarta.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> Message-ID: <14927690.post@talk.nabble.com> Hi, I originally had thought this but looking at the drawFeature function of OpenLayers.Control.DrawFeature on wiki it creates it. drawFeature: function(geometry) { var feature = new OpenLayers.Feature.Vector(geometry); this.layer.addFeatures([feature]); this.featureAdded(feature); }, So here is my code. var polygonAreaPoints = incidents[i].areaPoints; var pointArray = new Array(); for ( var j = 0; j < polygonAreaPoints.length; j++ ) { var x = polygonAreaPoints[j].x; var y = polygonAreaPoints[j].y; pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); } // Create the linear ring var ring = new OpenLayers.Geometry.LinearRing( pointArray ); // Create the polygon var feature = new OpenLayers.Geometry.Polygon( ring ); drawFeature.drawFeature( feature ); Where drawFeature is: var drawFeature = new OpenLayers.Control.DrawFeature(polygonLayer, OpenLayers.Handler.Polygon, {handlerOptions: {'freehand': false}, 'displayClass': 'olControlDrawFeaturePolygon'}); Thanks, S.D. Christopher Schmidt-4 wrote: > > On Thu, Jan 17, 2008 at 11:47:46AM +0100, Pierre GIRAUD wrote: >> I think you are missing one last step : >> 4.) Creating a Feature.Vector given the created polygon. >> >> I may be wrong though. > > You're right, based on the description. > > 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/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14927690.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Thu Jan 17 13:30:33 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <14927690.post@talk.nabble.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> <14927690.post@talk.nabble.com> Message-ID: <20080117183033.GA20998@alta.metacarta.com> On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: > > Hi, I originally had thought this but looking at the drawFeature function of > OpenLayers.Control.DrawFeature on wiki it creates it. Um. I don't know what you're trying to do, but using the drawFeature control to add features to your layer is not the right solution. > var polygonAreaPoints = incidents[i].areaPoints; > var pointArray = new Array(); > > for ( var j = 0; j < polygonAreaPoints.length; j++ ) > { > var x = polygonAreaPoints[j].x; > var y = polygonAreaPoints[j].y; > > pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); > } > > // Create the linear ring > var ring = new OpenLayers.Geometry.LinearRing( pointArray ); > > // Create the polygon > var feature = new OpenLayers.Geometry.Polygon( ring ); -> now do this: var f = new OpenLayers.Feature.Vector(feature); layer.addFeatures(f); where layer is a Layer.Vector which has been added to your map. Regards, -- Christopher Schmidt MetaCarta From sdoyle_2 at yahoo.com Thu Jan 17 14:13:14 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <20080117183033.GA20998@alta.metacarta.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> <14927690.post@talk.nabble.com> <20080117183033.GA20998@alta.metacarta.com> Message-ID: <14929765.post@talk.nabble.com> Excellent Chris, thanks this worked. S.D. Christopher Schmidt-4 wrote: > > On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: >> >> Hi, I originally had thought this but looking at the drawFeature function >> of >> OpenLayers.Control.DrawFeature on wiki it creates it. > > Um. I don't know what you're trying to do, but using the drawFeature > control to add features to your layer is not the right solution. > >> var polygonAreaPoints = incidents[i].areaPoints; >> var pointArray = new Array(); >> >> for ( var j = 0; j < polygonAreaPoints.length; j++ ) >> { >> var x = polygonAreaPoints[j].x; >> var y = polygonAreaPoints[j].y; >> >> pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); >> } >> >> // Create the linear ring >> var ring = new OpenLayers.Geometry.LinearRing( pointArray ); >> >> // Create the polygon >> var feature = new OpenLayers.Geometry.Polygon( ring ); > -> now do this: > var f = new OpenLayers.Feature.Vector(feature); > layer.addFeatures(f); > > where layer is a Layer.Vector which has been added to your map. > > 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/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14929765.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From chris23oconnor at gmail.com Thu Jan 17 15:04:58 2008 From: chris23oconnor at gmail.com (Chris O'Connor) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Help in updating WFS features Message-ID: <1ef64b970801171204m420f6ac6xecff133c2b771ce8@mail.gmail.com> Hello, I am doing a mapping project at college where I am adding routes onto a map and generating a route card. I am able to add the route (line) to the POSTGIS database no problem via Geoserver. The area I'm having a problem is on the update or modification of the line. Below is the relevant code and the POST requests generated by both requests. From what I can see it is the typeName="features" which is causing me the problem as I think it should be typeName="routes". Am I right in thinking this is what most likely the problem is and how do I change this for the request, I have tried putting typeName in several places but to no avail. Any help would be most appreciated. Chris O'Connor routes = new OpenLayers.Layer.WFS( "Routes", " http://localhost:8080/geoserver/wfs", {typename: 'routes:routes'},{ maxExtent: bounds,typename:'routes',extractAttributes: false}); // Map Layer 7 routes.setVisibility(true); routes.style.strokeColor='#ff0000'; routes.style.strokeOpacity=0.3; routes.style.strokeWidth=5; map.addLayer(routes); var options = {handlerOptions: {freehand: false}}; df = new OpenLayers.Control.DrawFeature(routes,OpenLayers.Handler.Path, options); df.featureAdded = function(feature) { feature.state = OpenLayers.State.INSERT; feature.style['strokeColor'] = "#ff00ff"; feature.style['strokeWidth']=5; feature.style['strokeOpacity']= 0.3; feature.layer.drawFeature(feature); map.layers[7].commit(); map.layers[7].refresh(); }; ef = new OpenLayers.Control.ModifyFeature(routes,{typeName:'routes'}); ef.onModificationEnd=function(feature){ feature.state = OpenLayers.State.UPDATE; feature.style['strokeColor'] = "#ffff00"; feature.style['strokeWidth']=5; feature.style['strokeOpacity']= 0.3; feature.layer.drawFeature(feature); map.layers[7].commit(); map.layers[7].refresh(); }; Add request generated 310027.2265275199,222116 .6655236673 309321.6713529641,221058.33276183365 Update request generated the_geom310027.22652752,222116.66552367 310521.11514970666 ,220881.94396819445 309321.67135296,221058.33276183 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080117/a9fabfec/attachment.html From snowdrop at ath.forthnet.gr Thu Jan 17 15:12:19 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <20080117123300.GD15082@alta.metacarta.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> <1200544160.6353.20.camel@bender> <20080117123300.GD15082@alta.metacarta.com> Message-ID: <14931617.post@talk.nabble.com> thanks for all this info. I am using Openlayers 2.5, no trunk version. what is svn? -- View this message in context: http://www.nabble.com/google-layer-zoom-tp14847416p14931617.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdoyle_2 at yahoo.com Thu Jan 17 16:52:26 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <20080117183033.GA20998@alta.metacarta.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> <14927690.post@talk.nabble.com> <20080117183033.GA20998@alta.metacarta.com> Message-ID: <14934888.post@talk.nabble.com> Apologies but I'm now encountering the same error at a later stage with the SelectFeature. So after doing what you suggested the polygons do render but mousing over to select the polygon results in the same node.parentNode has no properties error. I have even attempted to destroy the SelectFeature and recreate it after the points are retrieved as shown in the following. // Create the linear ring var ring = new OpenLayers.Geometry.LinearRing( pointArray ); // Create the polygon var feature = new OpenLayers.Geometry.Polygon( ring ); var f = new OpenLayers.Feature.Vector(feature); polygonLayer.addFeatures( f ); // The polygons have been rendered on the map so now recreate the SelectFeature even though // this should not be required. map.removeControl( selectControl ); selectControl.destroy(); selectControl = new OpenLayers.Control.SelectFeature(polygonLayer, {hover: true, onSelect: polySelected}) map.addControl( selectControl ); selectControl.activate(); Thanks once again, S.D. Christopher Schmidt-4 wrote: > > On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: >> >> Hi, I originally had thought this but looking at the drawFeature function >> of >> OpenLayers.Control.DrawFeature on wiki it creates it. > > Um. I don't know what you're trying to do, but using the drawFeature > control to add features to your layer is not the right solution. > >> var polygonAreaPoints = incidents[i].areaPoints; >> var pointArray = new Array(); >> >> for ( var j = 0; j < polygonAreaPoints.length; j++ ) >> { >> var x = polygonAreaPoints[j].x; >> var y = polygonAreaPoints[j].y; >> >> pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); >> } >> >> // Create the linear ring >> var ring = new OpenLayers.Geometry.LinearRing( pointArray ); >> >> // Create the polygon >> var feature = new OpenLayers.Geometry.Polygon( ring ); > -> now do this: > var f = new OpenLayers.Feature.Vector(feature); > layer.addFeatures(f); > > where layer is a Layer.Vector which has been added to your map. > > 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/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14934888.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdoyle_2 at yahoo.com Thu Jan 17 16:57:38 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <14934888.post@talk.nabble.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> <14927690.post@talk.nabble.com> <20080117183033.GA20998@alta.metacarta.com> <14934888.post@talk.nabble.com> Message-ID: <14934891.post@talk.nabble.com> One more thing, I have built the source uncompressed in the hopes to be able to step debug using Firebug but the version from svn when built tells me that rendering is not supported in my browser even though I am using Firefox. S.D. samd wrote: > > Apologies but I'm now encountering the same error at a later stage with > the SelectFeature. So after doing what you suggested the polygons do > render but mousing over to select the polygon results in the same > node.parentNode has no properties error. I have even attempted to destroy > the SelectFeature and recreate it after the points are retrieved as shown > in the following. > > // Create the linear ring > var ring = new OpenLayers.Geometry.LinearRing( pointArray ); > > // Create the polygon > var feature = new OpenLayers.Geometry.Polygon( ring ); > > var f = new OpenLayers.Feature.Vector(feature); > polygonLayer.addFeatures( f ); > > // The polygons have been rendered on the map so now recreate the > SelectFeature even though > // this should not be required. > > map.removeControl( selectControl ); > selectControl.destroy(); > selectControl = new > OpenLayers.Control.SelectFeature(polygonLayer, > {hover: true, > onSelect: > polySelected}) > map.addControl( selectControl ); > selectControl.activate(); > > Thanks once again, S.D. > > > Christopher Schmidt-4 wrote: >> >> On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: >>> >>> Hi, I originally had thought this but looking at the drawFeature >>> function of >>> OpenLayers.Control.DrawFeature on wiki it creates it. >> >> Um. I don't know what you're trying to do, but using the drawFeature >> control to add features to your layer is not the right solution. >> >>> var polygonAreaPoints = incidents[i].areaPoints; >>> var pointArray = new Array(); >>> >>> for ( var j = 0; j < polygonAreaPoints.length; j++ ) >>> { >>> var x = polygonAreaPoints[j].x; >>> var y = polygonAreaPoints[j].y; >>> >>> pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); >>> } >>> >>> // Create the linear ring >>> var ring = new OpenLayers.Geometry.LinearRing( pointArray ); >>> >>> // Create the polygon >>> var feature = new OpenLayers.Geometry.Polygon( ring ); >> -> now do this: >> var f = new OpenLayers.Feature.Vector(feature); >> layer.addFeatures(f); >> >> where layer is a Layer.Vector which has been added to your map. >> >> 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/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14934891.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rdewit at users.sourceforge.net Thu Jan 17 17:36:56 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <14931617.post@talk.nabble.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> <1200544160.6353.20.camel@bender> <20080117123300.GD15082@alta.metacarta.com> <14931617.post@talk.nabble.com> Message-ID: <1200609416.6353.30.camel@bender> Hi Maria, The whole discussion before comes down to: the problem you described is (most probably) fixed in the development version of OL. You can do a few things from here: 1) Wait until 2.6 is released (can be few months from now) or 2) See if your problem really is solved by looking at the latest development version (this version could break other things, so your mileage may vary) You can do this by loading the following OL instead of 2.5: http://openlayers.org/dev/lib/OpenLayers.js (will take some time to load, since a lot of files need to be fetched) I hope this helps you. Kind regards, Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From rdewit at users.sourceforge.net Thu Jan 17 17:42:20 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon In-Reply-To: <14934891.post@talk.nabble.com> References: <14910427.post@talk.nabble.com> <20080117123613.GE15082@alta.metacarta.com> <14927690.post@talk.nabble.com> <20080117183033.GA20998@alta.metacarta.com> <14934888.post@talk.nabble.com> <14934891.post@talk.nabble.com> Message-ID: <1200609740.6353.33.camel@bender> Hi Sam, On Thu, 2008-01-17 at 13:57 -0800, samd wrote: > One more thing, I have built the source uncompressed in the hopes to be able > to step debug using Firebug but the version from svn when built tells me > that rendering is not supported in my browser even though I am using > Firefox. > You need to create a full build to include that support: ./buildUncompressed.py full That should do the trick. Greetings, Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From crschmidt at metacarta.com Thu Jan 17 20:32:15 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] google layer zoom In-Reply-To: <14931617.post@talk.nabble.com> References: <14847416.post@talk.nabble.com> <5ec103de0801152142y5f3ac8a1u2665557e0f61ccd5@mail.gmail.com> <14888247.post@talk.nabble.com> <14890739.post@talk.nabble.com> <5ec103de0801161509p1b1c405fke088d4d58b4c844@mail.gmail.com> <1200544160.6353.20.camel@bender> <20080117123300.GD15082@alta.metacarta.com> <14931617.post@talk.nabble.com> Message-ID: <20080118013214.GA25209@alta.metacarta.com> On Thu, Jan 17, 2008 at 12:12:19PM -0800, Maria Panagou wrote: > > thanks for all this info. I am using Openlayers 2.5, no trunk version. what > is svn? 'svn' is 'Subversion', a revision control system that allows you to download the latest 'development' version of the code. I would recommend that you do as Roald suggested, and instead use http://openlayers.org/dev/lib/OpenLayers.js to test whether your issue is fixed. If so, and you need a fix now (rather than waiting for 2.6), then we can proceed with building a local copy of OpenLayers. Regards, -- Christopher Schmidt MetaCarta From sdoyle_2 at yahoo.com Thu Jan 17 22:56:43 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Selecting polygon error. Message-ID: <14946220.post@talk.nabble.com> Hi I was discussing this in a previous message but created a new one since it is a different topic. When I am using a select control on a polygonLayer such as the following: selectControl = new OpenLayers.Control.SelectFeature(polygonLayer, {hover: true, onSelect: polySelected, onUnselect: polyUnselected}) map.addControl( selectControl ); selectControl.activate(); And I regenerate a polygon from points retrieved from the server such as the following: for ( var j = 0; j < polygonAreaPoints.length; j++ ) { var x = polygonAreaPoints[j].x; var y = polygonAreaPoints[j].y; pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); } // Create the linear ring var ring = new OpenLayers.Geometry.LinearRing( pointArray ); // Create the polygon var feature = new OpenLayers.Geometry.Polygon( ring ); var f = new OpenLayers.Feature.Vector(feature); polygonLayer.addFeatures( f ); The SelectFeature generates the following error on hover: node.parentNode has no properties Tracing in Firebug the error occurs here in the OpenLayers.Renderer.Elements class nodeFactory: function(id, type) { var node = OpenLayers.Util.getElement(id); if (node) { if (!this.nodeTypeCompare(node, type)) { node.parentNode.removeChild(node); // ERROR OCCURS HERE node = this.nodeFactory(id, type); } } else { node = this.createNode(type, id); } return node; }, Now examining the debugger the node attribute is a number such as 103,105 etc and the type is "path" The only thing that I can conclude is there is something missing from the construction of the polygon or the addition to the layer in some aspect since obviously the node just being a numeric value does not have a parent attribute. Once again the values are rendered on the map but the SelectFeature results in this odd error. Anyone have any ideas? Thanks, S.D. -- View this message in context: http://www.nabble.com/Selecting-polygon-error.-tp14946220p14946220.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From chris at powerhousetechgrp.com Fri Jan 18 02:01:22 2008 From: chris at powerhousetechgrp.com (chris1211) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Opacity Kills Map Message-ID: <14947394.post@talk.nabble.com> When i add the opacity to my map it kills it can some one help i dont really understand the format or what im doing wrong thanks.... chris

FEMA Flood Map's and Panel Numbers

Info and Desc.

-- View this message in context: http://www.nabble.com/Opacity-Kills-Map-tp14947394p14947394.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From marten.sward at smhi.se Fri Jan 18 02:59:40 2008 From: marten.sward at smhi.se (=?iso-8859-1?Q?Sw=E4rd_M=E5rten?=) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Raise a feature over other features In-Reply-To: <20080117143539.GA17813@alta.metacarta.com> Message-ID: <575A94F91D20704387D1C69A913E95EE0131E172@CORRE.ad.smhi.se> Hello. Thanks! As you said, it's not an ideal solution, but it works fine! =) Perhaps a "raise feature-function" would be something to add to a future release? ************************************************************************ Mvh: M?rten Sw?rd Systemutvecklare/Webbutvecklare, ITs SMHI, Sveriges Meteorologiska och Hydrologiska Institut Tel: +46 11 495 8469 -----Ursprungligt meddelande----- Fr?n: Christopher Schmidt [mailto:crschmidt@metacarta.com] Skickat: den 17 januari 2008 15:36 Till: Sw?rd M?rten Kopia: users@openlayers.org ?mne: Re: [OpenLayers-Users] Raise a feature over other features On Thu, Jan 17, 2008 at 01:57:37PM +0100, Sw?rd M?rten wrote: > Hello folks! > If I draw a small polygon on the map and then draws a large one on top of it then I can't edit the small one because the larger one "blocks the way".. So my question is, is there any way to raise a feature above the other features and bring it to the front? layer.removeFeatures(lowerFeature) layer.addFeatures(lowerFeature) should put it on top, I think. (I'm not saying this is a good situation, but it should work.) Regards, -- Christopher Schmidt MetaCarta From bluecarto at gmail.com Fri Jan 18 03:31:06 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Opacity Kills Map In-Reply-To: <14947394.post@talk.nabble.com> References: <14947394.post@talk.nabble.com> Message-ID: There are syntax errors in your code. (');' -> ',') Here is the code for the layers precip and nexrad that worked for me : var precip = new OpenLayers.Layer.WMS( "Total Storm Precip", "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/ntp.cgi?", {layers: "nexrad_stormtotal_precip", transparent: "true", format: "image/png" }, {isBaseLayer: false, opacity: 0.5}); var nexrad = new OpenLayers.Layer.WMS( "Nexrad Radar 5min", "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?", {layers: "nexrad_base_reflect", transparent: "true", format:"image/png" }, {isBaseLayer: false, opacity: 0.5}); Pierre On Jan 18, 2008 8:01 AM, chris1211 wrote: > > When i add the opacity to my map it kills it can some one help i dont really > understand the format or what im doing wrong thanks.... chris > > > > > > > > >

FEMA Flood Map's and Panel Numbers

> >
>
>
>

Info and Desc.

>
> > > > -- > View this message in context: http://www.nabble.com/Opacity-Kills-Map-tp14947394p14947394.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From eric.c2c at gmail.com Fri Jan 18 03:48:08 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Selecting polygon error. In-Reply-To: <14946220.post@talk.nabble.com> References: <14946220.post@talk.nabble.com> Message-ID: <5ec103de0801180048q4623187aje2e769ec86a22310@mail.gmail.com> Do you have the problem if you remove the onSelect and onUnselect callbaks from the select feature control options? 2008/1/18, samd : > > Hi I was discussing this in a previous message but created a new one since > it > is a different topic. > > When I am using a select control on a polygonLayer such as the following: > > selectControl = new OpenLayers.Control.SelectFeature(polygonLayer, > {hover: true, > onSelect: > polySelected, > onUnselect: > polyUnselected}) > map.addControl( selectControl ); > selectControl.activate(); > > And I regenerate a polygon from points retrieved from the server such as the > following: > > for ( var j = 0; j < polygonAreaPoints.length; j++ ) > { > var x = polygonAreaPoints[j].x; > var y = polygonAreaPoints[j].y; > > pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); > } > > // Create the linear ring > var ring = new OpenLayers.Geometry.LinearRing( pointArray ); > > // Create the polygon > var feature = new OpenLayers.Geometry.Polygon( ring ); > > var f = new OpenLayers.Feature.Vector(feature); > polygonLayer.addFeatures( f ); > > The SelectFeature generates the following error on hover: > > node.parentNode has no properties > > Tracing in Firebug the error occurs here in the OpenLayers.Renderer.Elements > class > > nodeFactory: function(id, type) { > var node = OpenLayers.Util.getElement(id); > if (node) { > if (!this.nodeTypeCompare(node, type)) { > node.parentNode.removeChild(node); // ERROR OCCURS HERE > node = this.nodeFactory(id, type); > } > } else { > node = this.createNode(type, id); > } > return node; > }, > > Now examining the debugger the node attribute is a number such as 103,105 > etc and the type is "path" > > The only thing that I can conclude is there is something missing from the > construction of the polygon or the addition to the layer in some aspect > since obviously the node just being a numeric value does not have a parent > attribute. > > Once again the values are rendered on the map but the SelectFeature results > in this odd error. > > Anyone have any ideas? > > Thanks, > > S.D. > > > > -- > View this message in context: > http://www.nabble.com/Selecting-polygon-error.-tp14946220p14946220.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bluecarto at gmail.com Fri Jan 18 03:50:04 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Selecting polygon error. In-Reply-To: <14946220.post@talk.nabble.com> References: <14946220.post@talk.nabble.com> Message-ID: Sorry, I have no clue. I tested the following code (adapted from yours) in the select-feature.html example [1] and it worked great : var polygonAreaPoints = [ new OpenLayers.Geometry.Point(0, 0), new OpenLayers.Geometry.Point(10, 0), new OpenLayers.Geometry.Point(10, 10), new OpenLayers.Geometry.Point(0, 10) ]; var pointArray = []; for ( var j = 0; j < polygonAreaPoints.length; j++ ) { var x = polygonAreaPoints[j].x; var y = polygonAreaPoints[j].y; pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); } // Create the linear ring var ring = new OpenLayers.Geometry.LinearRing( pointArray ); // Create the polygon var feature = new OpenLayers.Geometry.Polygon( ring ); var f = new OpenLayers.Feature.Vector(feature); map.layers[1].addFeatures( f ); var polySelected = function() { console.log("selected"); } var polyUnselected = function() { console.log("unselected"); } selectControl = new OpenLayers.Control.SelectFeature(map.layers[1], {hover: true, onSelect: polySelected, onUnselect: polyUnselected}); map.addControl( selectControl ); selectControl.activate(); [1] http://openlayers.org/dev/examples/select-feature.html On Jan 18, 2008 4:56 AM, samd wrote: > > Hi I was discussing this in a previous message but created a new one since it > is a different topic. > > When I am using a select control on a polygonLayer such as the following: > > selectControl = new OpenLayers.Control.SelectFeature(polygonLayer, > {hover: true, > onSelect: > polySelected, > onUnselect: > polyUnselected}) > map.addControl( selectControl ); > selectControl.activate(); > > And I regenerate a polygon from points retrieved from the server such as the > following: > > for ( var j = 0; j < polygonAreaPoints.length; j++ ) > { > var x = polygonAreaPoints[j].x; > var y = polygonAreaPoints[j].y; > > pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); > } > > // Create the linear ring > var ring = new OpenLayers.Geometry.LinearRing( pointArray ); > > // Create the polygon > var feature = new OpenLayers.Geometry.Polygon( ring ); > > var f = new OpenLayers.Feature.Vector(feature); > polygonLayer.addFeatures( f ); > > The SelectFeature generates the following error on hover: > > node.parentNode has no properties > > Tracing in Firebug the error occurs here in the OpenLayers.Renderer.Elements > class > > nodeFactory: function(id, type) { > var node = OpenLayers.Util.getElement(id); > if (node) { > if (!this.nodeTypeCompare(node, type)) { > node.parentNode.removeChild(node); // ERROR OCCURS HERE > node = this.nodeFactory(id, type); > } > } else { > node = this.createNode(type, id); > } > return node; > }, > > Now examining the debugger the node attribute is a number such as 103,105 > etc and the type is "path" > > The only thing that I can conclude is there is something missing from the > construction of the polygon or the addition to the layer in some aspect > since obviously the node just being a numeric value does not have a parent > attribute. > > Once again the values are rendered on the map but the SelectFeature results > in this odd error. > > Anyone have any ideas? > > Thanks, > > S.D. > > > > -- > View this message in context: http://www.nabble.com/Selecting-polygon-error.-tp14946220p14946220.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From oli.b at freenet.de Fri Jan 18 04:42:07 2008 From: oli.b at freenet.de (O. Baum) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Problem with Image Layer visibility Message-ID: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> Hi list, I have a problem regarding an non-baselayer Image layer. I modified the example image-layer.html by setting the options of the Image layer to { numZoomLevels: 3, isBaseLayer: false } (in line 27). Why is the Image layer not visible in the initial view (the box "City Lights" in the LayerSwitcher is greyed), but only after zooming in? I am using the trunk checked out on Tue morning. Thank you for replies in advance! Best regards, O. Baum From andrea.maschio at gmail.com Fri Jan 18 05:38:40 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Http request? In-Reply-To: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> Message-ID: <479081B0.9030805@gmail.com> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080118/61a8e8ed/attachment.html From crschmidt at metacarta.com Fri Jan 18 07:02:38 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Http request? In-Reply-To: <479081B0.9030805@gmail.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> <479081B0.9030805@gmail.com> Message-ID: <20080118120238.GB27855@alta.metacarta.com> On Fri, Jan 18, 2008 at 11:38:40AM +0100, Andrea Maschio wrote: > Please dont use HTML email. > Hello everybody, i'm new to this list. Please forgive my ignorance, but > I didn't understand one thing: as far as i know, all modern browsers > don't allow request generated by an AJAX request to other sites > different from the web server from wich the client code was downloaded. This is correct. > I'm asking because downloading the OL distribution with examples and > most of them are working from a page opened in browser from the file > system. But none of them use "AJAX" requests :) The "X" in AJAX is for XML/XMLHttpRequest. XMLHttpRequest is not neccesary to receive tiles -- instead, the proper URL is simply stuck into an tag, which (of course) can be loaded from other sites. (In some circles, this would be called "hotlinking" -- especially in the pink flashing ponies world of online social networking communities.) OpenLayers takes as a core tenet: "You can not talk to the server." This means you can't use XMLHttpRequest to do anything that is crucial to functionality unless there is no other way. All configuration, for example, is not taken from the WMS GetCapabilities, but is instead taken from local Javascript configuration -- duplicating information, but an unfortunate consequence of the Same Origin Policy. The exceptions to this are requesting data from a remote server. So, WFS requests -- wfs.html in the examples -- *do* request data from a remote server. And you'll notice that it doesn't work on your local machine. For the most part, OpenLayers is able to ignore the Same Origin Policy, with some level of loss of support for using remote configuration information. Regards, -- Christopher Schmidt MetaCarta From ivaxoyar at hotmail.com Fri Jan 18 07:59:22 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] PanZoom Control position In-Reply-To: <20080118120238.GB27855@alta.metacarta.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> <479081B0.9030805@gmail.com> <20080118120238.GB27855@alta.metacarta.com> Message-ID: I have modified my panzoom control to use only the zoom in and zoom out tools and now i need to modify its position but i see that i can only do this directly in the openlayers. Is the any display class for this control or any way to create it? Thanks in advanced! xavi _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080118/51c643e2/attachment.html From man_kills_everything at hotmail.com Fri Jan 18 09:50:26 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Changing between Google, Yahoo and Virtual Earth Message-ID: <14950386.post@talk.nabble.com> Hi, I'm developing a website using OpenLayers. It uses Google, Yahoo! or Virtual Earth as backdrops. It starts off on Google and when I switch to other backdrops it's fine, but when I switch back to Google it doesn't work properly. The view seems to shift SE and tiles only appear in the top-left of the view (see the images). It starts out with Google like this: http://i256.photobucket.com/albums/hh190/dead_passive/originalview.jpg Then after changing layers a bit and going back to Google it does this: http://i256.photobucket.com/albums/hh190/dead_passive/error.jpg If I try scrolling with Google, it stays in the corner like that and goes crazy. One swoop of the mouse and I'm in the Antarctic! Anyone had this problem before? Thanks, Jon -- View this message in context: http://www.nabble.com/Changing-between-Google%2C-Yahoo-and-Virtual-Earth-tp14950386p14950386.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From lee_keel at trimble.com Fri Jan 18 10:22:53 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net> <14811157.post@talk.nabble.com><944DCD961F4CD649BCEBB52E3C929F6501863C23@usd-am-xch-01.am.trimblecorp.net><944DCD961F4CD649BCEBB52E3C929F6501863C25@usd-am-xch-01.am.trimblecorp.net><20080116075435.GE21372@alta.metacarta.com> <14873822.post@talk.nabble.com> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> Hello all. I have been working with the mapserver list still trying to figure out this problem. Here is where I am at and I am hoping some one can help. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=basemap+basemap_anno ) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Thanks, LK URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,432515.7217625&WIDTH=1023&HEIGHT=550 > URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 > For the URL that does not work, here is the response: ErrorError in CGI Application

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers. Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map > &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: MapServer Workshop (panamacity)

Map Mode: Layers:
Map Control:

Legend:

Map scale 1:[scale]

Pixel size [cellsize]

Extents [minx], [miny], [maxx], [maxy]

Map size (screen) [mapsize]

Map width [mapwidth]

Map height [mapheight]

Map [map]

Layers [layers]

________________________________ From: users-bounces@openlayers.org on behalf of Andrew de klerk Sent: Wed 1/16/2008 2:30 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me To add to what Chris said. If you right click on the image and choose properties and then copy the url and paste it into a new browser window - what happens - do you get an error returned or an image?. That will allow you to test it outside openlayers and determine if it is a mapserver problem. Andrew From crschmidt at metacarta.com Fri Jan 18 10:36:09 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Changing between Google, Yahoo and Virtual Earth In-Reply-To: <14950386.post@talk.nabble.com> References: <14950386.post@talk.nabble.com> Message-ID: <20080118153608.GA20232@alta.metacarta.com> On Fri, Jan 18, 2008 at 06:50:26AM -0800, Jon Britton wrote: > > Hi, > I'm developing a website using OpenLayers. It uses Google, Yahoo! or Virtual > Earth as backdrops. It starts off on Google and when I switch to other > backdrops it's fine, but when I switch back to Google it doesn't work > properly. The view seems to shift SE and tiles only appear in the top-left > of the view (see the images). > > It starts out with Google like this: > http://i256.photobucket.com/albums/hh190/dead_passive/originalview.jpg > > Then after changing layers a bit and going back to Google it does this: > http://i256.photobucket.com/albums/hh190/dead_passive/error.jpg > > If I try scrolling with Google, it stays in the corner like that and goes > crazy. One swoop of the mouse and I'm in the Antarctic! Many people. Sounds like http://trac.openlayers.org/ticket/830 . Regards, -- Christopher Schmidt MetaCarta From robe.dnd at cityofboston.gov Fri Jan 18 10:49:11 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><E1JEU4W-0000nw-00@smtp06.web.de><14811157.post@talk.nabble.com><944DCD961F4CD649BCEBB52E3C929F6501863C23@usd-am-xch-01.am.trimblecorp.net><944DCD961F4CD649BCEBB52E3C929F6501863C25@usd-am-xch-01.am.trimblecorp.net><20080116075435.GE21372@alta.metacarta.com><14873822.post@talk.nabble.com> <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D2030FF293@ZDND.DND.boston.cob> Lee, Are you saying the tile that doesn't work doesn't work when you call the url directly either or only when in OL. If the bad url doesn't work outside of OL either, then did you try turning debug on on your mapserver file and see if it returns a more meaningful error? The only difference I see between the 2 is the BBOXs are different but that could be just a difference in where you were clicking or it could be its out of range. Other thought is there is no difference and OL is just requesting tiles faster than your server can deal with. Hope that helps, Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 10:23 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me Hello all. I have been working with the mapserver list still trying to figure out this problem. Here is where I am at and I am hoping some one can help. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=b asemap+basemap_anno> ) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Thanks, LK URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,4 32515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> > URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916..93 87535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> > For the URL that does not work, here is the response: <html><head><title>Error</title></head><body><head><title>Error in CGI Application</title></head> <body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</body></body></html> Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> > &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> <http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> > "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org> > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> <http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> > " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> ________________________________ From: users-bounces@openlayers.org on behalf of Andrew de klerk Sent: Wed 1/16/2008 2:30 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me To add to what Chris said. If you right click on the image and choose properties and then copy the url and paste it into a new browser window - what happens - do you get an error returned or an image?. That will allow you to test it outside openlayers and determine if it is a mapserver problem. Andrew _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ----------------------------------------- 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. From oli.b at freenet.de Fri Jan 18 11:04:30 2008 From: oli.b at freenet.de (O. Baum) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] need help with projection issues In-Reply-To: <1e14d5320801160819r6d2765ebj6873b8197ec58377@mail.gmail.com> References: <7920d0190801140806x4e964c91w6e3c4774b2f95e06@mail.gmail.com> <20080114161456.GC20672@alta.metacarta.com> <7920d0190801140835l7b6673dbkf961a27aef556c40@mail.gmail.com> <20080114172208.GA22701@alta.metacarta.com> <6e9b30fb0801141208p7acb932coe6c0e4ac27e450ba@mail.gmail.com> <1e14d5320801141417ydac16d7ua8aa5891ff0e73c2@mail.gmail.com> <7920d0190801160334o2787f925m3056458336c042d0@mail.gmail.com> <1e14d5320801160819r6d2765ebj6873b8197ec58377@mail.gmail.com> Message-ID: <7920d0190801180804i5980cf09o96e28f8bbe229ecd@mail.gmail.com> Hi Thomas, all, 2008/1/16, Thomas Wood <grand.edgemaster@gmail.com>: > Yes, you will. displayProjection just tells controls to reproject > before displaying or parsing coords they use. > > Reprojecting is fairly simple: [...] ok, that works. BUT if I want to draw a circle with the help of OpenLayers.Geometry.Polygon.createRegularPolygon() it becomes an ellipse. :( I'm using this code: ---8<--------------------------------- var circOrigin = new OpenLayers.Geometry.Point( 10.00, 49.50 ); var circStyle = OpenLayers.Util.extend( {}, OpenLayers.Feature.Vector.style["default"] ); var circleFeature = new OpenLayers.Feature.Vector( OpenLayers.Geometry.Polygon.createRegularPolygon( circOrigin, 0.001, 20, 0 ), null, circStyle ); circleFeature.geometry.transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ); vectors.addFeatures( [circleFeature] ); --->8--------------------------------- 2 questions: a) How and where can I apply the transformation so my circle is 'really' (i.e. on the map) a circle? b) In what units is the radius given? How can I calulate it from Meters? Thanks for Your help! Best regards, O. Baum From lee_keel at trimble.com Fri Jan 18 11:17:38 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><E1JEU4W-0000nw-00@smtp06.web.de><14811157.post@talk.nabble.com><944DCD961F4CD649BCEBB52E3C929F6501863C23@usd-am-xch-01.am.trimblecorp.net><944DCD961F4CD649BCEBB52E3C929F6501863C25@usd-am-xch-01.am.trimblecorp.net><20080116075435.GE21372@alta.metacarta.com><14873822.post@talk.nabble.com> <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> <53F9CF533E1AA14EA1F8C5C08ABC08D2030FF293@ZDND.DND.boston.cob> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C59@usd-am-xch-01.am.trimblecorp.net> Regina, Sorry about that. I guess I should have been clearer. If the layer is not displayed in OL, then I get the URL that the layer is suppose to represent and paste it in a new window and I get error that was below it (502: "The specified CGI application misbehaved by not returning a complete set of HTTP headers.") I have set DEBUG 5 in my mapfile, but this is all I am getting. I look in my log file that the map file is pointing to and I get "......, normal execution" for each call. The change in BBOX is because i zoomed out in OL. It seems that on a couple of the layers, they work until I zoom in to a certain level. And yet others do not work at any level. And yet even others work at all levels. I have made 2 line layers the same in the map file (where 1 works and the other does not), and still get the same results. I have thought about the chance that OL is requesting the tiles faster than server can produce, but the URL to the image doesn't work either. So I am leaning away from it being something directly in OL. On another note, there is one more thing. Once I do get the layer back there is a blur in it. You can see a cut of this blur at: http://dev.uai.com:28080/public/blur.html This happens on every WMS layer that I get back. But again, if I take the URL for that layer and paste into another window, then the image that I get back also has the blur. So that means it is coming from mapserver that way, right? Let me just throw out that this client is very strict with permissions and network. Can anyone think of a permission or network setting that might cause something like this? Thoughts? -LK ________________________________ From: Obe, Regina [mailto:robe.dnd@cityofboston.gov] Sent: Fri 1/18/2008 9:49 AM To: Lee Keel; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me Lee, Are you saying the tile that doesn't work doesn't work when you call the url directly either or only when in OL. If the bad url doesn't work outside of OL either, then did you try turning debug on on your mapserver file and see if it returns a more meaningful error? The only difference I see between the 2 is the BBOXs are different but that could be just a difference in where you were clicking or it could be its out of range. Other thought is there is no difference and OL is just requesting tiles faster than your server can deal with. Hope that helps, Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 10:23 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me Hello all. I have been working with the mapserver list still trying to figure out this problem. Here is where I am at and I am hoping some one can help. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=b asemap+basemap_anno> ) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Thanks, LK URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,4 32515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> > URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916..93 87535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> > For the URL that does not work, here is the response: <html><head><title>Error</title></head><body><head><title>Error in CGI Application</title></head> <body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</body></body></html> Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> > &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> <http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> > "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org> > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> <http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> > " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> ________________________________ From: users-bounces@openlayers.org on behalf of Andrew de klerk Sent: Wed 1/16/2008 2:30 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me To add to what Chris said. If you right click on the image and choose properties and then copy the url and paste it into a new browser window - what happens - do you get an error returned or an image?. That will allow you to test it outside openlayers and determine if it is a mapserver problem. Andrew _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ----------------------------------------- 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. From cjmose at gmail.com Fri Jan 18 11:23:28 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Multiple linestrings originating from the same point disappear when zooming Message-ID: <14952551.post@talk.nabble.com> I have several lineStrings on a vector layer that originate from the same lat/lon coordinate. As you zoom in on the map, the lineStrings randomly disappear, e.g,. if you start out with 6 lines originating from the same point, as you zoom in on the map lines will randomly disappear until there are <6 lines left. I've verified this behavior using a modified version of vector-features.html from the examples directory. I don't have anywhere to host my example but here is my modified script declaration from vector-features.html: <script src="../lib/OpenLayers.js" type="text/javascript"></script> <script type="text/javascript"> var map; function init(){ map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); /* * Layer style */ // we want opaque external graphics and non-opaque internal graphics var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); layer_style.fillOpacity = 0.2; layer_style.graphicOpacity = 1; /* * Blue style */ var style_blue = OpenLayers.Util.extend({}, layer_style); style_blue.strokeColor = "blue"; style_blue.fillColor = "blue"; /* * Green style */ var style_green = { strokeColor: "#00FF00", strokeWidth: 2, pointRadius: 4, pointerEvents: "visiblePainted" }; /* * Mark style */ var style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); // each of the three lines below means the same, if only one of // them is active: the image will have a size of 24px, and the // aspect ratio will be kept // style_mark.pointRadius = 12; // style_mark.graphicHeight = 24; // style_mark.graphicWidth = 24; // if graphicWidth and graphicHeight are both set, the aspect ratio // of the image will be ignored style_mark.graphicWidth = 24; style_mark.graphicHeight = 20; style_mark.graphicXOffset = -(style_mark.graphicWidth/2); // this is the default value style_mark.graphicYOffset = -style_mark.graphicHeight; style_mark.externalGraphic = "../img/marker.png"; var vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", {style: layer_style}); var point = OpenLayers.Geometry.Point; var ls = OpenLayers.Geometry.LineString; var vector = OpenLayers.Feature.Vector; var lines = []; var features = []; lines.push(new ls([new point(1,50), new point(75,60)])); lines.push(new ls([new point(1,50), new point(-60,-30)])); lines.push(new ls([new point(1,50), new point(40,89)])); lines.push(new ls([new point(1,50), new point(-150,-55)])); lines.push(new ls([new point(1,50), new point(-30,-25)])); lines.push(new ls([new point(1,50), new point(-5,-10)])); for(var i=0;i<lines.length;i++){ features.push(new vector(lines[i], null, style_green)); } map.addLayer(vectorLayer); map.setCenter(new OpenLayers.LonLat(1,50), 5); vectorLayer.addFeatures(features); } </script> The map is initialized with a zoom level of 5. Once you get to 8 one of the 6 lines disappears, leaving you with 5. Zoom level 9 removes all but one line. Zoom level 10 removes all lines. I haven't traced the issue beyond drawFeature() in Vector.js. I've tested the example in Firefox thus far but in my app I'm getting the same behavior in ff and ie. Any ideas? -- View this message in context: http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p14952551.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Fri Jan 18 11:31:45 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] need help with projection issues In-Reply-To: <7920d0190801180804i5980cf09o96e28f8bbe229ecd@mail.gmail.com> References: <7920d0190801140806x4e964c91w6e3c4774b2f95e06@mail.gmail.com> <20080114161456.GC20672@alta.metacarta.com> <7920d0190801140835l7b6673dbkf961a27aef556c40@mail.gmail.com> <20080114172208.GA22701@alta.metacarta.com> <6e9b30fb0801141208p7acb932coe6c0e4ac27e450ba@mail.gmail.com> <1e14d5320801141417ydac16d7ua8aa5891ff0e73c2@mail.gmail.com> <7920d0190801160334o2787f925m3056458336c042d0@mail.gmail.com> <1e14d5320801160819r6d2765ebj6873b8197ec58377@mail.gmail.com> <7920d0190801180804i5980cf09o96e28f8bbe229ecd@mail.gmail.com> Message-ID: <20080118163145.GA26530@alta.metacarta.com> On Fri, Jan 18, 2008 at 05:04:30PM +0100, O. Baum wrote: > Hi Thomas, all, > > 2008/1/16, Thomas Wood <grand.edgemaster@gmail.com>: > > Yes, you will. displayProjection just tells controls to reproject > > before displaying or parsing coords they use. > > > > Reprojecting is fairly simple: [...] > > ok, that works. > > BUT if I want to draw a circle with the help of > OpenLayers.Geometry.Polygon.createRegularPolygon() it becomes an > ellipse. :( > I'm using this code: > > ---8<--------------------------------- > var circOrigin = new OpenLayers.Geometry.Point( 10.00, 49.50 ); > var circStyle = OpenLayers.Util.extend( {}, > OpenLayers.Feature.Vector.style["default"] ); > var circleFeature = new OpenLayers.Feature.Vector( > OpenLayers.Geometry.Polygon.createRegularPolygon( circOrigin, 0.001, 20, 0 ), > null, > circStyle ); > circleFeature.geometry.transform( new > OpenLayers.Projection("EPSG:4326"), new > OpenLayers.Projection("EPSG:900913") ); > vectors.addFeatures( [circleFeature] ); > --->8--------------------------------- > > 2 questions: > > a) How and where can I apply the transformation so my circle is > 'really' (i.e. on the map) a circle? > b) In what units is the radius given? How can I calulate it from Meters? Both of these questions can be answered by reprojecting your poitn *before* you create the polygon. var circOrigin = new OpenLayers.Geometry.Point( 10.00, 49.50 ); circOrigin.geometry.transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ); var circStyle = OpenLayers.Util.extend( {}, OpenLayers.Feature.Vector.style["default"] ); var circleFeature = new OpenLayers.Feature.Vector( OpenLayers.Geometry.Polygon.createRegularPolygon( circOrigin, 100 /* meters */, 20, 0 ), null, circStyle ); vectors.addFeatures( [circleFeature] ); Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Fri Jan 18 12:12:49 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Selecting polygon error. In-Reply-To: <d50f50e60801180050h18b03e0fv605ea7d084b69dcd@mail.gmail.com> References: <14946220.post@talk.nabble.com> <d50f50e60801180050h18b03e0fv605ea7d084b69dcd@mail.gmail.com> Message-ID: <5ec103de0801180912w42c06fe0n35188fe6a000ba7a@mail.gmail.com> On Jan 18, 2008 9:50 AM, Pierre GIRAUD <bluecarto@gmail.com> wrote: > Sorry, I have no clue. > > I tested the following code (adapted from yours) in the > select-feature.html example [1] and it worked great : That it exactly why I suggested to try with the onSelect and onUnselect callbacks removed. I'm suspecting that there's something that causes the issue in the callbacks. > var polygonAreaPoints = [ > new OpenLayers.Geometry.Point(0, 0), > new OpenLayers.Geometry.Point(10, 0), > new OpenLayers.Geometry.Point(10, 10), > new OpenLayers.Geometry.Point(0, 10) > ]; > var pointArray = []; > for ( var j = 0; j < polygonAreaPoints.length; j++ ) > { > var x = polygonAreaPoints[j].x; > var y = polygonAreaPoints[j].y; > > pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); > } > > // Create the linear ring > var ring = new OpenLayers.Geometry.LinearRing( pointArray ); > > // Create the polygon > var feature = new OpenLayers.Geometry.Polygon( ring ); > > var f = new OpenLayers.Feature.Vector(feature); > map.layers[1].addFeatures( f ); > > var polySelected = function() { > console.log("selected"); > } > var polyUnselected = function() { > console.log("unselected"); > } > > selectControl = new OpenLayers.Control.SelectFeature(map.layers[1], > {hover: true, > onSelect: polySelected, > onUnselect: polyUnselected}); > map.addControl( selectControl ); > selectControl.activate(); > > > [1] http://openlayers.org/dev/examples/select-feature.html From robe.dnd at cityofboston.gov Fri Jan 18 12:28:23 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><E1JEU4W-0000nw-00@smtp06.web.de><14811157.post@talk.nabble.com><944DCD961F4CD649BCEBB52E3C929F6501863C23@usd-am-xch-01.am.trimblecorp.net><944DCD961F4CD649BCEBB52E3C929F6501863C25@usd-am-xch-01.am.trimblecorp.net><20080116075435.GE21372@alta.metacarta.com><14873822.post@talk.nabble.com> <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> <53F9CF533E1AA14EA1F8C5C08ABC08D2030FF293@ZDND.DND.boston.cob> <944DCD961F4CD649BCEBB52E3C929F6501863C59@usd-am-xch-01.am.trimblecorp.net> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D20197A011@ZDND.DND.boston.cob> I suppose to rule out restriction on server as the issue, you could run the same configuration on a local server you have full control over if that is possible. The only thought I can think of if it is a restriction issue - is that map server is generating the image fine and its in the outputting of the file where there is a problem, like because of the CGI restrictions on the server, if the file exceeds a certain size - it kills the process. Why is your sample blur image a bmp file? I presume you are not dishing out bmps. Hope that helps, Regina ________________________________ From: Lee Keel [mailto:lee_keel@trimble.com] Sent: Fri 1/18/2008 11:17 AM To: Obe, Regina; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me Regina, Sorry about that. I guess I should have been clearer. If the layer is not displayed in OL, then I get the URL that the layer is suppose to represent and paste it in a new window and I get error that was below it (502: "The specified CGI application misbehaved by not returning a complete set of HTTP headers.") I have set DEBUG 5 in my mapfile, but this is all I am getting. I look in my log file that the map file is pointing to and I get "......, normal execution" for each call. The change in BBOX is because i zoomed out in OL. It seems that on a couple of the layers, they work until I zoom in to a certain level. And yet others do not work at any level. And yet even others work at all levels. I have made 2 line layers the same in the map file (where 1 works and the other does not), and still get the same results. I have thought about the chance that OL is requesting the tiles faster than server can produce, but the URL to the image doesn't work either. So I am leaning away from it being something directly in OL. On another note, there is one more thing. Once I do get the layer back there is a blur in it. You can see a cut of this blur at: http://dev.uai.com:28080/public/blur.html This happens on every WMS layer that I get back. But again, if I take the URL for that layer and paste into another window, then the image that I get back also has the blur. So that means it is coming from mapserver that way, right? Let me just throw out that this client is very strict with permissions and network. Can anyone think of a permission or network setting that might cause something like this? Thoughts? -LK ________________________________ From: Obe, Regina [mailto:robe.dnd@cityofboston.gov] Sent: Fri 1/18/2008 9:49 AM To: Lee Keel; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me Lee, Are you saying the tile that doesn't work doesn't work when you call the url directly either or only when in OL. If the bad url doesn't work outside of OL either, then did you try turning debug on on your mapserver file and see if it returns a more meaningful error? The only difference I see between the 2 is the BBOXs are different but that could be just a difference in where you were clicking or it could be its out of range. Other thought is there is no difference and OL is just requesting tiles faster than your server can deal with. Hope that helps, Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 10:23 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me Hello all. I have been working with the mapserver list still trying to figure out this problem. Here is where I am at and I am hoping some one can help. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=b asemap+basemap_anno> ) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Thanks, LK URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,4 32515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> > URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916...93 87535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc...se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> > For the URL that does not work, here is the response: <html><head><title>Error</title></head><body><head><title>Error in CGI Application</title></head> <body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</body></body></html> Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> > &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> <http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> > "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org> > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> <http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> > " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> ________________________________ From: users-bounces@openlayers.org on behalf of Andrew de klerk Sent: Wed 1/16/2008 2:30 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me To add to what Chris said. If you right click on the image and choose properties and then copy the url and paste it into a new browser window - what happens - do you get an error returned or an image?. That will allow you to test it outside openlayers and determine if it is a mapserver problem. Andrew _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ----------------------------------------- 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/20080118/78e8bf58/attachment.html From jmpmcmanus at yahoo.com Fri Jan 18 16:14:03 2008 From: jmpmcmanus at yahoo.com (James McManus) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] scale vs resolution Message-ID: <485731.93393.qm@web35713.mail.mud.yahoo.com> Is resolution (map units per pixel) in OpenLayers that same as a map scale? For instance I am using Map Scales (1:I 198817.699567) that I get from a Mapserver html page display for my resolution in Openlayers. An example:'resolutions': [198817.699567, 99408.849784, 49704.424892, 24852.212446, 24852.212446, 6213.053112, 3106.526556, 1553.263278]. However, when I do this I get very low resolution image. Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080118/dabcd5e0/attachment.html From lee_keel at trimble.com Fri Jan 18 16:40:13 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Pink Tile Killing Me References: <944DCD961F4CD649BCEBB52E3C929F6501863C13@usd-am-xch-01.am.trimblecorp.net><E1JEU4W-0000nw-00@smtp06.web.de><14811157.post@talk.nabble.com><944DCD961F4CD649BCEBB52E3C929F6501863C23@usd-am-xch-01.am.trimblecorp.net><944DCD961F4CD649BCEBB52E3C929F6501863C25@usd-am-xch-01.am.trimblecorp.net><20080116075435.GE21372@alta.metacarta.com><14873822.post@talk.nabble.com> <944DCD961F4CD649BCEBB52E3C929F6501863C58@usd-am-xch-01.am.trimblecorp.net> <53F9CF533E1AA14EA1F8C5C08ABC08D2030FF293@ZDND.DND.boston.cob> <944DCD961F4CD649BCEBB52E3C929F6501863C59@usd-am-xch-01.am.trimblecorp.net> <53F9CF533E1AA14EA1F8C5C08ABC08D20197A011@ZDND.DND.boston.cob> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6501863C5E@usd-am-xch-01.am.trimblecorp.net> I can't seem to find any restrictions and the client didn't say anything about adding any for the size of a file for the CGI app. My sample image is a bmp because I am having to use citrix to log into their network and run the app. The only way I could show what was going on was to take a screen shot and save it as a bmp. -LK ________________________________ From: Obe, Regina [mailto:robe.dnd@cityofboston.gov] Sent: Fri 1/18/2008 11:28 AM To: Lee Keel; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me I suppose to rule out restriction on server as the issue, you could run the same configuration on a local server you have full control over if that is possible. The only thought I can think of if it is a restriction issue - is that map server is generating the image fine and its in the outputting of the file where there is a problem, like because of the CGI restrictions on the server, if the file exceeds a certain size - it kills the process. Why is your sample blur image a bmp file? I presume you are not dishing out bmps. Hope that helps, Regina ________________________________ From: Lee Keel [mailto:lee_keel@trimble.com] Sent: Fri 1/18/2008 11:17 AM To: Obe, Regina; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me Regina, Sorry about that. I guess I should have been clearer. If the layer is not displayed in OL, then I get the URL that the layer is suppose to represent and paste it in a new window and I get error that was below it (502: "The specified CGI application misbehaved by not returning a complete set of HTTP headers.") I have set DEBUG 5 in my mapfile, but this is all I am getting. I look in my log file that the map file is pointing to and I get "......, normal execution" for each call. The change in BBOX is because i zoomed out in OL. It seems that on a couple of the layers, they work until I zoom in to a certain level. And yet others do not work at any level. And yet even others work at all levels. I have made 2 line layers the same in the map file (where 1 works and the other does not), and still get the same results. I have thought about the chance that OL is requesting the tiles faster than server can produce, but the URL to the image doesn't work either. So I am leaning away from it being something directly in OL. On another note, there is one more thing. Once I do get the layer back there is a blur in it. You can see a cut of this blur at: http://dev.uai.com:28080/public/blur.html This happens on every WMS layer that I get back. But again, if I take the URL for that layer and paste into another window, then the image that I get back also has the blur. So that means it is coming from mapserver that way, right? Let me just throw out that this client is very strict with permissions and network. Can anyone think of a permission or network setting that might cause something like this? Thoughts? -LK ________________________________ From: Obe, Regina [mailto:robe.dnd@cityofboston.gov] Sent: Fri 1/18/2008 9:49 AM To: Lee Keel; users@openlayers.org Subject: RE: [OpenLayers-Users] Pink Tile Killing Me Lee, Are you saying the tile that doesn't work doesn't work when you call the url directly either or only when in OL. If the bad url doesn't work outside of OL either, then did you try turning debug on on your mapserver file and see if it returns a more meaningful error? The only difference I see between the 2 is the BBOXs are different but that could be just a difference in where you were clicking or it could be its out of range. Other thought is there is no difference and OL is just requesting tiles faster than your server can deal with. Hope that helps, Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 10:23 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me Hello all. I have been working with the mapserver list still trying to figure out this problem. Here is where I am at and I am hoping some one can help. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=b asemap+basemap_anno> ) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Thanks, LK URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,4 32515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875, 432515.7217625&WIDTH=1023&HEIGHT=550> > URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inim age&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916..93 87535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map& LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc..se_ini mage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9 387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> > For the URL that does not work, here is the response: <html><head><title>Error</title></head><body><head><title>Error in CGI Application</title></head> <body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</body></body></html> Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> > &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3..org/ 1999/xhtml> <http://www.w3.org/1999/xhtml <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org/ 1999/xhtml> > "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www.w3.org <https://portal.trimble.com/exchweb/bin/redir.asp?URL=http://www..w3.org> > > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> <http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> > " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> ________________________________ From: users-bounces@openlayers.org on behalf of Andrew de klerk Sent: Wed 1/16/2008 2:30 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] Pink Tile Killing Me To add to what Chris said. If you right click on the image and choose properties and then copy the url and paste it into a new browser window - what happens - do you get an error returned or an image?. That will allow you to test it outside openlayers and determine if it is a mapserver problem. Andrew _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ----------------------------------------- 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. From crschmidt at metacarta.com Fri Jan 18 17:29:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] scale vs resolution In-Reply-To: <485731.93393.qm@web35713.mail.mud.yahoo.com> References: <485731.93393.qm@web35713.mail.mud.yahoo.com> Message-ID: <20080118222931.GA684@alta.metacarta.com> On Fri, Jan 18, 2008 at 01:14:03PM -0800, James McManus wrote: > Is resolution (map units per pixel) in OpenLayers that same as a map scale? No. Scale is a false claim of 'screen units per on-the-ground units": 1:19000 (supposedly) means 1 inch on screen = 19000 inches on the ground. This isn't true, of course: there is an implicit assumption that the server knows how many pixels there are in an inch on the screen, which it can't, since screens change resolution. A 256 pixel wide image on the screen at 800x600 is way larger than at 1600x1200. So, it's based on the guess of 72DPI (in MapServer -- in GeoServer it matches the SLD standard at 90.something DPI). To get resolution from scale, use OpenLayers.Util.getResolutionFromScale(19000, map_units), where map_units is one of 'inches', 'mi', 'm', 'km', 'dd', 'yd', 'nmi', 'ft'. Regards, -- Christopher Schmidt MetaCarta From sdoyle_2 at yahoo.com Fri Jan 18 19:11:42 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:03 2010 Subject: [OpenLayers-Users] Selecting polygon error. In-Reply-To: <5ec103de0801180912w42c06fe0n35188fe6a000ba7a@mail.gmail.com> References: <14946220.post@talk.nabble.com> <d50f50e60801180050h18b03e0fv605ea7d084b69dcd@mail.gmail.com> <5ec103de0801180912w42c06fe0n35188fe6a000ba7a@mail.gmail.com> Message-ID: <14963570.post@talk.nabble.com> Using the callbacks encounter the same problem. There is a difference between yours and mine though in terms of the polygons are created as a result of an AJAX callback. S.D. Eric Lemoine-3 wrote: > > On Jan 18, 2008 9:50 AM, Pierre GIRAUD <bluecarto@gmail.com> wrote: >> Sorry, I have no clue. >> >> I tested the following code (adapted from yours) in the >> select-feature.html example [1] and it worked great : > > That it exactly why I suggested to try with the onSelect and > onUnselect callbacks removed. I'm suspecting that there's something > that causes the issue in the callbacks. > > >> var polygonAreaPoints = [ >> new OpenLayers.Geometry.Point(0, 0), >> new OpenLayers.Geometry.Point(10, 0), >> new OpenLayers.Geometry.Point(10, 10), >> new OpenLayers.Geometry.Point(0, 10) >> ]; >> var pointArray = []; >> for ( var j = 0; j < polygonAreaPoints.length; j++ ) >> { >> var x = polygonAreaPoints[j].x; >> var y = polygonAreaPoints[j].y; >> >> pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); >> } >> >> // Create the linear ring >> var ring = new OpenLayers.Geometry.LinearRing( pointArray ); >> >> // Create the polygon >> var feature = new OpenLayers.Geometry.Polygon( ring ); >> >> var f = new OpenLayers.Feature.Vector(feature); >> map.layers[1].addFeatures( f ); >> >> var polySelected = function() { >> console.log("selected"); >> } >> var polyUnselected = function() { >> console.log("unselected"); >> } >> >> selectControl = new OpenLayers.Control.SelectFeature(map.layers[1], >> {hover: true, >> onSelect: polySelected, >> onUnselect: polyUnselected}); >> map.addControl( selectControl ); >> selectControl.activate(); >> >> >> [1] http://openlayers.org/dev/examples/select-feature.html > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Selecting-polygon-error.-tp14946220p14963570.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdoyle_2 at yahoo.com Fri Jan 18 19:12:29 2008 From: sdoyle_2 at yahoo.com (samd) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Selecting polygon error. In-Reply-To: <14963570.post@talk.nabble.com> References: <14946220.post@talk.nabble.com> <d50f50e60801180050h18b03e0fv605ea7d084b69dcd@mail.gmail.com> <5ec103de0801180912w42c06fe0n35188fe6a000ba7a@mail.gmail.com> <14963570.post@talk.nabble.com> Message-ID: <14963682.post@talk.nabble.com> Oops sorry, I mean removing the callbacks onSelect and onUnselect still results in the same error. S.D. samd wrote: > > Using the callbacks encounter the same problem. > > There is a difference between yours and mine though in terms of the > polygons are created as a result of an AJAX callback. > > S.D. > > > Eric Lemoine-3 wrote: >> >> On Jan 18, 2008 9:50 AM, Pierre GIRAUD <bluecarto@gmail.com> wrote: >>> Sorry, I have no clue. >>> >>> I tested the following code (adapted from yours) in the >>> select-feature.html example [1] and it worked great : >> >> That it exactly why I suggested to try with the onSelect and >> onUnselect callbacks removed. I'm suspecting that there's something >> that causes the issue in the callbacks. >> >> >>> var polygonAreaPoints = [ >>> new OpenLayers.Geometry.Point(0, 0), >>> new OpenLayers.Geometry.Point(10, 0), >>> new OpenLayers.Geometry.Point(10, 10), >>> new OpenLayers.Geometry.Point(0, 10) >>> ]; >>> var pointArray = []; >>> for ( var j = 0; j < polygonAreaPoints.length; j++ ) >>> { >>> var x = polygonAreaPoints[j].x; >>> var y = polygonAreaPoints[j].y; >>> >>> pointArray.push( new OpenLayers.Geometry.Point( x, y ) ); >>> } >>> >>> // Create the linear ring >>> var ring = new OpenLayers.Geometry.LinearRing( pointArray ); >>> >>> // Create the polygon >>> var feature = new OpenLayers.Geometry.Polygon( ring ); >>> >>> var f = new OpenLayers.Feature.Vector(feature); >>> map.layers[1].addFeatures( f ); >>> >>> var polySelected = function() { >>> console.log("selected"); >>> } >>> var polyUnselected = function() { >>> console.log("unselected"); >>> } >>> >>> selectControl = new OpenLayers.Control.SelectFeature(map.layers[1], >>> {hover: true, >>> onSelect: polySelected, >>> onUnselect: polyUnselected}); >>> map.addControl( selectControl ); >>> selectControl.activate(); >>> >>> >>> [1] http://openlayers.org/dev/examples/select-feature.html >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- View this message in context: http://www.nabble.com/Selecting-polygon-error.-tp14946220p14963682.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bluecarto at gmail.com Sat Jan 19 06:13:39 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Multiple linestrings originating from the same point disappear when zooming In-Reply-To: <14952551.post@talk.nabble.com> References: <14952551.post@talk.nabble.com> Message-ID: <d50f50e60801190313m352cd6b1r9328f5c323513949@mail.gmail.com> For your information, your code is correct and I think I've found what part of the OpenLayers' code is involved in this weird behavior. I'll try to find out a fix or at least a workaround for this issue. If your interested in fixing this too, you can have a look at the SVG renderer (lib/OpenLayers/Renderer/SVG.js) and in particular at getShortString(), inValidRange() and MAX_PIXEL. I plan to fill a bug report, but don't hesitate to do so if your quicker. Hum, I was unable to reproduce the issue under IE with your example. Regards, Pierre On Jan 18, 2008 5:23 PM, cmose <cjmose@gmail.com> wrote: > > I have several lineStrings on a vector layer that originate from the same > lat/lon coordinate. As you zoom in on the map, the lineStrings randomly > disappear, e.g,. if you start out with 6 lines originating from the same > point, as you zoom in on the map lines will randomly disappear until there > are <6 lines left. > > I've verified this behavior using a modified version of vector-features.html > from the examples directory. I don't have anywhere to host my example but > here is my modified script declaration from vector-features.html: > > <script src="../lib/OpenLayers.js" type="text/javascript"></script> > <script type="text/javascript"> > var map; > > function init(){ > map = new OpenLayers.Map('map'); > var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} > ); > map.addLayer(layer); > > /* > * Layer style > */ > // we want opaque external graphics and non-opaque internal > graphics > var layer_style = OpenLayers.Util.extend({}, > OpenLayers.Feature.Vector.style['default']); > layer_style.fillOpacity = 0.2; > layer_style.graphicOpacity = 1; > > /* > * Blue style > */ > var style_blue = OpenLayers.Util.extend({}, layer_style); > style_blue.strokeColor = "blue"; > style_blue.fillColor = "blue"; > > /* > * Green style > */ > var style_green = { > strokeColor: "#00FF00", > strokeWidth: 2, > pointRadius: 4, > pointerEvents: "visiblePainted" > }; > > /* > * Mark style > */ > var style_mark = OpenLayers.Util.extend({}, > OpenLayers.Feature.Vector.style['default']); > // each of the three lines below means the same, if only one of > // them is active: the image will have a size of 24px, and the > // aspect ratio will be kept > // style_mark.pointRadius = 12; > // style_mark.graphicHeight = 24; > // style_mark.graphicWidth = 24; > > // if graphicWidth and graphicHeight are both set, the aspect > ratio > // of the image will be ignored > style_mark.graphicWidth = 24; > style_mark.graphicHeight = 20; > style_mark.graphicXOffset = -(style_mark.graphicWidth/2); // > this is the default value > style_mark.graphicYOffset = -style_mark.graphicHeight; > style_mark.externalGraphic = "../img/marker.png"; > > var vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", > {style: layer_style}); > var point = OpenLayers.Geometry.Point; > var ls = OpenLayers.Geometry.LineString; > var vector = OpenLayers.Feature.Vector; > var lines = []; > var features = []; > > lines.push(new ls([new point(1,50), new point(75,60)])); > lines.push(new ls([new point(1,50), new point(-60,-30)])); > lines.push(new ls([new point(1,50), new point(40,89)])); > lines.push(new ls([new point(1,50), new point(-150,-55)])); > lines.push(new ls([new point(1,50), new point(-30,-25)])); > lines.push(new ls([new point(1,50), new point(-5,-10)])); > > for(var i=0;i<lines.length;i++){ > features.push(new vector(lines[i], null, style_green)); > } > > map.addLayer(vectorLayer); > map.setCenter(new OpenLayers.LonLat(1,50), 5); > vectorLayer.addFeatures(features); > } > </script> > > The map is initialized with a zoom level of 5. Once you get to 8 one of the > 6 lines disappears, leaving you with 5. Zoom level 9 removes all but one > line. Zoom level 10 removes all lines. > > I haven't traced the issue beyond drawFeature() in Vector.js. I've tested > the example in Firefox thus far but in my app I'm getting the same behavior > in ff and ie. > > Any ideas? > -- > View this message in context: http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p14952551.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bluecarto at gmail.com Sat Jan 19 06:31:40 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Multiple linestrings originating from the same point disappear when zooming In-Reply-To: <d50f50e60801190313m352cd6b1r9328f5c323513949@mail.gmail.com> References: <14952551.post@talk.nabble.com> <d50f50e60801190313m352cd6b1r9328f5c323513949@mail.gmail.com> Message-ID: <d50f50e60801190331u243dea5bv9ce02ba7a28beeb5@mail.gmail.com> Ok, I just remembered this was an already discussed issue. http://trac.openlayers.org/ticket/719 http://trac.openlayers.org/ticket/713 Regards, Pierre On Jan 19, 2008 12:13 PM, Pierre GIRAUD <bluecarto@gmail.com> wrote: > For your information, your code is correct and I think I've found what > part of the OpenLayers' code is involved in this weird behavior. > I'll try to find out a fix or at least a workaround for this issue. If > your interested in fixing this too, you can have a look at the SVG > renderer (lib/OpenLayers/Renderer/SVG.js) and in particular at > getShortString(), inValidRange() and MAX_PIXEL. > > I plan to fill a bug report, but don't hesitate to do so if your quicker. > > Hum, I was unable to reproduce the issue under IE with your example. > > Regards, > Pierre > > > > On Jan 18, 2008 5:23 PM, cmose <cjmose@gmail.com> wrote: > > > > I have several lineStrings on a vector layer that originate from the same > > lat/lon coordinate. As you zoom in on the map, the lineStrings randomly > > disappear, e.g,. if you start out with 6 lines originating from the same > > point, as you zoom in on the map lines will randomly disappear until there > > are <6 lines left. > > > > I've verified this behavior using a modified version of vector-features.html > > from the examples directory. I don't have anywhere to host my example but > > here is my modified script declaration from vector-features.html: > > > > <script src="../lib/OpenLayers.js" type="text/javascript"></script> > > <script type="text/javascript"> > > var map; > > > > function init(){ > > map = new OpenLayers.Map('map'); > > var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > > "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} > > ); > > map.addLayer(layer); > > > > /* > > * Layer style > > */ > > // we want opaque external graphics and non-opaque internal > > graphics > > var layer_style = OpenLayers.Util.extend({}, > > OpenLayers.Feature.Vector.style['default']); > > layer_style.fillOpacity = 0.2; > > layer_style.graphicOpacity = 1; > > > > /* > > * Blue style > > */ > > var style_blue = OpenLayers.Util.extend({}, layer_style); > > style_blue.strokeColor = "blue"; > > style_blue.fillColor = "blue"; > > > > /* > > * Green style > > */ > > var style_green = { > > strokeColor: "#00FF00", > > strokeWidth: 2, > > pointRadius: 4, > > pointerEvents: "visiblePainted" > > }; > > > > /* > > * Mark style > > */ > > var style_mark = OpenLayers.Util.extend({}, > > OpenLayers.Feature.Vector.style['default']); > > // each of the three lines below means the same, if only one of > > // them is active: the image will have a size of 24px, and the > > // aspect ratio will be kept > > // style_mark.pointRadius = 12; > > // style_mark.graphicHeight = 24; > > // style_mark.graphicWidth = 24; > > > > // if graphicWidth and graphicHeight are both set, the aspect > > ratio > > // of the image will be ignored > > style_mark.graphicWidth = 24; > > style_mark.graphicHeight = 20; > > style_mark.graphicXOffset = -(style_mark.graphicWidth/2); // > > this is the default value > > style_mark.graphicYOffset = -style_mark.graphicHeight; > > style_mark.externalGraphic = "../img/marker.png"; > > > > var vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", > > {style: layer_style}); > > var point = OpenLayers.Geometry.Point; > > var ls = OpenLayers.Geometry.LineString; > > var vector = OpenLayers.Feature.Vector; > > var lines = []; > > var features = []; > > > > lines.push(new ls([new point(1,50), new point(75,60)])); > > lines.push(new ls([new point(1,50), new point(-60,-30)])); > > lines.push(new ls([new point(1,50), new point(40,89)])); > > lines.push(new ls([new point(1,50), new point(-150,-55)])); > > lines.push(new ls([new point(1,50), new point(-30,-25)])); > > lines.push(new ls([new point(1,50), new point(-5,-10)])); > > > > for(var i=0;i<lines.length;i++){ > > features.push(new vector(lines[i], null, style_green)); > > } > > > > map.addLayer(vectorLayer); > > map.setCenter(new OpenLayers.LonLat(1,50), 5); > > vectorLayer.addFeatures(features); > > } > > </script> > > > > The map is initialized with a zoom level of 5. Once you get to 8 one of the > > 6 lines disappears, leaving you with 5. Zoom level 9 removes all but one > > line. Zoom level 10 removes all lines. > > > > I haven't traced the issue beyond drawFeature() in Vector.js. I've tested > > the example in Firefox thus far but in my app I'm getting the same behavior > > in ff and ie. > > > > Any ideas? > > -- > > View this message in context: http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p14952551.html > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > From andrea.maschio at gmail.com Sat Jan 19 07:16:15 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Http request? In-Reply-To: <20080118120238.GB27855@alta.metacarta.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> <479081B0.9030805@gmail.com> <20080118120238.GB27855@alta.metacarta.com> Message-ID: <367A51C4-64FE-4A91-926F-FF0EF7F378BC@gmail.com> Il giorno 18/gen/08, alle ore 13:02, Christopher Schmidt ha scritto: > > The "X" in AJAX is for XML/XMLHttpRequest. XMLHttpRequest is not > neccesary to receive tiles -- instead, the proper URL is simply stuck > into an <img> tag, which (of course) can be loaded from other sites. Ok, so as I understand except fo wfs-t (that means transactional web feature service and it's supposed to edit geometries and for this to interact with the server) all other types of OL visualizations are based on an image that is generated by the application server and provided with layer information and other useful visualization stuff in the xml file generated. Sorry if it is obvious, but i'm trying to figure out what i need and if OL covers my purposes. Because I need to select some feature and then with the information collected by a selection (with the mouse) dialog with the server to do some operation on data. Do I need wfs-t for this or maybe is better to collect the data in non httprequest-way and then treat the data as parameters for a query. I mean: in wfs-t is there a simpler way to edit data than collecting all the gids of the features and then building a query with these ids? > OpenLayers takes as a core tenet: "You can not talk to the server." > This > means you can't use XMLHttpRequest to do anything that is crucial to > functionality unless there is no other way. All configuration, for > example, is not taken from the WMS GetCapabilities, but is instead > taken > from local Javascript configuration -- duplicating information, but an > unfortunate consequence of the Same Origin Policy. Probably I didn't understood how things go in OL. When I instantiate a map and then a layer and then add a layer to the map, how goes the communication with the WFS server? Please forgive me if I'm asking all these basic information. I'm checking out the docs, and I'm asking this because the architectural aspects are far from clear to me now. Thanks a lot for helping Andrea Maschio http://www.superandrew.it From crschmidt at metacarta.com Sat Jan 19 08:42:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Http request? In-Reply-To: <367A51C4-64FE-4A91-926F-FF0EF7F378BC@gmail.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> <479081B0.9030805@gmail.com> <20080118120238.GB27855@alta.metacarta.com> <367A51C4-64FE-4A91-926F-FF0EF7F378BC@gmail.com> Message-ID: <20080119134200.GA2623@alta.metacarta.com> On Sat, Jan 19, 2008 at 01:16:15PM +0100, Andrea Maschio wrote: > > Il giorno 18/gen/08, alle ore 13:02, Christopher Schmidt ha scritto: > > > >The "X" in AJAX is for XML/XMLHttpRequest. XMLHttpRequest is not > >neccesary to receive tiles -- instead, the proper URL is simply stuck > >into an <img> tag, which (of course) can be loaded from other sites. > > Ok, so as I understand except fo wfs-t (that means transactional web > feature service and it's supposed to edit geometries and for this to > interact with the server) all other types of OL visualizations are > based on an image that is generated by the application server and > provided with layer information and other useful visualization stuff > in the xml file generated. Close. By default (/ in the common case), OL has *no* interaction with XML -- only with images. It uses the local Javascript configuration to figure out how it should request those images. > Sorry if it is obvious, but i'm trying to figure out what i need and > if OL covers my purposes. Because I need to select some feature and > then with the information collected by a selection (with the mouse) > dialog with the server to do some operation on data. I wasn't clear enough before: There are always ways *around* the Same Origin Policy. Specifically, you can set up a proxy on any server that you're serving from, such that all requests go through a specific URL (which is local) which does the actual talking to the server. This is a reasonably common use case: this is why wfs.html shows points on http://openlayers.org/dev/examples/wfs.html , even though the points are from a remote server. > Do I need wfs-t for this or maybe is better to collect the data in non > httprequest-way and then treat the data as parameters for a query. I > mean: in wfs-t is there a simpler way to edit data than collecting all > the gids of the features and then building a query with these ids? Even if you did, unless you only wanted to see them (as an image) you would still need to make a request to get the raw feature data: You will need to use a Proxy, or host your HTML in the same "Origin" as your server: see http://en.wikipedia.org/wiki/Same_origin_policy . > >OpenLayers takes as a core tenet: "You can not talk to the server." > >This > >means you can't use XMLHttpRequest to do anything that is crucial to > >functionality unless there is no other way. All configuration, for > >example, is not taken from the WMS GetCapabilities, but is instead > >taken > >from local Javascript configuration -- duplicating information, but an > >unfortunate consequence of the Same Origin Policy. > > Probably I didn't understood how things go in OL. When I instantiate a > map and then a layer and then add a layer to the map, how goes the > communication with the WFS server? Relatively few maps have WFS servers in use. Most of them use WMS -- and in that case, the only communication is putting <img src="http://wms.example.com/" /> tags into the page. For WFS, if the server is local, the server just uses XMLHttpRequest to open "/cgi-bin/mapserv?foo=bar" or what have you -- essentially, if you can form a valid relative URL to the server from the HTML page, you can talk to it with XMLHttpRequest. If the server is remote, a ProxyHost variable is set, which tells OpenLayers to send all its XMLHttpRequests through a single proxy first, which then passes on the request to the final destination. Does this help answer your questions? In general, I consider WFS a relative 'corner case' -- OpenLayers users seldom use it compared to the number of WMS users, for exactly the reasons you describe, so I apologize if my first email was less than clear. Regards, -- Christopher Schmidt MetaCarta From andrea.maschio at gmail.com Sat Jan 19 09:07:52 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Http request? In-Reply-To: <20080119134200.GA2623@alta.metacarta.com> References: <7920d0190801180142w9cf0080n4b5518e8fe3c6b16@mail.gmail.com> <479081B0.9030805@gmail.com> <20080118120238.GB27855@alta.metacarta.com> <367A51C4-64FE-4A91-926F-FF0EF7F378BC@gmail.com> <20080119134200.GA2623@alta.metacarta.com> Message-ID: <B74C62F9-E352-4083-A985-88B28DBAE1E4@gmail.com> Il giorno 19/gen/08, alle ore 14:42, Christopher Schmidt ha scritto: > > Does this help answer your questions? In general, I consider WFS a > relative 'corner case' -- OpenLayers users seldom use it compared to > the > number of WMS users, for exactly the reasons you describe, so I > apologize if my first email was less than clear. Christopher: thanks a lot, you are absoutely clear in explaining these architecture-related stuff. And yes, of course this helps me understand, for example that i must embed my application server in the same environment of Openlayers btw, using geoserver will make things a lot easier I think. Anyway what made me think of an ansynchronous interaction with the server was the fact that when you click on the examples, in every demo i tried I noticed that some information was displayed on an html table below the map. If I understand correctly what you tell, me, all information displayed are cached, or copied if you prefer in javascript variables? My application set (a routing application I'm projecting for my graduating thesis) is postgis and geoserver. Now I'm trying to understand if this will be enough or if I need to setup a further layer of a web application server that interacts with geoserver for the functionality I need to extend. -- Andrea Maschio http://www.superandrew.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080119/715e4f01/attachment.html From chris at powerhousetechgrp.com Sat Jan 19 16:46:25 2008 From: chris at powerhousetechgrp.com (chris1211) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Nodelist Info not working Message-ID: <14975579.post@talk.nabble.com> I am trying to get the feature info from my map that has multi layers and uses the layer switcher but all i get it a please wait the layer i need to quarry is the Panels layer can some one please help. thanks function init(){ var bounds = new OpenLayers.Bounds(-88.55546395,36.1137137,-87.98201304999999,36.5199723); map = new OpenLayers.Map('map', { controls: [] }); map.addControl(new OpenLayers.Control.PanZoomBar()); map.addControl(new OpenLayers.Control.MouseToolbar()); // support GetFeatureInfo map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodelist').innerHTML = "Loading... please wait..."; var url = map.layers[0].getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: map.layers[0].params.LAYERS, FEATURE_COUNT: 50, layers: 'Panels', styles: '', srs: 'EPSG:4326', WIDTH: map.size.w, HEIGHT: map.size.h}, "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/flood" ); OpenLayers.loadURL(url, '', this, setHTML, setHTML); Event.stop(e); }); map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')})); var hctiger_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://13.0.0.150:8080/geoserver/wms", {layers: 'District 9 Homeland'}, {'displayInLayerSwitcher':false} ); var zone_wms = new OpenLayers.Layer.WMS( "FEMA Flood Zones", "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/flood", {layers: "Flood_Hazard_Zones", transparent: "true", format: "image/png" }); map.addLayer(zone_wms); var panels_wms = new OpenLayers.Layer.WMS( "FEMA DFIRM Panels", "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/flood", {layers: "Panels", transparent: "true", format: "image/png" }); var precip_wms = new OpenLayers.Layer.WMS( "Total Storm Precip", "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/ntp.cgi?", {layers: "nexrad_stormtotal_precip", transparent: "true", format: "image/png" }, {isBaseLayer: false, opacity: 0.5}); map.addLayer(precip_wms); var nexrad_wms = new OpenLayers.Layer.WMS( "Current Nexrad Radar", "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?", {layers: "nexrad-n0r-m05min", transparent: "true", format: "image/png" }, {isBaseLayer: false, opacity: 0.5}); map.addLayer(nexrad_wms); var polywarn_wms = new OpenLayers.Layer.WMS( "NWS Polygon Warnings", "http://mesonet.agron.iastate.edu/cgi-bin/wms/us/wwa.cgi?", {layers: "warnings_p", transparent: "true", format: "image/png" }); map.addLayer(polywarn_wms); var zone = new OpenLayers.Layer.GML("Alert Zone Area", "zone.kml", {format: OpenLayers.Format.KML}); map.addLayer(zone) zone_wms.setVisibility(true); panels_wms.setVisibility(false); precip_wms.setVisibility(false); nexrad_wms.setVisibility(false); zone.setVisibility(true); map.addLayers([hctiger_wms, zone_wms, panels_wms,precip_wms,nexrad_wms,polywarn_wms,zone]); map.setCenter(new OpenLayers.LonLat(-88.328666,36.301788), 11); } </script> <title>Henry Co. EMA</title></head> <body onLoad="init()"> <h3 class="style2">Henry County EMA - Map Services Server </h3> <div id="layerswitcher" style="float:top; width: 20em;"></div> <div id="map"></div> <div id="docs"> <p>Info and Desc.</p> </div> <div id="nodelist">Click on the map to get feature infos</div> </body> </html> -- View this message in context: http://www.nabble.com/Nodelist-Info-not-working-tp14975579p14975579.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From snowdrop at ath.forthnet.gr Sun Jan 20 13:53:08 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems Message-ID: <14985142.post@talk.nabble.com> i'm trying to include a GetFeatureInfo query in my Openlayers app. In my html I have included the following code for onclick event : map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait..."; var url = quakes.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: quakes.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: 'Quakes', layers:'Quakes', WIDTH: map.size.w, HEIGHT: map.size.h}); OpenLayers.loadURL(url, '', this, setHTML,setHTML); OpenLayers.Event.stop(e); }); function setHTML(response) { OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText; } upon clicking on my point layer "Quakes" which is to be queried, i get no results, just the loading..please wait text and I get the following error in firebug [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] I've read about that it could be a proxy host problem but I don't think that that is my case since the layer to query is at the same server as my mapfile and PostGIS database. However I tried to setup a proxy host on the server, which seems to work fine, but it doesn't correct the error message. Do i really need a proxy host? Next step, I tried to query the server localy issuing the following GetFeatureInfo request : http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1.map&LAYERS=Quakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&QUERY_LAYERS=Quakes&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&FORMAT=image/png&SRS=EPSG:4326&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,34.5,29.8,42.1 it doesn't work however i think due to a different reason. When using INFO_FORMAT=text/html, i am prompted to open/save a file containing: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException> </ServiceException> </ServiceExceptionReport> when using INFO_FORMAT=text/plain i get the message The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Invalid at the top level of the document. Error processing resource 'http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpa... GetFeatureInfo results: ^ and when INFO_FORMAT=application/vnd.ogc.gml I am prompted to open/save a file whose contents are: <?xml version="1.0" encoding="ISO-8859-1"?> <msGMLOutput xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Quakes_layer> Does the template which i have defined in my mapfile has anything to do with text/plain or application/vnd.ogc.gml INFO_FORMAT or only with text/html format? In the error log of Mapserver,in the lase case, I can see the following information, that indicates that a record is being found but for a reason that i don't understand not finally shown. msPOSTGISLayerInitItemInfo called\r msPOSTGISLayerGetShape called for record = 721\r msPOSTGISLayerRetrievePK(): Found schema public, table quake_small.\r msPOSTGISLayerRetrievePGVersion(): query = select substring(version() from 12 for (position('on' in version()) - 13))\r msPOSTGISLayerRetrievePGVersion: Version String: 8.2.4\r msPOSTGISLayerRetrievePGVersion(): Found version 8, 2, 4\r msPOSTGISLayerRetrievePK: query = select attname from pg_attribute, pg_constraint, pg_class, pg_namespace where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'quake_small' and pg_class.relnamespace = pg_namespace.oid and pg_namespace.nspname = 'public' and pg_constraint.conkey[2] is null\r msPOSTGISLayerParseData: unique column = codee, srid='', geom_column_name = pos, table_name=public.quake_small\r msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') from public.quake_small WHERE codee = 721 \r msPOSTGISLayerClose datastatement: pos FROM public.quake_small\r msPOSTGISLayerClose -- query_result is NULL\r msConnPoolRelease(Quakes,user=postgres password=manolis dbname=macroseismic host=localhost port=5432,01BBD680)\r Error in my_thread_global_end(): 1 threads didn't exit\r I have defined a query results template in my mapfile which is the following: <!-- query template --> <html> <head> <title>MapServer - ItemQuery</title> </head> <body bgcolor="#ffffff"> Codee: [codee]<br> </body> </html> I kept it as simple as possible with only one attribute codee showing. Do i need a header and footer template too? The important parts of my mapfile are: WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "C:/temp/MapServer.log" METADATA WMS_TITLE "QuakeMap" TITLE="QuakeMap" WMS_ONLINERESOURCE="http://gaia.dbnet.ece.ntua.gr/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1.map&" wms_feature_info_mime_type "text/html" wms_srs "EPSG:4326" END END LAYER ....... METADATA WMS_TITLE="Quakes" wms_include_items "all" wms_srs "EPSG:4326" wms_extent "19.2 34.5 29.8 42.1" END DUMP TRUE TEMPLATE "Query Template results.html" ..... I'm totally confused here. I would appreciate some help. I read a lot of documentation and forum threads but i can't figure out the problem. -- View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14985142.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From snowdrop at ath.forthnet.gr Sun Jan 20 15:52:17 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems In-Reply-To: <14985142.post@talk.nabble.com> References: <14985142.post@talk.nabble.com> Message-ID: <14986713.post@talk.nabble.com> I think I figured out the local problem, it's in this line of Mapserver log: msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') from public.quake_small WHERE codee = 721 \r codee is the primary key in table quakes and it is a string. However mapserver treats it like a number, so correct query should have been msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') from public.quake_small WHERE codee = '0721' \r which returns results in Pgadmin query tool. But now what? should i change the data type of this field? -- View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14986713.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Sun Jan 20 16:33:37 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems In-Reply-To: <14985142.post@talk.nabble.com> Message-ID: <E1JGhng-00062P-00@smtp07.web.de> Hi Maria, First I would think, your query have no results to return. You need only a proxy, if you want to display the result of your query in a html-element of your page. Because you have to get the file, parse it and put it into your page. If you use window.open(url), then you don't need a proxy. But for div's etc., there is no property "src", where you can put your url (like the img src). When all runs on the same pc, you don't need a proxy, but you always have to use the same domain. Localhost is not the same as 127.0.0.1 etc. Why your GetFeatureInfoRequest wants to display as xml, i have no clue. You need no header and footer and in the mapfile you have declared text/html. It's all there. text/plain and gml seems to work, but the query returns no result. If the map snippet is that, what you use, then you have to include in the METADATA tag "wms_name" "Quakes". This is the link to the layer not wms_title. 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 Maria Panagou Gesendet: Sonntag, 20. Januar 2008 19:53 An: users@openlayers.org Betreff: [OpenLayers-Users] GetFeatureInfo problems i'm trying to include a GetFeatureInfo query in my Openlayers app. In my html I have included the following code for onclick event : map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait..."; var url = quakes.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: quakes.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: 'Quakes', layers:'Quakes', WIDTH: map.size.w, HEIGHT: map.size.h}); OpenLayers.loadURL(url, '', this, setHTML,setHTML); OpenLayers.Event.stop(e); }); function setHTML(response) { OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText; } upon clicking on my point layer "Quakes" which is to be queried, i get no results, just the loading..please wait text and I get the following error in firebug [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] I've read about that it could be a proxy host problem but I don't think that that is my case since the layer to query is at the same server as my mapfile and PostGIS database. However I tried to setup a proxy host on the server, which seems to work fine, but it doesn't correct the error message. Do i really need a proxy host? Next step, I tried to query the server localy issuing the following GetFeatureInfo request : http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1.map&LAYE RS=Quakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&QUERY_LAYERS=Quak es&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&FORMAT=image/pn g&SRS=EPSG:4326&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,34.5,29 .8,42.1 it doesn't work however i think due to a different reason. When using INFO_FORMAT=text/html, i am prompted to open/save a file containing: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException> </ServiceException> </ServiceExceptionReport> when using INFO_FORMAT=text/plain i get the message The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. ---------------------------------------------------------------------------- ---- Invalid at the top level of the document. Error processing resource 'http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpa... GetFeatureInfo results: ^ and when INFO_FORMAT=application/vnd.ogc.gml I am prompted to open/save a file whose contents are: <?xml version="1.0" encoding="ISO-8859-1"?> <msGMLOutput xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Quakes_layer> Does the template which i have defined in my mapfile has anything to do with text/plain or application/vnd.ogc.gml INFO_FORMAT or only with text/html format? In the error log of Mapserver,in the lase case, I can see the following information, that indicates that a record is being found but for a reason that i don't understand not finally shown. msPOSTGISLayerInitItemInfo called\r msPOSTGISLayerGetShape called for record = 721\r msPOSTGISLayerRetrievePK(): Found schema public, table quake_small.\r msPOSTGISLayerRetrievePGVersion(): query = select substring(version() from 12 for (position('on' in version()) - 13))\r msPOSTGISLayerRetrievePGVersion: Version String: 8.2.4\r msPOSTGISLayerRetrievePGVersion(): Found version 8, 2, 4\r msPOSTGISLayerRetrievePK: query = select attname from pg_attribute, pg_constraint, pg_class, pg_namespace where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'quake_small' and pg_class.relnamespace = pg_namespace.oid and pg_namespace.nspname = 'public' and pg_constraint.conkey[2] is null\r msPOSTGISLayerParseData: unique column = codee, srid='', geom_column_name = pos, table_name=public.quake_small\r msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') from public.quake_small WHERE codee = 721 \r msPOSTGISLayerClose datastatement: pos FROM public.quake_small\r msPOSTGISLayerClose -- query_result is NULL\r msConnPoolRelease(Quakes,user=postgres password=manolis dbname=macroseismic host=localhost port=5432,01BBD680)\r Error in my_thread_global_end(): 1 threads didn't exit\r I have defined a query results template in my mapfile which is the following: <!-- query template --> <html> <head> <title>MapServer - ItemQuery</title> </head> <body bgcolor="#ffffff"> Codee: [codee]<br> </body> </html> I kept it as simple as possible with only one attribute codee showing. Do i need a header and footer template too? The important parts of my mapfile are: WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "C:/temp/MapServer.log" METADATA WMS_TITLE "QuakeMap" TITLE="QuakeMap" WMS_ONLINERESOURCE="http://gaia.dbnet.ece.ntua.gr/cgi-bin/mapserv.exe?map=.. /htdocs/mpanagou/Quakes1.map&" wms_feature_info_mime_type "text/html" wms_srs "EPSG:4326" END END LAYER ....... METADATA WMS_TITLE="Quakes" wms_include_items "all" wms_srs "EPSG:4326" wms_extent "19.2 34.5 29.8 42.1" END DUMP TRUE TEMPLATE "Query Template results.html" ..... I'm totally confused here. I would appreciate some help. I read a lot of documentation and forum threads but i can't figure out the problem. -- View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14985142.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From thomas.rokkjaer at gmail.com Sun Jan 20 16:57:09 2008 From: thomas.rokkjaer at gmail.com (Thomas Rokkjaer) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Proxy settings again In-Reply-To: <14452481.post@talk.nabble.com> References: <14452481.post@talk.nabble.com> Message-ID: <14987454.post@talk.nabble.com> No-one with experience in something similar? -- View this message in context: http://www.nabble.com/Proxy-settings-again-tp14452481p14987454.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From snowdrop at ath.forthnet.gr Sun Jan 20 20:22:32 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems In-Reply-To: <E1JGhng-00062P-00@smtp07.web.de> References: <14985142.post@talk.nabble.com> <E1JGhng-00062P-00@smtp07.web.de> Message-ID: <14989566.post@talk.nabble.com> Thanks for your response. I managed to get the results locally by issuing the following address in IE: http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&W IDTH=650&HEIGHT=530&BBOX=19.2, 34.5, 29.8, 42.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes however through my OL html page I still get the same error "Permition denied.....". layer "quakes is defined as var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local.map', layers: 'Quakes', transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); which means that it is requested locally and proxy host is not needed. I set up i proxy host on my pc and added the line OpenLayers.ProxyHost = "http://127.0.0.1/cgi-bin/proxy.cgi?url="; to the html by visiting http://127.0.0.1/cgi-bin/proxy.cgi? I see openlayers page as i should but when i try: http://127.0.0.1/cgi-bin/proxy.cgi?url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes i get the message This proxy does not allow you to access that location. {'TMP': '/ms4w/tmp', 'HTTP_COOKIE': '__utma=96992031.910308952.1200877826.1200877826.1200877826.1; __utmb=96992031; __utmc=96992031; __utmz=96992031.1200877826.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)', 'SERVER_SOFTWARE': 'Apache/2.2.4 (Win32)', 'SCRIPT_NAME': '/cgi-bin/proxy.cgi', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes', 'PATH': 'C:\\WINDOWS\\SYSTEM32;C:\\WINDOWS;C:\\WINDOWS\\SYSTEM32\\WBEM;C:\\PROGRAM FILES\\VDMSOUND;C:\\PROGRAM FILES\\HYDRAULICS\\HEC\\HMS 222;C:\\PROGRAM FILES\\HYDRAULICS\\HEC\\HMS 222\\BIN;G:\\Raster Design 2007;C:\\ArcGIS\\arcexe9x\\bin;C:\\Program Files\\Common Files\\Autodesk Shared\\;C:\\PROGRA~1\\COMMON~1\\AUTODE~1\\GIS\\IMPORT~1\\2.0;C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files\\QuickTime\\QTSystem\\', 'GDAL_DRIVER_PATH': '/ms4w/gdalplugins', 'HTTP_CONNECTION': 'Keep-Alive', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_PORT': '80', 'SERVER_ADDR': '127.0.0.1', 'DOCUMENT_ROOT': 'C:/ms4w/Apache/htdocs', 'GDAL_DATA': '/ms4w/gdaldata', 'SYSTEMROOT': 'C:\\WINDOWS', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'SCRIPT_FILENAME': 'C:/ms4w/Apache/cgi-bin/proxy.cgi', 'SERVER_ADMIN': 'snowdrop@ath.forthnet.gr', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)', 'HTTP_HOST': '127.0.0.1', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'REQUEST_URI': '/cgi-bin/proxy.cgi?url=http://127.0.0.1/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes1local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&INFO_FORMAT=text/html&WIDTH=650&HEIGHT=530&BBOX=19.2,%2034.5,%2029.8,%2042.1&QUERY_LAYERS=Quakes&EXCEPTIONS=application/vnd.ogc.se_xml&X=185&Y=194&LAYERS=Quakes', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*', 'WINDIR': 'C:\\WINDOWS', 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_PORT': '2065', 'HTTP_ACCEPT_LANGUAGE': 'el', 'PROJ_LIB': '/ms4w/proj/nad/', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'} i'll try with window.open(url) cause that's what I probably want after all and it may be easier. -- View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14989566.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rdewit at users.sourceforge.net Sun Jan 20 20:23:46 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Proxy settings again In-Reply-To: <14987454.post@talk.nabble.com> References: <14452481.post@talk.nabble.com> <14987454.post@talk.nabble.com> Message-ID: <1200878626.6443.29.camel@bender> Hi Thomas, On Sun, 2008-01-20 at 13:57 -0800, Thomas Rokkjaer wrote: > No-one with experience in something similar? With the setup for Tomcat I can help you, not with running Python scripts on Windows. This works for us (although not too safe): all .cgi files within a all web apps will be executed: * rename the $CATALINA_HOME/server/lib/servlets-cgi.renametojar file to $CATALINA_HOME/server/lib/servlets-cgi.jar * Add to tomcat_dir/conf/web.xml: <servlet> <servlet-name>cgi</servlet-name> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>cgiPathPrefix</param-name> <param-value></param-value> </init-param> <load-on-startup>5</load-on-startup> </servlet> Hope this brings you any further. Kind regards, -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From snowdrop at ath.forthnet.gr Sun Jan 20 20:49:36 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Proxy settings again In-Reply-To: <14452481.post@talk.nabble.com> References: <14452481.post@talk.nabble.com> Message-ID: <14989801.post@talk.nabble.com> I think the first line for proxy.cgi in windows should be: #!C:/Python25/python.exe -u where python25 depends on the version of python you have installed Thomas Rokkjaer wrote: > > > How should the first line in the proxy.cgi (#!/usr/bin/env python > ) look like, when bearing in mind it is Windows? > > > > /Thomas > -- View this message in context: http://www.nabble.com/Proxy-settings-again-tp14452481p14989801.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From snowdrop at ath.forthnet.gr Sun Jan 20 20:58:07 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems In-Reply-To: <14989566.post@talk.nabble.com> References: <14985142.post@talk.nabble.com> <E1JGhng-00062P-00@smtp07.web.de> <14989566.post@talk.nabble.com> Message-ID: <14989908.post@talk.nabble.com> I substituted : OpenLayers.loadURL(url, '', this, setHTML,setHTML); with : window.open(url); and it all works fine. Thank you! -- View this message in context: http://www.nabble.com/GetFeatureInfo-problems-tp14985142p14989908.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rdewit at users.sourceforge.net Mon Jan 21 00:48:06 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] GetFeatureInfo problems In-Reply-To: <14986713.post@talk.nabble.com> References: <14985142.post@talk.nabble.com> <14986713.post@talk.nabble.com> Message-ID: <1200894486.6443.45.camel@bender> Hi Maria, I vaguely remember having had this problem before and having solved it quite easily. Just don't remember how (few years ago). Maybe you should take this issue to the postgis mailing list and see if they can help. If that doesn't help I can ask my former colleagues and see if they know. Kind regards, Roald On Sun, 2008-01-20 at 12:52 -0800, Maria Panagou wrote: > > I think I figured out the local problem, it's in this line of Mapserver log: > > > msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT > "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') > from public.quake_small WHERE codee = 721 \r > > codee is the primary key in table quakes and it is a string. However > mapserver treats it like a number, so correct query should have been > > msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT > "mag"::text,"depth"::text,asbinary(force_collection(force_2d(pos)),'NDR') > from public.quake_small WHERE codee = '0721' \r > > which returns results in Pgadmin query tool. > > But now what? should i change the data type of this field? -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From man_kills_everything at hotmail.com Mon Jan 21 04:14:22 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> Message-ID: <14993599.post@talk.nabble.com> Hi, I'm trying to call the following code but get "OpenLayers.Projection is not a constructor" from Firefox FireBug. var ll = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, bounds.bottom)); var ur = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.right, bounds.top)); var lltrans = ll.clone(); var urtrans = ur.clone(); lltrans.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:27700")); urtrans.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:27700")); Surely OpenLayers.Projection IS a constructor? Thanks, Jon Thomas Wood-4 wrote: > >> Message: 9 >> Date: Wed, 9 Jan 2008 07:25:26 -0500 >> From: Christopher Schmidt <crschmidt@metacarta.com> >> Subject: Re: [OpenLayers-Users] Re projecting Google >> To: Jon Britton <man_kills_everything@hotmail.com> >> Cc: users@openlayers.org >> Message-ID: <20080109122526.GA4446@alta.metacarta.com> >> Content-Type: text/plain; charset=us-ascii >> >> On Wed, Jan 09, 2008 at 03:27:11AM -0800, Jon Britton wrote: >> > >> > Hi, >> > I've got data in EPSG:27700 (British National Grid) and want to overlay >> it >> > on Google data. However, I want to reproject the Google data into >> EPSG:27700 >> > and not the other way around. Can this be done? >> >> Project the google *data*? Google ain't yours, man: You can't do >> anything fun with it (and definitely not reproject it!) >> >> > Alternatively, can OpenLayers convert from Google coordinates to >> EPSG:27700 >> > coordinates? All I need is to be able to get the 27700 coordinates of >> the >> > current view. >> >> It is possible, using the trunk versio of OpenLayers, to convert from >> Google coordinates to lon/lat. It is possible, using proj4js or perhaps >> a custom transformation function, to convert from lon/lat to EPSG:27700. >> I know of at least one person who has done it -- I'll try and remember >> who and get him to post. >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta > > I have written a class that plugs into the existing reprojection code. > > As you mention reprojecting coords here's a quick demo of usage: > ll = new OpenLayers.LonLat(-11554.3527964992,6686865.32722571); > ll.transform((new OpenLayers.Projection("EPSG:900913"), new > OpenLayers.Projection("EPSG:27700")); > > This will convert Google coords (Google sphericalMercator) to OSGB. > The class supports OSGB to and from Google (ESPG:900913), and OSGB to > and from WGS84 lat/long (ESPG:4326). > > Some of the math functions are poorly documented (it was a quick > convert from an already-existing conversion class) > > Finally, the code is here: > http://ge.pythonmoo.co.uk/maps/OpenLayers.Projection.OrdnanceSurvey.js > Please don't hotlink it. > > -- > Regards, > Thomas Wood > (Edgemaster) > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Reprojecting-Google-tp14709777p14993599.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From fabiodovidio at gmail.com Mon Jan 21 04:57:52 2008 From: fabiodovidio at gmail.com (Fabio D'Ovidio) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] WorldWind API Message-ID: <47946CA0.5020208@gmail.com> Hi all! I konw it's possible to use WMS service such as: var wms_nasa = new OpenLayers.Layer.WMS( "global_mosaic", "http://wms.jpl.nasa.gov/wms.cgi?", {layers: 'global_mosaic'}, optionsOLWMS); If i want to use WorlWind API as following ww = new OpenLayers.Layer.WorldWind( "Bathy", "http://worldwind25.arc.nasa.gov/tile/tile.aspx?", 36, 4, {T:"bmng.topo.bathy.200406"}); how ca i get layers list as "Bathy", "LANDSAT", ecc... Are they the same of WMS services? (By analogy Google types are: G_HYBRID, G_PHYSICAL_MAP, ecc...) Thanks -- Ing. Fabio D'Ovidio iQuadro - Informatica e Innovazione s.r.l. Via C. Pisacane 23, Aversa (CE) - 81031 Web : www.ii2.it Tel.: 081 197 57 600 mail: fabiodovidio@gmail.com From mpulis at gmail.com Mon Jan 21 07:57:47 2008 From: mpulis at gmail.com (Matthew Pulis) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] SVG on Mobile Browsers Message-ID: <52da01c85c2d$3a0ec7b0$ae2c5710$@com> Hi List, Crschmidt suggested that OpenLayers need to use SVG Basic in order to render the graphics. After some research about how SVG is enabled on browsers ( http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(SVG) ), one can see that SVG Basic is supported by Gecko (Firefox's Engine) and almost fully by Presto (Opera's Engine). However the problem is when OpenLayers needs to be used on a Mobile Device. I installed Opera Mobile, but crschmidt and also other research concluded that Opera Mobile supports only SVG Tiny, and Opera developers do not release any details about their projects. Thus, I tried to work on compiling Minimo (Gecko's Mobile Browser) with SVG support but am finding a lot of problems in doing so, so this fix is almost impossible too. Whilst testing on Opera Mobile, lite.html worked fine, and no errors + rendering happened quite fast, however when I tried to access : (http://boston.freemap.in/routing.html ) and some pages that I wrote following this example, I get an error at the start of the script building, map starts being built (no errors here) but when I click on the Start point - error again. Map building took extremely long and a lot of CPU Power. I am testing using a PocketPC Emulator with Windows Mobile 5.0 as OS. I took also crschmidt's advice to check the OpenLayers code and see if I can eliminate the SVG Basic support and just use SVG Tiny, but didn't much get where to change, especially since my Javascript knowledge is at a really newbie state! Anyone has any idea how I can fix this situation please? Anyone else had the same problem? If yes how did you solve it please? Is there any quick hack / fix that you suggest me? Any help will be extremely appreciated!! Regards Matthew _____ I am using the free version of SPAMfighter for private users. It has removed 20144 spam emails to date. Paying users do not have this message in their emails. Try SPAMfighter <http://www.spamfighter.com/len> for free now! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080121/8698da6e/attachment.html From crschmidt at metacarta.com Mon Jan 21 08:36:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <14993599.post@talk.nabble.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> <14993599.post@talk.nabble.com> Message-ID: <20080121133642.GA26920@alta.metacarta.com> On Mon, Jan 21, 2008 at 01:14:22AM -0800, Jon Britton wrote: > Surely OpenLayers.Projection IS a constructor? Sometimes it is, sometimes it isn't ;) Client-side projection support is only available in trunk, not in the 2.5 release at /api/OpenLayers.js. Regards, -- Christopher Schmidt MetaCarta From adams at terrestris.de Mon Jan 21 09:19:01 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial In-Reply-To: <20080117124018.GG15082@alta.metacarta.com> References: <478F330E.2040304@terrestris.de> <20080117124018.GG15082@alta.metacarta.com> Message-ID: <4794A9D5.60508@terrestris.de> Christopher Schmidt schrieb: >On Thu, Jan 17, 2008 at 11:50:54AM +0100, Till Adams wrote: > > >>dear list, >> >>we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). >> >>Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? >> >> > >No clue. If you find VirtualEarth documentation for how to connect, then >share a link to that, someone might be able to advise how to implement >it in OpenLayers. I'm not aware of any comercial VE usage inside OL at >this time. > >Regards, > > Chris, List, thanks for your reply. Our reseller found out, the access is nearly the same, they pointed us to this: http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&mkt=somekey Which is exactly the same, the in OL included "mapcontrol.js" does. As long as I use "URL?v=3" or "URL?v=4" which means older versions of VE, OL works. When I try v=5 or v=6 I get an error pointing to "Msn.VE.Pixel". I guess they result from a changing in the objectmodel of MS VE. Does anyone ever used the newer versions of VE OR has anybody a clue about how much adapting is needed, to re-write the VE-access for OL to newer versions of MS VE? I know the second is a question nobody really wants/is able to reply Regards, Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From crschmidt at metacarta.com Mon Jan 21 10:02:36 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial In-Reply-To: <4794A9D5.60508@terrestris.de> References: <478F330E.2040304@terrestris.de> <20080117124018.GG15082@alta.metacarta.com> <4794A9D5.60508@terrestris.de> Message-ID: <20080121150236.GB3365@alta.metacarta.com> On Mon, Jan 21, 2008 at 03:19:01PM +0100, Till Adams wrote: > Christopher Schmidt schrieb: > > >On Thu, Jan 17, 2008 at 11:50:54AM +0100, Till Adams wrote: > > > > > >>dear list, > >> > >>we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). > >> > >>Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? > >> > >> > > > >No clue. If you find VirtualEarth documentation for how to connect, then > >share a link to that, someone might be able to advise how to implement > >it in OpenLayers. I'm not aware of any comercial VE usage inside OL at > >this time. > > > >Regards, > > > > > Chris, List, > > thanks for your reply. Our reseller found out, the access is nearly the > same, they pointed us to > this: > > http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&mkt=somekey > > > Which is exactly the same, the in OL included "mapcontrol.js" does. As > long as I use "URL?v=3" or "URL?v=4" which > means older versions of VE, OL works. When I try v=5 or v=6 I get an > error pointing to "Msn.VE.Pixel". > I guess they result from a changing in the objectmodel of MS VE. > > Does anyone ever used the newer versions of VE OR has anybody a clue > about how much adapting is needed, > to re-write the VE-access for OL to newer versions of MS VE? Some people have looked into it. I'm not one of them, and I don't remember hearing any specific information back on what the resolution was. I doubt that there would be much in the way of changes: the VE Layer is most likely easily adapted, and the change is likely just a change in names, not in functionality, but I'm not sure. The code to look at is OpenLayers.Layer.VirtualEarth. Regards, -- Christopher Schmidt MetaCarta From adams at terrestris.de Mon Jan 21 10:21:06 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial In-Reply-To: <20080121150236.GB3365@alta.metacarta.com> References: <478F330E.2040304@terrestris.de> <20080117124018.GG15082@alta.metacarta.com> <4794A9D5.60508@terrestris.de> <20080121150236.GB3365@alta.metacarta.com> Message-ID: <4794B862.8020505@terrestris.de> Christopher Schmidt schrieb: >On Mon, Jan 21, 2008 at 03:19:01PM +0100, Till Adams wrote: > > >>Christopher Schmidt schrieb: >> >> >> >>>On Thu, Jan 17, 2008 at 11:50:54AM +0100, Till Adams wrote: >>> >>> >>> >>> >>>>dear list, >>>> >>>>we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). >>>> >>>>Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? >>>> >>>> >>>> >>>> >>>No clue. If you find VirtualEarth documentation for how to connect, then >>>share a link to that, someone might be able to advise how to implement >>>it in OpenLayers. I'm not aware of any comercial VE usage inside OL at >>>this time. >>> >>>Regards, >>> >>> >>> >>> >>Chris, List, >> >>thanks for your reply. Our reseller found out, the access is nearly the >>same, they pointed us to >>this: >> >>http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&mkt=somekey >> >> >>Which is exactly the same, the in OL included "mapcontrol.js" does. As >>long as I use "URL?v=3" or "URL?v=4" which >>means older versions of VE, OL works. When I try v=5 or v=6 I get an >>error pointing to "Msn.VE.Pixel". >>I guess they result from a changing in the objectmodel of MS VE. >> >>Does anyone ever used the newer versions of VE OR has anybody a clue >>about how much adapting is needed, >>to re-write the VE-access for OL to newer versions of MS VE? >> >> > >Some people have looked into it. I'm not one of them, and I don't >remember hearing any specific information back on what the resolution >was. I doubt that there would be much in the way of changes: the VE >Layer is most likely easily adapted, and the change is likely just a >change in names, not in functionality, but I'm not sure. > >The code to look at is OpenLayers.Layer.VirtualEarth. > >Regards, > > Chris, thanx, indeed, it doesn't look like too much stuff. We'll see - if we adapt it, I 'll report and track back. Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From euzuro at gmail.com Mon Jan 21 13:23:25 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] OL and VirtualEarth commercial In-Reply-To: <4794B862.8020505@terrestris.de> References: <478F330E.2040304@terrestris.de> <20080117124018.GG15082@alta.metacarta.com> <4794A9D5.60508@terrestris.de> <20080121150236.GB3365@alta.metacarta.com> <4794B862.8020505@terrestris.de> Message-ID: <6ae3fb590801211023y265e279cma2f2959c42adee88@mail.gmail.com> Thanks Till. Please do let us know if you make the changes, because we would like to have those updated in the OpenLayers core for sure. :-) Erik On 1/21/08, Till Adams <adams@terrestris.de> wrote: > Christopher Schmidt schrieb: > > >On Mon, Jan 21, 2008 at 03:19:01PM +0100, Till Adams wrote: > > > > > >>Christopher Schmidt schrieb: > >> > >> > >> > >>>On Thu, Jan 17, 2008 at 11:50:54AM +0100, Till Adams wrote: > >>> > >>> > >>> > >>> > >>>>dear list, > >>>> > >>>>we build an application, where the background-maps for our OL client are served by MS VE (this was not my decision ;-)). > >>>> > >>>>Now we have a commercial access (username/password) to MS VirtaulEarth - has anyone integrated commercial VE access in OL yet? Is there sth. like that key for google where I have to send username/password? > >>>> > >>>> > >>>> > >>>> > >>>No clue. If you find VirtualEarth documentation for how to connect, then > >>>share a link to that, someone might be able to advise how to implement > >>>it in OpenLayers. I'm not aware of any comercial VE usage inside OL at > >>>this time. > >>> > >>>Regards, > >>> > >>> > >>> > >>> > >>Chris, List, > >> > >>thanks for your reply. Our reseller found out, the access is nearly the > >>same, they pointed us to > >>this: > >> > >>http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&mkt=somekey > >> > >> > >>Which is exactly the same, the in OL included "mapcontrol.js" does. As > >>long as I use "URL?v=3" or "URL?v=4" which > >>means older versions of VE, OL works. When I try v=5 or v=6 I get an > >>error pointing to "Msn.VE.Pixel". > >>I guess they result from a changing in the objectmodel of MS VE. > >> > >>Does anyone ever used the newer versions of VE OR has anybody a clue > >>about how much adapting is needed, > >>to re-write the VE-access for OL to newer versions of MS VE? > >> > >> > > > >Some people have looked into it. I'm not one of them, and I don't > >remember hearing any specific information back on what the resolution > >was. I doubt that there would be much in the way of changes: the VE > >Layer is most likely easily adapted, and the change is likely just a > >change in names, not in functionality, but I'm not sure. > > > >The code to look at is OpenLayers.Layer.VirtualEarth. > > > >Regards, > > > > > Chris, > > thanx, indeed, it doesn't look like too much stuff. > We'll see - if we adapt it, I 'll report and track back. > > Till > > ---------------------------------------------------------- > terrestris GmbH & Co. KG > Irmintrudisstrasse 17 > 53111 Bonn > Germany > > Till Adams > Gesch?ftsf?hrung > > Tel: +49 (0)228 / 962 899-52 > Fax: +49 (0)228 / 962 899-57 > adams@terrestris.de > http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > --------------------------------------------------------- > > Komplement?rin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From elvin.pimentel at gmail.com Mon Jan 21 16:28:53 2008 From: elvin.pimentel at gmail.com (SenTnel) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Function to convert coordinates from one format to another Message-ID: <15007001.post@talk.nabble.com> Hi ! Im having problems setting some functionality to my openlayers app, and has to do with coordinates format: Openlayers gives me coords in this format: -69.96276793770809,18.44972224450691 I need to convert it to a format like this: N1826.9892W06957.7562 to send it to my gps to setup a geofence and this is the format the gps recognizes. Thanks ! :-D -- View this message in context: http://www.nabble.com/Function-to-convert-coordinates-from-one-format-to-another-tp15007001p15007001.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gregor at hostgis.com Mon Jan 21 16:33:53 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tooltips for Controls? Message-ID: <47950FC1.1030508@hostgis.com> This one sounded easer than it turned out to be. :) HTML elements can have a title attribute, and most browsers will show that text when the mouse hovers over the element. How may I apply this to OL Controls? I tried a few of the more obvious approaches, such as adding "this.div.title = 'Pan the map'" in initialize() but to no avail. Is this non-trivial to do? Is a 'title' param something that would be useful to add to Control itself for making a general solution to this? -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 grand.edgemaster at gmail.com Mon Jan 21 16:38:29 2008 From: grand.edgemaster at gmail.com (Thomas Wood) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Function to convert coordinates from one format to another In-Reply-To: <15007001.post@talk.nabble.com> References: <15007001.post@talk.nabble.com> Message-ID: <1e14d5320801211338t8d9bdc7nf6385f2c056c6843@mail.gmail.com> On Jan 21, 2008 9:28 PM, SenTnel <elvin.pimentel@gmail.com> wrote: > > Hi ! > > Im having problems setting some functionality to my openlayers app, and has > to do with coordinates format: > Openlayers gives me coords in this format: > > -69.96276793770809,18.44972224450691 > > I need to convert it to a format like this: > > N1826.9892W06957.7562 > > to send it to my gps to setup a geofence and this is the format the gps > recognizes. > > Thanks ! :-D > This is possible in the current development trunk, and in the upcoming 2.6 release. However, you need to know what the two coordinate formats are, do you have any further details about the second coordinate format? -- Regards, Thomas Wood (Edgemaster) From crschmidt at metacarta.com Mon Jan 21 16:42:08 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Function to convert coordinates from one format to another In-Reply-To: <1e14d5320801211338t8d9bdc7nf6385f2c056c6843@mail.gmail.com> References: <15007001.post@talk.nabble.com> <1e14d5320801211338t8d9bdc7nf6385f2c056c6843@mail.gmail.com> Message-ID: <20080121214207.GB3376@alta.metacarta.com> On Mon, Jan 21, 2008 at 09:38:29PM +0000, Thomas Wood wrote: > On Jan 21, 2008 9:28 PM, SenTnel <elvin.pimentel@gmail.com> wrote: > > > > Hi ! > > > > Im having problems setting some functionality to my openlayers app, and has > > to do with coordinates format: > > Openlayers gives me coords in this format: > > > > -69.96276793770809,18.44972224450691 > > > > I need to convert it to a format like this: > > > > N1826.9892W06957.7562 > > > > to send it to my gps to setup a geofence and this is the format the gps > > recognizes. > > > > Thanks ! :-D > > > > This is possible in the current development trunk, and in the upcoming > 2.6 release. Well, not really. Transforming the projection is supported, but this isn't related to the projection: it's just simple string manipulation. You'll note that '1826.989' is actually the degrees, minutes, and decimal minutes of the 18.44, and the same is true of -69.962 -> 69d 57.7562'. This is perfectly reasonablye to transform in your application, but it's unlikely that OpenLayers will ever make this transformation for you. Regards, -- Christopher Schmidt MetaCarta From linda.rawson at gmail.com Mon Jan 21 17:16:00 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tooltips for Controls? In-Reply-To: <47950FC1.1030508@hostgis.com> References: <47950FC1.1030508@hostgis.com> Message-ID: <6e9b30fb0801211416r4fcf4799v6945793cbe64ecd3@mail.gmail.com> I did this in the redraw: method of the panel.js itself with the following lines but it is a total hack and only for my application: var ctrlName = this.controls[i].CLASS_NAME.replace("OpenLayers.", "").replace("Control.",""); var title = null; if (ctrlName == "ZoomBox") { title = "Zoom to Location"; }; if (title != null) { element.title = title; } this.div.appendChild(element); A title would be great as well as the ability to hide/show a control. My understanding is that this title attribute is only good in IE. Linda Rawson On Jan 21, 2008 2:33 PM, Gregor Mosheh <gregor@hostgis.com> wrote: > This one sounded easer than it turned out to be. :) > > HTML elements can have a title attribute, and most browsers will show > that text when the mouse hovers over the element. > > How may I apply this to OL Controls? I tried a few of the more obvious > approaches, such as adding "this.div.title = 'Pan the map'" in > initialize() but to no avail. > > Is this non-trivial to do? Is a 'title' param something that would be > useful to add to Control itself for making a general solution to this? > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ <http://www.hostgis.com/> > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080121/de02420c/attachment.html From eric.c2c at gmail.com Mon Jan 21 17:38:03 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tooltips for Controls? In-Reply-To: <47950FC1.1030508@hostgis.com> References: <47950FC1.1030508@hostgis.com> Message-ID: <5ec103de0801211438h7f18ae5rbe699e5e15bf4487@mail.gmail.com> On Jan 21, 2008 10:33 PM, Gregor Mosheh <gregor@hostgis.com> wrote: > This one sounded easer than it turned out to be. :) > > HTML elements can have a title attribute, and most browsers will show > that text when the mouse hovers over the element. > > How may I apply this to OL Controls? I tried a few of the more obvious > approaches, such as adding "this.div.title = 'Pan the map'" in > initialize() but to no avail. > > Is this non-trivial to do? Is a 'title' param something that would be > useful to add to Control itself for making a general solution to this? I have used this for controls in a panel: control1.panel_div.title = "title1"; control2.panel_div.title = "title2"; For this to work your map fallThrough property must be set to true. Works on IE and FF. Hope this helps, -- Eric From snowdrop at ath.forthnet.gr Mon Jan 21 18:25:17 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? Message-ID: <15009098.post@talk.nabble.com> Hi all, supposedly i have 2 postgis tables "Earthquakes" and "Stations" which share a common attribute e.g quake code. Having displayed a map in OL showing the quakes, is it possible to click on an earthquake position and then openup a new window with results of getFeatureInfo results (so far I've gone) AND on the same window displaying a new OL map, showing only the selected quake plus related stations that have recorded it? This is something like querymap i guess but that would be a static image showing only the quake not stations or other base/overlay layers. I would like a fully functional map which could again be queried, e.g by clicking on a station, to display the record from this station for the specific quake. The problem with that i suppose is that OL must get its source wms from a specific mapfile, but could the mapfile be dynamic, that is to say have a filter on layer depending on html variable? >From what i can imagine something like that couldn't be possible. Or is it? Thanks in advance for any ideas. -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15009098.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From drrobison at openroadsconsulting.com Mon Jan 21 18:43:27 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> Message-ID: <47952E1F.2030108@openroadsconsulting.com> I am trying to get the OpenLayers.Control.ScaleBar working. I've added it to my map according to the example html. However, when my map draws, I get the units (in my case 'miles') but it displays at the bottom of the map and I get no scale bar. Its as if the scale bar is below the map and hidden. Any thoughts on how to get this to work correctly? Thanks, David -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 From gregor at hostgis.com Mon Jan 21 19:05:38 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tooltips for Controls? In-Reply-To: <5ec103de0801211438h7f18ae5rbe699e5e15bf4487@mail.gmail.com> References: <47950FC1.1030508@hostgis.com> <5ec103de0801211438h7f18ae5rbe699e5e15bf4487@mail.gmail.com> Message-ID: <47953352.3010903@hostgis.com> Eric Lemoine wrote: > I have used this for controls in a panel: > control1.panel_div.title = "title1"; > control2.panel_div.title = "title2"; That works. I see that the controls must be added to the panel before this can be used. It makes the code a tad more verbose, but does accomplish what I wanted. Thanks a lot, Eric. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 Mon Jan 21 19:09:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <47952E1F.2030108@openroadsconsulting.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> Message-ID: <20080122000900.GA30801@alta.metacarta.com> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: > I am trying to get the OpenLayers.Control.ScaleBar working. I've added > it to my map according to the example html. However, when my map draws, > I get the units (in my case 'miles') but it displays at the bottom of > the map and I get no scale bar. Its as if the scale bar is below the map > and hidden. Any thoughts on how to get this to work correctly? Thanks, David Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers does not currently have a ScaleBar control. Regards, -- Christopher Schmidt MetaCarta From drrobison at openroadsconsulting.com Mon Jan 21 19:10:11 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <20080122000900.GA30801@alta.metacarta.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> Message-ID: <47953463.4040402@openroadsconsulting.com> I was using the one in the tschaub sandbox. David Christopher Schmidt wrote: > On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: > >> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >> it to my map according to the example html. However, when my map draws, >> I get the units (in my case 'miles') but it displays at the bottom of >> the map and I get no scale bar. Its as if the scale bar is below the map >> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >> > > Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers > does not currently have a ScaleBar control. > > Regards, > -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080121/22cb5eae/attachment.html From carsella11 at msn.com Mon Jan 21 23:47:35 2008 From: carsella11 at msn.com (Mike Carsella) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] How can I set up the ESC key to cancel draw of a vector line feature Message-ID: <BLU131-DAV3EBCC3E6E764512D64E96C23E0@phx.gbl> What's the best way to set up the ESC key to cancel a draw of a vector line feature? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080121/c40a1b1b/attachment.html From man_kills_everything at hotmail.com Tue Jan 22 05:11:50 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <20080121133642.GA26920@alta.metacarta.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> <14993599.post@talk.nabble.com> <20080121133642.GA26920@alta.metacarta.com> Message-ID: <15015764.post@talk.nabble.com> Ok, I've imported the trunk version and the translation is working. How do I intercept the MousePosition control to translate the output into BNG? At the moment I just have: map.addControl(new OpenLayers.Control.MousePosition({element: $('position')})); Can this point to a function instead? (Sorry, my JS knowledge is limited!). Thanks, Jon Christopher Schmidt-4 wrote: > > On Mon, Jan 21, 2008 at 01:14:22AM -0800, Jon Britton wrote: >> Surely OpenLayers.Projection IS a constructor? > > Sometimes it is, sometimes it isn't ;) > > Client-side projection support is only available in trunk, not in the > 2.5 release at /api/OpenLayers.js. > > 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/Reprojecting-Google-tp14709777p15015764.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From marten.sward at smhi.se Tue Jan 22 05:22:31 2008 From: marten.sward at smhi.se (=?iso-8859-1?Q?Sw=E4rd_M=E5rten?=) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Change colors on a selected polygon (feature) Message-ID: <575A94F91D20704387D1C69A913E95EE01359178@CORRE.ad.smhi.se> Hello folks! How do I do to change the fill-color of a selected feature (polygon) from the default blue one? I just want a border around the selected feature but with the original fill-color... Best regards: M?rten ************************************************************************ Mvh: M?rten Sw?rd Systemutvecklare/Webbutvecklare, ITs SMHI, Sveriges Meteorologiska och Hydrologiska Institut Tel: +46 11 495 8469 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080122/a8c62546/attachment.html From andreas.hocevar at gmail.com Tue Jan 22 05:33:20 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Change colors on a selected polygon (feature) In-Reply-To: <575A94F91D20704387D1C69A913E95EE01359178@CORRE.ad.smhi.se> References: <575A94F91D20704387D1C69A913E95EE01359178@CORRE.ad.smhi.se> Message-ID: <4795C670.50005@gmail.com> Hi, Sw?rd M?rten wrote: > > How do I do to change the fill-color of a selected feature (polygon) > from the default blue one? I just want a border around the selected > feature but with the original fill-color? > You have to set the selectStyle property of OpenLayers.Control.SelectFeature. Currently, the selectStyle is a separate style and does not extend the feature style. So your requirement can only be fulfilled if you have the same fill-color for all features of your layer. See http://trac.openlayers.org/ticket/1260 for a patch if you want to have your feature style extended by the selectStyle. Regards, Andreas. From snowdrop at ath.forthnet.gr Tue Jan 22 06:39:32 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <15009098.post@talk.nabble.com> References: <15009098.post@talk.nabble.com> Message-ID: <15017106.post@talk.nabble.com> doing a little more research I guess what I need is WFS layers, not WMS. wfs can be queried with a filter condition which has nothing to do with the original mapfile, so I'll try that. -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15017106.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From marten.sward at smhi.se Tue Jan 22 06:47:38 2008 From: marten.sward at smhi.se (=?iso-8859-1?Q?Sw=E4rd_M=E5rten?=) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Change colors on a selected polygon (feature) In-Reply-To: <4795C670.50005@gmail.com> Message-ID: <575A94F91D20704387D1C69A913E95EE013591DD@CORRE.ad.smhi.se> Ok, thanks! But the system this will be used in is a production system for forecasting thunderstorms and sending warnings with SMS so I have to wait for an official release.. I'll have to figure out something else.. But thanks for you answer! Regards, M?rten ************************************************************************ Mvh: M?rten Sw?rd Systemutvecklare/Webbutvecklare, ITs SMHI, Sveriges Meteorologiska och Hydrologiska Institut Tel: +46 11 495 8469 -----Ursprungligt meddelande----- Fr?n: Andreas Hocevar [mailto:andreas.hocevar@gmail.com] Skickat: den 22 januari 2008 11:33 Till: Sw?rd M?rten Kopia: users@openlayers.org ?mne: Re: [OpenLayers-Users] Change colors on a selected polygon (feature) Hi, Sw?rd M?rten wrote: > > How do I do to change the fill-color of a selected feature (polygon) > from the default blue one? I just want a border around the selected > feature but with the original fill-color... > You have to set the selectStyle property of OpenLayers.Control.SelectFeature. Currently, the selectStyle is a separate style and does not extend the feature style. So your requirement can only be fulfilled if you have the same fill-color for all features of your layer. See http://trac.openlayers.org/ticket/1260 for a patch if you want to have your feature style extended by the selectStyle. Regards, Andreas. From crschmidt at metacarta.com Tue Jan 22 07:21:11 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <15015764.post@talk.nabble.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> <14993599.post@talk.nabble.com> <20080121133642.GA26920@alta.metacarta.com> <15015764.post@talk.nabble.com> Message-ID: <20080122122107.GA13236@alta.metacarta.com> On Tue, Jan 22, 2008 at 02:11:50AM -0800, Jon Britton wrote: > > Ok, I've imported the trunk version and the translation is working. I'm assuming you mean you've got proj4js loaded in your page and you can translate things. > How do I intercept the MousePosition control to translate the output into > BNG? I'm assuming your map has 'projection': new OpenLayers.Projection("EPSG:27658") or whatever. If so, then just add to your map options: 'displayProjection': new OpenLayers.Projection("EPSG:4326") And everything will translate for you automagically. Regards, -- Christopher Schmidt MetaCarta From man_kills_everything at hotmail.com Tue Jan 22 07:26:46 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <20080122122107.GA13236@alta.metacarta.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> <14993599.post@talk.nabble.com> <20080121133642.GA26920@alta.metacarta.com> <15015764.post@talk.nabble.com> <20080122122107.GA13236@alta.metacarta.com> Message-ID: <15017789.post@talk.nabble.com> Aha! Thanks. When you say "everything is translated for you" does that include ouputs from Bounds objects? I've got a custom control that allow the user to select an area of interest (which will be used for something else later). Will the bounding box for this selection be translated? thanks, Jon Christopher Schmidt-4 wrote: > > On Tue, Jan 22, 2008 at 02:11:50AM -0800, Jon Britton wrote: >> >> Ok, I've imported the trunk version and the translation is working. > > I'm assuming you mean you've got proj4js loaded in your page and you can > translate things. > >> How do I intercept the MousePosition control to translate the output into >> BNG? > > I'm assuming your map has 'projection': new > OpenLayers.Projection("EPSG:27658") or whatever. If so, then just add to > your map options: > > 'displayProjection': new OpenLayers.Projection("EPSG:4326") > > And everything will translate for you automagically. > > 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/Reprojecting-Google-tp14709777p15017789.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Jan 22 07:29:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Re projecting Google In-Reply-To: <15017789.post@talk.nabble.com> References: <14709777.post@talk.nabble.com> <1e14d5320801091336r31ea1aaj3ff67d2225e739a@mail.gmail.com> <14993599.post@talk.nabble.com> <20080121133642.GA26920@alta.metacarta.com> <15015764.post@talk.nabble.com> <20080122122107.GA13236@alta.metacarta.com> <15017789.post@talk.nabble.com> Message-ID: <20080122122956.GA14864@alta.metacarta.com> On Tue, Jan 22, 2008 at 04:26:46AM -0800, Jon Britton wrote: > > Aha! Thanks. When you say "everything is translated for you" does that > include ouputs from Bounds objects? > > I've got a custom control that allow the user to select an area of interest > (which will be used for something else later). Will the bounding box for > this selection be translated? Sorry, no: only the controls have this logic. (Since the getExtent function is used *internally*, it needs to use the projection of the map: I'm considering adding an option to let you control what it returns, but that's probably for 2.7.) However, any object returned from getBounds, getLonLat, etc. can be translated with: object.transform(map.getProjectionObject(), map.displayProjection); It will be transformed in place, and you can then use the bounds for further manipulation. Regards, -- Christopher Schmidt MetaCarta From david.fawcett at gmail.com Tue Jan 22 09:25:29 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tooltips for Controls? In-Reply-To: <6e9b30fb0801211416r4fcf4799v6945793cbe64ecd3@mail.gmail.com> References: <47950FC1.1030508@hostgis.com> <6e9b30fb0801211416r4fcf4799v6945793cbe64ecd3@mail.gmail.com> Message-ID: <ed718af50801220625y4885677dgbb57436296968c1b@mail.gmail.com> I am pretty sure that 'title' works in both IE and FireFox. It seems like for quite a while, people were using the 'alt' tags for this purpose. They only show mouse-over text in IE. David. On Jan 21, 2008 4:16 PM, Linda Rawson <linda.rawson@gmail.com> wrote: > I did this in the > > redraw: > method of the panel.js itself with the following lines but it is a total > hack and only for my application: > > var ctrlName = this.controls[i].CLASS_NAME.replace("OpenLayers.", > "").replace("Control.",""); > var title = null; > > if (ctrlName == "ZoomBox") { > title = "Zoom to Location"; > }; > if (title != null) { > element.title = title; > } > this.div.appendChild(element); > A title would be great as well as the ability to hide/show a control. > > My understanding is that this title attribute is only good in IE. > > Linda Rawson > On Jan 21, 2008 2:33 PM, Gregor Mosheh <gregor@hostgis.com> wrote: > > > This one sounded easer than it turned out to be. :) > > > > HTML elements can have a title attribute, and most browsers will show > > that text when the mouse hovers over the element. > > > > How may I apply this to OL Controls? I tried a few of the more obvious > > approaches, such as adding "this.div.title = 'Pan the map'" in > > initialize() but to no avail. > > > > Is this non-trivial to do? Is a 'title' param something that would be > > useful to add to Control itself for making a general solution to this? > > > > -- > > Gregor Mosheh / Greg Allensworth, BS, A+ > > System Administrator > > HostGIS cartographic development & hosting services > > http://www.HostGIS.com/ <http://www.hostgis.com/> > > > > "Remember that no one cares if you can back up, > > only if you can restore." - AMANDA > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > Linda Rawson > _______________________________________________ > 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/20080122/3b7681e3/attachment.html From mattsnape at gmail.com Tue Jan 22 13:47:19 2008 From: mattsnape at gmail.com (matthewsnape) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] tilecache layer Message-ID: <15025424.post@talk.nabble.com> I have a tilecache server projected to EPSG:27700. I have added it to my openlayers map as a read only tilecache. Although it works fine using the tilecache wms the OpenLayers.Layer.TileCache approach has some problems. At some scales the tiles are misaligned. A few tiles are simply at the wrong co-ordinates (although not all). Any ideas why this may be happening? -- View this message in context: http://www.nabble.com/tilecache-layer-tp15025424p15025424.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gregor at hostgis.com Tue Jan 22 15:12:38 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? Message-ID: <47964E36.2020103@hostgis.com> Hi, all. OL.Layer has a redraw() method, but experimentation and examination of the code has shown that it doesn't actually *reload* any of the data. Does anyone have code handy, to save me a few hours of reading the docs, to reload a WMS layer? The need is for use after the digitizer, to have the newly-inserted features redrawn. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 Tue Jan 22 15:14:11 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <47964E36.2020103@hostgis.com> References: <47964E36.2020103@hostgis.com> Message-ID: <47964E93.4030505@osgis.nl> this.layer.*mergeNewParams*({rand: Math.*random*()}) Best regards, Bart Gregor Mosheh schreef: > Hi, all. > > OL.Layer has a redraw() method, but experimentation and examination of > the code has shown that it doesn't actually *reload* any of the data. > Does anyone have code handy, to save me a few hours of reading the docs, > to reload a WMS layer? > > The need is for use after the digitizer, to have the newly-inserted > features redrawn. > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From bartvde at osgis.nl Tue Jan 22 15:15:18 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <47964E93.4030505@osgis.nl> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> Message-ID: <47964ED6.9060508@osgis.nl> Some copy and paste problems: this.layer.mergeNewParams({rand: Math.random()}); Best regards, Bart Bart van den Eijnden (OSGIS) schreef: > this.layer.*mergeNewParams*({rand: Math.*random*()}) > > Best regards, > Bart > > Gregor Mosheh schreef: > >> Hi, all. >> >> OL.Layer has a redraw() method, but experimentation and examination of >> the code has shown that it doesn't actually *reload* any of the data. >> Does anyone have code handy, to save me a few hours of reading the docs, >> to reload a WMS layer? >> >> The need is for use after the digitizer, to have the newly-inserted >> features redrawn. >> >> >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From gregor at hostgis.com Tue Jan 22 15:22:23 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <47964ED6.9060508@osgis.nl> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> Message-ID: <4796507F.9040709@hostgis.com> Bart van den Eijnden (OSGIS) wrote: > Some copy and paste problems: > this.layer.mergeNewParams({rand: Math.random()}); Aww, that's simple and elegant! Thanks, Bart. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 rdewit at users.sourceforge.net Tue Jan 22 18:38:10 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Change colors on a selected polygon (feature) In-Reply-To: <575A94F91D20704387D1C69A913E95EE013591DD@CORRE.ad.smhi.se> References: <575A94F91D20704387D1C69A913E95EE013591DD@CORRE.ad.smhi.se> Message-ID: <1201045090.6443.106.camel@bender> Hi M?rten, On Tue, 2008-01-22 at 12:47 +0100, Sw?rd M?rten wrote: > Ok, thanks! But the system this will be used in is a production system for forecasting thunderstorms and sending warnings with SMS so I have to wait for an official release.. Chances are quite big that this feature will be included in the next version of OL: 2.6. I presume that 2.6 will be released somewhere in March/April, so if you can wait for that, you should be fine. Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From rdewit at users.sourceforge.net Tue Jan 22 18:46:34 2008 From: rdewit at users.sourceforge.net (Roald de Wit) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <4796507F.9040709@hostgis.com> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> Message-ID: <1201045594.6443.112.camel@bender> Hi, On Tue, 2008-01-22 at 13:22 -0700, Gregor Mosheh wrote: > Bart van den Eijnden (OSGIS) wrote: > > Some copy and paste problems: > > this.layer.mergeNewParams({rand: Math.random()}); > > Aww, that's simple and elegant! Simple: yes, elegant: no. It would be nicer if any layer could be reloaded with something like layer.reload() or layer.refresh(). If there is more support for a more elegant way of refreshing, I'm more than happy to create a ticket to request for a feature like this. Greetings, Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From euzuro at gmail.com Tue Jan 22 18:48:16 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <1201045594.6443.112.camel@bender> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> <1201045594.6443.112.camel@bender> Message-ID: <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> something like forceRedraw()? On 1/22/08, Roald de Wit <rdewit@users.sourceforge.net> wrote: > Hi, > > On Tue, 2008-01-22 at 13:22 -0700, Gregor Mosheh wrote: > > Bart van den Eijnden (OSGIS) wrote: > > > Some copy and paste problems: > > > this.layer.mergeNewParams({rand: Math.random()}); > > > > Aww, that's simple and elegant! > > Simple: yes, elegant: no. It would be nicer if any layer could be > reloaded with something like layer.reload() or layer.refresh(). > > If there is more support for a more elegant way of refreshing, I'm more > than happy to create a ticket to request for a feature like this. > > Greetings, Roald > > -- > Roald de Wit > Software Engineer > roald.dewit@lisasoft.com > > Commercial Support for Open Source GIS Software > http://lisasoft.com/LISAsoft/SupportedProducts/ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From gregor at hostgis.com Tue Jan 22 19:31:30 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> <1201045594.6443.112.camel@bender> <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> Message-ID: <47968AE2.8000109@hostgis.com> Erik Uzureau wrote: > something like forceRedraw()? What occurs to me would be a bool arg to layer.redraw() If true (defaults false for backward compatibility?) then it does the mergeparams thing. It should be a one-line addition to redraw(). -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 euzuro at gmail.com Tue Jan 22 19:46:45 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <47968AE2.8000109@hostgis.com> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> <1201045594.6443.112.camel@bender> <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> <47968AE2.8000109@hostgis.com> Message-ID: <6ae3fb590801221646i19a9a300q1f0892f92cf5df58@mail.gmail.com> Excellent idea! There's still time to get this in 2.6 if you hurry. I'll help with the review Erik On 1/22/08, Gregor Mosheh <gregor@hostgis.com> wrote: > Erik Uzureau wrote: > > something like forceRedraw()? > > What occurs to me would be a bool arg to layer.redraw() If true > (defaults false for backward compatibility?) then it does the > mergeparams thing. > > It should be a one-line addition to redraw(). > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > 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 snowdrop at ath.forthnet.gr Tue Jan 22 19:57:42 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <15009098.post@talk.nabble.com> References: <15009098.post@talk.nabble.com> Message-ID: <15032612.post@talk.nabble.com> is it possible to use variable substitution in a layer creator url,in a header template file (getfeatureinfo) such as: var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local.map', layers: 'Quakes',ID=[codee] transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); where ID is filter condition, [codee] attribute from getfeatureinfo. in map file, layer quakes is defined by: DATA "pos FROM (select * from public.quake_small where codee1=%ID%) as foo using unique codee1 using SRID=4326" in OL, the declaration of quakes as following works: var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local.map', layers: 'Quakes',ID=721 transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); but i want id to be set dynamically as the value of codee attribute returned by getfeatureinforequest thank you -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15032612.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From marten.sward at smhi.se Wed Jan 23 02:26:45 2008 From: marten.sward at smhi.se (=?iso-8859-1?Q?Sw=E4rd_M=E5rten?=) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Catch load-error event on WMS-layer? Message-ID: <575A94F91D20704387D1C69A913E95EE01359359@CORRE.ad.smhi.se> Hello! I've looked around for a way to add a listener on a wms-layer that catches a load-error event but I didn't find many examples of that, and the one I've found I can't get to work.. Anyone out there how has an example how I can catch loading-error/time-out? Thanks! Regards: M?rten ************************************************************************ Mvh: M?rten Sw?rd Systemutvecklare/Webbutvecklare, ITs SMHI, Sveriges Meteorologiska och Hydrologiska Institut Tel: +46 11 495 8469 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080123/b685bcf7/attachment.html From eric.c2c at gmail.com Wed Jan 23 02:33:59 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <15032612.post@talk.nabble.com> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> Message-ID: <5ec103de0801222333v6c550d83k8c6a2c77366de851@mail.gmail.com> With MapServer passing mapfile variable values as GET params can be done, even with WMS I've been told. Check the MS doc. 2008/1/23, Maria Panagou <snowdrop@ath.forthnet.gr>: > > > is it possible to use variable substitution in a layer creator url,in a > header template file (getfeatureinfo) such as: > > var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", > "http://127.0.0.1/cgi-bin/mapserv.exe?", > {map: '../htdocs/mpanagou/Quakes1local.map', > layers: 'Quakes',ID=[codee] > transparent: true}, > {isBaseLayer:false, singletile:true, reproject: > true}); > > where ID is filter condition, [codee] attribute from getfeatureinfo. > > in map file, layer quakes is defined by: > > DATA "pos FROM (select * from public.quake_small where codee1=%ID%) as foo > using unique codee1 using SRID=4326" > > > in OL, the declaration of quakes as following works: > > var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", > "http://127.0.0.1/cgi-bin/mapserv.exe?", > {map: '../htdocs/mpanagou/Quakes1local.map', > layers: 'Quakes',ID=721 > transparent: true}, > {isBaseLayer:false, singletile:true, reproject: > true}); > > but i want id to be set dynamically as the value of codee attribute returned > by getfeatureinforequest > > thank you > -- > View this message in context: > http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15032612.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From progmls at googlemail.com Wed Jan 23 07:23:42 2008 From: progmls at googlemail.com (Guillaume Lom) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Google map, antimeridian and bounding box Message-ID: <40e43de90801230423t17c23597h78302fbc1503c8ec@mail.gmail.com> Hello, I am trying to display some markers on a Google map layers, along with bounding boxes. All is well except in on particular case: If I want to display a bounding box around Antartica, for instance, it does not expand around all longitudes, but only around the antimeridian, which means that I have a litte rectangle in the middle of the sea instead of having a big one covering the whole antartica. Is there a way to go around this while using google map? I could not find any... Here are the relevant javascript bits: var glayer = new OpenLayers.Layer.Google("Google Normal", { 'type': G_NORMAL_MAP}); var params; params.maxExtent=new OpenLayers.Bounds(-180,-90,180,90); var _map = new OpenLayers.Map('map', params) _map.addLayers([glayer]); var boxes = new OpenLayers.Layer.Boxes("portalsBoxes"); _map.addLayer(boxes); var bbounds = new OpenLayers.Bounds(-180, -90, 180, -61.4); boxes.addMarker(new OpenLayers.Marker.Box(bbounds), 'red', 1); Thanks for any help, Guillaume From andreas.hocevar at gmail.com Wed Jan 23 07:50:13 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <6ae3fb590801221646i19a9a300q1f0892f92cf5df58@mail.gmail.com> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> <1201045594.6443.112.camel@bender> <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> <47968AE2.8000109@hostgis.com> <6ae3fb590801221646i19a9a300q1f0892f92cf5df58@mail.gmail.com> Message-ID: <47973805.6070609@gmail.com> Just in case that this was overlooked: http://trac.openlayers.org/ticket/1295 covers this. Regards, Andreas. Erik Uzureau wrote: > Excellent idea! > > There's still time to get this in 2.6 if you hurry. I'll help with the review > > Erik > From man_kills_everything at hotmail.com Wed Jan 23 09:57:53 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Strange offset problem with OSGB projection Message-ID: <15043383.post@talk.nabble.com> Hi, I've been having a problem displaying EPSG:27700 data in OpenLayers. The data is server using GeoServer which I originally blamed for the problem, however it turns out it's my OL code since I have another OL client which works fine. I've attached both documents, cdstable.html is the client code I'm having a problem with and osgb-demo is the one which works correctly. I can't find what could be causing my problem so I was wondering if somebody could have a look. EPSG:27700 data appears offset towards to the NW by about 50-100metres. I'll also attach images of this (bad.jpg, good.jpg). Thanks, Jon http://www.nabble.com/file/p15043383/cdstable.html cdstable.html http://www.nabble.com/file/p15043383/osgb-demo.html osgb-demo.html http://www.nabble.com/file/p15043383/bad.jpg http://www.nabble.com/file/p15043383/good.jpg -- View this message in context: http://www.nabble.com/Strange-offset-problem-with-OSGB-projection-tp15043383p15043383.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From man_kills_everything at hotmail.com Wed Jan 23 09:58:42 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Strange offset problem with OSGB projection Message-ID: <15043383.post@talk.nabble.com> Hi, I've been having a problem displaying EPSG:27700 data in OpenLayers. The data is server using GeoServer which I originally blamed for the problem, however it turns out it's my OL code since I have another OL client which works fine. I've attached both documents, cdstable.html is the client code I'm having a problem with and osgb-demo is the one which works correctly. I can't find what could be causing my problem so I was wondering if somebody could have a look. EPSG:27700 data appears offset towards to the NW by about 50-100metres. I'll also attach images of this (bad.jpg, good.jpg). Thanks, Jon http://www.nabble.com/file/p15043383/cdstable.html cdstable.html http://www.nabble.com/file/p15043383/osgb-demo.html osgb-demo.html http://www.nabble.com/file/p15043383/bad.jpg http://www.nabble.com/file/p15043383/good.jpg -- View this message in context: http://www.nabble.com/Strange-offset-problem-with-OSGB-projection-tp15043383p15043383.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Wed Jan 23 10:18:46 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Content-type versus Content-Type Message-ID: <89126c28b0e4a1868f8de0e963da47e3@145.50.39.11> Hi list, first of all sorry for the cross-post, but I really have no clue if this is a Geoserver or an OpenLayers issue. I was using an OpenLayers AJAX POST call to Geoserver via proxy.cgi. Now it turns out that Geoserver will only accept the request if I change proxy.cgi from (note the lowercase type): headers = {"Content-Type": os.environ["CONTENT_TYPE"]} to: headers = {"Content-type": os.environ["CONTENT_TYPE"]} Where is this issue caused? Geoserver is running on Tomcat. Content-Type seems the correct notation to me. The error Geoserver gives me when using the former is: <ows:ExceptionText>Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade@1eb9bc0f</ows:ExceptionText> TIA. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From aaime at openplans.org Wed Jan 23 11:02:29 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] [Geoserver-users] Content-type versus Content-Type In-Reply-To: <89126c28b0e4a1868f8de0e963da47e3@145.50.39.11> References: <89126c28b0e4a1868f8de0e963da47e3@145.50.39.11> Message-ID: <47976515.40009@openplans.org> Bart van den Eijnden (OSGIS) ha scritto: > Hi list, > > first of all sorry for the cross-post, but I really have no clue if this is > a Geoserver or an OpenLayers issue. > > I was using an OpenLayers AJAX POST call to Geoserver via proxy.cgi. > > Now it turns out that Geoserver will only accept the request if I change > proxy.cgi from (note the lowercase type): > > headers = {"Content-Type": os.environ["CONTENT_TYPE"]} > > to: > > headers = {"Content-type": os.environ["CONTENT_TYPE"]} > > Where is this issue caused? Geoserver is running on Tomcat. Content-Type > seems the correct notation to me. > > The error Geoserver gives me when using the former is: > > <ows:ExceptionText>Could not determine geoserver request from http request > org.apache.catalina.connector.RequestFacade@1eb9bc0f</ows:ExceptionText> Hum, look like a GeoServer issue to me, http header parsing should not be case sensitive (I believe, haven't really checked). Justin, this is in the dispatcher. Opinions? Cheers Andrea From bartvde at osgis.nl Wed Jan 23 11:12:16 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE Message-ID: <144738d9a14d871d3912b3a717d40bd0@145.50.39.11> Hi list, is it correct that Format.XML does not yet support writing in IE? Does anybody have ideas on how to accomplish this? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From crschmidt at metacarta.com Wed Jan 23 11:22:35 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE In-Reply-To: <144738d9a14d871d3912b3a717d40bd0@145.50.39.11> References: <144738d9a14d871d3912b3a717d40bd0@145.50.39.11> Message-ID: <20080123162235.GA1852@alta.metacarta.com> On Wed, Jan 23, 2008 at 05:12:16PM +0100, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > is it correct that Format.XML does not yet support writing in IE? Nope, that's not correct. Format.XML supports writing in IE6 and IE7. Format.WFS does not correctly use Format.XML: there is an open ticket in 2.6 for this bug. This may be what you're running into. Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Wed Jan 23 11:23:40 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] redrawing a layer? In-Reply-To: <47973805.6070609@gmail.com> References: <47964E36.2020103@hostgis.com> <47964E93.4030505@osgis.nl> <47964ED6.9060508@osgis.nl> <4796507F.9040709@hostgis.com> <1201045594.6443.112.camel@bender> <6ae3fb590801221548u67467453j28f7acd7f1d6b909@mail.gmail.com> <47968AE2.8000109@hostgis.com> <6ae3fb590801221646i19a9a300q1f0892f92cf5df58@mail.gmail.com> <47973805.6070609@gmail.com> Message-ID: <47976A0C.6020204@hostgis.com> Andreas Hocevar wrote: > Just in case that this was overlooked: > http://trac.openlayers.org/ticket/1295 covers this. heh Yeah, I opened that last night and posted the patch. Things move fast here! I use that patch on our maps, and it makes things so much more elegant. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 cjmose at gmail.com Wed Jan 23 12:25:58 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Multiple linestrings originating from the same point disappear when zooming In-Reply-To: <d50f50e60801190331u243dea5bv9ce02ba7a28beeb5@mail.gmail.com> References: <14952551.post@talk.nabble.com> <d50f50e60801190313m352cd6b1r9328f5c323513949@mail.gmail.com> <d50f50e60801190331u243dea5bv9ce02ba7a28beeb5@mail.gmail.com> Message-ID: <15047347.post@talk.nabble.com> Thanks, I'll check out the patch and give that a try. I need to rework my example as I am experiencing the same problem in IE on my production app but the example I knocked up isn't showing that (in fact it looks like it errors out in ie). Pierre GIRAUD wrote: > > Ok, I just remembered this was an already discussed issue. > http://trac.openlayers.org/ticket/719 > http://trac.openlayers.org/ticket/713 > > Regards, > Pierre > > On Jan 19, 2008 12:13 PM, Pierre GIRAUD <bluecarto@gmail.com> wrote: >> For your information, your code is correct and I think I've found what >> part of the OpenLayers' code is involved in this weird behavior. >> I'll try to find out a fix or at least a workaround for this issue. If >> your interested in fixing this too, you can have a look at the SVG >> renderer (lib/OpenLayers/Renderer/SVG.js) and in particular at >> getShortString(), inValidRange() and MAX_PIXEL. >> >> I plan to fill a bug report, but don't hesitate to do so if your quicker. >> >> Hum, I was unable to reproduce the issue under IE with your example. >> >> Regards, >> Pierre >> >> >> >> On Jan 18, 2008 5:23 PM, cmose <cjmose@gmail.com> wrote: >> > >> > I have several lineStrings on a vector layer that originate from the >> same >> > lat/lon coordinate. As you zoom in on the map, the lineStrings randomly >> > disappear, e.g,. if you start out with 6 lines originating from the >> same >> > point, as you zoom in on the map lines will randomly disappear until >> there >> > are <6 lines left. >> > >> > I've verified this behavior using a modified version of >> vector-features.html >> > from the examples directory. I don't have anywhere to host my example >> but >> > here is my modified script declaration from vector-features.html: >> > >> > <script src="../lib/OpenLayers.js" type="text/javascript"></script> >> > <script type="text/javascript"> >> > var map; >> > >> > function init(){ >> > map = new OpenLayers.Map('map'); >> > var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", >> > "http://labs.metacarta.com/wms/vmap0", {layers: >> 'basic'} >> > ); >> > map.addLayer(layer); >> > >> > /* >> > * Layer style >> > */ >> > // we want opaque external graphics and non-opaque internal >> > graphics >> > var layer_style = OpenLayers.Util.extend({}, >> > OpenLayers.Feature.Vector.style['default']); >> > layer_style.fillOpacity = 0.2; >> > layer_style.graphicOpacity = 1; >> > >> > /* >> > * Blue style >> > */ >> > var style_blue = OpenLayers.Util.extend({}, layer_style); >> > style_blue.strokeColor = "blue"; >> > style_blue.fillColor = "blue"; >> > >> > /* >> > * Green style >> > */ >> > var style_green = { >> > strokeColor: "#00FF00", >> > strokeWidth: 2, >> > pointRadius: 4, >> > pointerEvents: "visiblePainted" >> > }; >> > >> > /* >> > * Mark style >> > */ >> > var style_mark = OpenLayers.Util.extend({}, >> > OpenLayers.Feature.Vector.style['default']); >> > // each of the three lines below means the same, if only >> one of >> > // them is active: the image will have a size of 24px, and >> the >> > // aspect ratio will be kept >> > // style_mark.pointRadius = 12; >> > // style_mark.graphicHeight = 24; >> > // style_mark.graphicWidth = 24; >> > >> > // if graphicWidth and graphicHeight are both set, the >> aspect >> > ratio >> > // of the image will be ignored >> > style_mark.graphicWidth = 24; >> > style_mark.graphicHeight = 20; >> > style_mark.graphicXOffset = -(style_mark.graphicWidth/2); >> // >> > this is the default value >> > style_mark.graphicYOffset = -style_mark.graphicHeight; >> > style_mark.externalGraphic = "../img/marker.png"; >> > >> > var vectorLayer = new OpenLayers.Layer.Vector("Simple >> Geometry", >> > {style: layer_style}); >> > var point = OpenLayers.Geometry.Point; >> > var ls = OpenLayers.Geometry.LineString; >> > var vector = OpenLayers.Feature.Vector; >> > var lines = []; >> > var features = []; >> > >> > lines.push(new ls([new point(1,50), new >> point(75,60)])); >> > lines.push(new ls([new point(1,50), new >> point(-60,-30)])); >> > lines.push(new ls([new point(1,50), new >> point(40,89)])); >> > lines.push(new ls([new point(1,50), new >> point(-150,-55)])); >> > lines.push(new ls([new point(1,50), new >> point(-30,-25)])); >> > lines.push(new ls([new point(1,50), new >> point(-5,-10)])); >> > >> > for(var i=0;i<lines.length;i++){ >> > features.push(new vector(lines[i], null, >> style_green)); >> > } >> > >> > map.addLayer(vectorLayer); >> > map.setCenter(new OpenLayers.LonLat(1,50), 5); >> > vectorLayer.addFeatures(features); >> > } >> > </script> >> > >> > The map is initialized with a zoom level of 5. Once you get to 8 one of >> the >> > 6 lines disappears, leaving you with 5. Zoom level 9 removes all but >> one >> > line. Zoom level 10 removes all lines. >> > >> > I haven't traced the issue beyond drawFeature() in Vector.js. I've >> tested >> > the example in Firefox thus far but in my app I'm getting the same >> behavior >> > in ff and ie. >> > >> > Any ideas? >> > -- >> > View this message in context: >> http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p14952551.html >> > Sent from the OpenLayers Users mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > Users mailing list >> > Users@openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> > >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p15047347.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jeff.yutzler at ionicenterprise.com Wed Jan 23 13:27:15 2008 From: jeff.yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] DOCTYPE / XHTML and fullScreen Mode Message-ID: <47978703.5070208@ionicenterprise.com> Hello. For a project I am working on, I was told to put the following block at the top of the HTML file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> I don't really know what this thing does, but it breaks the concept of: style=" height: 100%;" that is required to make OpenLayers maps full screen. To test this, just insert the block into examples/fullScreen.html. The page does not behave properly in either Firefox 2 or IE7. Can anyone explain what is going on here, or better yet, what to do about it? Thanks. -Jeff -------------- 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/20080123/77ad82df/jeff_yutzler.vcf From crschmidt at metacarta.com Wed Jan 23 14:20:41 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] DOCTYPE / XHTML and fullScreen Mode In-Reply-To: <47978703.5070208@ionicenterprise.com> References: <47978703.5070208@ionicenterprise.com> Message-ID: <20080123192040.GA8606@alta.metacarta.com> On Wed, Jan 23, 2008 at 01:27:15PM -0500, Jeff Yutzler wrote: > Hello. > For a project I am working on, I was told to put the following block at > the top of the HTML file: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > I don't really know what this thing does, but it breaks the concept of: > style=" height: 100%;" > that is required to make OpenLayers maps full screen. To test this, > just insert the block into examples/fullScreen.html. The page does not > behave properly in either Firefox 2 or IE7. > Can anyone explain what is going on here, or better yet, what to do > about it? "Learn XHTML, or don't use it"? :) The key thing to ask with CSS is "100% of *what*?" In HTML, *insert vague handwaving*, the body has a height that matches the Window height by default or something like that. In XHTML, it doesn't. So, your 'body' div is flat, and 100% of '0' is... 0! html, body { height: 100%; } Should get you to a more familiar state. Regards, -- Christopher Schmidt MetaCarta From cjmose at gmail.com Wed Jan 23 14:51:15 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Multiple linestrings originating from the same point disappear when zooming In-Reply-To: <15047347.post@talk.nabble.com> References: <14952551.post@talk.nabble.com> <d50f50e60801190313m352cd6b1r9328f5c323513949@mail.gmail.com> <d50f50e60801190331u243dea5bv9ce02ba7a28beeb5@mail.gmail.com> <15047347.post@talk.nabble.com> Message-ID: <15050415.post@talk.nabble.com> And follow-up part II. I was wrong about the ie being effected, I had some funky issue with something on my end. The patch listed in 713 is incorporated into the version of OL that I'm using (2.5) and I still experience the disappearing line phenomenon. I'll have to look into the code in SVG.js I suppose. cmose wrote: > > Thanks, I'll check out the patch and give that a try. I need to rework my > example as I am experiencing the same problem in IE on my production app > but the example I knocked up isn't showing that (in fact it looks like it > errors out in ie). > > > Pierre GIRAUD wrote: >> >> Ok, I just remembered this was an already discussed issue. >> http://trac.openlayers.org/ticket/719 >> http://trac.openlayers.org/ticket/713 >> >> Regards, >> Pierre >> >> On Jan 19, 2008 12:13 PM, Pierre GIRAUD <bluecarto@gmail.com> wrote: >>> For your information, your code is correct and I think I've found what >>> part of the OpenLayers' code is involved in this weird behavior. >>> I'll try to find out a fix or at least a workaround for this issue. If >>> your interested in fixing this too, you can have a look at the SVG >>> renderer (lib/OpenLayers/Renderer/SVG.js) and in particular at >>> getShortString(), inValidRange() and MAX_PIXEL. >>> >>> I plan to fill a bug report, but don't hesitate to do so if your >>> quicker. >>> >>> Hum, I was unable to reproduce the issue under IE with your example. >>> >>> Regards, >>> Pierre >>> >>> >>> >>> On Jan 18, 2008 5:23 PM, cmose <cjmose@gmail.com> wrote: >>> > >>> > I have several lineStrings on a vector layer that originate from the >>> same >>> > lat/lon coordinate. As you zoom in on the map, the lineStrings >>> randomly >>> > disappear, e.g,. if you start out with 6 lines originating from the >>> same >>> > point, as you zoom in on the map lines will randomly disappear until >>> there >>> > are <6 lines left. >>> > >>> > I've verified this behavior using a modified version of >>> vector-features.html >>> > from the examples directory. I don't have anywhere to host my example >>> but >>> > here is my modified script declaration from vector-features.html: >>> > >>> > <script src="../lib/OpenLayers.js" >>> type="text/javascript"></script> >>> > <script type="text/javascript"> >>> > var map; >>> > >>> > function init(){ >>> > map = new OpenLayers.Map('map'); >>> > var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", >>> > "http://labs.metacarta.com/wms/vmap0", {layers: >>> 'basic'} >>> > ); >>> > map.addLayer(layer); >>> > >>> > /* >>> > * Layer style >>> > */ >>> > // we want opaque external graphics and non-opaque >>> internal >>> > graphics >>> > var layer_style = OpenLayers.Util.extend({}, >>> > OpenLayers.Feature.Vector.style['default']); >>> > layer_style.fillOpacity = 0.2; >>> > layer_style.graphicOpacity = 1; >>> > >>> > /* >>> > * Blue style >>> > */ >>> > var style_blue = OpenLayers.Util.extend({}, layer_style); >>> > style_blue.strokeColor = "blue"; >>> > style_blue.fillColor = "blue"; >>> > >>> > /* >>> > * Green style >>> > */ >>> > var style_green = { >>> > strokeColor: "#00FF00", >>> > strokeWidth: 2, >>> > pointRadius: 4, >>> > pointerEvents: "visiblePainted" >>> > }; >>> > >>> > /* >>> > * Mark style >>> > */ >>> > var style_mark = OpenLayers.Util.extend({}, >>> > OpenLayers.Feature.Vector.style['default']); >>> > // each of the three lines below means the same, if only >>> one of >>> > // them is active: the image will have a size of 24px, and >>> the >>> > // aspect ratio will be kept >>> > // style_mark.pointRadius = 12; >>> > // style_mark.graphicHeight = 24; >>> > // style_mark.graphicWidth = 24; >>> > >>> > // if graphicWidth and graphicHeight are both set, the >>> aspect >>> > ratio >>> > // of the image will be ignored >>> > style_mark.graphicWidth = 24; >>> > style_mark.graphicHeight = 20; >>> > style_mark.graphicXOffset = -(style_mark.graphicWidth/2); >>> // >>> > this is the default value >>> > style_mark.graphicYOffset = -style_mark.graphicHeight; >>> > style_mark.externalGraphic = "../img/marker.png"; >>> > >>> > var vectorLayer = new OpenLayers.Layer.Vector("Simple >>> Geometry", >>> > {style: layer_style}); >>> > var point = OpenLayers.Geometry.Point; >>> > var ls = OpenLayers.Geometry.LineString; >>> > var vector = OpenLayers.Feature.Vector; >>> > var lines = []; >>> > var features = []; >>> > >>> > lines.push(new ls([new point(1,50), new >>> point(75,60)])); >>> > lines.push(new ls([new point(1,50), new >>> point(-60,-30)])); >>> > lines.push(new ls([new point(1,50), new >>> point(40,89)])); >>> > lines.push(new ls([new point(1,50), new >>> point(-150,-55)])); >>> > lines.push(new ls([new point(1,50), new >>> point(-30,-25)])); >>> > lines.push(new ls([new point(1,50), new >>> point(-5,-10)])); >>> > >>> > for(var i=0;i<lines.length;i++){ >>> > features.push(new vector(lines[i], null, >>> style_green)); >>> > } >>> > >>> > map.addLayer(vectorLayer); >>> > map.setCenter(new OpenLayers.LonLat(1,50), 5); >>> > vectorLayer.addFeatures(features); >>> > } >>> > </script> >>> > >>> > The map is initialized with a zoom level of 5. Once you get to 8 one >>> of the >>> > 6 lines disappears, leaving you with 5. Zoom level 9 removes all but >>> one >>> > line. Zoom level 10 removes all lines. >>> > >>> > I haven't traced the issue beyond drawFeature() in Vector.js. I've >>> tested >>> > the example in Firefox thus far but in my app I'm getting the same >>> behavior >>> > in ff and ie. >>> > >>> > Any ideas? >>> > -- >>> > View this message in context: >>> http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p14952551.html >>> > Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> > >>> > _______________________________________________ >>> > Users mailing list >>> > Users@openlayers.org >>> > http://openlayers.org/mailman/listinfo/users >>> > >>> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- View this message in context: http://www.nabble.com/Multiple-linestrings-originating-from-the-same-point-disappear-when-zooming-tp14952551p15050415.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Wed Jan 23 14:57:08 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <15032612.post@talk.nabble.com> Message-ID: <E1JHlif-0002fW-00@smtp07.web.de> Hi It should be possible in the way you wrote. But your declaration in the layer have to be: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'ID': '721'} ); map.addLayer(layer); and then you get this: http://labs.metacarta.com/wms/vmap0?LAYERS=basic&ID=721 ... 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 Maria Panagou Gesendet: Mittwoch, 23. Januar 2008 01:58 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] getFeatureInfo request in new window + new map? is it possible to use variable substitution in a layer creator url,in a header template file (getfeatureinfo) such as: var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local.map', layers: 'Quakes',ID=[codee] transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); where ID is filter condition, [codee] attribute from getfeatureinfo. in map file, layer quakes is defined by: DATA "pos FROM (select * from public.quake_small where codee1=%ID%) as foo using unique codee1 using SRID=4326" in OL, the declaration of quakes as following works: var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local.map', layers: 'Quakes',ID=721 transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); but i want id to be set dynamically as the value of codee attribute returned by getfeatureinforequest thank you -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15 009098p15032612.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From euzuro at gmail.com Wed Jan 23 18:50:18 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Look Who's Using OpenLayers Message-ID: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> http://chicago.everyblock.com/streets/state-pky/1400-1498n/map/ From guillaume.sueur at neogeo-online.net Wed Jan 23 19:11:04 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Look Who's Using OpenLayers In-Reply-To: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> References: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> Message-ID: <4797D798.5080706@neogeo-online.net> I've always known OpenLayers was helping building a better world ! Erik Uzureau a ?crit : > http://chicago.everyblock.com/streets/state-pky/1400-1498n/map/ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Guillaume From crschmidt at metacarta.com Wed Jan 23 19:31:43 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Look Who's Using OpenLayers In-Reply-To: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> References: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> Message-ID: <20080124003143.GA24783@alta.metacarta.com> On Wed, Jan 23, 2008 at 05:50:18PM -0600, Erik Uzureau wrote: > http://chicago.everyblock.com/streets/state-pky/1400-1498n/map/ Also using TileCache. (Which may be why they're using OpenLayers in the first place...) Regards, -- Christopher Schmidt MetaCarta From lancelot at inetnebr.com Wed Jan 23 21:48:27 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Look Who's Using OpenLayers In-Reply-To: <20080124003143.GA24783@alta.metacarta.com> References: <6ae3fb590801231550u377156d1t34d7a4ec49b90c72@mail.gmail.com> <20080124003143.GA24783@alta.metacarta.com> Message-ID: <4797FC7B.8050201@inetnebr.com> Tilecache is a very appealing element in the OpenLayers arsenal. Now if we had an open data source that could match the commercial pretiled stuff well that would be just cream on the coffee. ... er fizz in my soda... I dont do coffee ;-) Christopher Schmidt wrote: > On Wed, Jan 23, 2008 at 05:50:18PM -0600, Erik Uzureau wrote: > >> http://chicago.everyblock.com/streets/state-pky/1400-1498n/map/ >> > > Also using TileCache. (Which may be why they're using OpenLayers in the > first place...) > > Regards, > From bartvde at osgis.nl Thu Jan 24 04:27:30 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE Message-ID: <767be1593ecce7ac283fe27b9a6a116f@145.50.39.11> It was my own stupid mistake, I was using: var boundingFeature = OpenLayers.Format.XML.prototype.write(stChild); where I should have used: var xml = new OpenLayers.Format.XML(); var boundingFeature = xml.write(stChild); Best regards, Bart > -----Oorspronkelijk bericht----- > Van: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Verzonden: woensdag 23 januari 2008 17:23 > Aan: Bart van den Eijnden (OSGIS) > CC: users@openlayers.org > Onderwerp: Re: [OpenLayers-Users] Format.XML write and IE > > > On Wed, Jan 23, 2008 at 05:12:16PM +0100, Bart van den Eijnden (OSGIS) wrote: > &gt; Hi list, > &gt; > &gt; is it correct that Format.XML does not yet support writing in IE? > > Nope, that's not correct. Format.XML supports writing in IE6 and IE7. > > Format.WFS does not correctly use Format.XML: there is an open ticket in > 2.6 for this bug. This may be what you're running into. > > Regards, > -- > Christopher Schmidt > MetaCarta > > > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > > From crschmidt at metacarta.com Thu Jan 24 07:46:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE In-Reply-To: <767be1593ecce7ac283fe27b9a6a116f@145.50.39.11> References: <767be1593ecce7ac283fe27b9a6a116f@145.50.39.11> Message-ID: <20080124124643.GA8384@alta.metacarta.com> On Thu, Jan 24, 2008 at 10:27:30AM +0100, Bart van den Eijnden (OSGIS) wrote: > It was my own stupid mistake, I was using: > > var boundingFeature = OpenLayers.Format.XML.prototype.write(stChild); > > where I should have used: > > var xml = new OpenLayers.Format.XML(); > var boundingFeature = xml.write(stChild); Was this as the result of documentation somewhere? Copy paste? It's not the first time I've seen it happen, and I'd like to know why people do it, if we can. As a rule, if you're not working on the code in lib/, you shoudl never have a '.prototype.' in your code. (I think.) Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Thu Jan 24 08:33:03 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE Message-ID: <1f3a0f250602aa8b19422a987eede176@145.50.39.11> Right, maybe it's working too much with Ext, and having singletons for this kind of stuff, like Ext.DomHelper. I would "expect" Format.XML to be a singleton as well. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Christopher Schmidt <crschmidt@metacarta.com> Naar: Bart van den Eijnden OSGIS <bartvde@osgis.nl> Cc: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] Format.XML write and IE Datum: 24/01/08 10:46 > On Thu, Jan 24, 2008 at 10:27:30AM +0100, Bart van den Eijnden (OSGIS) wrote: > &gt; It was my own stupid mistake, I was using: > &gt; > &gt; var boundingFeature = OpenLayers.Format.XML.prototype.write(stChild); > &gt; > &gt; where I should have used: > &gt; > &gt; var xml = new OpenLayers.Format.XML(); > &gt; var boundingFeature = xml.write(stChild); > > Was this as the result of documentation somewhere? Copy paste? It's not > the first time I've seen it happen, and I'd like to know why people do > it, if we can. > > As a rule, if you're not working on the code in lib/, you shoudl never > have a '.prototype.' in your code. (I think.) > > Regards, > -- > Christopher Schmidt > MetaCarta > > From jeff.yutzler at ionicenterprise.com Thu Jan 24 09:33:49 2008 From: jeff.yutzler at ionicenterprise.com (Jeff Yutzler) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] DOCTYPE / XHTML and fullScreen Mode In-Reply-To: <20080123192040.GA8606@alta.metacarta.com> References: <47978703.5070208@ionicenterprise.com> <20080123192040.GA8606@alta.metacarta.com> Message-ID: <4798A1CD.8030705@ionicenterprise.com> Thanks, Chris. I feel like this web development stuff has me doing a lot of vague handwaving. Christopher Schmidt wrote: > "Learn XHTML, or don't use it"? :) > The key thing to ask with CSS is "100% of *what*?" In HTML, *insert > vague handwaving*, the body has a height that matches the Window height > by default or something like that. In XHTML, it doesn't. So, your 'body' > div is flat, and 100% of '0' is... 0! > > html, body { height: 100%; } > > Should get you to a more familiar state. > > Regards, > -------------- 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/20080124/1d0094e3/jeff_yutzler.vcf From snowdrop at ath.forthnet.gr Thu Jan 24 20:01:33 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <E1JHlif-0002fW-00@smtp07.web.de> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> Message-ID: <15079002.post@talk.nabble.com> thanks for your response. If i want to set the id as a specific value e.g ID=721 then i'm able to do that. what i really need is to set the id dynamically, using an attribute value returned from a getFeatureInfo request. That is to say, something like: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'ID': '[attribute_name'} ); map.addLayer(layer); but this doesn't seem to work. does it matter if [attribute_name] is in the header.html or in the main template ? It should be possible in the way you wrote. But your declaration in the layer have to be: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'ID': '721'} ); map.addLayer(layer); and then you get this: http://labs.metacarta.com/wms/vmap0?LAYERS=basic&ID=721 ... -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15079002.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Fri Jan 25 03:29:01 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <15079002.post@talk.nabble.com> Message-ID: <E1JIJvs-0004ok-00@smtp08.web.de> Hi, Try mergeNewParams: aLyr = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(aLyr); aLyr.mergeNewParams({ID: yourValue}); 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 Maria Panagou Gesendet: Freitag, 25. Januar 2008 02:02 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] getFeatureInfo request in new window + new map? thanks for your response. If i want to set the id as a specific value e.g ID=721 then i'm able to do that. what i really need is to set the id dynamically, using an attribute value returned from a getFeatureInfo request. That is to say, something like: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'ID': '[attribute_name'} ); map.addLayer(layer); but this doesn't seem to work. does it matter if [attribute_name] is in the header.html or in the main template ? It should be possible in the way you wrote. But your declaration in the layer have to be: layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'ID': '721'} ); map.addLayer(layer); and then you get this: http://labs.metacarta.com/wms/vmap0?LAYERS=basic&ID=721 ... -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15 009098p15079002.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From cranio at quipo.it Fri Jan 25 06:07:48 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Bug with custom markers? Message-ID: <15085502.post@talk.nabble.com> Hi all. I've created a map with some markers on it. By clicking on the marker, a popup is shown with some ajax-retrieved data. And all goes fine. Strange thing though: if i don't specify any custom icon and go with the default one, all is fine. When I try to insert a custom PNG as icon, suddenly the marker doesn't fire any click event. Is it a bug or what? ------------------------------ For further info, here's the JS function that creates the icon and the one for the marker: [...] var size = new OpenLayers.Size(26,26); var offset = new OpenLayers.Pixel(-(size.w/2),-(size.h/2)); var icon = new OpenLayers.Icon('/path-to-icons/1.png',size,offset); aM(icon,lon,lat,0); [...] function aM(icon,lon,lat,id) { var ll = gmap.forwardMercator(lon,lat); feature = new OpenLayers.Feature(gmap,ll); var marker = feature.createMarker(); marker.icon=icon; // <--- I HAD TO DO THIS WAY CUZ I USED feature.createMarker ... MAYBE I SHOULDN'T? markers.addMarker(marker); marker.id=id; marker.events.register("mousedown", marker, mousedown); } -- View this message in context: http://www.nabble.com/Bug-with-custom-markers--tp15085502p15085502.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Fri Jan 25 07:40:15 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Bug with custom markers? In-Reply-To: <15085502.post@talk.nabble.com> References: <15085502.post@talk.nabble.com> Message-ID: <20080125124011.GA2831@alta.metacarta.com> On Fri, Jan 25, 2008 at 03:07:48AM -0800, Cranio wrote: > > Hi all. > > I've created a map with some markers on it. By clicking on the marker, a > popup is shown with some ajax-retrieved data. And all goes fine. > > Strange thing though: if i don't specify any custom icon and go with the > default one, all is fine. When I try to insert a custom PNG as icon, > suddenly the marker doesn't fire any click event. > > Is it a bug or what? > > ------------------------------ > > For further info, here's the JS function that creates the icon and the one > for the marker: > > [...] > > var size = new OpenLayers.Size(26,26); > var offset = new OpenLayers.Pixel(-(size.w/2),-(size.h/2)); > var icon = new OpenLayers.Icon('/path-to-icons/1.png',size,offset); > aM(icon,lon,lat,0); > > [...] > > function aM(icon,lon,lat,id) > { > var ll = gmap.forwardMercator(lon,lat); > feature = new OpenLayers.Feature(gmap,ll); > var marker = feature.createMarker(); > marker.icon=icon; // <--- I HAD TO DO THIS WAY CUZ I USED > feature.createMarker ... MAYBE I SHOULDN'T? Correct, you shouldn't. Instead, the third property of your Feature() object should be a 'data' hash with an icon variable: Feature(gmap, ll, {icon:new OpenLayers.Icon()}) Regards, -- Christopher Schmidt MetaCarta From cranio at quipo.it Fri Jan 25 07:52:14 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Bug with custom markers? In-Reply-To: <20080125124011.GA2831@alta.metacarta.com> References: <15085502.post@talk.nabble.com> <20080125124011.GA2831@alta.metacarta.com> Message-ID: <15087111.post@talk.nabble.com> Thanks, I already spotted this by having a look at the source code, and mod'd my code to: feature = new OpenLayers.Feature(gmap,ll,{icon:new OpenLayers.Icon('icon.png',size,offset)}); but still mouse clicks are not recognized. Any other clue or similar issues out there? > function aM(icon,lon,lat,id) > { > var ll = gmap.forwardMercator(lon,lat); > feature = new OpenLayers.Feature(gmap,ll); > var marker = feature.createMarker(); > marker.icon=icon; // <--- I HAD TO DO THIS WAY CUZ I USED > feature.createMarker ... MAYBE I SHOULDN'T? Correct, you shouldn't. Instead, the third property of your Feature() object should be a 'data' hash with an icon variable: Feature(gmap, ll, {icon:new OpenLayers.Icon()}) 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/Bug-with-custom-markers--tp15085502p15087111.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ivaxoyar at hotmail.com Fri Jan 25 09:14:47 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Map backgroundimage In-Reply-To: <15079002.post@talk.nabble.com> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> Message-ID: <BAY127-W359A2672081EC74011073CCC390@phx.gbl> I have a map that needs a lot of time to be loaded and i would like to know if there is any possibility to add a background image to the map, with an image that shows what you'll see in the map, while the map is loading. In that way the user would not appreciate the loading time. Is it possible? Does anybody knows a way to accelerate my map? thanks, xavi _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080125/0c9c830a/attachment.html From adams at terrestris.de Fri Jan 25 09:21:15 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Map backgroundimage In-Reply-To: <BAY127-W359A2672081EC74011073CCC390@phx.gbl> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> <BAY127-W359A2672081EC74011073CCC390@phx.gbl> Message-ID: <4799F05B.40705@terrestris.de> Xavier Rayo schrieb: > > > > > I have a map that needs a lot of time to be loaded and i would like to > know if there is any possibility to add a background image to the map, > with an image that shows what you'll see in the map, while the map is > loading. In that way the user would not appreciate the loading time. > Is it possible? > Does anybody knows a way to accelerate my map? > > thanks, > > xavi > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> > >------------------------------------------------------------------------ > >_______________________________________________ >Users mailing list >Users@openlayers.org >http://openlayers.org/mailman/listinfo/users > > Xavier, 1) there are kinds of start/end event you can dedicate to every object. just send a div to the map until the specific layer finished (end-event) loading. see also: http://openlayers.org/pipermail/trac/2007-July/002265.html 2) It might be helpful, if you would talk a little bit more about WHAT kind of map-service is slowly (UMN, WMS, WFS, Text, .... ??) ;-) Best regards, Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From ivaxoyar at hotmail.com Fri Jan 25 09:32:00 2008 From: ivaxoyar at hotmail.com (Xavier Rayo) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Map backgroundimage In-Reply-To: <4799F05B.40705@terrestris.de> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> <BAY127-W359A2672081EC74011073CCC390@phx.gbl> <4799F05B.40705@terrestris.de> Message-ID: <BAY127-W41DA2BBB3808C5109E120ECC390@phx.gbl> In my map i'm using two services, one is a text layer wich works so fast and has no problems, and another with wms layers, using mapserver, wich is the one that is very slow. In the ticket you told me, speaks about wfs layers, can it be use with wms layers? do you know any example where i can see how to use it?... thanks!! xavi > Date: Fri, 25 Jan 2008 15:21:15 +0100> From: adams@terrestris.de> To: ivaxoyar@hotmail.com> CC: users@openlayers.org> Subject: Re: [OpenLayers-Users] Map backgroundimage> > Xavier Rayo schrieb:> > >> >> >> >> > I have a map that needs a lot of time to be loaded and i would like to > > know if there is any possibility to add a background image to the map, > > with an image that shows what you'll see in the map, while the map is > > loading. In that way the user would not appreciate the loading time. > > Is it possible?> > Does anybody knows a way to accelerate my map?> > > > thanks,> > > > xavi> >> > ------------------------------------------------------------------------> > Express yourself instantly with MSN Messenger! MSN Messenger > > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>> >> >------------------------------------------------------------------------> >> >_______________________________________________> >Users mailing list> >Users@openlayers.org> >http://openlayers.org/mailman/listinfo/users> > > >> Xavier,> > 1) there are kinds of start/end event you can dedicate to every object.> just send a div to the map until the specific layer finished > (end-event) loading.> see also: http://openlayers.org/pipermail/trac/2007-July/002265.html> > 2) It might be helpful, if you would talk a little bit more about WHAT > kind of map-service is slowly (UMN, WMS, WFS, Text, .... ??)> ;-)> > Best regards, Till> > > ----------------------------------------------------------> terrestris GmbH & Co. KG> Irmintrudisstrasse 17> 53111 Bonn> Germany> > Till Adams> Gesch?ftsf?hrung> > Tel: +49 (0)228 / 962 899-52> Fax: +49 (0)228 / 962 899-57> adams@terrestris.de > http://www.terrestris.de> Amtsgericht Bonn, HRA 6835> ---------------------------------------------------------> > Komplement?rin:> > terrestris Verwaltungs GmbH> > vertreten durch:> Hinrich Paulsen, Till Adams> > > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080125/96c0b77f/attachment.html From lancelot at inetnebr.com Fri Jan 25 09:33:49 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Map backgroundimage In-Reply-To: <4799F05B.40705@terrestris.de> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> <BAY127-W359A2672081EC74011073CCC390@phx.gbl> <4799F05B.40705@terrestris.de> Message-ID: <4799F34D.7010602@inetnebr.com> I would like to see the load start and load end reflected in the LayerSwitcher if nothing else make a className style change for a layers listing ;-) Till Adams wrote: > Xavier Rayo schrieb: > > >> >> >> I have a map that needs a lot of time to be loaded and i would like to >> know if there is any possibility to add a background image to the map, >> with an image that shows what you'll see in the map, while the map is >> loading. In that way the user would not appreciate the loading time. >> Is it possible? >> Does anybody knows a way to accelerate my map? >> >> thanks, >> >> xavi >> >> ------------------------------------------------------------------------ >> Express yourself instantly with MSN Messenger! MSN Messenger >> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> > Xavier, > > 1) there are kinds of start/end event you can dedicate to every object. > just send a div to the map until the specific layer finished > (end-event) loading. > see also: http://openlayers.org/pipermail/trac/2007-July/002265.html > > 2) It might be helpful, if you would talk a little bit more about WHAT > kind of map-service is slowly (UMN, WMS, WFS, Text, .... ??) > ;-) > > Best regards, Till > > > ---------------------------------------------------------- > terrestris GmbH & Co. KG > Irmintrudisstrasse 17 > 53111 Bonn > Germany > > Till Adams > Gesch?ftsf?hrung > > Tel: +49 (0)228 / 962 899-52 > Fax: +49 (0)228 / 962 899-57 > adams@terrestris.de > http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > --------------------------------------------------------- > > Komplement?rin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > From adams at terrestris.de Fri Jan 25 09:39:00 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Map backgroundimage In-Reply-To: <BAY127-W41DA2BBB3808C5109E120ECC390@phx.gbl> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> <BAY127-W359A2672081EC74011073CCC390@phx.gbl> <4799F05B.40705@terrestris.de> <BAY127-W41DA2BBB3808C5109E120ECC390@phx.gbl> Message-ID: <4799F484.7070101@terrestris.de> Xavier, sorry, I have no visible example, we use a kind of that for logging the access to our client. to 2) The performance for UMN is highly customable, so I think it would be good to post your exact configuration, data-source, etc. to the UMN Users list (or tell it to me and I'll have a quick look, but be fast, weekend is coming closer!) > In my map i'm using two services, > one is a text layer wich works so fast and has no problems, and > another with wms layers, using mapserver, wich is the one that is very > slow. > In the ticket you told me, speaks about wfs layers, can it be use with > wms layers? do you know any example where i can see how to use it?... > thanks!! > > xavi > > > > ------------------------------------------------------------------------ > > > Date: Fri, 25 Jan 2008 15:21:15 +0100 > > From: adams@terrestris.de > > To: ivaxoyar@hotmail.com > > CC: users@openlayers.org > > Subject: Re: [OpenLayers-Users] Map backgroundimage > > > > Xavier Rayo schrieb: > > > > > > > > > > > > > > > > > I have a map that needs a lot of time to be loaded and i would > like to > > > know if there is any possibility to add a background image to the > map, > > > with an image that shows what you'll see in the map, while the map is > > > loading. In that way the user would not appreciate the loading time. > > > Is it possible? > > > Does anybody knows a way to accelerate my map? > > > > > > thanks, > > > > > > xavi > > > > > > > ------------------------------------------------------------------------ > > > Express yourself instantly with MSN Messenger! MSN Messenger > > > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> > > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >Users mailing list > > >Users@openlayers.org > > >http://openlayers.org/mailman/listinfo/users > > > > > > > > Xavier, > > > > 1) there are kinds of start/end event you can dedicate to every object. > > just send a div to the map until the specific layer finished > > (end-event) loading. > > see also: http://openlayers.org/pipermail/trac/2007-July/002265.html > > > > 2) It might be helpful, if you would talk a little bit more about WHAT > > kind of map-service is slowly (UMN, WMS, WFS, Text, .... ??) > > ;-) > > > > Best regards, Till > > > > > > ---------------------------------------------------------- > > terrestris GmbH & Co. KG > > Irmintrudisstrasse 17 > > 53111 Bonn > > Germany > > > > Till Adams > > Gesch?ftsf?hrung > > > > Tel: +49 (0)228 / 962 899-52 > > Fax: +49 (0)228 / 962 899-57 > > adams@terrestris.de > > http://www.terrestris.de > > Amtsgericht Bonn, HRA 6835 > > --------------------------------------------------------- > > > > Komplement?rin: > > > > terrestris Verwaltungs GmbH > > > > vertreten durch: > > Hinrich Paulsen, Till Adams > > > > > > > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From fred at waterwegwijzer.nl Fri Jan 25 10:48:22 2008 From: fred at waterwegwijzer.nl (Fred WaterWegWijzer) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Bug with custom markers? In-Reply-To: <15087111.post@talk.nabble.com> Message-ID: <000c01c85f69$b84eb5b0$0100a8c0@SALON> I have the same problem in FF. IE it works OK! Can't see the problem (Firebug). Regards, Fred van Beelen (BICT) www.waterwegwijzer.nl -----Oorspronkelijk bericht----- Van: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Namens Cranio Verzonden: vrijdag 25 januari 2008 13:52 Aan: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] Bug with custom markers? Thanks, I already spotted this by having a look at the source code, and mod'd my code to: feature = new OpenLayers.Feature(gmap,ll,{icon:new OpenLayers.Icon('icon.png',size,offset)}); but still mouse clicks are not recognized. Any other clue or similar issues out there? > function aM(icon,lon,lat,id) > { > var ll = gmap.forwardMercator(lon,lat); > feature = new OpenLayers.Feature(gmap,ll); > var marker = feature.createMarker(); > marker.icon=icon; // <--- I HAD TO DO THIS WAY CUZ I USED > feature.createMarker ... MAYBE I SHOULDN'T? Correct, you shouldn't. Instead, the third property of your Feature() object should be a 'data' hash with an icon variable: Feature(gmap, ll, {icon:new OpenLayers.Icon()}) 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/Bug-with-custom-markers--tp15085502p15087111.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From dejung.gewissler at oit.state.nj.us Fri Jan 25 12:36:03 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] proj4js/projection question Message-ID: <479A1E03.1030902@oit.state.nj.us> Hi All- My base layers are in NJ State Plane (EPSG:102711) and I would like a custom click handler to alert the coordinates in DD ("EPSG:4326"). The alert happens with the state plane coords and not them reprojected. Here's what I've done so far (perhaps it is not all necessary?): - added to head <script type="text/javascript" src="proj4js/lib/proj4js-compressed.js"></script> - added the following to the click handler: var sourceProj = new Proj4js.Proj(map.getProjectionObject()); var destProj = new Proj4js.Proj("EPSG:4326"); var lonlat = map.getLonLatFromViewPortPx(e.xy); var point = new OpenLayers.Geometry.Point(lonlat.lon, lonlat.lat); OpenLayers.Projection.transform(point, sourceProj, destProj); alert(point.x +" "+ point.y); I am also getting an error in Firebug that it can't find http://127.0.0.1/ol/lib/defs/EPSG102711.js I guess you need to have a custom js file for each projection??? If so, how do I create one? If there is an easier way to do this, I am all ears! Thanks, Dejung From madair at dmsolutions.ca Fri Jan 25 12:47:13 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] proj4js/projection question In-Reply-To: <479A1E03.1030902@oit.state.nj.us> References: <479A1E03.1030902@oit.state.nj.us> Message-ID: <479A20A1.10108@dmsolutions.ca> That error is normal and expected. What happens is that proj4js first tries to load the projection definition from the local server and if it can't find it (that's the error you see) it will try to look it up from spatialreference.org. However to do that you need to define a proxy script like Proj4js.proxyScript = 'proxy.cgi'; so that it can make the Ajax request to the other domain. Alternatively, you can manually save the projection definition to a file and include that using a <script> tag similar to the other projection definition files: http://spatialreference.org/ref/epsg/102711/proj4js/ Mike Dejung Gewissler wrote: > Hi All- > > My base layers are in NJ State Plane (EPSG:102711) and I would like a > custom click handler to alert the coordinates in DD ("EPSG:4326"). The > alert happens with the state plane coords and not them reprojected. > Here's what I've done so far (perhaps it is not all necessary?): > > - added to head <script type="text/javascript" > src="proj4js/lib/proj4js-compressed.js"></script> > - added the following to the click handler: > var sourceProj = new Proj4js.Proj(map.getProjectionObject()); > var destProj = new Proj4js.Proj("EPSG:4326"); > var lonlat = map.getLonLatFromViewPortPx(e.xy); > var point = new OpenLayers.Geometry.Point(lonlat.lon, lonlat.lat); > OpenLayers.Projection.transform(point, sourceProj, destProj); > alert(point.x +" "+ point.y); > > I am also getting an error in Firebug that it can't find > http://127.0.0.1/ol/lib/defs/EPSG102711.js > I guess you need to have a custom js file for each projection??? If so, > how do I create one? > > If there is an easier way to do this, I am all ears! > > Thanks, > Dejung > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From eric.keefauver at mtu.edu Fri Jan 25 13:01:19 2008 From: eric.keefauver at mtu.edu (D. Eric Keefauver) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Layer Switcher Question Message-ID: <2041.198.111.191.186.1201284079.squirrel@huskymail.mtu.edu> Hello all, I apologize if this should be a developer post but I am curious as to how one might capture the base layer name that is active base layer within the layer switcher and place it on the map page once the user collapses the layer switcher. We want to have a visual place holder for the active base layer name so users are aware and always reminded of what they are viewing. Has anyone down this before? Thank you in advance, Eric Eric Keefauver Research Scientist Michigan Tech Research Institute (MTRI) From snowdrop at ath.forthnet.gr Fri Jan 25 13:37:31 2008 From: snowdrop at ath.forthnet.gr (Maria Panagou) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <E1JIJvs-0004ok-00@smtp08.web.de> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <E1JHlif-0002fW-00@smtp07.web.de> <15079002.post@talk.nabble.com> <E1JIJvs-0004ok-00@smtp08.web.de> Message-ID: <15094131.post@talk.nabble.com> Thank you all for your help. It finally works like this: var str="[codee1]"; var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", "http://127.0.0.1/cgi-bin/mapserv.exe?", {map: '../htdocs/mpanagou/Quakes1local_filter.map', layers: 'Quakes',id:str,transparent: true}, {isBaseLayer:false, singletile:true, reproject: true}); Hi, Try mergeNewParams: aLyr = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(aLyr); aLyr.mergeNewParams({ID: yourValue}); Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -- View this message in context: http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15094131.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Fri Jan 25 17:58:12 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Google map, antimeridian and bounding box In-Reply-To: <40e43de90801230423t17c23597h78302fbc1503c8ec@mail.gmail.com> References: <40e43de90801230423t17c23597h78302fbc1503c8ec@mail.gmail.com> Message-ID: <5ec103de0801251458td41d859i81bf65fc30022063@mail.gmail.com> On Jan 23, 2008 1:23 PM, Guillaume Lom <progmls@googlemail.com> wrote: > Hello, > > I am trying to display some markers on a Google map layers, along with > bounding boxes. > > All is well except in on particular case: > > If I want to display a bounding box around Antartica, for instance, it > does not expand around all longitudes, but only around the > antimeridian, which means that I have a litte rectangle in the middle > of the sea instead of having a big one covering the whole antartica. > > Is there a way to go around this while using google map? I could not find any... > > Here are the relevant javascript bits: > > var glayer = new OpenLayers.Layer.Google("Google Normal", { 'type': > G_NORMAL_MAP}); > var params; > params.maxExtent=new OpenLayers.Bounds(-180,-90,180,90); > var _map = new OpenLayers.Map('map', params) > _map.addLayers([glayer]); > var boxes = new OpenLayers.Layer.Boxes("portalsBoxes"); > _map.addLayer(boxes); > var bbounds = new OpenLayers.Bounds(-180, -90, 180, -61.4); > boxes.addMarker(new OpenLayers.Marker.Box(bbounds), 'red', 1); You can try the following (absolutely untested!!) : var _map = new OpenLayers.Map('map'); var glayer = new OpenLayers.Layer.Google("Google Normal", { 'type':G_NORMAL_MAP 'sphericalMercator': true }); var boxes = new OpenLayers.Layer.Boxes("portalsBoxes"); _map.addLayers([glayer, boxes]); var bbounds = new OpenLayers.Bounds(-180, -90, 180, -61.4); bbounds.transform(new OpenLayers.Projection("EPSG:4326), new OpenLayers.Projection("EPSG:900913")); boxes.addMarker(new OpenLayers.Marker.Box(bbounds), 'red', 1); Explanation: google doesn't use the EPSG:4326 projection, it uses EPSG:900913. So you need to reproject your EPSG:4326 data to be able to display it on top of the google layer. Hope this helps, -- Eric From eric.c2c at gmail.com Fri Jan 25 18:09:41 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Layer Switcher Question In-Reply-To: <2041.198.111.191.186.1201284079.squirrel@huskymail.mtu.edu> References: <2041.198.111.191.186.1201284079.squirrel@huskymail.mtu.edu> Message-ID: <5ec103de0801251509k74f41ff8t7d6e6d312fd719cf@mail.gmail.com> On Jan 25, 2008 7:01 PM, D. Eric Keefauver <eric.keefauver@mtu.edu> wrote: > Hello all, > > I apologize if this should be a developer post but I am curious as to how > one might capture the base layer name that is active base layer within the > layer switcher and place it on the map page once the user collapses the > layer switcher. We want to have a visual place holder for the active base > layer name so users are aware and always reminded of what they are > viewing. The base layer is referenced in the map object. For example to get the name of the base layer you do map.baseLayer.name. Hope I'm answering your question... -- Eric From penyaskito at gmail.com Fri Jan 25 18:21:44 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Layer Switcher Question In-Reply-To: <5ec103de0801251509k74f41ff8t7d6e6d312fd719cf@mail.gmail.com> References: <2041.198.111.191.186.1201284079.squirrel@huskymail.mtu.edu> <5ec103de0801251509k74f41ff8t7d6e6d312fd719cf@mail.gmail.com> Message-ID: <e8254e3c0801251521y2d275bfcwaf63e5e846e158d3@mail.gmail.com> And you should listen to the changebaselayer event... Something like this.map.events.register("changebaselayer", this, updateActiveLayerName); and function updateActiveLayerName(evt) { document.getElementById("mylbl").innerText = map.baseLayer.name; } This code is untested (written directly on the mail), but gives you a hint. On Jan 26, 2008 12:09 AM, Eric Lemoine <eric.c2c@gmail.com> wrote: > On Jan 25, 2008 7:01 PM, D. Eric Keefauver <eric.keefauver@mtu.edu> wrote: > > Hello all, > > > > I apologize if this should be a developer post but I am curious as to how > > one might capture the base layer name that is active base layer within the > > layer switcher and place it on the map page once the user collapses the > > layer switcher. We want to have a visual place holder for the active base > > layer name so users are aware and always reminded of what they are > > viewing. > > The base layer is referenced in the map object. For example to get the > name of the base layer you do map.baseLayer.name. > > Hope I'm answering your question... > > -- > Eric > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Regards, Christian L?pez Esp?nola From tschaub at openplans.org Fri Jan 25 22:31:44 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Format.XML write and IE In-Reply-To: <1f3a0f250602aa8b19422a987eede176@145.50.39.11> References: <1f3a0f250602aa8b19422a987eede176@145.50.39.11> Message-ID: <479AA9A0.7000003@openplans.org> Hey- Bart van den Eijnden (OSGIS) wrote: > Right, maybe it's working too much with Ext, and having singletons for this > kind of stuff, like Ext.DomHelper. > > I would "expect" Format.XML to be a singleton as well. > In general, we don't want the parsers to be singletons because 1) some of them have options for configuration, and 2) some parsers inherit from others (as is the case with XML). This could all be handled differently, but the "class"ical pattern is pervasive in the library. Tim > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Christopher Schmidt <crschmidt@metacarta.com> > Naar: Bart van den Eijnden OSGIS <bartvde@osgis.nl> > Cc: users@openlayers.org > Onderwerp: Re: [OpenLayers-Users] Format.XML write and IE > Datum: 24/01/08 10:46 > >> On Thu, Jan 24, 2008 at 10:27:30AM +0100, Bart van den Eijnden (OSGIS) > wrote: >> &gt; It was my own stupid mistake, I was using: >> &gt; >> &gt; var boundingFeature = OpenLayers.Format.XML.prototype.write(stChild); > >> &gt; >> &gt; where I should have used: >> &gt; >> &gt; var xml = new OpenLayers.Format.XML(); >> &gt; var boundingFeature = xml.write(stChild); >> >> Was this as the result of documentation somewhere? Copy paste? It's not >> the first time I've seen it happen, and I'd like to know why people do >> it, if we can. >> >> As a rule, if you're not working on the code in lib/, you shoudl never >> have a '.prototype.' in your code. (I think.) >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> >> > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,479893a1211102092453641! > From tschaub at openplans.org Sat Jan 26 01:28:16 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <47953463.4040402@openroadsconsulting.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> Message-ID: <479AD300.4070100@openplans.org> Hey- David R Robison wrote: > I was using the one in the tschaub sandbox. David > If you take a look at the patch for the scale bar, you'll see there are some changes required to the default stylesheet. http://trac.openlayers.org/attachment/ticket/24/scalebar.patch In addition, you'll want to add your stylesheet with a link tag instead of relying on the default dynamically added stylesheet. <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> Thanks for trying it out. Write back if you still have any trouble with it. Tim > Christopher Schmidt wrote: >> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >> >>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>> it to my map according to the example html. However, when my map draws, >>> I get the units (in my case 'miles') but it displays at the bottom of >>> the map and I get no scale bar. Its as if the scale bar is below the map >>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>> >> >> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >> does not currently have a ScaleBar control. >> >> Regards, >> > > -- > > David R Robison > Open Roads Consulting, Inc. > 708 S. Battlefield Blvd., Chesapeake, VA 23322 > phone: (757) 546-3401 > e-mail: drrobison@openroadsconsulting.com > web: http://openroadsconsulting.com > blog: http://therobe.blogspot.com > book: http://www.xulonpress.com/book_detail.php?id=2579 > > > > !DSPAM:4033,4795347f311362458217002! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > !DSPAM:4033,4795347f311362458217002! From tschaub at openplans.org Sat Jan 26 01:33:14 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] getFeatureInfo request in new window + new map? In-Reply-To: <5ec103de0801222333v6c550d83k8c6a2c77366de851@mail.gmail.com> References: <15009098.post@talk.nabble.com> <15032612.post@talk.nabble.com> <5ec103de0801222333v6c550d83k8c6a2c77366de851@mail.gmail.com> Message-ID: <479AD42A.4070809@openplans.org> Hey- Also take a look at SLD. You can have a WMS style just a single feature by including a filter in SLD. There are some docs on the MapServer site for this as well. Tim Eric Lemoine wrote: > With MapServer passing mapfile variable values as GET params can be > done, even with WMS I've been told. Check the MS doc. > > 2008/1/23, Maria Panagou <snowdrop@ath.forthnet.gr>: >> >> is it possible to use variable substitution in a layer creator url,in a >> header template file (getfeatureinfo) such as: >> >> var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", >> "http://127.0.0.1/cgi-bin/mapserv.exe?", >> {map: '../htdocs/mpanagou/Quakes1local.map', >> layers: 'Quakes',ID=[codee] >> transparent: true}, >> {isBaseLayer:false, singletile:true, reproject: >> true}); >> >> where ID is filter condition, [codee] attribute from getfeatureinfo. >> >> in map file, layer quakes is defined by: >> >> DATA "pos FROM (select * from public.quake_small where codee1=%ID%) as foo >> using unique codee1 using SRID=4326" >> >> >> in OL, the declaration of quakes as following works: >> >> var quakes = new OpenLayers.Layer.WMS( "?????????? ???????", >> "http://127.0.0.1/cgi-bin/mapserv.exe?", >> {map: '../htdocs/mpanagou/Quakes1local.map', >> layers: 'Quakes',ID=721 >> transparent: true}, >> {isBaseLayer:false, singletile:true, reproject: >> true}); >> >> but i want id to be set dynamically as the value of codee attribute returned >> by getfeatureinforequest >> >> thank you >> -- >> View this message in context: >> http://www.nabble.com/getFeatureInfo-request-in-new-window-%2B-new-map--tp15009098p15032612.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,4796edef251901849620573! > From mfinsterbusch at codematix.de Sat Jan 26 05:08:39 2008 From: mfinsterbusch at codematix.de (Maik Finsterbusch) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] zoomToScale(); free extent Message-ID: <20080126110839.x387iil7eoo8wsko@webmail.codematix.de> hi out there, i want to get a specific scale (eg. 1:2000), so i call zoomToScale(2000); but openlayers finds only its scale (or extent) list, because of its numberofzoomlevels automaticly calculated scales (or extent). thats damn, because i must have 1:2000; anyway out there? best regards and a nice weekend. maik darkwood. From andreas.hocevar at gmail.com Sat Jan 26 05:48:19 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] zoomToScale(); free extent In-Reply-To: <20080126110839.x387iil7eoo8wsko@webmail.codematix.de> References: <20080126110839.x387iil7eoo8wsko@webmail.codematix.de> Message-ID: <5b021dd0801260248t64dc4a4xe1a6a1ac0325a61c@mail.gmail.com> Hi, you can find a pach at http://trac.openlayers.org/ticket/1243 that enables you to do this. Note that there is still ongoing discussion about this patch, so if it works for you that is ok, but be prepared that this is subject to change. Regards, Andreas. On Jan 26, 2008 11:08 AM, Maik Finsterbusch <mfinsterbusch@codematix.de> wrote: > hi out there, > > i want to get a specific scale (eg. 1:2000), so i call zoomToScale(2000); > but openlayers finds only its scale (or extent) list, because of its > numberofzoomlevels automaticly calculated scales (or extent). > > thats damn, because i must have 1:2000; > > anyway out there? > > best regards and a nice weekend. > > maik darkwood. From eric.c2c at gmail.com Sat Jan 26 08:48:03 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:04 2010 Subject: [OpenLayers-Users] zoomToScale(); free extent In-Reply-To: <20080126110839.x387iil7eoo8wsko@webmail.codematix.de> References: <20080126110839.x387iil7eoo8wsko@webmail.codematix.de> Message-ID: <5ec103de0801260548y538be6fbw8dba370e9dd4d5d4@mail.gmail.com> On Jan 26, 2008 11:08 AM, Maik Finsterbusch <mfinsterbusch@codematix.de> wrote: > hi out there, > > i want to get a specific scale (eg. 1:2000), so i call zoomToScale(2000); > but openlayers finds only its scale (or extent) list, because of its > numberofzoomlevels automaticly calculated scales (or extent). > > thats damn, because i must have 1:2000; > > anyway out there? You can set the list of scales you want and make sure this 1:2000 scale is included in the list. Use the 'scales' map option for that. Check this wiki page <http://trac.openlayers.org/wiki/SettingZoomLevels> to understand how you can configure zoom levels in OpenLayers. Hope this helps, -- Eric From andrea.maschio at gmail.com Sat Jan 26 10:52:56 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Big difficulties with WFS Message-ID: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> Hi everybody, I have got a visualization trouble building a simple wfs layer: FireBug shows this error : OpenLayers.Layer.WFS is not a constructor here is my code: function init(){ var map = new OpenLayers.Map('mainMap'); //write("built map") ; var routingBase = new OpenLayers.Layer.WFS( "routing", "/geoserver/wfs", {typename: 'topp:routing'}, { typename: 'routing', featureNS: 'http://www.openplans.org/topp', extractAttributes: false }); // write("built layer") ; routingBase.style.strokeColor = "#ff0000"; map.addLayers([routingBase]); //write("added layer") } I have a div with id mainMap. The output ends after building the map, and i can see in the page the controls for panning but nothing else. This is my application path <tomcat>/myapplication /OpenLayers /geoserver I think it is a path problem tied to the ajax architecture, but I really can't figure out how to solve it. Any idea would be really useful. Thanks Andrea Maschio http://www.superandrew.it From crschmidt at metacarta.com Sat Jan 26 11:09:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Big difficulties with WFS In-Reply-To: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> References: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> Message-ID: <20080126160919.GA18480@alta.metacarta.com> On Sat, Jan 26, 2008 at 04:52:56PM +0100, Andrea Maschio wrote: > Hi everybody, I have got a visualization trouble building a simple wfs > layer: > > FireBug shows this error : OpenLayers.Layer.WFS is not a constructor The problem is not with your Javascript, but appears to instead be with your coyp of OpenLayers. Did you build your own? If not, where are you including it from? Regards, -- Christopher Schmidt MetaCarta From andrea.maschio at gmail.com Sat Jan 26 11:19:37 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Big difficulties with WFS In-Reply-To: <20080126160919.GA18480@alta.metacarta.com> References: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> <20080126160919.GA18480@alta.metacarta.com> Message-ID: <FC9A6039-F8DA-4DFF-9927-D1737AF58682@gmail.com> At the end i got in a situation in which i can see no more errors (Maybe something was wrong with the installation) but I always can't see anything than the pan arrows. No map, no layers, no xmlhttprequest activity in firebug. Thanks Andrea Il giorno 26/gen/08, alle ore 17:09, Christopher Schmidt ha scritto: > On Sat, Jan 26, 2008 at 04:52:56PM +0100, Andrea Maschio wrote: >> Hi everybody, I have got a visualization trouble building a simple >> wfs >> layer: >> >> FireBug shows this error : OpenLayers.Layer.WFS is not a constructor > > The problem is not with your Javascript, but appears to instead be > with > your coyp of OpenLayers. Did you build your own? If not, where are you > including it from? > > Regards, > -- > Christopher Schmidt > MetaCarta From andrea.maschio at gmail.com Sat Jan 26 20:50:37 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Selecting a feature in a layer In-Reply-To: <FC9A6039-F8DA-4DFF-9927-D1737AF58682@gmail.com> References: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> <20080126160919.GA18480@alta.metacarta.com> <FC9A6039-F8DA-4DFF-9927-D1737AF58682@gmail.com> Message-ID: <AAE1FE6C-C286-47DF-9624-BB4D20D54795@gmail.com> I have a layer with some fields, for example source and target. When i call the function getFullRequestString() i end with a html table with all the fields of that table. I was searching the docs on how to pick source and target based on user's click. Have you got any hint for that? Thanks Andrea Maschio http://www.superandrew.it From andrea.maschio at gmail.com Sun Jan 27 09:22:40 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Json selection Message-ID: <1EDFEB01-49B9-474A-8B38-7A61AA9BF65D@gmail.com> Hi all, I am still trying to select two fields from my WMS layer, to create startPoint and endPoint for my routing application. I have seen GeoJson as a potential solution, and noticed that my geoserver installation is json capable. so i was trying to setup a url that produces a json output var jsonUrl = map.layers[0].getFullRequestString( { REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'xml/json', QUERY_LAYERS: map.layers[0].params.LAYERS, FEATURE_COUNT: 50, srs: 'EPSG:4326', layers: 'topp:kanagawa', styles: '', WIDTH: map.size.w, HEIGHT: map.size.h, outputformat: 'json' }, "/geoserver/wfs" ); my url will be more or less like that http://localhost:8080/geoserver/wfs?typename=topp%3Akanagawa&SERVICE=WFS&REQUEST=GetFeature&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=139.467394%2C35.402085%2C139.639056%2C35.487915&X=432&Y=442&FEATURE_COUNT=1&srs=EPSG%3A4326&layers=topp%3Akanagawa&styles=&outputformat=json I am able to obtain this JSON output: {"type":"FeatureCollection","features":[]} this means JSON output is working, but i get no feature. Removing the BBOX from the querystring, make me obtain the entire feature. I would be able to obtain only the element i have clicked on. Is this possible? I cannot find a way out. Thanks Andrea Maschio http://www.superandrew.it From andrea.maschio at gmail.com Sun Jan 27 10:46:46 2008 From: andrea.maschio at gmail.com (Andrea Maschio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Selecting a feature property with JSON In-Reply-To: <20080126160919.GA18480@alta.metacarta.com> References: <7FBB95A0-EDBE-44CD-9D94-1BB80ABE217E@gmail.com> <20080126160919.GA18480@alta.metacarta.com> Message-ID: <A8E7B8CD-6202-4860-AE40-4E62A8CFAB35@gmail.com> > Hi all, after a lot searching i solved the problem of selecting a field property in a feature with the help of the guys on #OpenLayers. Let me explain: I have a table, called kanagawa (that's tha main table of the pgrouting example application). My setup consist in geoserver providing WFS, OpenLayers and Postgis(Postgres + Postgis + PGRouting) The table has two fields, source and target, who are needed for the routing calculations (for example shortest_path). So the needs, was to listen to the click of the user, to find the starting and ending point. The problem with querying a WFS service, is that i could not pass the coordinates as parameter. The solution suggested by Cristopher was to create a small buffered bounding box, as shown here (see source) http://boston.freemap.in/ Thanks to Christopher, i used this code to determine the bounding box, then the query found the correct results in WFS as well. Now the point was to get them as json, so the final url was like /* Christopher's code to get the coords */ var tolerance = new OpenLayers.Pixel(5, 5); var min_px = new OpenLayers.Pixel( e.xy.x - tolerance.x, e.xy.y + tolerance.y); var max_px = new OpenLayers.Pixel( e.xy.x + tolerance.x, e.xy.y - tolerance.y); var min_ll = map.getLonLatFromPixel(min_px); var max_ll = map.getLonLatFromPixel(max_px); write("coordinate:" + "minpx->" +min_px + "maxpx->" +max_px) /* building the url */ url = '/geoserver/wfs? MAXFEATURES=20 &SERVICE=WFS &VERSION=1.0.0 &REQUEST=GetFeature &TYPENAME=topp:kanagawa &SRS=EPSG:4326 &outputformat=json &BBOX='+min_ll.lon+','+min_ll.lat+','+max_ll.lon+','+max_ll.lat; Then, calling the loadUrl function will make me get a response.responseText(), which will be something like: {"type":"FeatureCollection","features": [{"type":"Feature","id":"kanagawa.49596","geometry": {"type":"MultiLineString","coordinates": [[[139.51621972222222,35.41993416666667], [139.51615916666668,35.41999611111111 ]]]},"geometry_name":"the_geom","properties":{"length": 0.0000866261479180723,"x1":139.516219722222,"y1":35.4199341666667,"x2": 139.516159166667,"y2":35.4199961111111,"source":34600,"target":34601}} CUT] I am using prototype.js in my prototype :) so it was easy to transform the json response in a javascript object: var sourceSet=false; var source, target; function setSourceTarget(response) { var json = response.responseText.evalJSON(); if(!sourceSet){ source=json.features[0].properties.source; $('startPoint').value=source; //this is the start field to see what's going on sourceSet=true; }else{ target = json.features[0].properties.target; $('endPoint').value=target; //this is just the end field to see what's going on sourceSet=false; } }; I hope this one day could be useful for someone :D Andrea Maschio http://www.superandrew.it From bartvde at osgis.nl Mon Jan 28 08:43:45 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] mouse cursors Message-ID: <598a33506cc91fb4f85ced160abfbf19@pop02.backbone.tiscomhosting.nl> Hi list, currently the OpenLayers code contains a lot of hard-coded cursors (this.map.div.style.cursor = "xxx"), which makes it hard to change its default cursor behaviour. I am in need of the ability to change the cursor. Does anyone have ideas on how to tackle this best? What's the best place: Handler or Control? Ideally it would also be possible to change the cursor on mousedown, like Google Maps does for pan. So there would need to be 2 css classes, and the code for activate, mousedown and mouseup should change the css class. Ideas? Best regards, Bart From euzuro at gmail.com Mon Jan 28 09:59:34 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] mouse cursors In-Reply-To: <598a33506cc91fb4f85ced160abfbf19@pop02.backbone.tiscomhosting.nl> References: <598a33506cc91fb4f85ced160abfbf19@pop02.backbone.tiscomhosting.nl> Message-ID: <6ae3fb590801280659o73116d16vdd87c4bc199d838a@mail.gmail.com> That sounds like a great plan. Eventually, I think we'd like to have *all* style information out of the code and into css classes, and your attack here sounds perfectly in-line with that. The best plan would be to make a ticket with description of the proposed changes and/or a patch. I think this is a great benefit to the library. E On 1/28/08, bartvde@osgis.nl <bartvde@osgis.nl> wrote: > Hi list, > > currently the OpenLayers code contains a lot of hard-coded cursors > (this.map.div.style.cursor = "xxx"), which makes it hard to change its > default cursor behaviour. I am in need of the ability to change the cursor. > > Does anyone have ideas on how to tackle this best? What's the best place: > Handler or Control? > > Ideally it would also be possible to change the cursor on mousedown, like > Google Maps does for pan. So there would need to be 2 css classes, and the > code for activate, mousedown and mouseup should change the css class. > > Ideas? > > Best regards, > Bart > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From adams at terrestris.de Mon Jan 28 11:55:16 2008 From: adams at terrestris.de (Till Adams) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] shifting OL VirtualEarth from v4 to v5/6 Message-ID: <479E08F4.6000704@terrestris.de> List, dear Paul, still hacking on convetting ol from v4 to v5/6 I just found that: ########## Hi all, Just realised I //***************** then wrong line it should be: var pixel = new VEPixel(x,y); If you look at the original code it stated: return new Msn.VE.Pixel(x, y); Therefore I would have expected this would have been the code replacement but it does not work.. Cheers, Paul.... ######################## As we have the same problem, I found out, that there are at least two changes necessary so start up our client without errors: VirtualEarth.js Line 202: from: return this.mapObject.PixelToLatLong(moPixel.x, moPixel.y); to: return this.mapObject.PixelToLatLong(new VEPixel(moPixel.x, moPixel.y), 1); AND Line 318: from: return new Msn.VE.Pixel(x, y); to: return new VEPixel(x,y); But the problem Paul pointed out still resist: I see a map, get no errors while loading, but the controls pan/ and drag zoombox don't work properly. Using the drag-zoombox control leads to uncontrolled zooming, panning just does nothing! Is there anybody of the guys implemented the VE-layer who probably has an idea, where this problem could resist from? Regards, Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From tschaub at openplans.org Mon Jan 28 12:41:45 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] mouse cursors In-Reply-To: <6ae3fb590801280659o73116d16vdd87c4bc199d838a@mail.gmail.com> References: <598a33506cc91fb4f85ced160abfbf19@pop02.backbone.tiscomhosting.nl> <6ae3fb590801280659o73116d16vdd87c4bc199d838a@mail.gmail.com> Message-ID: <479E13D9.4090802@openplans.org> Hey- Erik Uzureau wrote: > That sounds like a great plan. > > Eventually, I think we'd like to have *all* style information out of > the code and into css classes, and your attack here sounds perfectly > in-line with that. > > The best plan would be to make a ticket with description of the > proposed changes and/or a patch. I think this is a great benefit to > the library. > Good first steps would be to add addClassName and removeClassName methods (or similarly named) for adding/removing class names one at a time from elements. We currently clobber old class names wherever we change them. In order to really support cascading styles, we want to delicately add and remove class names instead of clobbering old ones. Tim - maybe ours would be named addDisplayClass and removeDisplayClass > E > > On 1/28/08, bartvde@osgis.nl <bartvde@osgis.nl> wrote: >> Hi list, >> >> currently the OpenLayers code contains a lot of hard-coded cursors >> (this.map.div.style.cursor = "xxx"), which makes it hard to change its >> default cursor behaviour. I am in need of the ability to change the cursor. >> >> Does anyone have ideas on how to tackle this best? What's the best place: >> Handler or Control? >> >> Ideally it would also be possible to change the cursor on mousedown, like >> Google Maps does for pan. So there would need to be 2 css classes, and the >> code for activate, mousedown and mouseup should change the css class. >> >> Ideas? >> >> Best regards, >> Bart >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,479deddc167055409313003! > From drrobison at openroadsconsulting.com Mon Jan 28 15:40:11 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479AD300.4070100@openplans.org> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> Message-ID: <479E3DAB.1040209@openroadsconsulting.com> It looks like I have the right code. I think the problem is with the styleValue routine. I have had to modify the following code in the draw function: var vertDisp = 0; for(var classIndex = 0; classIndex < classNames.length; ++classIndex) { var cls = classNames[classIndex]; vertDisp = Math.max( vertDisp, this.styleValue(cls, 'top') + this.styleValue(cls, 'height') ); } if (vertDisp == 0) vertDisp = 30; The vertDisp value was coming out to be zero. By adding the last line and setting it to 30 it helped, but the bar still looks a bit off. I load a number of style sheets and I think that there is an issue with one that is causing the problem. I suspect the following code in styleValue: if(typeof(sheet.cssRules) == 'undefined') { if(typeof(sheet.rules) == 'undefined') { // can't get rules, assume zero break; } else { allRules = sheet.rules; } } else { allRules = sheet.cssRules; } I am wondering if the "break;" should be a "continue;"? Any thoughts? David Tim Schaub wrote: > Hey- > > David R Robison wrote: > >> I was using the one in the tschaub sandbox. David >> >> > > If you take a look at the patch for the scale bar, you'll see there are > some changes required to the default stylesheet. > > http://trac.openlayers.org/attachment/ticket/24/scalebar.patch > > In addition, you'll want to add your stylesheet with a link tag instead > of relying on the default dynamically added stylesheet. > > <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> > > Thanks for trying it out. Write back if you still have any trouble with it. > > Tim > > > >> Christopher Schmidt wrote: >> >>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>> >>> >>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>> it to my map according to the example html. However, when my map draws, >>>> I get the units (in my case 'miles') but it displays at the bottom of >>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>> >>>> >>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>> does not currently have a ScaleBar control. >>> >>> Regards, >>> >>> >> -- >> >> David R Robison >> Open Roads Consulting, Inc. >> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >> phone: (757) 546-3401 >> e-mail: drrobison@openroadsconsulting.com >> web: http://openroadsconsulting.com >> blog: http://therobe.blogspot.com >> book: http://www.xulonpress.com/book_detail.php?id=2579 >> >> >> >> !DSPAM:4033,4795347f311362458217002! >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> !DSPAM:4033,4795347f311362458217002! >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080128/e8b2aa4a/attachment.html From tschaub at openplans.org Mon Jan 28 16:03:59 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479E3DAB.1040209@openroadsconsulting.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> <479E3DAB.1040209@openroadsconsulting.com> Message-ID: <479E433F.60006@openplans.org> Hey- Can you send me a bit more context? If you can't provide a link to a live site, but can send a page (or pages), send directly to me. Thanks, Tim David R Robison wrote: > It looks like I have the right code. I think the problem is with the > styleValue routine. I have had to modify the following code in the draw > function: > > var vertDisp = 0; > for(var classIndex = 0; classIndex < classNames.length; > ++classIndex) { > var cls = classNames[classIndex]; > vertDisp = Math.max( > vertDisp, > this.styleValue(cls, 'top') + this.styleValue(cls, 'height') > ); > } > if (vertDisp == 0) vertDisp = 30; > > The vertDisp value was coming out to be zero. By adding the last line > and setting it to 30 it helped, but the bar still looks a bit off. I > load a number of style sheets and I think that there is an issue with > one that is causing the problem. I suspect the following code in styleValue: > > if(typeof(sheet.cssRules) == 'undefined') { > if(typeof(sheet.rules) == 'undefined') { > // can't get rules, assume zero > break; > } else { > allRules = sheet.rules; > } > } else { > allRules = sheet.cssRules; > } > > I am wondering if the "break;" should be a "continue;"? Any thoughts? David > > Tim Schaub wrote: >> Hey- >> >> David R Robison wrote: >> >>> I was using the one in the tschaub sandbox. David >>> >>> >> >> If you take a look at the patch for the scale bar, you'll see there are >> some changes required to the default stylesheet. >> >> http://trac.openlayers.org/attachment/ticket/24/scalebar.patch >> >> In addition, you'll want to add your stylesheet with a link tag instead >> of relying on the default dynamically added stylesheet. >> >> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> >> >> Thanks for trying it out. Write back if you still have any trouble with it. >> >> Tim >> >> >> >>> Christopher Schmidt wrote: >>> >>>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>>> >>>> >>>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>>> it to my map according to the example html. However, when my map draws, >>>>> I get the units (in my case 'miles') but it displays at the bottom of >>>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>>> >>>>> >>>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>>> does not currently have a ScaleBar control. >>>> >>>> Regards, >>>> >>>> >>> -- >>> >>> David R Robison >>> Open Roads Consulting, Inc. >>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>> phone: (757) 546-3401 >>> e-mail: drrobison@openroadsconsulting.com >>> web: http://openroadsconsulting.com >>> blog: http://therobe.blogspot.com >>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >>> !DSPAM:4033,4795347f311362458217002! >>> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > -- > > David R Robison > Open Roads Consulting, Inc. > 708 S. Battlefield Blvd., Chesapeake, VA 23322 > phone: (757) 546-3401 > e-mail: drrobison@openroadsconsulting.com > web: http://openroadsconsulting.com > blog: http://therobe.blogspot.com > book: http://www.xulonpress.com/book_detail.php?id=2579 > > > > !DSPAM:4033,479e3dc020313362379201! From tschaub at openplans.org Mon Jan 28 16:06:11 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479E433F.60006@openplans.org> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> <479E3DAB.1040209@openroadsconsulting.com> <479E433F.60006@openplans.org> Message-ID: <479E43C3.9050705@openplans.org> Hey- Tim Schaub wrote: > Hey- > > Can you send me a bit more context? If you can't provide a link to a > live site, but can send a page (or pages), send directly to me. Sorry, and browser info. > > Thanks, > Tim > > David R Robison wrote: >> It looks like I have the right code. I think the problem is with the >> styleValue routine. I have had to modify the following code in the draw >> function: >> >> var vertDisp = 0; >> for(var classIndex = 0; classIndex < classNames.length; >> ++classIndex) { >> var cls = classNames[classIndex]; >> vertDisp = Math.max( >> vertDisp, >> this.styleValue(cls, 'top') + this.styleValue(cls, 'height') >> ); >> } >> if (vertDisp == 0) vertDisp = 30; >> >> The vertDisp value was coming out to be zero. By adding the last line >> and setting it to 30 it helped, but the bar still looks a bit off. I >> load a number of style sheets and I think that there is an issue with >> one that is causing the problem. I suspect the following code in styleValue: >> >> if(typeof(sheet.cssRules) == 'undefined') { >> if(typeof(sheet.rules) == 'undefined') { >> // can't get rules, assume zero >> break; >> } else { >> allRules = sheet.rules; >> } >> } else { >> allRules = sheet.cssRules; >> } >> >> I am wondering if the "break;" should be a "continue;"? Any thoughts? David >> >> Tim Schaub wrote: >>> Hey- >>> >>> David R Robison wrote: >>> >>>> I was using the one in the tschaub sandbox. David >>>> >>>> >>> If you take a look at the patch for the scale bar, you'll see there are >>> some changes required to the default stylesheet. >>> >>> http://trac.openlayers.org/attachment/ticket/24/scalebar.patch >>> >>> In addition, you'll want to add your stylesheet with a link tag instead >>> of relying on the default dynamically added stylesheet. >>> >>> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> >>> >>> Thanks for trying it out. Write back if you still have any trouble with it. >>> >>> Tim >>> >>> >>> >>>> Christopher Schmidt wrote: >>>> >>>>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>>>> >>>>> >>>>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>>>> it to my map according to the example html. However, when my map draws, >>>>>> I get the units (in my case 'miles') but it displays at the bottom of >>>>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>>>> >>>>>> >>>>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>>>> does not currently have a ScaleBar control. >>>>> >>>>> Regards, >>>>> >>>>> >>>> -- >>>> >>>> David R Robison >>>> Open Roads Consulting, Inc. >>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>> phone: (757) 546-3401 >>>> e-mail: drrobison@openroadsconsulting.com >>>> web: http://openroadsconsulting.com >>>> blog: http://therobe.blogspot.com >>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>> >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >> -- >> >> David R Robison >> Open Roads Consulting, Inc. >> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >> phone: (757) 546-3401 >> e-mail: drrobison@openroadsconsulting.com >> web: http://openroadsconsulting.com >> blog: http://therobe.blogspot.com >> book: http://www.xulonpress.com/book_detail.php?id=2579 >> >> >> >> !DSPAM:4033,479e3dc020313362379201! > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,479e436033035219720167! > From drrobison at openroadsconsulting.com Mon Jan 28 16:37:08 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479E43C3.9050705@openplans.org> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> <479E3DAB.1040209@openroadsconsulting.com> <479E433F.60006@openplans.org> <479E43C3.9050705@openplans.org> Message-ID: <479E4B04.7080803@openroadsconsulting.com> Found the problem. I have 10 style sheets loaded into the application. When processing the first, the access to cssRules through the error: NS_ERROR_DOM_INVALID_ACCESS_ERR. This error caused the other style sheets to be ignored. If I replaced the "break" in the catch block with "continue", all was well. David Tim Schaub wrote: > Hey- > > Tim Schaub wrote: > >> Hey- >> >> Can you send me a bit more context? If you can't provide a link to a >> live site, but can send a page (or pages), send directly to me. >> > > Sorry, and browser info. > > >> Thanks, >> Tim >> >> David R Robison wrote: >> >>> It looks like I have the right code. I think the problem is with the >>> styleValue routine. I have had to modify the following code in the draw >>> function: >>> >>> var vertDisp = 0; >>> for(var classIndex = 0; classIndex < classNames.length; >>> ++classIndex) { >>> var cls = classNames[classIndex]; >>> vertDisp = Math.max( >>> vertDisp, >>> this.styleValue(cls, 'top') + this.styleValue(cls, 'height') >>> ); >>> } >>> if (vertDisp == 0) vertDisp = 30; >>> >>> The vertDisp value was coming out to be zero. By adding the last line >>> and setting it to 30 it helped, but the bar still looks a bit off. I >>> load a number of style sheets and I think that there is an issue with >>> one that is causing the problem. I suspect the following code in styleValue: >>> >>> if(typeof(sheet.cssRules) == 'undefined') { >>> if(typeof(sheet.rules) == 'undefined') { >>> // can't get rules, assume zero >>> break; >>> } else { >>> allRules = sheet.rules; >>> } >>> } else { >>> allRules = sheet.cssRules; >>> } >>> >>> I am wondering if the "break;" should be a "continue;"? Any thoughts? David >>> >>> Tim Schaub wrote: >>> >>>> Hey- >>>> >>>> David R Robison wrote: >>>> >>>> >>>>> I was using the one in the tschaub sandbox. David >>>>> >>>>> >>>>> >>>> If you take a look at the patch for the scale bar, you'll see there are >>>> some changes required to the default stylesheet. >>>> >>>> http://trac.openlayers.org/attachment/ticket/24/scalebar.patch >>>> >>>> In addition, you'll want to add your stylesheet with a link tag instead >>>> of relying on the default dynamically added stylesheet. >>>> >>>> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> >>>> >>>> Thanks for trying it out. Write back if you still have any trouble with it. >>>> >>>> Tim >>>> >>>> >>>> >>>> >>>>> Christopher Schmidt wrote: >>>>> >>>>> >>>>>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>>>>> >>>>>> >>>>>> >>>>>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>>>>> it to my map according to the example html. However, when my map draws, >>>>>>> I get the units (in my case 'miles') but it displays at the bottom of >>>>>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>>>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>>>>> >>>>>>> >>>>>>> >>>>>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>>>>> does not currently have a ScaleBar control. >>>>>> >>>>>> Regards, >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> >>>>> David R Robison >>>>> Open Roads Consulting, Inc. >>>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>>> phone: (757) 546-3401 >>>>> e-mail: drrobison@openroadsconsulting.com >>>>> web: http://openroadsconsulting.com >>>>> blog: http://therobe.blogspot.com >>>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@openlayers.org >>>>> http://openlayers.org/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>>> >>> -- >>> >>> David R Robison >>> Open Roads Consulting, Inc. >>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>> phone: (757) 546-3401 >>> e-mail: drrobison@openroadsconsulting.com >>> web: http://openroadsconsulting.com >>> blog: http://therobe.blogspot.com >>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>> >>> >>> >>> !DSPAM:4033,479e3dc020313362379201! >>> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> !DSPAM:4033,479e436033035219720167! >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080128/087b0bbb/attachment.html From tschaub at openplans.org Mon Jan 28 16:46:03 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479E4B04.7080803@openroadsconsulting.com> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> <479E3DAB.1040209@openroadsconsulting.com> <479E433F.60006@openplans.org> <479E43C3.9050705@openplans.org> <479E4B04.7080803@openroadsconsulting.com> Message-ID: <479E4D1B.7020502@openplans.org> Hey- David R Robison wrote: > Found the problem. I have 10 style sheets loaded into the application. > When processing the first, the access to cssRules through the error: > NS_ERROR_DOM_INVALID_ACCESS_ERR. This error caused the other style > sheets to be ignored. If I replaced the "break" in the catch block with > "continue", all was well. David Yeah, I guessed it was something like that. Can you mention the name of your browser? And perhaps give an indication of how your stylesheets are included/linked? Do any of your stylesheets have no rules in them? I'm curious to see where sheet.cssRules is undefined for one stylesheet but not the next. The patch for #24 is updated. Thanks for any more info. Tim > > Tim Schaub wrote: >> Hey- >> >> Tim Schaub wrote: >> >>> Hey- >>> >>> Can you send me a bit more context? If you can't provide a link to a >>> live site, but can send a page (or pages), send directly to me. >>> >> >> Sorry, and browser info. >> >> >>> Thanks, >>> Tim >>> >>> David R Robison wrote: >>> >>>> It looks like I have the right code. I think the problem is with the >>>> styleValue routine. I have had to modify the following code in the draw >>>> function: >>>> >>>> var vertDisp = 0; >>>> for(var classIndex = 0; classIndex < classNames.length; >>>> ++classIndex) { >>>> var cls = classNames[classIndex]; >>>> vertDisp = Math.max( >>>> vertDisp, >>>> this.styleValue(cls, 'top') + this.styleValue(cls, 'height') >>>> ); >>>> } >>>> if (vertDisp == 0) vertDisp = 30; >>>> >>>> The vertDisp value was coming out to be zero. By adding the last line >>>> and setting it to 30 it helped, but the bar still looks a bit off. I >>>> load a number of style sheets and I think that there is an issue with >>>> one that is causing the problem. I suspect the following code in styleValue: >>>> >>>> if(typeof(sheet.cssRules) == 'undefined') { >>>> if(typeof(sheet.rules) == 'undefined') { >>>> // can't get rules, assume zero >>>> break; >>>> } else { >>>> allRules = sheet.rules; >>>> } >>>> } else { >>>> allRules = sheet.cssRules; >>>> } >>>> >>>> I am wondering if the "break;" should be a "continue;"? Any thoughts? David >>>> >>>> Tim Schaub wrote: >>>> >>>>> Hey- >>>>> >>>>> David R Robison wrote: >>>>> >>>>> >>>>>> I was using the one in the tschaub sandbox. David >>>>>> >>>>>> >>>>>> >>>>> If you take a look at the patch for the scale bar, you'll see there are >>>>> some changes required to the default stylesheet. >>>>> >>>>> http://trac.openlayers.org/attachment/ticket/24/scalebar.patch >>>>> >>>>> In addition, you'll want to add your stylesheet with a link tag instead >>>>> of relying on the default dynamically added stylesheet. >>>>> >>>>> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> >>>>> >>>>> Thanks for trying it out. Write back if you still have any trouble with it. >>>>> >>>>> Tim >>>>> >>>>> >>>>> >>>>> >>>>>> Christopher Schmidt wrote: >>>>>> >>>>>> >>>>>>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>>>>>> it to my map according to the example html. However, when my map draws, >>>>>>>> I get the units (in my case 'miles') but it displays at the bottom of >>>>>>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>>>>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>>>>>> does not currently have a ScaleBar control. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> >>>>>> David R Robison >>>>>> Open Roads Consulting, Inc. >>>>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>>>> phone: (757) 546-3401 >>>>>> e-mail: drrobison@openroadsconsulting.com >>>>>> web: http://openroadsconsulting.com >>>>>> blog: http://therobe.blogspot.com >>>>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@openlayers.org >>>>>> http://openlayers.org/mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@openlayers.org >>>>> http://openlayers.org/mailman/listinfo/users >>>>> >>>>> >>>> -- >>>> >>>> David R Robison >>>> Open Roads Consulting, Inc. >>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>> phone: (757) 546-3401 >>>> e-mail: drrobison@openroadsconsulting.com >>>> web: http://openroadsconsulting.com >>>> blog: http://therobe.blogspot.com >>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>> >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> !DSPAM:4033,479e436033035219720167! >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > -- > > David R Robison > Open Roads Consulting, Inc. > 708 S. Battlefield Blvd., Chesapeake, VA 23322 > phone: (757) 546-3401 > e-mail: drrobison@openroadsconsulting.com > web: http://openroadsconsulting.com > blog: http://therobe.blogspot.com > book: http://www.xulonpress.com/book_detail.php?id=2579 > > > > !DSPAM:4033,479e4b1f56767082231907! From drrobison at openroadsconsulting.com Mon Jan 28 16:49:51 2008 From: drrobison at openroadsconsulting.com (David R Robison) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Problem wth ScaleBar In-Reply-To: <479E4D1B.7020502@openplans.org> References: <4787B1AA.6030202@refractions.net> <5ec103de0801130628w69f2a11bsdfc6c32e4e9dc097@mail.gmail.com> <47952E1F.2030108@openroadsconsulting.com> <20080122000900.GA30801@alta.metacarta.com> <47953463.4040402@openroadsconsulting.com> <479AD300.4070100@openplans.org> <479E3DAB.1040209@openroadsconsulting.com> <479E433F.60006@openplans.org> <479E43C3.9050705@openplans.org> <479E4B04.7080803@openroadsconsulting.com> <479E4D1B.7020502@openplans.org> Message-ID: <479E4DFF.2050008@openroadsconsulting.com> Firefox 2.0.0.11 - I will need to check the stylesheets... David Tim Schaub wrote: > Hey- > > David R Robison wrote: > >> Found the problem. I have 10 style sheets loaded into the application. >> When processing the first, the access to cssRules through the error: >> NS_ERROR_DOM_INVALID_ACCESS_ERR. This error caused the other style >> sheets to be ignored. If I replaced the "break" in the catch block with >> "continue", all was well. David >> > > Yeah, I guessed it was something like that. Can you mention the name of > your browser? And perhaps give an indication of how your stylesheets > are included/linked? Do any of your stylesheets have no rules in them? > I'm curious to see where sheet.cssRules is undefined for one > stylesheet but not the next. > > The patch for #24 is updated. Thanks for any more info. > > Tim > > >> Tim Schaub wrote: >> >>> Hey- >>> >>> Tim Schaub wrote: >>> >>> >>>> Hey- >>>> >>>> Can you send me a bit more context? If you can't provide a link to a >>>> live site, but can send a page (or pages), send directly to me. >>>> >>>> >>> Sorry, and browser info. >>> >>> >>> >>>> Thanks, >>>> Tim >>>> >>>> David R Robison wrote: >>>> >>>> >>>>> It looks like I have the right code. I think the problem is with the >>>>> styleValue routine. I have had to modify the following code in the draw >>>>> function: >>>>> >>>>> var vertDisp = 0; >>>>> for(var classIndex = 0; classIndex < classNames.length; >>>>> ++classIndex) { >>>>> var cls = classNames[classIndex]; >>>>> vertDisp = Math.max( >>>>> vertDisp, >>>>> this.styleValue(cls, 'top') + this.styleValue(cls, 'height') >>>>> ); >>>>> } >>>>> if (vertDisp == 0) vertDisp = 30; >>>>> >>>>> The vertDisp value was coming out to be zero. By adding the last line >>>>> and setting it to 30 it helped, but the bar still looks a bit off. I >>>>> load a number of style sheets and I think that there is an issue with >>>>> one that is causing the problem. I suspect the following code in styleValue: >>>>> >>>>> if(typeof(sheet.cssRules) == 'undefined') { >>>>> if(typeof(sheet.rules) == 'undefined') { >>>>> // can't get rules, assume zero >>>>> break; >>>>> } else { >>>>> allRules = sheet.rules; >>>>> } >>>>> } else { >>>>> allRules = sheet.cssRules; >>>>> } >>>>> >>>>> I am wondering if the "break;" should be a "continue;"? Any thoughts? David >>>>> >>>>> Tim Schaub wrote: >>>>> >>>>> >>>>>> Hey- >>>>>> >>>>>> David R Robison wrote: >>>>>> >>>>>> >>>>>> >>>>>>> I was using the one in the tschaub sandbox. David >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> If you take a look at the patch for the scale bar, you'll see there are >>>>>> some changes required to the default stylesheet. >>>>>> >>>>>> http://trac.openlayers.org/attachment/ticket/24/scalebar.patch >>>>>> >>>>>> In addition, you'll want to add your stylesheet with a link tag instead >>>>>> of relying on the default dynamically added stylesheet. >>>>>> >>>>>> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> >>>>>> >>>>>> Thanks for trying it out. Write back if you still have any trouble with it. >>>>>> >>>>>> Tim >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Christopher Schmidt wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Mon, Jan 21, 2008 at 06:43:27PM -0500, David R Robison wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> I am trying to get the OpenLayers.Control.ScaleBar working. I've added >>>>>>>>> it to my map according to the example html. However, when my map draws, >>>>>>>>> I get the units (in my case 'miles') but it displays at the bottom of >>>>>>>>> the map and I get no scale bar. Its as if the scale bar is below the map >>>>>>>>> and hidden. Any thoughts on how to get this to work correctly? Thanks, David >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Are you adding ScaleBar (which isn't in trunk) or Scale()? OpenLayers >>>>>>>> does not currently have a ScaleBar control. >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> >>>>>>> David R Robison >>>>>>> Open Roads Consulting, Inc. >>>>>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>>>>> phone: (757) 546-3401 >>>>>>> e-mail: drrobison@openroadsconsulting.com >>>>>>> web: http://openroadsconsulting.com >>>>>>> blog: http://therobe.blogspot.com >>>>>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users@openlayers.org >>>>>>> http://openlayers.org/mailman/listinfo/users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@openlayers.org >>>>>> http://openlayers.org/mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> >>>>> David R Robison >>>>> Open Roads Consulting, Inc. >>>>> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >>>>> phone: (757) 546-3401 >>>>> e-mail: drrobison@openroadsconsulting.com >>>>> web: http://openroadsconsulting.com >>>>> blog: http://therobe.blogspot.com >>>>> book: http://www.xulonpress.com/book_detail.php?id=2579 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>>> !DSPAM:4033,479e436033035219720167! >>>> >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> -- >> >> David R Robison >> Open Roads Consulting, Inc. >> 708 S. Battlefield Blvd., Chesapeake, VA 23322 >> phone: (757) 546-3401 >> e-mail: drrobison@openroadsconsulting.com >> web: http://openroadsconsulting.com >> blog: http://therobe.blogspot.com >> book: http://www.xulonpress.com/book_detail.php?id=2579 >> >> >> >> !DSPAM:4033,479e4b1f56767082231907! >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: drrobison@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080128/e4a05e45/attachment.html From cranio at quipo.it Tue Jan 29 04:23:32 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Popups showing only at certain zoom lev's? Message-ID: <15155343.post@talk.nabble.com> Simple question. I've 8 layers, each one with its (custom) markers. Each marker triggers an AJAX-driven popup. Problem: when I zoom in, after a certain zoom levels, popups won't work. They begin to work again if I zoom back to a broader view. How can this be? Is it a parameter, or maybe it could depend on max zoom levels, or what? Thanks in advance for all your help :) -- View this message in context: http://www.nabble.com/Popups-showing-only-at-certain-zoom-lev%27s--tp15155343p15155343.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From man_kills_everything at hotmail.com Tue Jan 29 09:42:50 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage Message-ID: <15160377.post@talk.nabble.com> Hi, I'm using Firefox to display a map serverd by GeoServer with only three layers being displayed (Google, roads, points). In Internet Explorer 6 the memory usage sticks to around 60MB, however Firefox just keeps eating up memory and lags my machine! At the moment I'm running it and it's hit 350MB memory usage. It's as if it's cachine the images itself or something. Has anybody else had a problem with this? Thanks, Jon -- View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15160377.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From lorenzetti at faunalia.it Tue Jan 29 10:48:47 2008 From: lorenzetti at faunalia.it (Walter Lorenzetti) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] proj4js problem Message-ID: <479F4ADF.1070701@faunalia.it> Hi list, I've a problem with proj4js library: if I use it in my Ol project like this: Proj4js.defs["EPSG:3035"] = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs "; Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs "; var coord = map.getLonLatFromPixel(new OpenLayers.Pixel(event.xy.x,event.xy.y)); // utilizzo la libreria proj4js di boygenius per riottenere lat e lon dalla mappa con un epsg diverso da 4326 var sourceProj = new Proj4js.Proj(map.getProjection()); var destProj = new Proj4js.Proj("EPSG:4326"); var p = new OpenLayers.Geometry.Point(coord.lon, coord.lat); OpenLayers.Console.log(p); Proj4js.transform(sourceProj, destProj,p); OpenLayers.Console.log(p); those that I obtain in firebug for example is: POINT(4375185.477325439 2300601.9556884766) id=OpenLayers.Geometry.Point_231 POINT(2.3206480904276474 -57.2957795131) id=OpenLayers.Geometry.Point_231 and is not corret because the new point 'd be like 10,... 43,... do you know why this? I use Ol 2.5 stable and not svn where I can find OpenLayers.Projection.transform function W -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti@faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080129/c3de9c87/attachment.html From cjmose at gmail.com Tue Jan 29 10:57:59 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <15160377.post@talk.nabble.com> References: <15160377.post@talk.nabble.com> Message-ID: <15162427.post@talk.nabble.com> Do you have firebug enabled? Firefox consumes massive amounts of memory when I'm running my client with firebug enabled... Jon Britton wrote: > > Hi, > I'm using Firefox to display a map serverd by GeoServer with only three > layers being displayed (Google, roads, points). In Internet Explorer 6 the > memory usage sticks to around 60MB, however Firefox just keeps eating up > memory and lags my machine! At the moment I'm running it and it's hit > 350MB memory usage. It's as if it's cachine the images itself or > something. > > Has anybody else had a problem with this? > > Thanks, > Jon > -- View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15162427.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From madair at dmsolutions.ca Tue Jan 29 11:49:39 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] proj4js problem In-Reply-To: <479F4ADF.1070701@faunalia.it> References: <479F4ADF.1070701@faunalia.it> Message-ID: <479F5923.7030006@dmsolutions.ca> Walter, The projection class code for the 'laea' projection isn't validated yet in proj4js. For the record, as of today, the following projection classes work (or should work). These are the 'proj=' parameter in the proj initialization string: utm, lcc, tmerc, merc, stere, gauss, sterea, aea. And the following classes are not validated yet: aeqd, eqdc, equi, laea, mill, moll, omerc, ortho, poly, sinu, vandg Mike Walter Lorenzetti wrote: > Hi list, > I've a problem with proj4js library: > > if I use it in my Ol project like this: > > Proj4js.defs["EPSG:3035"] = "+proj=laea +lat_0=52 +lon_0=10 > +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs "; > Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 > +no_defs "; > > var coord = map.getLonLatFromPixel(new > OpenLayers.Pixel(event.xy.x,event.xy.y)); > // utilizzo la libreria proj4js di boygenius per riottenere lat e lon > dalla mappa con un epsg diverso da 4326 > var sourceProj = new Proj4js.Proj(map.getProjection()); > var destProj = new Proj4js.Proj("EPSG:4326"); > var p = new OpenLayers.Geometry.Point(coord.lon, coord.lat); > OpenLayers.Console.log(p); > Proj4js.transform(sourceProj, destProj,p); > OpenLayers.Console.log(p); > > those that I obtain in firebug for example is: > > POINT(4375185.477325439 2300601.9556884766) > id=OpenLayers.Geometry.Point_231 > POINT(2.3206480904276474 -57.2957795131) id=OpenLayers.Geometry.Point_231 > > and is not corret because the new point 'd be like 10,... 43,... > > do you know why this? > I use Ol 2.5 stable and not svn where I can find > OpenLayers.Projection.transform function > > W > -- > Please no .doc, .xls, .ppt, .dwg: > https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats > > Walter Lorenzetti > email+jabber: lorenzetti@faunalia.it > www.faunalia.it > Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From lorenzetti at faunalia.it Tue Jan 29 11:53:04 2008 From: lorenzetti at faunalia.it (Walter Lorenzetti) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] proj4js problem In-Reply-To: <479F5923.7030006@dmsolutions.ca> References: <479F4ADF.1070701@faunalia.it> <479F5923.7030006@dmsolutions.ca> Message-ID: <479F59F0.6060102@faunalia.it> Mike Adair ha scritto: > Walter, > > The projection class code for the 'laea' projection isn't validated > yet in proj4js. > > For the record, as of today, the following projection classes work (or > should work). These are the 'proj=' parameter in the proj > initialization string: utm, lcc, tmerc, merc, stere, gauss, sterea, aea. > > And the following classes are not validated yet: aeqd, eqdc, equi, > laea, mill, moll, omerc, ortho, poly, sinu, vandg > > Mike > > Thanks so much Mike! I've to find another way to convert my datas in latlon sistem Walter -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti@faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy From man_kills_everything at hotmail.com Tue Jan 29 14:04:57 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <15162427.post@talk.nabble.com> References: <15160377.post@talk.nabble.com> <15162427.post@talk.nabble.com> Message-ID: <15166790.post@talk.nabble.com> Ah.. yes I do. I'll turn it off tomorrow when I get a chance and see if it makes a difference. I wonder why that would do it... there must be a bug somewhere with it. Thanks, jon cmose wrote: > > Do you have firebug enabled? Firefox consumes massive amounts of memory > when I'm running my client with firebug enabled... > > > Jon Britton wrote: >> >> Hi, >> I'm using Firefox to display a map serverd by GeoServer with only three >> layers being displayed (Google, roads, points). In Internet Explorer 6 >> the memory usage sticks to around 60MB, however Firefox just keeps eating >> up memory and lags my machine! At the moment I'm running it and it's hit >> 350MB memory usage. It's as if it's cachine the images itself or >> something. >> >> Has anybody else had a problem with this? >> >> Thanks, >> Jon >> > > -- View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15166790.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cjmose at gmail.com Tue Jan 29 14:32:38 2008 From: cjmose at gmail.com (cmose) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <15166790.post@talk.nabble.com> References: <15160377.post@talk.nabble.com> <15162427.post@talk.nabble.com> <15166790.post@talk.nabble.com> Message-ID: <15167555.post@talk.nabble.com> I believe part of it is firebugs network monitoring feature. In my specific case I have multiple dns entries for my tilecache server so the browser is firing off a significant number of requests. Having firebug monitor these requests was consuming a bunch of memory and slowing things down a good deal. Jon Britton wrote: > > > Ah.. yes I do. I'll turn it off tomorrow when I get a chance and see if it > makes a difference. I wonder why that would do it... there must be a bug > somewhere with it. > Thanks, > jon > > > cmose wrote: >> >> Do you have firebug enabled? Firefox consumes massive amounts of memory >> when I'm running my client with firebug enabled... >> >> >> Jon Britton wrote: >>> >>> Hi, >>> I'm using Firefox to display a map serverd by GeoServer with only three >>> layers being displayed (Google, roads, points). In Internet Explorer 6 >>> the memory usage sticks to around 60MB, however Firefox just keeps >>> eating up memory and lags my machine! At the moment I'm running it and >>> it's hit 350MB memory usage. It's as if it's cachine the images itself >>> or something. >>> >>> Has anybody else had a problem with this? >>> >>> Thanks, >>> Jon >>> >> >> > > -- View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15167555.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From guillaume.sueur at neogeo-online.net Tue Jan 29 14:34:48 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector layer and markers Message-ID: <479F7FD8.7000100@neogeo-online.net> Hi list, Maybe you have seen that already, it's a very simple application showing bicycle stations in my hometown : http://www.neogeo-online.net/velo/velo.html I'd like to make it work on mobiles, but the vector dots are not rendered in that environment. What could I use instead of that to display my GeoJSON stream ? Thanks for any help, -- Guillaume SUEUR From ndando at mtdata.com.au Tue Jan 29 19:15:37 2008 From: ndando at mtdata.com.au (NeilD) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Marker.Label not working in IE6 Message-ID: <15172743.post@talk.nabble.com> Does anyone have a fix to get the Marker.Label feature devloped for ticket 751 working in IE6? I have it working in IE7 and Firefox. Cheers Neil -- View this message in context: http://www.nabble.com/Marker.Label-not-working-in-IE6-tp15172743p15172743.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From lists at jpw.biz Tue Jan 29 19:28:27 2008 From: lists at jpw.biz (Mick Jagger) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] layers limit Message-ID: <20080129192827.4b000085.lists@jpw.biz> Hi, Is there a limit to the number of layers that OpenLayers supports? I have a page with 63 layers and I get errors with Internet Explorer at layer 60, while Firefox and Opera load the page fine, albeit slowly. Normally there are only a couple layers, but this is an odd case. -- lists@jpw.biz -- From pagameba at gmail.com Tue Jan 29 20:03:28 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <15167555.post@talk.nabble.com> References: <15160377.post@talk.nabble.com> <15162427.post@talk.nabble.com> <15166790.post@talk.nabble.com> <15167555.post@talk.nabble.com> Message-ID: <04BD35EF-19F1-475B-B6ED-462862324B09@gmail.com> The other issue for firefox 2 is that it decompresses all the tiles and stores them as decompressed RGBA images in memory. For a 256x256 pixel tile at 4 bytes per pixel, this works out to 260k per tile - regardless of the original format. Depending on the size of your viewport and taking into consideration the buffer of tiles that OL keeps outside the viewport, it is easy to have more than 100 tiles in three layers, that's 260 MB of memory, just in tiles. This is one of the big issues fixed in firefox 3. The same OL app running in firefox 3 only uses about 70-80 MB. Cheers Paul On 29-Jan-08, at 2:32 PM, cmose wrote: > > I believe part of it is firebugs network monitoring feature. In my > specific > case I have multiple dns entries for my tilecache server so the > browser is > firing off a significant number of requests. Having firebug monitor > these > requests was consuming a bunch of memory and slowing things down a > good > deal. > > > Jon Britton wrote: >> >> >> Ah.. yes I do. I'll turn it off tomorrow when I get a chance and >> see if it >> makes a difference. I wonder why that would do it... there must be >> a bug >> somewhere with it. >> Thanks, >> jon >> >> >> cmose wrote: >>> >>> Do you have firebug enabled? Firefox consumes massive amounts of >>> memory >>> when I'm running my client with firebug enabled... >>> >>> >>> Jon Britton wrote: >>>> >>>> Hi, >>>> I'm using Firefox to display a map serverd by GeoServer with only >>>> three >>>> layers being displayed (Google, roads, points). In Internet >>>> Explorer 6 >>>> the memory usage sticks to around 60MB, however Firefox just keeps >>>> eating up memory and lags my machine! At the moment I'm running >>>> it and >>>> it's hit 350MB memory usage. It's as if it's cachine the images >>>> itself >>>> or something. >>>> >>>> Has anybody else had a problem with this? >>>> >>>> Thanks, >>>> Jon >>>> >>> >>> >> >> > > -- > View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15167555.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From pagameba at gmail.com Tue Jan 29 20:05:26 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <04BD35EF-19F1-475B-B6ED-462862324B09@gmail.com> References: <15160377.post@talk.nabble.com> <15162427.post@talk.nabble.com> <15166790.post@talk.nabble.com> <15167555.post@talk.nabble.com> <04BD35EF-19F1-475B-B6ED-462862324B09@gmail.com> Message-ID: <8460F873-1E83-4D42-80A3-3762EEB16A78@gmail.com> Opps, that's not 260 MB ... only about 26. Cheers, Paul On 29-Jan-08, at 8:03 PM, Paul Spencer wrote: > The other issue for firefox 2 is that it decompresses all the tiles > and stores them as decompressed RGBA images in memory. For a > 256x256 pixel tile at 4 bytes per pixel, this works out to 260k per > tile - regardless of the original format. Depending on the size of > your viewport and taking into consideration the buffer of tiles that > OL keeps outside the viewport, it is easy to have more than 100 > tiles in three layers, that's 260 MB of memory, just in tiles. This > is one of the big issues fixed in firefox 3. The same OL app > running in firefox 3 only uses about 70-80 MB. > > Cheers > > Paul > > On 29-Jan-08, at 2:32 PM, cmose wrote: > >> >> I believe part of it is firebugs network monitoring feature. In my >> specific >> case I have multiple dns entries for my tilecache server so the >> browser is >> firing off a significant number of requests. Having firebug monitor >> these >> requests was consuming a bunch of memory and slowing things down a >> good >> deal. >> >> >> Jon Britton wrote: >>> >>> >>> Ah.. yes I do. I'll turn it off tomorrow when I get a chance and >>> see if it >>> makes a difference. I wonder why that would do it... there must be >>> a bug >>> somewhere with it. >>> Thanks, >>> jon >>> >>> >>> cmose wrote: >>>> >>>> Do you have firebug enabled? Firefox consumes massive amounts of >>>> memory >>>> when I'm running my client with firebug enabled... >>>> >>>> >>>> Jon Britton wrote: >>>>> >>>>> Hi, >>>>> I'm using Firefox to display a map serverd by GeoServer with >>>>> only three >>>>> layers being displayed (Google, roads, points). In Internet >>>>> Explorer 6 >>>>> the memory usage sticks to around 60MB, however Firefox just keeps >>>>> eating up memory and lags my machine! At the moment I'm running >>>>> it and >>>>> it's hit 350MB memory usage. It's as if it's cachine the images >>>>> itself >>>>> or something. >>>>> >>>>> Has anybody else had a problem with this? >>>>> >>>>> Thanks, >>>>> Jon >>>>> >>>> >>>> >>> >>> >> >> -- >> View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15167555.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > From andrew.deklerk at gmail.com Wed Jan 30 01:05:28 2008 From: andrew.deklerk at gmail.com (Andrew de klerk) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector/GML Thematic Message-ID: <15176106.post@talk.nabble.com> Hi All I remeber reading somewhere that presenting a GML with a thematic (i.e. different colours for different polygons based upon a Field atrtribute) was currently under development, but I cannot seem to find the development code......Is this true, or am I missing something completely and its is already available. Andrew -- View this message in context: http://www.nabble.com/Vector-GML-Thematic-tp15176106p15176106.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From yjacolin at free.fr Wed Jan 30 03:36:59 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector/GML Thematic In-Reply-To: <15176106.post@talk.nabble.com> References: <15176106.post@talk.nabble.com> Message-ID: <200801300936.59121.yjacolin@free.fr> Le Wednesday 30 January 2008 07:05:28 Andrew de klerk, vous avez ?crit?: > Hi All > > I remeber reading somewhere that presenting a GML with a thematic (i.e. > different colours for different polygons based upon a Field atrtribute) was > currently under development, but I cannot seem to find the development > code......Is this true, or am I missing something completely and its is > already available. > > Andrew Andrew, You mean this dev : http://dev.openlayers.org/sandbox/ahocevar/sldRenderer/ It seems this new feature will not be in the next release of OpenLayers. But I may miss something as well :) Y. -- Yves Jacolin --- http://softlibre.gloobe.org From andreas.hocevar at gmail.com Wed Jan 30 03:38:40 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector/GML Thematic In-Reply-To: <15176106.post@talk.nabble.com> References: <15176106.post@talk.nabble.com> Message-ID: <47A03790.6000408@gmail.com> Andrew- Andrew de klerk wrote: > I remeber reading somewhere that presenting a GML with a thematic (i.e. > different colours for different polygons based upon a Field atrtribute) was > currently under development, but I cannot seem to find the development > code......Is this true, or am I missing something completely and its is > already available. > This is already in OpenLayers trunk. See http://trac.openlayers.org/wiki/Styles for a tutorial, and http://www.openlayers.org/dev/examples/georss-flickr.html for an example to get you started. The classes used for that are OpenLayers.Style and OpenLayers.Rule.* Regards, Andreas. From yjacolin at free.fr Wed Jan 30 03:45:52 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector/GML Thematic In-Reply-To: <47A03790.6000408@gmail.com> References: <15176106.post@talk.nabble.com> <47A03790.6000408@gmail.com> Message-ID: <200801300945.52062.yjacolin@free.fr> Le Wednesday 30 January 2008 09:38:40 Andreas Hocevar, vous avez ?crit?: > Andrew- > > Andrew de klerk wrote: > > I remeber reading somewhere that presenting a GML with a thematic (i.e. > > different colours for different polygons based upon a Field atrtribute) > > was currently under development, but I cannot seem to find the > > development code......Is this true, or am I missing something completely > > and its is already available. > > This is already in OpenLayers trunk. See > http://trac.openlayers.org/wiki/Styles for a tutorial, and > http://www.openlayers.org/dev/examples/georss-flickr.html for an example > to get you started. The classes used for that are OpenLayers.Style and > OpenLayers.Rule.* > > Regards, > Andreas. Thanks Andreas, I miss this information. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From andrew.deklerk at gmail.com Wed Jan 30 03:47:48 2008 From: andrew.deklerk at gmail.com (Andrew de Klerk) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Vector/GML Thematic In-Reply-To: <47A03790.6000408@gmail.com> References: <15176106.post@talk.nabble.com> <47A03790.6000408@gmail.com> Message-ID: <47a03a0e.0e39400a.5a33.6c1d@mx.google.com> Marvelous - I will look at that, and see if it meets my needs - Thanks -----Original Message----- From: Andreas Hocevar [mailto:andreas.hocevar@gmail.com] Sent: 30 January 2008 10:39 AM To: Andrew de klerk Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Vector/GML Thematic Andrew- Andrew de klerk wrote: > I remeber reading somewhere that presenting a GML with a thematic (i.e. > different colours for different polygons based upon a Field atrtribute) was > currently under development, but I cannot seem to find the development > code......Is this true, or am I missing something completely and its is > already available. > This is already in OpenLayers trunk. See http://trac.openlayers.org/wiki/Styles for a tutorial, and http://www.openlayers.org/dev/examples/georss-flickr.html for an example to get you started. The classes used for that are OpenLayers.Style and OpenLayers.Rule.* Regards, Andreas. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.0/1250 - Release Date: 2008/01/29 10:20 PM From man_kills_everything at hotmail.com Wed Jan 30 09:05:42 2008 From: man_kills_everything at hotmail.com (Jon Britton) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Firefox memory usage In-Reply-To: <8460F873-1E83-4D42-80A3-3762EEB16A78@gmail.com> References: <15160377.post@talk.nabble.com> <15162427.post@talk.nabble.com> <15166790.post@talk.nabble.com> <15167555.post@talk.nabble.com> <04BD35EF-19F1-475B-B6ED-462862324B09@gmail.com> <8460F873-1E83-4D42-80A3-3762EEB16A78@gmail.com> Message-ID: <15182888.post@talk.nabble.com> Thanks for the info. Firebug does seem to make a big difference. Without it on Firefox uses much less memory, but still much more than IE6. What you say about decompressed images would explain this part of the problem. I guess it's just something I have to deal with! Thanks, Jon Paul Spencer-5 wrote: > > Opps, that's not 260 MB ... only about 26. > > Cheers, > > Paul > > On 29-Jan-08, at 8:03 PM, Paul Spencer wrote: > >> The other issue for firefox 2 is that it decompresses all the tiles >> and stores them as decompressed RGBA images in memory. For a >> 256x256 pixel tile at 4 bytes per pixel, this works out to 260k per >> tile - regardless of the original format. Depending on the size of >> your viewport and taking into consideration the buffer of tiles that >> OL keeps outside the viewport, it is easy to have more than 100 >> tiles in three layers, that's 260 MB of memory, just in tiles. This >> is one of the big issues fixed in firefox 3. The same OL app >> running in firefox 3 only uses about 70-80 MB. >> >> Cheers >> >> Paul >> >> On 29-Jan-08, at 2:32 PM, cmose wrote: >> >>> >>> I believe part of it is firebugs network monitoring feature. In my >>> specific >>> case I have multiple dns entries for my tilecache server so the >>> browser is >>> firing off a significant number of requests. Having firebug monitor >>> these >>> requests was consuming a bunch of memory and slowing things down a >>> good >>> deal. >>> >>> >>> Jon Britton wrote: >>>> >>>> >>>> Ah.. yes I do. I'll turn it off tomorrow when I get a chance and >>>> see if it >>>> makes a difference. I wonder why that would do it... there must be >>>> a bug >>>> somewhere with it. >>>> Thanks, >>>> jon >>>> >>>> >>>> cmose wrote: >>>>> >>>>> Do you have firebug enabled? Firefox consumes massive amounts of >>>>> memory >>>>> when I'm running my client with firebug enabled... >>>>> >>>>> >>>>> Jon Britton wrote: >>>>>> >>>>>> Hi, >>>>>> I'm using Firefox to display a map serverd by GeoServer with >>>>>> only three >>>>>> layers being displayed (Google, roads, points). In Internet >>>>>> Explorer 6 >>>>>> the memory usage sticks to around 60MB, however Firefox just keeps >>>>>> eating up memory and lags my machine! At the moment I'm running >>>>>> it and >>>>>> it's hit 350MB memory usage. It's as if it's cachine the images >>>>>> itself >>>>>> or something. >>>>>> >>>>>> Has anybody else had a problem with this? >>>>>> >>>>>> Thanks, >>>>>> Jon >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Firefox-memory-usage-tp15160377p15167555.html >>> Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Firefox-memory-usage-tp15160377p15182888.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From diegoguidi at gmail.com Wed Jan 30 11:08:01 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Base Layers and mimetype Message-ID: <a80aba890801300808t1d2e26d3sda824d6b67558390@mail.gmail.com> I'm playing with OpenLayers 2.5 creating 2 wms layers both with format: "image/jpeg" and the first with isBaseLayer: true. The results is that the base layer is ever "image/png"... This is a limitation of base layers, or i made a mistake in my code? From eric.c2c at gmail.com Wed Jan 30 11:16:08 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Base Layers and mimetype In-Reply-To: <a80aba890801300808t1d2e26d3sda824d6b67558390@mail.gmail.com> References: <a80aba890801300808t1d2e26d3sda824d6b67558390@mail.gmail.com> Message-ID: <5ec103de0801300816h5e69d349kd905c89395d90d93@mail.gmail.com> Hi. Sounds like a bad config on the server side. What is your map server ? 2008/1/30, Diego Guidi <diegoguidi@gmail.com>: > I'm playing with OpenLayers 2.5 creating 2 wms layers both with > format: "image/jpeg" and the first with isBaseLayer: true. > The results is that the base layer is ever "image/png"... > This is a limitation of base layers, or i made a mistake in my code? > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From diegoguidi at gmail.com Wed Jan 30 11:21:09 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Base Layers and mimetype In-Reply-To: <5ec103de0801300816h5e69d349kd905c89395d90d93@mail.gmail.com> References: <a80aba890801300808t1d2e26d3sda824d6b67558390@mail.gmail.com> <5ec103de0801300816h5e69d349kd905c89395d90d93@mail.gmail.com> Message-ID: <a80aba890801300821u61355b7dq54919b553e296d6f@mail.gmail.com> > Hi. Sounds like a bad config on the server side. What is your map server ? I'm using mapserver 5.0.0 (ms4w last version). Let me specify a little thing: I see that the mimetype is png for base layer and not for other layers BEFORE sending the request to mapserver (I'm using a proxy that intercept the getmap request, modify some parameters, and ask the image to mapserver) so I'm not sure that this "error" (maybe a feature?) is related to serverside problems. Non-base layers have a correct behavior with mimetypes. From crschmidt at metacarta.com Wed Jan 30 12:20:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Base Layers and mimetype In-Reply-To: <a80aba890801300821u61355b7dq54919b553e296d6f@mail.gmail.com> References: <a80aba890801300808t1d2e26d3sda824d6b67558390@mail.gmail.com> <5ec103de0801300816h5e69d349kd905c89395d90d93@mail.gmail.com> <a80aba890801300821u61355b7dq54919b553e296d6f@mail.gmail.com> Message-ID: <20080130172054.GA10262@alta.metacarta.com> On Wed, Jan 30, 2008 at 05:21:09PM +0100, Diego Guidi wrote: > > Hi. Sounds like a bad config on the server side. What is your map server ? > > I'm using mapserver 5.0.0 (ms4w last version). > Let me specify a little thing: > I see that the mimetype is png for base layer and not for other layers > BEFORE sending the request to mapserver (I'm using a proxy that > intercept the getmap request, modify some parameters, and ask the > image to mapserver) so I'm not sure that this "error" (maybe a > feature?) is related to serverside problems. > Non-base layers have a correct behavior with mimetypes. What does the code look like? Regards, -- Christopher Schmidt MetaCarta From tschaub at openplans.org Wed Jan 30 13:47:12 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] layers limit In-Reply-To: <20080129192827.4b000085.lists@jpw.biz> References: <20080129192827.4b000085.lists@jpw.biz> Message-ID: <47A0C630.4070401@openplans.org> Hey- Mick Jagger wrote: > Hi, > Is there a limit to the number of layers that OpenLayers supports? I have a page with 63 layers and I get errors with Internet Explorer at layer 60, while Firefox and Opera load the page fine, albeit slowly. Normally there are only a couple layers, but this is an odd case. > Layers get placed in the z-index hierarchy based on their "type". There are spaces for 45 (225 / 5) layers between your first "base layer" and your first "overlay". After this, things start overlapping (base layers over overlays). Similarly, there is room for 65 "overlay" layers (325 / 5) under any "popup" layers. Finally, you get 50 "popup" layers before you start overlapping the controls. None of these numbers matches the limit of 60 that you are asking about, but the idea is that browsers start to break down before either of these thresholds is met. There is likely a better way to do things than adding 60ish layers to your map at a time. Tim From brian.peck at lmco.com Wed Jan 30 16:50:27 2008 From: brian.peck at lmco.com (Peck, Brian) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] displayOutsideMaxExtent issues Message-ID: <18E2675C0D478E4494108B55120A61AF12707864@emss01m15.us.lmco.com> Hey all, I'm trying to have some static images drawn on the map and then refreshed at a certain time. I achieved this using an OpenLayers.Layer.Image however it only shows up when I'm zoomed inside its extents. I tried using "displayOutsideMaxExtent" as well as "maxExtent" in the options when creating the image but neither seems to allow the image to be shown outside of the bounds supplied in the constructor. Anyone have any other ways to allow a static image to be shown past the extent given? Also, the images, when I'm zoomed in far enough to have the images show up, aren't showing up in the correct lat/lon given by the constructor, does this have anything to do with the image resizing itself for when I'm zoomed in past the extent? - Brian Peck - 858-795-1398 - Software Engineer - Lockheed Martin From trojan77 at gmx.net Thu Jan 31 10:08:15 2008 From: trojan77 at gmx.net (DiscoBoy) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Switch of Projection (sphericalMercator) Message-ID: <15206156.post@talk.nabble.com> Hi! My final hope lies in you as I have been struggling around since 2 days now with OL. I try to use several baseLayers in my Map, that have different projections(GoogleMaps/WMS). Additionally I want to overlay these baseLayers with external data (e.g. WMS layer/Vetor). To achieve a fitting WMS overlay with GoogleMaps I have to use sphericalMercator projection (= EPSG:900913). Now I also want to have baseLayers without spericalMercator (--> EPSG:4326) and easily switch between these baseLayers. Therefor I listen for the event(map.changebaselayer) and then call a function "resetMapProjection(thenewlayer)". The function already notifies me if the new baseLayer (thenewlayer.sphericalMercator) is true or not, so I can distinguish if the baseLayer I'm switching too needs to have (EPSG:4326) or (EPSG:900913) settings. function resetMapProjection(thenewlayer) { if(map.getLayer(thenewlayer.sphericalMercator == true) { map.setOptions({ projection: "EPSG:900913", displayProjection: "EPSG:4326", units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34) }); } else { map.setOptions({ projection: "EPSG:4326", displayProjection: "EPSG:4326", units: "dd", }); } map.getLayer(thenewlayer).redraw(); } Unfortunately the newly drawn map simply does not use the new map settings! After the layer-switch I end up having a new map which has been set to meters or degrees (or so on), but I can't make the new baseLayer to be rendered using these new settings (Also "redraw()" does not work). ggggggrrrrrr....I feel and the end of my wisdom :-( And appreciate any hints! Thank you! -- View this message in context: http://www.nabble.com/Switch-of-Projection-%28sphericalMercator%29-tp15206156p15206156.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tschaub at openplans.org Thu Jan 31 12:32:19 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Switch of Projection (sphericalMercator) In-Reply-To: <15206156.post@talk.nabble.com> References: <15206156.post@talk.nabble.com> Message-ID: <47A20623.8000001@openplans.org> Hey DiscoBoy- Can you restate your problem? If you construct a map with several base layers (some Google/SM and some WMS) and several overlays (all WMS), when you switch base layers, your WMS overlays should get requested in the map projection - which is the projection of the base layer. So, what you're trying to do should happen transparently (without the need for custom code). Could be, of course, that I just didn't read your issue correctly. One thing that just occurred to me - you could be following the spherical-mercator.html example and setting projection related options on the map. In your case, don't do this. You want to set those same options on the individual layers. Then the map will figure out its projection related properties from the current base layer. Tim DiscoBoy wrote: > Hi! > > My final hope lies in you as I have been struggling around since 2 days now > with OL. I try to use several baseLayers in my Map, that have different > projections(GoogleMaps/WMS). Additionally I want to overlay these baseLayers > with external data (e.g. WMS layer/Vetor). > > To achieve a fitting WMS overlay with GoogleMaps I have to use > sphericalMercator projection (= EPSG:900913). Now I also want to have > baseLayers without spericalMercator (--> EPSG:4326) and easily switch > between these baseLayers. Therefor I listen for the > event(map.changebaselayer) and then call a function > "resetMapProjection(thenewlayer)". > > The function already notifies me if the new baseLayer > (thenewlayer.sphericalMercator) is true or not, so I can distinguish if the > baseLayer I'm switching too needs to have (EPSG:4326) or (EPSG:900913) > settings. > > function resetMapProjection(thenewlayer) { > if(map.getLayer(thenewlayer.sphericalMercator == true) { > map.setOptions({ > projection: "EPSG:900913", > displayProjection: "EPSG:4326", > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, > 20037508.34) > }); > } > else { > map.setOptions({ > projection: "EPSG:4326", > displayProjection: "EPSG:4326", > units: "dd", > }); > } > map.getLayer(thenewlayer).redraw(); > } > > Unfortunately the newly drawn map simply does not use the new map settings! > After the layer-switch I end up having a new map which has been set to > meters or degrees (or so on), but I can't make the new baseLayer to be > rendered using these new settings (Also "redraw()" does not work). > ggggggrrrrrr....I feel and the end of my wisdom :-( > > And appreciate any hints! > Thank you! From yjacolin at free.fr Thu Jan 31 13:32:10 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Bad link in the doc page Message-ID: <200801311932.10388.yjacolin@free.fr> Hi, In this page : http://openlayers.org/doc/, the "Class Reference Documentation" link to a 404 error page. ;) Regards, Y. -- Yves Jacolin ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From euzuro at gmail.com Thu Jan 31 15:40:38 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Bad link in the doc page In-Reply-To: <200801311932.10388.yjacolin@free.fr> References: <200801311932.10388.yjacolin@free.fr> Message-ID: <6ae3fb590801311240t40b4d73h286f51cb32eff5be@mail.gmail.com> I can confirm this. We need to update it. (just remove the .html page at the end of the link) e On 1/31/08, Yves Jacolin <yjacolin@free.fr> wrote: > Hi, > > In this page : http://openlayers.org/doc/, the "Class Reference > Documentation" link to a 404 error page. ;) > > Regards, > > Y. > -- > Yves Jacolin > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From euzuro at gmail.com Thu Jan 31 15:43:08 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] layers limit In-Reply-To: <47A0C630.4070401@openplans.org> References: <20080129192827.4b000085.lists@jpw.biz> <47A0C630.4070401@openplans.org> Message-ID: <6ae3fb590801311243x5cc4e99au6409d48a339acd69@mail.gmail.com> fwiw it's kind of horrendous that we have these things hardcoded in. perhaps we ought consider some sort of dynamic z-indexing plan? e On 1/30/08, Tim Schaub <tschaub@openplans.org> wrote: > Hey- > > Mick Jagger wrote: > > Hi, > > Is there a limit to the number of layers that OpenLayers supports? I have a page with 63 layers and I get errors with Internet Explorer at layer 60, while Firefox and Opera load the page fine, albeit slowly. Normally there are only a couple layers, but this is an odd case. > > > > Layers get placed in the z-index hierarchy based on their "type". There > are spaces for 45 (225 / 5) layers between your first "base layer" and > your first "overlay". After this, things start overlapping (base layers > over overlays). Similarly, there is room for 65 "overlay" layers (325 / > 5) under any "popup" layers. Finally, you get 50 "popup" layers before > you start overlapping the controls. > > None of these numbers matches the limit of 60 that you are asking about, > but the idea is that browsers start to break down before either of these > thresholds is met. > > There is likely a better way to do things than adding 60ish layers to > your map at a time. > > Tim > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From linda.rawson at gmail.com Thu Jan 31 16:25:46 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Open application with LayerSwitcher expanded In-Reply-To: <6e9b30fb0801311324h5662267dt16ef07c2042faf04@mail.gmail.com> References: <6e9b30fb0801311324h5662267dt16ef07c2042faf04@mail.gmail.com> Message-ID: <6e9b30fb0801311325t166f26aat8210b523ee30a92b@mail.gmail.com> Does anybody know how to have the default behavior of the LayerSwitcher be open and showing content upon entering the application? -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080131/795cb20d/attachment.html From penyaskito at gmail.com Thu Jan 31 18:29:16 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:05 2010 Subject: [OpenLayers-Users] Open application with LayerSwitcher expanded In-Reply-To: <6e9b30fb0801311325t166f26aat8210b523ee30a92b@mail.gmail.com> References: <6e9b30fb0801311324h5662267dt16ef07c2042faf04@mail.gmail.com> <6e9b30fb0801311325t166f26aat8210b523ee30a92b@mail.gmail.com> Message-ID: <e8254e3c0801311529j1513cb8esc65fb44e257cdb50@mail.gmail.com> Hi Linda, You can use var ls = new OpenLayers.Control.LayerSwitcher(); [...] ls.maximizeControl(); in your init method. Hope this helps. On Jan 31, 2008 10:25 PM, Linda Rawson <linda.rawson@gmail.com> wrote: > > Does anybody know how to have the default behavior of the LayerSwitcher be > open and showing content upon entering the application? > > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Regards, Christian L?pez Esp?nola