From simone.gadenz at jrc.it Tue Apr 1 04:18:25 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Problem with lining up google map layers and MApServer served layer Message-ID: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it> Hi all! When overlaying a mapserver layer to google maps data there is a shift. It seems that the World Map data coming from http://world.freemap.in/tiles/ line up mwith the data source I am publishing (the yellow one) and they are shifted of around the same amount respect to the base google map layers. The same effect is visible on the spherical-mercator.html example file. In MapServer I used the following string: PROJECTION "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" END Any way to solve this? S. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080401/1ead9c83/attachment.html From crschmidt at metacarta.com Tue Apr 1 07:50:04 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Problem with lining up google map layers and MApServer served layer In-Reply-To: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it> References: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it> Message-ID: <20080401115004.GC21204@metacarta.com> On Tue, Apr 01, 2008 at 10:18:25AM +0200, Simone Gadenz wrote: > Hi all! > > > > When overlaying a mapserver layer to google maps data there is a shift. It > seems that the World Map data coming from http://world.freemap.in/tiles/ > line up mwith the data source I am publishing (the yellow one) and they are > shifted of around the same amount respect to the base google map layers. > > The same effect is visible on the spherical-mercator.html example file. http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.14976&lon=-35.69046&layers=B0000000000TT Looks fine to me: are you saying that something is wrong with it? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Apr 1 08:23:49 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] OpenLayers 2.6 RC1 Message-ID: <20080401122349.GE21204@metacarta.com> The OpenLayers Development Team is proud to announce the first release candidate of OpenLayers 2.6. As of 2.6-RC1, the OpenLayers 2.6 release closes 282 outstanding tickets, 75% more than any OpenLayers release to date. For information on possible changes that will need to be made between this version of OpenLayers and previous versions, please look at the Release notes, available at the Release Notes information[1]. We invite you to help us test the 2.6 release candidate! To test 2.6 in your applications, include the following tag in your OpenLayers-powered page: As always, the source is available at http://openlayers.org/download/. Bug reports can be filed in Trac, under the 2.6 version and milestone. This is a large release: the largest of any OpenLayers release to date. We encourage widescale testing in an effort to shake out any bugs in upgrading existing applications to OpenLayers 2.6. This release features a number of major developments, including: * Integration of the CloudAmber "Google Like" popups for advanced visual display of information in popups * Resulting improvements throughout all popup code, including autosizing popups to the content they contain. * Improved panning of commercial layers like Google Maps and Yahoo! Maps * Animated panning of the map, using OpenLayers.Tween support * Layer Image transitions, for keeping images visible when zooming to allow smoother transitions * Client side reprojection support using built in transformations for spherical mercator, or the proj4js library for other projections. * Support for reprojecting vector data layers * Support for reprojecting user-facing controls like mouseposition * Support for programatically reprojecting points and geometries * Improved OpenLayers Styling, including: * OpenLayers.Style, OpenLayers.StyleMap, OpenLayers.Rule support for improved feature-attribute based styling * SLD read/write support * Support for reading and writing multiple versions of WMC. * Improved KML support, including KML styling support. * Improved GeoRSS Format support, including GeoRSS GML read support. * New ScaleLine Control for displaying visual scale * New NavigationHistory control for map history navigation * Localization/Better Internationalization support * Layer support for MapGuide Open Source * A number of new / improved handlers to make handling user interactions easier * Handler.Hover * Handler.Click There are a number of people who have really made this release happen. TOPP and MetaCarta worked together to arrange for several day long 'hack session' in TOPP's office in New York City with myself, Erik, and Tim Schaub: This session was extremely productive, and ended up producing a huge amount of code for the relatively little amount of time we were all able to get together. Without that several day long session, I think we'd still be far from a release. Many thanks to Chris Holmes from TOPP and John Frank/Josiah Strandberg at MetaCarta for supporting that effort. A list of people who stic out to me as having helped especially to make this release happen: * Andreas Hocevar (TOPP) * Tim Schaub (TOPP) * Roald DeWit (LISAsoft) * Bart van den Eijnden (OSGIS) * Erik Uzureau (MetaCarta) * Eric Lemoine (Camptocamp) * Pierre Giraud (Camptocamp) * Fred Junod (Camptocamp) * Paul Spencer (DM Solutions) * Mike Adair (DM Solutions) * All the other testers, commenters, etc. This is by no means a complete list: There are dozens of people who I have interacted with that deserve to be on this list, but these are the ones who stick out in my mind as being a major boon to the current release. Additionally, I'd like to speak high praises about the users who helped out during the hackathon during FOSS4G. Although it's hard to believe, the FOSS4G hack session was during the current (2.6) release cycle, and we picked up some really great additions to the library, like our new Fancier examples list http://openlayers.org/dev/doc/examples.html as a result of the hard work put together in a single day by a bunch of people who had never touched OpenLayers before. So thank you to those people as well. Further RC announcements will be sent only to the Developers list: anyone interested in tracking the progress to a final release should subscribe[2] to that list. We look forward to your feedback on this release. [1] http://trac.openlayers.org/wiki/Release/2.6/Notes#Changestoexistingapplicationsfrompreviousversions [2] http://openlayers.org/mailman/listinfo/dev Regards, -- Christopher Schmidt MetaCarta From simone.gadenz at jrc.it Tue Apr 1 08:59:30 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Problem with lining up google map layers and MApServer served layer In-Reply-To: <20080401115004.GC21204@metacarta.com> References: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it> <20080401115004.GC21204@metacarta.com> Message-ID: <002101c893f8$3992e5c0$acb8b140$@gadenz@jrc.it> The attached image is a screen shot of an area in the South of Argentina. It seems that the overlay layers (my mapserver layer and the worldmap) has a shift toward North related to the base layer (the grey google map). The link you sent (http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.1 4976&lon=-35.69046&layers=B0000000000TT) does not work for me both in IE and in FF. Thanks S. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: marted? 1 aprile 2008 13.50 To: Simone Gadenz Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Problem with lining up google map layers and MApServer served layer On Tue, Apr 01, 2008 at 10:18:25AM +0200, Simone Gadenz wrote: > Hi all! > > > > When overlaying a mapserver layer to google maps data there is a shift. It > seems that the World Map data coming from http://world.freemap.in/tiles/ > line up mwith the data source I am publishing (the yellow one) and they are > shifted of around the same amount respect to the base google map layers. > > The same effect is visible on the spherical-mercator.html example file. http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.14 976&lon=-35.69046&layers=B0000000000TT Looks fine to me: are you saying that something is wrong with it? Regards, -- Christopher Schmidt MetaCarta -------------- next part -------------- A non-text attachment was scrubbed... Name: ol_mismatch.jpg Type: image/jpeg Size: 18925 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080401/751236ce/ol_mismatch.jpg From research at leviathanchile.org Tue Apr 1 20:04:09 2008 From: research at leviathanchile.org (G. Paolo Sanino V.) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Controls not working Message-ID: <200804012004.13618.research@leviathanchile.org> Hi All, I am new at OpenLayers and I think this is awesome. I am trying to build a small GIS for an ONG using the same layers used on the Openlayers homepage. The big step will be to connect it to a database to store the markers. But in a later step. I am so sorry to bother you with such a question. It may be very simple but I have had nightmares looking for a solution... Here is my problem: I have gotten two layers working using "map.addlayer()" for each layer instead of using "map.addlayers()" for all. I do not know why, if I use "AddLayers", I only get a blank map (white) with only the blue buttons on the left up corner. Also, and maybe related, I got the center and zoom of the map working, however, the next controls do not work/show in the map: ScaleLine, MousePosition, OverviewMap. Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm): any help or idea would be very much appreciated... Best regards, Gian Paolo From brad at cubewerx.com.au Tue Apr 1 21:08:50 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] SpericalMercator Message-ID: I am using a geocoder to go to an address but it always returns to me lat longs which is normally just fine. However, I am also using a shericalMercator base and would therefore like to transform the single point from Lat Longs to Eastings Northings in sphericalMercator projection. Dose anyone have a method or the formula to do this? Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/ced7953e/attachment.html From crschmidt at metacarta.com Tue Apr 1 21:21:41 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] SpericalMercator In-Reply-To: References: Message-ID: <20080402012140.GA12578@metacarta.com> On Wed, Apr 02, 2008 at 12:08:50PM +1100, bradleyspencer wrote: > I am using a geocoder to go to an address but it always returns to me lat > longs which is normally just fine. However, I am also using a > shericalMercator base and would therefore like to transform the single point > from Lat Longs to Eastings Northings in sphericalMercator projection. Dose > anyone have a method or the formula to do this? Are you using 2.6 yet? It's in there: just: lonlat.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); If not, of course, you can use the forwardMercator and inverseMercator functions on your commercial sphericalMercator layer. (See Layer/SphericalMercator.js.) Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Tue Apr 1 23:59:16 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] SpericalMercator In-Reply-To: <20080402012140.GA12578@metacarta.com> Message-ID: Chris, Thanks for that. I upgraded to 2.6. and it is stable at least for what I am doing and the transformation worked a treat. When is 2.6 scheduled to be published? Cheers, Brad Spencer -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Wednesday, 2 April 2008 12:22 PM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] SpericalMercator On Wed, Apr 02, 2008 at 12:08:50PM +1100, bradleyspencer wrote: > I am using a geocoder to go to an address but it always returns to me lat > longs which is normally just fine. However, I am also using a > shericalMercator base and would therefore like to transform the single point > from Lat Longs to Eastings Northings in sphericalMercator projection. Dose > anyone have a method or the formula to do this? Are you using 2.6 yet? It's in there: just: lonlat.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); If not, of course, you can use the forwardMercator and inverseMercator functions on your commercial sphericalMercator layer. (See Layer/SphericalMercator.js.) Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 2 00:19:39 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] SpericalMercator In-Reply-To: References: <20080402012140.GA12578@metacarta.com> Message-ID: <20080402041938.GA3531@metacarta.com> On Wed, Apr 02, 2008 at 02:59:16PM +1100, bradleyspencer wrote: > Chris, > > Thanks for that. I upgraded to 2.6. and it is stable at least for what I am > doing and the transformation worked a treat. > > When is 2.6 scheduled to be published? As I'm sure you saw earlier today, 2.6 only reached RC1 this morning. In general, our time from RC1 to release has ranged from 1 week to 6 weeks. My hope is that this will be a short RC cycle. However, it is a significantly larger release than any OpenLayers release in the past: Although there is less change in core functionality, we may still have unforseen problems / regressions in code that we want to fix in 2.6 that slow the final release process. I won't give a date: I would be wrong. I will say "As soon as it makes sense" -- which means the more feedback we get from our users on things that work, the better and sooner we can release. So thank you for your feedback. As always, the users list will be notified when the new release is available. Regards, -- Christopher Schmidt MetaCarta From David at itbeyond.com.au Wed Apr 2 00:33:34 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] FramedCloud GEORSS support Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local> I have been following the development around FramedClould for the last few days and now see that it is published in the trunk. Excellent piece of work to all concerned. I cannot profess to be a JS expert nor am I fully into OL code as yet - I am getting there but thought it best to ask this question before I start adjust the code. Is it possible to transfer support of the GEORSS markers from popup to FramedCloud popups. This would sit closer to other implementations. Maybe there is a simple way to do this however as I stated I am not fully into it just yet. Any help or thoughts on this would be great! Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/c7c56d71/attachment.html From eric.c2c at gmail.com Wed Apr 2 02:43:47 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Controls not working In-Reply-To: <200804012004.13618.research@leviathanchile.org> References: <200804012004.13618.research@leviathanchile.org> Message-ID: <5ec103de0804012343v7187e4f4w5e772542db9133cc@mail.gmail.com> On Wed, Apr 2, 2008 at 2:04 AM, G. Paolo Sanino V. wrote: > Hi All, > > I am new at OpenLayers and I think this is awesome. I am trying to build a > small GIS for an ONG using the same layers used on the Openlayers homepage. > The big step will be to connect it to a database to store the markers. But in > a later step. > I am so sorry to bother you with such a question. It may be very simple but I > have had nightmares looking for a solution... Here is my problem: > > I have gotten two layers working using "map.addlayer()" for each layer instead > of using "map.addlayers()" for all. I do not know why, if I use "AddLayers", > I only get a blank map (white) with only the blue buttons on the left up > corner. Doesn't "map.addLayers([jpl_wms, ol_wms]);" work? > Also, and maybe related, I got the center and zoom of the map working, > however, the next controls do not work/show in the map: > ScaleLine, MousePosition, OverviewMap. > > Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm): > > I copied/pasted your code in OpenLayers' wms.html example and it just worked. The controls are there. When I load your web page in FF, FireBug shows this error: OpenLayers.Control.ScaleLine is not a constructor map.addControl(new OpenLayers.Control.ScaleLine()); It seems to me that you're missing controls in your OpenLayers.js build. You can try to use http://dev.openlayers.org/nightly/OpenLayers.js instead of your (custom) OpenLayers.js build to make sure that's your problem. Cheers, -- Eric From frederic.junod at camptocamp.com Wed Apr 2 02:47:56 2008 From: frederic.junod at camptocamp.com (=?UTF-8?B?RnLDqWTDqXJpYw==?= Junod) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Controls not working In-Reply-To: <200804012004.13618.research@leviathanchile.org> References: <200804012004.13618.research@leviathanchile.org> Message-ID: <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com> Hi, You can't use the ScaleLine control because you're using and old version of OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5). The ScaleLine control was added after the 2.5 release. You have to use a more recent version of OpenLayers, the new stable release is not ready yet but you can use the release candidate: http://openlayers.org/api/2.6-rc1/OpenLayers.js But this is not the final code !! When the final 2.6 will be released this url will become obsolete ... fredj Le Tue, 1 Apr 2008 20:04:09 -0400, "G. Paolo Sanino V." a ?crit : > Hi All, > > I am new at OpenLayers and I think this is awesome. I am trying to build a > small GIS for an ONG using the same layers used on the Openlayers homepage. > The big step will be to connect it to a database to store the markers. But in > a later step. > I am so sorry to bother you with such a question. It may be very simple but I > have had nightmares looking for a solution... Here is my problem: > > I have gotten two layers working using "map.addlayer()" for each layer > instead of using "map.addlayers()" for all. I do not know why, if I use > "AddLayers", I only get a blank map (white) with only the blue buttons on the > left up corner. > Also, and maybe related, I got the center and zoom of the map working, > however, the next controls do not work/show in the map: > ScaleLine, MousePosition, OverviewMap. > > Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm): > > > > any help or idea would be very much appreciated... > > Best regards, > Gian Paolo > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Fr?d?ric Junod Camptocamp SA From xin at zenpow.com Wed Apr 2 02:51:52 2008 From: xin at zenpow.com (Xin) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] any good-looking marker icons out there? Message-ID: The markers I'm currently using are those diamond shapes ones. Are there any better looking free-to-use markers out there? I am right to assume I can't just use Google's? thanks Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/09c38e6d/attachment.html From David at itbeyond.com.au Wed Apr 2 06:06:15 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359 Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local> Hi, I was needed to add support for right mouse click events and also the right mouse double click zoom out function. I have made the required mods to the code to support this and was wondering (as I am un familiar with the process) how to submit the mods for consideration in the overall project. There may need to be a compliance check done There are updates to Events.js, Controls/Navigation.js, Handler/Click.js and also a one liner in Map.js. The updates I have developed add support for single and double right mouse events. I have mapped the zoom out to double right click in Navigaton.js. I noticed the ticket for this task and the expected release in 2.7 however I wondered if we may be able to sneak it into 2.6. Anyway can someone tell me what the process is to have the mods evaluated and I will gladly comply. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/3b0174ea/attachment.html From pagameba at gmail.com Wed Apr 2 06:29:39 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359 In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local> Message-ID: <5B1FE9B2-0616-4EDE-945E-62623FF3FA42@gmail.com> David, you can attach your patch to the ticket. The feature list for 2.6 has been frozen for a little while and now that RC1 is out, it is unlikely that this will make it in to 2.6 as it is a new feature, not a bug or regression. At this point, only bugs (fairly critical ones) and changes in API behaviour from previous versions would be considered for inclusion in 2.6. Paul On 2-Apr-08, at 6:06 AM, David Martin wrote: > Hi, > > I was needed to add support for right mouse click events and also > the right mouse double click zoom out function. I have made the > required mods to the code to support this and was wondering (as I am > un familiar with the process) how to submit the mods for > consideration in the overall project. There may need to be a > compliance check done > > There are updates to Events.js, Controls/Navigation.js, Handler/ > Click.js and also a one liner in Map.js. > > The updates I have developed add support for single and double right > mouse events. I have mapped the zoom out to double right click in > Navigaton.js. > > I noticed the ticket for this task and the expected release in 2.7 > however I wondered if we may be able to sneak it into 2.6. Anyway > can someone tell me what the process is to have the mods evaluated > and I will gladly comply. > > Regards > David Martin > Managing Director > I.T. Beyond Pty Ltd > Postal: > PO BOX 967 > HILLARYS WA 6923 > Ph: > (08) 9403 3737 > Mobile: > 0417 677 275 > Fax: > (08) 9403 3738 > Skype: > itbeyond_david > Check out our websites: www.ExplorOz.com and www.itbeyond.com.au > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Wed Apr 2 07:38:53 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Controls not working In-Reply-To: <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com> References: <200804012004.13618.research@leviathanchile.org> <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com> Message-ID: <20080402113852.GA10049@metacarta.com> On Wed, Apr 02, 2008 at 08:47:56AM +0200, Fr?d?ric Junod wrote: > Hi, > > You can't use the ScaleLine control because you're using and old version of > OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5). The > ScaleLine control was added after the 2.5 release. > > You have to use a more recent version of OpenLayers, the new stable release is > not ready yet but you can use the release candidate: > http://openlayers.org/api/2.6-rc1/OpenLayers.js > But this is not the final code !! When the final 2.6 will be released this url > will become obsolete ... Nothing in /api/ Ever goes away: You can continue to use 2.6-rc1 for all time, but it would not be wise to. However, it's only obsolete in the same way that /api/2.4/ is: You can safely use this in your application, you should just be aware that as soon as 2.6 is released, it will make sense for you to switch. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 2 07:47:36 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] FramedCloud GEORSS support In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local> Message-ID: <20080402114735.GB10049@metacarta.com> On Wed, Apr 02, 2008 at 12:33:34PM +0800, David Martin wrote: > I have been following the development around FramedClould for the last > few days and now see that it is published in the trunk. Excellent piece > of work to all concerned. > > I cannot profess to be a JS expert nor am I fully into OL code as yet - > I am getting there but thought it best to ask this question before I > start adjust the code. Is it possible to transfer support of the GEORSS > markers from popup to FramedCloud popups. This would sit closer to other > implementations. What 'other implementations'? > Maybe there is a simple way to do this however as I > stated I am not fully into it just yet. So, I have a couple feelings on this. 1. The way that we do Layer.GeoRSS right now is an unfortunate situation: if we were to 'do it all over again', we would do it very similar to the new examples/sundials.html, by having a single layer that wrapped up the data display and a selectfeature control to open a popup. I *highly* recommend looking at this example: It's a few more lines of code than setting up a layer.GeoRSS, but it's *way* more extensible, since you have complete control over just about everything. 2. If you don't like this, and want to use layer.georss with framedclouds, then you can do this at this time: OpenLayers.Feature.prototype.popupClass = OpenLayers.Popup.FramedCloud; I think this should work as a first order approximation. However, there could be problems with this, and it's not really 'supported' because we don't do it in our tests or examples, so it is, at the moment, somewhat at your own risk. I still recommend #1 strongly for anyone doing work with GeoRSS for the long term -- your next question will be "how do I use different icons for entries from different categories?", and that one can't be answered nearly so easily. Good luck, and Best Regards, -- Christopher Schmidt MetaCarta From nils.weinander at curalia.se Wed Apr 2 08:07:04 2008 From: nils.weinander at curalia.se (Nils Weinander) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Loading invisible layers Message-ID: <47F376E8.2060602@curalia.se> I have noticed that layers (WMS in this case) are always loaded, whether they are visible or not. Is there a way to make a layer load (do the WMS request) first when a layer's visibility is set to true? -- Nils Weinander | Systems Designer Phone +46 (0)8 410 064 56 Mobile +46 (0)70 978 28 37 -- Curalia AB | www.curalia.se V?stmannagatan 15, 111 24 Stockholm, Sweden -- From crschmidt at metacarta.com Wed Apr 2 09:01:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Loading invisible layers In-Reply-To: <47F376E8.2060602@curalia.se> References: <47F376E8.2060602@curalia.se> Message-ID: <20080402130131.GA11103@metacarta.com> On Wed, Apr 02, 2008 at 02:07:04PM +0200, Nils Weinander wrote: > I have noticed that layers (WMS in this case) are always > loaded, whether they are visible or not. Is there a way > to make a layer load (do the WMS request) first when a > layer's visibility is set to true? Are you using trunk/2.6, or 2.5? I think the answer is the latter, and if so, the answer is "Upgrade." If the answer is "The former", then the answer is "We thought the code did that: Please open a ticket for 2.7." Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 2 09:08:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359 In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local> Message-ID: <20080402130801.GB11103@metacarta.com> On Wed, Apr 02, 2008 at 06:06:15PM +0800, David Martin wrote: > Hi, > > I was needed to add support for right mouse click events and also the > right mouse double click zoom out function. I have made the required > mods to the code to support this and was wondering (as I am un familiar > with the process) how to submit the mods for consideration in the > overall project. There may need to be a compliance check done In general, the process for creating and submitting patches is outlined at http://trac.openlayers.org/wiki/CreatingPatches . You should also fill out and submit a CLA: http://trac.openlayers.org/wiki/HowToContribute#ContributorsLicenseAgreements > I noticed the ticket for this task and the expected release in 2.7 > however I wondered if we may be able to sneak it into 2.6. Anyway can > someone tell me what the process is to have the mods evaluated and I > will gladly comply. The feature freeze for 2.6 was 6 weeks ago: so unless you have a time machine, this won't be in 2.6. Thanks for your interest, -- Christopher Schmidt MetaCarta From nils.weinander at curalia.se Wed Apr 2 09:40:31 2008 From: nils.weinander at curalia.se (Nils Weinander) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Loading invisible layers In-Reply-To: <20080402130131.GA11103@metacarta.com> References: <47F376E8.2060602@curalia.se> <20080402130131.GA11103@metacarta.com> Message-ID: <47F38CCF.7010605@curalia.se> Christopher Schmidt wrote: > On Wed, Apr 02, 2008 at 02:07:04PM +0200, Nils Weinander wrote: >> I have noticed that layers (WMS in this case) are always >> loaded, whether they are visible or not. Is there a way >> to make a layer load (do the WMS request) first when a >> layer's visibility is set to true? > > Are you using trunk/2.6, or 2.5? I think the answer is the latter, and > if so, the answer is "Upgrade." > > If the answer is "The former", then the answer is "We thought the code > did that: Please open a ticket for 2.7." I'm using 2.5, thanks for the very quick response! I don't think I'm in a position to upgrade right now, but as I know that there is a solution, this shouldn't be a major issue. -- Nils Weinander | Systems Designer Phone +46 (0)8 410 064 56 Mobile +46 (0)70 978 28 37 -- Curalia AB | www.curalia.se V?stmannagatan 15, 111 24 Stockholm, Sweden -- From euzuro at gmail.com Wed Apr 2 09:47:53 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] any good-looking marker icons out there? In-Reply-To: References: Message-ID: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com> :-) If you do find some alternative icons that are available free of use, please let us know. just like we will be setting up an addins/customPopups directory, I think it would be a good idea to have an addins/customMarkers Thanks, Xin! erik On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote: > The markers I'm currently using are those diamond shapes ones. Are there any > better looking free-to-use markers out there? > > I am right to assume I can't just use Google's? > > thanks > Xin > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From James.R.Bellenger at nga.mil Wed Apr 2 10:08:31 2008 From: James.R.Bellenger at nga.mil (Bellenger, Jim) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers use? Message-ID: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil> I was wondering which JavaScript Obfuscator does OpenLayers use to crunch down the scripts? Jim Bellenger Imagery and Geospatial Scientist NGA/II-GIAT 314-263-4924/4728, DSN 693-4924/4728 Secure 577-3543 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/b4a79779/attachment.html From woodbri at swoodbridge.com Wed Apr 2 11:09:56 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] any good-looking marker icons out there? In-Reply-To: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com> References: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com> Message-ID: <47F3A1C4.8030806@swoodbridge.com> You might want to check out what ka-map has, it is likely we can use those. You might also want to check out msCross, they have a simple clean balloon with a shadow thats looks nice. http://sourceforge.net/projects/mscross I would think that we can ask either of these for permission to use their icons. Another option might be to ask the community if any of the graphic designers out there would like to create some sample icons that they would be willing to contribute to be a part of OpenLayers. Run a contest and have the community vote on them. -Steve W Erik Uzureau wrote: > :-) > > If you do find some alternative icons that are available free of use, > please let us know. > just like we will be setting up an addins/customPopups directory, I > think it would be > a good idea to have an addins/customMarkers > > Thanks, Xin! > erik > > On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote: >> The markers I'm currently using are those diamond shapes ones. Are there any >> better looking free-to-use markers out there? >> >> I am right to assume I can't just use Google's? >> >> thanks >> Xin >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From bartvde at osgis.nl Wed Apr 2 10:10:23 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers use? Message-ID: jsmin, see: tools/jsmin.py Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Bellenger, Jim Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers use? Datum: 02/04/08 12:08 > > > > > > Which JavaScript Obfuscator does OpenLayers use? > > > > > I was wondering which JavaScript Obfuscator does OpenLayers use to crunch down the scripts? > > > Jim Bellenger > Imagery and Geospatial Scientist > NGA/II-GIAT > 314-263-4924/4728, DSN 693-4924/4728 > Secure 577-3543 > > > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Wed Apr 2 10:13:49 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers use? In-Reply-To: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil> References: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil> Message-ID: <20080402141349.GA2394@metacarta.com> On Wed, Apr 02, 2008 at 09:08:31AM -0500, Bellenger, Jim wrote: > I was wondering which JavaScript Obfuscator does OpenLayers use to > crunch down the scripts? Jim, The default build tools, used to create the 'shipping' versions of OpenLayers, use a Python port of jsmin. (This file is available in the tools/ directory.) jsmin is not designed to be an obfuscator: just a basic compressor. It is possible to use any Javascript compressor to compress OpenLayers code, if jsmin does not fit your needs: simply use the ./buildUncompressed.py tool in the build directory to build and uncompressed library, then run the result through your compressor of choice. Regards, -- Christopher Schmidt MetaCarta From simone.gadenz at jrc.it Wed Apr 2 10:18:26 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Problem with map server single tile Message-ID: <004701c894cc$6addd020$40997060$@gadenz@jrc.it> Hello! I have a problem of positioning with a map server single layer over a spheric mercator base layer. The definition of the map server layer is: // create dma default layer dmadef = new OpenLayers.Layer.MapServer( "Digital Map Archive Default", "http://139.191.68.15:8000/cgi-bin/mapserv.exe?map=C:/MS_MapFiles/dmaclient/ dmadefault.map&mode=map", {layers: '0,00,1,2,3', reaspect: false, transparent: true, isBaseLayer: false, wrapDateLine: true}, {singleTile: true, ratio: 1, opacity: 0.3, transitionEffect: 'resize'} ); When the application starts (the initial extent is set using the map.zoomToMaxExtent() method) the single layer is positioned on the right side of the screen and it goes out of the page for half of its width. When I zoom in thinghs work perfectly. If I use a tiled layer every single tiles positions correctly. In fact I would like to use tiles but in that case I have a lot of problem with myltiple labels. Suggestion? Simone From simone.gadenz at jrc.it Wed Apr 2 10:18:12 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] FramedCloud GEORSS support In-Reply-To: <20080402114735.GB10049@metacarta.com> References: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local> <20080402114735.GB10049@metacarta.com> Message-ID: <004601c894cc$625a8d80$270fa880$@gadenz@jrc.it> My 2 cents: I load the GeoRSs through a GML layer using a GeoRSS format. I modified a bit the GeoRSS format class to give the user the possibility of defining the field he wants to use for symbolizations. This is the html that works for me: var in_options = { 'internalProjection': new OpenLayers.Projection("EPSG:900913"), 'externalProjection': new OpenLayers.Projection("EPSG:4326"), 'type':'eventType alertLevel' }; // create a GeoRSS layer // Inorder to accomodate all the possible geometry type the layer must be a GML layer with a GeoRSS format // defining styles var styleMap = new OpenLayers.StyleMap({ fillOpacity: 1, pointRadius: 10 }); // create a lookup table with different symbolizers for 0, 1 and 2 var lookup = { EQGreen: {externalGraphic: "images/eqgreen.jpg"}, EQOrange: {externalGraphic: "images/eqorange.jpg"}, EQRed: {externalGraphic: "images/eqred.jpg"}, TCGreen: {externalGraphic: "images/tcgreen.jpg"}, TCOrange: {externalGraphic: "images/tcorange.jpg"}, TCRed: {externalGraphic: "images/tcred.jpg"}, FLGreen: {externalGraphic: "images/flgreen.jpg"}, FLOrange: {externalGraphic: "images/florange.jpg"}, FLRed: {externalGraphic: "images/flred.jpg"}, VOGreen: {externalGraphic: "images/vogreen.jpg"}, VOOrange: {externalGraphic: "images/voorange.jpg"}, VORed: {externalGraphic: "images/vored.jpg"} } // add rules from the above lookup table, with the keyes mapped to // the "type" property of the features, for the "default" intent styleMap.addUniqueValueRules("default", "type", lookup); var georssformat = new OpenLayers.Format.GeoRSS(in_options); var gmllayer = new OpenLayers.Layer.GML("GDACS Alerts", "RSS.xml", {'format': georssformat, styleMap: styleMap}); Hope this helps! Simone From simone.gadenz at jrc.it Wed Apr 2 10:21:31 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] FW: FramedCloud GEORSS support [completed] Message-ID: <004801c894cc$d913c590$8b3b50b0$@gadenz@jrc.it> My 2 cents: I load the GeoRSs through a GML layer using a GeoRSS format. I modified a bit the GeoRSS format class to give the user the possibility of defining the field he wants to use for symbolizations. This is the html that works for me: var in_options = { 'internalProjection': new OpenLayers.Projection("EPSG:900913"), 'externalProjection': new OpenLayers.Projection("EPSG:4326"), 'type':'eventType alertLevel' }; // create a GeoRSS layer // Inorder to accomodate all the possible geometry type the layer must be a GML layer with a GeoRSS format // defining styles var styleMap = new OpenLayers.StyleMap({ fillOpacity: 1, pointRadius: 10 }); // create a lookup table with different symbolizers for 0, 1 and 2 var lookup = { EQGreen: {externalGraphic: "images/eqgreen.jpg"}, EQOrange: {externalGraphic: "images/eqorange.jpg"}, EQRed: {externalGraphic: "images/eqred.jpg"}, TCGreen: {externalGraphic: "images/tcgreen.jpg"}, TCOrange: {externalGraphic: "images/tcorange.jpg"}, TCRed: {externalGraphic: "images/tcred.jpg"}, FLGreen: {externalGraphic: "images/flgreen.jpg"}, FLOrange: {externalGraphic: "images/florange.jpg"}, FLRed: {externalGraphic: "images/flred.jpg"}, VOGreen: {externalGraphic: "images/vogreen.jpg"}, VOOrange: {externalGraphic: "images/voorange.jpg"}, VORed: {externalGraphic: "images/vored.jpg"} } // add rules from the above lookup table, with the keyes mapped to // the "type" property of the features, for the "default" intent styleMap.addUniqueValueRules("default", "type", lookup); var georssformat = new OpenLayers.Format.GeoRSS(in_options); var gmllayer = new OpenLayers.Layer.GML("GDACS Alerts", "RSS.xml", {'format': georssformat, styleMap: styleMap}); Then I added these functions function onPopupClose(evt) { selectControl.unselect(selectedFeature); } function onFeatureSelect(feature) { selectedFeature = feature; popup = new OpenLayers.Popup.FramedCloud("chicken", feature.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(250,100), "
" + feature.data.title +"
" + feature.data.description+"
", null, true, onPopupClose); feature.popup = popup; map.addPopup(popup); } function onFeatureUnselect(feature) { map.removePopup(feature.popup); feature.popup.destroy(); feature.popup = null; } Hope this helps! Simone From simone.gadenz at jrc.it Wed Apr 2 11:23:07 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] LayerSwitcher control customisation Message-ID: <000001c894d5$73fa7d80$5bef7880$@gadenz@jrc.it> Hello again. I'd like to modify the LayerSwitcher control to: - include the management of the transparency of the layers directly in there; - add buttons for each layer for reading metadata and similar information Anybody thought already about it? How is the list of the layer written into the component? Thanks Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/09ad6f10/attachment.html From linda.rawson at gmail.com Wed Apr 2 12:57:31 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Extensions on OpenLayers code Message-ID: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> I have several custom enhancements I have made to the source code. With the onset of a new release I would like to put these in a separate file and "override" the code that is in the release. For instance I might want to add the following function, just an example, it might already be in there to Map.js getLayerByName: function(name) { var foundLayer = null; for (var i = 0; i < this.layers.length; i++) { var layer = this.layers[i]; if (layer.name == name) { foundLayer = layer; } } return foundLayer; }, Would I do something like the following in a .js file to be called after Openlayers.js? Map.prototype.getLayerByName=function(name) { var foundLayer = null; for (var i = 0; i < this.layers.length; i++) { var layer = this.layers[i]; if (layer.name == name) { foundLayer = layer; } } return foundLayer; } How do you do this? -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/87a83a22/attachment.html From crschmidt at metacarta.com Wed Apr 2 14:16:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Extensions on OpenLayers code In-Reply-To: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> Message-ID: <20080402181600.GC14640@metacarta.com> On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote: > I have several custom enhancements I have made to the source code. With the > onset of a new release I would like to put these in a separate file and > "override" the code that is in the release. For instance I might want to > add the following function, just an example, it might already be in there to > Map.js > > getLayerByName: function(name) { > var foundLayer = null; > for (var i = 0; i < this.layers.length; i++) { > var layer = this.layers[i]; > if (layer.name == name) { > foundLayer = layer; > } > } > return foundLayer; > }, > Would I do something like the following in a .js file to be called after > Openlayers.js? > > Map.prototype.getLayerByName=function(name) { > var foundLayer = null; > for (var i = 0; i < this.layers.length; i++) { > var layer = this.layers[i]; > if (layer.name == name) { > foundLayer = layer; > } > } > return foundLayer; > } > Yes, this is what I would do. Regards, -- Christopher Schmidt MetaCarta From linda.rawson at gmail.com Wed Apr 2 14:44:51 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Extensions on OpenLayers code In-Reply-To: <20080402181600.GC14640@metacarta.com> References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> <20080402181600.GC14640@metacarta.com> Message-ID: <6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com> Is that the right syntax? On Wed, Apr 2, 2008 at 12:16 PM, Christopher Schmidt < crschmidt@metacarta.com> wrote: > On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote: > > I have several custom enhancements I have made to the source code. With > the > > onset of a new release I would like to put these in a separate file and > > "override" the code that is in the release. For instance I might want > to > > add the following function, just an example, it might already be in > there to > > Map.js > > > > getLayerByName: function(name) { > > var foundLayer = null; > > for (var i = 0; i < this.layers.length; i++) { > > var layer = this.layers[i]; > > if (layer.name == name) { > > foundLayer = layer; > > } > > } > > return foundLayer; > > }, > > Would I do something like the following in a .js file to be called after > > Openlayers.js? > > > > Map.prototype.getLayerByName=function(name) { > > var foundLayer = null; > > for (var i = 0; i < this.layers.length; i++) { > > var layer = this.layers[i]; > > if (layer.name == name) { > > foundLayer = layer; > > } > > } > > return foundLayer; > > } > > > > Yes, this is what I would do. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/155e5e9f/attachment.html From pagameba at gmail.com Wed Apr 2 14:50:57 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Extensions on OpenLayers code In-Reply-To: <6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com> References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> <20080402181600.GC14640@metacarta.com> <6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com> Message-ID: <3F6024EE-AA27-42E9-9075-99E34A89B379@gmail.com> try OpenLayers.Map.prototype Cheers Paul On 2-Apr-08, at 2:44 PM, Linda Rawson wrote: > Is that the right syntax? > > On Wed, Apr 2, 2008 at 12:16 PM, Christopher Schmidt > wrote: > On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote: > > I have several custom enhancements I have made to the source > code. With the > > onset of a new release I would like to put these in a separate > file and > > "override" the code that is in the release. For instance I might > want to > > add the following function, just an example, it might already be > in there to > > Map.js > > > > getLayerByName: function(name) { > > var foundLayer = null; > > for (var i = 0; i < this.layers.length; i++) { > > var layer = this.layers[i]; > > if (layer.name == name) { > > foundLayer = layer; > > } > > } > > return foundLayer; > > }, > > Would I do something like the following in a .js file to be called > after > > Openlayers.js? > > > > Map.prototype.getLayerByName=function(name) { > > var foundLayer = null; > > for (var i = 0; i < this.layers.length; i++) { > > var layer = this.layers[i]; > > if (layer.name == name) { > > foundLayer = layer; > > } > > } > > return foundLayer; > > } > > > > Yes, this is what I would do. > > Regards, > -- > Christopher Schmidt > MetaCarta > > > > -- > Linda Rawson _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From B.Sandvik at sms.ed.ac.uk Wed Apr 2 14:54:20 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] GDAL2Tiles Message-ID: <47F3D65C.5020805@sms.ed.ac.uk> Hey, Has anyone managed to load georeferenced map tiles generated by gdal2tiles into OpenLayers? This is the code generated by gdal2tiles: http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html Only pixel based view is supported, which makes is difficult to combine map tiles with other data layers. Is there an alternative way of loading map tiles? Or is there a better alternative to gdal2tiles? About GDAL2Tiles: http://blog.thematicmapping.org/2008/03/generating-map-tiles-with-gdal2tiles.html Thanks, Bjorn http://blog.thematicmapping.org -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From crschmidt at metacarta.com Wed Apr 2 15:15:19 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] GDAL2Tiles In-Reply-To: <47F3D65C.5020805@sms.ed.ac.uk> References: <47F3D65C.5020805@sms.ed.ac.uk> Message-ID: <20080402191518.GA3223@metacarta.com> On Wed, Apr 02, 2008 at 07:54:20PM +0100, Bjorn Sandvik wrote: > This is the code generated by gdal2tiles: > http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html > Only pixel based view is supported, which makes is difficult to combine > map tiles with other data layers. I saw this same thing mentioned in some blog posting somewhere, and I thought "huh, someone is confused": in fact, this lines up exactly with the TMS spec, and can be used with practically no changes by the default TMS layer: http://crschmidt.net/mapping/naturalearth.html You just need to specify a serviceVersion of '.' . (This is pulled almost exactly from the TMS example that ships with OpenLayers.) > Is there an alternative way of loading map tiles? Other than the TMS layer? > Or is there a better alternative to gdal2tiles? None needed, so far as I can tell. Regards, -- Christopher Schmidt MetaCarta From bluecarto at gmail.com Wed Apr 2 15:18:03 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Extensions on OpenLayers code In-Reply-To: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com> Message-ID: For your information, there's currently a method (getLayersByName [1]) that is already written and might match your needs. http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getLayersByName Regards, Pierre On Wed, Apr 2, 2008 at 6:57 PM, Linda Rawson wrote: > I have several custom enhancements I have made to the source code. With the > onset of a new release I would like to put these in a separate file and > "override" the code that is in the release. For instance I might want to > add the following function, just an example, it might already be in there to > Map.js > > getLayerByName: function(name) { > var foundLayer = null; > for (var i = 0; i < this.layers.length; i++) { > var layer = this.layers[i]; > if (layer.name == name) { > foundLayer = layer; > } > } > return foundLayer; > }, > > Would I do something like the following in a .js file to be called after > Openlayers.js? > > Map.prototype.getLayerByName=function(name) { > var foundLayer = null; > for (var i = 0; i < this.layers.length; i++) { > var layer = this.layers[i]; > if (layer.name == name) { > foundLayer = layer; > } > } > return foundLayer; > } > > How do you do this? > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From B.Sandvik at sms.ed.ac.uk Wed Apr 2 16:17:20 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] GDAL2Tiles In-Reply-To: <20080402191518.GA3223@metacarta.com> References: <47F3D65C.5020805@sms.ed.ac.uk> <20080402191518.GA3223@metacarta.com> Message-ID: <47F3E9D0.8090809@sms.ed.ac.uk> Wow - it works! http://www.thematicmapping.org/openlayers/fullscreen.htm Thanks a lot! OpenLayers keeps impressing me. And, I'm often very confused ;-) Bjorn http://blog.thematicmapping.org Christopher Schmidt wrote: > On Wed, Apr 02, 2008 at 07:54:20PM +0100, Bjorn Sandvik wrote: > >> This is the code generated by gdal2tiles: >> http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html >> Only pixel based view is supported, which makes is difficult to combine >> map tiles with other data layers. >> > > I saw this same thing mentioned in some blog posting somewhere, and I > thought "huh, someone is confused": in fact, this lines up exactly with > the TMS spec, and can be used with practically no changes by the default > TMS layer: > > http://crschmidt.net/mapping/naturalearth.html > > You just need to specify a serviceVersion of '.' . (This is pulled > almost exactly from the TMS example that ships with OpenLayers.) > > >> Is there an alternative way of loading map tiles? >> > > Other than the TMS layer? > > >> Or is there a better alternative to gdal2tiles? >> > > None needed, so far as I can tell. > > Regards, > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From linda.rawson at gmail.com Wed Apr 2 17:13:54 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html Message-ID: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> I want to make the panZoomBar contain specific scales. How do I do that? I have tried the following the the zoomLevels.html var lon = 50; var lat = 0; var zoom = 0; var map, layer; function init(){ OpenLayers.DOTS_PER_INCH = 72; var options = { scales: [50000000, 10000000], controls: [new OpenLayers.Control.MouseDefaults()] }; map = new OpenLayers.Map( 'map' , options); map.addControl(new OpenLayers.Control.PanZoomBar()); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); } I expected to see only two bars in the PanZoomBar. What do I need to do to see that? -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/8e8894e9/attachment.html From diegoguidi at gmail.com Wed Apr 2 17:17:39 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> Message-ID: I think that the correct param is resolutions and not scales so resolutions: [50000000, 10000000], On Wed, Apr 2, 2008 at 11:13 PM, Linda Rawson wrote: > I want to make the panZoomBar contain specific scales. How do I do that? > > I have tried the following the the zoomLevels.html > > var lon = 50; > var lat = 0; > var zoom = 0; > var map, layer; > function init(){ > OpenLayers.DOTS_PER_INCH = 72; > var options = { > scales: [50000000, 10000000], > controls: [new > OpenLayers.Control.MouseDefaults()] > }; > map = new OpenLayers.Map( 'map' , options); > map.addControl(new OpenLayers.Control.PanZoomBar()); > layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://labs.metacarta.com/wms/vmap0", {layers: > 'basic'}); > map.addLayer(layer); > > map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > } > > I expected to see only two bars in the PanZoomBar. What do I need to do to > see that? > > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Diego Guidi http://lacorrente.blogspot.com From crschmidt at metacarta.com Wed Apr 2 17:33:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> Message-ID: <20080402213331.GB18293@metacarta.com> On Wed, Apr 02, 2008 at 03:13:54PM -0600, Linda Rawson wrote: > I want to make the panZoomBar contain specific scales. How do I do that? Works for me: http://crschmidt.net/mapping/2zooms.html Regards, -- Christopher Schmidt MetaCarta From linda.rawson at gmail.com Wed Apr 2 17:46:30 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <20080402213331.GB18293@metacarta.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> Message-ID: <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> Thanks Christopher. On your example when I click on the zoom bar nothing happens. The slider works but the click on the zoom bar doesn't. On Wed, Apr 2, 2008 at 3:33 PM, Christopher Schmidt wrote: > On Wed, Apr 02, 2008 at 03:13:54PM -0600, Linda Rawson wrote: > > I want to make the panZoomBar contain specific scales. How do I do > that? > > Works for me: > > http://crschmidt.net/mapping/2zooms.html > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/d9e2926e/attachment.html From crschmidt at metacarta.com Wed Apr 2 18:01:29 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> Message-ID: <20080402220129.GA24242@metacarta.com> On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote: > Thanks Christopher. > > On your example when I click on the zoom bar nothing happens. The slider > works but the click on the zoom bar doesn't. You can never click on the top 'rung' of a zoombar. If that's a problem for you, feel free to open a ticket for 2.7. Regards, -- Christopher Schmidt MetaCarta From linda.rawson at gmail.com Wed Apr 2 18:07:59 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <20080402220129.GA24242@metacarta.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> Message-ID: <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> Even when I slide the slider to the top rung and click on the bottom rung nothing happens. So I tried adding the following scales: scales: [50000000, 30000000, 20000000,10000000], Totally screwy mouse clicks. When I click L2 it goes to L3. I have to double click some of the bars to get them to zoom. On Wed, Apr 2, 2008 at 4:01 PM, Christopher Schmidt wrote: > On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote: > > Thanks Christopher. > > > > On your example when I click on the zoom bar nothing happens. The > slider > > works but the click on the zoom bar doesn't. > > You can never click on the top 'rung' of a zoombar. If that's a problem > for you, feel free to open a ticket for 2.7. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/97716b50/attachment.html From bluecarto at gmail.com Thu Apr 3 04:25:21 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] OpenLayers and ExtJs Message-ID: Yet another combination of OpenLayers and ExtJs. http://tdubya.net/index.php/2007/12/07/combining-openlayers-and-ext/ Side note, tdubya uses the MapFish MapComponent. Regards, Pierre From xin at zenpow.com Thu Apr 3 05:08:01 2008 From: xin at zenpow.com (Xin) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] any good-looking marker icons out there? In-Reply-To: <47F3A1C4.8030806@swoodbridge.com> References: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com> <47F3A1C4.8030806@swoodbridge.com> Message-ID: Thanks for the input. I'll check them later on. I might also look into commissioning a designer to create some markers for OpenLayers. That'd be cool. On 02/04/2008, Stephen Woodbridge wrote: > > You might want to check out what ka-map has, it is likely we can use > those. > > You might also want to check out msCross, they have a simple clean balloon > with a shadow thats looks nice. http://sourceforge.net/projects/mscross I > would think that we can ask either of these for permission to use their > icons. > > Another option might be to ask the community if any of the graphic > designers out there would like to create some sample icons that they would > be willing to contribute to be a part of OpenLayers. Run a contest and have > the community vote on them. > > -Steve W > > > Erik Uzureau wrote: > > > :-) > > > > If you do find some alternative icons that are available free of use, > > please let us know. > > just like we will be setting up an addins/customPopups directory, I > > think it would be > > a good idea to have an addins/customMarkers > > > > Thanks, Xin! > > erik > > > > On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote: > > > > > The markers I'm currently using are those diamond shapes ones. Are > > > there any > > > better looking free-to-use markers out there? > > > > > > I am right to assume I can't just use Google's? > > > > > > thanks > > > Xin > > > > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > http://openlayers.org/mailman/listinfo/users > > > > > > > > > _______________________________________________ > > 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/20080403/c585f4a9/attachment.html From linda.rawson at gmail.com Thu Apr 3 11:39:23 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> Message-ID: <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> I found the problem. Somebody changed this line in PanZoomBar.js FROM: var levels = Math.floor((y - top)/this.zoomStopHeight); TO: var levels = (y - top)/this.zoomStopHeight; This is causing the problem. Linda On Wed, Apr 2, 2008 at 4:07 PM, Linda Rawson wrote: > Even when I slide the slider to the top rung and click on the bottom rung > nothing happens. > > So I tried adding the following scales: > > scales: [50000000, 30000000, 20000000,10000000], > > Totally screwy mouse clicks. When I click L2 it goes to L3. I have to > double click some of the bars to get them to zoom. > > On Wed, Apr 2, 2008 at 4:01 PM, Christopher Schmidt < > crschmidt@metacarta.com> wrote: > > > On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote: > > > Thanks Christopher. > > > > > > On your example when I click on the zoom bar nothing happens. The > > slider > > > works but the click on the zoom bar doesn't. > > > > You can never click on the top 'rung' of a zoombar. If that's a problem > > for you, feel free to open a ticket for 2.7. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > > > > > > -- > Linda Rawson -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/f5a75c1f/attachment.html From linda.rawson at gmail.com Thu Apr 3 11:56:38 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales Message-ID: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com> What I was hoping for with 2.6 was the following: var map, layer; function init(){ var options = { scales: [55468034,13867008,3466752,108336,54168,27084,13542,6771], projection: "EPSG:900913", units: "m", maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34), controls: [] }; map = new OpenLayers.Map( 'map' , options); map.addControl(new OpenLayers.Control.PanZoomBar()); layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator': true}); map.addLayer(layer); map.zoomToMaxExtent(); } Should show 8 bars on the panzoombar. But it still shows the default number of zoom levels defined when you say sphericalMercator: true. Is there any way to do this without customizing the panzoombar? Thanks! -- Linda Rawson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/e9d5de74/attachment.html From crschmidt at metacarta.com Thu Apr 3 12:04:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> Message-ID: <20080403160401.GA2206@metacarta.com> On Thu, Apr 03, 2008 at 09:39:23AM -0600, Linda Rawson wrote: > I found the problem. Somebody changed this line in PanZoomBar.js > > FROM: > > var levels = Math.floor((y - top)/this.zoomStopHeight); > > TO: > > var levels = (y - top)/this.zoomStopHeight; > > This is causing the problem. Math.floor is called (if your map doesn't have fractionalZoom) two lines later, on the zoom. Can you explain why this is a problem in your setup? A more complete HTML example with the behavior you expect and the behavior you're getting would be helpful. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 3 12:05:52 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales In-Reply-To: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com> References: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com> Message-ID: <20080403160552.GB2206@metacarta.com> On Thu, Apr 03, 2008 at 09:56:38AM -0600, Linda Rawson wrote: > What I was hoping for with 2.6 was the following: 2.6 doesn't change the behavior in this regard in any way I'm aware of. Was there something that made you think it would? There is no way to define anything other than factor-of-two zoom changes on a Google Maps baselayer in OpenLayers: hacking the zoombar won't help you here. -- Chris > var map, layer; > function init(){ > var options = { > scales: > [55468034,13867008,3466752,108336,54168,27084,13542,6771], > projection: "EPSG:900913", > units: "m", > maxExtent: new > OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34), > controls: [] > }; > map = new OpenLayers.Map( 'map' , options); > map.addControl(new OpenLayers.Control.PanZoomBar()); > layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator': > true}); > map.addLayer(layer); > map.zoomToMaxExtent(); > } > > Should show 8 bars on the panzoombar. But it still shows the default number > of zoom levels defined when you say sphericalMercator: true. > > Is there any way to do this without customizing the panzoombar? > > Thanks! > > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From progmls at googlemail.com Thu Apr 3 12:12:18 2008 From: progmls at googlemail.com (Guillaume Lom) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Closebutton Callback on popup? Message-ID: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com> Hello, I am creating popups through the Feature object: this.popupClass = OpenLayers.Popup.FramedCloud; this.popup = this.createPopup(true); The 'true' parameter sets a close button on the popup. I need however to do other cleaning stuff when a popup is closed. Is there an official way to set up a callback function during the creation of the popup? I would like to avoid using this.popup.addCloseBox if I can hepl it. Thanks, Guillaume From linda.rawson at gmail.com Thu Apr 3 12:18:45 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <20080403160401.GA2206@metacarta.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> <20080403160401.GA2206@metacarta.com> Message-ID: <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com> Here is the example. Yours with two extra scales. OpenLayers Basic Single WMS Example

Basic Single WMS Example

Show a Simple Map
This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
Try clicking on the third zoom level. It does nothing. Then you click on the second and the zoom goes to the third. It is off by one every time. Then go the other direction. More havoc. Linda On Thu, Apr 3, 2008 at 10:04 AM, Christopher Schmidt wrote: > > On Thu, Apr 03, 2008 at 09:39:23AM -0600, Linda Rawson wrote: > > I found the problem. Somebody changed this line in PanZoomBar.js > > > > FROM: > > > > var levels = Math.floor((y - top)/this.zoomStopHeight); > > > > TO: > > > > var levels = (y - top)/this.zoomStopHeight; > > > > This is causing the problem. > > Math.floor is called (if your map doesn't have fractionalZoom) two lines > later, on the zoom. Can you explain why this is a problem in your setup? > > A more complete HTML example with the behavior you expect and the > behavior you're getting would be helpful. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson From linda.rawson at gmail.com Thu Apr 3 12:21:27 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales In-Reply-To: <20080403160552.GB2206@metacarta.com> References: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com> <20080403160552.GB2206@metacarta.com> Message-ID: <6e9b30fb0804030921p422a7aedqb85c974b95adffbd@mail.gmail.com> Actually I have quite the hack to do this. But I was hoping not to hack anymore! It looked so promising to be able to define scales on the map that I was hoping it would carry over. Thanks! Linda On Thu, Apr 3, 2008 at 10:05 AM, Christopher Schmidt wrote: > On Thu, Apr 03, 2008 at 09:56:38AM -0600, Linda Rawson wrote: > > What I was hoping for with 2.6 was the following: > > 2.6 doesn't change the behavior in this regard in any way I'm aware of. > Was there something that made you think it would? > > There is no way to define anything other than factor-of-two zoom changes > on a Google Maps baselayer in OpenLayers: hacking the zoombar won't help > you here. > > -- Chris > > > > var map, layer; > > function init(){ > > var options = { > > scales: > > [55468034,13867008,3466752,108336,54168,27084,13542,6771], > > projection: "EPSG:900913", > > units: "m", > > maxExtent: new > > OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34), > > controls: [] > > }; > > map = new OpenLayers.Map( 'map' , options); > > map.addControl(new OpenLayers.Control.PanZoomBar()); > > layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator': > > true}); > > map.addLayer(layer); > > map.zoomToMaxExtent(); > > } > > > > Should show 8 bars on the panzoombar. But it still shows the default number > > of zoom levels defined when you say sphericalMercator: true. > > > > Is there any way to do this without customizing the panzoombar? > > > > Thanks! > > > > -- > > Linda Rawson > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson From crschmidt at metacarta.com Thu Apr 3 13:02:47 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> <20080403160401.GA2206@metacarta.com> <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com> Message-ID: <20080403170246.GA3157@metacarta.com> On Thu, Apr 03, 2008 at 10:18:45AM -0600, Linda Rawson wrote: > Try clicking on the third zoom level. It does nothing. Then you > click on the second and the zoom goes to the third. It is off by one > every time. Then go the other direction. More havoc. #1486 clicking in panzoombar -> off by one Thanks for the report. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 3 13:06:21 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Closebutton Callback on popup? In-Reply-To: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com> References: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com> Message-ID: <20080403170621.GC3157@metacarta.com> On Thu, Apr 03, 2008 at 05:12:18PM +0100, Guillaume Lom wrote: > Hello, > > I am creating popups through the Feature object: > > this.popupClass = OpenLayers.Popup.FramedCloud; > this.popup = this.createPopup(true); > > The 'true' parameter sets a close button on the popup. > I need however to do other cleaning stuff when a popup is closed. Is > there an official way to set up a callback function during the > creation of the popup? I would like to avoid using > this.popup.addCloseBox if I can hepl it. There is no API through the feature.createPopup method. However, I would recommend simply reading that code, and reimplementing it in your application code (since you have a feature handle anyway): there is an argument to popup creation, just not one to the feature wrapper around it. Regards, -- Christopher Schmidt MetaCarta From pangelino at tnc.org Thu Apr 3 14:56:44 2008 From: pangelino at tnc.org (Paul Angelino) Date: Wed Sep 1 17:16:12 2010 Subject: [OpenLayers-Users] Authenticating against a secured WMS server under IIS Message-ID: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 53 bytes Desc: image001.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/c4762419/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 3343 bytes Desc: image002.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/c4762419/attachment-0001.gif From woodbri at swoodbridge.com Thu Apr 3 16:32:12 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] RC1 issue? with themes and styles Message-ID: <47F53ECC.2060100@swoodbridge.com> Hi all, This might be my issue with not understanding the changes related to the themes and styles and overriding the editing toolbar. http://imaptools.com/~woodbri/edit/index26rc.php?extent=-129,19+-60,60 It looks like two of my icons are missing because it is trying to pull them from the default theme instead of my override theme. Did I miss this up somehow? -Steve W From woodbri at swoodbridge.com Thu Apr 3 17:07:06 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] RC1 issue? with themes and styles In-Reply-To: <47F53ECC.2060100@swoodbridge.com> References: <47F53ECC.2060100@swoodbridge.com> Message-ID: <47F546FA.6020607@swoodbridge.com> Stephen Woodbridge wrote: > Hi all, > > This might be my issue with not understanding the changes related to the > themes and styles and overriding the editing toolbar. > > http://imaptools.com/~woodbri/edit/index26rc.php?extent=-129,19+-60,60 > > It looks like two of my icons are missing because it is trying to pull > them from the default theme instead of my override theme. > > Did I miss this up somehow? > > -Steve W OK, as a work around, if I change all occurrences olControlEditingToolbar to olControlMyEditingToolbar in my code and override style.css it displays the right thing. But I think some of the override theme stuff is broken 2.6rc1. The above url now works with these changes, but the following shows the case where it is broken: http://imaptools.com/~woodbri/edit/broken.php?extent=-129,19+-60,60 -Steve W From B.Sandvik at sms.ed.ac.uk Thu Apr 3 17:05:11 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping Message-ID: <47F54687.6090801@sms.ed.ac.uk> Hi, I'm currently testing the capabilities of doing thematic mapping with OpenLayers. This is a proportional symbol map based on GeoJSON encoded data: http://thematicmapping.org/experiments/openlayers_propsymb.htm My question: Is there a way to keep the relative size of the symbols when the users zoom in/out? (symbols should keep their size relative to the size of the countries). Bjorn http://blog.thematicmapping.org -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From crschmidt at metacarta.com Thu Apr 3 22:15:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Authenticating against a secured WMS server under IIS In-Reply-To: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG> References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG> Message-ID: <20080404021501.GB29886@metacarta.com> On Thu, Apr 03, 2008 at 02:56:44PM -0400, Paul Angelino wrote: > Hello, > > > > I'm pretty new to OpenLayers. I recently began using it to add spatial > functionality to an existing non-spatial web app. We're publishing WMS > services from an ArcGIS Server 9.2 instance under IIS, configured to > prevent anonymous access. This is a good thing since some of the layers > we're serving contain sensitive data. I saw this previous post to the > user forum: > http://openlayers.org/pipermail/users/2007-February/000721.html, which > is exactly what is happening in my situation. The user gets prompted to > authenticate against the web server. The problem is that the user has > already been authenticated by the web application so I'd like to be able > to programmatically impersonate the user to our WMS server so there is > no prompting for credentials. Do you have their credentials? (I'd hope, for security reasons, that you wouldn't, but if you do, what you want is possible. Otherwise, it's not.) If you do have their credentials, you can generate URLs like: "http://username:password@example.com/wms/foo" And their credentials will be passed by the browser. > I don't see anything in the OpenLayers > 2.5 API to support this, but I did run across this: > http://trac.openlayers.org/browser/sandbox/tschaub/request/lib/OpenLayer > s/Request.js?rev=6351. This OpenLayers.Request method seems to support > username and password parameters for HTTP authentication. This isn't helpful for you. You can already do this for XMLHttpRequest in trunk (though you'd have to try harder): this doesn't really fix things in any way. > Is there a > way that this can be used instead of a call to OpenLayers.Layer.WMS to > instantiate a layer? Nope. > Is the OpenLayers.Request method something in the > underlying library that is not exposed in the public API, or is this > something slated for a future release? The latter. > Any information is greatly appreciated on how to access secured WMS > layers without getting the popup authentication dialog. Right answer: Use single signon: Kerberos, Active Directory, etc. Wrong answer: Integrate user credentials in the URL. Answer that helps you: Depends on how you're doing auth. Would need more information on that for you to get helped. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 3 22:30:06 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] RC1 issue? with themes and styles In-Reply-To: <47F546FA.6020607@swoodbridge.com> References: <47F53ECC.2060100@swoodbridge.com> <47F546FA.6020607@swoodbridge.com> Message-ID: <20080404023006.GD29886@metacarta.com> On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote: > Stephen Woodbridge wrote: > OK, as a work around, if I change all occurrences > > olControlEditingToolbar to olControlMyEditingToolbar > > in my code and override style.css it displays the right thing. But I > think some of the override theme stuff is broken 2.6rc1. I've just checked: This code works exactly the same in 2.5. So regardless of how broken it is, it does not appear to be a regression, unless you can offer evidence otherwise. (I downloaded broken.php, pointed the CSS to your files, and then changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.) Regards, -- Christopher Schmidt MetaCarta From pangelino at tnc.org Thu Apr 3 22:32:29 2008 From: pangelino at tnc.org (Paul Angelino) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Authenticating against a secured WMS server under IIS In-Reply-To: <20080404021501.GB29886@metacarta.com> References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG> <20080404021501.GB29886@metacarta.com> Message-ID: <32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG> Chris, Thanks for your reply. We don't have the credentials of the end user that is logged into the web app, which is a good thing as you say, but at this point we really just need to impersonate the user to the WMS server based on a couple different authorization roles that apply. So we could pass credentials through the URL but our security standards won't allow us to do it in clear text. To answer your other questions, we do use Active Directory for authentication but we do not yet have single sign-on. Both the web application using OpenLayers and the WMS server use AD authentication, but they run on different web servers. In fact, the web app runs on Apache and the WMS server runs on IIS. The web app uses an Open LDAP interface to perform authentication and the IIS server uses the out-of-the box Windows AD authentication when you disable anonymous access to your web site. Does that give you any other ideas? Thanks again, Paul -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Thursday, April 03, 2008 8:15 PM To: Paul Angelino Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Authenticating against a secured WMS server under IIS On Thu, Apr 03, 2008 at 02:56:44PM -0400, Paul Angelino wrote: > Hello, > > > > I'm pretty new to OpenLayers. I recently began using it to add spatial > functionality to an existing non-spatial web app. We're publishing WMS > services from an ArcGIS Server 9.2 instance under IIS, configured to > prevent anonymous access. This is a good thing since some of the layers > we're serving contain sensitive data. I saw this previous post to the > user forum: > http://openlayers.org/pipermail/users/2007-February/000721.html, which > is exactly what is happening in my situation. The user gets prompted to > authenticate against the web server. The problem is that the user has > already been authenticated by the web application so I'd like to be able > to programmatically impersonate the user to our WMS server so there is > no prompting for credentials. Do you have their credentials? (I'd hope, for security reasons, that you wouldn't, but if you do, what you want is possible. Otherwise, it's not.) If you do have their credentials, you can generate URLs like: "http://username:password@example.com/wms/foo" And their credentials will be passed by the browser. > I don't see anything in the OpenLayers > 2.5 API to support this, but I did run across this: > http://trac.openlayers.org/browser/sandbox/tschaub/request/lib/OpenLayer > s/Request.js?rev=6351. This OpenLayers.Request method seems to support > username and password parameters for HTTP authentication. This isn't helpful for you. You can already do this for XMLHttpRequest in trunk (though you'd have to try harder): this doesn't really fix things in any way. > Is there a > way that this can be used instead of a call to OpenLayers.Layer.WMS to > instantiate a layer? Nope. > Is the OpenLayers.Request method something in the > underlying library that is not exposed in the public API, or is this > something slated for a future release? The latter. > Any information is greatly appreciated on how to access secured WMS > layers without getting the popup authentication dialog. Right answer: Use single signon: Kerberos, Active Directory, etc. Wrong answer: Integrate user credentials in the URL. Answer that helps you: Depends on how you're doing auth. Would need more information on that for you to get helped. Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Fri Apr 4 00:07:51 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] RC1 issue? with themes and styles In-Reply-To: <20080404023006.GD29886@metacarta.com> References: <47F53ECC.2060100@swoodbridge.com> <47F546FA.6020607@swoodbridge.com> <20080404023006.GD29886@metacarta.com> Message-ID: <47F5A997.1030001@swoodbridge.com> Christopher Schmidt wrote: > On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote: >> Stephen Woodbridge wrote: >> OK, as a work around, if I change all occurrences >> >> olControlEditingToolbar to olControlMyEditingToolbar >> >> in my code and override style.css it displays the right thing. But I >> think some of the override theme stuff is broken 2.6rc1. > > I've just checked: This code works exactly the same in 2.5. So > regardless of how broken it is, it does not appear to be a regression, > unless you can offer evidence otherwise. > > (I downloaded broken.php, pointed the CSS to your files, and then > changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.) Christopher, Thank you for taking a look at this. I will accept your good judgement on this and try to dig into this a little more for my own education. The one thing I noticed while poking at this in FireBug and Inspecting the DOM, was that the missing icons had the CSS from the 2.6rc1 style.css while all the others had the CSS applied from my override CSS. So by changing the CSS class to olControlMyEditingToolbar I seem to have avoided that conflict. I guess I'm not sure how the CSS rules get applied in this case when you have two stylesheets both with the same class names. Thank you again for your effort and assistance. -Steve From eric.c2c at gmail.com Fri Apr 4 04:48:09 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F54687.6090801@sms.ed.ac.uk> References: <47F54687.6090801@sms.ed.ac.uk> Message-ID: <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote: > Hi, > > I'm currently testing the capabilities of doing thematic mapping with > OpenLayers. > > This is a proportional symbol map based on GeoJSON encoded data: > http://thematicmapping.org/experiments/openlayers_propsymb.htm The big circles don't seem to behave correctly on hover. > > My question: Is there a way to keep the relative size of the symbols > when the users zoom in/out? AFAICT there's no way to style features based on the current zoom level. But I guess you should be able to implement this in your application code, by registering to the zoomend map event. -- Eric From bartvde at osgis.nl Fri Apr 4 05:52:14 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] RC1 issue? with themes and styles In-Reply-To: <47F5A997.1030001@swoodbridge.com> References: <47F53ECC.2060100@swoodbridge.com> <47F546FA.6020607@swoodbridge.com> <20080404023006.GD29886@metacarta.com> <47F5A997.1030001@swoodbridge.com> Message-ID: <47F5FA4E.1020706@osgis.nl> Hi Stephen, you can also try using !important in the stylesheet you want to prevail, so you don't need to change the css class names, example: .olXXX { width: 200px !important; height: 200px !important; } Best regards, Bart Stephen Woodbridge wrote: > Christopher Schmidt wrote: > >> On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote: >> >>> Stephen Woodbridge wrote: >>> OK, as a work around, if I change all occurrences >>> >>> olControlEditingToolbar to olControlMyEditingToolbar >>> >>> in my code and override style.css it displays the right thing. But I >>> think some of the override theme stuff is broken 2.6rc1. >>> >> I've just checked: This code works exactly the same in 2.5. So >> regardless of how broken it is, it does not appear to be a regression, >> unless you can offer evidence otherwise. >> >> (I downloaded broken.php, pointed the CSS to your files, and then >> changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.) >> > > Christopher, > > Thank you for taking a look at this. I will accept your good judgement > on this and try to dig into this a little more for my own education. > > The one thing I noticed while poking at this in FireBug and Inspecting > the DOM, was that the missing icons had the CSS from the 2.6rc1 > style.css while all the others had the CSS applied from my override CSS. > So by changing the CSS class to olControlMyEditingToolbar I seem to have > avoided that conflict. I guess I'm not sure how the CSS rules get > applied in this case when you have two stylesheets both with the same > class names. > > Thank you again for your effort and assistance. > > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From crschmidt at metacarta.com Fri Apr 4 06:57:16 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> Message-ID: <20080404105715.GC15153@metacarta.com> On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote: > > My question: Is there a way to keep the relative size of the symbols > > when the users zoom in/out? > > AFAICT there's no way to style features based on the current zoom level. I'm pretty sure that the StyleMap/Style/Rule system is designed exactly for that, but I have no idea how it's supposed to work. I would say "look at http://trac.openlayers.org/wiki/Styles", but I see that it's using Rules for styling, which I think was recently decided would be unsupported in OpenLayers 2.6, so I don't know what you're actually supposed to do. Andreas? Tim? Regards, -- Christopher Schmidt MetaCarta From john.pulles at geodan.nl Fri Apr 4 07:40:35 2008 From: john.pulles at geodan.nl (John Pulles) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] #879: Zoom Box Offset on Specific Map Message-ID: <47F613B3.9000605@geodan.nl> Hi list, > The specific behavior here was unusual in that it: > * Happened every time the page was loaded. (no 'reload and it goes > away') > * Was offset by a large amount (~200px, iirc) > > If anyone else is experiencing this problem -- that is, a specific page > generates incorrect zoombox extents, more than 50px from the mouse > position every time the map is loaded, could they comment to the bug? A similar thing can be seen when using Internet Explorer to look at http://aardbodem.nl/node/3: when dragging a zoom box with the mouse, it will appear around 200 pixels to the left of the cursor. I expect the reason lies in the theming of the site, but I don't know where to correct it. Regards, John. From crschmidt at metacarta.com Fri Apr 4 07:48:11 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Authenticating against a secured WMS server under IIS In-Reply-To: <32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG> References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG> <20080404021501.GB29886@metacarta.com> <32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG> Message-ID: <20080404114810.GA16265@metacarta.com> On Thu, Apr 03, 2008 at 10:32:29PM -0400, Paul Angelino wrote: > Thanks for your reply. We don't have the credentials of the end user > that is logged into the web app, which is a good thing as you say, but > at this point we really just need to impersonate the user to the WMS > server based on a couple different authorization roles that apply. So > we could pass credentials through the URL but our security standards > won't allow us to do it in clear text. There's no reason that credentials as I stated need to be in clear text: the browser uses this username and password as auth for the request, it doesn't send them as part of the URL to the server. But it probably doesn't solve your problem anyway. If your application server has the ability to get to all the information (as in: it has superuser access) then you might be best off simply proxying the IIS requests through something on the Apache server. Apache server uses the superuser credentials to access the IIS, download the data, and must then enforce the security requirements of the remote server. > To answer your other questions, we do use Active Directory for > authentication but we do not yet have single sign-on. Both the web > application using OpenLayers and the WMS server use AD authentication, > but they run on different web servers. In fact, the web app runs on > Apache and the WMS server runs on IIS. The web app uses an Open LDAP > interface to perform authentication and the IIS server uses the > out-of-the box Windows AD authentication when you disable anonymous > access to your web site. I expect that what this means is: * The Apache server is doing authentication using LDAP, not Active Directory (with the AD server as an LDAP backend) * What you actually want is: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/523ae943-5e6a-4200-9103-9808baa00157.mspx?mfr=true """Unlike Basic authentication, Integrated Windows authentication does not initially prompt for a user name and password. The current Windows user information on the client is used for Integrated Windows authentication.""" However, setting this up on both the IIS server and the Apache server would probably be a lesson in active directory that you may not be interested in: http://www.onlamp.com/pub/a/onlamp/2003/09/11/kerberos.html might be a starting point for understanding it and making that decision on the Apache side. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Apr 4 07:54:32 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] #879: Zoom Box Offset on Specific Map In-Reply-To: <47F613B3.9000605@geodan.nl> References: <47F613B3.9000605@geodan.nl> Message-ID: <20080404115431.GA16359@metacarta.com> On Fri, Apr 04, 2008 at 01:40:35PM +0200, John Pulles wrote: > Hi list, > > > The specific behavior here was unusual in that it: > > * Happened every time the page was loaded. (no 'reload and it goes > > away') > > * Was offset by a large amount (~200px, iirc) > > > > If anyone else is experiencing this problem -- that is, a specific page > > generates incorrect zoombox extents, more than 50px from the mouse > > position every time the map is loaded, could they comment to the bug? > > A similar thing can be seen when using Internet Explorer to look at > http://aardbodem.nl/node/3: when dragging a zoom box with the mouse, it > will appear around 200 pixels to the left of the cursor. > > I expect the reason lies in the theming of the site, but I don't know where to > correct it. My guess is that it's related to: style.css (line 401) body.sidebar-left #center { margin-left:-210px; } or possibly the corresponding margin-left of 210px on '#squeeze'. Since you say about 200px, and I know that IE has... 'issues' with margin calculatino. Is it just IE6, or does IE7 suffer similarly? Regards, -- Christopher Schmidt MetaCarta From david.fawcett at gmail.com Fri Apr 4 09:40:30 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <20080404105715.GC15153@metacarta.com> References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> <20080404105715.GC15153@metacarta.com> Message-ID: I can think of another option, but it is a fairly big change of course. Instead of sending RSS to OpenLayers and building the vector features, you could use MapServer to create a transparent WMS layer with your features in it. That way, you could use LAYER SYMBOLSCALE to scale your symbols. David. On Fri, Apr 4, 2008 at 5:57 AM, Christopher Schmidt wrote: > On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik > wrote: > > > My question: Is there a way to keep the relative size of the symbols > > > when the users zoom in/out? > > > > AFAICT there's no way to style features based on the current zoom level. > > I'm pretty sure that the StyleMap/Style/Rule system is designed exactly > for that, but I have no idea how it's supposed to work. > > I would say "look at http://trac.openlayers.org/wiki/Styles", but I see > that it's using Rules for styling, which I think was recently decided > would be unsupported in OpenLayers 2.6, so I don't know what you're > actually supposed to do. > > Andreas? Tim? > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/7ba7e171/attachment.html From mpriour at kestrelcomputer.com Fri Apr 4 09:46:19 2008 From: mpriour at kestrelcomputer.com (mpriour) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F54687.6090801@sms.ed.ac.uk> References: <47F54687.6090801@sms.ed.ac.uk> Message-ID: <16491535.post@talk.nabble.com> Bjorn The correct way to handle this is to attach an event handler to the endzoom event. This event should manage the size of the symbols so that they are propotionally sized. Choose the zoom level at which the symbol renders at the right proportion, this will be your refernece zoom level. Then size the symbol propotionally the ratio of resolution @ current zoom level / resolution @ reference zoom level. Depending on the event firing order, you may also need to call redraw() on your vector layer. Matt Bjorn Sandvik wrote: > > Hi, > > I'm currently testing the capabilities of doing thematic mapping with > OpenLayers. > > This is a proportional symbol map based on GeoJSON encoded data: > http://thematicmapping.org/experiments/openlayers_propsymb.htm > > My question: Is there a way to keep the relative size of the symbols > when the users zoom in/out? > (symbols should keep their size relative to the size of the countries). > > Bjorn > > http://blog.thematicmapping.org > > > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Proportional-Symbol-Mapping-tp16484334p16491535.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mcwanek at fourddev.com Fri Apr 4 10:09:46 2008 From: mcwanek at fourddev.com (Matt J Cwanek) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Markers vs Features? Message-ID: <20080404140946.GA10631@fourddev.com> Hi: We have an application framework that we've decided to port from Google Maps 2 to OpenLayers, and so far it's been pretty painless. From the map perspective, our application provides for real-time marker updates via GPS devices, user-created markers w/custom icons, user-created vector features (lines, areas, polys), custom maptile sets, etc. Coming from the GMap2 world, I initially ported our code to work with the OpenLayers.Marker class, where it had been previously using GMarkers. I knew that I would be using Features to support the vector functionality, but when I started looking at how to make certain user-created Markers draggable (as we had before with GMap2), I started getting lost. I guess my question is, coming from a Google Maps 2 world, it seems like a GMarker is more like an OpenLayers.Marker except for being able to drag it around, in which case it looks like I should use OpenLayers.Features instead for everything. But then I'm getting confused by the fact that a Feature attaches to a particular Layer, when we intended to have multiple base layer options for the user to pick from. And finally, I don't understand why a Feature has it's own lonlat that could be different from the one the Marker has....? Can anybody help clear this up for me? Thanks for your time. Matt J Cwanek FourD Development, Inc. mcwanek@fourddev.com From xin at zenpow.com Fri Apr 4 11:32:32 2008 From: xin at zenpow.com (Xin) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FramedCloud popup autosizing with images Message-ID: Is it possible to have FramedCloud popups autosize with images without specifying img width/height? The images I am using do not all have the same size. It would be great if it did autosize. If not, is there a work around? Or any advice on how to change the existing code would also be appreciated. Thanks, Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/15cace51/attachment.html From crschmidt at metacarta.com Fri Apr 4 11:41:17 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Markers vs Features? In-Reply-To: <20080404140946.GA10631@fourddev.com> References: <20080404140946.GA10631@fourddev.com> Message-ID: <20080404154116.GB19148@metacarta.com> On Fri, Apr 04, 2008 at 10:09:46AM -0400, Matt J Cwanek wrote: > > Hi: > > We have an application framework that we've decided to port from Google > Maps 2 to OpenLayers, and so far it's been pretty painless. From the map > perspective, our application provides for real-time marker updates via > GPS devices, user-created markers w/custom icons, user-created vector > features (lines, areas, polys), custom maptile sets, etc. Cool. > Coming from the GMap2 world, I initially ported our code to work with the > OpenLayers.Marker class, where it had been previously using GMarkers. I > knew that I would be using Features to support the vector functionality, > but when I started looking at how to make certain user-created Markers > draggable (as we had before with GMap2), I started getting lost. Is there a reason that you treat Markers (icons) and vectors (points/line/polys) differently? If we were to look at The Way Things Should Probably be, I would say that Markers are only there as a historical thing. "Everything should be using Vectors" -- *including* things that you want graphical images for. As an example of that: http://openlayers.org/dev/examples/sundials.html These are vector features, with an external graphic styling object. (Style properties are, specifically: {"graphicOpacity":1, "externalGraphic":"http://maps.google.com/mapfiles/kml/shapes/sunny.png", "graphicXOffset":-19.2, "graphicYOffset":-18.2, "graphicWidth":38.4, "graphicHeight":38.4, "id":"sn_sunny_copy68", "strokeLinecap":"round", "strokeOpacity":1, "fillOpacity":1, "pointRadius":0} ) These markers are easily draggable using the existing OpenLayers.Feature.Vector dragging tools. > I guess my question is, coming from a Google Maps 2 world, it seems like > a GMarker is more like an OpenLayers.Marker except for being able to > drag it around, in which case it looks like I should use > OpenLayers.Features instead for everything. Note that OpenLayers.Feature in and of itself doesn't get you draggability: just OpenLayers.Feature.*Vector* does. But yes. > But then I'm getting > confused by the fact that a Feature attaches to a particular Layer, when > we intended to have multiple base layer options for the user to pick > from. This is another GMaps misconception: In GMaps, all overlays are on a single layer. In OpenLayers, the "layer" you attach features to is *just* for the features. You will have multiple base layers (Google, Not Google, Map tiles, whatever) and an *overlay* layer (which can be turned on and off). In general, you can even have, for example, all your lines on one layer, all your points on another. At the current time, only one layer can be 'selectable' (and therefore draggable) at a time -- therefore there are technical limitations blocking this, but that's at least the idea. > And finally, I don't understand why a Feature has it's own lonlat that > could be different from the one the Marker has....? It shouldn't ever be different. Just two different levels of abstraction: Feature has a lonlat, and you shouldn't need to think about a marker at that point. Hope this helps, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Apr 4 11:59:38 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FramedCloud popup autosizing with images In-Reply-To: References: Message-ID: <20080404155938.GD19148@metacarta.com> On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote: > Is it possible to have FramedCloud popups autosize with images without > specifying img width/height? No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469 This should have enough description to work with, I believe. > The images I am using do not all have the same size. It would be great if it > did autosize. Sure. > If not, is there a work around? Or any advice on how to change the existing > code would also be appreciated. Ticket above should help. Regards, -- Christopher Schmidt MetaCarta From euzuro at gmail.com Fri Apr 4 12:08:20 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FramedCloud popup autosizing with images In-Reply-To: <20080404155938.GD19148@metacarta.com> References: <20080404155938.GD19148@metacarta.com> Message-ID: <6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com> also note that if you preload the images, it should work. this may or may not be easy to do, but if you look at the examples/popupMatrix.html example, you will see that the four images it uses are preloaded (offscreen) in the body of the html erik On Fri, Apr 4, 2008 at 11:59 AM, Christopher Schmidt wrote: > On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote: > > Is it possible to have FramedCloud popups autosize with images without > > specifying img width/height? > > No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469 > > This should have enough description to work with, I believe. > > > The images I am using do not all have the same size. It would be great if it > > did autosize. > > Sure. > > > If not, is there a work around? Or any advice on how to change the existing > > code would also be appreciated. > > Ticket above should help. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From mcwanek at fourddev.com Fri Apr 4 12:38:47 2008 From: mcwanek at fourddev.com (Matt J Cwanek) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Markers vs Features? In-Reply-To: <20080404154116.GB19148@metacarta.com> References: <20080404140946.GA10631@fourddev.com> <20080404154116.GB19148@metacarta.com> Message-ID: <20080404163847.GB10631@fourddev.com> On 04/04/08 11:41 -0400, Christopher Schmidt wrote: > > Coming from the GMap2 world, I initially ported our code to work with the > > OpenLayers.Marker class, where it had been previously using GMarkers. I > > knew that I would be using Features to support the vector functionality, > > but when I started looking at how to make certain user-created Markers > > draggable (as we had before with GMap2), I started getting lost. > > Is there a reason that you treat Markers (icons) and vectors > (points/line/polys) differently? Historical, really. We had GMarkers working way before we needed lines and areas in GMap2. But there's no reason now to treat them differently. > If we were to look at The Way Things Should Probably be, I would say > that Markers are only there as a historical thing. "Everything should be > using Vectors" -- *including* things that you want graphical images for. Ok, that's kinda the feeling I was getting looking at the code. > Note that OpenLayers.Feature in and of itself doesn't get you > draggability: just OpenLayers.Feature.*Vector* does. But yes. Ah, right. Thanks for the tip. > > But then I'm getting > > confused by the fact that a Feature attaches to a particular Layer, when > > we intended to have multiple base layer options for the user to pick > > from. > > This is another GMaps misconception: In GMaps, all overlays are on a > single layer. In OpenLayers, the "layer" you attach features to is > *just* for the features. You will have multiple base layers (Google, Not > Google, Map tiles, whatever) and an *overlay* layer (which can be turned > on and off). Good, I'd already started heading down that road. > In general, you can even have, for example, all your lines on one layer, > all your points on another. > > At the current time, only one layer can be 'selectable' (and therefore > draggable) at a time -- therefore there are technical limitations > blocking this, but that's at least the idea. Well, then let me ask this. All our markers (draggable or not) currently can be clicked to open a GMap2 infowindow for details about that marker. If I split the markers into draggable and non-draggable, and create a separate layer for each, does that mean only the selected layer will receive click events? > > And finally, I don't understand why a Feature has it's own lonlat that > > could be different from the one the Marker has....? > > It shouldn't ever be different. Just two different levels of > abstraction: Feature has a lonlat, and you shouldn't need to think about > a marker at that point. Ok, so it sounds like what I should do is use a Vector feature w/a Point geometry and appropriate styling, instead of using a Marker or a base Feature w/a Marker. > Hope this helps, Yes, this is a huge help, thanks. From crschmidt at metacarta.com Fri Apr 4 13:59:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Markers vs Features? In-Reply-To: <20080404163847.GB10631@fourddev.com> References: <20080404140946.GA10631@fourddev.com> <20080404154116.GB19148@metacarta.com> <20080404163847.GB10631@fourddev.com> Message-ID: <20080404175859.GD22112@metacarta.com> On Fri, Apr 04, 2008 at 12:38:47PM -0400, Matt J Cwanek wrote: > On 04/04/08 11:41 -0400, Christopher Schmidt wrote: > > In general, you can even have, for example, all your lines on one layer, > > all your points on another. > > > > At the current time, only one layer can be 'selectable' (and therefore > > draggable) at a time -- therefore there are technical limitations > > blocking this, but that's at least the idea. > > Well, then let me ask this. All our markers (draggable or not) currently > can be clicked to open a GMap2 infowindow for details about that marker. > > If I split the markers into draggable and non-draggable, and create a > separate layer for each, does that mean only the selected layer will > receive click events? Yeah, that is the current state. You can have two different SelectFeature controls attached to the map; the problem them is switching between them becomes a deliberate user action. You can also collect click events explicitly with a Click Handler, and on a click, loop through your non-active select layer, and test for Geometry intersection. This would essentially mimic the way that I would advise building a more advanced SelectFeature that supported selecting features from multiple layers. > Ok, so it sounds like what I should do is use a Vector feature w/a Point > geometry and appropriate styling, instead of using a Marker or a base > Feature w/a Marker. Yep, that's what I would recommend. > > Hope this helps, > > Yes, this is a huge help, thanks. Cool. Regards, -- Christopher Schmidt MetaCarta From research at leviathanchile.org Fri Apr 4 14:10:25 2008 From: research at leviathanchile.org (G. Paolo Sanino V.) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Controls not working In-Reply-To: <20080402113852.GA10049@metacarta.com> References: <200804012004.13618.research@leviathanchile.org> <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com> <20080402113852.GA10049@metacarta.com> Message-ID: <200804041410.27312.research@leviathanchile.org> Hi, thanks so much!!! After Eric, Frederic and Christopher 's support, the map is looking a lot better!!! Thank you all for this great work. With http://openlayers.org/api/2.6-rc1/OpenLayers.js the ScaleLine and OverviewMap controls, are still not working; neither with http://dev.openlayers.org/nightly/OpenLayers.js I am using Firefox (with FireFTP) and Konqueror as browsers, and Kompozer for html editing, all under OpenSuSE 10.3's Linux distro. Under XP I see the same symptoms. Maybe I should wait until 2.6... However MousePosition and addLayers/LayerSwitcher are doing great. Also, the markers are not where they should be (in land when they should be on the water) but after zooming in they are just right. It is a lot better. You can see the changes on: http://www.cmmrleviathan.org/ciencia_GIS.htm Regards, GPSanino On Wednesday 02 April 2008 07:38:53 am Christopher Schmidt wrote: > On Wed, Apr 02, 2008 at 08:47:56AM +0200, Fr?d?ric Junod wrote: > > Hi, > > > > You can't use the ScaleLine control because you're using and old version > > of OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5). > > The ScaleLine control was added after the 2.5 release. > > > > You have to use a more recent version of OpenLayers, the new stable > > release is not ready yet but you can use the release candidate: > > http://openlayers.org/api/2.6-rc1/OpenLayers.js > > But this is not the final code !! When the final 2.6 will be released > > this url will become obsolete ... > > Nothing in /api/ Ever goes away: You can continue to use 2.6-rc1 for all > time, but it would not be wise to. However, it's only obsolete in the > same way that /api/2.4/ is: You can safely use this in your application, > you should just be aware that as soon as 2.6 is released, it will make > sense for you to switch. > > Regards, From crschmidt at metacarta.com Fri Apr 4 14:16:43 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Controls not working In-Reply-To: <200804041410.27312.research@leviathanchile.org> References: <200804012004.13618.research@leviathanchile.org> <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com> <20080402113852.GA10049@metacarta.com> <200804041410.27312.research@leviathanchile.org> Message-ID: <20080404181643.GA22334@metacarta.com> On Fri, Apr 04, 2008 at 02:10:25PM -0400, G. Paolo Sanino V. wrote: > Hi, thanks so much!!! > > After Eric, Frederic and Christopher 's support, the map is looking a lot > better!!! Thank you all for this great work. > > With http://openlayers.org/api/2.6-rc1/OpenLayers.js > the ScaleLine and OverviewMap controls, are still not working; neither with > http://dev.openlayers.org/nightly/OpenLayers.js > > I am using Firefox (with FireFTP) and Konqueror as browsers, and Kompozer for > html editing, all under OpenSuSE 10.3's Linux distro. Under XP I see the same > symptoms. The Overview Map is causing you problems. (I don't really know why.) If you drop the OverviewMap out, the ScaleLine should work. > Maybe I should wait until 2.6... That won't help you here. > However MousePosition and > addLayers/LayerSwitcher are doing great. Also, the markers are not where they > should be (in land when they should be on the water) but after zooming in > they are just right. That probably means that your iconOffset isn't actually what you mean for it to be. As far as I can tell, the anchor point of the markers isn't changing, so I think you're just suffering from an iconOffset that isn't actually what you mean. Regards, -- Christopher Schmidt MetaCarta From xin at zenpow.com Fri Apr 4 14:55:19 2008 From: xin at zenpow.com (Xin) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FramedCloud popup autosizing with images In-Reply-To: <6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com> References: <20080404155938.GD19148@metacarta.com> <6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com> Message-ID: Thanks Chaps. Email preloading works like a dream. It's pretty easy to do for what I'm doing. On 04/04/2008, Erik Uzureau wrote: > > also note that if you preload the images, it should work. > > this may or may not be easy to do, but if you look at the > examples/popupMatrix.html example, > you will see that the four images it uses are preloaded (offscreen) in > the body of the html > > erik > > > > On Fri, Apr 4, 2008 at 11:59 AM, Christopher Schmidt > wrote: > > On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote: > > > Is it possible to have FramedCloud popups autosize with images without > > > specifying img width/height? > > > > No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469 > > > > This should have enough description to work with, I believe. > > > > > The images I am using do not all have the same size. It would be great > if it > > > did autosize. > > > > Sure. > > > > > If not, is there a work around? Or any advice on how to change the > existing > > > code would also be appreciated. > > > > Ticket above should help. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/50393945/attachment.html From B.Sandvik at sms.ed.ac.uk Sat Apr 5 12:01:32 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <16491535.post@talk.nabble.com> References: <47F54687.6090801@sms.ed.ac.uk> <16491535.post@talk.nabble.com> Message-ID: <47F7A25C.2010408@sms.ed.ac.uk> Hi Matt, I'm currently implementing your suggestions. I'm able to size the symbols as a function of the initial zoom level, but I can't figure out how to attach an event handler to the endzoom event. How can I add an event handler which makes a function call? http://localhost/thematicmapping/experiments/openlayers/propsymbols.html (the hover effect still needs some improvements). Bjorn http://blog.thematicmapping.org mpriour wrote: > Bjorn > The correct way to handle this is to attach an event handler to the endzoom > event. > This event should manage the size of the symbols so that they are > propotionally sized. > Choose the zoom level at which the symbol renders at the right proportion, > this will be your refernece zoom level. Then size the symbol propotionally > the ratio of resolution @ current zoom level / resolution @ reference zoom > level. Depending on the event firing order, you may also need to call > redraw() on your vector layer. > Matt > > Bjorn Sandvik wrote: > >> Hi, >> >> I'm currently testing the capabilities of doing thematic mapping with >> OpenLayers. >> >> This is a proportional symbol map based on GeoJSON encoded data: >> http://thematicmapping.org/experiments/openlayers_propsymb.htm >> >> My question: Is there a way to keep the relative size of the symbols >> when the users zoom in/out? >> (symbols should keep their size relative to the size of the countries). >> >> Bjorn >> >> http://blog.thematicmapping.org >> >> >> >> >> -- >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From arnd.wippermann at web.de Sat Apr 5 13:13:31 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6 Message-ID: Hi, First, a great compliment to all the developers of OL. And best, only some easy changes needed to update own applications from 2.5 to 2.6. But some behaviour I'm used to in 2.5, I could not solve for 2.6. In OL 2.5 I do this to draw red features and draw select features in yellow: OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow'; OpenLayers.Feature.Vector.style['select']['strokeColor'] = 'yellow'; var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); style_red = OpenLayers.Util.extend({}, layer_style); style_red.strokeColor = "red"; style_red.fillColor = "red"; vector = new OpenLayers.Layer.Vector("Editable Vectors", {style: style_red}); With OL 2.6 I have no luck. The features will drawn in red, but the selected features are also in red. How can I change the default style for selected features in OL 2.6? With OL 2.6 the SelectFeatureControl allows to edit the vertices. I would like the previous behaviour. Is there a way to disable the edit function for the SelectFeatureControl? And last. Also a compliment for solving the problem with the flickering of the Google layers, but is there a reason that OL sticks to only 19 zoomlevels for the Google layer? Google have 22 zoomlevels and especially for where I come from (Wuppertal), it's possible to get images for zoomlevels > 19. I use this patch to get all levels: OpenLayers.Layer.Google.prototype.RESOLUTIONS = [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.0219726562 5,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.000686 6455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0. 0000429153442382812,0.0000214576721191406,0.0000107288360595703,0.0000053644 1802978516,0.00000268220901489258,0.00000134110450744629,6.70552253723145e-7 ,3.35276126861572e-7]; OpenLayers.Layer.Google.prototype.MAX_ZOOM_LEVEL = 22; Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From B.Sandvik at sms.ed.ac.uk Sat Apr 5 14:27:50 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: References: Message-ID: <47F7C4A6.4000708@sms.ed.ac.uk> Hi Arnd, Thank you for sharing this solution! It seems to work on: http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html Do you think that this solution will have some performance issues due to more "complex" polygons? The good thing is that no event handling is needed when the user zoom the map. Bjorn Arnd Wippermann wrote: > Hi Bjorn, > > Looking with interest at your map, I have a workaround. You can draw a > regular polygon with enough corners to look like a circle. > > I have taken your code to test it. It seems to do what you want. It works > for OL 2.5 and 2.6, but with 2.6 the hover is broken. > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > Open Layers Example > > > > > > > > >
>
style="position:absolute;left:10px;bottom:10px;border:2px solid > #AAAAFF;padding:2px;background-color:#CCCCCC">
> > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im > Auftrag von Bjorn Sandvik > Gesendet: Donnerstag, 3. April 2008 23:05 > An: users@openlayers.org > Betreff: [OpenLayers-Users] Proportional Symbol Mapping > > Hi, > > I'm currently testing the capabilities of doing thematic mapping with > OpenLayers. > > This is a proportional symbol map based on GeoJSON encoded data: > http://thematicmapping.org/experiments/openlayers_propsymb.htm > > My question: Is there a way to keep the relative size of the symbols when > the users zoom in/out? > (symbols should keep their size relative to the size of the countries). > > Bjorn > > http://blog.thematicmapping.org > > > > > -- > The University of Edinburgh is a charitable body, registered in Scotland, > with registration number SC005336. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From B.Sandvik at sms.ed.ac.uk Sat Apr 5 15:01:37 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> <20080404105715.GC15153@metacarta.com> Message-ID: <47F7CC91.3090004@sms.ed.ac.uk> Hi David, I will consider thematic mapping with WMS at a later stage. "European Interactive Atlas Explorer" is a good example: http://karlinapp.ethz.ch/wms_client/ The disadvantage is lack of interactivity on the client. Bjorn http://blog.thematicmapping.org David Fawcett wrote: > I can think of another option, but it is a fairly big change of course. > > Instead of sending RSS to OpenLayers and building the vector features, > you could use MapServer to create a transparent WMS layer with your > features in it. That way, you could use LAYER SYMBOLSCALE to scale > your symbols. > > David. > > On Fri, Apr 4, 2008 at 5:57 AM, Christopher Schmidt > > wrote: > > On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik > > wrote: > > > My question: Is there a way to keep the relative size of the > symbols > > > when the users zoom in/out? > > > > AFAICT there's no way to style features based on the current > zoom level. > > I'm pretty sure that the StyleMap/Style/Rule system is designed > exactly > for that, but I have no idea how it's supposed to work. > > I would say "look at http://trac.openlayers.org/wiki/Styles", but > I see > that it's using Rules for styling, which I think was recently decided > would be unsupported in OpenLayers 2.6, so I don't know what you're > actually supposed to do. > > Andreas? Tim? > > 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 > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From B.Sandvik at sms.ed.ac.uk Sat Apr 5 16:51:09 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F7C4A6.4000708@sms.ed.ac.uk> References: <47F7C4A6.4000708@sms.ed.ac.uk> Message-ID: <47F7E63D.20807@sms.ed.ac.uk> Correct url: http://thematicmapping.org/experiments/openlayers/propsymbols2.html Bjorn Bjorn Sandvik wrote: > Hi Arnd, > > Thank you for sharing this solution! > It seems to work on: > http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html > > Do you think that this solution will have some performance issues due to > more "complex" polygons? > The good thing is that no event handling is needed when the user zoom > the map. > > Bjorn > > Arnd Wippermann wrote: > >> Hi Bjorn, >> >> Looking with interest at your map, I have a workaround. You can draw a >> regular polygon with enough corners to look like a circle. >> >> I have taken your code to test it. It seems to do what you want. It works >> for OL 2.5 and 2.6, but with 2.6 the hover is broken. >> >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> >> >> Open Layers Example >> >> >> >> >> >> >> >> >>
>>
> style="position:absolute;left:10px;bottom:10px;border:2px solid >> #AAAAFF;padding:2px;background-color:#CCCCCC">
>> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im >> Auftrag von Bjorn Sandvik >> Gesendet: Donnerstag, 3. April 2008 23:05 >> An: users@openlayers.org >> Betreff: [OpenLayers-Users] Proportional Symbol Mapping >> >> Hi, >> >> I'm currently testing the capabilities of doing thematic mapping with >> OpenLayers. >> >> This is a proportional symbol map based on GeoJSON encoded data: >> http://thematicmapping.org/experiments/openlayers_propsymb.htm >> >> My question: Is there a way to keep the relative size of the symbols when >> the users zoom in/out? >> (symbols should keep their size relative to the size of the countries). >> >> Bjorn >> >> http://blog.thematicmapping.org >> >> >> >> >> -- >> The University of Edinburgh is a charitable body, registered in Scotland, >> with registration number SC005336. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> >> > > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From B.Sandvik at sms.ed.ac.uk Sat Apr 5 16:52:29 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F7A25C.2010408@sms.ed.ac.uk> References: <47F54687.6090801@sms.ed.ac.uk> <16491535.post@talk.nabble.com> <47F7A25C.2010408@sms.ed.ac.uk> Message-ID: <47F7E68D.2080209@sms.ed.ac.uk> Correct url: http://thematicmapping.org/experiments/openlayers/propsymbols.html (Event handler not working) Bjorn Bjorn Sandvik wrote: > Hi Matt, > > I'm currently implementing your suggestions. I'm able to size the > symbols as a function of the initial zoom level, but I can't figure out > how to attach an event handler to the endzoom event. How can I add an > event handler which makes a function call? > > http://localhost/thematicmapping/experiments/openlayers/propsymbols.html > (the hover effect still needs some improvements). > > Bjorn > http://blog.thematicmapping.org > > > mpriour wrote: > >> Bjorn >> The correct way to handle this is to attach an event handler to the endzoom >> event. >> This event should manage the size of the symbols so that they are >> propotionally sized. >> Choose the zoom level at which the symbol renders at the right proportion, >> this will be your refernece zoom level. Then size the symbol propotionally >> the ratio of resolution @ current zoom level / resolution @ reference zoom >> level. Depending on the event firing order, you may also need to call >> redraw() on your vector layer. >> Matt >> >> Bjorn Sandvik wrote: >> >> >>> Hi, >>> >>> I'm currently testing the capabilities of doing thematic mapping with >>> OpenLayers. >>> >>> This is a proportional symbol map based on GeoJSON encoded data: >>> http://thematicmapping.org/experiments/openlayers_propsymb.htm >>> >>> My question: Is there a way to keep the relative size of the symbols >>> when the users zoom in/out? >>> (symbols should keep their size relative to the size of the countries). >>> >>> Bjorn >>> >>> http://blog.thematicmapping.org >>> >>> >>> >>> >>> -- >>> The University of Edinburgh is a charitable body, registered in >>> Scotland, with registration number SC005336. >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >>> >>> >> >> > > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From arnd.wippermann at web.de Sat Apr 5 17:16:36 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F7C4A6.4000708@sms.ed.ac.uk> Message-ID: Hi Bjorn, It seems that the 200 regular polygons behave as the 200 circles. I have also thought, that the complex polygons would slow down the application. I think up to 500 features the performance will be ok. You can also think about WFS instead of WMS. http://openlayers.org/dev/examples/wfs-reprojection.html Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: B.Sandvik@sms.ed.ac.uk [mailto:B.Sandvik@sms.ed.ac.uk] Gesendet: Samstag, 5. April 2008 20:28 An: users@openlayers.org Cc: Arnd Wippermann Betreff: Re: AW: [OpenLayers-Users] Proportional Symbol Mapping Hi Arnd, Thank you for sharing this solution! It seems to work on: http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html Do you think that this solution will have some performance issues due to more "complex" polygons? The good thing is that no event handling is needed when the user zoom the map. Bjorn Arnd Wippermann wrote: > Hi Bjorn, > > Looking with interest at your map, I have a workaround. You can draw a > regular polygon with enough corners to look like a circle. > > I have taken your code to test it. It seems to do what you want. It > works for OL 2.5 and 2.6, but with 2.6 the hover is broken. > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > Open Layers Example > > > > > > > > >
>
style="position:absolute;left:10px;bottom:10px;border:2px solid > #AAAAFF;padding:2px;background-color:#CCCCCC">
> > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] Im Auftrag von Bjorn Sandvik > Gesendet: Donnerstag, 3. April 2008 23:05 > An: users@openlayers.org > Betreff: [OpenLayers-Users] Proportional Symbol Mapping > > Hi, > > I'm currently testing the capabilities of doing thematic mapping with > OpenLayers. > > This is a proportional symbol map based on GeoJSON encoded data: > http://thematicmapping.org/experiments/openlayers_propsymb.htm > > My question: Is there a way to keep the relative size of the symbols > when the users zoom in/out? > (symbols should keep their size relative to the size of the countries). > > Bjorn > > http://blog.thematicmapping.org > > > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From andreas.hocevar at gmail.com Sun Apr 6 13:24:40 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F54687.6090801@sms.ed.ac.uk> References: <47F54687.6090801@sms.ed.ac.uk> Message-ID: <47F90758.1040001@gmail.com> Bjorn, your requirement is covered by the new OpenLayers.StyleMap. First of all, have a look at the styles-context example (http://www.openlayers.org/dev/examples/styles-context.html). The second example there (the points in the southern hemisphere) are created with an advanced template. The same can be done for your use case. If I take your original code for the calculation of the size: feature.style.pointRadius = 3 + (pop * (40 / 1312978855)); feature.style.fillColor = feature.attributes['colour']; I can create the following template: var context = { getSize: function(feature) { return feature.attributes["population"] * someFactor * map.getScale(); }, getColour: function(feature) { return feature.attributes["colour"]; } }; var template = { fillOpacity: 0.9 pointRadius: "${getSize}", // using context.getSize(feature) fillColor: "${getColour}" // using context.getColour(feature) }; var style = new OpenLayers.Style(template, {context: context}); vectors = new OpenLayers.Layer.Vector("Vector Layer", { styleMap: new OpenLayers.StyleMap(style)}); You only have to find an algorithm to derive your pointRadius from (using map.getScale() or map.getResolution() and someFactor). Also, there is no need to set any feature styles in the onload method. You're all set with the above definition of the styleMap in the constructor for your vector layer. Regards, Andreas. Bjorn Sandvik wrote: > My question: Is there a way to keep the relative size of the symbols > when the users zoom in/out? > (symbols should keep their size relative to the size of the countries). > From andreas.hocevar at gmail.com Sun Apr 6 13:28:17 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <20080404105715.GC15153@metacarta.com> References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> <20080404105715.GC15153@metacarta.com> Message-ID: <47F90831.6070006@gmail.com> Christopher Schmidt wrote: > On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > >> On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote: >> >>> My question: Is there a way to keep the relative size of the symbols >>> when the users zoom in/out? >>> >> AFAICT there's no way to style features based on the current zoom level. >> > > I'm pretty sure that the StyleMap/Style/Rule system is designed exactly > for that, but I have no idea how it's supposed to work. > You're right. The solution does not even involve rules. > I would say "look at http://trac.openlayers.org/wiki/Styles", but I see > that it's using Rules for styling, which I think was recently decided > would be unsupported in OpenLayers 2.6, so I don't know what you're > actually supposed to do. > Well, the wiki page will have to be changed once it is decided how to continue with the rules/filters issue. > Andreas? Tim? > The solution is in the styles-context.html example. I already posted a detailled answer as reply to another posting in this thread. Regards, Andreas. From andreas.hocevar at gmail.com Sun Apr 6 13:37:13 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6 In-Reply-To: References: Message-ID: <47F90A49.5050905@gmail.com> Arnd Wippermann wrote: > Hi, > > First, a great compliment to all the developers of OL. And best, only some > easy changes needed to update own applications from 2.5 to 2.6. > > But some behaviour I'm used to in 2.5, I could not solve for 2.6. > > In OL 2.5 I do this to draw red features and draw select features in yellow: > > OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow'; > OpenLayers.Feature.Vector.style['select']['strokeColor'] = 'yellow'; > > var layer_style = OpenLayers.Util.extend({}, > OpenLayers.Feature.Vector.style['default']); > > style_red = OpenLayers.Util.extend({}, layer_style); > style_red.strokeColor = "red"; > style_red.fillColor = "red"; > > vector = new OpenLayers.Layer.Vector("Editable Vectors", {style: > style_red}); > > > With OL 2.6 I have no luck. The features will drawn in red, but the selected > features are also in red. > > How can I change the default style for selected features in OL 2.6? > The simplest way would be var selectStyle = OpenLayers.Util.applyDefaults({ fillColor: "yellow", strokeColor: "yellow"}, OpenLayers.Feature.Vector.style["select"]); var selectFeatureControl = OpenLayers.Control.SelectFeature(yourLayer, { selectStyle: selectStyle}); Regards, Andreas. From eric.c2c at gmail.com Sun Apr 6 15:44:18 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F90758.1040001@gmail.com> References: <47F54687.6090801@sms.ed.ac.uk> <47F90758.1040001@gmail.com> Message-ID: <5ec103de0804061244v72e9e2aeh78c2e32300a89cb8@mail.gmail.com> On Sun, Apr 6, 2008 at 7:24 PM, Andreas Hocevar wrote: > Bjorn, > > your requirement is covered by the new OpenLayers.StyleMap. > > First of all, have a look at the styles-context example > (http://www.openlayers.org/dev/examples/styles-context.html). The second > example there (the points in the southern hemisphere) are created with > an advanced template. The same can be done for your use case. > > If I take your original code for the calculation of the size: > > feature.style.pointRadius = 3 + (pop * (40 / 1312978855)); > > feature.style.fillColor = feature.attributes['colour']; > > I can create the following template: > > var context = { > getSize: function(feature) { > return feature.attributes["population"] * someFactor * map.getScale(); > }, > getColour: function(feature) { > return feature.attributes["colour"]; > } > }; > var template = { > fillOpacity: 0.9 > pointRadius: "${getSize}", // using context.getSize(feature) > fillColor: "${getColour}" // using context.getColour(feature) > }; > > var style = new OpenLayers.Style(template, {context: context}); > vectors = new OpenLayers.Layer.Vector("Vector Layer", { > styleMap: new OpenLayers.StyleMap(style)}); > > > You only have to find an algorithm to derive your pointRadius from > (using map.getScale() or map.getResolution() and someFactor). > > Also, there is no need to set any feature styles in the onload method. > You're all set with the above definition of the styleMap in the > constructor for your vector layer. Thanks for this detailed explanation Andreas. The style/rule framework is so rich that it's kinda hard to keep up with all of its features. -- Eric From crschmidt at metacarta.com Sun Apr 6 16:34:34 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F90831.6070006@gmail.com> References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> <20080404105715.GC15153@metacarta.com> <47F90831.6070006@gmail.com> Message-ID: <20080406203433.GA32489@metacarta.com> On Sun, Apr 06, 2008 at 07:28:17PM +0200, Andreas Hocevar wrote: > Christopher Schmidt wrote: > Well, the wiki page will have to be changed once it is decided how to > continue with the rules/filters issue. In this case, though, there are no rules or filters to worry about; I'm just not knowledgable to know any better :) Thanks for the detailed response later in the thread: I'll add that one to my repitoire of knowledge about styling: I just didn't want to misdirect in this case (as I would have, had I not waited for you ;)). Thanks again, -- Christopher Schmidt MetaCarta From euzuro at gmail.com Sun Apr 6 16:36:14 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Fwd: [OSGeo-Announce] FOSS4G 2008 Registration and Calls for Papers and Workshops In-Reply-To: <47F66CA6.6030409@pobox.com> References: <47F66CA6.6030409@pobox.com> Message-ID: <6ae3fb590804061336m19f333b3qc5a3d96155bdc1e4@mail.gmail.com> ---------- Forwarded message ---------- From: Frank Warmerdam Date: Fri, Apr 4, 2008 at 2:00 PM Subject: [OSGeo-Announce] FOSS4G 2008 Registration and Calls for Papers and Workshops To: announce@lists.osgeo.org If you attend just one GIS conference in 2008, make it FOSS4G 2008! It promises to be the highlight of your year. The 2008 Free and Open Source Software for Geospatial (FOSS4G) conference, incorporating GISSA 2008, is on the horizon. WHERE: Cape Town, South Africa, at the Cape Town International Convention Centre. Cape Town is one of the Top 5 worldwide tourist and conference destinations. WHEN: Monday 29 September to Friday 3 October. Extend your stay with a holiday in beautiful South Africa and make the trip even more worthwhile. Theme: "Open Source Geospatial: An Option for Developing Nations" FOSS4G is presented annually by the Open Source Geospatial Foundation (OSGeo) and in 2007 gathered 700 developers and users of open source geospatial software as well as managers and decision makers from around the world to discuss new directions, exciting implementations, and growing business opportunities in the field of open source geospatial software. Incorporation of GISSA 2008 this year opens FOSS4G to a wider field of GIS practitioners and decision makers. GISSA is the GeoInformation Society of South Africa and we want all players from South Africa to join their peers from around the world at this international event. Come and present your work, learn about Open Source GIS and participate in the FOSS-Proprietary debate. South Africa's recent adoption of a National Open Source Policy in Government and the introduction of GIS into our school syllabus this year make FOSS4G an especially important conference for South Africa and other countries in a similar position. Major features include Hands-on Workshops and Labs, Presentations and Academic Papers, a live Demo Theatre, large exhibition hall, Outreach activities, Technical visits and a great social programme including a gala dinner at Moyo in Stellenbosch. Visit the website http://www.foss4g2008.org to find out more. Register or submit an Abstract or Workshop Proposal. This year there will be an Academic Track in addition to non-peer-reviewed presentations, catering for a wide range of topics. Autodesk and Google have already come on board as sponsors. If your organisation is interested in supporting the conference or exhibiting, please download the Prospectus from the website. Please circulate this widely. I'm looking forward to seeing you in Cape Town! Gavin Fleming FOSS4G 2008 Conference Chair www.foss4g2008.org _______________________________________________ Announce mailing list Announce@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/announce From arnd.wippermann at web.de Sun Apr 6 17:39:07 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6 In-Reply-To: <47F90A49.5050905@gmail.com> Message-ID: It works. But i'm not able to set the color of the vertices and the radius. Is there a way to change these values as well? And when I move a vertice, the feature will change to red (cleared the selection?). And the code works not for the ModifyFeature.Control. Apart from this. With the SelectFeatureControl I can't toggle the selection ( i have to click outside the feature to unselect), but with the ModifyFeature.Control it's possible. Shouldn't it be for both the same way? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] Gesendet: Sonntag, 6. April 2008 19:37 An: Arnd Wippermann Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] How to change style['select'] in OL 2.6 Arnd Wippermann wrote: > Hi, > > First, a great compliment to all the developers of OL. And best, only > some easy changes needed to update own applications from 2.5 to 2.6. > > But some behaviour I'm used to in 2.5, I could not solve for 2.6. > > In OL 2.5 I do this to draw red features and draw select features in yellow: > > OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow'; > OpenLayers.Feature.Vector.style['select']['strokeColor'] = > 'yellow'; > > var layer_style = OpenLayers.Util.extend({}, > OpenLayers.Feature.Vector.style['default']); > > style_red = OpenLayers.Util.extend({}, layer_style); > style_red.strokeColor = "red"; > style_red.fillColor = "red"; > > vector = new OpenLayers.Layer.Vector("Editable Vectors", {style: > style_red}); > > > With OL 2.6 I have no luck. The features will drawn in red, but the > selected features are also in red. > > How can I change the default style for selected features in OL 2.6? > The simplest way would be var selectStyle = OpenLayers.Util.applyDefaults({ fillColor: "yellow", strokeColor: "yellow"}, OpenLayers.Feature.Vector.style["select"]); var selectFeatureControl = OpenLayers.Control.SelectFeature(yourLayer, { selectStyle: selectStyle}); Regards, Andreas. From arnd.wippermann at web.de Sun Apr 6 17:50:27 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F90758.1040001@gmail.com> Message-ID: How would it be to add an element "geographical circle" to OL. 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 Andreas Hocevar Gesendet: Sonntag, 6. April 2008 19:25 An: Bjorn Sandvik Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Proportional Symbol Mapping Bjorn, your requirement is covered by the new OpenLayers.StyleMap. First of all, have a look at the styles-context example (http://www.openlayers.org/dev/examples/styles-context.html). The second example there (the points in the southern hemisphere) are created with an advanced template. The same can be done for your use case. If I take your original code for the calculation of the size: feature.style.pointRadius = 3 + (pop * (40 / 1312978855)); feature.style.fillColor = feature.attributes['colour']; I can create the following template: var context = { getSize: function(feature) { return feature.attributes["population"] * someFactor * map.getScale(); }, getColour: function(feature) { return feature.attributes["colour"]; } }; var template = { fillOpacity: 0.9 pointRadius: "${getSize}", // using context.getSize(feature) fillColor: "${getColour}" // using context.getColour(feature) }; var style = new OpenLayers.Style(template, {context: context}); vectors = new OpenLayers.Layer.Vector("Vector Layer", { styleMap: new OpenLayers.StyleMap(style)}); You only have to find an algorithm to derive your pointRadius from (using map.getScale() or map.getResolution() and someFactor). Also, there is no need to set any feature styles in the onload method. You're all set with the above definition of the styleMap in the constructor for your vector layer. Regards, Andreas. Bjorn Sandvik wrote: > My question: Is there a way to keep the relative size of the symbols > when the users zoom in/out? > (symbols should keep their size relative to the size of the countries). > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From andreas.hocevar at gmail.com Sun Apr 6 18:20:00 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6 In-Reply-To: References: Message-ID: <47F94C90.30903@gmail.com> Arnd, Arnd Wippermann wrote: > But i'm not able to set the color of the vertices and the radius. Is there a > way to change these values as well? > This would be the virtualStyle property of Control.ModifyFeature. But there is a bug which prevents that from working (http://trac.openlayers.org/ticket/1495). This should be fixed soon, probably before the final release of OL 2.6. Regards, Andreas. From B.Sandvik at sms.ed.ac.uk Sun Apr 6 19:01:02 2008 From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Proportional Symbol Mapping In-Reply-To: <47F90758.1040001@gmail.com> References: <47F54687.6090801@sms.ed.ac.uk> <47F90758.1040001@gmail.com> Message-ID: <47F9562E.50507@sms.ed.ac.uk> Thank you! The circles are now scaling properly on each zoom level: http://thematicmapping.org/experiments/openlayers/propsymbols_stylemap.html How can I adjust the hover effect (keep the same size)? Bjorn Andreas Hocevar wrote: > Bjorn, > > your requirement is covered by the new OpenLayers.StyleMap. > > First of all, have a look at the styles-context example > (http://www.openlayers.org/dev/examples/styles-context.html). The > second example there (the points in the southern hemisphere) are > created with an advanced template. The same can be done for your use > case. > > If I take your original code for the calculation of the size: > > feature.style.pointRadius = 3 + (pop * (40 / 1312978855)); > feature.style.fillColor = feature.attributes['colour']; > > I can create the following template: > > var context = { > getSize: function(feature) { > return feature.attributes["population"] * someFactor * > map.getScale(); > }, > getColour: function(feature) { > return feature.attributes["colour"]; > } > }; > var template = { > fillOpacity: 0.9 > pointRadius: "${getSize}", // using context.getSize(feature) > fillColor: "${getColour}" // using context.getColour(feature) > }; > > var style = new OpenLayers.Style(template, {context: context}); > vectors = new OpenLayers.Layer.Vector("Vector Layer", { > styleMap: new OpenLayers.StyleMap(style)}); > > > You only have to find an algorithm to derive your pointRadius from > (using map.getScale() or map.getResolution() and someFactor). > > Also, there is no need to set any feature styles in the onload method. > You're all set with the above definition of the styleMap in the > constructor for your vector layer. > > Regards, > Andreas. > > Bjorn Sandvik wrote: >> My question: Is there a way to keep the relative size of the symbols >> when the users zoom in/out? >> (symbols should keep their size relative to the size of the countries). >> > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From tara_athan at alt2is.com Sun Apr 6 23:17:49 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] registering a click on a marker Message-ID: <47F9925D.7080809@alt2is.com> I am confused about how to register an event on a marker. I have a marker layer at a coarse resolution, with markers assigned to different variables. I would like to have a click on the marker cause a zoom in to that location, plus a replacement of the makers with a new set of markers that show more detail for that location. I am using code like this function handleMarkerClickEU(evt) { map.setCenter(new OpenLayers.LonLat(13.000000,51.000000), 3); var vols_cyball = new OpenLayers.Layer.Markers( 'volunteers living in Europe (balloons)'); var vols_cynumb = new OpenLayers.Layer.Markers( 'volunteers living in Europe (numbers)'); var vols_cytext = new OpenLayers.Layer.Text( "text", {location: "../data/volsTextCYEU_utf8.csv"}); map.addLayers([vols_cyball, vols_cynumb, vols_cytext]); map.removeLayer(vols_ctball); map.removeLayer(vols_ctnumb); } var markerEU = new OpenLayers.Marker(new OpenLayers.LonLat(13.000000,51.000000),icon); vols_ctball.addMarker( markerEU); markerEU.events.register("onclick" , markerEU, handleMarkerClickEU); which doesn't show any errors, but nothing happens. The event handler worked OK when I registered it to the map, but not when I register it to a marker. Thanks for your help, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan [AT] alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From crschmidt at metacarta.com Mon Apr 7 00:23:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html In-Reply-To: <20080403170246.GA3157@metacarta.com> References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com> <20080402213331.GB18293@metacarta.com> <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com> <20080402220129.GA24242@metacarta.com> <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com> <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com> <20080403160401.GA2206@metacarta.com> <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com> <20080403170246.GA3157@metacarta.com> Message-ID: <20080407042356.GA5935@metacarta.com> On Thu, Apr 03, 2008 at 01:02:47PM -0400, Christopher Schmidt wrote: > On Thu, Apr 03, 2008 at 10:18:45AM -0600, Linda Rawson wrote: > > Try clicking on the third zoom level. It does nothing. Then you > > click on the second and the zoom goes to the third. It is off by one > > every time. Then go the other direction. More havoc. > > #1486 > clicking in panzoombar -> off by one > > Thanks for the report. This is now in trunk, and will be included in 2.6RC2. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Mon Apr 7 00:50:59 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] registering a click on a marker In-Reply-To: <47F9925D.7080809@alt2is.com> References: <47F9925D.7080809@alt2is.com> Message-ID: <5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com> On Mon, Apr 7, 2008 at 5:17 AM, Tara Athan wrote: > I am confused about how to register an event on a marker. > I have a marker layer at a coarse resolution, with markers assigned to > different variables. > I would like to have a click on the marker cause a zoom in to that > location, plus a replacement of the makers with a new set of markers > that show more detail for that location. I am using code like this > > function handleMarkerClickEU(evt) { > map.setCenter(new OpenLayers.LonLat(13.000000,51.000000), 3); > var vols_cyball = new OpenLayers.Layer.Markers( 'volunteers > living in Europe (balloons)'); > var vols_cynumb = new OpenLayers.Layer.Markers( 'volunteers > living in Europe (numbers)'); > var vols_cytext = new OpenLayers.Layer.Text( "text", {location: > "../data/volsTextCYEU_utf8.csv"}); > map.addLayers([vols_cyball, vols_cynumb, vols_cytext]); > > > map.removeLayer(vols_ctball); > map.removeLayer(vols_ctnumb); > } > > var markerEU = new OpenLayers.Marker(new > OpenLayers.LonLat(13.000000,51.000000),icon); > vols_ctball.addMarker( markerEU); > markerEU.events.register("onclick" , markerEU, handleMarkerClickEU); Hi, try "click" instead of "onclick" ? -- Eric From tara_athan at alt2is.com Mon Apr 7 01:19:55 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] registering a click on a marker In-Reply-To: <5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com> References: <47F9925D.7080809@alt2is.com> <5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com> Message-ID: <47F9AEFB.5000908@alt2is.com> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080406/604777cc/attachment.html From mail at kevinkempfer.de Mon Apr 7 04:13:28 2008 From: mail at kevinkempfer.de (Kevin Kempfer) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Deactivate Draw-Control after feature added Message-ID: <47F9D7A8.3030700@kevinkempfer.de> Hi, I'm trying to let the user draw a line feature and deactivate the draw feature after the feature was added to the map. Here's my code: var drawControls = { point: new OpenLayers.Control.DrawFeature(vectors, OpenLayers.Handler.Point), line: new OpenLayers.Control.DrawFeature(vectors, OpenLayers.Handler.Path,{featureAdded: toggle } ), rectangle: new OpenLayers.Control.DrawFeature(vectors, OpenLayers.Handler.Box), select: new OpenLayers.Control.SelectFeature(vectors), }; for(var key in drawControls) { map.addControl(drawControls[key]); } function toggle(feature){ var linecontrol = drawControls['line']; linecontrol.deactivate(); } I get an error as soon as the control gets deactivated: this.point has no properties -> this.point.destroy(); Here's the trace from FireBug: destroyFeature()Point.js (line 128) destroyFeature()Path.js (line 81) finalize()Point.js (line 139) dblclick(dblclick clientX=0, clientY=0)Path.js (line 240) triggerEvent("dblclick", dblclick clientX=0, clientY=0)Events.js (line 612) handleBrowserEvent(dblclick clientX=0, clientY=0)Events.js (line 640) bindAsEventListener(dblclick clientX=0, clientY=0) Looks like the control gets deactivated too early in the feature-adding process. Is there any advice on how to deactivate a draw control after drawing a feature? Thanks, Kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3249 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080407/7511700e/smime.bin From tchule at hotmail.com Mon Apr 7 11:36:30 2008 From: tchule at hotmail.com (Benoit PESTY) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Delete Feature Message-ID: Hello, I have a stupid error when trying to delete a vector feature. I've updated OpenLayers from 2.5 to 2.6 (latest from trunk) and when trying to delete a feature I have the corners of the polygon that stay on the map. I've added a control like this : // Delete feature var deleteTool = new OpenLayers.Control.SelectFeature(layer_vector, { onSelect:deleteFeature, }); And the called method is like this : function deleteFeature(feature) { getEditableLayer().removeFeatures(feature); } The problem seems to be that when getting the vector layer (thru the getLayersByName() method) the feature is set to "modification mode". I've tried to look around for the "renderIntent" property of the selectfeature control but I don't know the clean way to use it. Thanks, Benoit Pesty _________________________________________________________________ Pack up or back up?use SkyDrive to transfer files or keep extra copies. Learn how. hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080407/7283ed84/attachment.html From gerald.quintana at gmail.com Mon Apr 7 12:03:47 2008 From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] TMS Layer origin and bounding box Message-ID: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com> Hi all, I have generated TMS pictures with the gdal2tiles.py tool from a PNG+WLD. I got a tilemapresource.xml and PNG named x/y/z.png with x<5,y<10 and z<10. I placed them on my webserver and added a TMS layer to my OL map. But I can see with FireBug that OL is looking for pictures like 0/1258/973.png that I don't have. I guess that OL doesn't read the tilemapresource.xml and I have to tell him the origin and bounding box of the tiles. I tried to set the maxExtent and tilesOrigin attributes of the TMS layer, but it doesn't help. Could you tell me what I should do? I presume it's obvious. Thanks, Gerald From peteralen at earthlink.net Mon Apr 7 20:52:39 2008 From: peteralen at earthlink.net (plen) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Where are the 2.5 API docs????? Message-ID: <16544376.post@talk.nabble.com> Hello, On the OpenLayers home page (http://openlayers.org/) there is a link to the latest release (http://www.openlayers.org/api/OpenLayers.js) which is the 2.5 release. At the top of the same page it has a link titled "Class Documentation" which leads to "http://dev.openlayers.org/apidocs/files/OpenLayers-js.html". It is clear to me now that the class documentation is not the 2.5 API documentation, because I continue to get errors when I use some of the properties/methods listed in the API when using the 2.5 JS file. This is extremely frustrating because now I do not know what my API options are. Is there a 2.5 API documentation page somewhere? Thanks for your help - Peter -- View this message in context: http://www.nabble.com/Where-are-the-2.5-API-docs------tp16544376p16544376.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Mon Apr 7 21:25:28 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Where are the 2.5 API docs????? In-Reply-To: <16544376.post@talk.nabble.com> References: <16544376.post@talk.nabble.com> Message-ID: <20080408012528.GA23925@metacarta.com> On Mon, Apr 07, 2008 at 05:52:39PM -0700, plen wrote: > > Hello, > > On the OpenLayers home page (http://openlayers.org/) there is a link to the > latest release (http://www.openlayers.org/api/OpenLayers.js) which is the > 2.5 release. At the top of the same page it has a link titled "Class > Documentation" which leads to > "http://dev.openlayers.org/apidocs/files/OpenLayers-js.html". > > It is clear to me now that the class documentation is not the 2.5 API > documentation, because I continue to get errors when I use some of the > properties/methods listed in the API when using the 2.5 JS file. This is > extremely frustrating because now I do not know what my API options are. > > Is there a 2.5 API documentation page somewhere? > http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers-js.html Regards, -- Christopher Schmidt MetaCarta From peteralen at earthlink.net Mon Apr 7 21:28:39 2008 From: peteralen at earthlink.net (plen) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? Message-ID: <16545652.post@talk.nabble.com> Hello, I am using OpenLayers 2.5. Our situation is that we are getting a handle to the map after someone else has loaded some WMS map layers. So, by the time I can do anything with the OpenLayers map, another group has added 10 or 11 map layers through calls like: var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}, options); I want to get a handle to a particular layer and I think I have to use the OpenLayers API to get the layer. For example, the 2.5 API has a map.getLayer([layer_id]); and then a map.setBaseLayer(OpenLayers.Layer); My question is that you have to have the layer ID as the argument for the getLayer() function. Since I did not load any of those layers, I don't know how I would get the ID for the layer I am interested in. There is no generic function which returns an array of all the layers to which I could just cycle through and check each layers name, for example. Version 2.6 has more functions to obtain layer data but we must use 2.5 for the time being. Any thoughts how I can programmatically go through the layers? Thanks - Peter -- View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From pagameba at gmail.com Mon Apr 7 21:39:19 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? In-Reply-To: <16545652.post@talk.nabble.com> References: <16545652.post@talk.nabble.com> Message-ID: I would imagine that you can use something like: for (var i=0; i > Hello, > > I am using OpenLayers 2.5. Our situation is that we are getting a > handle to > the map after someone else has loaded some WMS map layers. So, by > the time > I can do anything with the OpenLayers map, another group has added > 10 or 11 > map layers through calls like: > > var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://labs.metacarta.com/wms/vmap0?", {layers: > 'basic'}, > options); > > I want to get a handle to a particular layer and I think I have to > use the > OpenLayers API to get the layer. For example, the 2.5 API has a > map.getLayer([layer_id]); and then a > map.setBaseLayer(OpenLayers.Layer); > > My question is that you have to have the layer ID as the argument > for the > getLayer() function. Since I did not load any of those layers, I > don't know > how I would get the ID for the layer I am interested in. There is no > generic function which returns an array of all the layers to which I > could > just cycle through and check each layers name, for example. Version > 2.6 has > more functions to obtain layer data but we must use 2.5 for the time > being. > > Any thoughts how I can programmatically go through the layers? > > Thanks - Peter > > -- > View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.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 pedrosimonetti at gmail.com Mon Apr 7 23:21:20 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] geometry.getLength() returns what format Message-ID: <16543866.post@talk.nabble.com> Dear Developers, I'm considering using the following code in an production environment, but I read in this thread, that this shouldn't be used in production environments, because isn't stable enought. I've researched about measure tools, and I saw many differents attempts of implementations, but this seems to be the most up-to-date one, as far as I can see. What's the problem in using this is a production environment? Does anybody has another better solution to point me out? regards, Pedro Simonetti. PS: Congratulations for this amazing project! Christopher Schmidt-4 wrote: > > This measurement is in map units. If you want it in miles, you're going > to want to look at: > > http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html > http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js > -- View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16543866.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tara_athan at alt2is.com Tue Apr 8 00:32:20 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Two Google layers with specified max and min zoom levels In-Reply-To: <16545652.post@talk.nabble.com> References: <16545652.post@talk.nabble.com> Message-ID: <47FAF554.20305@alt2is.com> I am trying to get the following simple map to work so that the user can zoom in to the maximum level available for each layer, and when switching between the two base layers there are not any jumps in the zoom level. I see several posts in the forum about this issue, but none seem to have the complete solution. This would make a great example map to add to your list, if someone could help get this working. Thanks, Tara
From pedrosimonetti at gmail.com Tue Apr 8 02:28:02 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] geometry.getLength() returns what format In-Reply-To: <16543866.post@talk.nabble.com> References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com> <20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com> Message-ID: <16547959.post@talk.nabble.com> I've mistyped the question. What I supposed to ask is: What's the problem in using this IN a production environment? Does anybody has another better solution to point me out? Pedro Simonetti wrote: > > Dear Developers, > > I'm considering using the following code in an production environment, but > I read in this thread, that this shouldn't be used in production > environments, because isn't stable enought. > > I've researched about measure tools, and I saw many differents attempts of > implementations, but this seems to be the most up-to-date one, as far as I > can see. > > What's the problem in using this is a production environment? Does anybody > has another better solution to point me out? > > regards, > > Pedro Simonetti. > > PS: Congratulations for this amazing project! > > > Christopher Schmidt-4 wrote: >> >> This measurement is in map units. If you want it in miles, you're going >> to want to look at: >> >> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html >> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js >> > -- View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16547959.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From brad at cubewerx.com.au Tue Apr 8 03:59:47 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] 2.6 problem with vectors in IE Message-ID: List, I have been using 2.6 because of a new feature I wanted. However, I have found that in IE when creating vectors (i.e. drawing of the edges of a mouse-Shift selection box in my case) they are always drawn in the top left corner of the map Div. The vectors look correct just located in wrong place. And when you zoom out it stays in the left corner i.e. moves to the left top corner. Aspect ratio and dimensions of box are correct and the coordinates used were fine for centering and zooming over the collection. Just the box (or vectors) are in the wrong place. Works OK when I go back to 2.5 and works OK in FF. Just thought you might like to know as this took me awhile to twig what was happening. Cheers, Brad Spencer General Manager CubeWerx Australia Pty Ltd ABN: 37 115 163 285 Mob: +61 (0)404 841 131 Tel/Fax: +61 (0)2 9481 7024 mailto:brad@cubewerx.com.au http://www.cubewerx.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/9946d139/attachment.html From kobben at itc.nl Tue Apr 8 05:53:47 2008 From: kobben at itc.nl (Barend Kobben) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs????? In-Reply-To: Message-ID: PLEASE guys, can you please indicate the version clearly this on the actual pages, or at very least clearly in the URL. I have been falling into the same trap as I am sure have many many others. Please rememeber not everyone of your users is an on-the-edge-latest-stuff developer, we just want to build real life apps that work and for which we can find information that as much as possible is actually useful. I think OL is one of the best things coming out of the FOSS community, but you make it quite hard for beginners to get on board... Yours, -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-04-08 03:25, "Christopher Schmidt" wrote: > On Mon, Apr 07, 2008 at 05:52:39PM -0700, plen wrote: >> >> Hello, >> >> On the OpenLayers home page (http://openlayers.org/) there is a link to the >> latest release (http://www.openlayers.org/api/OpenLayers.js) which is the >> 2.5 release. At the top of the same page it has a link titled "Class >> Documentation" which leads to >> "http://dev.openlayers.org/apidocs/files/OpenLayers-js.html". >> >> It is clear to me now that the class documentation is not the 2.5 API >> documentation, because I continue to get errors when I use some of the >> properties/methods listed in the API when using the 2.5 JS file. This is >> extremely frustrating because now I do not know what my API options are. >> >> Is there a 2.5 API documentation page somewhere? >> > > http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers > -js.html > > Regards, International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From crschmidt at metacarta.com Tue Apr 8 07:37:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs????? In-Reply-To: References: Message-ID: <20080408113720.GB307@metacarta.com> On Tue, Apr 08, 2008 at 11:53:47AM +0200, Barend Kobben wrote: > PLEASE guys, can you please indicate the version clearly this on the actual > pages, or at very least clearly in the URL. I have been falling into the > same trap as I am sure have many many others. Please rememeber not everyone > of your users is an on-the-edge-latest-stuff developer, we just want to > build real life apps that work and for which we can find information that as > much as possible is actually useful. > > I think OL is one of the best things coming out of the FOSS community, but > you make it quite hard for beginners to get on board... Okay, so what should we do? What would be more helpful to you? My standard assumption is that anyone using OpenLayers seriously is going to download the code. With the code ships a full set of documentation in the 'doc' directory. If you read those, they are teh docs for the version you downloaded. Apparently this isn't the case. Note that before a couple months ago, we didn't *have* versioned docs: this is an improvement in our process, which is constantly evolving. Although I understand that you are frustrated, there is only so much developer time that can be invested into things like this without negatively impacting active development of the project: doubly so because, at the moment, I'm one of two people with access to change things on the server. Direction on exactly what you think would be more useful than the current situation would be helpful: What text you would change, what link you would change, etc. This is much more helpful than claiming "You must do better!": to be honest, a fair amount, if not all, of the code for the website is in svn, so if you have a problem that you think you can change, the answer is the same as always: "Patches welcome." Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Apr 8 07:39:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] 2.6 problem with vectors in IE In-Reply-To: References: Message-ID: <20080408113944.GC307@metacarta.com> On Tue, Apr 08, 2008 at 05:59:47PM +1000, bradleyspencer wrote: > List, > > I have been using 2.6 because of a new feature I wanted. However, I have > found that in IE when creating vectors (i.e. drawing of the edges of a > mouse-Shift selection box in my case) they are always drawn in the top left > corner of the map Div. Pretty sure this is #1477, which is fixed in trunk (and will soon be released in RC2): can you try pointing to http://dev.openlayers.org/nightly/OpenLayers.js and see if it's fixed? Regards, -- Christopher Schmidt MetaCarta From peteralen at earthlink.net Tue Apr 8 08:54:10 2008 From: peteralen at earthlink.net (Peter Len) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? Message-ID: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net> Paul, Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use? Thanks for your insight - Peter -----Original Message----- >From: Paul Spencer >Sent: Apr 7, 2008 9:39 PM >To: plen >Cc: users@openlayers.org >Subject: Re: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? > >I would imagine that you can use something like: > >for (var i=0; i var layer = map.layers[i]; > //do something with the layer? >} > >Cheers > >Paul > >PS Firebug is a great extension for firefox that allows you to inspect >live javascript objects like the map object and find what you need. > >On 7-Apr-08, at 9:28 PM, plen wrote: >> >> Hello, >> >> I am using OpenLayers 2.5. Our situation is that we are getting a >> handle to >> the map after someone else has loaded some WMS map layers. So, by >> the time >> I can do anything with the OpenLayers map, another group has added >> 10 or 11 >> map layers through calls like: >> >> var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", >> "http://labs.metacarta.com/wms/vmap0?", {layers: >> 'basic'}, >> options); >> >> I want to get a handle to a particular layer and I think I have to >> use the >> OpenLayers API to get the layer. For example, the 2.5 API has a >> map.getLayer([layer_id]); and then a >> map.setBaseLayer(OpenLayers.Layer); >> >> My question is that you have to have the layer ID as the argument >> for the >> getLayer() function. Since I did not load any of those layers, I >> don't know >> how I would get the ID for the layer I am interested in. There is no >> generic function which returns an array of all the layers to which I >> could >> just cycle through and check each layers name, for example. Version >> 2.6 has >> more functions to obtain layer data but we must use 2.5 for the time >> being. >> >> Any thoughts how I can programmatically go through the layers? >> >> Thanks - Peter >> >> -- >> View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.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 simone.gadenz at jrc.it Tue Apr 8 09:09:34 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication Message-ID: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it> Hi all, trying to access to a page requiring authentication using the OpenLayers.loadURL returns an error saying "unhandled request returns ok". The page works perfectly if opened through the browser but not using the OL requests. Ideas? Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/ec97308b/attachment.html From crschmidt at metacarta.com Tue Apr 8 09:19:26 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? In-Reply-To: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net> References: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net> Message-ID: <20080408131925.GA1475@metacarta.com> On Tue, Apr 08, 2008 at 08:54:10AM -0400, Peter Len wrote: > Paul, > > Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use? Peter, In general, we take a very conservative position as to what is an API property vs. what is not an API Property. The reason for this is that in general, we have no specific ideas on how we might need to change the code in the future to support a particular use case. As an example: In OpenLayers 2.5, we had controls which had multiple '.fooHandler' properties. Things like 'zoomWheelHandler', etc. In 2.6, in order to protect ourselves against memory leaks, we moved these handlers into a '.handlers' object, with multiple keys ('foo', 'bar', 'baz'), so that they could be automatically destroyed by the base control class, thus ensuring that their DOM elements were properly decoupled from the Javascript. If we had made the .fooHandler property an API property, we wouldn't have been able to make this change, and would have had to make a much more significant change which was more fragile. This is the case despite the fact that using handlers as an API property is absolutely useful -- I use it in some of my own applications. The lack of something being an API property does not mean "Absolutely do not use it." It means "This may change in a future release of OpenLayers: you should use it with caution." For that reason, we include a full set of documentation of the *other* properties on objects: http://dev.openlayers.org/releases/OpenLayers-2.5/doc/devdocs/files/OpenLayers/Map-js.html#OpenLayers.Map.layers , in this particular case. If you are not comfortable with the fact that something is *not* an API property, then the right thing to do is to make a proposal to the dev list that it be made an API property. In the case of map.layers, I have no problem making it an API property upon being asked: the biggest reason we don't make things API properties is so that people *will* ask, and we'll know what they're doing with it. By doing this, for example, we were able to determine that what people actually typically want is not direct access to the layers object itself, but instead the ability to, for example, fetch a list of layers by name. So OpenLayers 2.6 -- while keeping map.layers out of the API -- adds an OpenLayers.Map.getLayersBy() function, which allows for you to get a layer by any property it has: for example: map.getLayersBy("name", "My WMS Layer"); Additionally, since getLayersByName seems a common use case, we have a wrapper: map.getLayersByName("My WMS Layer"); Now, if we find out in the future we need to split layers into .baseLayers and .overlayLayers for some reason, we can do so -- and we haven't broken the API. Additionally, we've added functionality which is common to more than one application, and I believe we've met most of the needs that an application would have to loop through the layers property, without exposing ourselves to possible holes in backwards compatibility. This conservatism has served us well through many releases, and although I understand that it may make life slightly more difficult, we do our best to meet both sets of needs: those who need a very stable API between versions can use the API properties, those who are willing to take a bit more risk and do testing before upgrades to ensure their application still works can do so, and the developers can make the explicit decision to include things in the API as they become neccesary, rather than simply by guessing what makes sense ahead of time. Hopefully this helps to explain our policy such that it is reasonably understandable without causing too much difficulty. Best Regards, -- Christopher Schmidt MetaCarta From bluecarto at gmail.com Tue Apr 8 09:29:42 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] geometry.getLength() returns what format In-Reply-To: <16547959.post@talk.nabble.com> References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com> <20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com> <16547959.post@talk.nabble.com> Message-ID: The reason why you were advised not to use this code in a production environnement is probably because it comes from a sandbox. As you probably already know, sandboxes are there to let developers play with OpenLayers code and new features. That said, the considered code may still need work, or may be based on an old version of OpenLayers. It will therefore be somewhat difficult to upgrade to a new OpenLayers version (2.6 when it will be out for example) when you'll need to. I think that there's no other constraints. And you're free to use this code either way. You just need to be aware of what precautions you'll have to follow. For this particular feature (measuring tools), it would have been easier if they were provided as an OpenLayers addin. But I'm pretty sure that addins came after this code was initially written. Regards, Pierre On Tue, Apr 8, 2008 at 8:28 AM, Pedro Simonetti wrote: > > I've mistyped the question. What I supposed to ask is: > > What's the problem in using this IN a production environment? Does anybody > > has another better solution to point me out? > > > > Pedro Simonetti wrote: > > > > Dear Developers, > > > > I'm considering using the following code in an production environment, but > > I read in this thread, that this shouldn't be used in production > > environments, because isn't stable enought. > > > > I've researched about measure tools, and I saw many differents attempts of > > implementations, but this seems to be the most up-to-date one, as far as I > > can see. > > > > What's the problem in using this is a production environment? Does anybody > > has another better solution to point me out? > > > > regards, > > > > Pedro Simonetti. > > > > PS: Congratulations for this amazing project! > > > > > > Christopher Schmidt-4 wrote: > >> > >> This measurement is in map units. If you want it in miles, you're going > >> to want to look at: > >> > >> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html > >> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js > >> > > > > -- > View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16547959.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 crschmidt at metacarta.com Tue Apr 8 09:37:37 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication In-Reply-To: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it> References: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it> Message-ID: <20080408133737.GC1475@metacarta.com> On Tue, Apr 08, 2008 at 03:09:34PM +0200, Simone Gadenz wrote: > Hi all, > > > > trying to access to a page requiring authentication using the > OpenLayers.loadURL returns an error saying "unhandled request returns ok". > The page works perfectly if opened through the browser but not using the OL > requests. Ideas? Are you using a ProxyHost? the proxy.cgi that OpenLayers ships with doesn't do anything smart with auth. Regards, -- Christopher Schmidt MetaCarta From gerald.quintana at gmail.com Tue Apr 8 09:50:00 2008 From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] TMS Layer origin and bounding box In-Reply-To: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com> References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com> Message-ID: <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com> The gdal2tiles.py tools generates a sample openlayers.html which works perfectly with the script http://www.openlayers.org/api/OpenLayers.js. As soon as I replace it by the 2.6rc1 release, I get an error "this.projection.getUnits is not a function" in the setMap function of the Layer class. I think it comes from the way maxExtent and projection options are initialized in the example: var options = { controls: [], maxExtent: new OpenLayers.Bounds(0, 0, 2770, 2270), maxResolution: 16, numZoomLevels: 5, units: 'pixels', projection: "" }; map = new OpenLayers.Map("map", options); map.addControl(new OpenLayers.Control.PanZoomBar()); map.addControl(new OpenLayers.Control.MouseDefaults()); map.addControl(new OpenLayers.Control.KeyboardDefaults()); // OpenLayers 2.5 TMS driver layer = new OpenLayers.Layer.TMS( "TMS", "", {layername: '.', serviceVersion: '.', type:'png'} ); map.addLayer(layer); map.zoomTo(3); Did someone used this gdal2tiles.py tool? How can I mix this TMS+strange SRS with a classical WMS layer+EPSG:4326? Thanks for your help, G?rald 2008/4/7, G?rald Quintana : > Hi all, > > I have generated TMS pictures with the gdal2tiles.py tool from a > PNG+WLD. I got a tilemapresource.xml and PNG named x/y/z.png with > x<5,y<10 and z<10. I placed them on my webserver and added a TMS layer > to my OL map. > > But I can see with FireBug that OL is looking for pictures like > 0/1258/973.png that I don't have. I guess that OL doesn't read the > tilemapresource.xml and I have to tell him the origin and bounding box > of the tiles. I tried to set the maxExtent and tilesOrigin attributes > of the TMS layer, but it doesn't help. > > Could you tell me what I should do? I presume it's obvious. > Thanks, > Gerald > From crschmidt at metacarta.com Tue Apr 8 09:56:16 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] TMS Layer origin and bounding box In-Reply-To: <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com> References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com> <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com> Message-ID: <20080408135616.GA2396@metacarta.com> On Tue, Apr 08, 2008 at 03:50:00PM +0200, G?rald Quintana wrote: > The gdal2tiles.py tools generates a sample openlayers.html which works > perfectly with the script http://www.openlayers.org/api/OpenLayers.js. > As soon as I replace it by the 2.6rc1 release, I get an error > "this.projection.getUnits is not a function" in the setMap function of > the Layer class. Oof. That's no good. > I think it comes from the way maxExtent and projection options are > initialized in the example: > var options = { > controls: [], > maxExtent: new OpenLayers.Bounds(0, 0, 2770, 2270), > maxResolution: 16, > numZoomLevels: 5, > units: 'pixels', > projection: "" > }; Yeah, if you drop "projection":"" from that, it should work okay. > map = new OpenLayers.Map("map", options); > map.addControl(new OpenLayers.Control.PanZoomBar()); > map.addControl(new OpenLayers.Control.MouseDefaults()); > map.addControl(new OpenLayers.Control.KeyboardDefaults()); > // OpenLayers 2.5 TMS driver > layer = new OpenLayers.Layer.TMS( "TMS", > "", {layername: '.', serviceVersion: '.', type:'png'} ); > map.addLayer(layer); > map.zoomTo(3); > > Did someone used this gdal2tiles.py tool? > How can I mix this TMS+strange SRS with a classical WMS layer+EPSG:4326? Is your original image a worldwide map in EPSG:4326? If not, it's likely that the answer is "You can't.", because OpenLayers doesn't support TMS with different maxExtent and so on (though there is a Summer of Code proposal to improve this.) Regards, -- Christopher Schmidt MetaCarta From simone.gadenz at jrc.it Tue Apr 8 10:07:39 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication In-Reply-To: <20080408133737.GC1475@metacarta.com> References: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it> <20080408133737.GC1475@metacarta.com> Message-ID: <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it> No, the page is on the same server but protected using windows authentication system. Simone -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: marted? 8 aprile 2008 15.38 To: Simone Gadenz Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication On Tue, Apr 08, 2008 at 03:09:34PM +0200, Simone Gadenz wrote: > Hi all, > > > > trying to access to a page requiring authentication using the > OpenLayers.loadURL returns an error saying "unhandled request returns ok". > The page works perfectly if opened through the browser but not using the OL > requests. Ideas? Are you using a ProxyHost? the proxy.cgi that OpenLayers ships with doesn't do anything smart with auth. Regards, -- Christopher Schmidt MetaCarta From gerald.quintana at gmail.com Tue Apr 8 10:14:52 2008 From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] TMS Layer origin and bounding box In-Reply-To: <20080408135616.GA2396@metacarta.com> References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com> <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com> <20080408135616.GA2396@metacarta.com> Message-ID: <4ca668230804080714h613e8e27r22b4d39bd2ef3746@mail.gmail.com> 2008/4/8, Christopher Schmidt : > Yeah, if you drop "projection":"" from that, it should work okay. > Yes it's better. > Is your original image a worldwide map in EPSG:4326? > EPSG:4326: yes, worldwide: no :'( > If not, it's likely that the answer is "You can't.", > because OpenLayers doesn't support TMS > with different maxExtent and so on (though there is a Summer of Code > proposal to improve this.) > Thanks for the explanation, I was looking for a solution to improve performance. I'll have to keep my WMS layer and search for improvements on the GeoServer side. Gerald From crschmidt at metacarta.com Tue Apr 8 10:23:16 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication In-Reply-To: <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it> References: <20080408133737.GC1475@metacarta.com> <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it> Message-ID: <20080408142315.GA2473@metacarta.com> On Tue, Apr 08, 2008 at 04:07:39PM +0200, Simone Gadenz wrote: > No, the page is on the same server but protected using windows > authentication system. Try looking at the requests in the Firebug console, and see what is coming back in the headers, etc. Regards, -- Christopher Schmidt MetaCarta From simone.gadenz at jrc.it Tue Apr 8 11:01:12 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication In-Reply-To: <20080408142315.GA2473@metacarta.com> References: <20080408133737.GC1475@metacarta.com> <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it> <20080408142315.GA2473@metacarta.com> Message-ID: <012f01c89989$63fb9320$2bf2b960$@gadenz@jrc.it> Done! Thanks!! Using firebug I saw the page was loading but I had done an error passing the name of the functions for success and failure management. Everything works fine now!? Cheers Simone -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Christopher Schmidt Sent: marted? 8 aprile 2008 16.23 To: users@openlayers.org Subject: Re: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page to be loaded requires authentication On Tue, Apr 08, 2008 at 04:07:39PM +0200, Simone Gadenz wrote: > No, the page is on the same server but protected using windows > authentication system. Try looking at the requests in the Firebug console, and see what is coming back in the headers, etc. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From peteralen at earthlink.net Tue Apr 8 11:06:03 2008 From: peteralen at earthlink.net (Peter Len) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? Message-ID: <33312417.1207667163718.JavaMail.root@elwamui-huard.atl.sa.earthlink.net> Christopher, Thanks for info. I definitely see where you are coming from and now that you have supplied me with a link to some docs that list non-API items, I am good. At least now I can see what other things are available. Thanks - Peter -----Original Message----- >From: Christopher Schmidt >Sent: Apr 8, 2008 9:19 AM >To: Peter Len >Cc: Paul Spencer , users@openlayers.org >Subject: Re: [OpenLayers-Users] How to obtain reference to map layer in 2.5???? > >On Tue, Apr 08, 2008 at 08:54:10AM -0400, Peter Len wrote: >> Paul, >> >> Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use? > >Peter, > >In general, we take a very conservative position as to what is an API >property vs. what is not an API Property. The reason for this is that in >general, we have no specific ideas on how we might need to change the >code in the future to support a particular use case. > >As an example: > >In OpenLayers 2.5, we had controls which had multiple '.fooHandler' >properties. Things like 'zoomWheelHandler', etc. In 2.6, in order to >protect ourselves against memory leaks, we moved these handlers into a >'.handlers' object, with multiple keys ('foo', 'bar', 'baz'), so that >they could be automatically destroyed by the base control class, thus >ensuring that their DOM elements were properly decoupled from the >Javascript. > >If we had made the .fooHandler property an API property, we wouldn't >have been able to make this change, and would have had to make a much >more significant change which was more fragile. > >This is the case despite the fact that using handlers as an API property >is absolutely useful -- I use it in some of my own applications. > >The lack of something being an API property does not mean "Absolutely do >not use it." It means "This may change in a future release of >OpenLayers: you should use it with caution." > >For that reason, we include a full set of documentation of the *other* >properties on objects: >http://dev.openlayers.org/releases/OpenLayers-2.5/doc/devdocs/files/OpenLayers/Map-js.html#OpenLayers.Map.layers >, in this particular case. > >If you are not comfortable with the fact that something is *not* an API >property, then the right thing to do is to make a proposal to the dev >list that it be made an API property. > >In the case of map.layers, I have no problem making it an API property >upon being asked: the biggest reason we don't make things API properties >is so that people *will* ask, and we'll know what they're doing with it. > >By doing this, for example, we were able to determine that what people >actually typically want is not direct access to the layers object >itself, but instead the ability to, for example, fetch a list of layers >by name. So OpenLayers 2.6 -- while keeping map.layers out of the API -- >adds an OpenLayers.Map.getLayersBy() function, which allows for you to >get a layer by any property it has: for example: > > map.getLayersBy("name", "My WMS Layer"); > >Additionally, since getLayersByName seems a common use case, we have a >wrapper: > > map.getLayersByName("My WMS Layer"); > >Now, if we find out in the future we need to split layers into >.baseLayers and .overlayLayers for some reason, we can do so -- and we >haven't broken the API. Additionally, we've added functionality which is >common to more than one application, and I believe we've met most of the >needs that an application would have to loop through the layers >property, without exposing ourselves to possible holes in backwards >compatibility. > >This conservatism has served us well through many releases, and although >I understand that it may make life slightly more difficult, we do our >best to meet both sets of needs: those who need a very stable API >between versions can use the API properties, those who are willing to >take a bit more risk and do testing before upgrades to ensure their >application still works can do so, and the developers can make the >explicit decision to include things in the API as they become neccesary, >rather than simply by guessing what makes sense ahead of time. > >Hopefully this helps to explain our policy such that it is reasonably >understandable without causing too much difficulty. > >Best Regards, >-- >Christopher Schmidt >MetaCarta From alexandre.gacon at gmail.com Tue Apr 8 11:13:23 2008 From: alexandre.gacon at gmail.com (Alexandre Gacon) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Javascript problem Message-ID: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/dce246ff/google.html From simone.gadenz at jrc.it Tue Apr 8 11:31:58 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Is onSelectFeature works only for the top layer? Message-ID: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it> Hi all again! I am experiencing some problems using multiple layer having attached popup to the onSelectFeature method. In fact I have a map showing georss feeds on top of a google layer and I attached a popup to the georss elements using the onSelectFeature method. Then I create the same structure for another layer that is supposed to be the container for markers returned by a dynamyc a geocoding process. In other words I ask the google geocoder to locate an address and then I plot a marker into that layer in the returned position. I have two problems: - after the geocoder provies a couple of coordinate the setCenter function is invoked to recenter the map and a new feature is added to the geocoded points container but the other georss layer does not reposition - clicking on the different features only the ones in the top layer open a popup. To access the features in the layer below the upper lavel has to be switched off. Anybody is aving the same? Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/be477417/attachment.html From bluecarto at gmail.com Tue Apr 8 11:32:57 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Javascript problem In-Reply-To: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> Message-ID: I took a quick look at your problem by trying to load the ViaMichelin API beside OpenLayers (in lite.html example). An error is raised in Events.js where OpenLayers tries to call push() on an array. But it seems that the ViaMichelin API modifies/extends the Array prototype to provide a new "ci" function (bad! bad!). This is a quick investigation and I have no workaround at the moment. Regards, Pierre On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon wrote: > Hello, > > I am trying to develop a new Layer based on the service provided by > ViaMichelin. My problem is the following : as soon as I include the > reference to the JavaScript API of ViaMichelin (accessible via ), OpenLayers does > not work anymore, even if I do not use my ViaMichelin Layer. > > I took the google example and just added the script line : the google > example do not work anymore. > > If anyone has an idea, it would be great. > > Alexandre > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From bluecarto at gmail.com Tue Apr 8 11:54:24 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Javascript problem In-Reply-To: References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> Message-ID: Can you try the patch attached to the ticket I just opened for this issue ? http://trac.openlayers.org/ticket/1502 Regards, Pierre On Tue, Apr 8, 2008 at 5:32 PM, Pierre GIRAUD wrote: > I took a quick look at your problem by trying to load the ViaMichelin > API beside OpenLayers (in lite.html example). > An error is raised in Events.js where OpenLayers tries to call push() > on an array. > > But it seems that the ViaMichelin API modifies/extends the Array > prototype to provide a new "ci" function (bad! bad!). > > This is a quick investigation and I have no workaround at the moment. > > Regards, > Pierre > > > > > On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon > wrote: > > Hello, > > > > I am trying to develop a new Layer based on the service provided by > > ViaMichelin. My problem is the following : as soon as I include the > > reference to the JavaScript API of ViaMichelin (accessible via ), OpenLayers does > > not work anymore, even if I do not use my ViaMichelin Layer. > > > > I took the google example and just added the script line : the google > > example do not work anymore. > > > > If anyone has an idea, it would be great. > > > > Alexandre > > > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > From crschmidt at metacarta.com Tue Apr 8 12:15:33 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Is onSelectFeature works only for the top layer? In-Reply-To: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it> References: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it> Message-ID: <20080408161533.GA27582@metacarta.com> On Tue, Apr 08, 2008 at 05:31:58PM +0200, Simone Gadenz wrote: > - clicking on the different features only the ones in the top layer open a > popup. To access the features in the layer below the upper lavel has to be > switched off. This is a known behavior. There is no simple workaround at this time. (SelectFeature only works for the top layer.) Regards, -- Christopher Schmidt MetaCarta From paulsmith at pobox.com Tue Apr 8 12:37:58 2008 From: paulsmith at pobox.com (Paul Smith) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] ALA article Message-ID: <8c58fcec0804080937p63841f8cr1b48b60978e9c6b2@mail.gmail.com> I've written an article for A List Apart about rolling your own web map stack, featuring OpenLayers prominently: http://www.alistapart.com/articles/takecontrolofyourmaps Love to hear your feedback. Cheers, Paul. -- Paul Smith http://www.pauladamsmith.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/f11179b7/attachment.html From woklist at kyngchaos.com Tue Apr 8 13:29:32 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs????? In-Reply-To: <20080408113720.GB307@metacarta.com> References: <20080408113720.GB307@metacarta.com> Message-ID: Just getting started on OL myself, and I'm also a little confused on documentation... On Apr 8, 2008, at 6:37 AM, Christopher Schmidt wrote: > > Okay, so what should we do? What would be more helpful to you? > > My standard assumption is that anyone using OpenLayers seriously is > going to download the code. With the code ships a full set of > documentation in the 'doc' directory. If you read those, they are teh > docs for the version you downloaded. > While the 2.5 download includes the docs, the 2.6rc1 download does not. > Apparently this isn't the case. > If there is a documentation link on the OL site, people will use it, and very possibly then ignore downloaded docs. I assumed also that the docs link on the site was for v2.5, though I didn't run into any problems, maybe because I'm doing simple stuff so far. There is also the bonus online of the search feature. At least for the unversioned link (v2.5 link doesn't have the search). > Note that before a couple months ago, we didn't *have* versioned docs: > this is an improvement in our process, which is constantly evolving. > Although I understand that you are frustrated, there is only so much > developer time that can be invested into things like this without > negatively impacting active development of the project: doubly so > because, at the moment, I'm one of two people with access to change > things on the server. As Barend says, the problem I see with any of the docs is that they don't mention what version they are for. Fine if you look at the downloaded docs, but not when viewed on the OL site. I think that's fairly explicit about what needs changing: add visible version text to the docs, and shouldn't take much time to do. How about in the upper- left title text, which appears on all pages: " OpenLayers JavaScript Mapping Library version: [full version goes here] " Note: I couldn't find a direct link on the OL site to the v2.5 docs you mentioned, or any other "versioned" docs. ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From pedrosimonetti at gmail.com Tue Apr 8 13:39:49 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] geometry.getLength() returns what format In-Reply-To: References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com> <20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com> <16547959.post@talk.nabble.com> Message-ID: <16569053.post@talk.nabble.com> Pierre GIRAUD wrote: > > The reason why you were advised not to use this code in a production > environnement is probably because it comes from a sandbox. > As you probably already know, sandboxes are there to let developers > play with OpenLayers code and new features. > > That said, the considered code may still need work, or may be based on > an old version of OpenLayers. It will therefore be somewhat difficult > to upgrade to a new OpenLayers version (2.6 when it will be out for > example) when you'll need to. > Thanks Pierre, Actually, I'm using it in 2.6 RC1, and it's working well. And since this feature is provided by a single external js file (Openlayers/Control/Measure.js), I think that will be easy to put this as an openlayers addin. There's no need to change other openlayers files, except the "openlayers.js", where you need to add a single line to make this feature loaded, like: var jsfiles = new Array( ... "OpenLayers/Control/Measure.js", ... The only problem I found is that the measure tool is kinda slow in IE, but I think this is a problem of IE rendering vectors. But, I'm fine, I don't see this as a real problem. I saw many people asking about this feature here at the forum, so I think that will be great see this tool as an addin of the final 2.6. regards, Pedro Simonetti. -- View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16569053.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sindile.bidla at gmail.com Tue Apr 8 17:46:54 2008 From: sindile.bidla at gmail.com (Intengu Technologies) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OSS application to serve file based images Message-ID: Hello I understand that most experts are saying it is far better not to load images in a database but rather to serve them from a file based system. There are two commercial products that I know of ER Mapper - Image Web Server and ArcGIS Image Server what OSS products provide comparable functionalities. If these are available are there any bench mark studies done and also I would like to integrate such products with ArcGIS Server. -- Sindile Bidla -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/7f01b7e6/attachment.html From brad at cubewerx.com.au Tue Apr 8 18:46:34 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] 2.6 problem with vectors in IE In-Reply-To: <20080408113944.GC307@metacarta.com> Message-ID: Christopher, Yes this fixed the problem - you guys always seem to be one step ahead! Thanks for that. Should I download the latest version of 2.6 to get this fix? Cheers, Brad Spencer -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Tuesday, 8 April 2008 9:40 PM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] 2.6 problem with vectors in IE On Tue, Apr 08, 2008 at 05:59:47PM +1000, bradleyspencer wrote: > List, > > I have been using 2.6 because of a new feature I wanted. However, I have > found that in IE when creating vectors (i.e. drawing of the edges of a > mouse-Shift selection box in my case) they are always drawn in the top left > corner of the map Div. Pretty sure this is #1477, which is fixed in trunk (and will soon be released in RC2): can you try pointing to http://dev.openlayers.org/nightly/OpenLayers.js and see if it's fixed? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Apr 8 18:48:59 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] 2.6 problem with vectors in IE In-Reply-To: References: <20080408113944.GC307@metacarta.com> Message-ID: <20080408224858.GA7088@metacarta.com> On Wed, Apr 09, 2008 at 08:46:34AM +1000, bradleyspencer wrote: > Christopher, > > Yes this fixed the problem - you guys always seem to be one step ahead! > Thanks for that. > > Should I download the latest version of 2.6 to get this fix? No RC2 yet, subscribe to the dev list to find out when the next one is. Regards, -- Christopher Schmidt MetaCarta From pedrosimonetti at gmail.com Tue Apr 8 18:52:19 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Strange behaviour after panning Message-ID: <16575710.post@talk.nabble.com> Dear developers, I'm trying to develop a query feature in my project, but I'm getting a strange behaviour. I'm using 2 kaMap layers, one raster satellite image, and one vector shape file. Please visit: http://189.52.176.118:8080/teste/?zoom=5&lat=7756661.87151&lon=364887.48481&layers=BT Then click in the map inside the polygon named "Jardim da Penha". Note that the query will result the right response, showing the text "Jardim da Penha" in the lower right corner of the screen. But, then, click and drag, moving the mouse to the right. And then click on another polygon, for example, the named "Itarare". The result will be wrong. Here I got "Jardim da Penha", but clicking in other areas you will got different results. It seems when you pan the map, it looses the correct coordinates. It's like the "map.getLonLatFromLayerPx" still thinking it is in the same coordinates that before panning. What I'm doing wrong?? I have limited english skills, so if my message isn't clear enought, please ask me about specific details. I'm using the 2.6 RC1. I'm making the query through PHP mapscript. NOTE: The images i'm using are very big, and my development server is kinda slow. So, if the images don't load properly, please press F5, and they should appear. regards, Pedro. -- View this message in context: http://www.nabble.com/Strange-behaviour-after-panning-tp16575710p16575710.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From john.frank at metacarta.com Tue Apr 8 20:47:03 2008 From: john.frank at metacarta.com (John R. Frank) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers Message-ID: Has anyone seen a digital elevation model viewer (with data) freely available on the Web? Perhaps using OpenLayers? John From bwoodall at bwoodall.org Tue Apr 8 20:53:11 2008 From: bwoodall at bwoodall.org (bwoodall) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers In-Reply-To: References: Message-ID: <1207702391.11412.60.camel@wardrobe.dhs.org> Hi John, I would imagine that you could use GDAL with => OL ....Bill, On Tue, 2008-04-08 at 20:47 -0400, John R. Frank wrote: > Has anyone seen a digital elevation model viewer (with data) freely > available on the Web? Perhaps using OpenLayers? > > John > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From brad at cubewerx.com.au Tue Apr 8 21:21:33 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers In-Reply-To: Message-ID: John, If you just want a hillshading effect, GoogleMaps has an optional map called 'type: G_PHYSICAL_MAP' - I'm not sure how extensive this is across the globe. This looks good in a hilly area but is not very useful as a DEM with geometry. Hope that helps. Cheers, Brad Spencer -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org]On Behalf Of John R. Frank Sent: Wednesday, 9 April 2008 10:47 AM To: users@openlayers.org Subject: [OpenLayers-Users] DEM browsers in OpenLayers Has anyone seen a digital elevation model viewer (with data) freely available on the Web? Perhaps using OpenLayers? John _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From pedrosimonetti at gmail.com Tue Apr 8 22:28:24 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Strange behaviour after panning In-Reply-To: <16575710.post@talk.nabble.com> References: <16575710.post@talk.nabble.com> Message-ID: <16578138.post@talk.nabble.com> After some investigations, I found how to fix it. I've changed the piece of the code where it calculates the coordinates, from: var lonlat = map.getLonLatFromLayerPx(evt.xy); To: var lonlat = map.getLonLatFromViewPortPx(evt.xy); Now it works fine. I'm just wondering, what's the difference of "getLonLatFromLayerPx", and "getLonLatFromViewPortPx"? I've looked at the docs but I still don't get it. At first glance, I thought that these methods were similars. my best regards, Pedro Simonetti. Pedro Simonetti wrote: > > Dear developers, > > I'm trying to develop a query feature in my project, but I'm getting a > strange behaviour. I'm using 2 kaMap layers, one raster satellite image, > and one vector shape file. > > Please visit: > > http://189.52.176.118:8080/teste/?zoom=5&lat=7756661.87151&lon=364887.48481&layers=BT > > Then click in the map inside the polygon named "Jardim da Penha". Note > that the query will result the right response, showing the text "Jardim da > Penha" in the lower right corner of the screen. > > But, then, click and drag, moving the mouse to the right. And then click > on another polygon, for example, the named "Itarare". The result will be > wrong. Here I got "Jardim da Penha", but clicking in other areas you will > got different results. > > It seems when you pan the map, it looses the correct coordinates. It's > like the "map.getLonLatFromLayerPx" still thinking it is in the same > coordinates that before panning. > > What I'm doing wrong?? > > I have limited english skills, so if my message isn't clear enought, > please ask me about specific details. > > I'm using the 2.6 RC1. I'm making the query through PHP mapscript. > > NOTE: The images i'm using are very big, and my development server is > kinda slow. So, if the images don't load properly, please press F5, and > they should appear. > > regards, > > Pedro. > -- View this message in context: http://www.nabble.com/Strange-behaviour-after-panning-tp16575710p16578138.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From linda.rawson at gmail.com Tue Apr 8 23:05:31 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Busy Cursor Message-ID: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com> I have two layers that when I switch between them the performance is so bad that there is a noticeable delay. How would I implement an hourglass cursor to indicate to the user that the application is working and then put the cursor back to normal when the layer is loaded. -- Linda Rawson From pedrosimonetti at gmail.com Tue Apr 8 23:21:11 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] OSS application to serve file based images In-Reply-To: References: Message-ID: <16578588.post@talk.nabble.com> Hey Sindile, I'm just wondering here, why not using the free Mapserver? regards, Pedro. intengu wrote: > > Hello > > I understand that most experts are saying it is far better not to load > images in a database but rather to serve them from a file based system. > There are two commercial products that I know of ER Mapper - Image Web > Server and ArcGIS Image Server what OSS products provide comparable > functionalities. If these are available are there any bench mark studies > done and also I would like to integrate such products with ArcGIS Server. > > -- > Sindile Bidla > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/OSS-application-to-serve-file-based-images-tp16574471p16578588.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From john.frank at metacarta.com Wed Apr 9 00:12:25 2008 From: john.frank at metacarta.com (John R. Frank) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers In-Reply-To: References: Message-ID: > Has anyone seen a digital elevation model viewer (with data) freely > available on the Web? Perhaps using OpenLayers? I'm looking for an already operating tool that exposes the actual elevation data -- maybe as a third dimension in the mouse coordinate control. Perhaps I should ask on geowanking. John From tara_athan at alt2is.com Wed Apr 9 03:09:56 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] [work] Busy Cursor In-Reply-To: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com> References: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com> Message-ID: <47FC6BC4.4070804@alt2is.com> I am also interested in the answer to this question. I have some users on dial-up so they have a delay for just about everything. I have used the basic DOM commands document.body.style.cursor = "wait"; document.body.style.cursor = "default"; for the initial map load, but don't know how to do this for a layer switch. Tara Linda Rawson wrote: > I have two layers that when I switch between them the performance is > so bad that there is a noticeable delay. How would I implement an > hourglass cursor to indicate to the user that the application is > working and then put the cursor back to normal when the layer is > loaded. > > From alexandre.gacon at gmail.com Wed Apr 9 03:12:29 2008 From: alexandre.gacon at gmail.com (Alexandre Gacon) Date: Wed Sep 1 17:16:13 2010 Subject: [OpenLayers-Users] Javascript problem In-Reply-To: References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> Message-ID: <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com> Hello Pierre, Your patch resolved my problem : now I can try to find why the pan is not well handled for my layer. Thank you ! Alexandre On Tue, Apr 8, 2008 at 5:54 PM, Pierre GIRAUD wrote: > Can you try the patch attached to the ticket I just opened for this issue > ? > http://trac.openlayers.org/ticket/1502 > > Regards, > Pierre > > On Tue, Apr 8, 2008 at 5:32 PM, Pierre GIRAUD wrote: > > I took a quick look at your problem by trying to load the ViaMichelin > > API beside OpenLayers (in lite.html example). > > An error is raised in Events.js where OpenLayers tries to call push() > > on an array. > > > > But it seems that the ViaMichelin API modifies/extends the Array > > prototype to provide a new "ci" function (bad! bad!). > > > > This is a quick investigation and I have no workaround at the moment. > > > > Regards, > > Pierre > > > > > > > > > > On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon > > wrote: > > > Hello, > > > > > > I am trying to develop a new Layer based on the service provided by > > > ViaMichelin. My problem is the following : as soon as I include the > > > reference to the JavaScript API of ViaMichelin (accessible via > ), > OpenLayers does > > > not work anymore, even if I do not use my ViaMichelin Layer. > > > > > > I took the google example and just added the script line : the google > > > example do not work anymore. > > > > > > If anyone has an idea, it would be great. > > > > > > Alexandre > > > > > > > > > > > > _______________________________________________ > > > 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/20080409/834cbed1/attachment.html From bartvde at osgis.nl Wed Apr 9 03:32:58 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Busy Cursor Message-ID: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11> Hi Linda, you could have a look at the LoadingPanel Control. Something similar could be done to change the map cursor. See: http://trac.openlayers.org/ticket/102 and: http://trac.openlayers.org/browser/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js In maximizeControl you could set the busy mouse cursor on the map div, and in minimizeControl change the cursor back. example: http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Linda Rawson Naar: OpenLayers Users Onderwerp: [OpenLayers-Users] Busy Cursor Datum: 09/04/08 01:05 > I have two layers that when I switch between them the performance is > so bad that there is a noticeable delay. How would I implement an > hourglass cursor to indicate to the user that the application is > working and then put the cursor back to normal when the layer is > loaded. > > -- > Linda Rawson > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From tara_athan at alt2is.com Wed Apr 9 03:35:37 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] OpenLayers Documentation mailing list? In-Reply-To: <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com> References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com> Message-ID: <47FC71C9.304@alt2is.com> Where does the discussion for the OpenLayers Documentation Team occur? I don't see a Documentation Mailing List on the website. Tara PS. I have changed the links on the wiki documentation page to point towards the docs (api and dev) for 2.5. If the home page documentation links (two of them) are changed to point to this wiki page, then this would be the only one that needs to be updated when a new release comes out, and then all neophyte OpenLayers users would be pointed to the stable docs, even if they don't download the code. Sure wish I had known about these links during the last year while I tried to understand OpenLayers! From bluecarto at gmail.com Wed Apr 9 03:44:27 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] geometry.getLength() returns what format In-Reply-To: <16569053.post@talk.nabble.com> References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com> <20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com> <16547959.post@talk.nabble.com> <16569053.post@talk.nabble.com> Message-ID: > > Actually, I'm using it in 2.6 RC1, and it's working well. And since this > feature is provided by a single external js file > (Openlayers/Control/Measure.js), I think that will be easy to put this as an > openlayers addin. There's no need to change other openlayers files, except > the "openlayers.js", where you need to add a single line to make this > feature loaded, like: > > var jsfiles = new Array( > ... > "OpenLayers/Control/Measure.js", > ... > Actually, you don't really need to add a new line in your OpenLayers.js file. Adding a new link to your Measure.js would do the job. That way you don't modified anything in OpenLayers. Regards, Pierre From simone.gadenz at jrc.it Wed Apr 9 03:45:16 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Is onSelectFeature works only for the top layer? In-Reply-To: <20080408161533.GA27582@metacarta.com> References: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it> <20080408161533.GA27582@metacarta.com> Message-ID: <017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it> Thanks. Is this the same reason causing the lower georss layer to not reposition the markers when the setCenter method is invoked? -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: marted? 8 aprile 2008 18.16 To: Simone Gadenz Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Is onSelectFeature works only for the top layer? On Tue, Apr 08, 2008 at 05:31:58PM +0200, Simone Gadenz wrote: > - clicking on the different features only the ones in the top layer open a > popup. To access the features in the layer below the upper lavel has to be > switched off. This is a known behavior. There is no simple workaround at this time. (SelectFeature only works for the top layer.) Regards, -- Christopher Schmidt MetaCarta From penyaskito at gmail.com Wed Apr 9 04:04:42 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] OpenLayers Documentation mailing list? In-Reply-To: <47FC71C9.304@alt2is.com> References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com> <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com> <47FC71C9.304@alt2is.com> Message-ID: Hi Tara, On Wed, Apr 9, 2008 at 9:35 AM, Tara Athan wrote: > Where does the discussion for the OpenLayers Documentation Team occur? I > don't see a Documentation Mailing List on the website. Discussion about documentation takes place on any of the channels that we have, dev or users mailing list and/or the #openlayers IRC channel at Freenode. Because docs are written mainly by devs, it hasn't been necessary a specific mailing list for documentators. I'm sure that if it's needed, it will be done, but I don't feel that. > PS. I have changed the links on the wiki documentation page to point > towards the docs (api and dev) for 2.5. If the home page documentation > links (two of them) are changed to point to this wiki page, then this > would be the only one that needs to be updated when a new release comes > out, and then all neophyte OpenLayers users would be pointed to the > stable docs, even if they don't download the code. Sure wish I had > known about these links during the last year while I tried to understand > OpenLayers! I modified it so it includes both now, the latest stable (2.5) and the trunk version. The problem now is that every time a release is done, we should change it. I hope we can improve this process soon. Thanks for your suggestions. -- Regards, Christian L?pez Esp?nola From jjeudy at gi-paris.com Wed Apr 9 04:12:55 2008 From: jjeudy at gi-paris.com (Julien JEUDY) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] [Feature style] Dashed border style Message-ID: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3> Dear all, I would like to modify the style of a feature to a dashed border style. I try the following code, but it doesn't work. Can you please help me to solve this problem? Var my_style = { strokeColor : , strokeWidth : 1, fillColor : < blue >, fillOpacity : 0.2, borderStyle : < dashed > } ... feature.style = my_style To complete my question: is it possible to have a filling lined rendering? Thanks, Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/a589fdac/attachment.html From bluecarto at gmail.com Wed Apr 9 05:14:58 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] [Feature style] Dashed border style In-Reply-To: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3> References: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3> Message-ID: Unfortunately, I'm pretty sure that this is something OpenLayers will never address. The main reason is that OpenLayers vector renderers rely on SVG for Firefox/Safari browsers and VML for InternetExplorer. I had a look into it a while ago, and, as far as I know, none of those browsers rendering engine support border styles (pattern). As for Firefox, patterns are supported by SVG but Firefox doesn't implement the patterns. http://developer-stage.mozilla.org/en/docs/SVG_in_Firefox Regards, Pierre On Wed, Apr 9, 2008 at 10:12 AM, Julien JEUDY wrote: > > > > > Dear all, > > > > I would like to modify the style of a feature to a dashed border style. I > try the following code, but it doesn't work. Can you please help me to solve > this problem? > > > > Var my_style = { > > strokeColor : ?blue ?, > > strokeWidth : 1, > > fillColor : ? blue ?, > > fillOpacity : 0.2, > > borderStyle : ? dashed ? > > } > > > > ? > > > > feature.style = my_style > > > > To complete my question: is it possible to have a filling lined rendering? > > > > Thanks, > > Julien > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From stefanzweig1881 at web.de Wed Apr 9 06:04:42 2008 From: stefanzweig1881 at web.de (Stefan Zweig) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] parallel loading of tiles from same url Message-ID: <563584839@web.de> hi list, i have the following problem: i want to use the openlayers to display 2 wms layers, one as a baselayer and another one as a (semitransparent) overlay. during testing i noticed that, if i use different wms urls to load the wms images there is no problem with parallel loading of the tiles. but if both wms layers come from the same wms url the api begins to load *all* tiles of the baselayer and only after it has finished with loading all of them it starts loading the tiles for the overlay, which makes loading the map slower. as i am not a too deep insider in the api code i am not sure where to adapt this. i appreciate any advices. thanks in advance, stefan _______________________________________________________________ Schon geh?rt? Der neue WEB.DE MultiMessenger kann`s mit allen: http://www.produkte.web.de/messenger/?did=3016 From bwoodall at bwoodall.org Wed Apr 9 06:50:56 2008 From: bwoodall at bwoodall.org (bwoodall) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers In-Reply-To: References: Message-ID: <1207738256.11412.70.camel@wardrobe.dhs.org> Well, I needed an excuse to play with the Control.Hover, which is the basis for http://wardrobe.dhs.org/jrf/index.html. The code is rather crude, but it works on Debian and FF (no performance features like multi-urls or TC so the server might be slow ). ....Bill, On Wed, 2008-04-09 at 00:12 -0400, John R. Frank wrote: > > Has anyone seen a digital elevation model viewer (with data) freely > > available on the Web? Perhaps using OpenLayers? > > I'm looking for an already operating tool that exposes the actual > elevation data -- maybe as a third dimension in the mouse coordinate > control. > > Perhaps I should ask on geowanking. From crschmidt at metacarta.com Wed Apr 9 07:00:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Is onSelectFeature works only for the top layer? In-Reply-To: <017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it> References: <20080408161533.GA27582@metacarta.com> <017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it> Message-ID: <20080409110023.GA21948@metacarta.com> On Wed, Apr 09, 2008 at 09:45:16AM +0200, Simone Gadenz wrote: > Thanks. > > Is this the same reason causing the lower georss layer to not reposition the > markers when the setCenter method is invoked? No. I actually have no idea why that would happen: It makes no sense to me. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 9 07:06:55 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behaviour after panning In-Reply-To: <16578138.post@talk.nabble.com> References: <16575710.post@talk.nabble.com> <16578138.post@talk.nabble.com> Message-ID: <20080409110655.GB21948@metacarta.com> On Tue, Apr 08, 2008 at 07:28:24PM -0700, Pedro Simonetti wrote: > > After some investigations, I found how to fix it. > > I've changed the piece of the code where it calculates the coordinates, > from: > > var lonlat = map.getLonLatFromLayerPx(evt.xy); > > To: > > var lonlat = map.getLonLatFromViewPortPx(evt.xy); > > Now it works fine. > > I'm just wondering, what's the difference of "getLonLatFromLayerPx", and > "getLonLatFromViewPortPx"? I've looked at the docs but I still don't get it. > At first glance, I thought that these methods were similars. The answer is actually: "THey're the same insofar as you shouldn't need to use either one of them" :) Both of these are really designed to be internal methods: I've just changed their definition from APIMethod to Method. The one you *shoul* be using is the more nicely named getLonLatFromPixel: this hides the fact that you have to worry about any of this stuff. In reality, "FromLayerPx" is designed to work in the pixels of the layer: the pixels of the layer are *not* shifted when you drag, but are instead kept the same until you zoom (only the map container is shifted when you drag). End result is that you'll be off until you zoom, if you use the FromLayerPx. In any case: We providedd getLonLatFromPixel as the main 'API' property so that people wouldn't have to use a funky-named property: it's a wrapper around getLonLatFromViewPortPx. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 9 07:07:55 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] DEM browsers in OpenLayers In-Reply-To: <1207738256.11412.70.camel@wardrobe.dhs.org> References: <1207738256.11412.70.camel@wardrobe.dhs.org> Message-ID: <20080409110755.GC21948@metacarta.com> On Wed, Apr 09, 2008 at 03:50:56AM -0700, bwoodall wrote: > Well, I needed an excuse to play with the Control.Hover, which is the > basis for http://wardrobe.dhs.org/jrf/index.html. The code is rather > crude, but it works on Debian and FF (no performance features like > multi-urls or TC so the server might be slow ). bwoodal: Awesome :) Suggestion: use untiled (and transitionEffect: 'resize') to give it a shorter loading time for zooms/pans/etc. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 9 07:12:13 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] parallel loading of tiles from same url In-Reply-To: <563584839@web.de> References: <563584839@web.de> Message-ID: <20080409111213.GE21948@metacarta.com> On Wed, Apr 09, 2008 at 12:04:42PM +0200, Stefan Zweig wrote: > hi list, > > i have the following problem: > > i want to use the openlayers to display 2 wms layers, one as a > baselayer and another one as a (semitransparent) overlay. during > testing i noticed that, if i use different wms urls to load the wms > images there is no problem with parallel loading of the tiles. but if > both wms layers come from the same wms url the api begins to load > *all* tiles of the baselayer and only after it has finished with > loading all of them it starts loading the tiles for the overlay, which > makes loading the map slower. You know what the doctor says: If it hurts when you do that, don't do it! The solution you had -- of loading from a different URL -- is the recommended way to solve this problem. The only thing that matters is the domain name: You can set up multiple DNS aliases pointing to the same system to achieve the speed up. (Like tile.example.com, overlay.example.com.) In this way, you can use the same server, but load things in parallel. I highly recommend this over trying to change the code: switching back and forth between layers in an effort to load tiles would seriously complicate things and make your life more difficult, and it would be somewhat unlikely that we would integrate such a change into OpenLayers unless it was really nicely done. Regards, -- Christopher Schmidt MetaCarta From David at itbeyond.com.au Wed Apr 9 07:37:11 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] 2.5 Firefox and Framecloud autoSize Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB47D@ITB-SVR-01.itbeyond.local> Hi, I have been working today on FramedCloud and have noticed that is works perfectly in IE7 and not in FF2. It appears that when text wraps FF does not resize the box to the correct size. In fact even when it does not have test wrap the bottom line of text if FF2 is chopped off. I have some running examples published at here: http://www.exploroz.com/Directory/Categories/Campers_Trailers.aspx?kw= The OL code is ? the way down. A copy of the registerPopup script is as follows function registerPopUp() { popup = new OpenLayers.Popup.FramedCloud("ppnt_place", PlacePos, new OpenLayers.Size(200,200), '

Camper Trailers WA

Unit 21 No.8 Booth Place, Balcatta, WA, 6021
View the full business details
Get Driving Directions', null, true, onPopupClose); popup.maxSize=new OpenLayers.Size(200,200); ppnt.map.addPopup(popup); } This site is using nightly build however I have also tested in the latest trunk 6826 and the same issue with FF2 is showing. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/3ec3521e/attachment.html From cmspinto at gmail.com Wed Apr 9 07:41:09 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Busy Cursor In-Reply-To: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11> References: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11> Message-ID: Hi all, I am using the library "" but I have seen this post and I thought that is really a good idea to put a loading panel but when I had the line: map.addControl( new OpenLayers.Control.LoadingPanel({minSize: new OpenLayers.Size(600, 600)}) ); the map don't appear!!!!!! Is it because of the openlayers version I am using? Thanks Carlos On Wed, Apr 9, 2008 at 9:32 AM, Bart van den Eijnden (OSGIS) < bartvde@osgis.nl> wrote: > Hi Linda, > > you could have a look at the LoadingPanel Control. Something similar could > be done to change the map cursor. > > See: > http://trac.openlayers.org/ticket/102 > > and: > > http://trac.openlayers.org/browser/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js > > In maximizeControl you could set the busy mouse cursor on the map div, and > in minimizeControl change the cursor back. > > example: > > http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Linda Rawson > Naar: OpenLayers Users > Onderwerp: [OpenLayers-Users] Busy Cursor > Datum: 09/04/08 01:05 > > > I have two layers that when I switch between them the performance is > > so bad that there is a noticeable delay. How would I implement an > > hourglass cursor to indicate to the user that the application is > > working and then put the cursor back to normal when the layer is > > loaded. > > > > -- > > Linda Rawson > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > > _______________________________________________ > 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/20080409/b37f20ca/attachment.html From bartvde at osgis.nl Wed Apr 9 07:48:54 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Busy Cursor Message-ID: Yes, it's not in the standard library, I am hoping it can be an addin soon. See also the Wiki: http://trac.openlayers.org/wiki/Addins/LoadingPanel You can add the following in a

Overview Map

I get the following errors: Line:1896 Null is not an object If I comment out the overview map I do not get any errors. -- Linda Rawson From pedrosimonetti at gmail.com Wed Apr 9 23:57:43 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Handler.Keyboard in IE? In-Reply-To: <20071109221838.GA6662@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370BC4@mrburns.KorOffice.local> <20071109221838.GA6662@metacarta.com> Message-ID: <16601627.post@talk.nabble.com> Dear Developers, I'm doing some investigation about the OL's KeyboardDefaults Control. I've notice that this control isn't working in both IE and Opera, as it was stated here in this thread and in another one: http://www.nabble.com/Opera-and-KeyboardDefaults-tt12141147.html#a12141147 I've checked the tickets for this issue: http://trac.openlayers.org/ticket/864 http://trac.openlayers.org/ticket/1108 There, someone suggest altering the "window" to "document", in two places in the "KeyboardDefaults.js" file. And there was a comment suggesting to change the event handled to "onkeypress" to "onkeydown", considering the problems with "onkeypress" events in IE, as PPK demonstrates at: http://www.quirksmode.org/js/keys.html I've tested changing from "window" to "document", as the ticket suggets. And I've changed also the "onkeypress" event to "onkeydown" in "Handler/Keyboard.js" file. This makes IE and Opera catch the keyboard events, but there's another problem. It seems IE catch the "onkeydown" event twice with the "+" and "-" keys used to zoom (I'm using IE6). And there's another problem with Opera. In Opera, the "+" and "-" keys are used to increase the zoom of the page (it changes both font and image sizes). So, pressing the "+" and "-" keys to zoom in a map will also zoom the intire document. I've noted that changing the event to "onkeyup" seems to fix the problem in IE. But the Opera still has the problem with the "+" and "-" keys. I think the solution will be canceling the event propagation. Does the OL has any function to cancel event propagations? I don't know if Prototype has this feature. There's a cross-browser solution from Dean Edwards: http://dean.edwards.name/weblog/2005/10/add-event2/ Anyway, I'm seding the patch for the modification of "Control/KeyboardDefaults.js" and "Handler/Keyboard.js" if there's anyone interested in investigate this issue. The patch were created over 2.6-RC2's root. regards, Pedro Simonetti. http://www.nabble.com/file/p16601627/keyboardDefaultsFix.patch keyboardDefaultsFix.patch Christopher Schmidt-4 wrote: > > On Fri, Nov 09, 2007 at 04:11:45PM -0600, Jeff Dege wrote: >> I'm taking a first look at Control.ModifyFeature, in 2.5, and the delete >> key doesn't work in IE. >> >> Works fine in Firefox, but in both IE6 and IE7, >> ModifyFeature.handleKeypress() is never called at all. On exploring a >> bit, it seems that Handler.Keyboard.handleKeyEvent() is never being >> called. >> >> I'm running examples/modify-feature.html, as-is, except for some alert() >> calls stuck in various places. >> >> I can see no mention in the source that this functionality doesn't work >> in IE. Has it simply not yet been implemented in IE? Or is it working >> for everybody else, and it's just me? > > http://trac.openlayers.org/ticket/864 > http://trac.openlayers.org/ticket/1108 > > 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/Handler.Keyboard-in-IE--tp13676099p16601627.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From linda.rawson at gmail.com Thu Apr 10 02:13:20 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behavior with LineString feature on Vector Layer with 2.6 Trunk IE only Message-ID: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> I have several vector layers that have line strings on them. In IE when I zoom to higher zoom levels (16,17,18) the lines disappear. They are fine in firefox and I can see the lines at all zoom levels. Does anybody have an idea why this is only happening on IE? -- Linda Rawson From eric.c2c at gmail.com Thu Apr 10 02:31:56 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Can Openlayers read a GML from a webservice? In-Reply-To: References: Message-ID: <5ec103de0804092331w50085968xb5e5fa0bec74fbf1@mail.gmail.com> On Wed, Apr 9, 2008 at 6:51 PM, Carlos Pinto wrote: > Hi all, Hi > > sorry if it is a stupid question. > But unfortunately I can't install mapserver because the IT department don't > allow. > So the solution I have found is make the query to the database and write a > GML file. After that I pass the URL of the file to OpenLayers. > But I thought, maybe instead of writing the GML file I can have a > webservice and tell OpenLayers to receive the layer from the webservice, You probably can. Just curious: your IT dep doesn't allow you to install MapServer so why would it allow you to install your own web service? > this way it would be faster. > I understand that in a normal situation openlayers would use mapserver or > geoserver instead of calling a webservice. MapServer and GeoServer are Web Service providers. -- Eric From yangzhaozhao2008 at 163.com Thu Apr 10 04:18:45 2008 From: yangzhaozhao2008 at 163.com (Yang Zhaohui) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] The location of the Markers was changged Message-ID: <24175433.1144401207815525106.JavaMail.coremail@bj163app58.163.com> Hello dear sir, When I use TMS to deploy images,I have a problem. I know I can use "'maxExtent': bounds,resolutions:[0.000534956337608418,0.000634956337608418]" to make the TMS layer image restricted to a specific bounds. And I also add makers to the map. But when I zoom in the map,the position of the markers was changed. Do you know what is the matter?How to avoid its changing?Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080410/ec2fedf9/attachment.html From progmls at googlemail.com Thu Apr 10 06:25:51 2008 From: progmls at googlemail.com (Guillaume) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Avoid world repeat with a Google map layer Message-ID: <20080410112551.5e712260@dlib-skye.ed.ac.uk> Hello, I am trying to display a map, with a Google map base layer. A requirement is to see the whole world, but only once: even at the lowest zoom level, the world must not be repeated. My map div is 700px wide, and the size of the world displayed is a bit smaller, so it is displayed again on each side of the map. So the question is: is it possible to display the world only once at the lowest zoom level, so as the antimeridian line touches the border of the map on each side, without resizing the map div? The map I currently have is at http://beta.gogeo.ac.uk/cgi-bin/intl.cgi if it helps. The options I used to do this are: layer = new OpenLayers.Layer.Google("Google Normal", { 'type': G_NORMAL_MAP, 'sphericalMercator': true, MIN_ZOOM_LEVEL: 1 }); and the parameters of the map are: maxResolution : 156543.0339, projection : new OpenLayers.Projection("EPSG:900913"), units : 'm', maxExtent : worldExtent, restrictedExtent : worldExtent, wrapDateLine : true, //not sure where this one come from... with worldExtent being (-180,-90,180,90) transformed to Projection("EPSG:4326"). All of this with OL 2.6RC1. Thanks for any hint, Guillaume From crschmidt at metacarta.com Thu Apr 10 06:50:10 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] 2.6 Trunk Spherical Mercator with Overview Map In-Reply-To: <6e9b30fb0804091934g66577c85qa036cfd4c38d714a@mail.gmail.com> References: <6e9b30fb0804091934g66577c85qa036cfd4c38d714a@mail.gmail.com> Message-ID: <20080410105010.GC10710@metacarta.com> On Wed, Apr 09, 2008 at 08:34:42PM -0600, Linda Rawson wrote: > Ok. Another thing I was really hoping for that I cannot get to work. > An overviewmap with sperical mercator. I have last nights trunk. > What am I doing wrong? http://trac.openlayers.org/ticket/1050 Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 10 06:51:59 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Handler.Keyboard in IE? In-Reply-To: <16601627.post@talk.nabble.com> References: <34E056CD4D475841B8C9ABCE956F92F6370BC4@mrburns.KorOffice.local> <20071109221838.GA6662@metacarta.com> <16601627.post@talk.nabble.com> Message-ID: <20080410105158.GD10710@metacarta.com> On Wed, Apr 09, 2008 at 08:57:43PM -0700, Pedro Simonetti wrote: > Anyway, I'm seding the patch for the modification of > "Control/KeyboardDefaults.js" and "Handler/Keyboard.js" if there's anyone > interested in investigate this issue. The patch were created over 2.6-RC2's > root. Please upload this as a patchc in trac. Trac is our long term knowledge database: without it being in trac, we will lose track of it (*rimshot*). Thanks, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 10 06:52:34 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behavior with LineString feature on Vector Layer with 2.6 Trunk IE only In-Reply-To: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> References: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> Message-ID: <20080410105233.GE10710@metacarta.com> On Thu, Apr 10, 2008 at 12:13:20AM -0600, Linda Rawson wrote: > I have several vector layers that have line strings on them. In IE > when I zoom to higher zoom levels (16,17,18) the lines disappear. > They are fine in firefox and I can see the lines at all zoom levels. > Does anybody have an idea why this is only happening on IE? Is this new in 2.6, or if you go back to 2.5, does the same behavior exist? Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 10 06:54:10 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Avoid world repeat with a Google map layer In-Reply-To: <20080410112551.5e712260@dlib-skye.ed.ac.uk> References: <20080410112551.5e712260@dlib-skye.ed.ac.uk> Message-ID: <20080410105409.GF10710@metacarta.com> On Thu, Apr 10, 2008 at 11:25:51AM +0100, Guillaume wrote: > Hello, > > I am trying to display a map, with a Google map base layer. A requirement is to see the whole world, but only once: even at the lowest zoom level, the world must not be repeated. This is a problem with using the Google Maps API. I'm not aware of a way to change this in the Google Maps API, but that would be the place to look. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 10 06:58:40 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] The location of the Markers was changged In-Reply-To: <24175433.1144401207815525106.JavaMail.coremail@bj163app58.163.com> References: <24175433.1144401207815525106.JavaMail.coremail@bj163app58.163.com> Message-ID: <20080410105840.GH10710@metacarta.com> On Thu, Apr 10, 2008 at 04:18:45PM +0800, Yang Zhaohui wrote: > Hello dear sir, > When I use TMS to deploy images,I have a problem. I know I can use "'maxExtent': bounds,resolutions:[0.000534956337608418,0.000634956337608418]" to make the TMS layer image restricted to a specific bounds. And I also add makers to the map. But when I zoom in the map,the position of the markers was changed. Do you know what is the matter?How to avoid its changing?Thank you! I don't think you can do that... unless your source TMS layer has only two resolutions at the source? An OpenLayers map can't display subsets of layers ina TMS layer at this time: it's all or nothing. Regards, -- Christopher Schmidt MetaCarta From kwegezeder at web.de Thu Apr 10 09:20:09 2008 From: kwegezeder at web.de (2StepForward) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] WFS vs. Vector In-Reply-To: <16606554.post@talk.nabble.com> References: <16606554.post@talk.nabble.com> Message-ID: <16608587.post@talk.nabble.com> 2StepForward wrote: > > Hi List, > > I have a beginners question to you. > My problem is to understand how to work vector layers, especially how to > work vector features. > > What is base I have work: > > - I have some features (point geometry) into a PostGIS-database. > - At the moment I use a WFS layer with a subclassed featureClass to > include custom icons. > This subclassed featureClass use a Marker-object to reference the icon. > > Like this: > > var wfs = new OpenLayers.Layer.WFS( "EM", "http://server/geoserver/wfs?", > { typename: 'WFS:em'}, > { > featureClass: OpenLayers.Feature.Pic, > clientData: {picUrlRoot: "http://server/geoserver/prototyp/img/"} > }); > map.addLayer(wfs); > > this works fine. With a specific column in the database table (PostGIS) of > the some feature I can describe which icon should be get to draw. The > column hold a name, like "building" and additionaly there will be append a > ".gif" to reference the picture on the server. > > My problem is: > > - I will support that the pictures could be drag by the user and finally > the changed possition of the point geometry, which was bind to the > picture, will be write back (updated) to the geomety column in the > database. > I have read the Marker object couldn't be draggable but vector features > into vector layers could be. > > The question is: > > - How is it possible to get the geometries of the features into the > database and put them into vector features. > - Is there no other way to get the features by wfs and write it to the > vector features for build up? > - Is this the right way to use Ajax to get the needed datas form the > database? > > I hope I have discribed my problem in that way if you could understand it. > > Thanks for every answer, > Klaus > -- View this message in context: http://www.nabble.com/WFS-vs.-Vector-tp16606554p16608587.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From linda.rawson at gmail.com Thu Apr 10 10:04:16 2008 From: linda.rawson at gmail.com (Linda Rawson) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behavior with LineString feature on Vector Layer with 2.6 Trunk IE only In-Reply-To: <20080410105233.GE10710@metacarta.com> References: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> <20080410105233.GE10710@metacarta.com> Message-ID: <6e9b30fb0804100704h1887ca1cn8dff336bc186f20d@mail.gmail.com> This is new in 2.6. It does not happen in 2.5. The only thing that I notice is that the lines are thicker in 2.5 and I don't know if that is what is making the difference. I am trying to come up with an example but I have lots of layers and I have yet to figure out what is causing the problem. I had a similar problem in 2.5 when the minimum resolution was not setting on calculateinrange on the layer. But that is not the problem with 2.6. It is as though at the higher zoom levels the lines just can't show up because they are being resized too small. Markers show up just fine but the vector lines do not. Linda On Thu, Apr 10, 2008 at 4:52 AM, Christopher Schmidt wrote: > > On Thu, Apr 10, 2008 at 12:13:20AM -0600, Linda Rawson wrote: > > I have several vector layers that have line strings on them. In IE > > when I zoom to higher zoom levels (16,17,18) the lines disappear. > > They are fine in firefox and I can see the lines at all zoom levels. > > Does anybody have an idea why this is only happening on IE? > > Is this new in 2.6, or if you go back to 2.5, does the same behavior > exist? > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Linda Rawson From tschaub at openplans.org Thu Apr 10 10:35:06 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Vector select styles In-Reply-To: <47FD2429.4070501@thematicmapping.org> References: <47FCE6F7.5020200@sms.ed.ac.uk> <20080409160538.GA26455@metacarta.com> <47FD2429.4070501@thematicmapping.org> Message-ID: <47FE259A.7040808@openplans.org> Hey Bjorn- Glad to see you find it useful. For those who haven't followed recent style changes, the page below is a very nice use of "advanced context" for styles. http://www.thematicmapping.org/experiments/openlayers/piecharts.html Basically, you can have any value in a symbolizer (a symbolizer is what we used to call feature.style) be derived by any function that evaluates a feature for any feature property. This includes feature attributes, feature geometry, or anything else you choose to store on a feature. If you give an OpenLayers.Style instance a context property, then the all symbolizers will be evaluated in this context. The styles-context.html example in our examples dir shows another use. Bjorn, can you contribute these examples to our examples directory? Any contributions of examples and documentation are greatly appreciated. http://trac.openlayers.org/wiki/HowToContribute Tim Bjorn Sandvik wrote: > Thanks for your response. It works: > http://www.thematicmapping.org/experiments/openlayers/propsymbols.html > > Bjorn > > http://blog.thematicmapping.org > > > Christopher Schmidt wrote: >> On Wed, Apr 09, 2008 at 04:55:35PM +0100, Bjorn Sandvik wrote: >> >>> Hi, >>> >>> I'm having a problem with hover styles using OpenLayers 2.6-rc1: >>> http://www.thematicmapping.org/experiments/openlayers/propsymbols.html >>> >>> When you hover on of the circles the size is not preserved. >>> Is there a way to define the "default" and "select" styles to be the same? >>> >> In 2.6-rc2, this is fixed. >> >> In 2.6-rc1, you can do: >> >> StyleMap({'default': style, 'select': style}); >> >> If you want to only change (for example) the color, and not the size, >> you can do (in either version): >> >> StyleMap({'default': style, 'select': {strokeColor: '#0000ff'}}); >> >> Regards, >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,47fd2432303661804284693! > From crschmidt at metacarta.com Thu Apr 10 10:56:47 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behavior with LineString feature on Vector Layer with 2.6 Trunk IE only In-Reply-To: <6e9b30fb0804100704h1887ca1cn8dff336bc186f20d@mail.gmail.com> References: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> <20080410105233.GE10710@metacarta.com> <6e9b30fb0804100704h1887ca1cn8dff336bc186f20d@mail.gmail.com> Message-ID: <20080410145646.GA14519@metacarta.com> On Thu, Apr 10, 2008 at 08:04:16AM -0600, Linda Rawson wrote: > This is new in 2.6. It does not happen in 2.5. The only thing that I > notice is that the lines are thicker in 2.5 and I don't know if that > is what is making the difference. I am trying to come up with an > example but I have lots of layers and I have yet to figure out what is > causing the problem. I had a similar problem in 2.5 when the minimum > resolution was not setting on calculateinrange on the layer. But that > is not the problem with 2.6. It is as though at the higher zoom > levels the lines just can't show up because they are being resized too > small. Markers show up just fine but the vector lines do not. Okay, this doesn't sound beyond the realm of possibility. We changed thickness of lines in 2.6 from being calculated in points to being in pixels. Can you reproduce a minimal example of this, so that we can try and get it fixed? Andreas, I think this could be related to your VML change. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Apr 10 11:16:15 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Strange behavior with LineString feature on Vector Layer with 2.6 Trunk IE only In-Reply-To: <6e9b30fb0804100704h1887ca1cn8dff336bc186f20d@mail.gmail.com> References: <6e9b30fb0804092313v634fa3cenfd5c9bdf2bd942b5@mail.gmail.com> <20080410105233.GE10710@metacarta.com> <6e9b30fb0804100704h1887ca1cn8dff336bc186f20d@mail.gmail.com> Message-ID: <20080410151614.GA20302@metacarta.com> On Thu, Apr 10, 2008 at 08:04:16AM -0600, Linda Rawson wrote: > This is new in 2.6. It does not happen in 2.5. The only thing that I > notice is that the lines are thicker in 2.5 and I don't know if that > is what is making the difference. I am trying to come up with an > example but I have lots of layers and I have yet to figure out what is > causing the problem. I had a similar problem in 2.5 when the minimum > resolution was not setting on calculateinrange on the layer. But that > is not the problem with 2.6. It is as though at the higher zoom > levels the lines just can't show up because they are being resized too > small. Markers show up just fine but the vector lines do not. For the record, I've just tried this in IE6 and IE7 (putting a linear vector feature on top of a map, setting numZoomLevels to 20, and zooming far in) and had no problems. (Thanks for yoru continuned bug finding efforts!) Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Thu Apr 10 11:16:46 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Vector select styles In-Reply-To: <47FE259A.7040808@openplans.org> References: <47FCE6F7.5020200@sms.ed.ac.uk> <20080409160538.GA26455@metacarta.com> <47FD2429.4070501@thematicmapping.org> <47FE259A.7040808@openplans.org> Message-ID: <5ec103de0804100816n1486f9aak5b1aad7595d74e36@mail.gmail.com> On Thu, Apr 10, 2008 at 4:35 PM, Tim Schaub wrote: > Hey Bjorn- > > Glad to see you find it useful. > > For those who haven't followed recent style changes, the page below is a > very nice use of "advanced context" for styles. > > http://www.thematicmapping.org/experiments/openlayers/piecharts.html > > Basically, you can have any value in a symbolizer (a symbolizer is what > we used to call feature.style) be derived by any function that evaluates > a feature for any feature property. This includes feature attributes, > feature geometry, or anything else you choose to store on a feature. > > If you give an OpenLayers.Style instance a context property, then the > all symbolizers will be evaluated in this context. The > styles-context.html example in our examples dir shows another use. > > Bjorn, can you contribute these examples to our examples directory? Any > contributions of examples and documentation are greatly appreciated. > > http://trac.openlayers.org/wiki/HowToContribute For information, I just updated MapFish GeoStat code to use OpenLayers' new style framework. I do have examples showing the result, it's available in my MapFish sandbox. The code is available in my sandbox, see [2]. This code will soon go into MapFish trunk. [1] http://dev.mapfish.org/sandbox/elemoine/MapFish02/client/examples/geostat/ [2] http://trac.mapfish.org/trac/mapfish/browser/sandbox/elemoine/MapFish02/client/mfbase/mapfish/core/GeoStat -- Eric From gilles.bassiere at makina-corpus.com Thu Apr 10 11:26:35 2008 From: gilles.bassiere at makina-corpus.com (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] a control to display a static image Message-ID: <47FE31AB.4010008@makina-corpus.com> Hi list, Is there a Layer or a Control in OpenLayers to display a simple static image in the map pane ? What I need is actually is to superimpose an image on the map. I want to use this to draw a North Arrow. I though about using the new Attribution feature (which is great!) but it's layer-dependant. I want my image to be displayed anytime. I can't find anything that fulfil my needs in the API doc. Did I miss something? Should I develop a new Control for this? Regards Gilles -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75002 PARIS +33 (0) 1 44 82 00 80 http://www.makina-corpus.com -------------- next part -------------- A non-text attachment was scrubbed... Name: gilles_bassiere.vcf Type: text/x-vcard Size: 368 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080410/2e9c0f29/gilles_bassiere.vcf From crschmidt at metacarta.com Thu Apr 10 11:34:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] a control to display a static image In-Reply-To: <47FE31AB.4010008@makina-corpus.com> References: <47FE31AB.4010008@makina-corpus.com> Message-ID: <20080410153401.GA11090@metacarta.com> On Thu, Apr 10, 2008 at 05:26:35PM +0200, Gilles Bassi?re wrote: > Hi list, > > Is there a Layer or a Control in OpenLayers to display a simple static > image in the map pane ? > > What I need is actually is to superimpose an image on the map. I want to > use this to draw a North Arrow. I though about using the new Attribution > feature (which is great!) but it's layer-dependant. I want my image to > be displayed anytime. > > I can't find anything that fulfil my needs in the API doc. Did I miss > something? Should I develop a new Control for this? What you're looking for is closest to a control, but I honestly wouldn't even bother with that: instead: I'd do this:
Regards, -- Christopher Schmidt MetaCarta From pagameba at gmail.com Thu Apr 10 11:36:00 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] a control to display a static image In-Reply-To: <47FE31AB.4010008@makina-corpus.com> References: <47FE31AB.4010008@makina-corpus.com> Message-ID: <13EF1DAB-838C-4FF9-A41A-29D0A80CE668@gmail.com> It would be nice if the Attribution control picked up an attribution from the Map object too. Paul On 10-Apr-08, at 11:26 AM, Gilles Bassi?re wrote: > Hi list, > > Is there a Layer or a Control in OpenLayers to display a simple > static image in the map pane ? > > What I need is actually is to superimpose an image on the map. I > want to use this to draw a North Arrow. I though about using the new > Attribution feature (which is great!) but it's layer-dependant. I > want my image to be displayed anytime. > > I can't find anything that fulfil my needs in the API doc. Did I > miss something? Should I develop a new Control for this? > > Regards > Gilles > > -- > Gilles Bassiere > MAKINA CORPUS > 30 rue des Jeuneurs > FR-75002 PARIS > +33 (0) 1 44 82 00 80 > http://www.makina-corpus.com > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From tschaub at openplans.org Thu Apr 10 11:46:56 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Handler.Keyboard in IE? In-Reply-To: <20080410105158.GD10710@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370BC4@mrburns.KorOffice.local> <20071109221838.GA6662@metacarta.com> <16601627.post@talk.nabble.com> <20080410105158.GD10710@metacarta.com> Message-ID: <47FE3670.3090703@openplans.org> Christopher Schmidt wrote: > On Wed, Apr 09, 2008 at 08:57:43PM -0700, Pedro Simonetti wrote: >> Anyway, I'm seding the patch for the modification of >> "Control/KeyboardDefaults.js" and "Handler/Keyboard.js" if there's anyone >> interested in investigate this issue. The patch were created over 2.6-RC2's >> root. > > Please upload this as a patchc in trac. Trac is our long term knowledge > database: without it being in trac, we will lose track of it > (*rimshot*). > > Thanks, > And, for your reading pleasure: http://trac.openlayers.org/wiki/HowToContribute http://trac.openlayers.org/wiki/FilingTickets From bjorn at thematicmapping.org Thu Apr 10 12:22:20 2008 From: bjorn at thematicmapping.org (Bjorn Sandvik) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Vector select styles In-Reply-To: <47FE259A.7040808@openplans.org> References: <47FCE6F7.5020200@sms.ed.ac.uk> <20080409160538.GA26455@metacarta.com> <47FD2429.4070501@thematicmapping.org> <47FE259A.7040808@openplans.org> Message-ID: <47FE3EBC.7050801@thematicmapping.org> Hi Tim, Examples will be provided to your examples directory shortly. I just want to add a some comments to my code. More thematic mapping techniques is in the pipeline. Thanks, Bjorn Tim Schaub wrote: > Hey Bjorn- > > Glad to see you find it useful. > > For those who haven't followed recent style changes, the page below is a > very nice use of "advanced context" for styles. > > http://www.thematicmapping.org/experiments/openlayers/piecharts.html > > Basically, you can have any value in a symbolizer (a symbolizer is what > we used to call feature.style) be derived by any function that evaluates > a feature for any feature property. This includes feature attributes, > feature geometry, or anything else you choose to store on a feature. > > If you give an OpenLayers.Style instance a context property, then the > all symbolizers will be evaluated in this context. The > styles-context.html example in our examples dir shows another use. > > Bjorn, can you contribute these examples to our examples directory? Any > contributions of examples and documentation are greatly appreciated. > > http://trac.openlayers.org/wiki/HowToContribute > > Tim > > Bjorn Sandvik wrote: > >> Thanks for your response. It works: >> http://www.thematicmapping.org/experiments/openlayers/propsymbols.html >> >> Bjorn >> >> http://blog.thematicmapping.org >> >> >> Christopher Schmidt wrote: >> >>> On Wed, Apr 09, 2008 at 04:55:35PM +0100, Bjorn Sandvik wrote: >>> >>> >>>> Hi, >>>> >>>> I'm having a problem with hover styles using OpenLayers 2.6-rc1: >>>> http://www.thematicmapping.org/experiments/openlayers/propsymbols.html >>>> >>>> When you hover on of the circles the size is not preserved. >>>> Is there a way to define the "default" and "select" styles to be the same? >>>> >>>> >>> In 2.6-rc2, this is fixed. >>> >>> In 2.6-rc1, you can do: >>> >>> StyleMap({'default': style, 'select': style}); >>> >>> If you want to only change (for example) the color, and not the size, >>> you can do (in either version): >>> >>> StyleMap({'default': style, 'select': {strokeColor: '#0000ff'}}); >>> >>> Regards, >>> >>> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> !DSPAM:4033,47fd2432303661804284693! >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From pedrosimonetti at gmail.com Thu Apr 10 12:29:14 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Handler.Keyboard in IE? In-Reply-To: <20080410105158.GD10710@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370BC4@mrburns.KorOffice.local> <20071109221838.GA6662@metacarta.com> <16601627.post@talk.nabble.com> <20080410105158.GD10710@metacarta.com> Message-ID: <16609895.post@talk.nabble.com> Christopher, It's done. Take a look: http://trac.openlayers.org/ticket/1108 I've changed the version of the ticket to 2.6 RC2, since this bug still present in this version. This is the right procedure? my best regards, Pedro Simonetti. Christopher Schmidt-4 wrote: > > On Wed, Apr 09, 2008 at 08:57:43PM -0700, Pedro Simonetti wrote: >> Anyway, I'm seding the patch for the modification of >> "Control/KeyboardDefaults.js" and "Handler/Keyboard.js" if there's anyone >> interested in investigate this issue. The patch were created over >> 2.6-RC2's >> root. > > Please upload this as a patchc in trac. Trac is our long term knowledge > database: without it being in trac, we will lose track of it > (*rimshot*). > > Thanks, > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Handler.Keyboard-in-IE--tp13676099p16609895.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From groby at tce.coop Thu Apr 10 14:39:47 2008 From: groby at tce.coop (groby) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom Message-ID: <16613255.post@talk.nabble.com> Hello, I am fairly new to OpenLayers and GIS in general and new to this list. I have just setup an OpenLayers page. I am using MapServer as my WMS Server and my data is held in PostGIS tables. I would like to know how can I create a way for a user to input text and to zoom to the feature specified by the text. An example of what I am trying to accomplish: Take the Feature Info Example at http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted to make it so a user could type in a country name then have the map zoom to the extent of the country, how would I do so? It needs to be a general enough example I could use it with any text field (for example, a Serial Number). I have found a few previous postings that seem to be asking a similar question but not many answers. Any pointers to a nice or ugly solution are appreciated. Thanks. Greg -- View this message in context: http://www.nabble.com/Query-Feature-by-Attribute-and-Zoom-tp16613255p16613255.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From guillaume.sueur at neogeo-online.net Thu Apr 10 15:47:58 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom In-Reply-To: <16613255.post@talk.nabble.com> References: <16613255.post@talk.nabble.com> Message-ID: <47FE6EEE.6000609@neogeo-online.net> Hi Greg, As an WMS Server doesn't publish the features themselves, you will have to use another method for the requested functionnality, even if the layers can remain in WMS. 1. If you don't have so many countries, you can grab the extents of each of them manually and build a simple html select list with the extents in the value field. OnChange, you will fire a function getting the extent and setting your map extent with it. 2. If you have many countries, or if these data change often, you can build a simple web service sending you a stream (JSON for example) that you will use to build dynamically the same list as above. On the server side you can use many OpenSource tools to perform that : either php/mapscript, or even ogrinfo, in fact any tool that will be able to open your dataset and read the shapes in it. Of course, it's even simpler if they are stored into postGIS ;-) Hope that helps, Guillaume groby a ?crit : > Hello, > > I am fairly new to OpenLayers and GIS in general and new to this list. I > have just setup an OpenLayers page. I am using MapServer as my WMS Server > and my data is held in PostGIS tables. > > I would like to know how can I create a way for a user to input text and to > zoom to the feature specified by the text. > > An example of what I am trying to accomplish: > Take the Feature Info Example at > http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted to > make it so a user could type in a country name then have the map zoom to the > extent of the country, how would I do so? It needs to be a general enough > example I could use it with any text field (for example, a Serial Number). > > I have found a few previous postings that seem to be asking a similar > question but not many answers. Any pointers to a nice or ugly solution are > appreciated. > > Thanks. > > Greg > > - From guillaume.sueur at neogeo-online.net Thu Apr 10 16:51:10 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order Message-ID: <47FE7DBE.2090208@neogeo-online.net> Hi, Is there a way to render the layers in another order than their original add-to-map order ? Something like priority on each of them ? Most of the time, the bottom layer is a tiled layer that makes you wait while the surrounding tiles are loading, and your "working layers" can be interesting to render before that. Thanks for any clue, Guillaume From groby at tce.coop Thu Apr 10 16:56:34 2008 From: groby at tce.coop (Gregory Roby) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom In-Reply-To: <47FE6EEE.6000609@neogeo-online.net> References: <16613255.post@talk.nabble.com> <47FE6EEE.6000609@neogeo-online.net> Message-ID: <001401c89b4d$5d0c3f90$1724beb0$@coop> Guillaume, Thanks for the quick response, this nudges me in a direction that will solve this (plus I can expand on it to solve a couple of other related issues I am sure I will have in the coming month or so). It sounds like the simplest way based on what I already have knowledge of then would be to: Create a HTML form in which a user enters the point. Create a CGI Python program that gets the proper zoom-to extent (maybe using GeoDjango, I have used Django a bit before). Dynamically output the new map webpage from the CGI program with the added Zoom to Extent Line. On rereading it, it sounds a bit different from what you suggested but the same basic idea... I will post back in a week or so the results (and hopefully some code) in case anyone is interested. Greg -----Original Message----- From: Guillaume Sueur [mailto:guillaume.sueur@neogeo-online.net] Sent: Thursday, April 10, 2008 3:48 PM To: groby Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Query Feature by Attribute and Zoom Hi Greg, As an WMS Server doesn't publish the features themselves, you will have to use another method for the requested functionnality, even if the layers can remain in WMS. 1. If you don't have so many countries, you can grab the extents of each of them manually and build a simple html select list with the extents in the value field. OnChange, you will fire a function getting the extent and setting your map extent with it. 2. If you have many countries, or if these data change often, you can build a simple web service sending you a stream (JSON for example) that you will use to build dynamically the same list as above. On the server side you can use many OpenSource tools to perform that : either php/mapscript, or even ogrinfo, in fact any tool that will be able to open your dataset and read the shapes in it. Of course, it's even simpler if they are stored into postGIS ;-) Hope that helps, Guillaume groby a ?crit : > Hello, > > I am fairly new to OpenLayers and GIS in general and new to this list. I > have just setup an OpenLayers page. I am using MapServer as my WMS Server > and my data is held in PostGIS tables. > > I would like to know how can I create a way for a user to input text and to > zoom to the feature specified by the text. > > An example of what I am trying to accomplish: > Take the Feature Info Example at > http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted to > make it so a user could type in a country name then have the map zoom to the > extent of the country, how would I do so? It needs to be a general enough > example I could use it with any text field (for example, a Serial Number). > > I have found a few previous postings that seem to be asking a similar > question but not many answers. Any pointers to a nice or ugly solution are > appreciated. > > Thanks. > > Greg > > - -------------- next part -------------- The information contained in this electronic mail transmission is intended by Tri-County Electric Cooperative for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. From guillaume.sueur at neogeo-online.net Thu Apr 10 17:05:57 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom In-Reply-To: <001401c89b4d$5d0c3f90$1724beb0$@coop> References: <16613255.post@talk.nabble.com> <47FE6EEE.6000609@neogeo-online.net> <001401c89b4d$5d0c3f90$1724beb0$@coop> Message-ID: <47FE8135.10701@neogeo-online.net> Maybe GeoDjango is a little bit oversized for this kind of thing ;-) Basically, you just need to pull the extent of where you want to zoom to on the client side and set the map extent with it. By the way, you can even probably grab it from Geonames (http://www.geonames.org/export/web-services.html#countryInfo) Cheers, Guillaume Gregory Roby a ?crit : > Guillaume, > > Thanks for the quick response, this nudges me in a direction that will solve > this (plus I can expand on it to solve a couple of other related issues I am > sure I will have in the coming month or so). > > It sounds like the simplest way based on what I already have knowledge of > then would be to: > > Create a HTML form in which a user enters the point. > Create a CGI Python program that gets the proper zoom-to extent (maybe using > GeoDjango, I have used Django a bit before). > Dynamically output the new map webpage from the CGI program with the added > Zoom to Extent Line. > > On rereading it, it sounds a bit different from what you suggested but the > same basic idea... > > I will post back in a week or so the results (and hopefully some code) in > case anyone is interested. > > > Greg > > > > > > -----Original Message----- > From: Guillaume Sueur [mailto:guillaume.sueur@neogeo-online.net] > Sent: Thursday, April 10, 2008 3:48 PM > To: groby > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Query Feature by Attribute and Zoom > > Hi Greg, > > As an WMS Server doesn't publish the features themselves, you will have > to use another method for the requested functionnality, even if the > layers can remain in WMS. > 1. If you don't have so many countries, you can grab the extents of each > of them manually and build a simple html select list with the extents in > the value field. OnChange, you will fire a function getting the extent > and setting your map extent with it. > 2. If you have many countries, or if these data change often, you can > build a simple web service sending you a stream (JSON for example) that > you will use to build dynamically the same list as above. On the server > side you can use many OpenSource tools to perform that : either > php/mapscript, or even ogrinfo, in fact any tool that will be able to > open your dataset and read the shapes in it. Of course, it's even > simpler if they are stored into postGIS ;-) > > Hope that helps, > > Guillaume > > groby a ?crit : >> Hello, >> >> I am fairly new to OpenLayers and GIS in general and new to this list. I >> have just setup an OpenLayers page. I am using MapServer as my WMS Server >> and my data is held in PostGIS tables. >> >> I would like to know how can I create a way for a user to input text and > to >> zoom to the feature specified by the text. >> >> An example of what I am trying to accomplish: >> Take the Feature Info Example at >> http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted > to >> make it so a user could type in a country name then have the map zoom to > the >> extent of the country, how would I do so? It needs to be a general enough >> example I could use it with any text field (for example, a Serial Number). > >> I have found a few previous postings that seem to be asking a similar >> question but not many answers. Any pointers to a nice or ugly solution > are >> appreciated. >> >> Thanks. >> >> Greg >> >> > > - > > > > > ------------------------------------------------------------------------ > > The information contained in this electronic mail transmission is intended by Tri-County > Electric Cooperative for the use of the named individual or entity to which it is directed > and may contain information that is confidential or privileged. If you have received this > electronic mail transmission in error, please delete it from your system without copying or > forwarding it, and notify the sender of the error by reply email so that the sender's address > records can be corrected. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From crschmidt at metacarta.com Thu Apr 10 17:14:47 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order In-Reply-To: <47FE7DBE.2090208@neogeo-online.net> References: <47FE7DBE.2090208@neogeo-online.net> Message-ID: <20080410211446.GA20415@metacarta.com> On Thu, Apr 10, 2008 at 10:51:10PM +0200, Guillaume Sueur wrote: > Hi, > Is there a way to render the layers in another order than their original > add-to-map order ? Something like priority on each of them ? > Most of the time, the bottom layer is a tiled layer that makes you wait > while the surrounding tiles are loading, and your "working layers" can > be interesting to render before that. 1. Use different hostnames for your different layers. 2. http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer (which is also lowerLayer, when passed a negative index) Regards, -- Christopher Schmidt MetaCarta From guillaume.sueur at neogeo-online.net Thu Apr 10 17:21:52 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order In-Reply-To: <20080410211446.GA20415@metacarta.com> References: <47FE7DBE.2090208@neogeo-online.net> <20080410211446.GA20415@metacarta.com> Message-ID: <47FE84F0.5060003@neogeo-online.net> 1. yes, but it should speed up the whole thing, not indicate a specific drawing order shouldn't it ? But, sure, I should do that anyway. 2. that will change the organisation of the map, which is not the goal either. would it be difficult to add a layer drawingOrder option and make the map render them in that order ? Thanks Guillaume Christopher Schmidt a ?crit : > On Thu, Apr 10, 2008 at 10:51:10PM +0200, Guillaume Sueur wrote: >> Hi, >> Is there a way to render the layers in another order than their original >> add-to-map order ? Something like priority on each of them ? >> Most of the time, the bottom layer is a tiled layer that makes you wait >> while the surrounding tiles are loading, and your "working layers" can >> be interesting to render before that. > > 1. Use different hostnames for your different layers. > 2. > http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer > > (which is also lowerLayer, when passed a negative index) > > Regards, From crschmidt at metacarta.com Thu Apr 10 17:27:51 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order In-Reply-To: <47FE84F0.5060003@neogeo-online.net> References: <47FE7DBE.2090208@neogeo-online.net> <20080410211446.GA20415@metacarta.com> <47FE84F0.5060003@neogeo-online.net> Message-ID: <20080410212751.GA21231@metacarta.com> On Thu, Apr 10, 2008 at 11:21:52PM +0200, Guillaume Sueur wrote: > 1. yes, but it should speed up the whole thing, not indicate a specific > drawing order shouldn't it ? But, sure, I should do that anyway. Yes. > 2. that will change the organisation of the map, which is not the goal > either. Tht wasn't clear from your original message. > would it be difficult to add a layer drawingOrder option and make the > map render them in that order ? Not extremely, but I don't know that it's worth it for OpenLayers core. It would mean looping over all the layers more than once (once to build the drawing order, once to actually call moveTo) in Map.moveTo. Also, it wouldn't help once the layers start drawing, so if you add a layer, call setCente,r then add another layer, it wouldn't help. In any case, feel free to take a look at Map.oveTo and see if it makes sense. Regards, -- Christopher Schmidt MetaCarta From guillaume.sueur at neogeo-online.net Thu Apr 10 17:32:29 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order In-Reply-To: <20080410212751.GA21231@metacarta.com> References: <47FE7DBE.2090208@neogeo-online.net> <20080410211446.GA20415@metacarta.com> <47FE84F0.5060003@neogeo-online.net> <20080410212751.GA21231@metacarta.com> Message-ID: <47FE876D.8010403@neogeo-online.net> Christopher Schmidt a ?crit : > On Thu, Apr 10, 2008 at 11:21:52PM +0200, Guillaume Sueur wrote: >> 1. yes, but it should speed up the whole thing, not indicate a specific >> drawing order shouldn't it ? But, sure, I should do that anyway. > > Yes. > >> 2. that will change the organisation of the map, which is not the goal >> either. > > Tht wasn't clear from your original message. sorry for that unforgivable lack of precision ! I did my best though ! > >> would it be difficult to add a layer drawingOrder option and make the >> map render them in that order ? > > Not extremely, but I don't know that it's worth it for OpenLayers core. > It would mean looping over all the layers more than once (once to build > the drawing order, once to actually call moveTo) in Map.moveTo. Also, it > wouldn't help once the layers start drawing, so if you add a layer, call > setCente,r then add another layer, it wouldn't help. > > In any case, feel free to take a look at Map.oveTo and see if it makes > sense. > > Regards, ok, I'll have a look at it. Thanks G From crschmidt at metacarta.com Thu Apr 10 17:33:36 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] layers drawing order In-Reply-To: <47FE876D.8010403@neogeo-online.net> References: <47FE7DBE.2090208@neogeo-online.net> <20080410211446.GA20415@metacarta.com> <47FE84F0.5060003@neogeo-online.net> <20080410212751.GA21231@metacarta.com> <47FE876D.8010403@neogeo-online.net> Message-ID: <20080410213336.GA21259@metacarta.com> On Thu, Apr 10, 2008 at 11:32:29PM +0200, Guillaume Sueur wrote: > >Tht wasn't clear from your original message. > > sorry for that unforgivable lack of precision ! I did my best though ! Oh, no worries. Weather is way too nice here for me to be actually upset about anything :) Regards, -- Christopher Schmidt MetaCarta From jlacroix at mapgears.com Thu Apr 10 17:46:44 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Performance vs number of layer Message-ID: <47FE8AC4.4070809@mapgears.com> Hi all, Since we talk about performance on the dev list... The more layer we add on the top of an openlayer application, the more the application slow down. One of my client's application has around 30 ka-Map layers available. Let just say that if you switch them all to ON at the same time the application becomes a bit...irresponsive. How much layer did other experience with? How much is too much? I know performance really depends on the user computer so let's assume 1CPU (Intel Pentium M 1.73 GHz if you want details), 1GB of RAM and Windows XP With this application we can go up to 8-9 layers at the same time, it's slow, but after that it's just too slooooow. As a solution for this specific case, I think of switching to MapServer layer for some of them. Then I could merge the layers displayed in the layer switcher as a single MapServer layer and make only one request. Would a functionality to merge Mapserver layer request to the same server would be a good idea? Something like the following that would display 3 layers in the layer switcher but would be treated as a single one in when querying for a tile. layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: ['basic', 'road', 'city']}, {gutter: 15}); Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From crschmidt at metacarta.com Thu Apr 10 18:02:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Performance vs number of layer In-Reply-To: <47FE8AC4.4070809@mapgears.com> References: <47FE8AC4.4070809@mapgears.com> Message-ID: <20080410220201.GB21308@metacarta.com> On Thu, Apr 10, 2008 at 05:46:44PM -0400, Julien-Samuel Lacroix wrote: > As a solution for this specific case, I think of switching to MapServer > layer for some of them. Then I could merge the layers displayed in the > layer switcher as a single MapServer layer and make only one request. > Would a functionality to merge Mapserver layer request to the same > server would be a good idea? I would say that you could do this in *a* layer switcher just as easily with WMS as with MapServer Layers -- either one can accept multiple layers in a request. However, I believe that this advanced level of functionality belongs outside the OpenLayers.Control.LayerSwitcher. It is a good idea in general though, and might help solve your problem. Regards, -- Christopher Schmidt MetaCarta From lancelot at inetnebr.com Thu Apr 10 20:02:31 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Avoiding world repeat with a Google map layer Message-ID: <47FEAA97.6070200@inetnebr.com> Christopher Schmidt wrote: > On Thu, Apr 10, 2008 at 11:25:51AM +0100, Guillaume wrote: > >> Hello, >> >> I am trying to display a map, with a Google map base layer. A >> requirement is to see the whole world, but only once: even at the >> lowest zoom level, the world must not be repeated. >> > > This is a problem with using the Google Maps API. I'm not aware of a way > to change this in the Google Maps API, but that would be the place to > look. > > Regards, > There is a method... GMercatorProjection.prototype.tileCheckRange = function(tile,zoom,tilesize) { var maxTile = Math.floor(this.getWrapWidth(zoom) / tilesize); if (tile.x < 0 || tile.x >= maxTile || tile.y < 0 || tile.y >= maxTile) { return false; } return true } AV From David at itbeyond.com.au Fri Apr 11 00:38:41 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> Hi, I have just tried to setOpacity on a framedcloud and cannot seem to make it work the command is as follows: function registerPopUp() { popup = new OpenLayers.Popup.FramedCloud("ppnt_p", new OpenLayers.LonLat(0,0), new OpenLayers.Size(300,300), 'This is a test', null, true, onPopupClose); popup.setOpacity(0.7); ppnt.map.addPopup(popup); } It does not seem to do anything at all. Is this support in Framedcloud? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080411/bf132a08/attachment.html From cmspinto at gmail.com Fri Apr 11 03:30:54 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Can Openlayers read a GML from a webservice? In-Reply-To: <5ec103de0804092331w50085968xb5e5fa0bec74fbf1@mail.gmail.com> References: <5ec103de0804092331w50085968xb5e5fa0bec74fbf1@mail.gmail.com> Message-ID: Hi Eric, We use Visual Studio 2005 and the server is in windows also. So we can programme webservices but they don't allow to put a Linux server because they say that they can not support it and they don't allow to put the mapserver in the windows server because they are afraid it affect the performance of the web server. Of course I am pushing it, but I am afraid it takes some months :( Maybe this does not make sense and I would agree with!!!!!! So I can make a webservice visible to javascript and this will be a temporary solution. Thanks for your help, Carlos On 4/10/08, Eric Lemoine wrote: > > On Wed, Apr 9, 2008 at 6:51 PM, Carlos Pinto wrote: > > Hi all, > > Hi > > > > > sorry if it is a stupid question. > > But unfortunately I can't install mapserver because the IT department > don't > > allow. > > So the solution I have found is make the query to the database and write > a > > GML file. After that I pass the URL of the file to OpenLayers. > > But I thought, maybe instead of writing the GML file I can have a > > webservice and tell OpenLayers to receive the layer from the webservice, > > You probably can. Just curious: your IT dep doesn't allow you to > install MapServer so why would it allow you to install your own web > service? > > > this way it would be faster. > > I understand that in a normal situation openlayers would use mapserver > or > > geoserver instead of calling a webservice. > > MapServer and GeoServer are Web Service providers. > > -- > Eric > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080411/b4fcf097/attachment.html From bluecarto at gmail.com Fri Apr 11 04:04:58 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Performance vs number of layer In-Reply-To: <20080410220201.GB21308@metacarta.com> References: <47FE8AC4.4070809@mapgears.com> <20080410220201.GB21308@metacarta.com> Message-ID: For your information, MapFish already provides a layerTree which allows to build the advanced layer switcher Chris is talking about. You can do it yourself quite easily too if you need something really simple. Regards, Pierre On Fri, Apr 11, 2008 at 12:02 AM, Christopher Schmidt wrote: > On Thu, Apr 10, 2008 at 05:46:44PM -0400, Julien-Samuel Lacroix wrote: > > As a solution for this specific case, I think of switching to MapServer > > layer for some of them. Then I could merge the layers displayed in the > > layer switcher as a single MapServer layer and make only one request. > > Would a functionality to merge Mapserver layer request to the same > > server would be a good idea? > > I would say that you could do this in *a* layer switcher just as easily > with WMS as with MapServer Layers -- either one can accept multiple > layers in a request. However, I believe that this advanced level of > functionality belongs outside the OpenLayers.Control.LayerSwitcher. > > It is a good idea in general though, and might help solve your problem. > > Regards, > -- > Christopher Schmidt > MetaCarta > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From f.vanderbiest at gmail.com Fri Apr 11 04:55:22 2008 From: f.vanderbiest at gmail.com (=?ISO-8859-1?Q?Fran=E7ois_Van_Der_Biest?=) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> Message-ID: <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> Hi David, FramedCloud Popup extends Framed Popup, and inside this class, you'll find the answer to your question : setOpacity:function(opacity) { //does nothing since we suppose that we'll never apply an opacity // to a framed popup } Regards, F. 2008/4/11, David Martin : > > Hi, > > > > I have just tried to setOpacity on a framedcloud and cannot seem to make > it work the command is as follows: > > > > function registerPopUp() { > > popup = new OpenLayers.Popup.FramedCloud("ppnt_p", newOpenLayers.LonLat(0,0), > new OpenLayers.Size(300,300), 'This is a test', null, true, onPopupClose); > > popup.setOpacity(0.7); > > ppnt.map.addPopup(popup); > > } > > > > It does not seem to do anything at all. Is this support in Framedcloud? > > Regards > David Martin > Managing Director > I.T. Beyond Pty Ltd > > Postal: > > PO BOX 967 > HILLARYS WA 6923 > > Ph: > > (08) 9403 3737 > > Mobile: > > 0417 677 275 > > Fax: > > (08) 9403 3738 > > Skype: > > itbeyond_david > ------------------------------ > > Check out our websites: www.ExplorOz.com and > www.itbeyond.com.au > ------------------------------ > > _______________________________________________ > 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/20080411/30ea0917/attachment.html From f.vanderbiest at gmail.com Fri Apr 11 05:04:10 2008 From: f.vanderbiest at gmail.com (=?ISO-8859-1?Q?Fran=E7ois_Van_Der_Biest?=) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> Message-ID: <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> ... But I guess you could apply some opacity to the cloud-popup-relative.png image with an image editor, and that would do the trick if you do not need to adjust opacity programatically. F. 2008/4/11, Fran?ois Van Der Biest : > > Hi David, > > FramedCloud Popup extends Framed Popup, and inside this class, you'll find > the answer to your question : > > setOpacity:function(opacity) { > //does nothing since we suppose that we'll never apply an opacity > // to a framed popup > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080411/9933691e/attachment.html From David at itbeyond.com.au Fri Apr 11 05:09:08 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB4FE@ITB-SVR-01.itbeyond.local> Thanks - I will create a series of images with differing opacity and point to these. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: Fran?ois Van Der Biest [mailto:f.vanderbiest@gmail.com] Sent: Friday, 11 April 2008 5:04 PM To: David Martin Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameClould setOpacity does not seem to work ... But I guess you could apply some opacity to the cloud-popup-relative.png image with an image editor, and that would do the trick if you do not need to adjust opacity programatically. F. 2008/4/11, Fran?ois Van Der Biest : Hi David, FramedCloud Popup extends Framed Popup, and inside this class, you'll find the answer to your question : setOpacity:function(opacity) { //does nothing since we suppose that we'll never apply an opacity // to a framed popup } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080411/acc6e4b4/attachment.html From penyaskito at gmail.com Fri Apr 11 07:21:15 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Can Openlayers read a GML from a webservice? In-Reply-To: References: <5ec103de0804092331w50085968xb5e5fa0bec74fbf1@mail.gmail.com> Message-ID: Hola Carlos, I never done it before, but you CAN do what you want. You can read GML from a web service, but for reading from a SOAP web service it will need more code on the client. In the terms of .NET platform, you should create a ASP.net handler (.ashx) or a ASP.NET page (.aspx), and generate the GML file with Response.Write (don't forget the HTTP headers). I think that using a 'Web service' (.asmx) will be more difficult because of all the SOAP envelops. Hope this helps. On Fri, Apr 11, 2008 at 9:30 AM, Carlos Pinto wrote: > Hi Eric, > > We use Visual Studio 2005 and the server is in windows also. > > So we can programme webservices but they don't allow to put a Linux server > because they say that they can not support it and they don't allow to put > the mapserver in the windows server because they are afraid it affect the > performance of the web server. > > Of course I am pushing it, but I am afraid it takes some months :( > Maybe this does not make sense and I would agree with!!!!!! > > So I can make a webservice visible to javascript and this will be a > temporary solution. > > Thanks for your help, > > Carlos > > > > > On 4/10/08, Eric Lemoine wrote: > > On Wed, Apr 9, 2008 at 6:51 PM, Carlos Pinto wrote: > > > Hi all, > > > > Hi > > > > > > > > sorry if it is a stupid question. > > > But unfortunately I can't install mapserver because the IT department > don't > > > allow. > > > So the solution I have found is make the query to the database and write > a > > > GML file. After that I pass the URL of the file to OpenLayers. > > > But I thought, maybe instead of writing the GML file I can have a > > > webservice and tell OpenLayers to receive the layer from the webservice, > > > > You probably can. Just curious: your IT dep doesn't allow you to > > install MapServer so why would it allow you to install your own web > > service? > > > > > this way it would be faster. > > > I understand that in a normal situation openlayers would use mapserver > or > > > geoserver instead of calling a webservice. > > > > MapServer and GeoServer are Web Service providers. > > > > -- > > Eric > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Regards, Christian L?pez Esp?nola From zac.spitzer at gmail.com Fri Apr 11 07:55:55 2008 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Deactivate Draw-Control after feature added In-Reply-To: <47F9D7A8.3030700@kevinkempfer.de> References: <47F9D7A8.3030700@kevinkempfer.de> Message-ID: <7a85053e0804110455q30a3af7dx9d76dead033fd286@mail.gmail.com> I'm seeing the same issue with the trunk code at the moment, removing the deactivate from the featureAdded handler stops the error but i need a work around? any ideas? On Mon, Apr 7, 2008 at 6:13 PM, Kevin Kempfer wrote: > Hi, > > I'm trying to let the user draw a line feature and deactivate the draw > feature after the feature was added to the map. Here's my code: > > var drawControls = { > point: new OpenLayers.Control.DrawFeature(vectors, > OpenLayers.Handler.Point), > line: new OpenLayers.Control.DrawFeature(vectors, > > OpenLayers.Handler.Path,{featureAdded: > toggle } > ), > rectangle: new OpenLayers.Control.DrawFeature(vectors, > OpenLayers.Handler.Box), > select: new OpenLayers.Control.SelectFeature(vectors), > }; > > for(var key in drawControls) { > map.addControl(drawControls[key]); > } > > > function toggle(feature){ > var linecontrol = drawControls['line']; > linecontrol.deactivate(); > } > > I get an error as soon as the control gets deactivated: > this.point has no properties > -> this.point.destroy(); > > Here's the trace from FireBug: > destroyFeature()Point.js (line 128) > destroyFeature()Path.js (line 81) > finalize()Point.js (line 139) > dblclick(dblclick clientX=0, clientY=0)Path.js (line 240) > triggerEvent("dblclick", dblclick clientX=0, clientY=0)Events.js (line 612) > handleBrowserEvent(dblclick clientX=0, clientY=0)Events.js (line 640) > bindAsEventListener(dblclick clientX=0, clientY=0) > > Looks like the control gets deactivated too early in the feature-adding > process. Is there any advice on how to deactivate a draw control after > drawing a feature? > > Thanks, > > Kevin > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 From crschmidt at metacarta.com Fri Apr 11 09:22:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Deactivate Draw-Control after feature added In-Reply-To: <7a85053e0804110455q30a3af7dx9d76dead033fd286@mail.gmail.com> References: <47F9D7A8.3030700@kevinkempfer.de> <7a85053e0804110455q30a3af7dx9d76dead033fd286@mail.gmail.com> Message-ID: <20080411132201.GA1540@metacarta.com> On Fri, Apr 11, 2008 at 09:55:55PM +1000, Zac Spitzer wrote: > I'm seeing the same issue with the trunk code at the moment, removing > the deactivate from the > featureAdded handler stops the error but i need a work around? Did this work in 2.5? (Is it a regression?) -- Chris > any ideas? > > > On Mon, Apr 7, 2008 at 6:13 PM, Kevin Kempfer wrote: > > Hi, > > > > I'm trying to let the user draw a line feature and deactivate the draw > > feature after the feature was added to the map. Here's my code: > > > > var drawControls = { > > point: new OpenLayers.Control.DrawFeature(vectors, > > OpenLayers.Handler.Point), > > line: new OpenLayers.Control.DrawFeature(vectors, > > > > OpenLayers.Handler.Path,{featureAdded: > > toggle } > > ), > > rectangle: new OpenLayers.Control.DrawFeature(vectors, > > OpenLayers.Handler.Box), > > select: new OpenLayers.Control.SelectFeature(vectors), > > }; > > > > for(var key in drawControls) { > > map.addControl(drawControls[key]); > > } > > > > > > function toggle(feature){ > > var linecontrol = drawControls['line']; > > linecontrol.deactivate(); > > } > > > > I get an error as soon as the control gets deactivated: > > this.point has no properties > > -> this.point.destroy(); > > > > Here's the trace from FireBug: > > destroyFeature()Point.js (line 128) > > destroyFeature()Path.js (line 81) > > finalize()Point.js (line 139) > > dblclick(dblclick clientX=0, clientY=0)Path.js (line 240) > > triggerEvent("dblclick", dblclick clientX=0, clientY=0)Events.js (line 612) > > handleBrowserEvent(dblclick clientX=0, clientY=0)Events.js (line 640) > > bindAsEventListener(dblclick clientX=0, clientY=0) > > > > Looks like the control gets deactivated too early in the feature-adding > > process. Is there any advice on how to deactivate a draw control after > > drawing a feature? > > > > Thanks, > > > > Kevin > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > > -- > Zac Spitzer - > http://zacster.blogspot.com (My Blog) > +61 405 847 168 > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From zac.spitzer at gmail.com Fri Apr 11 09:46:30 2008 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Deactivate Draw-Control after feature added In-Reply-To: <20080411132201.GA1540@metacarta.com> References: <47F9D7A8.3030700@kevinkempfer.de> <7a85053e0804110455q30a3af7dx9d76dead033fd286@mail.gmail.com> <20080411132201.GA1540@metacarta.com> Message-ID: <7a85053e0804110646s20b4cc04xa96190f5e70d7473@mail.gmail.com> I am only seeing this with OpenLayers.Handler.RegularPolygon which seems to be exactly like the other handlers in to http://trac.openlayers.org/ticket/1143 this.layer has no properties [Break on this error] this.layer.renderer.clear(); RegularPolygon.js (line 365) (trunk) whilst using a done callback, both featureAdded and done callbacks throw an error when deactivating a control ( also on 2.5) z On Fri, Apr 11, 2008 at 11:22 PM, Christopher Schmidt wrote: > On Fri, Apr 11, 2008 at 09:55:55PM +1000, Zac Spitzer wrote: > > I'm seeing the same issue with the trunk code at the moment, removing > > the deactivate from the > > featureAdded handler stops the error but i need a work around? > > Did this work in 2.5? (Is it a regression?) > > -- Chris > > > > > any ideas? > > > > > > On Mon, Apr 7, 2008 at 6:13 PM, Kevin Kempfer wrote: > > > Hi, > > > > > > I'm trying to let the user draw a line feature and deactivate the draw > > > feature after the feature was added to the map. Here's my code: > > > > > > var drawControls = { > > > point: new OpenLayers.Control.DrawFeature(vectors, > > > OpenLayers.Handler.Point), > > > line: new OpenLayers.Control.DrawFeature(vectors, > > > > > > OpenLayers.Handler.Path,{featureAdded: > > > toggle } > > > ), > > > rectangle: new OpenLayers.Control.DrawFeature(vectors, > > > OpenLayers.Handler.Box), > > > select: new OpenLayers.Control.SelectFeature(vectors), > > > }; > > > > > > for(var key in drawControls) { > > > map.addControl(drawControls[key]); > > > } > > > > > > > > > function toggle(feature){ > > > var linecontrol = drawControls['line']; > > > linecontrol.deactivate(); > > > } > > > > > > I get an error as soon as the control gets deactivated: > > > this.point has no properties > > > -> this.point.destroy(); > > > > > > Here's the trace from FireBug: > > > destroyFeature()Point.js (line 128) > > > destroyFeature()Path.js (line 81) > > > finalize()Point.js (line 139) > > > dblclick(dblclick clientX=0, clientY=0)Path.js (line 240) > > > triggerEvent("dblclick", dblclick clientX=0, clientY=0)Events.js (line 612) > > > handleBrowserEvent(dblclick clientX=0, clientY=0)Events.js (line 640) > > > bindAsEventListener(dblclick clientX=0, clientY=0) > > > > > > Looks like the control gets deactivated too early in the feature-adding > > > process. Is there any advice on how to deactivate a draw control after > > > drawing a feature? > > > > > > Thanks, > > > > > > Kevin > > > > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > http://openlayers.org/mailman/listinfo/users > > > > > > > > > > > > > > -- > > Zac Spitzer - > > http://zacster.blogspot.com (My Blog) > > +61 405 847 168 > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > -- > Christopher Schmidt > MetaCarta > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 From david.fawcett at gmail.com Fri Apr 11 09:56:39 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB4FE@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> <9C37154DC7C8074FBC34214363755B7C1EB4FE@ITB-SVR-01.itbeyond.local> Message-ID: Please forgive a minor hijack, can anyone point me to an example app using FramedCloud? Thanks, David. On Fri, Apr 11, 2008 at 4:09 AM, David Martin wrote: > Thanks ? I will create a series of images with differing opacity and > point to these. > > Regards > David Martin > Managing Director > I.T. Beyond Pty Ltd > > Postal: > > PO BOX 967 > HILLARYS WA 6923 > > Ph: > > (08) 9403 3737 > > Mobile: > > 0417 677 275 > > Fax: > > (08) 9403 3738 > > Skype: > > itbeyond_david > ------------------------------ > > Check out our websites: www.ExplorOz.com and > www.itbeyond.com.au > ------------------------------ > > *From:* Fran?ois Van Der Biest [mailto:f.vanderbiest@gmail.com] > *Sent:* Friday, 11 April 2008 5:04 PM > *To:* David Martin > *Cc:* users@openlayers.org > *Subject:* Re: [OpenLayers-Users] FrameClould setOpacity does not seem to > work > > > > ... But I guess you could apply some opacity to the > cloud-popup-relative.png > image with an image editor, and that would do the trick if you do not need > to adjust opacity programatically. > > F. > > 2008/4/11, Fran?ois Van Der Biest : > > Hi David, > > FramedCloud Popup extends Framed Popup, and inside this class, you'll find > the answer to your question : > > setOpacity:function(opacity) { > //does nothing since we suppose that we'll never apply an opacity > // to a framed popup > } > > > > _______________________________________________ > 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/20080411/4fe8ad5d/attachment.html From crschmidt at metacarta.com Fri Apr 11 10:00:04 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> <9C37154DC7C8074FBC34214363755B7C1EB4FE@ITB-SVR-01.itbeyond.local> Message-ID: <20080411140004.GA2388@metacarta.com> On Fri, Apr 11, 2008 at 08:56:39AM -0500, David Fawcett wrote: > Please forgive a minor hijack, can anyone point me to an example app using > FramedCloud? 'app'? Probably not; it was only added to trunk immediately before RC1. * http://openlayers.org/dev/examples/sundials.html * http://openlayers.org/dev/examples/select-feature-openpopup.html Both use it though. Regards, -- Christopher Schmidt MetaCarta From graham.carlyle at maplecroft.com Fri Apr 11 11:09:35 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] identifying map regions/features on the client side Message-ID: <1207926575.6714.29.camel@charon> Hi I'm wanting to identify whether a mouse is clicking on (or hovering over) a region on my OpenLayers map and then do various things in response based on the identity of the region. (such as showing country information if you click on a particular country) I've implemented this by sending an x,y via AJAX off to the server, then getting the region identifier back and then doing the things in response. But unfortunately this can be quite slow with network latencies between the browser and server. It seems that a more responsive approach would be to do the region hit calculation client side. I'm guessing a Vector layer approach might facilitate this but as I understand it Vector (SVG/VML) layers aren't capable of showing very detailed maps and have cross browser "issues". I've seen a few enticing posts in the archive mentioning the possibility of adding an imagemap based approach to this sort of problem but nothing concrete seems to have happened. So I'm thinking a new layer type might provide this which would use much the same info as a vector layer uses (GML, KML etc.) but instead of rendering this vector info it would provide methods to identify the feature at an x,y location. Have I missed something? Am i barking up the wrong tree? cheers, Graham From crschmidt at metacarta.com Fri Apr 11 11:16:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] identifying map regions/features on the client side In-Reply-To: <1207926575.6714.29.camel@charon> References: <1207926575.6714.29.camel@charon> Message-ID: <20080411151656.GB3361@metacarta.com> On Fri, Apr 11, 2008 at 04:09:35PM +0100, Graham Carlyle wrote: > So I'm thinking a new layer type might provide this which would use much > the same info as a vector layer uses (GML, KML etc.) but instead of > rendering this vector info it would provide methods to identify the > feature at an x,y location. You don't even need a layer. 1. When your application loads, load your country data into the client, using Format.GML, Format.GeoJSON, etc. Even in relatively slow browsers, this is probably only a few seconds of time. 2. When a user hovers, do a: var selectedCountry = null; var g = new OpenLayers.Geometry.Point(x, y); for (var i=0; i < myFeatureList.length; i++) { if (myFeatureList[i].geometry.intersects(g)) { selectedCountry = myFeatureList[i].attributes.country_code; } } Then display your information. Regards, -- Christopher Schmidt MetaCarta From graham.carlyle at maplecroft.com Fri Apr 11 11:51:28 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] identifying map regions/features on the client side In-Reply-To: <20080411151656.GB3361@metacarta.com> References: <1207926575.6714.29.camel@charon> <20080411151656.GB3361@metacarta.com> Message-ID: <1207929088.6714.34.camel@charon> Ah excellent.. this seems to be a 2.6 bit of functionality, time to check out the release candidate! thanks, Graham On Fri, 2008-04-11 at 11:16 -0400, Christopher Schmidt wrote: > On Fri, Apr 11, 2008 at 04:09:35PM +0100, Graham Carlyle wrote: > > So I'm thinking a new layer type might provide this which would use much > > the same info as a vector layer uses (GML, KML etc.) but instead of > > rendering this vector info it would provide methods to identify the > > feature at an x,y location. > > You don't even need a layer. > > 1. When your application loads, load your country data into the client, > using Format.GML, Format.GeoJSON, etc. Even in relatively slow browsers, > this is probably only a few seconds of time. > > 2. When a user hovers, do a: > > var selectedCountry = null; > var g = new OpenLayers.Geometry.Point(x, y); > for (var i=0; i < myFeatureList.length; i++) { > if (myFeatureList[i].geometry.intersects(g)) { > selectedCountry = myFeatureList[i].attributes.country_code; > } > } > > Then display your information. > > Regards, From dario.gas at gmail.com Fri Apr 11 16:14:55 2008 From: dario.gas at gmail.com (dario gasparro) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] email Message-ID: <4b4548570804111314i251689daqc0775d8fd36dbec8@mail.gmail.com> dario.gas@gmail.com From dario.gas at gmail.com Fri Apr 11 16:16:04 2008 From: dario.gas at gmail.com (dario gasparro) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] help: reload georss layer Message-ID: <4b4548570804111316o4e594895y9685f823dfda1614@mail.gmail.com> hi people, how can i do for reload only a layer on a map? just know the step, i am trying to implent it but i am not abling. there is a map with 3 level all wms, and another with georss level i must reload only layer georss after made any changing in the xml... plz help me! From erik at iks-jena.de Fri Apr 11 17:51:32 2008 From: erik at iks-jena.de (Erik Heinz) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Transparent WMS overlay on top of a Google layer Message-ID: <20080411215132.GA32367@iks-jena.de> Hi, could anyone please point me to a working example of a transparent WMS layer as overlay over a Google Maps layer in EPSG:900913 projection? My current attempt looks like this: var options = { projection: "EPSG:900913", units: 'm', maxExtent: new OpenLayers.Bounds( 1272516.0, 6585124.3, 1319786.0, 6632981.0), controls: [new OpenLayers.Control.MouseDefaults()] }; map = new OpenLayers.Map('map', options); l_gsat = new OpenLayers.Layer.Google('Google', {type: G_SATELLITE_MAP, 'sphericalMercator': true} ); l_rr = new OpenLayers.Layer.WMS('Radrouten', 'http://wms.adfc-jena.de/rrtop.php?show=all', {layers:'Radrouten', format:'img/png', transparent:'true'}, {'reproject': false, 'isBaseLayer': false} ); map.addLayers([l_gsat,l_rr]); Complete example is at: http://www.adfc-jena.de/karte/radrouten1.php The Google layer is being displayed but the WMS server never gets queried. I played around changing parameters but without avail. (The WMS server is not a complete implementation but does only simple GetMap queries. It works fine as a single layer in OpenLayers though.) What I'm doing wrong here? Any help is greatly appreciated. I am using OpenLayers-2.5 for now. Thank you in advance, Erik From roald.dewit at lisasoft.com Fri Apr 11 19:00:19 2008 From: roald.dewit at lisasoft.com (Roald de Wit) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Transparent WMS overlay on top of a Google layer In-Reply-To: <20080411215132.GA32367@iks-jena.de> References: <20080411215132.GA32367@iks-jena.de> Message-ID: <47FFED83.3040601@lisasoft.com> Hi Erik, You're nearly there! You need to set a maxResolution option, say: maxResolution: 156543.0339, for example. I don't know why that is (can somebody please explain?). You also need to change you projection to a projection object instead of a string (although in your example you can get away with it). See [1] for more information. Regards, Roald [1] http://trac.openlayers.org/wiki/SphericalMercator Erik Heinz wrote: > Hi, > > could anyone please point me to a working example of a transparent > WMS layer as overlay over a Google Maps layer in EPSG:900913 projection? > > My current attempt looks like this: > > var options = { > projection: "EPSG:900913", > units: 'm', > maxExtent: new OpenLayers.Bounds( > 1272516.0, 6585124.3, 1319786.0, 6632981.0), > controls: [new OpenLayers.Control.MouseDefaults()] > }; > map = new OpenLayers.Map('map', options); > > l_gsat = new OpenLayers.Layer.Google('Google', > {type: G_SATELLITE_MAP, 'sphericalMercator': true} ); > > l_rr = new OpenLayers.Layer.WMS('Radrouten', > 'http://wms.adfc-jena.de/rrtop.php?show=all', > {layers:'Radrouten', format:'img/png', transparent:'true'}, > {'reproject': false, 'isBaseLayer': false} > ); > > map.addLayers([l_gsat,l_rr]); > > Complete example is at: http://www.adfc-jena.de/karte/radrouten1.php > The Google layer is being displayed but the WMS server never gets queried. > I played around changing parameters but without avail. > > (The WMS server is not a complete implementation but does only simple GetMap > queries. It works fine as a single layer in OpenLayers though.) > > What I'm doing wrong here? Any help is greatly appreciated. > I am using OpenLayers-2.5 for now. > > Thank you in advance, > Erik > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From richard.greenwood at gmail.com Fri Apr 11 19:37:57 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom In-Reply-To: <16613255.post@talk.nabble.com> References: <16613255.post@talk.nabble.com> Message-ID: On Thu, Apr 10, 2008 at 12:39 PM, groby wrote: > > Hello, > > I am fairly new to OpenLayers and GIS in general and new to this list. I > have just setup an OpenLayers page. I am using MapServer as my WMS Server > and my data is held in PostGIS tables. > > I would like to know how can I create a way for a user to input text and to > zoom to the feature specified by the text. > > An example of what I am trying to accomplish: > Take the Feature Info Example at > http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted to > make it so a user could type in a country name then have the map zoom to the > extent of the country, how would I do so? It needs to be a general enough > example I could use it with any text field (for example, a Serial Number). > > I have found a few previous postings that seem to be asking a similar > question but not many answers. Any pointers to a nice or ugly solution are > appreciated. > > Thanks. > > Greg There are a couple ways to get an extent. 1. Making a non-WMS call to mapserver like: http://localhost/cgi-bin/mapserv?map=/path/to/mapfile.map&mode=itemnquery &qitem=id&qstring=123456&qlayer=ownership&mapext=shapes Using a simple mapfile like: [minx], [miny] [maxx], [maxy] Would return the extent of the feature(s) where id=123456. You could then use those values to set the OL extent. You can also use itemquery and itemnquery modes to highlight feature(s). 2. If your data in in PostGIS you can call the extent() function e.g.: SELECT extent(the_geom) FROM sometable WHERE id=123456; I have a small php page that I call with the query parameters and it returns the extent, which I then use to set the extent in the browser. In the mapfile I have a layer styled with a bright highlight. The layer has a filter so I again pass the id=123456 to select the objects that I want to highlight e.g.: FILTER "%id%" These suggestions may not be the WMS way, or the OL way, but they are tried-and-true MapServer methods for highlighting features and getting extents. HTH -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From David at itbeyond.com.au Fri Apr 11 21:46:04 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] FrameClould setOpacity does not seem to work In-Reply-To: References: <9C37154DC7C8074FBC34214363755B7C1EB4DA@ITB-SVR-01.itbeyond.local> <86169bba0804110155kbbaf036xe888b77cf6f980c8@mail.gmail.com> <86169bba0804110204i2efbf347l78185ca4201c1888@mail.gmail.com> <9C37154DC7C8074FBC34214363755B7C1EB4FE@ITB-SVR-01.itbeyond.local> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB503@ITB-SVR-01.itbeyond.local> David, You can see it running on my site. I have only added it with static data and will be modifying my WMS calls to use it next week. See these pages: http://www.exploroz.com/Directory/Categories/Campers_Trailers.aspx (Right hand side map uses random data selection) http://www.exploroz.com/Places/28159/NT/Ayers_Rock_Uluru.aspx (there are 77000 pages in places and this is just one) You will see the framedcloud in action in the places pages next week, the WMS queries (Add New Layer) will be utilising the framecloud's with maybe a dynamic WFS data call to populate the popup. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: David Fawcett [mailto:david.fawcett@gmail.com] Sent: Friday, 11 April 2008 9:57 PM To: David Martin Cc: Fran?ois Van Der Biest; users@openlayers.org Subject: Re: [OpenLayers-Users] FrameClould setOpacity does not seem to work Please forgive a minor hijack, can anyone point me to an example app using FramedCloud? Thanks, David. On Fri, Apr 11, 2008 at 4:09 AM, David Martin wrote: Thanks - I will create a series of images with differing opacity and point to these. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: Fran?ois Van Der Biest [mailto:f.vanderbiest@gmail.com] Sent: Friday, 11 April 2008 5:04 PM To: David Martin Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameClould setOpacity does not seem to work ... But I guess you could apply some opacity to the cloud-popup-relative.png image with an image editor, and that would do the trick if you do not need to adjust opacity programatically. F. 2008/4/11, Fran?ois Van Der Biest : Hi David, FramedCloud Popup extends Framed Popup, and inside this class, you'll find the answer to your question : setOpacity:function(opacity) { //does nothing since we suppose that we'll never apply an opacity // to a framed popup } _______________________________________________ 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/20080412/34f327fa/attachment.html From dario.gas at gmail.com Sat Apr 12 06:16:19 2008 From: dario.gas at gmail.com (dario gasparro) Date: Wed Sep 1 17:16:14 2010 Subject: [OpenLayers-Users] help: reload georss layer In-Reply-To: <4b4548570804111316o4e594895y9685f823dfda1614@mail.gmail.com> References: <4b4548570804111316o4e594895y9685f823dfda1614@mail.gmail.com> Message-ID: <4b4548570804120316l76bd4c54qd1a738b5c1b940cd@mail.gmail.com> hi people, how can i do for reload only a layer on a map? just know the step, i am trying to implent it but i am not abling. there is a map with 3 level all wms, and another with georss level i must reload only layer georss after made any changing in the xml... plz help me! From arnd.wippermann at web.de Sat Apr 12 08:33:45 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] help: reload georss layer In-Reply-To: <4b4548570804120316l76bd4c54qd1a738b5c1b940cd@mail.gmail.com> Message-ID: Hi, It seems it is not possible with 2.5. But if you use 2.6 look here: http://dev.openlayers.org/docs/files/OpenLayers/Layer/GeoRSS-js.html Perhaps with loadRSS it's possible. 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 dario gasparro Gesendet: Samstag, 12. April 2008 12:16 An: users@openlayers.org Betreff: [OpenLayers-Users] help: reload georss layer hi people, how can i do for reload only a layer on a map? just know the step, i am trying to implent it but i am not abling. there is a map with 3 level all wms, and another with georss level i must reload only layer georss after made any changing in the xml... plz help me! _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From eric.c2c at gmail.com Sat Apr 12 08:59:14 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] help: reload georss layer In-Reply-To: References: <4b4548570804120316l76bd4c54qd1a738b5c1b940cd@mail.gmail.com> Message-ID: <5ec103de0804120559g1f5b56ecoe077c113fac46690@mail.gmail.com> On Sat, Apr 12, 2008 at 2:33 PM, Arnd Wippermann wrote: > Hi, > > It seems it is not possible with 2.5. But if you use 2.6 look here: > > http://dev.openlayers.org/docs/files/OpenLayers/Layer/GeoRSS-js.html > > Perhaps with loadRSS it's possible. loadRSS() does northing if the RSS doc was already loaded. You can probably do: layer.loaded = false; layer.loadRSS(); to force reload. Note that this operation relies on properties that aren't part of the API. These properties can therefore be removed or renamed in future versions of OpenLayers. If you want your app to rely on API properties only, you can probably create a new GeoRSS layer each time you need reloading the GeoRSS document. If you think this isn't appropriate and a reload() API method is required, come up with good case for introducing this API method and it will be considered for inclusion into OpenLayers. Cheers, -- Eric From david.fawcett at gmail.com Sat Apr 12 21:42:02 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] GeoRss Flavors Message-ID: Is there a preferred flavor of GeoRSS to use with OpenLayers? David. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080412/ff3a9369/attachment.html From zac.spitzer at gmail.com Sat Apr 12 22:47:51 2008 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Drawing polygons issue with google maps Message-ID: <7a85053e0804121947h4b7181bfyb5314cad26a330c@mail.gmail.com> In the regularPolygons example, if you switch the base layer to google, you can't draw beyond a certain resolution, the polygons get created but not drawn on screen, if you zoom back in in they appear. Also if you draw a polygon say over Africa, and then start to pan across the globe, the polygon then starts to re-appear in different places all over the map? -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 From yangzhaozhao2008 at 163.com Sat Apr 12 23:11:07 2008 From: yangzhaozhao2008 at 163.com (Yang Zhaohui) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] In TMS layer,it display "lack of image". Message-ID: <480179CB.0001CE.15475@bj163app3.163.com> Hello dear sir, I have a problem to consult you. I make a TMS demo, restrict the map to a specific bound, and use a maxResolution. My codes are as follows. But it display "lack of image"(some 256*256 red box with a cross) in the region where there are out of the bound. How to control it, and do not let it display "lack of image"? Using the parameter "maxResolution"? How to calculate the value of the "maxResolution" of a TMS layer? Thank you very much! var bounds = new OpenLayers.Bounds(103.944322120274,30.633607944233,104.154306379013,30.8435922029719); ...... var map_options={ controls:[new OpenLayers.Control.MouseDefaults()] ,'maxExtent': bounds ,'projection': 'EPSG:4326' ,numZoomLevels: 3 ,maxResolution:0.00082025101069921875 ,units: "degrees" }; map = new OpenLayers.Map( 'map' , map_options ); var tms_options={ layername: 'basic' , type:'jpg' ,'maxExtent': bounds ,displayOutsideMaxExtent: false }; layer = new OpenLayers.Layer.TMS( "TMS", "http://localhost:8080/functions/", tms_options ); ...... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080413/249fa5cb/attachment.html From crschmidt at metacarta.com Sun Apr 13 09:02:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] GeoRss Flavors In-Reply-To: References: Message-ID: <20080413130200.GA9538@metacarta.com> On Sat, Apr 12, 2008 at 08:42:02PM -0500, David Fawcett wrote: > Is there a preferred flavor of GeoRSS to use with OpenLayers? "One that works." It should do GeoRSS Simple in 2.5, and GeoRSS Simple + GML in trunk. It should do GeoRSS 2.0, Atom, and I think there's support for RSS 1.0 + w3cgeo in 2.5 and trunk as well. Paste your RSS into http://openlayers.org/dev/examples/vector-formats.html and select GeoRSS to check. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Apr 13 09:06:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Drawing polygons issue with google maps In-Reply-To: <7a85053e0804121947h4b7181bfyb5314cad26a330c@mail.gmail.com> References: <7a85053e0804121947h4b7181bfyb5314cad26a330c@mail.gmail.com> Message-ID: <20080413130631.GB9538@metacarta.com> On Sun, Apr 13, 2008 at 12:47:51PM +1000, Zac Spitzer wrote: > In the regularPolygons example, if you switch the base layer to > google, you can't > draw beyond a certain resolution, the polygons get created but not > drawn on screen, > if you zoom back in in they appear. > > Also if you draw a polygon say over Africa, and then start to pan > across the globe, the > polygon then starts to re-appear in different places all over the map? My first answer to any and all Google problems is likely to be "Does it happen when you use Spherical Mercator?" In this case, the answer is a resounding 'no': So I'd suggest that you use spherical mercator with any Google layer you plan to draw on top of. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Apr 13 09:08:23 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] In TMS layer,it display "lack of image". In-Reply-To: <480179CB.0001CE.15475@bj163app3.163.com> References: <480179CB.0001CE.15475@bj163app3.163.com> Message-ID: <20080413130823.GC9538@metacarta.com> On Sun, Apr 13, 2008 at 11:11:07AM +0800, Yang Zhaohui wrote: > Hello dear sir, > I have a problem to consult you. I make a TMS demo, restrict the > map to a specific bound, and use a maxResolution. My codes are as > follows. But it display "lack of image"(some 256*256 red box with a > cross) in the region where there are out of the bound. How to > control it, and do not let it display "lack of image"? Using the > parameter "maxResolution"? How to calculate the value of the > "maxResolution" of a TMS layer? Thank you very much! OpenLayers does not have the ability to load a subset of tiles from a TMS layer: you get 'all or nothing'. If you control the generation of your TMS tiles, you can change your maxExtent and maxResolution on the server to match the ones used on the client, and TMS will work. Regards, -- Christopher Schmidt MetaCarta From tara_athan at alt2is.com Sun Apr 13 11:17:42 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] spherical mercator example Message-ID: <48022416.9080202@alt2is.com> I am trying to understand the spherical mercator example http://openlayers.org/dev/examples/spherical-mercator.html So I copied the source to my website, changed the relative reference for the OpenLayers script to and changed the Google API key to the one for my website. When I open this page I get the following error in Firebug: OpenLayers.Projection is not a constructor projection: new OpenLayers.Projection("EPSG:900913"), Can anyone tell me what I am doing wrong? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan [AT] alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From rdmailings at duif.net Sun Apr 13 14:37:00 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] spherical mercator example In-Reply-To: <48022416.9080202@alt2is.com> References: <48022416.9080202@alt2is.com> Message-ID: <480252CC.80309@duif.net> Hi Tara, I think http://openlayers.org/api/OpenLayers.js will return you openlayers 2.5, and Projection is available in trunk/2.6 So you have to get trunk and build a OpenLayers.js yourself (or point to the OpenLayers.js of the example itself? Or if you download 2.5 from: http://www.openlayers.org/download/OpenLayers-2.5.zip in the examples dir of that one there is a spherical-mercator.html which doesn't use Projection (yet). Hope this helps, Regards Richard Duivenvoorde Tara Athan wrote: > I am trying to understand the spherical mercator example > http://openlayers.org/dev/examples/spherical-mercator.html > So I copied the source to my website, changed the relative reference for > the OpenLayers script to > > and changed the Google API key to the one for my website. > > When I open this page I get the following error in Firebug: > OpenLayers.Projection is not a constructor > projection: new OpenLayers.Projection("EPSG:900913"), > Can anyone tell me what I am doing wrong? > > Thanks, Tara > From aboudreault at mapgears.com Sun Apr 13 21:40:00 2008 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Pink tiles problem with IE6 Message-ID: <4802B5F0.5070107@mapgears.com> Hi, I have a problem with pink tile under Internet Explorer 6. I found a old post on the mailing-list who describe exactly my problem. http://www.nabble.com/Possible-pink-tile-fix-td14762516.html I have already implemented this fix but im wondering if there an official issue of this problem. Thanks, Alan -- Alan Boudreault Mapgears http://www.mapgears.com From crschmidt at metacarta.com Sun Apr 13 22:19:26 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Pink tiles problem with IE6 In-Reply-To: <4802B5F0.5070107@mapgears.com> References: <4802B5F0.5070107@mapgears.com> Message-ID: <20080414021926.GB20046@metacarta.com> On Sun, Apr 13, 2008 at 09:40:00PM -0400, Alan Boudreault wrote: > Hi, > > I have a problem with pink tile under Internet Explorer 6. I found a old > post on the mailing-list who describe exactly my problem. > http://www.nabble.com/Possible-pink-tile-fix-td14762516.html > > I have already implemented this fix but im wondering if there an > official issue of this problem. It appears that this never got filed in a ticket, so it didn't enter the collective memory of the project as effectively as it might have. Feel free to file it in trac, and we'll look at it for our next release. Regards, -- Christopher Schmidt MetaCarta From hwang at i-fone.net Sun Apr 13 22:42:50 2008 From: hwang at i-fone.net (hwangc) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Problem with PointTrack and IE Message-ID: <16670454.post@talk.nabble.com> I'm experimenting the PointTrack layer with Text Layer. It's working fine with FireFox but have some problem with IE. In IE(6 & 7), there's a offset between the point and track. I've tried it on different OL versions (2.6-rc2, nightly build, and the one the sample is linked on /dev) but the problem still exist. The test page I have is at http://tracker.skyfly.com.tw/test_001.php Please advise. Thanks. -- View this message in context: http://www.nabble.com/Problem-with-PointTrack-and-IE-tp16670454p16670454.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From hwang at i-fone.net Sun Apr 13 23:07:18 2008 From: hwang at i-fone.net (hwang@i-fone.net) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Problem with PointTrack and IE In-Reply-To: <16670454.post@talk.nabble.com> References: <16670454.post@talk.nabble.com> Message-ID: <4802CA66.1060102@i-fone.net> I've done some more digging and found that "
" tag (either the
in html or {text-align: center} in css) will cause this problem in IE. If I remove "
" in my html it will display fine. hwangc wrote: > I'm experimenting the PointTrack layer with Text Layer. It's working fine > with FireFox but have some problem with IE. > In IE(6 & 7), there's a offset between the point and track. I've tried it > on different OL versions (2.6-rc2, nightly build, and the one the sample is > linked on /dev) but the problem still exist. > The test page I have is at http://tracker.skyfly.com.tw/test_001.php > Please advise. Thanks. From yangzhaozhao2008 at 163.com Mon Apr 14 07:49:55 2008 From: yangzhaozhao2008 at 163.com (Yang Zhaohui) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] How can I donot let the map in the overview-map zoomed and moved? Message-ID: <17073058.1001121208173795844.JavaMail.coremail@bj163app70.163.com> Hello dear everyone, I find when I zoom in,zoom out or pan the map, the map in the overview-map is also zoomed in/out or moved. In my opinion,the overview map is called overview-map, because when I zoom-in the main map in a certain zoom-level and we do not know where the positon I am in the all map, it can show us a overview. But now the overview map is zoomed and moved following the main map,how it can play the role of a oveview-map? I want to know is there a way to let the map in the overview-map do not been moved and zoomed.Could you please give me some suggestions?Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080414/5afdf3cb/attachment.html From bartvde at osgis.nl Mon Apr 14 08:17:30 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] How can I donot let the map in the overview-map zoomed and moved? Message-ID: Hi, use something like: isSuitableOverview: function() {return true;} in your overview map constructor. Example: var overviewmap = new OpenLayers.Control.OverviewMap( {layers: [overviewlayer], size: new OpenLayers.Size(225, 180), minRectSize: 10, div: overviewdiv, isSuitableOverview: function() {return true;}, mapOptions: options}); Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Yang Zhaohui Naar: users Onderwerp: [OpenLayers-Users] How can I donot let the map in the overview-map zoomed and moved? Datum: 14/04/08 09:50 >  Hello dear everyone, >     I find when I zoom in,zoom out or pan the map, the map in the overview-map is also zoomed in/out or moved. In my opinion,the overview map is called overview-map, because when I zoom-in the main map in a certain zoom-level and we do not know where the positon I am in the all map, it can show us a overview. But now the overview map is zoomed and moved following the main map,how it can play the role of a oveview-map? I want to know is there a way to let the map in the overview-map do not been moved and zoomed.Could you please give me some suggestions?Thank you very much! >   >   >   > > ??????????????????????????????????VIP:8610-85519999 > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From kwegezeder at web.de Mon Apr 14 08:41:56 2008 From: kwegezeder at web.de (2StepForward) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] style externalGraphic and WFS new vector layer Message-ID: <16677397.post@talk.nabble.com> Hi all, and first nice to work with OL. Many things of what I will do work's as good as could, but with one thing I get on my bounds and need some help from you. I will use my own server side images with OL. It works great with a vector layer and a vector feature, where the style is set to externalGraphic: "........" and many other style defines. Also the dragging mechanism works fine. Now I have a consideration, but I don't know if it's true. If a WFS layer was defined as a new vector layer, meens without a featureClass definition, than all features of that WFS layer has a predefined style. If that true, and my debugger say yes, than it will be possible to add the externalGraphic, and a reference to my images on the server side, attribute to every style of the features. Is this consideration absurd, or is it a possibility to work with WFS features in mode of vector and combine it with external graphics of my own? Thanks, Klaus -- View this message in context: http://www.nabble.com/style-externalGraphic-and-WFS-new-vector-layer-tp16677397p16677397.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From kwegezeder at web.de Mon Apr 14 09:01:43 2008 From: kwegezeder at web.de (2StepForward) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] style externalGraphic and WFS new vector layer In-Reply-To: <16677397.post@talk.nabble.com> References: <16677397.post@talk.nabble.com> Message-ID: <16677406.post@talk.nabble.com> Hi all, now if have try it again and it works, cool..... I have set it up like this: var style_em = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); style_em.fillOpacity = 1; style_em.fillColor = "#000000"; style_em.pointRadius = 0; style_em.graphicWidth = 64; style_em.graphicHeight = 44; style_em.externalGraphic = "http://server/geoserver/prototyp/img/picture.gif"; var wfs4 = new OpenLayers.Layer.WFS( "EM", "http://server/geoserver/wfs?", { typename: 'WFS:em'}, { style: style_em }); map.addLayer(wfs4); Thats a very nice feature, Klaus 2StepForward wrote: > > Hi all, > > and first nice to work with OL. Many things of what I will do work's as > good as could, > but with one thing I get on my bounds and need some help from you. > > I will use my own server side images with OL. It works great with a vector > layer and a > vector feature, where the style is set to externalGraphic: "........" and > many other style defines. > Also the dragging mechanism works fine. > > Now I have a consideration, but I don't know if it's true. If a WFS layer > was defined as a new vector layer, meens without a featureClass > definition, than all features of that WFS layer has a predefined style. If > that true, and my debugger say yes, than it will be possible to add the > externalGraphic, and a reference to my images on the server side, > attribute to every style of the features. > > Is this consideration absurd, or is it a possibility to work with WFS > features in mode of vector and combine it with external graphics of my > own? > > Thanks, > Klaus > -- View this message in context: http://www.nabble.com/style-externalGraphic-and-WFS-new-vector-layer-tp16677397p16677406.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Apr 14 12:15:00 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Missing docs for OpenLayers and OpenLayers.parseXMLString and maybe others Message-ID: <48038304.1070101@swoodbridge.com> Hi all, Is this a doc bug or am I missing something. The doc at http://dev.openlayers.org/apidocs/files/OpenLayers/Ajax-js.html Does not include: OpenLayers.loadURL OpenLayers.parseXMLString and maybe some others. Thanks, -Steve From tschaub at openplans.org Mon Apr 14 13:04:20 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Missing docs for OpenLayers and OpenLayers.parseXMLString and maybe others In-Reply-To: <48038304.1070101@swoodbridge.com> References: <48038304.1070101@swoodbridge.com> Message-ID: <48038E94.5070008@openplans.org> Please do not use OpenLayers.parseXMLString. Can you explain what you are doing that requires it? Tim Stephen Woodbridge wrote: > Hi all, > > Is this a doc bug or am I missing something. The doc at > > http://dev.openlayers.org/apidocs/files/OpenLayers/Ajax-js.html > > Does not include: > > OpenLayers.loadURL > OpenLayers.parseXMLString > > and maybe some others. > > Thanks, > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,480374e774713362379201! > From woodbri at swoodbridge.com Mon Apr 14 15:20:48 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Missing docs for OpenLayers and OpenLayers.parseXMLString and maybe others In-Reply-To: <48038E94.5070008@openplans.org> References: <48038304.1070101@swoodbridge.com> <48038E94.5070008@openplans.org> Message-ID: <4803AE90.6080105@swoodbridge.com> Tim Schaub wrote: > Please do not use OpenLayers.parseXMLString. > > Can you explain what you are doing that requires it? Hi Tim, Thanks for the heads up. I have a geocoder that returns XML in addition to other formats and needed to parse it. I got a headache trying to figure out how to get my results out of the parsed document and switched to another format that was easy to parse into an array of objects. So I'm good. WRT the documentation, you might want to add a note to it or mark it as deprecated or whatever. Thanks, -Steve ADDRESS > Tim > > Stephen Woodbridge wrote: >> Hi all, >> >> Is this a doc bug or am I missing something. The doc at >> >> http://dev.openlayers.org/apidocs/files/OpenLayers/Ajax-js.html >> >> Does not include: >> >> OpenLayers.loadURL >> OpenLayers.parseXMLString >> >> and maybe some others. >> >> Thanks, >> -Steve >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> !DSPAM:4033,480374e774713362379201! >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From edfialk at gmail.com Mon Apr 14 15:08:16 2008 From: edfialk at gmail.com (Ed Fialkowski) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] possible to enable pan when mouse is over a feature? Message-ID: Hi all, I've tried searching but haven't quite found what I'm looking for so I hope this isn't a repeat post. I have all the US counties displayed as features from featureserver in an openlayers map. My problem is, every spot on the map always displays a feature (counties are everywhere), so if the user clicks anywhere on the map, it's the same thing as selecting a feature. If clicking anywhere on the map selects a feature, the only way to pan is using the arrows. Example: http://pocus.wustl.edu/wfs/ Anyone know if it's possible to disable the select and force a pan, maybe using the shift key or any other modifier or maybe another icon somewhere? Any help would be greatly appreciated. Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080414/9176727e/attachment.html From crschmidt at metacarta.com Mon Apr 14 16:10:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] possible to enable pan when mouse is over a feature? In-Reply-To: References: Message-ID: <20080414201044.GA4204@metacarta.com> On Mon, Apr 14, 2008 at 02:08:16PM -0500, Ed Fialkowski wrote: > Anyone know if it's possible to disable the select and force a pan, maybe > using the shift key or any other modifier or maybe another icon somewhere? Yes, this is what the Control.Panel is designed for: see NavigationToolbar, EditingToolbar, etc. Also, most of the OpenLayers examples of controls do this in a way that you can replicate at the application level. I suggest looking at the examples to get a feel for the way to do this, or at the panel.html for an example of creating your own panel. Regards, -- Christopher Schmidt MetaCarta From csabbey at gmail.com Mon Apr 14 16:14:52 2008 From: csabbey at gmail.com (geoman) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] draw a line on a map? Message-ID: <16689097.post@talk.nabble.com> I'm new to OpenLayers; I'm evaluating it for a current project. I'm going to be getting WKT for road segments from a database, and I want to highlight those segments on a map. However, I haven't been able to get past this error: Error: uncaught exception: [Exception... "String contains an invalid character" code: "5" nsresult: "0x80530005 (NS_ERROR_DOM_INVALID_CHARACTER_ERR)" location: "http://openlayers.org/api/OpenLayers.js Line: 554"] Here is the code I was using:
I tried lots of different variations, but nothing that proved useful, so I left them out. Can anyone spot my issue? Thanks in advance, Craig -- View this message in context: http://www.nabble.com/draw-a-line-on-a-map--tp16689097p16689097.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Mon Apr 14 16:20:08 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] draw a line on a map? In-Reply-To: <16689097.post@talk.nabble.com> References: <16689097.post@talk.nabble.com> Message-ID: <20080414202008.GA4244@metacarta.com> On Mon, Apr 14, 2008 at 01:14:52PM -0700, geoman wrote: > > I'm new to OpenLayers; I'm evaluating it for a current project. I'm going to > be getting WKT for road segments from a database, and I want to highlight > those segments on a map. However, I haven't been able to get past this > error: > Error: uncaught exception: [Exception... "String contains an invalid > character" code: "5" nsresult: "0x80530005 > (NS_ERROR_DOM_INVALID_CHARACTER_ERR)" location: > "http://openlayers.org/api/OpenLayers.js Line: 554"] The WKT format returns Features, not geometries. > var wkt = "LINESTRING(-73.9444 40.75921,-73.96892 40.76396)"; > var geometry = parser.read(wkt); > var feature = new OpenLayers.Feature.Vector(geometry); Should just be: > var wkt = "LINESTRING(-73.9444 40.75921,-73.96892 40.76396)"; > var feature = parser.read(wkt); Regards, -- Christopher Schmidt MetaCarta From John.Westwood at port.ac.uk Mon Apr 14 18:34:39 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in Message-ID: <4803EA0F02000053000353C1@stirling.iso.port.ac.uk> Hi, I am using OpenLayers with Tilecache and MapServer. When I zoom into the map the right and top maximum extents of the map shrink. This does not happen with every zoom, it seems to occur every alternate zoom. The left and bottom extents are not affected. Initially, I thought it could be a Tilecache issue, so I disabled that but it did not help. I also tried setting maxResolution to auto rather than 8000.0, but that didn't work either. Specifying a resolutions array also did not solve the problem. My map is in LCC-ETRS89 projection (epsg:3034) and my maxExtent is 600000, 600000, 6000000, 6000000. I have numZoomLevels set to 12. Another weird thing I noticed is that when I alter my maxExtent by a small amount (eg +- 100000) then the extent of the map may not change. It will only change if I specify a larger change in the maxExtent. I don't know if that is related to the problem. Does anybody have any ideas how to fix this or what could be causing the problem? Have I discovered a bug in OpenLayers? :) Please help! From clems_mars at hotmail.com Tue Apr 15 03:57:01 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Mistake on OpenLayer Message-ID: Hi! First, excuse me for my English, I'm french and you'll find many mistakes in this mail. ^^ I'm writing to you because I have a very strange probleme with OpenLayers. I'm using Mapserver for my student placement and then, I want to show the image that I obtain. No problems with that. Now, I want to provide to the user, the possibility to pan the image, to zoom in and out. So I discover openLayers and try to use it! But when I try to see my map, I obtain a white image. I join you my code. Can you tell me my mistake? Thank you for your help and the comprehension of my very poor english. Clement --------------------------------------------------------------------------------------------- LeGuide.aero: Pr?parez votre voyage en toute s?rennit?... ^^ _________________________________________________________________ Recevez tous vos e-mails sur un seul compte ! Cr?ez une adresse Hotmail ! http://www.windowslive.fr/hotmail/default.asp From clems_mars at hotmail.com Tue Apr 15 03:58:34 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The code that I forgot ^^ Message-ID: _________________________________________________________________ Votre contact a choisi Hotmail, l'e-mail ultra s?curis?. Cr?ez un compte gratuitement ! http://www.windowslive.fr/hotmail/default.asp From clems_mars at hotmail.com Tue Apr 15 04:00:13 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The code that I forgot ^^ Message-ID: Excuse but my mail box doesn't like the HTML code :) Sincerely yours Clement function init() { map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map", {layers: 'FRANCE'}, {gutter: 1}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } _________________________________________________________________ Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail From kusum at infobase.in Tue Apr 15 04:07:05 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The code that I forgot ^^ References: Message-ID: <7BAF9FB0253446BA9A4A84816A06843C@kusum> &zoomsize=2&zoomdir=1&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=D:/ms4w/apps/maplab-2.2/workshop/tmp/&map_web_imageurl=../tmp/" add these parameters to layer path.... -------------------------------------------------- From: "Clemiou" Sent: Tuesday, April 15, 2008 1:30 PM To: Subject: [OpenLayers-Users] The code that I forgot ^^ > > Excuse but my mail box doesn't like the HTML code :) > > Sincerely yours > Clement > > > > function init() > { > map = new OpenLayers.Map( 'map' ); > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > > "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map", > {layers: 'FRANCE'}, > {gutter: 1}); > map.addLayer(layer); > > map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > map.addControl( new OpenLayers.Control.LayerSwitcher() ); > } > > > _________________________________________________________________ > Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre > mobile ! > http://www.messengersurvotremobile.com/?d=hotmail > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From zac.spitzer at gmail.com Tue Apr 15 04:27:03 2008 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The code that I forgot ^^ In-Reply-To: <7BAF9FB0253446BA9A4A84816A06843C@kusum> References: <7BAF9FB0253446BA9A4A84816A06843C@kusum> Message-ID: <7a85053e0804150127v3af73931m7e9606ca12fa6d7e@mail.gmail.com> it's not clear from your sample code if you passing in a lat lon and zoom? if that's missing openlayers doesn't know what to display and you don't get a map installing firebug for firefox is really useful to debug any problem you might be having, as is livehttpheaders z On Tue, Apr 15, 2008 at 6:07 PM, Kusum wrote: > &zoomsize=2&zoomdir=1&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=D:/ms4w/apps/maplab-2.2/workshop/tmp/&map_web_imageurl=../tmp/" > > add these parameters to layer path.... > > -------------------------------------------------- > From: "Clemiou" > Sent: Tuesday, April 15, 2008 1:30 PM > To: > Subject: [OpenLayers-Users] The code that I forgot ^^ > > > > > > > Excuse but my mail box doesn't like the HTML code :) > > > > Sincerely yours > > Clement > > > > > > > > function init() > > { > > map = new OpenLayers.Map( 'map' ); > > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > > > > "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map", > > {layers: 'FRANCE'}, > > {gutter: 1}); > > map.addLayer(layer); > > > > map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > > map.addControl( new OpenLayers.Control.LayerSwitcher() ); > > } > > > > > > _________________________________________________________________ > > Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre > > mobile ! > > http://www.messengersurvotremobile.com/?d=hotmail > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 From clems_mars at hotmail.com Tue Apr 15 05:15:40 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Add-on for my mistake Message-ID: In addition, if I put the following URL in my browser, I obtain: http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map "mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. ". I'm seeing examples on the web and this URL seems to be correct. Thank you for your help because I can't continue my student placement without the solution of this mistake. Sincerely yours Clement _________________________________________________________________ Votre contact a choisi Hotmail, l'e-mail ultra s?curis?. Cr?ez un compte gratuitement ! http://www.windowslive.fr/hotmail/default.asp From shiprabhardwaj at infobase.in Tue Apr 15 05:24:23 2008 From: shiprabhardwaj at infobase.in (shipra) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Add-on for my mistake References: Message-ID: <2702F9F8AA514D6082DA30498078163E@shiprabhardwaj> Hi, Try adding this code in your france.map file WEB TEMPLATE "C:/ms4w/apps/maplab-2.2/workshop/OpenLayers-2.5/examples/a.html" //any html file HEADER "map_header.html" FOOTER "map_footer.html" IMAGEPATH "C:/ms4w/apps/maplab-2.2/workshop/tmp/" IMAGEURL "../tmp/" METADATA END # Metadata END # Web -------------------------------------------------- From: "Clemiou" Sent: Tuesday, April 15, 2008 2:45 PM To: Subject: [OpenLayers-Users] Add-on for my mistake > > In addition, if I put the following URL in my browser, I obtain: > > http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map > "mapserv(): Web application error. Traditional BROWSE mode requires a > TEMPLATE in the WEB section, but none was provided. ". > > I'm seeing examples on the web and this URL seems to be correct. > > Thank you for your help because I can't continue my student placement > without the solution of this mistake. > Sincerely yours > Clement > _________________________________________________________________ > Votre contact a choisi Hotmail, l'e-mail ultra s?curis?. Cr?ez un compte > gratuitement ! > http://www.windowslive.fr/hotmail/default.asp > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From John.Westwood at port.ac.uk Tue Apr 15 06:10:55 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in Message-ID: <48048D3F0200005300035477@stirling.iso.port.ac.uk> Hi, I am posting this again because my thread was hijacked the first time. I am using OpenLayers with Tilecache and MapServer. When I zoom into the map the right and top maximum extents of the map shrink. This does not happen with every zoom, it seems to occur every alternate zoom. The left and bottom extents are not affected. Initially, I thought it could be a Tilecache issue, so I disabled that but it did not help. I also tried setting maxResolution to auto rather than 8000.0, but that didn't work either. Specifying a resolutions array also did not solve the problem. My map is in LCC-ETRS89 projection (epsg:3034) and my maxExtent is 600000, 600000, 6000000, 6000000. I have numZoomLevels set to 12. Another weird thing I noticed is that when I alter my maxExtent by a small amount (eg +- 100000) then the extent of the map may not change. It will only change if I specify a larger change in the maxExtent. I don't know if that is related to the problem. Does anybody have any ideas how to fix this or what could be causing the problem? Have I discovered a bug in OpenLayers? :) Please help! From clems_mars at hotmail.com Tue Apr 15 09:25:34 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The latest request (I hope) Message-ID: Hi! I'm fighting with my map and OpenLayers and it's very hard ^^. OpenLayers print me a white image and if I put the image URL and clear the end, added by OpenLaysers (for &map_ext...), my map is OK. What can I do because my URL is good and it's the programme which added something which give me a white image. Thanks for your help and sorry for my english; Sincerely yours Clement _________________________________________________________________ Votre contact a choisi Hotmail, l'e-mail ultra s?curis?. Cr?ez un compte gratuitement ! http://www.windowslive.fr/hotmail/default.asp From zhenkan at gmail.com Tue Apr 15 09:30:54 2008 From: zhenkan at gmail.com (kb) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] How can i get the lonlat from feature Message-ID: I get the feature from the WKT,now I need get the lonlat info the feature(this feature is a point),and setCenter to this lonlat.But I just a new user of OL,anyone who can tell me which way I can do it.Or who have the other way to setCenter to this feature,please tell me.Thank you very much. -- Welcome Visit: http://zhenkan.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080415/305efd41/attachment.html From madair at dmsolutions.ca Tue Apr 15 09:49:59 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] The code that I forgot ^^ In-Reply-To: References: Message-ID: <4804B287.1060108@dmsolutions.ca> I just encountered something similar with the latest MS4W. I was getting an error on the image requests: loadForm(): Web application error. Invalid mode. but when I change the MapServer URL from 'localhost' to http://127.0.0.1/cgi-bin/mapserv.exe it worked, not at all sure why. Mike Clemiou wrote: > Excuse but my mail box doesn't like the HTML code :) > > Sincerely yours > Clement > > > > function init() > { > map = new OpenLayers.Map( 'map' ); > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map", {layers: 'FRANCE'}, > {gutter: 1}); > map.addLayer(layer); > > map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > map.addControl( new OpenLayers.Control.LayerSwitcher() ); > } > > > _________________________________________________________________ > Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! > http://www.messengersurvotremobile.com/?d=hotmail > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From csabbey at gmail.com Tue Apr 15 15:23:49 2008 From: csabbey at gmail.com (geoman) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] draw a line on a map? In-Reply-To: <20080414202008.GA4244@metacarta.com> References: <16689097.post@talk.nabble.com> <20080414202008.GA4244@metacarta.com> Message-ID: <16705780.post@talk.nabble.com> There were other issues with my code - I tried to start with an out of date example of pgRouting from http://pgrouting.postlbs.org/wiki/Workshop-DrawRoute Here is a page which details some other changes that are necessary to get this code to work against version 2.5 http://tainavn.blogspot.com/ Christopher Schmidt-4 wrote: > > On Mon, Apr 14, 2008 at 01:14:52PM -0700, geoman wrote: >> >> I'm new to OpenLayers; I'm evaluating it for a current project. I'm going >> to >> be getting WKT for road segments from a database, and I want to highlight >> those segments on a map. However, I haven't been able to get past this >> error: >> Error: uncaught exception: [Exception... "String contains an invalid >> character" code: "5" nsresult: "0x80530005 >> (NS_ERROR_DOM_INVALID_CHARACTER_ERR)" location: >> "http://openlayers.org/api/OpenLayers.js Line: 554"] > > The WKT format returns Features, not geometries. > >> var wkt = "LINESTRING(-73.9444 40.75921,-73.96892 40.76396)"; >> var geometry = parser.read(wkt); >> var feature = new OpenLayers.Feature.Vector(geometry); > > Should just be: > >> var wkt = "LINESTRING(-73.9444 40.75921,-73.96892 40.76396)"; >> var feature = parser.read(wkt); > > > 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/draw-a-line-on-a-map--tp16689097p16705780.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From csabbey at gmail.com Tue Apr 15 15:30:38 2008 From: csabbey at gmail.com (geoman) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] draw a line on a map? In-Reply-To: <16705780.post@talk.nabble.com> References: <16689097.post@talk.nabble.com> <20080414202008.GA4244@metacarta.com> <16705780.post@talk.nabble.com> Message-ID: <16705858.post@talk.nabble.com> Below is my what I ended up with to draw a line. When I pan the map North and South, the line does not stay fixed relative to the map - can someone please tell me what the issue is here?
geoman wrote: > > There were other issues with my code - I tried to start with an out of > date example of pgRouting from > http://pgrouting.postlbs.org/wiki/Workshop-DrawRoute > > Here is a page which details some other changes that are necessary to get > this code to work against version 2.5 > http://tainavn.blogspot.com/ > > -- View this message in context: http://www.nabble.com/draw-a-line-on-a-map--tp16689097p16705858.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ptang83 at yahoo.com Tue Apr 15 15:48:43 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. Message-ID: <741324.97038.qm@web31808.mail.mud.yahoo.com> I used Mapserver + Openlayers. I can load shp data and display it (The image displayed in openlayer is small). However, somehow I am not able to display any raster map even. I only see a blank rectangular on my web browzer. I can use shp2img utility to generate this image. It just didn't display in the openlayer. Thanks in advance.. I have downloaded ms4w Mapserver and has the following config. # Apache 2.2.8 # PHP 5.2.5 # mapserv 5.0.2 at /cgi-bin/mapserv.exe =========================== LOG files show nothing wrong: ====================================== Sun Apr 13 21:57:14 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 -90.000000 180.000000 90.000000,-1.000000 -1.000000,,normal execution Sun Apr 13 21:57:14 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 -90.000000 0.000000 90.000000,-1.000000 -1.000000,,normal execution ======================================= MAP file: ========================================= # Map file created from QGIS project file C:/Program Files/Quantum GIS/nitelti020l.qgs # Edit this file to customize for your map interface MAP NAME nitelti020l # Map image size SIZE 600 600 UNITS dd EXTENT -6086744.000000 -5878356.737659 4278894.138000 7580130.593659 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'wms_title' 'nitelti020l' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END WEB LOG "c:\tmp\mapserv.log" END LAYER NAME 'nitelti020l' TYPE RASTER DATA 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' METADATA 'wms_title' 'nitelti020l' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION # 'proj=longlat' # 'ellps=WGS84' # 'datum=WGS84' # 'no_defs' "init=epsg:4326" END END END ============== Raster date download ============== http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz ================ simple open layer code ================
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From crschmidt at metacarta.com Tue Apr 15 15:58:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. In-Reply-To: <741324.97038.qm@web31808.mail.mud.yahoo.com> References: <741324.97038.qm@web31808.mail.mud.yahoo.com> Message-ID: <20080415195854.GA24864@metacarta.com> On Tue, Apr 15, 2008 at 12:48:43PM -0700, ptang83@yahoo.com wrote: > I used Mapserver + Openlayers. I can load shp data and display it (The image displayed in openlayer is small). However, somehow I am not able to display any raster map even. I only see a blank rectangular on my web browzer. I can use shp2img utility to generate this image. It just didn't display in the openlayer. "Causing a URL to return content you want is the responsibility of other software. Causing OpenLayers to load that URL is the responsibility of OpenLayers." -- http://trac.openlayers.org/wiki/TroubleshootingTips#Problemswithimagesbeingincorrect > > Thanks in advance.. > > > I have downloaded ms4w Mapserver and has the following config. > # Apache 2.2.8 > # PHP 5.2.5 > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > =========================== > LOG files show nothing wrong: > ====================================== > Sun Apr 13 21:57:14 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 -90.000000 180.000000 90.000000,-1.000000 -1.000000,,normal execution > Sun Apr 13 21:57:14 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 -90.000000 0.000000 90.000000,-1.000000 -1.000000,,normal execution > ======================================= > MAP file: > ========================================= > # Map file created from QGIS project file C:/Program Files/Quantum GIS/nitelti020l.qgs > # Edit this file to customize for your map interface > MAP > NAME nitelti020l > # Map image size > SIZE 600 600 > UNITS dd > > EXTENT -6086744.000000 -5878356.737659 4278894.138000 7580130.593659 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > > END > > # Background color for the map canvas -- change as desired > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > #IMAGEMODE PC256 > EXTENSION 'jpeg' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH '/tmp/' > > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL '/tmp/' > > # WMS server settings > METADATA > 'wms_title' 'nitelti020l' > 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv?map=wms.map&' > 'wms_srs' 'EPSG:4326' > END > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > END > > WEB > LOG "c:\tmp\mapserv.log" > END > > LAYER > NAME 'nitelti020l' > TYPE RASTER > DATA 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > METADATA > 'wms_title' 'nitelti020l' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > # 'proj=longlat' > # 'ellps=WGS84' > # 'datum=WGS84' > # 'no_defs' > "init=epsg:4326" > END > END > > END > > > ============== > Raster date download > ============== > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > ================ > simple open layer code > ================ > > > > > > > >
> > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From John.Westwood at port.ac.uk Tue Apr 15 15:59:53 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in In-Reply-To: <48048D3F0200005300035477@stirling.iso.port.ac.uk> References: <48048D3F0200005300035477@stirling.iso.port.ac.uk> Message-ID: <16707445.post@talk.nabble.com> I checked the zoomLevels example that comes with OpenLayers and this suffers from the same problem. So I guess that this means it is a bug in OpenLayers. Any idea when it may be fixed? I am using OpenLayers with Tilecache and MapServer. When I zoom into the map the right and top maximum extents of the map shrink. This does not happen with every zoom, it seems to occur every alternate zoom. The left and bottom extents are not affected. -- View this message in context: http://www.nabble.com/Maximum-extent-shrinks-when-zooming-in-tp16699035p16707445.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From groby at tce.coop Tue Apr 15 16:00:52 2008 From: groby at tce.coop (Gregory Roby) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Query Feature by Attribute and Zoom In-Reply-To: <47FE8135.10701@neogeo-online.net> References: <16613255.post@talk.nabble.com> <47FE6EEE.6000609@neogeo-online.net> <001401c89b4d$5d0c3f90$1724beb0$@coop> <47FE8135.10701@neogeo-online.net> Message-ID: <005501c89f33$69277080$3b765180$@coop> Thanks to Guillaume and Brad for their suggestions to get me on the right path, I have the feature working as I wanted now. I decided to use GeoDjango because I will be doing some other tasks with it in the future. Getting the transform function in GeoDjango took quite a bit of work (I ended up hacking the django/contrib/gis/gdal/libgdal.py file and setting the lib_name manually to the location of my libgdal.so file). All of the other instructions on the GeoDjango Wiki worked for me. After getting everything installed and working, actually adding the zoom by attribute feature was the easy part. If a code example would be useful for anyone, here is how my Views file looks: # Create your views here. from django.template import Context, loader from django.http import HttpResponse from tcecmapviewer.basicviewer.models import * from django import newforms as forms def index(request): if request.method == 'POST': mapForm = MapForm(request.POST) else: mapForm = MapForm() myModel=MyModel.objects.all().filter(tagnumber=mapForm.data['TagNumber']) OpenLayersZoom=GetOpenLayersZoom(myModel) t = loader.get_template('/var/django/tcecmapviewer/templates/index.html') c = Context({'OpenLayersZoom': OpenLayersZoom, 'mapForm': mapForm}) return HttpResponse(t.render(c)) class MapForm(forms.Form): TagNumber=forms.CharField(max_length = 20) def GetOpenLayersZoom(Object): if(Object): OneObject=GetOne(Object) point=OneObject.Point.transform(4326, clone=True) return "map.setCenter(new OpenLayers.LonLat(" + str(point.x) + "," + str(point.y) + "), 14);" #Zoom into the point Object else: return "map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);" def GetOne(ListOrObject): """Helper Function, return the 1st object in a list or the object""" try: return ListOrObject[0] except: return ListOrObject My index.html (Template) file looks like this [modified slightly]:

Web Mapping Application Preview

{{ mapForm }}
Thanks again for the help. Greg -----Original Message----- From: Guillaume Sueur [mailto:guillaume.sueur@neogeo-online.net] Sent: Thursday, April 10, 2008 5:06 PM To: Gregory Roby Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Query Feature by Attribute and Zoom Maybe GeoDjango is a little bit oversized for this kind of thing ;-) Basically, you just need to pull the extent of where you want to zoom to on the client side and set the map extent with it. By the way, you can even probably grab it from Geonames (http://www.geonames.org/export/web-services.html#countryInfo) Cheers, Guillaume Gregory Roby a ?crit : > Guillaume, > > Thanks for the quick response, this nudges me in a direction that will solve > this (plus I can expand on it to solve a couple of other related issues I am > sure I will have in the coming month or so). > > It sounds like the simplest way based on what I already have knowledge of > then would be to: > > Create a HTML form in which a user enters the point. > Create a CGI Python program that gets the proper zoom-to extent (maybe using > GeoDjango, I have used Django a bit before). > Dynamically output the new map webpage from the CGI program with the added > Zoom to Extent Line. > > On rereading it, it sounds a bit different from what you suggested but the > same basic idea... > > I will post back in a week or so the results (and hopefully some code) in > case anyone is interested. > > > Greg > > > > > > -----Original Message----- > From: Guillaume Sueur [mailto:guillaume.sueur@neogeo-online.net] > Sent: Thursday, April 10, 2008 3:48 PM > To: groby > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Query Feature by Attribute and Zoom > > Hi Greg, > > As an WMS Server doesn't publish the features themselves, you will have > to use another method for the requested functionnality, even if the > layers can remain in WMS. > 1. If you don't have so many countries, you can grab the extents of each > of them manually and build a simple html select list with the extents in > the value field. OnChange, you will fire a function getting the extent > and setting your map extent with it. > 2. If you have many countries, or if these data change often, you can > build a simple web service sending you a stream (JSON for example) that > you will use to build dynamically the same list as above. On the server > side you can use many OpenSource tools to perform that : either > php/mapscript, or even ogrinfo, in fact any tool that will be able to > open your dataset and read the shapes in it. Of course, it's even > simpler if they are stored into postGIS ;-) > > Hope that helps, > > Guillaume > > groby a ?crit : >> Hello, >> >> I am fairly new to OpenLayers and GIS in general and new to this list. I >> have just setup an OpenLayers page. I am using MapServer as my WMS Server >> and my data is held in PostGIS tables. >> >> I would like to know how can I create a way for a user to input text and > to >> zoom to the feature specified by the text. >> >> An example of what I am trying to accomplish: >> Take the Feature Info Example at >> http://www.openlayers.org/dev/examples/getfeatureinfo.html. If I wanted > to >> make it so a user could type in a country name then have the map zoom to > the >> extent of the country, how would I do so? It needs to be a general enough >> example I could use it with any text field (for example, a Serial Number). > >> I have found a few previous postings that seem to be asking a similar >> question but not many answers. Any pointers to a nice or ugly solution > are >> appreciated. >> >> Thanks. >> >> Greg >> >> > > - > > > > > ------------------------------------------------------------------------ > > The information contained in this electronic mail transmission is intended by Tri-County > Electric Cooperative for the use of the named individual or entity to which it is directed > and may contain information that is confidential or privileged. If you have received this > electronic mail transmission in error, please delete it from your system without copying or > forwarding it, and notify the sender of the error by reply email so that the sender's address > records can be corrected. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net -------------- next part -------------- The information contained in this electronic mail transmission is intended by Tri-County Electric Cooperative for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. From ptang83 at yahoo.com Tue Apr 15 16:06:55 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. Message-ID: <390230.62254.qm@web31812.mail.mud.yahoo.com> I downloaded a demo which display a nice map through mapserver. The image is like this. http://www.mobilegeographics.com/mapserver/usa1.phtml The image is big and nice. When I changed it to display throught openlayers. The openlayer map only display a blank windows with all controls. If I change the "proj=lcc" to "proj=latlong" , then it display a map but the size of the map is very small and only occupied the upper lift corner of the openlayers div. Is there any way to make display fit the windows? Would like to take any suggestion. Thanks in advance! ========= usa1.html =========== // My Test MapServer Layer
============ map file ============== MAP NAME USA1 STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "C:\oatdir\statesp020.tar" EXTENT -8000000 300000 5000000 1500000 UNITS METERS PROJECTION "proj=latlong" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "C:\Program Files\ms4w\Apache\htdocs\tmp\" IMAGEURL "/tmp/" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS DEFAULT DATA 'C:\oatdir\statesp020.tar\statesp020' PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 60 60 60 COLOR 255 255 0 SYMBOL 0 END END END ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From crschmidt at metacarta.com Tue Apr 15 16:23:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in In-Reply-To: <16707445.post@talk.nabble.com> References: <48048D3F0200005300035477@stirling.iso.port.ac.uk> <16707445.post@talk.nabble.com> Message-ID: <20080415202302.GC24864@metacarta.com> On Tue, Apr 15, 2008 at 12:59:53PM -0700, zenzero-2001 wrote: > I checked the zoomLevels example that comes with OpenLayers and this suffers > from the same problem. So I guess that this means it is a bug in OpenLayers. > Any idea when it may be fixed? I don't consider anything you've thus far described a bug, so as far as I know, there is no plan to change it. Regards, -- Christopher Schmidt MetaCarta From ptang83 at yahoo.com Tue Apr 15 16:29:52 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. In-Reply-To: <20080415195854.GA24864@metacarta.com> Message-ID: <249649.53733.qm@web31811.mail.mud.yahoo.com> If I use openlayers to display, it looks like this. http://www.imagewoof.com/view_image/2ba4e1329/oplayers-display.bmp If I don't use openlayers then it looks like this. http://www.imagewoof.com/view_image/daacb1312/withoutopenlayers.JPG --- On Tue, 4/15/08, Christopher Schmidt wrote: > From: Christopher Schmidt > Subject: Re: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. > To: ptang83@yahoo.com > Cc: users@openlayers.org > Date: Tuesday, April 15, 2008, 2:58 PM > On Tue, Apr 15, 2008 at 12:48:43PM -0700, ptang83@yahoo.com > wrote: > > I used Mapserver + Openlayers. I can load shp data and > display it (The image displayed in openlayer is small). > However, somehow I am not able to display any raster map > even. I only see a blank rectangular on my web browzer. I > can use shp2img utility to generate this image. It just > didn't display in the openlayer. > > "Causing a URL to return content you want is the > responsibility of other > software. Causing OpenLayers to load that URL is the > responsibility of > OpenLayers." > > -- > http://trac.openlayers.org/wiki/TroubleshootingTips#Problemswithimagesbeingincorrect > > > > > Thanks in advance.. > > > > > > I have downloaded ms4w Mapserver and has the following > config. > > # Apache 2.2.8 > > # PHP 5.2.5 > > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > > =========================== > > LOG files show nothing wrong: > > ====================================== > > Sun Apr 13 21:57:14 > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 -90.000000 > 180.000000 90.000000,-1.000000 -1.000000,,normal execution > > Sun Apr 13 21:57:14 > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 -90.000000 > 0.000000 90.000000,-1.000000 -1.000000,,normal execution > > ======================================= > > MAP file: > > ========================================= > > # Map file created from QGIS project file C:/Program > Files/Quantum GIS/nitelti020l.qgs > > # Edit this file to customize for your map interface > > MAP > > NAME nitelti020l > > # Map image size > > SIZE 600 600 > > UNITS dd > > > > EXTENT -6086744.000000 -5878356.737659 > 4278894.138000 7580130.593659 > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > > > END > > > > # Background color for the map canvas -- change as > desired > > IMAGECOLOR 192 192 192 > > IMAGEQUALITY 95 > > IMAGETYPE jpeg > > OUTPUTFORMAT > > NAME jpeg > > DRIVER 'GD/JPEG' > > MIMETYPE 'image/jpeg' > > #IMAGEMODE PC256 > > EXTENSION 'jpeg' > > END > > # Legend > > LEGEND > > IMAGECOLOR 255 255 255 > > STATUS ON > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > > > # Web interface definition. Only the template > parameter > > # is required to display a map. See MapServer > documentation > > WEB > > # Set IMAGEPATH to the path where MapServer should > > # write its output. > > IMAGEPATH '/tmp/' > > > > # Set IMAGEURL to the url that points to IMAGEPATH > > # as defined in your web server configuration > > IMAGEURL '/tmp/' > > > > # WMS server settings > > METADATA > > 'wms_title' > 'nitelti020l' > > 'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > 'wms_srs' > 'EPSG:4326' > > END > > > > #Scale range at which web interface will operate > > # Template and header/footer settings > > # Only the template parameter is required to > display a map. See MapServer documentation > > END > > > > WEB > > LOG "c:\tmp\mapserv.log" > > END > > > > LAYER > > NAME 'nitelti020l' > > TYPE RASTER > > DATA > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > METADATA > > 'wms_title' 'nitelti020l' > > END > > STATUS DEFAULT > > TRANSPARENCY 100 > > PROJECTION > > # 'proj=longlat' > > # 'ellps=WGS84' > > # 'datum=WGS84' > > # 'no_defs' > > "init=epsg:4326" > > END > > END > > > > END > > > > > > ============== > > Raster date download > > ============== > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > ================ > > simple open layer code > > ================ > > xmlns="http://www.w3.org/1999/xhtml"> > > > > > > > > > > > > > >
> > > > > > > > > > > > > ____________________________________________________________________________________ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > -- > Christopher Schmidt > MetaCarta ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From ptang83 at yahoo.com Tue Apr 15 16:30:59 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. Message-ID: <253827.76433.qm@web31813.mail.mud.yahoo.com> If I use openlayers to display, it looks like this. http://www.imagewoof.com/view_image/2ba4e1329/oplayers-display.bmp If I don't use openlayers then it looks like this. http://www.imagewoof.com/view_image/daacb1312/withoutopenlayers.JPG --- On Tue, 4/15/08, ptang83@yahoo.com wrote: > From: ptang83@yahoo.com > Subject: Openlayers displa.. size of the map very small. > To: users@openlayers.org > Date: Tuesday, April 15, 2008, 3:06 PM > I downloaded a demo which display a nice map through > mapserver. The image is like this. > http://www.mobilegeographics.com/mapserver/usa1.phtml > > The image is big and nice. > > When I changed it to display throught openlayers. The > openlayer map only display a blank windows with all > controls. If I change the "proj=lcc" to > "proj=latlong" , then it display a map but the > size of the map is very small and only occupied the upper > lift corner of the openlayers div. Is there any way to make > display fit the windows? > > Would like to take any suggestion. Thanks in advance! > > ========= > usa1.html > =========== > > > // My Test MapServer Layer > > > > > > > > >
> > > > > ============ > map file > ============== > > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "C:\oatdir\statesp020.tar" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=latlong" "lat_1=32" > "lat_2=44" "lat_0=38" > "lon_0=-100" "x_0=0" "y_0=0" > "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "C:\Program > Files\ms4w\Apache\htdocs\tmp\" > IMAGEURL "/tmp/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS DEFAULT > DATA > 'C:\oatdir\statesp020.tar\statesp020' > > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 60 60 60 > COLOR 255 255 0 > SYMBOL 0 > END > END > > > > END > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From crschmidt at metacarta.com Tue Apr 15 16:31:19 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. In-Reply-To: <249649.53733.qm@web31811.mail.mud.yahoo.com> References: <20080415195854.GA24864@metacarta.com> <249649.53733.qm@web31811.mail.mud.yahoo.com> Message-ID: <20080415203118.GA25903@metacarta.com> On Tue, Apr 15, 2008 at 01:29:52PM -0700, ptang83@yahoo.com wrote: > If I use openlayers to display, it looks like this. > > http://www.imagewoof.com/view_image/2ba4e1329/oplayers-display.bmp > > If I don't use openlayers then it looks like this. > > http://www.imagewoof.com/view_image/daacb1312/withoutopenlayers.JPG I recomend you read the link I posted and try again. Regards, -- Christopher Schmidt MetaCarta From ptang83 at yahoo.com Tue Apr 15 16:45:50 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. In-Reply-To: <20080415203118.GA25903@metacarta.com> Message-ID: <690713.67111.qm@web31815.mail.mud.yahoo.com> Here is the regular raster image in browser without using openlayers. http://www.imagewoof.com/view_image/6dd5d1350/raster-noOpenlayers.JPG The URL is like this : http://localhost/tmp/48051072_121c_0.png If I use openlayers to load it. It shows a blank page and the URL is like http://localhost/cgi-bin/mapserv.exe?map=C%3A%2FProgram%20Files%2Fms4w%2FApache%2Fhtdocs%2FMSrecipes%2Fusa3.map&mode=map&map_imagetype=png&mapext=-180+-90+180+270&imgext=-180+-90+180+270&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Thanks a lot! --- On Tue, 4/15/08, Christopher Schmidt wrote: > From: Christopher Schmidt > Subject: Re: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. > To: ptang83@yahoo.com > Cc: users@openlayers.org > Date: Tuesday, April 15, 2008, 3:31 PM > On Tue, Apr 15, 2008 at 01:29:52PM -0700, ptang83@yahoo.com > wrote: > > If I use openlayers to display, it looks like this. > > > > > http://www.imagewoof.com/view_image/2ba4e1329/oplayers-display.bmp > > > > If I don't use openlayers then it looks like this. > > > > > http://www.imagewoof.com/view_image/daacb1312/withoutopenlayers.JPG > > I recomend you read the link I posted and try again. > > Regards, > -- > Christopher Schmidt > MetaCarta ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From ptang83 at yahoo.com Tue Apr 15 16:50:19 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. In-Reply-To: <390230.62254.qm@web31812.mail.mud.yahoo.com> Message-ID: <928941.94577.qm@web31809.mail.mud.yahoo.com> > If I use openlayers to display, it looks like this. > > http://www.imagewoof.com/view_image/2ba4e1329/oplayers-display.bmp Image URL:http://localhost/cgi-bin/mapserv.exe?map=C%3A%2FProgram%20Files%2Fms4w%2FApache%2Fhtdocs%2FMSrecipes%2Fusa1.map&mode=map&map_imagetype=png&mapext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 ------------------- > > If I don't use openlayers then it looks like this. > > http://www.imagewoof.com/view_image/daacb1312/withoutopenlayers.JPG Image URL: http://localhost/tmp/48051462_2c10_0.png Thanks! --- On Tue, 4/15/08, ptang83@yahoo.com wrote: > From: ptang83@yahoo.com > Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. > To: users@openlayers.org > Date: Tuesday, April 15, 2008, 3:06 PM > I downloaded a demo which display a nice map through > mapserver. The image is like this. > http://www.mobilegeographics.com/mapserver/usa1.phtml > > The image is big and nice. > > When I changed it to display throught openlayers. The > openlayer map only display a blank windows with all > controls. If I change the "proj=lcc" to > "proj=latlong" , then it display a map but the > size of the map is very small and only occupied the upper > lift corner of the openlayers div. Is there any way to make > display fit the windows? > > Would like to take any suggestion. Thanks in advance! > > ========= > usa1.html > =========== > > > // My Test MapServer Layer > > > > > > > > >
> > > > > ============ > map file > ============== > > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "C:\oatdir\statesp020.tar" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=latlong" "lat_1=32" > "lat_2=44" "lat_0=38" > "lon_0=-100" "x_0=0" "y_0=0" > "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "C:\Program > Files\ms4w\Apache\htdocs\tmp\" > IMAGEURL "/tmp/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS DEFAULT > DATA > 'C:\oatdir\statesp020.tar\statesp020' > > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 60 60 60 > COLOR 255 255 0 > SYMBOL 0 > END > END > > > > END > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From david.fawcett at gmail.com Tue Apr 15 16:52:50 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. In-Reply-To: <390230.62254.qm@web31812.mail.mud.yahoo.com> References: <390230.62254.qm@web31812.mail.mud.yahoo.com> Message-ID: Take a look at these 5 lines from your map file: EXTENT -8000000 300000 5000000 1500000 UNITS METERS PROJECTION "proj=latlong" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END You are telling MapServer that your image extent is 13 million degrees in the x direction. Your EXTENT and UNITS need to be of the same units as your output projection. Try UNITS "dd" and convert your extent to degrees. David. On Tue, Apr 15, 2008 at 3:06 PM, wrote: > > I downloaded a demo which display a nice map through mapserver. The image > is like this. > http://www.mobilegeographics.com/mapserver/usa1.phtml > > The image is big and nice. > > When I changed it to display throught openlayers. The openlayer map only > display a blank windows with all controls. If I change the "proj=lcc" to > "proj=latlong" , then it display a map but the size of the map is very small > and only occupied the upper lift corner of the openlayers div. Is there any > way to make display fit the windows? > > Would like to take any suggestion. Thanks in advance! > > ========= > usa1.html > =========== > > > // My Test MapServer Layer > > > > > > > > >
> > > > > ============ > map file > ============== > > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "C:\oatdir\statesp020.tar" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=latlong" "lat_1=32" "lat_2=44" "lat_0=38" > "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "C:\Program Files\ms4w\Apache\htdocs\tmp\" > IMAGEURL "/tmp/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS DEFAULT > DATA 'C:\oatdir\statesp020.tar\statesp020' > > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 60 60 60 > COLOR 255 255 0 > SYMBOL 0 > END > END > > > > END > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > 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/20080415/c446487e/attachment.html From John.Westwood at port.ac.uk Tue Apr 15 18:00:28 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in In-Reply-To: <20080415202302.GC24864@metacarta.com> References: <48048D3F0200005300035477@stirling.iso.port.ac.uk> <16707445.post@talk.nabble.com> <20080415202302.GC24864@metacarta.com> Message-ID: <16711909.post@talk.nabble.com> Hi Christopher, That's interesting that's it's not considered a bug. Personally, I would definitely think of it as a bug or possibly an undocumented feature :) I hope you don't think that I was complaining, I think that OpenLayers is great. I think I have found a solution to the problem: Use the restrictedExtent keyword, I think that will do the trick. :) Keep up the good work and I look forward to v2.6 zenzero-2001 Christopher Schmidt-4 wrote: > > On Tue, Apr 15, 2008 at 12:59:53PM -0700, zenzero-2001 wrote: >> I checked the zoomLevels example that comes with OpenLayers and this >> suffers >> from the same problem. So I guess that this means it is a bug in >> OpenLayers. >> Any idea when it may be fixed? > >>I don't consider anything you've thus far described a bug, so as far as >>I know, there is no plan to change it. > -- View this message in context: http://www.nabble.com/Maximum-extent-shrinks-when-zooming-in-tp16699035p16711909.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Apr 15 18:09:36 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in In-Reply-To: <16711909.post@talk.nabble.com> References: <48048D3F0200005300035477@stirling.iso.port.ac.uk> <16707445.post@talk.nabble.com> <20080415202302.GC24864@metacarta.com> <16711909.post@talk.nabble.com> Message-ID: <20080415220936.GB26840@metacarta.com> On Tue, Apr 15, 2008 at 03:00:28PM -0700, zenzero-2001 wrote: > > Hi Christopher, > > That's interesting that's it's not considered a bug. Personally, I would > definitely think of it as a bug or possibly an undocumented feature :) I > hope you don't think that I was complaining, I think that OpenLayers is > great. Well, if you think there's a bug, you need to do further description of the issue to convince me, is all. What you have described so far sounds to me to be not a bug. What you have described so far sounds to me like: * I have a map, from (for example) -10, -3, 10, 3 * I set a maxResolution of 6 / 256, so that my whole world fits vertically within one 256 px tile * Because my map is 20 units wide, it is 4 tiles wide, and therefore covers more than -10 -> 10 in the longitude direction: 24 degrees. * When I zoom in, my resolution drops to 6/512: * Vertically, the world is two tiles. * Horizontally, it is 7 tiles -- taking up less horizontal geographic space than before: 21 degrees. Since you've said you can change your maxResolution, and it 'solves' the problem, I assume that you've found that if you pick a maxResolution that divides *evenly* into the width *and* height (in this case, something like '2' would do: 3 tiles high, 10 tiles wide), you will see that the tiles match your geographic space correctly. If this is *not* what you're describing, then you'll need to be more clear, because this behavior isn't a bug: in fact, I don't know of any way around it. Regards, -- Christopher Schmidt MetaCarta From ptang83 at yahoo.com Tue Apr 15 18:23:08 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. In-Reply-To: Message-ID: <649316.2922.qm@web31811.mail.mud.yahoo.com> I used the same Map file for the following scenario: 1. using mapserver utility "shp2img" and it generated a 800x500 image (Good size). 2. mapscript + mapserver and it generated a 800x500 image (Good size) 3. openlayer + mapserver and no display. 4. If I change "proj=lcc" to "proj=latlong". openlayer + mapserver generate a 256x256 small image. Does this mean openlayers can't handle mapfile "proj=lcc"? Is there a place in openlayer code I can make mapserver generate a 800x500 image if I used "proj=latlong"? Thanks! --- On Tue, 4/15/08, David Fawcett wrote: > From: David Fawcett > Subject: Re: [OpenLayers-Users] Openlayers displa.. size of the map very small. > To: ptang83@yahoo.com > Cc: users@openlayers.org > Date: Tuesday, April 15, 2008, 3:52 PM > Take a look at these 5 lines from your map file: > > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=lcc" > "lat_1=32" "lat_2=44" > "lat_0=38" "lon_0=-100" > "x_0=0" "y_0=0" "ellps=GRS80" > "datum=NAD83" > END > > You are telling MapServer that your image extent is 13 > million degrees in > the x direction. > > Your EXTENT and UNITS need to be of the same units as your > output > projection. > > Try UNITS "dd" and convert your extent to > degrees. > > David. > > On Tue, Apr 15, 2008 at 3:06 PM, > wrote: > > > > > I downloaded a demo which display a nice map through > mapserver. The image > > is like this. > > http://www.mobilegeographics.com/mapserver/usa1.phtml > > > > The image is big and nice. > > > > When I changed it to display throught openlayers. The > openlayer map only > > display a blank windows with all controls. If I change > the "proj=lcc" to > > "proj=latlong" , then it display a map but > the size of the map is very small > > and only occupied the upper lift corner of the > openlayers div. Is there any > > way to make display fit the windows? > > > > Would like to take any suggestion. Thanks in advance! > > > > ========= > > usa1.html > > =========== > > xmlns="http://www.w3.org/1999/xhtml"> > > > > // My Test MapServer > Layer > > > > > > > > > > > > > > > > > >
> > > > > > > > > > ============ > > map file > > ============== > > > > MAP > > NAME USA1 > > STATUS ON > > SIZE 800 500 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > SHAPEPATH > "C:\oatdir\statesp020.tar" > > EXTENT -8000000 300000 5000000 1500000 > > UNITS METERS > > PROJECTION > > "proj=lcc" > "lat_1=32" "lat_2=44" > "lat_0=38" > > "lon_0=-100" "x_0=0" > "y_0=0" "ellps=GRS80" > "datum=NAD83" > > END > > WEB > > IMAGEPATH "C:\Program > Files\ms4w\Apache\htdocs\tmp\" > > IMAGEURL "/tmp/" > > END > > > > LAYER > > NAME "US state boundaries" > > TYPE POLYGON > > STATUS DEFAULT > > DATA > 'C:\oatdir\statesp020.tar\statesp020' > > > > PROJECTION > > "proj=latlong" > > "ellps=GRS80" > > "datum=NAD83" > > END > > CLASS > > NAME "US states" > > OUTLINECOLOR 60 60 60 > > COLOR 255 255 0 > > SYMBOL 0 > > END > > END > > > > > > > > END > > > > > > > > > ____________________________________________________________________________________ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From John.Westwood at port.ac.uk Tue Apr 15 18:39:17 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Maximum extent shrinks when zooming in In-Reply-To: <20080415220936.GB26840@metacarta.com> References: <48048D3F0200005300035477@stirling.iso.port.ac.uk> <16707445.post@talk.nabble.com> <20080415202302.GC24864@metacarta.com> <16711909.post@talk.nabble.com> <20080415220936.GB26840@metacarta.com> Message-ID: <16712981.post@talk.nabble.com> Hi Christopher, Thank you for your swift reply. You are probably right that it is not a bug, I will have to do some further investigation and report back. I have a bit of deadline at work at the moment, so it will have to wait. Actually I never said that changing maxResolution solved the problem. In my first post, I said changing it to 'auto' did not solve the problem. Using the restrictedExtent keyword, however, has 'solved' the problem :) Best Regards, John Westwood (zenzero-2001) Christopher Schmidt-4 wrote: > > On Tue, Apr 15, 2008 at 03:00:28PM -0700, zenzero-2001 wrote: >> >> Hi Christopher, >> >> That's interesting that's it's not considered a bug. Personally, I would >> definitely think of it as a bug or possibly an undocumented feature :) I >> hope you don't think that I was complaining, I think that OpenLayers is >> great. > > Well, if you think there's a bug, you need to do further description of > the issue to convince me, is all. What you have described so far sounds > to me to be not a bug. What you have described so far sounds to me like: > > * I have a map, from (for example) -10, -3, 10, 3 > * I set a maxResolution of 6 / 256, so that my whole world fits > vertically within one 256 px tile > * Because my map is 20 units wide, it is 4 tiles wide, and therefore > covers more than -10 -> 10 in the longitude direction: 24 degrees. > * When I zoom in, my resolution drops to 6/512: > * Vertically, the world is two tiles. > * Horizontally, it is 7 tiles -- taking up less horizontal > geographic space than before: 21 degrees. > > Since you've said you can change your maxResolution, and it 'solves' the > problem, I assume that you've found that if you pick a maxResolution > that divides *evenly* into the width *and* height (in this case, > something like '2' would do: 3 tiles high, 10 tiles wide), you will see > that the tiles match your geographic space correctly. > > If this is *not* what you're describing, then you'll need to be more > clear, because this behavior isn't a bug: in fact, I don't know of any > way around it. > > 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/Maximum-extent-shrinks-when-zooming-in-tp16699035p16712981.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Apr 15 19:03:34 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Openlayers displa.. size of the map very small. In-Reply-To: <649316.2922.qm@web31811.mail.mud.yahoo.com> References: <649316.2922.qm@web31811.mail.mud.yahoo.com> Message-ID: <20080415230334.GA27748@metacarta.com> On Tue, Apr 15, 2008 at 03:23:08PM -0700, ptang83@yahoo.com wrote: > I used the same Map file for the following scenario: > 1. using mapserver utility "shp2img" and it generated a 800x500 image (Good size). > 2. mapscript + mapserver and it generated a 800x500 image (Good size) > > 3. openlayer + mapserver and no display. > > 4. If I change "proj=lcc" to "proj=latlong". openlayer + mapserver generate a 256x256 small image. > > Does this mean openlayers can't handle mapfile "proj=lcc"? No, it means that you need to specify a different set of projection parameters. http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Apr 15 20:41:43 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] OpenLayers 2.6 Final Release Message-ID: <20080416004143.GA29395@metacarta.com> The OpenLayers Development Team is proud to announce release of OpenLayers 2.6. As of this final release, the OpenLayers 2.6 release closes 294 outstanding tickets, 75% more than any OpenLayers release to date. The OpenLayers.js hosted at has now been changed to use the 2.6 API. As always, the source is available at http://openlayers.org/download/. md5sums: ce957a47ad9bc8356d990417d61cc8a4 OpenLayers-2.6.tar.gz 43c82d5a9ae9e0b18c1fa37a97065e02 OpenLayers-2.6.zip This is a large release: the largest of any OpenLayers release to date. This release features a number of major developments, including: * Integration of the CloudAmber "Google Like" popups for advanced visual display of information in popups * Resulting improvements throughout all popup code, including autosizing popups to the content they contain. * Improved panning of commercial layers like Google Maps and Yahoo! Maps * Animated panning of the map, using OpenLayers.Tween support * Layer Image transitions, for keeping images visible when zooming to allow smoother transitions * Client side reprojection support using built in transformations for spherical mercator, or the proj4js library for other projections. * Support for reprojecting vector data layers * Support for reprojecting user-facing controls like mouseposition * Support for programatically reprojecting points and geometries * Improved OpenLayers Styling, including: * OpenLayers.Style, OpenLayers.StyleMap, OpenLayers.Rule, OpenLayers.Filter support for improved feature-attribute based styling * SLD read/write support * Support for reading and writing multiple versions of WMC. * Improved KML support, including KML styling support. * Improved GeoRSS Format support, including GeoRSS GML read support. * New ScaleLine Control for displaying visual scale * New NavigationHistory control for map history navigation * Localization/Better Internationalization support * Layer support for MapGuide Open Source * A number of new / improved handlers to make handling user interactions easier * Handler.Hover * Handler.Click A thank you again to all the people who helped to make this release happen. My earlier post[1] on the topic covers that as well as any single email can hope to. We look forward to your feedback! [1] http://openlayers.org/pipermail/users/2008-April/005329.html Regards, The OpenLayers Team -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080415/7ee736f2/attachment.bin From ptang83 at yahoo.com Wed Apr 16 00:14:01 2008 From: ptang83 at yahoo.com (ptang83@yahoo.com) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] (Openlayers + Mapserver) not able to dispaly Raster image. In-Reply-To: <20080415203118.GA25903@metacarta.com> Message-ID: <202599.84027.qm@web31803.mail.mud.yahoo.com> Hi Chris Thanks for your patient. I am still getting empty box in my browser. There is no image in the box so I could't even copy the image URL. Here is what I did. 1. load a raster image to qgis and export to generate below mapfile. 2. use shp2img to verify the mapfile can display correct picture. 3. Base on the mapfile content, I set maxExtent, maxresulotion (6086744.000000 + 4278894)/800 = 12957), and EPSG:4326. 4. refresh webbrowser and get a empty box without any image. Any suggestion is highly appreciated. ============= simple openlayers call ============== // My Test MapServer Layer //
============================ map file ============================ # Map file created from QGIS project file C:/Program Files/Quantum GIS/usa3.qgs # Edit this file to customize for your map interface MAP NAME usa3 # Map image size SIZE 800 500 UNITS meters EXTENT -6086744.000000 -5878356.737659 4278894.138000 7580130.593659 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' LOG 'c:\tmp\mapserver.log' # WMS server settings METADATA 'wms_title' 'usa3' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'nitelti020l' TYPE RASTER DATA 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' METADATA 'wms_title' 'nitelti020l' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END END END ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From tara_athan at alt2is.com Wed Apr 16 00:42:12 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Node was not found error Message-ID: <480583A4.6050205@alt2is.com> I would like to thank everyone who has patiently answered my questions. I am learning javascript for the sole purpose of creating OpenLayers maps, so it is often difficult for me to understand documentation that is written assuming the user is a javascript wizard, but I am making progress and have some working maps. One of my OpenLayers maps is running correctly, as near as I can tell, but it shows the following error, according to Firebug: Node was not found" code: "8 [Break on this error] if(layer.isFixed){this.viewPortDiv.removeChild(layer.div);}else{this.layerContai... OpenLayers.js (line 529) Is this something I should worry about? If so, how can I track the problem back to my script? Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan [AT] alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From mtd at bom.gov.au Wed Apr 16 03:06:54 2008 From: mtd at bom.gov.au (Matthew Doyle) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] ScaleLine km only Message-ID: <16717688.post@talk.nabble.com> Hi All, Using Openlayers 2.6 and coding a map using the ScaleLine control a la: map.addControl(new OpenLayers.Control.ScaleLine()); My client wishes it only to display kilometres and not miles. Is there any way to configure this? Or will i have to code a hack or design my own custom scale which swaps in and out for each zoom level? Apologies if this is an easy one, but the docs/api and searching through usergroups didn't give me any joy. Cheers in advance, Regards, Matt -- View this message in context: http://www.nabble.com/ScaleLine-km-only-tp16717688p16717688.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zac.spitzer at gmail.com Wed Apr 16 03:33:54 2008 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] ScaleLine km only In-Reply-To: <16717688.post@talk.nabble.com> References: <16717688.post@talk.nabble.com> Message-ID: <7a85053e0804160033k505ac617ve530107d4fcc71dc@mail.gmail.com> http://dev.openlayers.org/docs/files/OpenLayers/Control/ScaleLine-js.html check the properties topOutUnits & topInUnits there is a bug with IE if you try and hide the bottom or top set by setting these values to be empty http://trac.openlayers.org/ticket/1478 z On Wed, Apr 16, 2008 at 5:06 PM, Matthew Doyle wrote: > > Hi All, > > Using Openlayers 2.6 and coding a map using the ScaleLine control a la: > map.addControl(new OpenLayers.Control.ScaleLine()); > > My client wishes it only to display kilometres and not miles. Is there any > way to configure this? Or will i have to code a hack or design my own custom > scale which swaps in and out for each zoom level? Apologies if this is an > easy one, but the docs/api and searching through usergroups didn't give me > any joy. > > Cheers in advance, > Regards, > Matt > -- > View this message in context: http://www.nabble.com/ScaleLine-km-only-tp16717688p16717688.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 From diegoguidi at gmail.com Wed Apr 16 05:03:56 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Custom Box handler conflict? Message-ID: I'm using the brand new 2.6 (well done guys!) but I haven't try with older versions, so... In my website I'm using OpenLayers and NavToolBar component, that implements a ZoomBox handler for a zoom rect funtion that works well. I've tried to add this custom components, taken from the openlayers samples, and i have a strange behavior: var customBox = new OpenLayers.Control(); OpenLayers.Util.extend(customBox, { draw: function () { this.box = new OpenLayers.Handler.Box(customBox, { "done": this.notice }, { keyMask: OpenLayers.Handler.MOD_SHIFT }); this.box.activate(); }, notice: function (bounds) { var ll = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, bounds.bottom)); var ur = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.right, bounds.top)); alert(ll.lon.toFixed(4) + ", " + ll.lat.toFixed(4) + ", " + ur.lon.toFixed(4) + ", " + ur.lat.toFixed(4)); } }); If i add this component to the map, when i try the code all works well: the navtoolbar is in "pan" state so i could pan the map as usual, and using shift i could drag a zoombox and show the bounding box coordinates. If i select the zoomrect tool from navtoolbar i lost the behavior of the custom component :( Any try to use shift + zoombox generates the behavior of the zoomrect tool. any suggestion? From simone.gadenz at jrc.it Wed Apr 16 05:32:53 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] problem with tilecache layer Message-ID: <007e01c89fa4$d86f12b0$894d3810$@gadenz@jrc.it> Hi all! I have a strange bahavior (error?)wrapping the dateline in a tilecache layer. The column of tiles poistioned right after 180 longitude load empty images. This is one of the image url that is asked to the server: http://139.191.68.15/tscache/pop04sm/02/000/000/004/000/000/001.png. In fact the folder 02/000/000/004 does not exist in my cache hierarchy. The definition of the layer into the page is: var tiledpop = new OpenLayers.Layer.TileCache("World Population 2004 (1km)", ["http://139.191.68.15/tscache/"], "pop04sm", { 'format': 'image/png', 'isBaseLayer': false, 'opacity': 0.6, 'reproject':true, 'wrapDateLine': true, 'singleTile': false, 'gutter': 1 } ); Any idea? Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080416/6dc797d8/attachment.html From gis at vanbooth.com Wed Apr 16 06:17:57 2008 From: gis at vanbooth.com (Rob) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] OpenLayers 2.6 Final Release In-Reply-To: <20080416004143.GA29395@metacarta.com> References: <20080416004143.GA29395@metacarta.com> Message-ID: <2a955f950804160317v76a2709aqf3d18a40292e719e@mail.gmail.com> Great work guys - looking forward to playing with the latest version! I know its only 9 hours old, but the openlayers.org homepage still refers to 2.5, and I cant figure out a way to login and change it for you ( the homepage doesnt seem to be part of the wiki?). On 16/04/2008, Christopher Schmidt wrote: > > The OpenLayers Development Team is proud to announce release of > OpenLayers 2.6. As of this final release, the OpenLayers 2.6 release > closes 294 outstanding tickets, 75% more than any OpenLayers release to > date. > > The OpenLayers.js hosted at > > > > has now been changed to use the 2.6 API. > > As always, the source is available at http://openlayers.org/download/. > > md5sums: > ce957a47ad9bc8356d990417d61cc8a4 OpenLayers-2.6.tar.gz > 43c82d5a9ae9e0b18c1fa37a97065e02 OpenLayers-2.6.zip > > This is a large release: the largest of any OpenLayers release to date. > This release features a number of major developments, including: > > * Integration of the CloudAmber "Google Like" popups for advanced > visual display of information in popups > * Resulting improvements throughout all popup code, including > autosizing popups to the content they contain. > * Improved panning of commercial layers like Google Maps and Yahoo! > Maps > * Animated panning of the map, using OpenLayers.Tween support > * Layer Image transitions, for keeping images visible when zooming > to allow smoother transitions > * Client side reprojection support using built in transformations for > spherical mercator, or the proj4js library for other projections. > * Support for reprojecting vector data layers > * Support for reprojecting user-facing controls like mouseposition > * Support for programatically reprojecting points and geometries > * Improved OpenLayers Styling, including: > * OpenLayers.Style, OpenLayers.StyleMap, OpenLayers.Rule, > OpenLayers.Filter support for improved feature-attribute based > styling > * SLD read/write support > * Support for reading and writing multiple versions of WMC. > * Improved KML support, including KML styling support. > * Improved GeoRSS Format support, including GeoRSS GML read support. > * New ScaleLine Control for displaying visual scale > * New NavigationHistory control for map history navigation > * Localization/Better Internationalization support > * Layer support for MapGuide Open Source > * A number of new / improved handlers to make handling user > interactions easier > * Handler.Hover > * Handler.Click > > A thank you again to all the people who helped to make this release > happen. My earlier post[1] on the topic covers that as well as any > single email can hope to. > > We look forward to your feedback! > > [1] http://openlayers.org/pipermail/users/2008-April/005329.html > > Regards, > > The OpenLayers Team > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFIBUtHqjCpmKHia1gRAtG2AJ0UDKNUAdn33oVEMO4GojpGZmEhpQCcCNOK > MEj9vxhppTH5DlS0JCsBDIk= > =7dqh > -----END PGP SIGNATURE----- > > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080416/30d12fda/attachment.html From graham.carlyle at maplecroft.com Wed Apr 16 06:38:08 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] tiling features to speed detecting features on the client Message-ID: <1208342288.6397.40.camel@charon> In a previous post I said that I wanted to detect which feature a mouse had clicked on at the client side in order to be more responsive. The suggested solution worked well, that of downloading a geojson representation of the features up front and using the 2.6 OL feature of detecting whether the feature's geometry intersected with the mouse point. However for large maps, downloading the features in geojson (or another format) of the required detail for all zoom levels for detecting which feature is being clicked on is prohibitively large. So this got me thinking, how about tiling the feature information, or rather the geometry associated with it? On the server side I can see a way of hacking TileCache to generate a geojson feature "tile" by clipping the feature geometry to the tile bounds and then quantising the geometry by the tile resolution (using some shapely, worldmill & geojson sauce). On the client side a new type of OpenLayers Layer would download these feature "tiles" in parallel with the image tiles and provide access to the "visible" features for mouse click detection etc. I don't need to do this but I guess you could also render these "tiled" features and possibly get around some of the browser problems of rendering vector layers with too many vectors or vertices because of the geometry simplification of the tiling & quantisation. Is this madness? Am I missing something that exists already that would achieve what i want. thanks, Graham From crschmidt at metacarta.com Wed Apr 16 06:56:23 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] OpenLayers 2.6 Final Release In-Reply-To: <2a955f950804160317v76a2709aqf3d18a40292e719e@mail.gmail.com> References: <20080416004143.GA29395@metacarta.com> <2a955f950804160317v76a2709aqf3d18a40292e719e@mail.gmail.com> Message-ID: <20080416105623.GA5207@metacarta.com> On Wed, Apr 16, 2008 at 11:17:57AM +0100, Rob wrote: > Great work guys - looking forward to playing with the latest version! > > I know its only 9 hours old, but the openlayers.org homepage still refers to > 2.5, and I cant figure out a way to login and change it for you ( the > homepage doesnt seem to be part of the wiki?). Nope, it's in SVN. I passed out last night before I finished updating everything; I've gone ahead and finished up now. -- Chris > On 16/04/2008, Christopher Schmidt wrote: > > > > The OpenLayers Development Team is proud to announce release of > > OpenLayers 2.6. As of this final release, the OpenLayers 2.6 release > > closes 294 outstanding tickets, 75% more than any OpenLayers release to > > date. > > > > The OpenLayers.js hosted at > > > > > > > > has now been changed to use the 2.6 API. > > > > As always, the source is available at http://openlayers.org/download/. > > > > md5sums: > > ce957a47ad9bc8356d990417d61cc8a4 OpenLayers-2.6.tar.gz > > 43c82d5a9ae9e0b18c1fa37a97065e02 OpenLayers-2.6.zip > > > > This is a large release: the largest of any OpenLayers release to date. > > This release features a number of major developments, including: > > > > * Integration of the CloudAmber "Google Like" popups for advanced > > visual display of information in popups > > * Resulting improvements throughout all popup code, including > > autosizing popups to the content they contain. > > * Improved panning of commercial layers like Google Maps and Yahoo! > > Maps > > * Animated panning of the map, using OpenLayers.Tween support > > * Layer Image transitions, for keeping images visible when zooming > > to allow smoother transitions > > * Client side reprojection support using built in transformations for > > spherical mercator, or the proj4js library for other projections. > > * Support for reprojecting vector data layers > > * Support for reprojecting user-facing controls like mouseposition > > * Support for programatically reprojecting points and geometries > > * Improved OpenLayers Styling, including: > > * OpenLayers.Style, OpenLayers.StyleMap, OpenLayers.Rule, > > OpenLayers.Filter support for improved feature-attribute based > > styling > > * SLD read/write support > > * Support for reading and writing multiple versions of WMC. > > * Improved KML support, including KML styling support. > > * Improved GeoRSS Format support, including GeoRSS GML read support. > > * New ScaleLine Control for displaying visual scale > > * New NavigationHistory control for map history navigation > > * Localization/Better Internationalization support > > * Layer support for MapGuide Open Source > > * A number of new / improved handlers to make handling user > > interactions easier > > * Handler.Hover > > * Handler.Click > > > > A thank you again to all the people who helped to make this release > > happen. My earlier post[1] on the topic covers that as well as any > > single email can hope to. > > > > We look forward to your feedback! > > > > [1] http://openlayers.org/pipermail/users/2008-April/005329.html > > > > Regards, > > > > The OpenLayers Team > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.6 (GNU/Linux) > > > > iD8DBQFIBUtHqjCpmKHia1gRAtG2AJ0UDKNUAdn33oVEMO4GojpGZmEhpQCcCNOK > > MEj9vxhppTH5DlS0JCsBDIk= > > =7dqh > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > Dev mailing list > > Dev@openlayers.org > > http://openlayers.org/mailman/listinfo/dev > > > > -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Apr 16 06:58:32 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Node was not found error In-Reply-To: <480583A4.6050205@alt2is.com> References: <480583A4.6050205@alt2is.com> Message-ID: <20080416105832.GB5207@metacarta.com> On Tue, Apr 15, 2008 at 09:42:12PM -0700, Tara Athan wrote: > I would like to thank everyone who has patiently answered my questions. > I am learning javascript for the sole purpose of creating OpenLayers > maps, so it is often difficult for me to understand documentation that > is written assuming the user is a javascript wizard, but I am making > progress and have some working maps. > > One of my OpenLayers maps is running correctly, as near as I can tell, > but it shows the following error, according to Firebug: > > Node was not found" code: "8 > [Break on this error] > if(layer.isFixed){this.viewPortDiv.removeChild(layer.div);}else{this.layerContai... > OpenLayers.js (line 529) > > Is this something I should worry about? > If so, how can I track the problem back to my script? That's definitely a bug of some kind. Can you share your HTML? It looks like it's happening in the setBaseLayer function... Regards, -- Christopher Schmidt MetaCarta From pagameba at gmail.com Wed Apr 16 07:00:05 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] tiling features to speed detecting features on the client In-Reply-To: <1208342288.6397.40.camel@charon> References: <1208342288.6397.40.camel@charon> Message-ID: <23AF8B54-0E34-42D0-ADE3-3EE6803CEED4@gmail.com> Hi Graham, There is an implementation of something similar to this in the WFS Tile code, and there is also substantial new work being undertaken by Tim Schaub to introduce Vector Behaviours which will be a much more sophisticated way of managing this. http://trac.openlayers.org/wiki/Proposal/VectorBehavior Cheers Paul On 16-Apr-08, at 6:38 AM, Graham Carlyle wrote: > In a previous post I said that I wanted to detect which feature a > mouse > had clicked on at the client side in order to be more responsive. The > suggested solution worked well, that of downloading a geojson > representation of the features up front and using the 2.6 OL feature > of > detecting whether the feature's geometry intersected with the mouse > point. > > However for large maps, downloading the features in geojson (or > another > format) of the required detail for all zoom levels for detecting which > feature is being clicked on is prohibitively large. > > So this got me thinking, how about tiling the feature information, or > rather the geometry associated with it? > > On the server side I can see a way of hacking TileCache to generate a > geojson feature "tile" by clipping the feature geometry to the tile > bounds and then quantising the geometry by the tile resolution (using > some shapely, worldmill & geojson sauce). > > On the client side a new type of OpenLayers Layer would download these > feature "tiles" in parallel with the image tiles and provide access to > the "visible" features for mouse click detection etc. > > I don't need to do this but I guess you could also render these > "tiled" > features and possibly get around some of the browser problems of > rendering vector layers with too many vectors or vertices because of > the > geometry simplification of the tiling & quantisation. > > Is this madness? Am I missing something that exists already that would > achieve what i want. > > thanks, > Graham > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From graham.carlyle at maplecroft.com Wed Apr 16 09:27:15 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] tiling features to speed detecting features on the client In-Reply-To: <23AF8B54-0E34-42D0-ADE3-3EE6803CEED4@gmail.com> References: <1208342288.6397.40.camel@charon> <23AF8B54-0E34-42D0-ADE3-3EE6803CEED4@gmail.com> Message-ID: <1208352435.6397.60.camel@charon> I've just had a quick look at the WFS layer & tile code and can see how this is similar to what I'm thinking of but it doesn't seem to have a concept of "griddedness" or tile resolution. In order for the server to be able to reduce the detail of the feature geometry it would need something like a width & height parameter sent in the request. Also I was imagining that quantising & clipping a feature geometry might be quite resource intensive on the server and so tiling the requests would allow caching or pre-generation in a similar manner to TMS or WMS-C. So maybe I could implement a subclass of OpenLayers.Layer.Grid that generated requests in TMS or WMS format and then parsing the features returned in a similar manner to the OpenLayers.Layer.WFS class. Sorry for my GIS ignorance but does WFS support the notion of reducing the detail of a feature geometry in response to a request? I had a look at the spec and can see mention on limits on the number of features and conditions on their properties but not about the level of detail. cheers, Graham On Wed, 2008-04-16 at 07:00 -0400, Paul Spencer wrote: > Hi Graham, > > There is an implementation of something similar to this in the WFS > Tile code, and there is also substantial new work being undertaken by > Tim Schaub to introduce Vector Behaviours which will be a much more > sophisticated way of managing this. > > http://trac.openlayers.org/wiki/Proposal/VectorBehavior > > Cheers > > Paul > > On 16-Apr-08, at 6:38 AM, Graham Carlyle wrote: > > In a previous post I said that I wanted to detect which feature a > > mouse > > had clicked on at the client side in order to be more responsive. The > > suggested solution worked well, that of downloading a geojson > > representation of the features up front and using the 2.6 OL feature > > of > > detecting whether the feature's geometry intersected with the mouse > > point. > > > > However for large maps, downloading the features in geojson (or > > another > > format) of the required detail for all zoom levels for detecting which > > feature is being clicked on is prohibitively large. > > > > So this got me thinking, how about tiling the feature information, or > > rather the geometry associated with it? > > > > On the server side I can see a way of hacking TileCache to generate a > > geojson feature "tile" by clipping the feature geometry to the tile > > bounds and then quantising the geometry by the tile resolution (using > > some shapely, worldmill & geojson sauce). > > > > On the client side a new type of OpenLayers Layer would download these > > feature "tiles" in parallel with the image tiles and provide access to > > the "visible" features for mouse click detection etc. > > > > I don't need to do this but I guess you could also render these > > "tiled" > > features and possibly get around some of the browser problems of > > rendering vector layers with too many vectors or vertices because of > > the > > geometry simplification of the tiling & quantisation. > > > > Is this madness? Am I missing something that exists already that would > > achieve what i want. > > > > thanks, > > Graham > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users From mquentel at rim.com Wed Apr 16 10:40:32 2008 From: mquentel at rim.com (Mike Quentel) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] popups for markers dynamically generated from KML Message-ID: <8A94DF1034BA03408EC040C33C42D3BA7281A1@XCH23YOW.rim.net> I know there is a KML parser and examples that render graphics based on KML inputs. Since some of the KML sources I'm using are particularly huge, instead of having the KML parsed on the client through OL, I have a server-side KML reader (uses XPath/xalan.jar) that returns lists of coordinates to the browser client. So when the client receives a list of point coordinates, it loops through and adds markers like this: for (var i = 0; i < pointsCoordsArray.length; i += 3) { x = pointsCoordsArray[i]; y = pointsCoordsArray[i + 1]; marker = new OpenLayers.Marker(new OpenLayers.LonLat(x, y), icon.clone()); markersLayer.addMarker(marker); } The loop steps by 3 because the point format is lat,lon,altitude. What I'd like to do is also add a popup for each marker. I tried registering a marker mousedown event that would show a popup for attributes of the marker, but it only shows the attributes for one of the markers: marker.events.register("mousedown", marker, mousedown); I know many of you have grappled with similar popup problems; I've seen many posts about popups. Please, do you have any advice on how to do this? Many thanks. Mike Quentel --------------------------------------------------------------------- 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. From crschmidt at metacarta.com Wed Apr 16 10:55:07 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] popups for markers dynamically generated from KML In-Reply-To: <8A94DF1034BA03408EC040C33C42D3BA7281A1@XCH23YOW.rim.net> References: <8A94DF1034BA03408EC040C33C42D3BA7281A1@XCH23YOW.rim.net> Message-ID: <20080416145507.GA9707@metacarta.com> On Wed, Apr 16, 2008 at 10:40:32AM -0400, Mike Quentel wrote: > marker.events.register("mousedown", marker, mousedown); This isn't the useful part of the code. The part of the code that matters is what is *in* the mousedown function. My guess is that it refers to a variable ('marker') rather than the bound marker object ('this'), but there's no really any way of knowing with the code you've provided. Regards, -- Christopher Schmidt MetaCarta From mquentel at rim.com Wed Apr 16 11:01:58 2008 From: mquentel at rim.com (Mike Quentel) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] popups for markers dynamically generated from KML In-Reply-To: <20080416145507.GA9707@metacarta.com> Message-ID: <8A94DF1034BA03408EC040C33C42D3BA7281A3@XCH23YOW.rim.net> For now, it looks like this: function mousedown(evt) { alert(marker.lonlat); } Not sure how to pass the specifically bound marker object to the function. Mike -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Wednesday, 16 April 2008 10:55 To: Mike Quentel Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] popups for markers dynamically generated from KML On Wed, Apr 16, 2008 at 10:40:32AM -0400, Mike Quentel wrote: > marker.events.register("mousedown", marker, mousedown); This isn't the useful part of the code. The part of the code that matters is what is *in* the mousedown function. My guess is that it refers to a variable ('marker') rather than the bound marker object ('this'), but there's no really any way of knowing with the code you've provided. Regards, -- Christopher Schmidt MetaCarta --------------------------------------------------------------------- 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. From crschmidt at metacarta.com Wed Apr 16 11:02:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] popups for markers dynamically generated from KML In-Reply-To: <8A94DF1034BA03408EC040C33C42D3BA7281A3@XCH23YOW.rim.net> References: <20080416145507.GA9707@metacarta.com> <8A94DF1034BA03408EC040C33C42D3BA7281A3@XCH23YOW.rim.net> Message-ID: <20080416150256.GA9727@metacarta.com> On Wed, Apr 16, 2008 at 11:01:58AM -0400, Mike Quentel wrote: > For now, it looks like this: > > function mousedown(evt) { > alert(marker.lonlat); > } > > Not sure how to pass the specifically bound marker object to the > function. Don't use 'marker'. Use 'this'. Regards, -- Christopher Schmidt MetaCarta From mquentel at rim.com Wed Apr 16 11:13:50 2008 From: mquentel at rim.com (Mike Quentel) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] popups for markers dynamically generated from KML In-Reply-To: <20080416150256.GA9727@metacarta.com> Message-ID: <8A94DF1034BA03408EC040C33C42D3BA7281A5@XCH23YOW.rim.net> Fantastic--that worked. Thanks Christopher! Mike Quentel -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Wednesday, 16 April 2008 11:03 To: Mike Quentel Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] popups for markers dynamically generated from KML On Wed, Apr 16, 2008 at 11:01:58AM -0400, Mike Quentel wrote: > For now, it looks like this: > > function mousedown(evt) { > alert(marker.lonlat); > } > > Not sure how to pass the specifically bound marker object to the > function. Don't use 'marker'. Use 'this'. Regards, -- Christopher Schmidt MetaCarta --------------------------------------------------------------------- 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. From tschaub at openplans.org Wed Apr 16 11:20:09 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] ScaleLine km only In-Reply-To: <16717688.post@talk.nabble.com> References: <16717688.post@talk.nabble.com> Message-ID: <48061929.5080905@openplans.org> Hey- Matthew Doyle wrote: > Hi All, > > Using Openlayers 2.6 and coding a map using the ScaleLine control a la: > map.addControl(new OpenLayers.Control.ScaleLine()); > > My client wishes it only to display kilometres and not miles. Is there any > way to configure this? Or will i have to code a hack or design my own custom > scale which swaps in and out for each zoom level? Apologies if this is an > easy one, but the docs/api and searching through usergroups didn't give me > any joy. > You might also want to check out the ScaleBar control. Examples: http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar.html http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar-custom.html Docs: http://trac.openlayers.org/wiki/Addins/ScaleBar Tim > Cheers in advance, > Regards, > Matt From giohappy at gmail.com Wed Apr 16 12:28:57 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] confused about spherical mercator Message-ID: Hi everyone. I'm a bit confused about spherical mercator property... In the relative example from dev/examples, the SM is set for all the layers, except the OSM ones. Why? I thought that both OSM and Google use the Spherical Mercator. I think I've misunderstood it's effect, when both Projection and DisplayProjection options are also set in the map options... In other words: what is reprojected relatively to what? Thanks for any clarification... Giovanni From crschmidt at metacarta.com Wed Apr 16 12:48:12 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] confused about spherical mercator In-Reply-To: References: Message-ID: <20080416164812.GB12674@metacarta.com> On Wed, Apr 16, 2008 at 06:28:57PM +0200, G. Allegri wrote: > Hi everyone. > I'm a bit confused about spherical mercator property... > > In the relative example from dev/examples, the SM is set for all the > layers, except the OSM ones. Why? I thought that both OSM and Google > use the Spherical Mercator. I think I've misunderstood it's effect, > when both Projection and DisplayProjection options are also set in the > map options... > In other words: what is reprojected relatively to what? sphericalMercator is a way of saying "This API works, natively, in lat/lon, but uses raster images based in spherical mercator." It only makes sense when using a commercial/third party API for which this is true: all the 'native tile access' mechanisms don't need this flag. OpenStreetMap data is accessed directly as tiles, so we don't need to use the flag for it. The configuration that matters for OSM is the map configuration options, defined as var options = {} above. Regards, -- Christopher Schmidt MetaCarta From richard.greenwood at gmail.com Wed Apr 16 16:18:19 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] change a layer's url Message-ID: Is it possible to modify a layer's url after it has been added to a map with map.addLayer()? And similarly, is it possible to dynamically alter a layer's params? The things that I am trying to do are: 1. Pass a filter to a MapServer layer, e.g. filter=(id=123) 2. Dynamically change the MapServer layer(s) that comprise an OL layer. If there is a better way to accomplish these things I'm all ears. Thanks, Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From Steve.Lime at dnr.state.mn.us Wed Apr 16 16:36:59 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... Message-ID: <48061D1B.5157.008F.0@dnr.state.mn.us> Hi all: Figured I'd share an OL powered site we've got going. http://www.dnr.state.mn.us/maps/compass.html It's a simple viewer but OL was perfect for this type of thing for us. It's using: - OpenLayers 2.5 - MapServer 5.1 (development version, AGG backend) - TileCache 2 (mod_python, WMS layer) We still see the odd clipping problem with road shields, even with metatiling on but for the most it works well. Steve From gregor at hostgis.com Wed Apr 16 16:38:10 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] change a layer's url In-Reply-To: References: Message-ID: <480663B2.4040408@hostgis.com> Richard Greenwood wrote: > Is it possible to modify a layer's url after it has been added to a > map with map.addLayer()? And similarly, is it possible to dynamically > alter a layer's params? Yeah; I do it all the time. Use mergeNewParams() l = layers['storms']; l.mergeNewParams(date:'20080414', time:1530); I don't think that a l.reload() would even be necessary. I think that mergeNewParams() calls reload. -- 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 Wed Apr 16 17:09:52 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... In-Reply-To: <48061D1B.5157.008F.0@dnr.state.mn.us> References: <48061D1B.5157.008F.0@dnr.state.mn.us> Message-ID: <20080416210952.GB17236@metacarta.com> On Wed, Apr 16, 2008 at 03:36:59PM -0500, Steve Lime wrote: > Hi all: Figured I'd share an OL powered site we've got going. > > http://www.dnr.state.mn.us/maps/compass.html > > It's a simple viewer but OL was perfect for this type of thing for us. It's using: > > - OpenLayers 2.5 > - MapServer 5.1 (development version, AGG backend) > - TileCache 2 (mod_python, WMS layer) > > We still see the odd clipping problem with road shields, even with metatiling on but for the most it > works well. Are you using a mapscript or WMS backend? Either way, setting the size of your label_cache_edge_buffer to something higher than it currently is will help you here: metaBuffer (default 10) plus 10 should probably do it (the default is memtaBuffer + 5 with the mapscript layer)... Great looking site though! Care to do a case-study like writeup on why you chose this stack? Regards, -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Wed Apr 16 17:22:17 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... In-Reply-To: <20080416210952.GB17236@metacarta.com> References: <48061D1B.5157.008F.0@dnr.state.mn.us> <20080416210952.GB17236@metacarta.com> Message-ID: <480627B9.5157.008F.0@dnr.state.mn.us> I remembered the labelcache_map_edge_buffer a second after I hit send. I started with with MapServer layer but ran into some problematic memory leaks that seem to be caused by a weird combination of platform/python/mapserver/tilecache. The MapServer tile cache layer sets that for you and wms does not. So, I'm re-populating the cache right now. (BTW it would be useful to have an option to force re-rendering of tiles when seeding.) Would be happy to write something up. Is there an example someplace? Steve >>> On 4/16/2008 at 4:09 PM, in message <20080416210952.GB17236@metacarta.com>, Christopher Schmidt wrote: > On Wed, Apr 16, 2008 at 03:36:59PM -0500, Steve Lime wrote: >> Hi all: Figured I'd share an OL powered site we've got going. >> >> http://www.dnr.state.mn.us/maps/compass.html >> >> It's a simple viewer but OL was perfect for this type of thing for us. It's > using: >> >> - OpenLayers 2.5 >> - MapServer 5.1 (development version, AGG backend) >> - TileCache 2 (mod_python, WMS layer) >> >> We still see the odd clipping problem with road shields, even with > metatiling on but for the most it >> works well. > > Are you using a mapscript or WMS backend? Either way, setting the size > of your label_cache_edge_buffer to something higher than it currently is > will help you here: metaBuffer (default 10) plus 10 should probably do > it (the default is memtaBuffer + 5 with the mapscript layer)... > > Great looking site though! Care to do a case-study like writeup on why > you chose this stack? > > Regards, From giohappy at gmail.com Wed Apr 16 18:08:31 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] confused about spherical mercator In-Reply-To: <20080416164812.GB12674@metacarta.com> References: <20080416164812.GB12674@metacarta.com> Message-ID: Thank you Christopher. Now it's clear... the use of the property is an information for "the others", not for the layer where it is setted Anyway I'm not sure of having unserstood what you've said about "native tile access": is it a prerogative of tiling to be already projected in the right way? Mmm... I think I miss something :-) From brad at cubewerx.com.au Thu Apr 17 00:10:51 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Vectors on the move Message-ID: I am creating a selection box with a Shift-Mouse control and using this as a BBox criteria to do a getfeatureInfo request. That works just fine. I also draw the box on a vector layer and that is fine as well. However, when you pan up and down the select box ?floats? relative to the base map. Has anyone seen this and if so is there a workaround? If this is new I will make a little test app. Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080417/d269d07f/attachment.html From crschmidt at metacarta.com Thu Apr 17 00:18:27 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Vectors on the move In-Reply-To: References: Message-ID: <20080417041827.GA10636@metacarta.com> On Thu, Apr 17, 2008 at 02:10:51PM +1000, bradleyspencer wrote: > I am creating a selection box with a Shift-Mouse control and using this as a > BBox criteria to do a getfeatureInfo request. That works just fine. I also > draw the box on a vector layer and that is fine as well. > > However, when you pan up and down the select box ?floats? relative to the > base map. Has anyone seen this and if so is there a workaround? > > If this is new I will make a little test app. You're using a Handler.Box, I assume? How are you getting this to stay on the map? every implementation I know of, it disappears when you let go. In general, controls are stationary: if you want something to stick on the map, you're going to need to draw it in some other way than as a control, because it needs to be in the viewport div in order to move with the map. The best way to do this is probably via a temporary vector layer, since this will correctly handle things like map zooms, drags, etc. Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Thu Apr 17 01:02:42 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Vectors on the move In-Reply-To: <20080417041827.GA10636@metacarta.com> Message-ID: Chris, You are correct. I am using a Handle.Box control and the loX, LoY, HiX, HiY is available which I then simply use to draw into a temporary vector layer. This leaves me with a blue box over the area I selected. So I am already doing as you suggest I believe. My snippet of code is as follows: //set up the getfeature info alert on shift mouse box select control = new OpenLayers.Control(); OpenLayers.Util.extend(control, { draw: function () { // this Handler.Box will intercept the shift-mousedown before Control.MouseDefault gets to see it this.box = new OpenLayers.Handler.Box( control, {"done": this.notice},{keyMask: OpenLayers.Handler.MOD_SHIFT}); this.box.activate(); }, notice: function (bounds) { removeCreateVectors() // this will clear out any previous vectors // use the shift mouse control to drag a box and now get the coords of box ll = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, bounds.bottom)); ur = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.right, bounds.top)); centX = (bounds.left + bounds.right)/2 centY = (bounds.bottom + bounds.top)/2 var loX = ll.lon.toFixed(12); var loY = ll.lat.toFixed(12); var hiX = ur.lon.toFixed(12); var hiY = ur.lat.toFixed(12); BBox = loX+","+loY+"%20"+ hiX+ ","+hiY; // used in GFI request // OK now draw out the drag box as vectors drawSelectBox(loX,loY,hiX,hiY) // this just draws a box } }); map.addControl(control); However, after I have finished doing what I want any vertical pan movement 'floats' the vectors relative to the base map and the selected features. Cheers, Brad Spencer -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Thursday, 17 April 2008 2:18 PM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] Vectors on the move On Thu, Apr 17, 2008 at 02:10:51PM +1000, bradleyspencer wrote: > I am creating a selection box with a Shift-Mouse control and using this as a > BBox criteria to do a getfeatureInfo request. That works just fine. I also > draw the box on a vector layer and that is fine as well. > > However, when you pan up and down the select box 'floats' relative to the > base map. Has anyone seen this and if so is there a workaround? > > If this is new I will make a little test app. You're using a Handler.Box, I assume? How are you getting this to stay on the map? every implementation I know of, it disappears when you let go. In general, controls are stationary: if you want something to stick on the map, you're going to need to draw it in some other way than as a control, because it needs to be in the viewport div in order to move with the map. The best way to do this is probably via a temporary vector layer, since this will correctly handle things like map zooms, drags, etc. Regards, -- Christopher Schmidt MetaCarta From shiprabhardwaj at infobase.in Thu Apr 17 01:41:15 2008 From: shiprabhardwaj at infobase.in (shipra) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... References: <48061D1B.5157.008F.0@dnr.state.mn.us> Message-ID: Hi Steve Your Application is nice... I have a query.... I also made an application in openlayers. So want to know din't u have any problems with labeling coz I had many of labels got cut bcoz of tiles also the labels were repeated in tiles. Wat did u use for that? Pls reply.. Regards, Shipra -------------------------------------------------- From: "Steve Lime" Sent: Thursday, April 17, 2008 2:06 AM To: Subject: [OpenLayers-Users] Sample OL site... > Hi all: Figured I'd share an OL powered site we've got going. > > http://www.dnr.state.mn.us/maps/compass.html > > It's a simple viewer but OL was perfect for this type of thing for us. > It's using: > > - OpenLayers 2.5 > - MapServer 5.1 (development version, AGG backend) > - TileCache 2 (mod_python, WMS layer) > > We still see the odd clipping problem with road shields, even with > metatiling on but for the most it > works well. > > Steve > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From eric.c2c at gmail.com Thu Apr 17 02:25:06 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] tiling features to speed detecting features on the client In-Reply-To: <1208342288.6397.40.camel@charon> References: <1208342288.6397.40.camel@charon> Message-ID: <5ec103de0804162325w5f8366a4s4b3e3df6627827d2@mail.gmail.com> On Wed, Apr 16, 2008 at 12:38 PM, Graham Carlyle wrote: > In a previous post I said that I wanted to detect which feature a mouse > had clicked on at the client side in order to be more responsive. The > suggested solution worked well, that of downloading a geojson > representation of the features up front and using the 2.6 OL feature of > detecting whether the feature's geometry intersected with the mouse > point. FWIW: what we do in MapFish is send the x,y position on each click to the server, have the server do the intersection work and send a GeoJSON representation of the matching features. Yes, this is one Ajax request per click, but performance is good enough in general. -- Eric From simone.gadenz at jrc.it Thu Apr 17 03:57:35 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Tilecache layer temporary patch Message-ID: <010601c8a060$b3123a80$1936af80$@gadenz@jrc.it> Hi all. As in one of my previous post on this list I experienced problem wrapping the dateline for a Tilecache layer. In practice the column of tiles eastwards to the 180 latitude was calling a not existent 004 folder into the level 02 of the tilcecahc hierarchy. The level 02 has only 4 subfolders, from 000 to 003. I tried to understand where the error was generated but I didn't find it. For now I changed the getURL function into the OpenLayers.Layer.TileCache to: getURL: function(bounds) { var res = this.map.getResolution(); var bbox = this.maxExtent; var size = this.tileSize; 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. * number - {Int} * length - {Int} * * Returns: * {String} A zero-padded string */ function zeroPad(number, length) { number = String(number); var zeros = []; for(var i=0; i References: <48061D1B.5157.008F.0@dnr.state.mn.us> Message-ID: <480708BE.1060407@duif.net> Hi Shipra, we've just finished a (tiled) map based on OpenStreetmap-data and had about the same problems as you mention. I thought it would be helpfull to others to share some experiences: Those labeling doubles/partials are 'known' problems, of which there are a lot of solutions. But it's not very obvious, because there are so much variables: type of geometries, tools used, label positions, edges etc So there are a lot of buttons you can turn on to get the best result. It's part of the game to fiddle with those :-) Assuming you use some 'tiling'-mechanism, for example using Mapserver and Tilecache, there are the following issues: - raster vs vector data The problems you mention only appear if you render vector data (just to be clear). The actual problem is LABELING. It has also to be clear that because of tiling you cut up your big-image in rather small mini-maps. The problem is that a renderer/mapserver will use only the information it has for current tile/mapimage to determine which labels to draw. This makes these 'edgy problems'. DOUBLES and PARTIALS: - labeling points versus area/polygons and automatic labeling It good to realize yourself that there is a difference between labeling point geometries versus area/polygons. With the latter, you renderer (eg mapserver) is free to choose WHERE to put the label. It searches for the best position based on eg: available space around (edges), other labels in the neighborhood. The same for lines. With points however the renderer does not have that much 'freedom'. If you use POSITION auto, it does have some, but if you lock it by giving POSITION the value 'cc', you force the label on one place. It's this knowledge you can use to choose for example that you will use a point-layer for you labels (eg to generate a special point-label-layer from an polygon layer by generating a layer with the centerpoints of the polygons). In the case of using tiling: to 'fix' your (point)-labels by using cc for POSITION. But this is not enough to be sure there will be no doubles in your tiles. If you do not force the renderer to only draw whole labels (on the edges), you can end up with a partial label on the edge because the point is laying on the edge of one tile (but on this tile the label is only drawn half) and on the neighborhood tile nothing is drawn, because this tile is not aware of the point (and it's label). So use PARTIALS=false to be sure you will end up with partials on tile edges. Another option you can use here is the "labelcache_map_edge_buffer" "-100" configuration (in the metabuffer of the MAP FILE NOT THE LAYER!) This makes that there will be a label-less border of 100 pixels in your map-image/tile ... But what about those points laying on just 2 pixels from the edge of a tile? These will never be drawn then. That's where the Tilecache configuration 'metaBuffer' kicks in. If you use the metaTile=true option for tilecache, tilecache will not do 'tile by tile'-requests, but will request for example a 'metaTile' of 5x5 tiles at once. If you now use the option metaBuffer=100 for your metaTiles, it will request big tiles with a 100 pixel wide buffer around it. And just cut of this 100 pixel wide labelless(!) buffer for you, and all labels will be shown :-) be aware of the option FORCE for you labels also. While it's not nice to have overlapping labels, you sometimes are 'forced' to use FORCE just because otherwise there will not be enough labels in your tiles... But be careful with 'FORCE true'... - multiple labels / too much label for line/polygons The labeling of lines and polygons is very different from the points, because mapserver has so much freedom to place the labels along the line or in the (big) polygons. Because the map is divided in so much tiles/mini-maps, you will end up with too much labels for the same lines. This is why you really have to use metaTiling for your tilecache! Otherwise the labeling-buffer/mindistance/featuresize is determined for one minitile ... which is not what you want probably... So, be sure to put on metatiling, and fiddle around with the following label options then: mindistance (do no draw the same label within certain distance minfeaturesize (only put labels on features of a certain size) buffer (do not draw labels in a certain buffer around current) partials (do or do not draw partials (on the edges) Sometimes you have to split up the labeling in different scales, because at higher levels you want less labels to be seen etc. Here some other links: http://mapserver.gis.umn.edu/docs/reference/mapfile the label part: http://mapserver.gis.umn.edu/docs/reference/mapfile/label http://biometry.gis.umn.edu/tutorial/ has a nice part about labeling: http://biometry.gis.umn.edu/tutorial/example1-4.html And the config names: MAPSERVER: web metadata ... "labelcache_map_edge_buffer" "-100" end end .. ... class ... Label ... partials (false or true) buffer (4 number) force (false or true) position (cc .. ) mindistance (100 ) minfeaturesize (50) (angle) end .. TILECACHE: [layerx] metaTile=true metaBuffer=10 Mmm, ended up with al long email, hope this helps for somebody. Maybe it's an idea to put this kind of info in a nice (illustrated) wiki article? Regards and fiddle around, Richard Duivenvoorde shipra wrote: > Hi Steve > > Your Application is nice... > I have a query.... > I also made an application in openlayers. > So want to know din't u have any problems with labeling coz I had many of > labels got cut bcoz of tiles > also the labels were repeated in tiles. > > Wat did u use for that? > Pls reply.. > > Regards, > Shipra > > -------------------------------------------------- > From: "Steve Lime" > Sent: Thursday, April 17, 2008 2:06 AM > To: > Subject: [OpenLayers-Users] Sample OL site... > >> Hi all: Figured I'd share an OL powered site we've got going. >> >> http://www.dnr.state.mn.us/maps/compass.html >> >> It's a simple viewer but OL was perfect for this type of thing for us. >> It's using: >> >> - OpenLayers 2.5 >> - MapServer 5.1 (development version, AGG backend) >> - TileCache 2 (mod_python, WMS layer) >> >> We still see the odd clipping problem with road shields, even with >> metatiling on but for the most it >> works well. >> >> Steve >> >> _______________________________________________ >> 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 yjacolin at free.fr Thu Apr 17 04:33:31 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... In-Reply-To: <480708BE.1060407@duif.net> References: <48061D1B.5157.008F.0@dnr.state.mn.us> <480708BE.1060407@duif.net> Message-ID: <200804171033.31983.yjacolin@free.fr> Le Thursday 17 April 2008 10:22:22 Richard Duivenvoorde, vous avez ?crit?: > Mmm, ended up with al long email, hope this helps for somebody. > Maybe it's an idea to put this kind of info in a nice (illustrated) wiki > article? Hi, I agree completly and will use your nice mail for my OL document I am writing (in french) and may be "soon" in the OL wiki. Thanks very much for the time you took to send this interesting email. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From emmanuel.belo at camptocamp.com Thu Apr 17 05:55:25 2008 From: emmanuel.belo at camptocamp.com (Emmanuel BELO) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Best practices Message-ID: <48071E8D.60902@camptocamp.com> Dear Lists, doing OpenLayers and MapFish project with a growing team of coworkers and users, we came to the question: how to involve new staff fast and efficient in the project. The learning method, trying by yourself and studying examples is possible, but leads to ask yourself and resolve problems already solved. So we think, a wiki page that contains best practices would be useful. I started a draft page, that will contain central information for MapFish project. This page will contain display tips, map server tips, caching tips, database tips, infrastructure tips and so on as everything is related. I would like to know, if you would find an interest to put on OL wiki, OL specific best practices. The 2 pages would then be linked for easy access to all the information. Help in maintaining this wiki page would be nice. See http://trac.mapfish.org/trac/mapfish/wiki/HowToOptimize Best regards, Emmanuel -- Camptocamp SA Emmanuel BELO PSE A CH-1015 Lausanne +41 21 619 10 25 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From crschmidt at metacarta.com Thu Apr 17 06:34:23 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Vectors on the move In-Reply-To: References: <20080417041827.GA10636@metacarta.com> Message-ID: <20080417103423.GB10636@metacarta.com> On Thu, Apr 17, 2008 at 03:02:42PM +1000, bradleyspencer wrote: > Chris, > > You are correct. I am using a Handle.Box control and the loX, LoY, HiX, HiY > is available which I then simply use to draw into a temporary vector layer. > > This leaves me with a blue box over the area I selected. > > So I am already doing as you suggest I believe. My snippet of code is as > follows: > > // OK now draw out the drag box as vectors > drawSelectBox(loX,loY,hiX,hiY) // this just draws a box > } > }); > map.addControl(control); > > However, after I have finished doing what I want any vertical pan movement > 'floats' the vectors relative to the base map and the selected features. Are you using Google Maps as a baselayer, and not using sphericalMercator ? (Also, you didn't provie the code to drawSelectBox, so I can't actually tell *what* you're doing. :)) Regards, -- Christopher Schmidt MetaCarta From luca.casagrande at gmail.com Thu Apr 17 07:11:57 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] TileCache WMS Message-ID: <200804171311.57649.luca.casagrande@gmail.com> Hello everybody, during my learning with OL and TileCache I find this strange issue: http://doktoreas.dyndns.biz/apache2-default/luca/ol/wms_tilecache.html As you can see, also if both layers use the same TileCache layer they appear differentes and, looking at the coordinates, just the first one is correct. This is the layer: [nasajpl2] type=WMS url=http://localhost/cgi-bin/wmsdata layers=nasa bbox=180000,4600000,400000,4870000 srs=EPSG:23033 maxResolution=1132.8125 extension=jpeg debug=true size=512,512 What am I doing wrong? Thank you very much Luca From crschmidt at metacarta.com Thu Apr 17 07:20:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] TileCache WMS In-Reply-To: <200804171311.57649.luca.casagrande@gmail.com> References: <200804171311.57649.luca.casagrande@gmail.com> Message-ID: <20080417112054.GA16358@metacarta.com> On Thu, Apr 17, 2008 at 01:11:57PM +0200, Luca Casagrande wrote: > Hello everybody, > during my learning with OL and TileCache I find this strange issue: > > http://doktoreas.dyndns.biz/apache2-default/luca/ol/wms_tilecache.html > > As you can see, also if both layers use the same TileCache layer they appear > differentes and, looking at the coordinates, just the first one is correct. > This is the layer: First of all, you haven't told OpenLayers about your changed tile size. The fact that this works is more of a coincidence than anything else. Two, there's probably no reason to use a Layer.TileCache here? Three, I'm not 100% sure that Layer.TileCache owrks in different projections (though I think we fixed that with 2.6). > [nasajpl2] > type=WMS > url=http://localhost/cgi-bin/wmsdata > layers=nasa > bbox=180000,4600000,400000,4870000 > srs=EPSG:23033 > maxResolution=1132.8125 > extension=jpeg > debug=true > size=512,512 > > What am I doing wrong? > > Thank you very much > Luca > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From csabbey at gmail.com Thu Apr 17 09:37:26 2008 From: csabbey at gmail.com (geoman) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] draw a line on a map? In-Reply-To: <16705858.post@talk.nabble.com> References: <16689097.post@talk.nabble.com> <20080414202008.GA4244@metacarta.com> <16705780.post@talk.nabble.com> <16705858.post@talk.nabble.com> Message-ID: <16744007.post@talk.nabble.com> I wasn't taking Google's projection into account. Google for 'OpenLayers EPSG:900913' for more info. geoman wrote: > > When I pan the map North and South, the line does not stay fixed relative > to the map - can someone please tell me what the issue is here? > -- View this message in context: http://www.nabble.com/draw-a-line-on-a-map--tp16689097p16744007.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From David at itbeyond.com.au Thu Apr 17 11:41:24 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local> Hi, Just installed the 2.6 release live tonight and did all my testing in FF using firebug and was happy. Then decided to crank up IE7 and noticed that in my page the hyperlinks I created inside the FramedCloud do not work with IE, they are fine in FF and I cannot for the live of me see why. A page showing the error is as follows - http://www.exploroz.com/Places/78655/WA/Old_Point_Cloates_Lighthouse_Rui ns.aspx try clicking on the Diving Directions or Maps & Books links in IE and they just do nothing - FF works fine. Any ideas? PS: I have firbug loaded you just need to add ?FB=1 to the address line to have it load in however I have been unable to make lite work with IE maybe another problem if anyone has an idea on this one also? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080417/316d6d45/attachment.html From egouge at refractions.net Thu Apr 17 11:54:06 2008 From: egouge at refractions.net (Emily Gouge) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] OpenLayers 2.6 tileloaded event Message-ID: <4807729E.9060108@refractions.net> First, thanks to everyone who has contributed to the 2.6 release. My question is related to the The Layer Load Monitoring Example: http://openlayers.org/dev/examples/layerLoadMonitoring.html In OpenLayers 2.5 this example displays the following log with each tile loaded generating a log event: (8:38:42) WMS Buffer 0: Load Start (8:38:43) WMS Buffer 0: Tile loaded. 8 left. (8:38:43) WMS Buffer 0: Tile loaded. 7 left. (8:38:43) WMS Buffer 0: Tile loaded. 6 left. (8:38:43) WMS Buffer 0: Tile loaded. 5 left. (8:38:43) WMS Buffer 0: Tile loaded. 4 left. (8:38:43) WMS Buffer 0: Tile loaded. 3 left. (8:38:44) WMS Buffer 0: Tile loaded. 2 left. (8:38:44) WMS Buffer 0: Tile loaded. 1 left. (8:38:44) WMS Buffer 0: Tile loaded. 0 left. (8:38:44) WMS Buffer 0: Load End. Grid:3x3 However, OpenLayers 2.6 only generates the Load Start and Load End events, nothing for the loading events associated with each tile: (8:39:45) WMS Buffer 0: Load Start (8:39:47) WMS Buffer 0: Load End. Grid:3x3 Previously we were using the tileloaded event to inform users of how many tiles were remaining to be loaded. Has this event changed in OpenLayers 2.6? Is there some other event or method I should be using to provide a similar status to users? Thanks, Emily From tara_athan at alt2is.com Thu Apr 17 12:15:41 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] [work] Best practices In-Reply-To: <48071E8D.60902@camptocamp.com> References: <48071E8D.60902@camptocamp.com> Message-ID: <480777AD.4060601@alt2is.com> From my perspective as a struggling user, this is a GREAT idea! I will be happy to contribute to maintenance, and eventually to content, although at the moment I think my practices are better characterized as "worst" rather than "best". Along this same line of thought, I am wondering why OpenLayers doesn't have a Documentation Team (distinct from the developers). There is a need to provide more help to the lower-level users, and documentation written by the developer tends to be difficult for these users because the developer is so familiar with the application that they tend to leave out or gloss over a lot of details that are obvious to them, but not to the rest of us. Tara Emmanuel BELO wrote: > Dear Lists, > > doing OpenLayers and MapFish project with a growing team of coworkers > and users, we came to the question: how to involve new staff fast and > efficient in the project. > > The learning method, trying by yourself and studying examples is > possible, but leads to ask yourself and resolve problems already solved. > > So we think, a wiki page that contains best practices would be useful. > > I started a draft page, that will contain central information for > MapFish project. This page will contain display tips, map server tips, > caching tips, database tips, infrastructure tips and so on as everything > is related. > > I would like to know, if you would find an interest to put on OL wiki, > OL specific best practices. The 2 pages would then be linked for easy > access to all the information. Help in maintaining this wiki page would > be nice. > > See http://trac.mapfish.org/trac/mapfish/wiki/HowToOptimize > > Best regards, > > Emmanuel > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan [AT] alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From crschmidt at metacarta.com Thu Apr 17 12:54:36 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] [work] Best practices In-Reply-To: <480777AD.4060601@alt2is.com> References: <48071E8D.60902@camptocamp.com> <480777AD.4060601@alt2is.com> Message-ID: <20080417165436.GB21863@metacarta.com> On Thu, Apr 17, 2008 at 09:15:41AM -0700, Tara Athan wrote: > From my perspective as a struggling user, this is a GREAT idea! I will > be happy to contribute to maintenance, and eventually to content, > although at the moment I think my practices are better characterized as > "worst" rather than "best". > > Along this same line of thought, I am wondering why OpenLayers doesn't > have a Documentation Team (distinct from the developers). There is a > need to provide more help to the lower-level users, and documentation > written by the developer tends to be difficult for these users because > the developer is so familiar with the application that they tend to > leave out or gloss over a lot of details that are obvious to them, but > not to the rest of us. Because you haven't started one yet :) Are you looking to manage the Documentation team? What tools are you missing? Regards, -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Thu Apr 17 13:02:45 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] Sample OL site... In-Reply-To: References: <48061D1B.5157.008F.0@dnr.state.mn.us> Message-ID: <48073C66.5157.008F.0@dnr.state.mn.us> Sure, no problem. You can find it at: http://maps.dnr.state.mn.us/compass/compass_sample.map Things to note: - I use includes heavily so this file is the result of serializing a much simpler map file which is why you'll see scientific notation for some numbers and particularly verbose layer descriptions. - As mentioned in a follow-up by Chris, setting labelcache_map_edge_buffer eliminates shield getting cut off. I had started with a TileCache MapServer layer which set that automatically and then switched to a WMSLayer which doesn't. Setting explicitly fixed any issues. - I'm using the dev version of MapServer which introduces a new label processing option. If you see a line like "PROCESSING "LABEL_NO_CLIP=1" it is telling MapServer to compute a label point before clipping the feature. This results in stable label positions for polygon and line features (but is most useful with polygons). I'm just experimenting with it by fixing label positions, but it's another tool to help deal with edge labeling issues. - in order to create as small of tiles as possible I'm forcing AGG output through a pre-computed palette. The results are dramatic in terms of file size. I'm not able to achieve Goggle-sized tiles but that's to be expected since the maps contain far more information. The trick was to render a large sample 24-bit sample image (http://maps/compass/compass_color_sample.png) and generate a 8-bit palette from it. I used Photoshop in this case. Steve >>> On 4/17/2008 at 1:42 AM, in message , Barend Kobben wrote: > Great inspiration! Would you care to share your .map file with us > (dataconnection passwords deleted of course ;-) so other can see how you > achieved the nice symbology...? > From bwoodall at bwoodall.org Thu Apr 17 16:51:41 2008 From: bwoodall at bwoodall.org (bwoodall) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] [work] Best practices In-Reply-To: <20080417165436.GB21863@metacarta.com> References: <48071E8D.60902@camptocamp.com> <480777AD.4060601@alt2is.com> <20080417165436.GB21863@metacarta.com> Message-ID: <1208465501.7002.98.camel@wardrobe.dhs.org> On Thu, 2008-04-17 at 12:54 -0400, Christopher Schmidt wrote: > On Thu, Apr 17, 2008 at 09:15:41AM -0700, Tara Athan wrote: > > From my perspective as a struggling user, this is a GREAT idea! I will > > be happy to contribute to maintenance, and eventually to content, > > although at the moment I think my practices are better characterized as > > "worst" rather than "best". > > > > Along this same line of thought, I am wondering why OpenLayers doesn't > > have a Documentation Team (distinct from the developers). There is a > > need to provide more help to the lower-level users, and documentation > > written by the developer tends to be difficult for these users because > > the developer is so familiar with the application that they tend to > > leave out or gloss over a lot of details that are obvious to them, but > > not to the rest of us. > > Because you haven't started one yet :) Are you looking to manage the > Documentation team? What tools are you missing? Several of us, have made efforts to add more docs in the form of "User Recipes" ( How someone has accomplished a task ) which is found under the both "User" and "Developers" headings on http://trac.openlayers.org/ The thought was to make the recipes a narrative of the code, unlike the examples which are typically sparse in their comments and more exactly can be found at http://trac.openlayers.org/wiki/UserRecipes Then another effort was to catalog the different projects (maybe a better name can be found) that are under development, http://trac.openlayers.org/wiki/ProjectsUnderDev That page does have a Documentation with an ongoing effort on how to optimize OL and hopefully more content in the future. .....Bill, From lancelot at inetnebr.com Thu Apr 17 21:05:06 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] offsetting TMS layers... Message-ID: <4807F3C2.9030604@inetnebr.com> Creating large tile sets is sometimes a technical burden.. (particularly if you are not able to use tilecache) what I am interested in.. is merging tile sets. by using different layers Is it possible to define a layer as being offset from the basic map definition The map goes from 0 to 30000 wide and 0 to 30000 high but has 4 tilesets.. each generated as 15000 x 15000 ...can I offset these layers ie. [0 to 15000] [0 to 15000 ] [0 to 15000] [15000 to 30000] [15000 to 30000] [0 to 15000 ] [15000 to 3000] [1500 to 30000] Will I need ot use pngs (ie something with transparency or could I get away with jpegs for the main images and pngs for areas outside the area of data.. what about the border cases? From euzuro at gmail.com Thu Apr 17 21:38:52 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local> Message-ID: <6ae3fb590804171838q6f9dd62dv1d5c7f82be025c55@mail.gmail.com> I can confirm that these links are *not* clickable in ie6 and yet *are* clickable in ff. This looks like a bug. Thanks for the good report with straightforward link, David. Do you have a trac account, could you turn this into a ticket for 2.7? Thanks! Erik On 4/17/08, David Martin wrote: > > Hi, > > > > Just installed the 2.6 release live tonight and did all my testing in FF > using firebug and was happy. Then decided to crank up IE7 and noticed that > in my page the hyperlinks I created inside the FramedCloud do not work with > IE, they are fine in FF and I cannot for the live of me see why. A page > showing the error is as follows ? > http://www.exploroz.com/Places/78655/WA/Old_Point_Cloates_Lighthouse_Ruins.aspxtry clicking on the Diving Directions or Maps & Books links in IE and they > just do nothing ? FF works fine. Any ideas? > > PS: I have firbug loaded you just need to add ?FB=1 to the address line to > have it load in however I have been unable to make lite work with IE maybe > another problem if anyone has an idea on this one also? > > Regards > David Martin > Managing Director > I.T. Beyond Pty Ltd > > Postal: > > PO BOX 967 > HILLARYS WA 6923 > > Ph: > > (08) 9403 3737 > > Mobile: > > 0417 677 275 > > Fax: > > (08) 9403 3738 > > Skype: > > itbeyond_david > ------------------------------ > > Check out our websites: www.ExplorOz.com and > www.itbeyond.com.au > ------------------------------ > > _______________________________________________ > 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/20080417/9edeaf9a/attachment.html From David at itbeyond.com.au Thu Apr 17 22:11:16 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 In-Reply-To: <6ae3fb590804171838q6f9dd62dv1d5c7f82be025c55@mail.gmail.com> References: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local> <6ae3fb590804171838q6f9dd62dv1d5c7f82be025c55@mail.gmail.com> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB5DC@ITB-SVR-01.itbeyond.local> Erik, I am a little miffed as I was able to make the exact same code work on a page that is almost exactly the same. It is really strange however I think I have isolated the issue to a problem somewhere between prototype 1.6.0.2 and Openlayers 2.6. Because when I pull the prototype library from the page the hyperlinks seem to work, mind you one page I do not have to pull the prototype library and it works (WEIRD). I am still investigating and will report more when I get to the bottom of the issue. As you can understand it is very annoying when two script libraries clash and cause some weird error. Is using prototype with OL a problem? I have some AJAX code that can be called from every page of my site and I used the prototype library to support this, coupled with using the element features of prototype, would it be better to change my base scripts to use OpenLayers classes? I do not have a trac account as yet. I have loaded patches (Right Mouse support) to Trac using the Openlayers user. I have completed the agreement and sent it in. Is there more I need to do for a Trac user? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: Erik Uzureau [mailto:euzuro@gmail.com] Sent: Friday, 18 April 2008 9:39 AM To: David Martin Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 I can confirm that these links are *not* clickable in ie6 and yet *are* clickable in ff. This looks like a bug. Thanks for the good report with straightforward link, David. Do you have a trac account, could you turn this into a ticket for 2.7? Thanks! Erik On 4/17/08, David Martin wrote: Hi, Just installed the 2.6 release live tonight and did all my testing in FF using firebug and was happy. Then decided to crank up IE7 and noticed that in my page the hyperlinks I created inside the FramedCloud do not work with IE, they are fine in FF and I cannot for the live of me see why. A page showing the error is as follows - http://www.exploroz.com/Places/78655/WA/Old_Point_Cloates_Lighthouse_Rui ns.aspx try clicking on the Diving Directions or Maps & Books links in IE and they just do nothing - FF works fine. Any ideas? PS: I have firbug loaded you just need to add ?FB=1 to the address line to have it load in however I have been unable to make lite work with IE maybe another problem if anyone has an idea on this one also? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ _______________________________________________ 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/20080418/bc87e0fe/attachment.html From mattsnape at gmail.com Fri Apr 18 08:15:03 2008 From: mattsnape at gmail.com (matthewsnape) Date: Wed Sep 1 17:16:15 2010 Subject: [OpenLayers-Users] wfs cacheing Message-ID: <16763389.post@talk.nabble.com> Hi, I am using OpenLayers to download features from a wfs server. Currently OpenLayers refreshed the wfs server whenever you move beyond the extents of the data. If you then move back in to a part of the map which previously had features already downloaded it refreshes. Is there a way to cache wfs returns on the browser so that it does not have to redownload areas already covered? Thanks. -- View this message in context: http://www.nabble.com/wfs-cacheing-tp16763389p16763389.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From David at itbeyond.com.au Fri Apr 18 08:42:35 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB5DC@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local><6ae3fb590804171838q6f9dd62dv1d5c7f82be025c55@mail.gmail.com> <9C37154DC7C8074FBC34214363755B7C1EB5DC@ITB-SVR-01.itbeyond.local> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB610@ITB-SVR-01.itbeyond.local> HI, After a whole day of playing with this I am still at a loss. I have worked out that the problem only occurs when the prototype 1.6.0.2 is used along side of Open Layers. I cannot get anything out of Firebug Lite on IE to help me as the event just does not seem to trigger mind you the status bar reflects the href in the link when you hover over the link alas it appears that the mouse click event just goes away in IE. The mouse click is active on the close box just not the contents of the popup - which is clearly shown in the source code of the page (it is loaded statically when the page is drawn and not an RSS) so you can check that the syntax is valid. Would the load order of prototype and OL make any difference? If anyone can assist their are two links I can offer showing the same issue (mid you there are nearly 80,000 pages effected): http://www.exploroz.com/Customers/Custom_Boat_Loaders.aspx - Click on the image on the map to open the popup and see if you can click http://www.exploroz.com/Places/28159/NT/Ayers_Rock_Uluru.aspx - The popup will fire up automatically OT NOTE: You will also note that I have completely rebuilt my topographic Australian base maps using mapserver's new AGG graphics and used some information I gained from Steve Lime's demo site with it's nice colour pallet outputformat - makes the png's very small. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: David Martin Sent: Friday, 18 April 2008 10:11 AM To: Erik Uzureau Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 Erik, I am a little miffed as I was able to make the exact same code work on a page that is almost exactly the same. It is really strange however I think I have isolated the issue to a problem somewhere between prototype 1.6.0.2 and Openlayers 2.6. Because when I pull the prototype library from the page the hyperlinks seem to work, mind you one page I do not have to pull the prototype library and it works (WEIRD). I am still investigating and will report more when I get to the bottom of the issue. As you can understand it is very annoying when two script libraries clash and cause some weird error. Is using prototype with OL a problem? I have some AJAX code that can be called from every page of my site and I used the prototype library to support this, coupled with using the element features of prototype, would it be better to change my base scripts to use OpenLayers classes? I do not have a trac account as yet. I have loaded patches (Right Mouse support) to Trac using the Openlayers user. I have completed the agreement and sent it in. Is there more I need to do for a Trac user? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: Erik Uzureau [mailto:euzuro@gmail.com] Sent: Friday, 18 April 2008 9:39 AM To: David Martin Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 I can confirm that these links are *not* clickable in ie6 and yet *are* clickable in ff. This looks like a bug. Thanks for the good report with straightforward link, David. Do you have a trac account, could you turn this into a ticket for 2.7? Thanks! Erik On 4/17/08, David Martin wrote: Hi, Just installed the 2.6 release live tonight and did all my testing in FF using firebug and was happy. Then decided to crank up IE7 and noticed that in my page the hyperlinks I created inside the FramedCloud do not work with IE, they are fine in FF and I cannot for the live of me see why. A page showing the error is as follows - http://www.exploroz.com/Places/78655/WA/Old_Point_Cloates_Lighthouse_Rui ns.aspx try clicking on the Diving Directions or Maps & Books links in IE and they just do nothing - FF works fine. Any ideas? PS: I have firbug loaded you just need to add ?FB=1 to the address line to have it load in however I have been unable to make lite work with IE maybe another problem if anyone has an idea on this one also? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ _______________________________________________ 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/20080418/8acb7d58/attachment.html From crschmidt at metacarta.com Fri Apr 18 08:53:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] wfs cacheing In-Reply-To: <16763389.post@talk.nabble.com> References: <16763389.post@talk.nabble.com> Message-ID: <20080418125354.GA11926@metacarta.com> On Fri, Apr 18, 2008 at 05:15:03AM -0700, matthewsnape wrote: > > Hi, > > I am using OpenLayers to download features from a wfs server. Currently > OpenLayers refreshed the wfs server whenever you move beyond the extents of > the data. If you then move back in to a part of the map which previously > had features already downloaded it refreshes. Is there a way to cache wfs > returns on the browser so that it does not have to redownload areas already > covered? OpenLayers does not have this functionality at this time. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Apr 18 10:52:12 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] OpenLayers 2.6 tileloaded event In-Reply-To: <4807729E.9060108@refractions.net> References: <4807729E.9060108@refractions.net> Message-ID: <20080418145212.GA13748@metacarta.com> On Thu, Apr 17, 2008 at 08:54:06AM -0700, Emily Gouge wrote: > Previously we were using the tileloaded event to inform users of how > many tiles were remaining to be loaded. Has this event changed in > OpenLayers 2.6? Is there some other event or method I should be using > to provide a similar status to users? This is a bug/regression, created by http://trac.openlayers.org/changeset/6832/trunk/openlayers/lib/OpenLayers/Events.js . While we work out the correct resolution to this issue, you can use the following workaround: Pass an "EVENT_TYPES" property to Layer options, as such: buffer = new OpenLayers.Layer.WMS( "WMS Buffer 0", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} , {EVENT_TYPES:["loadstart", "loadend", "loadcancel", "visibilitychanged","tileloaded"]} ); Note the inclusion of the 'tileloaded' event. I'm sorry about this regression. Regards, -- Christopher Schmidt MetaCarta From egouge at refractions.net Fri Apr 18 13:14:47 2008 From: egouge at refractions.net (Emily Gouge) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] OpenLayers 2.6 tileloaded event In-Reply-To: <20080418145212.GA13748@metacarta.com> References: <4807729E.9060108@refractions.net> <20080418145212.GA13748@metacarta.com> Message-ID: <4808D707.6010005@refractions.net> This workaround worked great. Thanks for the help. Christopher Schmidt wrote: > On Thu, Apr 17, 2008 at 08:54:06AM -0700, Emily Gouge wrote: >> Previously we were using the tileloaded event to inform users of how >> many tiles were remaining to be loaded. Has this event changed in >> OpenLayers 2.6? Is there some other event or method I should be using >> to provide a similar status to users? > > This is a bug/regression, created by > http://trac.openlayers.org/changeset/6832/trunk/openlayers/lib/OpenLayers/Events.js . > > While we work out the correct resolution to this issue, you can use the > following workaround: > > Pass an "EVENT_TYPES" property to Layer options, as such: > > buffer = new OpenLayers.Layer.WMS( "WMS Buffer 0", > "http://labs.metacarta.com/wms/vmap0", > {layers: 'basic'} , > {EVENT_TYPES:["loadstart", "loadend", "loadcancel", > "visibilitychanged","tileloaded"]} > ); > > Note the inclusion of the 'tileloaded' event. > > I'm sorry about this regression. > > Regards, From anakintang at gmail.com Fri Apr 18 14:47:19 2008 From: anakintang at gmail.com (Yingqi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Can not register dblclick in a point handler Message-ID: <16764014.post@talk.nabble.com> All, Using OL 2.5, I would like to write a Control inherit from OpenLayers.Control and register the dblclick but I can not get it work. When I double-click the map the callback method for dblclick never get called. So just wonder if I did anything wrong. Here is initialize code of the control initialize: function(layer, options) { OpenLayers.Control.prototype.initialize.apply(this, [options]); this.handler = new OpenLayers.Handler.Point( this, {dblclick: this.reverseGeocode} ); this.handler.activate(); } Thanks -- View this message in context: http://www.nabble.com/Can-not-register-dblclick-in-a-point-handler-tp16764014p16764014.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From richard.greenwood at gmail.com Fri Apr 18 16:24:19 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] change a layer's url In-Reply-To: <480663B2.4040408@hostgis.com> References: <480663B2.4040408@hostgis.com> Message-ID: On Wed, Apr 16, 2008 at 2:38 PM, Gregor Mosheh wrote: > Richard Greenwood wrote: > > > Is it possible to modify a layer's url after it has been added to a > > map with map.addLayer()? And similarly, is it possible to dynamically > > alter a layer's params? > > > > Yeah; I do it all the time. Use mergeNewParams() > > l = layers['storms']; > l.mergeNewParams(date:'20080414', time:1530); Thanks! A minor correction for the archive, the parameter list must be within {} l.mergeNewParams( {date:'20080414', time:1530} ; -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From tara_athan at alt2is.com Fri Apr 18 19:38:39 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Documentation Team In-Reply-To: <1208465501.7002.98.camel@wardrobe.dhs.org> References: <48071E8D.60902@camptocamp.com> <480777AD.4060601@alt2is.com> <20080417165436.GB21863@metacarta.com> <1208465501.7002.98.camel@wardrobe.dhs.org> Message-ID: <480930FF.1000604@alt2is.com> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080418/0f95f322/attachment.html From David at itbeyond.com.au Sat Apr 19 02:56:29 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB610@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EB5C7@ITB-SVR-01.itbeyond.local><6ae3fb590804171838q6f9dd62dv1d5c7f82be025c55@mail.gmail.com><9C37154DC7C8074FBC34214363755B7C1EB5DC@ITB-SVR-01.itbeyond.local> <9C37154DC7C8074FBC34214363755B7C1EB610@ITB-SVR-01.itbeyond.local> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB614@ITB-SVR-01.itbeyond.local> BY way of update on this issue - I have worked around it now by making a number of page adjustments and only loading prototype on pages that do not have OL maps installed. This seems to have worked around the error and I will try to investigate some more is due course. It is strange to say the least as the two libraries should work together without issue. I have not been able to determine which library is causing the problem because it is so strange. Anyway just wanted to let you all know because if you visit the pages I have mentioned below the error will not show itself. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: David Martin Sent: Friday, 18 April 2008 8:43 PM To: David Martin; Erik Uzureau Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 HI, After a whole day of playing with this I am still at a loss. I have worked out that the problem only occurs when the prototype 1.6.0.2 is used along side of Open Layers. I cannot get anything out of Firebug Lite on IE to help me as the event just does not seem to trigger mind you the status bar reflects the href in the link when you hover over the link alas it appears that the mouse click event just goes away in IE. The mouse click is active on the close box just not the contents of the popup - which is clearly shown in the source code of the page (it is loaded statically when the page is drawn and not an RSS) so you can check that the syntax is valid. Would the load order of prototype and OL make any difference? If anyone can assist their are two links I can offer showing the same issue (mid you there are nearly 80,000 pages effected): http://www.exploroz.com/Customers/Custom_Boat_Loaders.aspx - Click on the image on the map to open the popup and see if you can click http://www.exploroz.com/Places/28159/NT/Ayers_Rock_Uluru.aspx - The popup will fire up automatically OT NOTE: You will also note that I have completely rebuilt my topographic Australian base maps using mapserver's new AGG graphics and used some information I gained from Steve Lime's demo site with it's nice colour pallet outputformat - makes the png's very small. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: David Martin Sent: Friday, 18 April 2008 10:11 AM To: Erik Uzureau Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 Erik, I am a little miffed as I was able to make the exact same code work on a page that is almost exactly the same. It is really strange however I think I have isolated the issue to a problem somewhere between prototype 1.6.0.2 and Openlayers 2.6. Because when I pull the prototype library from the page the hyperlinks seem to work, mind you one page I do not have to pull the prototype library and it works (WEIRD). I am still investigating and will report more when I get to the bottom of the issue. As you can understand it is very annoying when two script libraries clash and cause some weird error. Is using prototype with OL a problem? I have some AJAX code that can be called from every page of my site and I used the prototype library to support this, coupled with using the element features of prototype, would it be better to change my base scripts to use OpenLayers classes? I do not have a trac account as yet. I have loaded patches (Right Mouse support) to Trac using the Openlayers user. I have completed the agreement and sent it in. Is there more I need to do for a Trac user? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From: Erik Uzureau [mailto:euzuro@gmail.com] Sent: Friday, 18 April 2008 9:39 AM To: David Martin Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] FrameCloud Hyperlinks IE not working 2.6 I can confirm that these links are *not* clickable in ie6 and yet *are* clickable in ff. This looks like a bug. Thanks for the good report with straightforward link, David. Do you have a trac account, could you turn this into a ticket for 2.7? Thanks! Erik On 4/17/08, David Martin wrote: Hi, Just installed the 2.6 release live tonight and did all my testing in FF using firebug and was happy. Then decided to crank up IE7 and noticed that in my page the hyperlinks I created inside the FramedCloud do not work with IE, they are fine in FF and I cannot for the live of me see why. A page showing the error is as follows - http://www.exploroz.com/Places/78655/WA/Old_Point_Cloates_Lighthouse_Rui ns.aspx try clicking on the Diving Directions or Maps & Books links in IE and they just do nothing - FF works fine. Any ideas? PS: I have firbug loaded you just need to add ?FB=1 to the address line to have it load in however I have been unable to make lite work with IE maybe another problem if anyone has an idea on this one also? Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ _______________________________________________ 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/20080419/a538caa3/attachment.html From alessio.dilorenzo at gmail.com Sun Apr 20 11:23:26 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display Message-ID: <480B5FEE.1020904@gmail.com> Hi list, I have a little OL application showing data in utm33-wgs84 (epsg: 32633) and I'm using a separate div to display the mouse position in 32633 with no problems. What I'd like to do is to display the mouse position also in geographical wgs84 (epsg: 4326) in another different div. In this way users could see both 32633 and 4326 coordinates at the same time. Is it possible? thx From eric.c2c at gmail.com Sun Apr 20 14:48:35 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Can not register dblclick in a point handler In-Reply-To: <16764014.post@talk.nabble.com> References: <16764014.post@talk.nabble.com> Message-ID: <5ec103de0804201148s3415882dv878aeecc3746e2d1@mail.gmail.com> On Fri, Apr 18, 2008 at 8:47 PM, Yingqi wrote: > > All, > > Using OL 2.5, I would like to write a Control inherit from > OpenLayers.Control and register the dblclick but I can not get it work. When > I double-click the map the callback method for dblclick never get called. So > just wonder if I did anything wrong. Here is initialize code of the control > > initialize: function(layer, options) { > OpenLayers.Control.prototype.initialize.apply(this, [options]); > this.handler = new OpenLayers.Handler.Point( > this, > {dblclick: this.reverseGeocode} > ); > this.handler.activate(); > } You should use the click handler as opposed to the point handler. See Cheers, -- Eric From colinandyvonne at clanlaw.org.uk Sun Apr 20 17:28:32 2008 From: colinandyvonne at clanlaw.org.uk (Colin and Yvonne Law) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Intercept mouse click using Navigation control Message-ID: <20080420212831.51848A70A1@server42.ukservers.net> Hi A question from a newcomer who doesn't know what he is doing yet. I wish to intercept mouse clicks on the map and found examples of how to achieve this using OpenLayers.Control.MouseDefaults in the list archive. I have got this working ok using code of the form: olMouseDefaults = new OpenLayers.Control.MouseDefaults(); olMouseDefaults.defaultClick = function(evt) { var point = this.map.getLonLatFromViewPortPx( evt.xy ); alert("Got point:" + point); OpenLayers.Event.stop(evt); return false; } map.addControl(olMouseDefaults); Unfortunately I now see from the source of MouseDefaults.js that this control is now deprecated and I should be using the Navigation control. I cannot find any examples of how to achieve click interception using this control and my attempts have all failed. Help would be gratefully received. Colin From giohappy at gmail.com Sun Apr 20 18:27:56 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Users Digest, Vol 19, Issue 55 In-Reply-To: References: Message-ID: Hi Ale, you could use the OpenLayers.Projection.transform(point,source,dest) method, based on proj4js : http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Projection-js.html#OpenLayers.Projection.transform Giovanni 2008/4/20, users-request@openlayers.org : > Send Users mailing list submissions to > users@openlayers.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://openlayers.org/mailman/listinfo/users > or, via email, send a message with subject or body 'help' to > users-request@openlayers.org > > You can reach the person managing the list at > users-owner@openlayers.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. multiple epsg coordinates display (Alessio Di Lorenzo) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 20 Apr 2008 17:23:26 +0200 > From: Alessio Di Lorenzo > Subject: [OpenLayers-Users] multiple epsg coordinates display > To: OpenLayers ML > Message-ID: <480B5FEE.1020904@gmail.com> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hi list, > > I have a little OL application showing data in utm33-wgs84 (epsg: 32633) > and I'm using a separate div to display the mouse position in 32633 with > no problems. > > What I'd like to do is to display the mouse position also in > geographical wgs84 (epsg: 4326) in another different div. > In this way users could see both 32633 and 4326 coordinates at the same > time. > > Is it possible? > > thx > > > > ------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > End of Users Digest, Vol 19, Issue 55 > ************************************* > From pedrosimonetti at gmail.com Mon Apr 21 03:16:26 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti Garcia) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Calculate the scale of the map in a printing size Message-ID: <5b629bbf0804210016x5f628dceh2cabf9022c4fd4e9@mail.gmail.com> Hi everybody, I'm not sure if this mailing is the right place to ask, so If this is the not the right one, please point me a proper list to do it. I'm developing a printing system in PHP Mapscript, and I'm dealing with the well known "symbols and fonts size after resizing the map" problem. I've researched in different mailing list, but I didn't find a working solution. Someone pointed that it might be possible to automatically look for mapfile elements and resize them with Mapscript. I'm working on this approach. With this approach I'm getting good results. But now, I need to calculate the scale of the map in 2 different sizes: 1) the scale of the map with the viewport's size, and 2) the scale of the map with the printing size. With OpenLayers, the scale at viewport's size is not problem, once I can get this value with map.getScale(). But, how do I calculate the scale of the same map, but with a different size? To make it easy to understand, let's suppose I have a 800x600 map viewport, and I wanna print this same map with 288 dpi. Since 72dpi is the base value of mapserver, 288dpi = 4 * 72 dpi. So the printing size will be 800*4 x 600*4 = 3200 x 2400. The basic scale value I can get from map.getScale(). But how do I calculate the scale of this map with a 3200 x 2400 size? I need to work with this value in Mapscript so the symbols and fonts can be properly resized at different sizes/resolutions. The value will be around map.getScale() / 4, but this is not the precise value, and it could lead to some precision errors. thanks in advance, Pedro Simonetti. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080421/abfe1cd7/attachment.html From cranio at quipo.it Mon Apr 21 09:28:31 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] WKT reprojection Message-ID: <16807918.post@talk.nabble.com> Hi folks, I am writing a web application using MySQL/OpenLayers/AJAX/PHP; this app must enable some users to draw a vector shape and then import it in a Spatial-aware MySQL database. Now, everything is theoretically fine, till I have to put the actual polygonal data in the database; 'cause I use for this the WKT format exported string, but the resulting string is calculated on the Google base layer projection (EPSG:900913). That won't do, because my database holds data in UTM33S projection (EPSG:32733), and I want data to be consistent among already existing pre-defined shapes. Is there a way to force the point coordinates to show up in the other EPSG projection, so I can put them directly in the DB with a single and straightforward query (obviously without performing boring string parsing and coord conversion routines)? -- View this message in context: http://www.nabble.com/WKT-reprojection-tp16807918p16807918.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Mon Apr 21 09:38:03 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] WKT reprojection In-Reply-To: <16807918.post@talk.nabble.com> References: <16807918.post@talk.nabble.com> Message-ID: <20080421133803.GA8437@metacarta.com> On Mon, Apr 21, 2008 at 06:28:31AM -0700, Cranio wrote: > > Hi folks, > > I am writing a web application using MySQL/OpenLayers/AJAX/PHP; this app > must enable some users to draw a vector shape and then import it in a > Spatial-aware MySQL database. > > Now, everything is theoretically fine, till I have to put the actual > polygonal data in the database; 'cause I use for this the WKT format > exported string, but the resulting string is calculated on the Google base > layer projection (EPSG:900913). > > That won't do, because my database holds data in UTM33S projection > (EPSG:32733), and I want data to be consistent among already existing > pre-defined shapes. > > Is there a way to force the point coordinates to show up in the other EPSG > projection, so I can put them directly in the DB with a single and > straightforward query (obviously without performing boring string parsing > and coord conversion routines)? Formats all have an internal (feature) and external (string) projection options, passed at create time. These options allow you to specify projection objects, which are used to change the coordinates when reading/writing. You will need the support of a library which can transform from EPSG:900913 to EPSG:32733 correctly. proj4js may be able to do this; I don't know for sure. Regards, -- Christopher Schmidt MetaCarta From rob.braswell at unh.edu Mon Apr 21 10:39:56 2008 From: rob.braswell at unh.edu (Bobby H. Braswell) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] FramedCloud with Layer.Text? Message-ID: Hi- Is there an example of using the framed cloud popups with a text layer in 2.6? In general can we specify the popup type when constructing a text layer? Thanks, Rob Braswell University of New Hampshire From dejung.gewissler at oit.state.nj.us Mon Apr 21 11:13:39 2008 From: dejung.gewissler at oit.state.nj.us (Dejung Gewissler) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] ArcGIS GeoJSON export tool Message-ID: <480CAF23.4000901@oit.state.nj.us> Hi All- I know this doesn't pertain directly to OpenLayers, but hopefully this will be of help to someone :) I just uploaded to the arcscripts repository [1] an ArcGIS geoprocessing python script that will iterate through all the features in a feature class (can be done in ArcMap or ArcCatalog) and exports a GeoJSON formatted text file. I used the GeoJSON draft version 6 [2] as the output format. It will also output either all or the specified attributes of that feature. You can even put it in model builder and do some preprocessing of the data (joining data, dissolving or simplifing features) before the export. I needed a way to empower folks in different agencies to test their vector data with OpenLayers without having to setup multiple, one-off webservices/mapservices just for development purposes. I've got to admit that this was selfishly motivated (not wanting to be bothered by a multitude of individual requests), so if anyone out there can also derive some benefit from this, it would make me feel better :) [1] http://arcscripts.esri.com/details.asp?dbid=15545 [2] http://wiki.geojson.org/GeoJSON_draft_version_6 If there are any bugs/improvements that people come up with, please let me know. -Dejung dejung.gewissler *at* oti.state.nj.us From ks at geograf.dk Mon Apr 21 12:07:30 2008 From: ks at geograf.dk (Kenneth, GEOGRAF A/S) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Pan/zoom bug with IE7 Message-ID: <480CBBC2.3070801@geograf.dk> I have been tracking an annoying bug in IE7 (FF2 and IE6 works). When I pan (and sometimes when I zoom), the map stops displaying and interacting (the position freezes). After some digging, it turns out that the map size suddenly reports itself incorrectly. Sometimes it is 100x100 (because the style says w+h = 100%). Other times, the width is correct, but clientHeight is 0. Is this a known problem, or is there a known cause? I'm using OpenLayers 2.5. -- Regards, Kenneth, GEOGRAF A/S From diegoguidi at gmail.com Mon Apr 21 12:30:26 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Fwd: Custom Box handler conflict? In-Reply-To: References: Message-ID: I retry to make the same questions... sorry for the "spam" but I hope to get some suggests on how to fix my problem ---------- Forwarded message ---------- From: Diego Guidi Date: Wed, Apr 16, 2008 at 11:03 AM Subject: Custom Box handler conflict? To: OpenLayers Users I'm using the brand new 2.6 (well done guys!) but I haven't try with older versions, so... In my website I'm using OpenLayers and NavToolBar component, that implements a ZoomBox handler for a zoom rect funtion that works well. I've tried to add this custom components, taken from the openlayers samples, and i have a strange behavior: var customBox = new OpenLayers.Control(); OpenLayers.Util.extend(customBox, { draw: function () { this.box = new OpenLayers.Handler.Box(customBox, { "done": this.notice }, { keyMask: OpenLayers.Handler.MOD_SHIFT }); this.box.activate(); }, notice: function (bounds) { var ll = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, bounds.bottom)); var ur = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.right, bounds.top)); alert(ll.lon.toFixed(4) + ", " + ll.lat.toFixed(4) + ", " + ur.lon.toFixed(4) + ", " + ur.lat.toFixed(4)); } }); If i add this component to the map, when i try the code all works well: the navtoolbar is in "pan" state so i could pan the map as usual, and using shift i could drag a zoombox and show the bounding box coordinates. If i select the zoomrect tool from navtoolbar i lost the behavior of the custom component :( Any try to use shift + zoombox generates the behavior of the zoomrect tool. any suggestion? -- Diego Guidi http://lacorrente.blogspot.com From alessio.dilorenzo at gmail.com Mon Apr 21 12:37:22 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <480B5FEE.1020904@gmail.com> References: <480B5FEE.1020904@gmail.com> Message-ID: <480CC2C2.6030201@gmail.com> Hello, by reading on the web I noticed that what I want to do is possible through proj4js library "Support for reprojecting user-facing controls like mouseposition" Cuold someone show me any examples? Alessio Di Lorenzo ha scritto: > Hi list, > > I have a little OL application showing data in utm33-wgs84 (epsg: > 32633) and I'm using a separate div to display the mouse position in > 32633 with no problems. > > What I'd like to do is to display the mouse position also in > geographical wgs84 (epsg: 4326) in another different div. > In this way users could see both 32633 and 4326 coordinates at the > same time. > > Is it possible? > > thx > > From crschmidt at metacarta.com Mon Apr 21 13:54:46 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] FramedCloud with Layer.Text? In-Reply-To: References: Message-ID: <20080421175446.GB11748@metacarta.com> On Mon, Apr 21, 2008 at 10:39:56AM -0400, Bobby H. Braswell wrote: > > Hi- > > Is there an example of using the framed cloud popups with a text layer > in 2.6? In general can we specify the popup type when constructing a > text layer? Generally, the answer is 'no, and why are you still using a Layer.Text? Use a Layer.GML with a format: OpenLayers.Format.Text and a selectFeature control instead.' I understand that this is impractical for long running applications (we maintain backwards API compatibility for a reason, after all). Anyway, the following hacks will let you get something that I like a lot better for text layers: OpenLayers.Feature.prototype.popupClass = OpenLayers.Popup.FramedCloud; OpenLayers.Layer.Text.prototype.markerClick = function(evt) { var sameMarkerClicked = (this == this.layer.selectedFeature); if (this.popup) { this.popup.toggle(); } else { this.layer.map.addPopup(this.createPopup(true)); } this.layer.selectedFeature = (!sameMarkerClicked) ? this : null; OpenLayers.Event.stop(evt); } Good Luck, -- Christopher Schmidt MetaCarta From grand.edgemaster at gmail.com Mon Apr 21 14:05:48 2008 From: grand.edgemaster at gmail.com (Thomas Wood) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <480CC2C2.6030201@gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> Message-ID: <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> This example: http://openlayers.org/dev/examples/spherical-mercator.html uses the displayProjection control to convert the 900913 coordinates used internally to the normal lat/lon 4326 ones. On Mon, Apr 21, 2008 at 5:37 PM, Alessio Di Lorenzo wrote: > Hello, > > by reading on the web I noticed that what I want to do is possible > through proj4js library > "Support for reprojecting user-facing controls like mouseposition" > > Cuold someone show me any examples? > > > > > Alessio Di Lorenzo ha scritto: > > > > Hi list, > > > > I have a little OL application showing data in utm33-wgs84 (epsg: > > 32633) and I'm using a separate div to display the mouse position in > > 32633 with no problems. > > > > What I'd like to do is to display the mouse position also in > > geographical wgs84 (epsg: 4326) in another different div. > > In this way users could see both 32633 and 4326 coordinates at the > > same time. > > > > Is it possible? > > > > thx > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Regards, Thomas Wood (Edgemaster) From tara_athan at alt2is.com Mon Apr 21 16:01:27 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Download Wiki Page In-Reply-To: <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> Message-ID: <480CF297.1090207@alt2is.com> I just noticed that the download page http://trac.openlayers.org/wiki/HowToDownload has links to version 2.5 for the "Current Version" Is it okay if I update that to 2.6? Tara From euzuro at gmail.com Mon Apr 21 16:14:33 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Download Wiki Page In-Reply-To: <480CF297.1090207@alt2is.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> <480CF297.1090207@alt2is.com> Message-ID: <6ae3fb590804211314oc9f8fadm8325d23fcd51c4c8@mail.gmail.com> absolutely. thanks! e On 4/21/08, Tara Athan wrote: > I just noticed that the download page > http://trac.openlayers.org/wiki/HowToDownload > has links to version 2.5 for the "Current Version" > > Is it okay if I update that to 2.6? > > Tara > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From tara_athan at alt2is.com Mon Apr 21 16:36:04 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] controls tutorial Message-ID: <480CFAB4.8030203@alt2is.com> I am revising the controls on a map I have so I thought this would be a good opportunity to review the new Control API in version 2.6 and update the examples and wiki. I was trying out cusom-control.html and I can't get it to do anything for shift-drag (FF/ WinXP). Any suggestions? Tara From diegoguidi at gmail.com Tue Apr 22 03:29:09 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Custom Box handler conflict? In-Reply-To: References: Message-ID: > I retry to make the same questions... sorry for the "spam" but I hope > to get some suggests on how to fix my problem the sample page atttached explain the problem: the navtoolbar control overrides the custombox behavior. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080422/7a8a9f54/custom-control.html From eric.c2c at gmail.com Tue Apr 22 03:40:36 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Fwd: Custom Box handler conflict? In-Reply-To: References: Message-ID: <5ec103de0804220040o68a0928q263ce1d964499b0a@mail.gmail.com> On Mon, Apr 21, 2008 at 6:30 PM, Diego Guidi wrote: > I retry to make the same questions... sorry for the "spam" but I hope > to get some suggests on how to fix my problem Hi Diego, I managed to do what you want to do by implementing my own version of the NavToolBar class. See the attached patch to examples/navtoolbar.html to understand what I did. Hope that helps, -- Eric -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-diego-issue.diff Type: text/x-diff Size: 3122 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080422/91056278/patch-diego-issue.bin From eric.c2c at gmail.com Tue Apr 22 03:43:38 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Intercept mouse click using Navigation control In-Reply-To: <20080420212831.51848A70A1@server42.ukservers.net> References: <20080420212831.51848A70A1@server42.ukservers.net> Message-ID: <5ec103de0804220043j7d33cf1fv3fbbd2d52bb378b0@mail.gmail.com> On Sun, Apr 20, 2008 at 11:28 PM, Colin and Yvonne Law wrote: > Hi > A question from a newcomer who doesn't know what he is doing yet. > I wish to intercept mouse clicks on the map and found examples of how to > achieve this using OpenLayers.Control.MouseDefaults in the list archive. I > have got this working ok using code of the form: > > olMouseDefaults = new OpenLayers.Control.MouseDefaults(); > olMouseDefaults.defaultClick = function(evt) { > var point = this.map.getLonLatFromViewPortPx( evt.xy ); > alert("Got point:" + point); > OpenLayers.Event.stop(evt); > return false; > } > map.addControl(olMouseDefaults); > > Unfortunately I now see from the source of MouseDefaults.js that this > control is now deprecated and I should be using the Navigation control. I > cannot find any examples of how to achieve click interception using this > control and my attempts have all failed. > > Help would be gratefully received. Hello You should use OpenLayers 2.6 and its click handler for intercepting clicks on the map. See the click-handler.html example to understand how to build a control based on that click handler. Cheers, -- Eric From diegoguidi at gmail.com Tue Apr 22 03:44:27 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Fwd: Custom Box handler conflict? In-Reply-To: <5ec103de0804220040o68a0928q263ce1d964499b0a@mail.gmail.com> References: <5ec103de0804220040o68a0928q263ce1d964499b0a@mail.gmail.com> Message-ID: > I managed to do what you want to do by implementing my own version of > the NavToolBar class. See the attached patch to > examples/navtoolbar.html to understand what I did. > > Hope that helps, Thanks, I try to take a look :) From diegoguidi at gmail.com Tue Apr 22 04:04:32 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Fwd: Custom Box handler conflict? In-Reply-To: References: <5ec103de0804220040o68a0928q263ce1d964499b0a@mail.gmail.com> Message-ID: > Thanks, I try to take a look :) I've applied your parth but I have still some problems. Actually, I've done the same work in my code, but I've not used customBox.activate()... Now, with your patch, the behavior is correct if i select the zoomrect tool in the toolbar. If i select pan tool I have this behavior: 1) at start, in pan status BEFORE selecting zoomrect status, the custombox works well (i.e. rect + alert using shift, pan without shift). 2) in pan status AFTER selecting zoomrect status, the custombox works as pan, but if i press shift i don't see the alert but the component work as zoomrect. You could verify if in your code this behavior happens, or maybe I've made some other mistake? From colinandyvonne at clanlaw.org.uk Tue Apr 22 04:09:21 2008 From: colinandyvonne at clanlaw.org.uk (Colin and Yvonne Law) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Intercept mouse click using Navigation control In-Reply-To: <5ec103de0804220043j7d33cf1fv3fbbd2d52bb378b0@mail.gmail.com> Message-ID: <20080422080920.13460A710E@server42.ukservers.net> >-----Original Message----- >From: Eric Lemoine [mailto:eric.c2c@gmail.com] >Sent: 22 April 2008 08:44 >To: Colin and Yvonne Law >Cc: users@openlayers.org >Subject: Re: [OpenLayers-Users] Intercept mouse click using >Navigation control > >On Sun, Apr 20, 2008 at 11:28 PM, Colin and Yvonne Law > wrote: >> Hi >> A question from a newcomer who doesn't know what he is doing yet. >> I wish to intercept mouse clicks on the map and found >examples of how >> to achieve this using OpenLayers.Control.MouseDefaults in the list >> archive. I have got this working ok using code of the form: >> >> olMouseDefaults = new OpenLayers.Control.MouseDefaults(); >> olMouseDefaults.defaultClick = function(evt) { >> var point = this.map.getLonLatFromViewPortPx( evt.xy ); >> alert("Got point:" + point); >> OpenLayers.Event.stop(evt); >> return false; >> } >> map.addControl(olMouseDefaults); >> >> Unfortunately I now see from the source of MouseDefaults.js >that this >> control is now deprecated and I should be using the Navigation >> control. I cannot find any examples of how to achieve click >> interception using this control and my attempts have all failed. >> >> Help would be gratefully received. > >Hello > >You should use OpenLayers 2.6 and its click handler for >intercepting clicks on the map. See the click-handler.html >example to understand how to build a control based on that >click handler. > >Cheers, >-- >Eric > Hi Eric Unfortunately I am actually using UK Ordnanace Survey OpenSpace mapping system (http://openspace.ordnancesurvey.co.uk) which is based on OpenLayers 2.5. Probably I should just stick with what I have got (which works ok) and move to the later technique when OpenSpace upgrades. I had not previously found the examples (though I see now that they are referenced on the OpenLayers front page). I had been wading through the documentation which is a trifle heavy going. Even though the examples may assume the latest version of OpenLayers I can see that they will be very useful. Thanks for your help Colin From diegoguidi at gmail.com Tue Apr 22 04:34:22 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Fwd: Custom Box handler conflict? In-Reply-To: References: <5ec103de0804220040o68a0928q263ce1d964499b0a@mail.gmail.com> Message-ID: > You could verify if in your code this behavior happens, or maybe I've > made some other mistake? I've checked the navigation control (that is used in pan status) and actually it defines a zoombox that is used when the user press SHIFT button... so the behavior is correct. Thanks for the support. From csabbey at gmail.com Tue Apr 22 11:04:58 2008 From: csabbey at gmail.com (geoman) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] deCarta DDS? Message-ID: <16824705.post@talk.nabble.com> I would like to use OpenLayers for a project that uses deCarta's DDS as the map server - the point would be to be able to swap out the map server without affecting the higher layers. I don't see an OpenLS layer in OpenLayers. Even if there was one, I'm not sure how closely deCarta conforms to the spec. Does anyone know of existing code I could use? I am also very open to advice about other possible approaches if this one just doesn't make sense. Thank you, Craig -- View this message in context: http://www.nabble.com/deCarta-DDS--tp16824705p16824705.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From j.cook at oxfordarch.co.uk Tue Apr 22 12:14:20 2008 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] changes in wms between 2.4 and 2.6 In-Reply-To: <22011833.50251208880485217.JavaMail.root@mail.thehumanjourney.net> Message-ID: <10404845.50401208880860226.JavaMail.root@mail.thehumanjourney.net> Hi all, I am wondering if there have been any changes in the way wms is handled between openlayers 2.4 and 2.6. I went to upgrade my site from one to the other, and found that my wms layers display in a different location, when all I've changed is the line that says to look in folder Openlayers-2.6 rather than 2.4 for the javascript.(I even downloaded a clean copy of 2.4 to check it wasn't any changes I had made). It looks like a projection issue- you can see the difference if you look at the following: http://mapdata.thehumanjourney.net uses 2.4 http://mapdata.thehumanjourney.net/index_26.html uses 2.6 If you zoom in far enough to engage the wfs, then sites are in the correct location in both versions of the map. Can anyone help me with this- or give me an idea how to debug it? Many thanks Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 880212 http://thehumanjourney.net ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information. From crschmidt at metacarta.com Tue Apr 22 12:23:29 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] changes in wms between 2.4 and 2.6 In-Reply-To: <10404845.50401208880860226.JavaMail.root@mail.thehumanjourney.net> References: <22011833.50251208880485217.JavaMail.root@mail.thehumanjourney.net> <10404845.50401208880860226.JavaMail.root@mail.thehumanjourney.net> Message-ID: <20080422162329.GB1589@metacarta.com> On Tue, Apr 22, 2008 at 05:14:20PM +0100, Joanne Cook wrote: > Hi all, > > I am wondering if there have been any changes in the way wms is handled between openlayers 2.4 and 2.6. I went to upgrade my site from one to the other, and found that my wms layers display in a different location, when all I've changed is the line that says to look in folder Openlayers-2.6 rather than 2.4 for the javascript.(I even downloaded a clean copy of 2.4 to check it wasn't any changes I had made). > > It looks like a projection issue- you can see the difference if you look at the following: > > http://mapdata.thehumanjourney.net uses 2.4 > http://mapdata.thehumanjourney.net/index_26.html uses 2.6 > > If you zoom in far enough to engage the wfs, then sites are in the correct location in both versions of the map. > > Can anyone help me with this- or give me an idea how to debug it? In 2.5, we turned the default 'reproject' option on WMS layers to 'false', because it offers a false sense of success in overlaying raster layers of different projections which isn't really accurate. Setting reproject: true should fix this issue for use now, but you should really at some point look into using SphericalMercator: http://crschmidt.net/~crschmidt/spherical_mercator.html explains some of the how. Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Tue Apr 22 15:31:13 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] transitioneffect and black tiles? Message-ID: <480E3D01.5010006@osgis.nl> Hi list, I am experimenting with transitioneffect resize and sometimes encounter a fully black tile (or backbuffer tile). Does that ring a bell for anyone? Using OL 2.6 and FF2. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From bartvde at osgis.nl Tue Apr 22 15:49:25 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] transitioneffect and black tiles? In-Reply-To: <480E3D01.5010006@osgis.nl> References: <480E3D01.5010006@osgis.nl> Message-ID: <480E4145.3050702@osgis.nl> Some more info, this seems to only happen when using fractionalZoom on the map, but it's quite hard to make a reproduceable test case. Best regards, Bart Bart van den Eijnden (OSGIS) wrote: > Hi list, > > I am experimenting with transitioneffect resize and sometimes encounter > a fully black tile (or backbuffer tile). Does that ring a bell for > anyone? Using OL 2.6 and FF2. > > Best regards, > Bart > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From madair at dmsolutions.ca Tue Apr 22 16:03:48 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] transitioneffect and black tiles? In-Reply-To: <480E4145.3050702@osgis.nl> References: <480E3D01.5010006@osgis.nl> <480E4145.3050702@osgis.nl> Message-ID: <480E44A4.7070300@dmsolutions.ca> Bart, I've seen this too on occasion (with fractional zoom + transition effects), but I agree it's very difficult to reproduce. Mike Bart van den Eijnden (OSGIS) wrote: > Some more info, this seems to only happen when using fractionalZoom on > the map, but it's quite hard to make a reproduceable test case. > > Best regards, > Bart > > Bart van den Eijnden (OSGIS) wrote: > >> Hi list, >> >> I am experimenting with transitioneffect resize and sometimes encounter >> a fully black tile (or backbuffer tile). Does that ring a bell for >> anyone? Using OL 2.6 and FF2. >> >> Best regards, >> Bart >> >> >> > > > From SansonR at asurequality.com Tue Apr 22 18:14:04 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] ZoomBox not displaying Message-ID: <480F0BEC02000037000034EA@gate1.agriquality.com> How do you control the look of the ZoomBox navigation control? My ZoomBox is not displaying. I get the cross hair and can drag a zoom box and the map zooms in, but I do not see the red rubber band box. Many thanks, Rob Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080423/f8629de3/attachment.html From crschmidt at metacarta.com Tue Apr 22 23:23:58 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] ZoomBox not displaying In-Reply-To: <480F0BEC02000037000034EA@gate1.agriquality.com> References: <480F0BEC02000037000034EA@gate1.agriquality.com> Message-ID: <20080423032358.GC19541@metacarta.com> On Wed, Apr 23, 2008 at 10:14:04AM +1200, Robert Sanson wrote: > How do you control the look of the ZoomBox navigation control? My > ZoomBox is not displaying. I get the cross hair and can drag a zoom > box and the map zooms in, but I do not see the red rubber band box. You don't have a 'theme' directory alongside your OpenLayers.js / img/ directories. Regards, -- Christopher Schmidt MetaCarta From alessio.dilorenzo at gmail.com Wed Apr 23 08:08:11 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> Message-ID: <480F26AB.50000@gmail.com> Hi, as explained I need to show the MousePosition coordinates values in epsg 4326 even if my map is in epsg 32633. Well, this topic seems aswer my needs. http://www.nabble.com/How-to-change-displayProjection-for-MousePosition-Control-td16331163.html#a16340730 So, I tried to do the following: 1) First, I downloaded proj4js from svn and I added it in my page's header the EPSG32633.js and EPSG4326.js files (not included in the downloaded package) contains, respectively, these strings: Proj4js.defs["EPSG:32633"] = "+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs "; Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs "; 2) Then I added this code to my page mp = new OpenLayers.Control.MousePosition(); mp.displayProjection = new OpenLayers.Projection("EPSG:4326"); map.addControl(mp); but the displayed coordinates are always 32633... may you help me to understand the problem? thx, alessio From crschmidt at metacarta.com Wed Apr 23 08:18:38 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <480F26AB.50000@gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> <480F26AB.50000@gmail.com> Message-ID: <20080423121838.GA27606@metacarta.com> On Wed, Apr 23, 2008 at 02:08:11PM +0200, Alessio Di Lorenzo wrote: > Hi, > as explained I need to show the MousePosition coordinates values in epsg > 4326 even if my map is in epsg 32633. > Well, this topic seems aswer my needs. > http://www.nabble.com/How-to-change-displayProjection-for-MousePosition-Control-td16331163.html#a16340730 > > So, I tried to do the following: > > 1) First, I downloaded proj4js from svn and I added it in my page's header > > > > > > > the EPSG32633.js and EPSG4326.js files (not included in the downloaded > package) contains, respectively, these strings: > > Proj4js.defs["EPSG:32633"] = "+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs "; > > Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs "; > > > 2) Then I added this code to my page > > mp = new OpenLayers.Control.MousePosition(); > > mp.displayProjection = new OpenLayers.Projection("EPSG:4326"); I'm assuming this is a typo? > map.addControl(mp); > > > but the displayed coordinates are always 32633... > may you help me to understand the problem? With a full HTML example, probably someone could. Regards, -- Christopher Schmidt MetaCarta From alessio.dilorenzo at gmail.com Wed Apr 23 08:49:11 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <20080423121838.GA27606@metacarta.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <1e14d5320804211105w7e04638dhb40a4dc2286a602b@mail.gmail.com> <480F26AB.50000@gmail.com> <20080423121838.GA27606@metacarta.com> Message-ID: <480F3047.2050807@gmail.com> Hi Chris, > With a full HTML example, probably someone could. > > Regards, > this is my code: demo 02
From mattsnape at gmail.com Wed Apr 23 09:22:20 2008 From: mattsnape at gmail.com (matthewsnape) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] mousewheel Message-ID: <16834598.post@talk.nabble.com> Hi, I have a problem with the mousewheel. When I zoom in and out it zooms by 2 steps instead of just one. If I zoom in or out using the pan zoom bar it only uses a single increment. Any ideas why this may be happening? Thanks. -- View this message in context: http://www.nabble.com/mousewheel-tp16834598p16834598.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From thy at 42.dk Wed Apr 23 09:30:24 2008 From: thy at 42.dk (Kristian Thy) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] mousewheel In-Reply-To: <16834598.post@talk.nabble.com> References: <16834598.post@talk.nabble.com> Message-ID: <20080423133024.GU28031@42.dk> On Wed, Apr 23, matthewsnape wrote: > I have a problem with the mousewheel. When I zoom in and out it zooms by 2 > steps instead of just one. If I zoom in or out using the pan zoom bar it > only uses a single increment. Any ideas why this may be happening? Could this be due to some "scroll three lines at a time" mouse setting on your machine? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From mquentel at rim.com Wed Apr 23 10:23:40 2008 From: mquentel at rim.com (Mike Quentel) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] mousewheel In-Reply-To: <16834598.post@talk.nabble.com> Message-ID: <8A94DF1034BA03408EC040C33C42D3BA7281C9@XCH23YOW.rim.net> Try modifying the following mouse wheel related events. I changed these because I wanted the mouse wheel to zoom in using the centre of the map, not centre at mouse cursor. in Navigation.js: /** * Method: wheelUp * User spun scroll wheel up * * Parameters: * evt - {Event} */ wheelUp: function(evt) { //this.wheelChange(evt, 1); this.map.zoomIn(); }, /** * Method: wheelDown * User spun scroll wheel down * * Parameters: * evt - {Event} */ wheelDown: function(evt) { //this.wheelChange(evt, -1); this.map.zoomOut(); }, in MouseDefaults.js: /** * Method: defaultWheelUp * User spun scroll wheel up * */ defaultWheelUp: function(evt) { // if (this.map.getZoom() <= this.map.getNumZoomLevels()) { // this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), // this.map.getZoom() + 1); // } this.map.zoomIn(); }, /** * Method: defaultWheelDown * User spun scroll wheel down */ defaultWheelDown: function(evt) { // if (this.map.getZoom() > 0) { // this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), // this.map.getZoom() - 1); // } this.map.zoomOut(); }, -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of matthewsnape Sent: Wednesday, 23 April 2008 09:22 To: users@openlayers.org Subject: [OpenLayers-Users] mousewheel Hi, I have a problem with the mousewheel. When I zoom in and out it zooms by 2 steps instead of just one. If I zoom in or out using the pan zoom bar it only uses a single increment. Any ideas why this may be happening? Thanks. -- View this message in context: http://www.nabble.com/mousewheel-tp16834598p16834598.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ 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. From clems_mars at hotmail.com Wed Apr 23 10:33:18 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] [Mapserver & OpenLayers] Repetition and drag of line with DB points. Message-ID: Hi! > I'm using OpenLayers to display a mapfile (so a file of Mapserver). I'm using Lambert II projection (EPSG:27582) and I obtained the following repetition, as you can see on at this URL: http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 What can I do? > Moreover, I have points in my DB and I would like to drag a line between these points. How can I do with OpenLayers? I saw the example on the OL website but it draws a line with mouse clicks. Thanks and excuse me for my english, I'm french! Clement _________________________________________________________________ Vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail From per-erik.modig at itmedia.se Wed Apr 23 11:06:57 2008 From: per-erik.modig at itmedia.se (giris68) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] How do i add multiple GeoJson features to same layer Message-ID: <16834653.post@talk.nabble.com> Hi! I save all my features (polygon/vector) in an BLOBfield as GeoJSON in may DB. Then i use some AJAX to load the data but it only adds the last feature. I'm just using som simple modified examples from the exampelsite. The function i use to deserialize the GEOJSON and add it to the map is this: function deserialize(element) { var type = "GeoJSON"; var features = new OpenLayers.Format.GeoJSON().read(element); var bounds; if(features) { if(features.constructor != Array) { features = [features]; } for(var i=0; i Hi list, I try to remove a point feature in OL 2.6. Line and polyline works OK in FF2 and IE7. "selectFeature" works OK in OL 2.5. Removing the first point works but after then This code example is based on modify-feature.html OL 2.6. What's wrong and how can I do this properly? Regards, Fred van Beelen BICT Modify Feature

OpenLayers Modify Feature Example

A demonstration of the ModifyFeature control for editing vector features.
From grand.edgemaster at gmail.com Wed Apr 23 15:01:38 2008 From: grand.edgemaster at gmail.com (Thomas Wood) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] mousewheel In-Reply-To: <16834598.post@talk.nabble.com> References: <16834598.post@talk.nabble.com> Message-ID: <1e14d5320804231201p6886a2cal3a7e7494643d8913@mail.gmail.com> On Wed, Apr 23, 2008 at 2:22 PM, matthewsnape wrote: > > Hi, > > I have a problem with the mousewheel. When I zoom in and out it zooms by 2 > steps instead of just one. If I zoom in or out using the pan zoom bar it > only uses a single increment. Any ideas why this may be happening? > > Thanks. > -- > View this message in context: http://www.nabble.com/mousewheel-tp16834598p16834598.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > Do you have two sets of Navigation (or MouseDefaults) controls defined on the map? -- Regards, Thomas Wood (Edgemaster) From alessio.dilorenzo at gmail.com Thu Apr 24 04:53:43 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <480CC2C2.6030201@gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> Message-ID: <48104A97.7060807@gmail.com> Hi list, with the precious suggestions of Giovanni Allegri I solved this issue! There where two problems: 1) there were typos (as Chris said) in my code: various "scr" instead "src" linking the js scripts in the header... ahhaarg 2) it is mandatory to set Proj4js.libPath='proj4js/lib/'; in the init function to access to projCode/utm.js, that is needed to interpret UTM EPSGs Hope this will be helpful for someone in future, alessio Alessio Di Lorenzo ha scritto: > Hello, > > by reading on the web I noticed that what I want to do is possible > through proj4js library > "Support for reprojecting user-facing controls like mouseposition" > > Cuold someone show me any examples? > > > > > Alessio Di Lorenzo ha scritto: >> Hi list, >> >> I have a little OL application showing data in utm33-wgs84 (epsg: >> 32633) and I'm using a separate div to display the mouse position in >> 32633 with no problems. >> >> What I'd like to do is to display the mouse position also in >> geographical wgs84 (epsg: 4326) in another different div. >> In this way users could see both 32633 and 4326 coordinates at the >> same time. >> >> Is it possible? >> >> thx >> >> > > From madair at dmsolutions.ca Thu Apr 24 10:02:20 2008 From: madair at dmsolutions.ca (Mike Adair) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] multiple epsg coordinates display In-Reply-To: <48104A97.7060807@gmail.com> References: <480B5FEE.1020904@gmail.com> <480CC2C2.6030201@gmail.com> <48104A97.7060807@gmail.com> Message-ID: <481092EC.2050507@dmsolutions.ca> Note that you can also load the file lib/proj4js-compressed.js which includes all files required (or lib/proj4js-combined.js if you want to debug) and the libPath setting is not used. Mike Alessio Di Lorenzo wrote: > Hi list, > with the precious suggestions of Giovanni Allegri I solved this issue! > > There where two problems: > > 1) there were typos (as Chris said) in my code: various "scr" instead > "src" linking the js scripts in the header... ahhaarg > > 2) it is mandatory to set Proj4js.libPath='proj4js/lib/'; in the init > function to access to projCode/utm.js, that is needed to interpret UTM EPSGs > > Hope this will be helpful for someone in future, > > alessio > > > > > > Alessio Di Lorenzo ha scritto: > >> Hello, >> >> by reading on the web I noticed that what I want to do is possible >> through proj4js library >> "Support for reprojecting user-facing controls like mouseposition" >> >> Cuold someone show me any examples? >> >> >> >> >> Alessio Di Lorenzo ha scritto: >> >>> Hi list, >>> >>> I have a little OL application showing data in utm33-wgs84 (epsg: >>> 32633) and I'm using a separate div to display the mouse position in >>> 32633 with no problems. >>> >>> What I'd like to do is to display the mouse position also in >>> geographical wgs84 (epsg: 4326) in another different div. >>> In this way users could see both 32633 and 4326 coordinates at the >>> same time. >>> >>> Is it possible? >>> >>> thx >>> >>> >>> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From simone.gadenz at jrc.it Thu Apr 24 10:57:23 2008 From: simone.gadenz at jrc.it (Simone Gadenz) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] zoom level resolution in epsg:900913 Message-ID: <00c301c8a61b$80caa0b0$825fe210$@gadenz@jrc.it> Hello! has anybody calculated the resoluzion for zoomlevel for the epsg:900913. What I intend to do is to use tiles for the first 10 zoom levels and then call directly a wms server. I think the only way is to set the minResolution parameter of the tiled layer equal to the maxResolution of the wms layer and for having no overlap I think both the parameters have to be congruent with the resolution of tiles of level 10. Am I right? Is there any other way to do this? As far as I know there is not a maxZoomLevel parameter, right? Thanks Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080424/4c98b9bb/attachment.html From rwburgholzer at deq.virginia.gov Thu Apr 24 13:30:30 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] KML/GML from text file? Message-ID: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> Has anyone loaded a simple KML/GML layer from a local text file? Maybe this is trivial ... Thanks! r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080424/614c8dc9/attachment.html From crschmidt at metacarta.com Thu Apr 24 13:35:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] KML/GML from text file? In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> Message-ID: <20080424173520.GA26838@metacarta.com> On Thu, Apr 24, 2008 at 01:30:30PM -0400, Burgholzer,Robert wrote: > Has anyone loaded a simple KML/GML layer from a local text file? Maybe > this is trivial ... It may or may not be trivial, depending on your browser. FF2 allows you to open files via file:/// via XMLHttpRequest. IE7, FF3 do not. In general, local filesystem access via standard HTTP mechanisms is going away, possibly due to the security risks that it creates (even with the same origin policy): If you can't open a file on disk without explicit user permissino from a webpage, the user is a lot safer in the end. Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Thu Apr 24 15:42:37 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] KML/GML from text file? In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> Message-ID: Hi, as a workaround i use a textarea, paste into it the contents of my KML and then add it to the map. Likewise i use it to parse KML to fill a element for places to center. You can try it here: http://gis.ibbeck.de/ginfo/apps/ClickPoint/clickpoint.html Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ ________________________________ Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Burgholzer,Robert Gesendet: Donnerstag, 24. April 2008 19:31 An: users@openlayers.org Betreff: [OpenLayers-Users] KML/GML from text file? Has anyone loaded a simple KML/GML layer from a local text file? Maybe this is trivial ... Thanks! r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ From arnd.wippermann at web.de Fri Apr 25 10:59:14 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] KML/GML from text file? In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13CF9@deqex01.deq.local> Message-ID: Hi Robert, I meant, you can paste your own KML (points only) into the Input textarea to fill the select-element. In the toolbar click on the cogwheel and at the bottom of the dialog you can open the textarea to do this. The POIs are not a KML file, but a javascript array. I only offer with the Input textarea to fill the select-element from KML and with the Output textarea to generate KML from the select-element. But in other applications I use this way to create features from KML. It is easier to handle than to use a ajax-call, a proxy-script and upload a local KML file. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/apps/ClickPoint/clickpoint.html -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Burgholzer,Robert Gesendet: Freitag, 25. April 2008 14:36 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] KML/GML from text file? Arnd, This is a very interesting example, the application has really great response as well! However, I am having difficulty understanding where exactly the KML comes from originally, i.e., where is your source for your list of points of interest?? Thanks! Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: arnd.wippermann@web.de [mailto:arnd.wippermann@web.de] Sent: Thursday, April 24, 2008 3:43 PM To: Burgholzer,Robert Cc: users@openlayers.org Subject: AW: [OpenLayers-Users] KML/GML from text file? Hi, as a workaround i use a textarea, paste into it the contents of my KML and then add it to the map. Likewise i use it to parse KML to fill a
  • From SansonR at asurequality.com Sun Apr 27 16:44:47 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] KML/GML from text file? In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A3702B13CF4@deqex01.deq.local> Message-ID: <48158E7F02000037000035A9@gate1.agriquality.com> Yes, managed to get it to work. I have some Java code that pulls a geometry out of a database (SDE) and writes it to a local file system file. Seems OL is fairly fussy about the structure of the GML file. Anyway, here is the OL code: var fbnd = new OpenLayers.Layer.GML("Farm boundary", "./farmfiles/" + farmid + ".xml", {style: farm_style}); map.addLayer(fbnd); And here is a sample GML (I experimented with GML structure using one of the OL examples that writes out GML to a text box, then emulated that): 1821412.509, 5534791.015 1821458.847, 5534735.59 1821598.037, 5534849.028 1821614.701, 5534862.607 1821673.566, 5534910.58 1821659.449, 5534927.465 1821655.449, 5534932.249 1821627.218, 5534966.016 1821412.509, 5534791.015 Kind regads, Robert Sanson >>> "Burgholzer,Robert" 25/04/2008 5:30 a.m. >>> Has anyone loaded a simple KML/GML layer from a local text file? Maybe this is trivial * Thanks!r.b.Robert W. BurgholzerSurface Water ModelerOffice of Water Supply and PlanningVirginia Department of Environmental Qualityrwburgholzer@deq.virginia.gov804-698-4405Open Source Modeling Tools:http://sourceforge.net/projects/npsource/ Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080428/c779e578/attachment.html From tbrenningmeyer at maryville.edu Sun Apr 27 17:06:03 2008 From: tbrenningmeyer at maryville.edu (Brenningmeyer, Todd) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] question about example files Message-ID: Hello, I am trying to display data from mapserver using openlayers and am using the example files as a reference. I'm using ms4w and the mapserver.html example file with Open-layers2.5. When I view the file it displays pink tiles but none of the layers. The error that is listed when I open the pink tiles reads: loadMap(): Web application error. CGI variable "map" is not set. I'm not quite sure what the problem is but any help is appreciated. I'll paste the mapserver.html file below with the altered sections in red. I have been able to get an image to display when I add the rest of the wms request to the section that has mapserver.exe listed (I used http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/maryville_web/maryville.map&SERVICE=WMS in place of http://localhost/cgi-bin/mapserv.exe) If you have any suggestions I would appreciate your help. Thanks, Todd
    From crschmidt at metacarta.com Sun Apr 27 17:14:04 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] question about example files In-Reply-To: References: Message-ID: <20080427211404.GA28551@metacarta.com> On Sun, Apr 27, 2008 at 04:06:03PM -0500, Brenningmeyer, Todd wrote: > Hello, > I am trying to display data from mapserver using openlayers and am > using the example files as a reference. I'm using ms4w and the > mapserver.html example file with Open-layers2.5. When I view the file > it displays pink tiles but none of the layers. The error that is > listed when I open the pink tiles reads: loadMap(): Web application > error. CGI variable "map" is not set. This might be because you haven't set the CGI variable "Map". Specifically, you need to add a 'map' key/value pair to the params hash (third arg to layer.mapserver). -- Chris I'm not quite sure what the > problem is but any help is appreciated. I'll paste the mapserver.html > file below with the altered sections in red. I have been able to get > an image to display when I add the rest of the wms request to the > section that has mapserver.exe listed (I used > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/maryville_web/maryville.map&SERVICE=WMS > in place of http://localhost/cgi-bin/mapserv.exe) > If you have any suggestions I would appreciate your help. > Thanks, > Todd > > > > > > > > >
    > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From fred.warnock at gmail.com Mon Apr 28 10:00:45 2008 From: fred.warnock at gmail.com (Fred warnock) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow Message-ID: <4815D88D.2040405@gmail.com> Good morning, Last week Bill Bronsema and I updated to the latest version and found that the drop shadow was no longer part of the out-of-the-box CloudAmber popup. So we made a 24 bit PNG that was close to the old style and tweaked the positioning and sizing numbers to handle the drop shadows. Attached is the adjusted FramedCloud.js and 24bit PNG. We were poking the numbers with a stick to try and figure out what the numbers did, and although we got it to work, I'm not sure the values are as neat as they could be. Note also that we added a PNG hack so that the images would work in versions of IE older than 7. The hack starts at line 274 in Framed.js: var imageCreator = (this.isAlphaImage) ? OpenLayers.Util.createAlphaImageDiv : OpenLayers.Util.createImage; block.image = imageCreator(imgId, null, this.imageSize, this.imageSrc, "absolute", null, null, null ); // apply png24 hack block.image.className = 'png24'; block.div.appendChild(block.image); this.groupDiv.appendChild(block.div); Specific fix is on line 284: block.image.className = 'png24'; All the best, Fred -- ___________________________________________ Fred Warnock Senior Designer, Software DM Solutions Group Inc. http://www.dmsolutions.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: FramedCloud.zip Type: application/x-zip-compressed Size: 1566 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080428/aa0609cf/FramedCloud.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: cloud-popup-relative-24.png Type: image/png Size: 12261 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080428/aa0609cf/cloud-popup-relative-24.png From cranio at quipo.it Mon Apr 28 11:41:53 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Odd behaviour with IFrames Message-ID: <16941704.post@talk.nabble.com> Situation: An IFRAME (Joomla wrapper component) containing a HTML page with a OpenLayers 2.6 Map (WMS layers over Google base layers) Problem: Odd behaviour when zooming in/out. At first, zooming works correctly. Then I change f.ex. from Google Street Map to Google Satellite. After the first base map change, the zoomed region is wrongly centered (map center shifts a lot to South-East) making zoom unusable. Other strange thing, the problem seems to arise ONLY with the Satellite map... ... I'm puzzled, any hints? -- View this message in context: http://www.nabble.com/Odd-behaviour-with-IFrames-tp16941704p16941704.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From cranio at quipo.it Mon Apr 28 11:49:16 2008 From: cranio at quipo.it (Cranio) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Odd behaviour with IFrames In-Reply-To: <16941704.post@talk.nabble.com> References: <16941704.post@talk.nabble.com> Message-ID: <16941857.post@talk.nabble.com> Just an addition, when loaded alone, the page works fine... -- View this message in context: http://www.nabble.com/Odd-behaviour-with-IFrames-tp16941704p16941857.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Mon Apr 28 11:49:45 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Odd behaviour with IFrames In-Reply-To: <16941704.post@talk.nabble.com> References: <16941704.post@talk.nabble.com> Message-ID: <20080428154944.GA12398@metacarta.com> On Mon, Apr 28, 2008 at 08:41:53AM -0700, Cranio wrote: > > Situation: An IFRAME (Joomla wrapper component) containing a HTML page with a > OpenLayers 2.6 Map (WMS layers over Google base layers) > > Problem: Odd behaviour when zooming in/out. At first, zooming works > correctly. > Then I change f.ex. from Google Street Map to Google Satellite. > After the first base map change, the zoomed region is wrongly centered (map > center shifts a lot to South-East) making zoom unusable. > > Other strange thing, the problem seems to arise ONLY with the Satellite > map... > > ... I'm puzzled, any hints? http://trac.openlayers.org/ticket/830 Regards, -- Christopher Schmidt MetaCarta From lootens.pieter at gmail.com Mon Apr 28 14:06:11 2008 From: lootens.pieter at gmail.com (petey1815) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] WKT in MySQL In-Reply-To: <20080425213529.GA20582@metacarta.com> References: <16852122.post@talk.nabble.com> <16881015.post@talk.nabble.com> <16891470.post@talk.nabble.com> <16891593.post@talk.nabble.com> <16891948.post@talk.nabble.com> <16892293.post@talk.nabble.com> <5ec103de0804251350w6d7d7369t314c1074b1e51f09@mail.gmail.com> <16905749.post@talk.nabble.com> <20080425213529.GA20582@metacarta.com> Message-ID: <16944702.post@talk.nabble.com> Thx, that did it, this is a very active & helpful forum, thank you very much. Hope i'll get the hang of java soon, so i won't have to bother you as much :) Now, i'd like to get a certain style through the options part of the OpenLayers.Layer.Vector.addfeatures, but i'm lost with the syntax. I think its something like this, tried a couple of approaches, but i'm kind of cluelesss.... var France = {strokeColor : "blue", fillColor : "blue"}; vectors.addFeatures(g,France); again, any pointers are much appreciated Christopher Schmidt-4 wrote: > > On Fri, Apr 25, 2008 at 02:14:48PM -0700, petey1815 wrote: >> >> Don't know exactly what fixed it, but they are on now. >> >> You can check the result here >> >> www.icoe.be/NW/PHP/LGEMap.php. >> >> Now i can play around with the map, thanks a lot everyone for helping >> >> One more question. Is there a way to make a vector layer visible all the >> time? Right now, it disappears when you zoom out too much > > put the 'options' hash on your map instead of on your layer. > > 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/WKT-in-MySQL-tp16852122p16944702.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From David at itbeyond.com.au Mon Apr 28 20:11:50 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] Odd behaviour with IFrames In-Reply-To: <16941704.post@talk.nabble.com> References: <16941704.post@talk.nabble.com> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB73B@ITB-SVR-01.itbeyond.local> Hi, There is an on-going issue with Google at the moment with the Satellite maps going bad. I am not sure what is going on however I have noticed it and read about it on the Google maps user group. I thought they may be rebuild tiles or something it has been going on now for about 1 week. It even happens when using the maps.google.com url's and switching to close in zoomed satellite images. The zoom and pan's go strange and centre on the upper left or lower left view extents and show the zoom out message at the wrong times. It may be worth others adding comments in the Google maps group pages. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -----Original Message----- From: Cranio [mailto:cranio@quipo.it] Sent: Monday, 28 April 2008 11:42 PM To: users@openlayers.org Subject: [OpenLayers-Users] Odd behaviour with IFrames Situation: An IFRAME (Joomla wrapper component) containing a HTML page with a OpenLayers 2.6 Map (WMS layers over Google base layers) Problem: Odd behaviour when zooming in/out. At first, zooming works correctly. Then I change f.ex. from Google Street Map to Google Satellite. After the first base map change, the zoomed region is wrongly centered (map center shifts a lot to South-East) making zoom unusable. Other strange thing, the problem seems to arise ONLY with the Satellite map... ... I'm puzzled, any hints? -- View this message in context: http://www.nabble.com/Odd-behaviour-with-IFrames-tp16941704p16941704.htm l Sent from the OpenLayers Users mailing list archive at Nabble.com. From tbrenningmeyer at maryville.edu Mon Apr 28 22:46:09 2008 From: tbrenningmeyer at maryville.edu (Brenningmeyer, Todd) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] question about example files References: <20080427211404.GA28551@metacarta.com> Message-ID: Thanks Chris, That worked but now I have a single image that is being repeated over and over again. What do I need to do to have the image tiled rather than repeated in each tile that appears in openlayers. Thanks again for the help. Todd ________________________________ From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Sun 4/27/2008 4:14 PM To: Brenningmeyer, Todd Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] question about example files On Sun, Apr 27, 2008 at 04:06:03PM -0500, Brenningmeyer, Todd wrote: > Hello, > I am trying to display data from mapserver using openlayers and am > using the example files as a reference. I'm using ms4w and the > mapserver.html example file with Open-layers2.5. When I view the file > it displays pink tiles but none of the layers. The error that is > listed when I open the pink tiles reads: loadMap(): Web application > error. CGI variable "map" is not set. This might be because you haven't set the CGI variable "Map". Specifically, you need to add a 'map' key/value pair to the params hash (third arg to layer.mapserver). -- Chris I'm not quite sure what the > problem is but any help is appreciated. I'll paste the mapserver.html > file below with the altered sections in red. I have been able to get > an image to display when I add the rest of the wms request to the > section that has mapserver.exe listed (I used > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/maryville_web/maryville.map&SERVICE=WMS > in place of http://localhost/cgi-bin/mapserv.exe) > If you have any suggestions I would appreciate your help. > Thanks, > Todd > > > > > > > > >
    > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From lootens.pieter at gmail.com Tue Apr 29 07:36:29 2008 From: lootens.pieter at gmail.com (petey1815) Date: Wed Sep 1 17:16:16 2010 Subject: [OpenLayers-Users] WKT in MySQL In-Reply-To: <16944702.post@talk.nabble.com> References: <16852122.post@talk.nabble.com> <16881015.post@talk.nabble.com> <16891470.post@talk.nabble.com> <16891593.post@talk.nabble.com> <16891948.post@talk.nabble.com> <16892293.post@talk.nabble.com> <5ec103de0804251350w6d7d7369t314c1074b1e51f09@mail.gmail.com> <16905749.post@talk.nabble.com> <20080425213529.GA20582@metacarta.com> <16944702.post@talk.nabble.com> Message-ID: <16958522.post@talk.nabble.com> nm, found this one myself yeah :D var France = OpenLayers.Style; France = {strokeColor : "blue", fillColor : "blue"}; did it cheers P -- View this message in context: http://www.nabble.com/WKT-in-MySQL-tp16852122p16958522.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From clems_mars at hotmail.com Tue Apr 29 08:27:09 2008 From: clems_mars at hotmail.com (Clemiou) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Problem with projection of rasters... Message-ID: Hi all! I come back here because I always have the same problem. So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France). Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator. So, if I try to displaying my map with the Lambert II projection, I obtain the following figure: http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 As you can see, there is a malfunction=> the repetition of a part of each tile. I tried to add projection and units options to my map but nothing change. I think that is a OL probleme because my map is correctly display with Mapserver and without OL. Thanks for your futur help and once more, excuse me for my English. Have a nice day Clement _________________________________________________________________ Recevez tous vos e-mails sur un seul compte ! Cr?ez une adresse Hotmail ! http://www.windowslive.fr/hotmail/default.asp From pedrosimonetti at gmail.com Tue Apr 29 14:50:50 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti Garcia) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Value of map.getExtent() is not precise? Message-ID: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> Hi all, I need a little help here. I'm developing a printing system, but I'm getting some problem with the extents. I'm trying to print the map viewport, so I'm using the map.getExtent() and map.getCurrentSize() values and passing it to the server, which calls the mapserver and generates the image with the specified extent and size. The problem is that the printed area is not exactly the same as showed at the viewport. The output area is around 20% larger. What I'm doing wrong? How can I precisely calculate the viewport extents? The client code is something like this: var currentSize = map.getCurrentSize(); var viewportWidth = currentSize.w; var viewportHeight = currentSize.h; var extent = map.getExtent(); var sPrintExtent = extent.toBBOX(); var url = 'print.php?' + 'size=custom' + '&width=' + viewportWidth + '&height=' + viewportHeight + '&extent=' + sPrintExtent; window.open(url); To better understand what I'm talking about, take a look at this screenshot of my viewport: http://jproton.com.br/sandbox/viewport.JPG And in the output image: http://jproton.com.br/sandbox/print.jpg my best regards, Pedro Simonetti. From pedrosimonetti at gmail.com Tue Apr 29 15:01:25 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti Garcia) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Value of map.getExtent() is not precise? In-Reply-To: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> References: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> Message-ID: <5b629bbf0804291201l4448fd60k896fef0f0d8ba44d@mail.gmail.com> Sorry, My free host is really bad, and the image sometimes will not download. I've uploaded those images to my googlepages: http://pedrosimonetti.googlepages.com/viewport.JPG http://pedrosimonetti.googlepages.com/print.jpg regards, Pedro Simonetti. 2008/4/29 Pedro Simonetti Garcia : > Hi all, > > I need a little help here. I'm developing a printing system, but I'm > getting some > problem with the extents. > > I'm trying to print the map viewport, so I'm using the map.getExtent() and > map.getCurrentSize() values and passing it to the server, which calls the > mapserver and generates the image with the specified extent and size. > > The problem is that the printed area is not exactly the same as showed at > the viewport. The output area is around 20% larger. > > What I'm doing wrong? How can I precisely calculate the viewport extents? > > The client code is something like this: > > var currentSize = map.getCurrentSize(); > var viewportWidth = currentSize.w; > var viewportHeight = currentSize.h; > var extent = map.getExtent(); > var sPrintExtent = extent.toBBOX(); > > var url = 'print.php?' + > 'size=custom' + > '&width=' + viewportWidth + > '&height=' + viewportHeight + > '&extent=' + sPrintExtent; > > window.open(url); > > > To better understand what I'm talking about, take a look at this > screenshot of my viewport: > http://jproton.com.br/sandbox/viewport.JPG > > And in the output image: > http://jproton.com.br/sandbox/print.jpg > > > my best regards, > > Pedro Simonetti. > From crschmidt at metacarta.com Tue Apr 29 16:46:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Value of map.getExtent() is not precise? In-Reply-To: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> References: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> Message-ID: <20080429204601.GA6018@metacarta.com> On Tue, Apr 29, 2008 at 03:50:50PM -0300, Pedro Simonetti Garcia wrote: > Hi all, > > I need a little help here. I'm developing a printing system, but I'm > getting some > problem with the extents. > > I'm trying to print the map viewport, so I'm using the map.getExtent() and > map.getCurrentSize() values and passing it to the server, which calls the > mapserver and generates the image with the specified extent and size. > > The problem is that the printed area is not exactly the same as showed at > the viewport. The output area is around 20% larger. > > What I'm doing wrong? How can I precisely calculate the viewport extents? I can't think of any reason why this shouldn't work. Regards, -- Christopher Schmidt MetaCarta From pedrosimonetti at gmail.com Tue Apr 29 17:27:21 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti Garcia) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Value of map.getExtent() is not precise? In-Reply-To: <20080429204601.GA6018@metacarta.com> References: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> <20080429204601.GA6018@metacarta.com> Message-ID: <5b629bbf0804291427k54f376d6k1f9dd37590ac89a5@mail.gmail.com> Christopher, Thanks for your feedback. So, are you saying that the value of map.getExtent() is supposed to be the precise extent of the visible area of the map on the screen, isn't? Another thing, I'm using a non-default projection, and I'm wondering if this can somehow be related to a misconfiguration of projections in my files. In fact I'm a little bit confused about the values should I use for projection and maxResolution. Here's the gdalinfo of my tiff file. Driver: GTiff/GeoTIFF Files: GV_2005.tif Size is 18196, 28659 Coordinate System is: PROJCS["unnamed", GEOGCS["unnamed", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT[,0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-39], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","29184"]] Origin = (340166.000000000000000,7785287.000000000000000) Pixel Size = (2.000000000000000,-2.000000000000000) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01 EDT $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 340166.000, 7785287.000) ( 40d31'40.99"W, 20d 1'21.39"S) Lower Left ( 340166.000, 7727969.000) ( 40d31'59.28"W, 20d32'25.33"S) Upper Right ( 376558.000, 7785287.000) ( 40d10'48.72"W, 20d 1'30.97"S) Lower Right ( 376558.000, 7727969.000) ( 40d11'2.85"W, 20d32'35.18"S) Center ( 358362.000, 7756628.000) ( 40d21'22.92"W, 20d16'58.55"S) Band 1 Block=18196x1 Type=Byte, ColorInterp=Red Band 2 Block=18196x1 Type=Byte, ColorInterp=Green Band 3 Block=18196x1 Type=Byte, ColorInterp=Blue What exactly projection and maxResolution values should I use? thanks in advance, Pedro Simonetti. 2008/4/29 Christopher Schmidt : > On Tue, Apr 29, 2008 at 03:50:50PM -0300, Pedro Simonetti Garcia wrote: > > Hi all, > > > > I need a little help here. I'm developing a printing system, but I'm > > getting some > > problem with the extents. > > > > I'm trying to print the map viewport, so I'm using the map.getExtent() and > > map.getCurrentSize() values and passing it to the server, which calls the > > mapserver and generates the image with the specified extent and size. > > > > The problem is that the printed area is not exactly the same as showed at > > the viewport. The output area is around 20% larger. > > > > What I'm doing wrong? How can I precisely calculate the viewport extents? > > I can't think of any reason why this shouldn't work. > > Regards, > -- > Christopher Schmidt > MetaCarta > From crschmidt at metacarta.com Tue Apr 29 18:00:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Value of map.getExtent() is not precise? In-Reply-To: <5b629bbf0804291427k54f376d6k1f9dd37590ac89a5@mail.gmail.com> References: <5b629bbf0804291150m5f386acdqf39ce4d7a36b2ee6@mail.gmail.com> <20080429204601.GA6018@metacarta.com> <5b629bbf0804291427k54f376d6k1f9dd37590ac89a5@mail.gmail.com> Message-ID: <20080429220024.GA6907@metacarta.com> On Tue, Apr 29, 2008 at 06:27:21PM -0300, Pedro Simonetti Garcia wrote: > Christopher, > > Thanks for your feedback. > > So, are you saying that the value of map.getExtent() is supposed to be the > precise extent of the visible area of the map on the screen, isn't? Correct. Regards, -- Christopher Schmidt MetaCarta From randre at gmail.com Tue Apr 29 21:48:49 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Trouble getting mapserver WMS layer to load in OL Message-ID: <9c2015090804291848j5d4f7eb1v77d2b26d86b6b080@mail.gmail.com> Hi, I'm a new user of Mapserver and am having a hard time with getting layers from a new mapfile to load in OpenLayers. I've tested that my local mapserver install is responding correctly to WMS requests, and it seems to work correctly. Here is the request, with some linebreaks for clarity; http://localhost/cgi-bin/mapserv?map=/var/www/520_webmap/mapfiles/520_ECP.map &SERVICE=WMS &version=%221.1.122 &REQUEST=GetMap &LAYERS=Wetlands &STYLES= &BBOX=775843.302946,602429.871045,848438.746010,635418.446144 &WIDTH=600 &HEIGHT=400 &FORMAT=png &SRS=epsg:2286 This returns an image that contains all of the layers which are active at the scale of the BBOX area. However, I cannot seem to find the right syntax to get the layer to load into OpenLayers. I have taken one of the test.html files, the one for a single wms, and have tested that it works with my openlayers.js install. This is that file: ----------------------- OpenLayers Basic Single WMS Example

    Basic Single WMS Example

    Show a Simple Map
    This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
    ------------------------------ No matter how I edit the file though, when I point to my localhost mapserver instance, I just get an empty map frame, with no map controls, or anything inside of it. Right now the layer portion looks like this: I'm hoping one of you has encountered a similar problem and can give me some advice for how to resolve it. Thanks, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080429/f72f35c8/attachment.html From roald.dewit at lisasoft.com Tue Apr 29 22:21:28 2008 From: roald.dewit at lisasoft.com (Roald de Wit) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <4815D88D.2040405@gmail.com> References: <4815D88D.2040405@gmail.com> Message-ID: <1209522088.12699.40.camel@bender> Hi Fred, On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: > Last week Bill Bronsema and I updated to the latest version and found > that the drop shadow was no longer part of the out-of-the-box CloudAmber > popup. So we made a 24 bit PNG that was close to the old style and Thanks for that. In order to have your contribution added to OpenLayers, it is best that you create a ticket in Trac and add this as a feature [1]. Create a patch against the current OL version (2.6) or even better: trunk. You can attach the image to the ticket. Solutions provided on the mailing list get easily forgotten, which would be a pity. Regards, Roald [1] http://trac.openlayers.org/wiki/HowToContribute -- 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 Apr 29 23:54:24 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <1209522088.12699.40.camel@bender> References: <4815D88D.2040405@gmail.com> <1209522088.12699.40.camel@bender> Message-ID: <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> On Tue, Apr 29, 2008 at 9:21 PM, Roald de Wit wrote: > Hi Fred, > > On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: > > Last week Bill Bronsema and I updated to the latest version and found > > that the drop shadow was no longer part of the out-of-the-box CloudAmber > > popup. So we made a 24 bit PNG that was close to the old style and > > Thanks for that. In order to have your contribution added to OpenLayers, > it is best that you create a ticket in Trac and add this as a feature > [1]. Create a patch against the current OL version (2.6) or even better: > trunk. You can attach the image to the ticket. > > Solutions provided on the mailing list get easily forgotten, which would > be a pity. It is true. It is a constant and ongoing pity. :-( Erik > Regards, > > Roald > > [1] http://trac.openlayers.org/wiki/HowToContribute > -- > 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 fred.warnock at gmail.com Wed Apr 30 11:01:16 2008 From: fred.warnock at gmail.com (Fred warnock) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> References: <4815D88D.2040405@gmail.com> <1209522088.12699.40.camel@bender> <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> Message-ID: <481889BC.2090802@gmail.com> Thanks guys, Bill is going to follow up on your suggestion. I initially thought sending it to this list would allow some folks to comment on what we did before putting it forward as a "solution". It works for our needs, but poking around with the numbers to get the image with a drop shadow to work left us feeling a bit uneasy. We were not sure that we changed the numbers as optimally as possible, even though visually it works. All the best, Fred Erik Uzureau wrote: > On Tue, Apr 29, 2008 at 9:21 PM, Roald de Wit wrote: >> Hi Fred, >> >> On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: >>> Last week Bill Bronsema and I updated to the latest version and found >>> that the drop shadow was no longer part of the out-of-the-box CloudAmber >>> popup. So we made a 24 bit PNG that was close to the old style and >> Thanks for that. In order to have your contribution added to OpenLayers, >> it is best that you create a ticket in Trac and add this as a feature >> [1]. Create a patch against the current OL version (2.6) or even better: >> trunk. You can attach the image to the ticket. >> >> Solutions provided on the mailing list get easily forgotten, which would >> be a pity. > > It is true. It is a constant and ongoing pity. :-( > Erik > >> Regards, >> >> Roald >> >> [1] http://trac.openlayers.org/wiki/HowToContribute >> -- >> 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 euzuro at gmail.com Wed Apr 30 12:55:00 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <481889BC.2090802@gmail.com> References: <4815D88D.2040405@gmail.com> <1209522088.12699.40.camel@bender> <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> <481889BC.2090802@gmail.com> Message-ID: <6ae3fb590804300955l69b80ec1t2c45305e05172efa@mail.gmail.com> This is unfortunately the very gap that keeps most of the good work that people do in the community from getting re-absorbed into the project. It is unusual that folks have the time or resources to develop *general* solutions to problems they encounter when using OL (or any other FOSS project, I would venture to say). The goal is generally solving the task at hand rather than forming a universal solution that might be helpful to others. And that, of course, is nobody's fault. The only way to overcome it is to convince our managers that a little extra effort to give things back to the community is a worthwhile proposition: no simple task, indeed. Just taking the step you did to write to the mailing list with your work is more than most people do and a great help as it is. If you could spend the time to get your work into a ticket in trac with a straightforward patch, it would be even better... but as I've said above, even just the email to the list is a generous gesture. -e On Wed, Apr 30, 2008 at 10:01 AM, Fred warnock wrote: > Thanks guys, > > Bill is going to follow up on your suggestion. > > I initially thought sending it to this list would allow some folks to > comment on what we did before putting it forward as a "solution". It works > for our needs, but poking around with the numbers to get the image with a > drop shadow to work left us feeling a bit uneasy. > > We were not sure that we changed the numbers as optimally as possible, even > though visually it works. > > All the best, > Fred > > > > Erik Uzureau wrote: > > On Tue, Apr 29, 2008 at 9:21 PM, Roald de Wit > wrote: > > > > > Hi Fred, > > > > > > On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: > > > > > > > Last week Bill Bronsema and I updated to the latest version and found > > > > that the drop shadow was no longer part of the out-of-the-box > CloudAmber > > > > popup. So we made a 24 bit PNG that was close to the old style and > > > > > > > Thanks for that. In order to have your contribution added to OpenLayers, > > > it is best that you create a ticket in Trac and add this as a feature > > > [1]. Create a patch against the current OL version (2.6) or even better: > > > trunk. You can attach the image to the ticket. > > > > > > Solutions provided on the mailing list get easily forgotten, which would > > > be a pity. > > > > > > > It is true. It is a constant and ongoing pity. :-( > > Erik > > > > > > > Regards, > > > > > > Roald > > > > > > [1] http://trac.openlayers.org/wiki/HowToContribute > > > -- > > > 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 arnd.wippermann at web.de Wed Apr 30 13:33:35 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Trouble getting mapserver WMS layer to load in OL In-Reply-To: <9c2015090804291848j5d4f7eb1v77d2b26d86b6b080@mail.gmail.com> Message-ID: Hi Roger, you must declare the right projection for your map. Without any option the projection OpenLayers will use is EPSG:4326 with -180,-90,180,90 as extent. So the response of the WMS request is all right, if you get blank tiles. Try something like this: var options = { projection: "EPSG:2286", //perhaps also //maxResolution: .... units: "m", maxZoomLevel : 16, //if set you must add your controls manuel after the map declaration //controls : [], numZoomLevels : 16, //this is a guess maxExtent: new OpenLayers.Bounds(500000, 500000, 1000000, 1000000) }; map = new OpenLayers.Map('map', options); With maxResolution I am not all clear. I always set it. For Google it is 156543.0339. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Roger Andr? Gesendet: Mittwoch, 30. April 2008 03:49 An: users@openlayers.org Betreff: [OpenLayers-Users] Trouble getting mapserver WMS layer to load in OL Hi, I'm a new user of Mapserver and am having a hard time with getting layers from a new mapfile to load in OpenLayers. I've tested that my local mapserver install is responding correctly to WMS requests, and it seems to work correctly. Here is the request, with some linebreaks for clarity; http://localhost/cgi-bin/mapserv?map=/var/www/520_webmap/mapfiles/520_ECP.ma p &SERVICE=WMS &version=%221.1.122 &REQUEST=GetMap &LAYERS=Wetlands &STYLES= &BBOX=775843.302946,602429.871045,848438.746010,635418.446144 &WIDTH=600 &HEIGHT=400 &FORMAT=png &SRS=epsg:2286 This returns an image that contains all of the layers which are active at the scale of the BBOX area. However, I cannot seem to find the right syntax to get the layer to load into OpenLayers. I have taken one of the test.html files, the one for a single wms, and have tested that it works with my openlayers.js install. This is that file: ----------------------- OpenLayers Basic Single WMS Example

    Basic Single WMS Example

    Show a Simple Map
    This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
    ------------------------------ No matter how I edit the file though, when I point to my localhost mapserver instance, I just get an empty map frame, with no map controls, or anything inside of it. Right now the layer portion looks like this: I'm hoping one of you has encountered a similar problem and can give me some advice for how to resolve it. Thanks, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080430/07f596c4/attachment.html From fred.warnock at gmail.com Wed Apr 30 13:41:39 2008 From: fred.warnock at gmail.com (Fred warnock) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <6ae3fb590804300955l69b80ec1t2c45305e05172efa@mail.gmail.com> References: <4815D88D.2040405@gmail.com> <1209522088.12699.40.camel@bender> <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> <481889BC.2090802@gmail.com> <6ae3fb590804300955l69b80ec1t2c45305e05172efa@mail.gmail.com> Message-ID: <4818AF53.1090805@gmail.com> Erik, It was always our intention to submit this back to the community in the way you have described. I just wanted to get some feedback on our approach before standing it up as a "solution". It seems that the code was set up to be configurable, kind of like a style sheet, but in Javascript. We adjusted the positioning and sizing values, following what patterns we could recognise. Once we've filed the ticket, I'm sure we'll get that feedback so we can tidy it up if need be. fred Erik Uzureau wrote: > This is unfortunately the very gap that keeps most of the good work that people > do in the community from getting re-absorbed into the project. > > It is unusual that folks have the time or resources to develop > *general* solutions > to problems they encounter when using OL (or any other FOSS project, I would > venture to say). The goal is generally solving the task at hand rather > than forming > a universal solution that might be helpful to others. > > And that, of course, is nobody's fault. The only way to overcome it is > to convince > our managers that a little extra effort to give things back to the > community is a > worthwhile proposition: no simple task, indeed. > > Just taking the step you did to write to the mailing list with your > work is more than > most people do and a great help as it is. If you could spend the time > to get your > work into a ticket in trac with a straightforward patch, it would be > even better... but > as I've said above, even just the email to the list is a generous gesture. > > -e > > > > On Wed, Apr 30, 2008 at 10:01 AM, Fred warnock wrote: >> Thanks guys, >> >> Bill is going to follow up on your suggestion. >> >> I initially thought sending it to this list would allow some folks to >> comment on what we did before putting it forward as a "solution". It works >> for our needs, but poking around with the numbers to get the image with a >> drop shadow to work left us feeling a bit uneasy. >> >> We were not sure that we changed the numbers as optimally as possible, even >> though visually it works. >> >> All the best, >> Fred >> >> >> >> Erik Uzureau wrote: >>> On Tue, Apr 29, 2008 at 9:21 PM, Roald de Wit >> wrote: >>>> Hi Fred, >>>> >>>> On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: >>>> >>>>> Last week Bill Bronsema and I updated to the latest version and found >>>>> that the drop shadow was no longer part of the out-of-the-box >> CloudAmber >>>>> popup. So we made a 24 bit PNG that was close to the old style and >>>>> >>>> Thanks for that. In order to have your contribution added to OpenLayers, >>>> it is best that you create a ticket in Trac and add this as a feature >>>> [1]. Create a patch against the current OL version (2.6) or even better: >>>> trunk. You can attach the image to the ticket. >>>> >>>> Solutions provided on the mailing list get easily forgotten, which would >>>> be a pity. >>>> >>> It is true. It is a constant and ongoing pity. :-( >>> Erik >>> >>> >>>> Regards, >>>> >>>> Roald >>>> >>>> [1] http://trac.openlayers.org/wiki/HowToContribute >>>> -- >>>> 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 chris at powerhousetechgrp.com Wed Apr 30 15:19:22 2008 From: chris at powerhousetechgrp.com (chris1211) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Permalink Not Working Message-ID: <16989744.post@talk.nabble.com> I copyed the permalink code from the example but it is not working with my map here is the code: Any help is appreciated (also if you could explain where the problem is and why i would appreciate it) WX Server
    -- View this message in context: http://www.nabble.com/Permalink-Not-Working-tp16989744p16989744.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From randre at gmail.com Wed Apr 30 17:02:10 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Trouble getting mapserver WMS layer to load in OL In-Reply-To: References: <9c2015090804291848j5d4f7eb1v77d2b26d86b6b080@mail.gmail.com> Message-ID: <9c2015090804301402m5aa95bads18c8ccdb43b5c384@mail.gmail.com> Thanks for the help with this. It appears that the problem I was having was due to the lack of having a declared projection in my OpenLayers.Map. The following, along with a declared projection in the MAP portion of my mapfile, and a "wms_srs" parameter set in the WEB section of the mapfile seems to work well. var map = new OpenLayers.Map('map', { maxExtent: new OpenLayers.Bounds(716805.363551,570361.299368,832620.878780,660361.288174), units: 'feet', projection: "epsg:2286", maxResolution: 'auto', numZoomLevels: 16, controls: [] }); var wetlands = new OpenLayers.Layer.MapServer('wetland_test', ' http://localhost/cgi-bin/mapserv?', { map: '/var/www/520_webmap/mapfiles/520_ECP.map', layers: 'Wetlands', format: 'image/png', }, {buffer: 0, gutter: 15}) ------------------- On Wed, Apr 30, 2008 at 10:33 AM, Arnd Wippermann wrote: > Hi Roger, > > you must declare the right projection for your map. Without any option the > projection OpenLayers will use is EPSG:4326 with -180,-90,180,90 as extent. > So the response of the WMS request is all right, if you get blank tiles. > > Try something like this: > > var options = { > projection: "EPSG:2286", > //perhaps also > //maxResolution: .... > units: "m", > maxZoomLevel : 16, > //if set you must add your controls manuel after the map > declaration > //controls : [], > numZoomLevels : 16, > //this is a guess > maxExtent: new OpenLayers.Bounds(500000, 500000, 1000000, 1000000) > }; > map = new OpenLayers.Map('map', options); > With maxResolution I am not all clear. I always set it. For Google it is > 156543.0339. > > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ > > > > ------------------------------ > *Von:* users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > *Im Auftrag von *Roger Andr? > *Gesendet:* Mittwoch, 30. April 2008 03:49 > *An:* users@openlayers.org > *Betreff:* [OpenLayers-Users] Trouble getting mapserver WMS layer to load > in OL > > Hi, > > I'm a new user of Mapserver and am having a hard time with getting layers > from a new mapfile to load in OpenLayers. I've tested that my local > mapserver install is responding correctly to WMS requests, and it seems to > work correctly. Here is the request, with some linebreaks for clarity; > > > http://localhost/cgi-bin/mapserv?map=/var/www/520_webmap/mapfiles/520_ECP.map > &SERVICE=WMS > &version=%221.1.122 > &REQUEST=GetMap > &LAYERS=Wetlands > &STYLES= > &BBOX=775843.302946,602429.871045,848438.746010,635418.446144 > &WIDTH=600 > &HEIGHT=400 > &FORMAT=png > &SRS=epsg:2286 > > This returns an image that contains all of the layers which are active at > the scale of the BBOX area. However, I cannot seem to find the right syntax > to get the layer to load into OpenLayers. I have taken one of the test.html > files, the one for a single wms, and have tested that it works with my > openlayers.js install. This is that file: > ----------------------- > > > OpenLayers Basic Single WMS Example > type="text/css" /> > > > > > >

    Basic Single WMS Example

    > >
    > >
    Show a Simple Map
    > >
    > >
    > This example shows a very simple layout with minimal controls. > This example uses a single WMS base layer. >
    > > > ------------------------------ > > No matter how I edit the file though, when I point to my localhost > mapserver instance, I just get an empty map frame, with no map controls, or > anything inside of it. Right now the layer portion looks like this: > > > > I'm hoping one of you has encountered a similar problem and can give me > some advice for how to resolve it. > > Thanks, > > Roger > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080430/79be866f/attachment.html From pedrosimonetti at gmail.com Wed Apr 30 18:23:05 2008 From: pedrosimonetti at gmail.com (Pedro Simonetti Garcia) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] CloudAmber drop shadow In-Reply-To: <4818AF53.1090805@gmail.com> References: <4815D88D.2040405@gmail.com> <1209522088.12699.40.camel@bender> <6ae3fb590804292054x59dedb8r89c7404fe4d52c48@mail.gmail.com> <481889BC.2090802@gmail.com> <6ae3fb590804300955l69b80ec1t2c45305e05172efa@mail.gmail.com> <4818AF53.1090805@gmail.com> Message-ID: <5b629bbf0804301523s78a18534s4278403692d8b774@mail.gmail.com> Erik, Yeah that will be great! This is a cool feature, I will love seeing it in a future release! regards, Pedro Simonetti. 2008/4/30 Fred warnock : > Erik, > > It was always our intention to submit this back to the community in the > way you have described. > > I just wanted to get some feedback on our approach before standing it up > as a "solution". It seems that the code was set up to be configurable, > kind of like a style sheet, but in Javascript. We adjusted the > positioning and sizing values, following what patterns we could recognise. > > Once we've filed the ticket, I'm sure we'll get that feedback so we can > tidy it up if need be. > > fred > > > > Erik Uzureau wrote: > > This is unfortunately the very gap that keeps most of the good work that people > > do in the community from getting re-absorbed into the project. > > > > It is unusual that folks have the time or resources to develop > > *general* solutions > > to problems they encounter when using OL (or any other FOSS project, I would > > venture to say). The goal is generally solving the task at hand rather > > than forming > > a universal solution that might be helpful to others. > > > > And that, of course, is nobody's fault. The only way to overcome it is > > to convince > > our managers that a little extra effort to give things back to the > > community is a > > worthwhile proposition: no simple task, indeed. > > > > Just taking the step you did to write to the mailing list with your > > work is more than > > most people do and a great help as it is. If you could spend the time > > to get your > > work into a ticket in trac with a straightforward patch, it would be > > even better... but > > as I've said above, even just the email to the list is a generous gesture. > > > > -e > > > > > > > > On Wed, Apr 30, 2008 at 10:01 AM, Fred warnock wrote: > >> Thanks guys, > >> > >> Bill is going to follow up on your suggestion. > >> > >> I initially thought sending it to this list would allow some folks to > >> comment on what we did before putting it forward as a "solution". It works > >> for our needs, but poking around with the numbers to get the image with a > >> drop shadow to work left us feeling a bit uneasy. > >> > >> We were not sure that we changed the numbers as optimally as possible, even > >> though visually it works. > >> > >> All the best, > >> Fred > >> > >> > >> > >> Erik Uzureau wrote: > >>> On Tue, Apr 29, 2008 at 9:21 PM, Roald de Wit > >> wrote: > >>>> Hi Fred, > >>>> > >>>> On Mon, 2008-04-28 at 10:00 -0400, Fred warnock wrote: > >>>> > >>>>> Last week Bill Bronsema and I updated to the latest version and found > >>>>> that the drop shadow was no longer part of the out-of-the-box > >> CloudAmber > >>>>> popup. So we made a 24 bit PNG that was close to the old style and > >>>>> > >>>> Thanks for that. In order to have your contribution added to OpenLayers, > >>>> it is best that you create a ticket in Trac and add this as a feature > >>>> [1]. Create a patch against the current OL version (2.6) or even better: > >>>> trunk. You can attach the image to the ticket. > >>>> > >>>> Solutions provided on the mailing list get easily forgotten, which would > >>>> be a pity. > >>>> > >>> It is true. It is a constant and ongoing pity. :-( > >>> Erik > >>> > >>> > >>>> Regards, > >>>> > >>>> Roald > >>>> > >>>> [1] http://trac.openlayers.org/wiki/HowToContribute > >>>> -- > >>>> 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 > >>>> > >>>> > >>> > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From richard.greenwood at gmail.com Wed Apr 30 22:57:50 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] OpenLayers + dBox + Postgres text search Message-ID: Apologies for the cross post to people with crowded mail boxes. I've been working on an OpenLayers site that incorporates the dBox tree legend that is popular with many MapServer users. dBox is based on YUI and was developed by Steve Lime and others at the Minnesota DNR. The site is still pretty sloppy but may be of interest: http://www2.tetonwyo.org/mapserver/ol.html Also of possible interest is the use of the new PostgreSQL 8.3 full text search. Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com