From Claus.Krinke at ML.Niedersachsen.de Mon Dec 4 04:59:11 2006 From: Claus.Krinke at ML.Niedersachsen.de (Krinke, Claus) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Problems with overlay Message-ID: <53DEE08E4AAA4E4590E077101AAE36A708562DA2@ml-mail-s01.iznservice.ads.niedersachsen.de> Hi List, I have a problem defining baselayers and overlays. The layer ROK should be an overlay. I tried with the param isBaseLayer false, but this dont work. Where is the problem? Here ist the code (based on Mumbai Free Map):
ROK
Link to ths location →
Download as PDF →
Visit CRIT project page →
Powered by OpenLayers →
Claus Krinke Nieders?chsisches Ministerium f?r den l?ndlichen Raum, Ern?hrung, Landwirtschaft und Verbraucherschutz fon: 0511 120-4715 mail: claus.krinke@ml.niedersachsen.de From crschmidt at metacarta.com Mon Dec 4 11:06:06 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache 1.2 Release Message-ID: <20061204160606.GA2774@metacarta.com> TileCache 1.2 has been released. TileCache is an implementation of a WMS-C compliant server made available under the BSD license by MetaCarta, and provides a Python-based WMS/TMS/WorldWind server, with pluggable caching mechanisms and rendering backends. In the simplest use case, TileCache requires only write access to a disk, the ability to run Python CGI scripts, and a WMS you want to be cached. Changes since 1.1: * Add support for WorldWind style requests, courtesy of Emily Gouge, from Refractions. * Add support for Mapnik rendering. * Add support for rendering using metatiles: instead of rendering one tile at a time, render a 5x5 tileset, and then slice the tiles up. Good for vector layers, where labels crossing tile boundaries is useful. To turn on, use 'metaTile=yes' in layer definition. Requires Python-Imaging. * Added Service information caching to mod_python request handler. * Improved TMS metadata * Fix TileCache to work on Python 2.2 * Fix TileCache to work on Windows. (With help from Tim Schaub) TileCache 1.2 Download: http://labs.metacarta.com/wms-c/tilecache-1.2.tar.gz TileCache Information: http://labs.metacarta.com/wms-c/ TileCache Demo: http://labs.metacarta.com/wms-c/demo.html Questions, comments, or suggestions on TileCache can be directed to labs@metacarta.com. Follow-up to this email can be directed to the mailing list where it was received. Regards, -- Christopher Schmidt MetaCarta From ihaddad at wtwlevant.com Mon Dec 4 11:57:39 2006 From: ihaddad at wtwlevant.com (ihaddad@wtwlevant.com) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] WFS Queries Message-ID: <41961.81.169.147.27.1165251459.squirrel@webmail.wtwlevant.com> hi, i would like to know if it is possible to make a conditional query to the wfs server. ex: i have a table with (id,userid,geometry) i want to connect to geoserver through wfs and specify that i want only those features with userid=1 how could i do that? any clue? From arnd.wippermann at web.de Mon Dec 4 12:41:51 2006 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Problems with overlay In-Reply-To: <53DEE08E4AAA4E4590E077101AAE36A708562DA2@ml-mail-s01.iznservice.ads.niedersachsen.de> Message-ID: Hello Claus, I have taken your code and it works. TOPO is the baselayer and ROK is an overlay. There is nothing wrong. Perhaps you mean, that ROK lie over TOPO and you doesn't see the TOPO layer. Add the parameter format:'image/png' and transparent: 'true' to the WMS layer. Mit freundlichen Gr?ssen Arnd Wippermann -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Krinke, Claus Gesendet: Montag, 4. Dezember 2006 10:59 An: users@openlayers.org Betreff: [OpenLayers-Users] Problems with overlay Hi List, I have a problem defining baselayers and overlays. The layer ROK should be an overlay. I tried with the param isBaseLayer false, but this dont work. Where is the problem? Here ist the code (based on Mumbai Free Map):
Claus Krinke Nieders?chsisches Ministerium f?r den l?ndlichen Raum, Ern?hrung, Landwirtschaft und Verbraucherschutz fon: 0511 120-4715 mail: claus.krinke@ml.niedersachsen.de _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From ruckc at yahoo.com Mon Dec 4 13:41:31 2006 From: ruckc at yahoo.com (Curtis W. Ruck) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] WMS & ImageMap Message-ID: <20061204184131.14352.qmail@web32201.mail.mud.yahoo.com> Ok, I would idealy like to setup a WFS server with mapserver and then have OpenLayers pull from it, so the features are interactive on the map (i.e. clickable). Well, the way my database is setup is the WFS adds an insane load to the server trying to create the WFS response (We are talking 1000s of points in a query). I like WMS because its much faster on the server but i would need to throw an imagemap onto the WMS returned image. Can openlayers handle an imagemap thrown on top of a WMS layer, and if so any suggestions on making one? Curtis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061204/ff915a31/attachment.html From bpederse at gmail.com Mon Dec 4 13:57:05 2006 From: bpederse at gmail.com (Brent Pedersen) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] WMS & ImageMa In-Reply-To: <20061204184131.14352.qmail@web32201.mail.mud.yahoo.com> References: <20061204184131.14352.qmail@web32201.mail.mud.yahoo.com> Message-ID: with WMS... this might be too slow for a mouseover, but if you can do query by clicking, just add a click Event that does a getFeatureInfo request to the WMS server. that way, no need for an image map. it'd use the x,y of the click and the extents of the viewPort. On 12/4/06, Curtis W. Ruck wrote: > > Ok, I would idealy like to setup a WFS server with mapserver and then have > OpenLayers pull from it, so the features are interactive on the map (i.e. > clickable). > > Well, the way my database is setup is the WFS adds an insane load to the > server trying to create the WFS response (We are talking 1000s of points in > a query). > > I like WMS because its much faster on the server but i would need to throw > an imagemap onto the WMS returned image. Can openlayers handle an imagemap > thrown on top of a WMS layer, and if so any suggestions on making one? > > Curtis > > _______________________________________________ > 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/20061204/bb69c2b1/attachment.html From bbrehmer at refractions.net Mon Dec 4 17:43:11 2006 From: bbrehmer at refractions.net (Ben Brehmer) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache - tilecache.cfg Message-ID: <4574A47F.3040306@refractions.net> I am using the following tilecache.cfg file but the "[layername]" section doesn't seem to be setting the default values. For example when Tiles are requested the apache access log indicates a tile size of 256x256 although I have set the size to 400x400 in tilecache.cfg. Is there something blatantly wrong with my tilecache.cfg file? tilecache.cfg: [cache] type=DiskCache base=/home/httpd/cf2/html/cache/ [layername] type=WMSLayer layers=TileCache-Nov25 size=400,400 [TileCache-Nov25] type=WMSLayer url=http://office.refractions.net/ms/cgi-bin/mapserv-4.6.2?map=/home/httpd/cf2/html/maps/basemap.map extension=png Apache Log: 192.168.50.1 - - [04/Dec/2006:14:19:30 -0800] "GET /cgi-bin/tilecache-1.1/tilecache.cgi?LAYERS=TileCache-Nov25&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-82.792969,65.43457,-82.749023,65.478516&WIDTH=256&HEIGHT=256 HTTP/1.1" 200 224 Thanks, Ben From noreply at geocartic.com Mon Dec 4 18:44:56 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache - tilecache.cfg In-Reply-To: <4574A47F.3040306@refractions.net> Message-ID: <00f001c717fe$3553e0d0$15fea8c0@meridian> > > [layername] > type=WMSLayer > layers=TileCache-Nov25 > size=400,400 > > > Apache Log: > 192.168.50.1 - - [04/Dec/2006:14:19:30 -0800] "GET > /cgi-bin/tilecache-1.1/tilecache.cgi?LAYERS=TileCache-Nov25&FO RMAT=image/png&SERVICE=WMS&VERSION=1.1.1> &REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inim > age&SRS=EPSG:4326&BBOX=-82.792969,65.43457,-82.749023,65.47851 > 6&WIDTH=256&HEIGHT=256 > HTTP/1.1" 200 224 > Apache is logging what your client is requesting from tilecache.cgi. Since your client (OpenLayers) knows nothing about your tilecache.cfg, it's asking for whatever you tell it to. The default tile size in OpenLayers is 256x256. TileCache thinks this client is ignorant and serves up what the tilecache.cfg tells it to. > > Thanks, > > Ben > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From xpxiong at purdue.edu Mon Dec 4 20:43:31 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Displaying a static map References: <4574A47F.3040306@refractions.net> Message-ID: <028a01c7180e$c5284d30$6f090a80@ad.cs.purdue.edu> Hello List, I am new to the Openlayers, so please forgive me if my question is too simple for you. I want to embed a map into my html page. The requirements are as follows. 1. The map shows the rough boundary of United States. 2. The map has to be static and it will not zoom-in/out or move by dragging, it is just like a static image. No control pan is needed. 3. When the user selects a rectangluar range, the corresponding longitude/latitude of the range will be shown. I started from the provided live demo at http://www.openlayers.org/dev/examples/lonlatfrompx.html and I created a map without any control by using var map = new OpenLayers.Map('map', { controls: [] }); However, I have no idea on how to initialize the map to a specific area (e.g., around United States). Currently it displays the map of the whole world. I will appreciate any help. Thank you. Best regards, Xiaopeng From crschmidt at metacarta.com Mon Dec 4 20:49:41 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Displaying a static map In-Reply-To: <028a01c7180e$c5284d30$6f090a80@ad.cs.purdue.edu> References: <4574A47F.3040306@refractions.net> <028a01c7180e$c5284d30$6f090a80@ad.cs.purdue.edu> Message-ID: <20061205014941.GA16222@metacarta.com> On Mon, Dec 04, 2006 at 08:43:31PM -0500, Xiaopeng Xiong wrote: > I started from the provided live demo at > http://www.openlayers.org/dev/examples/lonlatfrompx.html > and I created a map without any control by using > var map = new OpenLayers.Map('map', { controls: [] }); > > However, I have no idea on how to initialize the map to a specific area > (e.g., around United States). Currently it displays the map of the whole > world. > > I will appreciate any help. Thank you. map.zoomToExtent( new penLayers.Bounds(-125.64,25.70,-70.18,50.93) ); Should get you the right area -- tweak as needed. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon Dec 4 20:51:05 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Displaying a static map In-Reply-To: <20061205014941.GA16222@metacarta.com> References: <4574A47F.3040306@refractions.net> <028a01c7180e$c5284d30$6f090a80@ad.cs.purdue.edu> <20061205014941.GA16222@metacarta.com> Message-ID: <20061205015105.GC16222@metacarta.com> On Mon, Dec 04, 2006 at 08:49:41PM -0500, Christopher Schmidt wrote: > On Mon, Dec 04, 2006 at 08:43:31PM -0500, Xiaopeng Xiong wrote: > > I started from the provided live demo at > > http://www.openlayers.org/dev/examples/lonlatfrompx.html > > and I created a map without any control by using > > var map = new OpenLayers.Map('map', { controls: [] }); > > > > However, I have no idea on how to initialize the map to a specific area > > (e.g., around United States). Currently it displays the map of the whole > > world. > > > > I will appreciate any help. Thank you. > > map.zoomToExtent( > new penLayers.Bounds(-125.64,25.70,-70.18,50.93) > ); Ack! Something ate my O! map.zoomToExtent( new OpenLayers.Bounds(-125.64,25.70,-70.18,50.93) ); That should work better :) Regards, -- Christopher Schmidt MetaCarta From perrygeo at gmail.com Tue Dec 5 03:46:06 2006 From: perrygeo at gmail.com (Matthew Perry) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Tilecache: managing the cache size Message-ID: <5383fa5e0612050046u783283e0xd8b6bf8493f7c420@mail.gmail.com> Hey folks, Just started playing with TileCache today ... a great piece of software and it really gives a speed boost to OpenLayers backends. After a recent conversation on #openlayers, it became quickly apparently that the disk space consumed by a tile cache could get out of hand very quickly. I came up with a quick one-liner to keep the cache size manageable. If the file hasn't been accessed for 120 minutes, it is deleted. The theory is that there is less need to cache infrequently-accessed tiles. find /tmp/tilecache -type f -amin +120 -exec rm -rf {} \; It would be great to have some sort of more advanced cache-management script included in the TileCache release. Any other ideas floating around about how to best manage the cache and keep it under control?? -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry@nceas.ucsb.edu web: http://www.perrygeo.net From perrygeo at gmail.com Tue Dec 5 04:03:01 2006 From: perrygeo at gmail.com (Matthew Perry) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache w/ Mapserver WMS question Message-ID: <5383fa5e0612050103l2782aca0mb50fa75d8a6598f2@mail.gmail.com> Hey folks, I've got a question about a TileCache setup. I've got a working WMS: http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map&layers=nedrape&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256 I'm trying to point my tilecache.cfg at it: [base] type=WMSLayer url=http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map& layers=nedrape extension=png Trying to request it via a tilecache: http://ebm.nceas.ucsb.edu/tilecache/tilecache.py?LAYERS=base&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256 ... gives me the following error: An error occurred: Zero length data returned from layer. File "/mnt/raid/services/tilecache/TileCache/Service.py", line 397, in modPythonHandler host ) File "/mnt/raid/services/tilecache/TileCache/Service.py", line 382, in dispatchRequest return self.renderTile(tile, params.has_key('FORCE')) File "/mnt/raid/services/tilecache/TileCache/Service.py", line 361, in renderTile else: raise Exception("Zero length data returned from layer.") Any ideas? -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry@nceas.ucsb.edu web: http://www.perrygeo.net From crschmidt at metacarta.com Tue Dec 5 07:30:26 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache w/ Mapserver WMS question In-Reply-To: <5383fa5e0612050103l2782aca0mb50fa75d8a6598f2@mail.gmail.com> References: <5383fa5e0612050103l2782aca0mb50fa75d8a6598f2@mail.gmail.com> Message-ID: <20061205123026.GB25654@metacarta.com> On Tue, Dec 05, 2006 at 01:03:01AM -0800, Matthew Perry wrote: > Hey folks, > > I've got a question about a TileCache setup. > > I've got a working WMS: > http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map&layers=nedrape&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256 > > I'm trying to point my tilecache.cfg at it: > [base] > type=WMSLayer > url=http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map& > layers=nedrape > extension=png > > Trying to request it via a tilecache: > http://ebm.nceas.ucsb.edu/tilecache/tilecache.py?LAYERS=base&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256 > Can you check your server log and see what URL it's actually requesting? This error message means "The WMS server gave me no data", but without knowing the WMS URL, it's hard to know why. (TileCache is unfortunately not the most informative in this situation.) Regards, -- Christopher Schmidt MetaCarta From ihaddad at wtwlevant.com Tue Dec 5 11:51:18 2006 From: ihaddad at wtwlevant.com (ihaddad@wtwlevant.com) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] WFS Problems Message-ID: <58931.81.169.147.27.1165337478.squirrel@webmail.wtwlevant.com> hi guys, i know i've posted something similar, but i am still having some problems. i created a table in postgis with (id, name,the_geom) where the_geom is a geometry column of type Point. then i created a featuretype on geoserver with that table. now i am trying to show these features on my map using this... landmarks = new OpenLayers.Layer.WFS( "Landmarks", "http://192.168.0.4:7070/geoserver/wfs", {typename: "topp:landmarkpoints", maxfeatures: 10}, { featureClass: OpenLayers.Feature.WFS}); map.addLayer(landmarks); yet nothing is displayed!! i want those features to be displayed as points on my map, i am using wfs becuase later i want to make a conditional query on that featuretype to get only part of the features( landmarks) and display them. i am not sure if i can do that in wms! one more thing...does openlayers support wfs-t? i saw a very beautifull example that comes with geoserver (mapbuilder) that uses wfs-t to add points and lines to the map. will that be possible one day on openlayers??? thank you. From gopakrishnan at gmail.com Tue Dec 5 11:55:25 2006 From: gopakrishnan at gmail.com (gopal krishnan) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Creating a tile server layer Message-ID: Hi All, I have a custom tile server. I want to create a layer for it in openlayers. I cannot see any docs that explain how to do this. How do I proceed ahead? thanks G -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061205/a7aa74c7/attachment.html From euzuro at gmail.com Tue Dec 5 12:14:35 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Reminder: OpenLayers Roadmap IRC Meeting - Wednesday Dec 6th 20h UTC Message-ID: <6ae3fb590612050914k3bde2d80me283ca4d46d8903d@mail.gmail.com> This is a reminder for tomorrow's OpenLayers development team meeting on IRC Wednesday December 6th at 20h00 UTC / 15h00 East Coast [1] We've made an agenda WIKI [2] on the openlayers.org site and added a few bullet points for the things that we on the PSC want to discuss. We hope that if any of you have any ideas or suggestions that you will add them. See below for original announcement and IRC information. Hope to see many of you tomorrow! Erik [1] http://www.timeanddate.com/worldclock/fixedtime.html?month=12&day=6&year=2006&hour=15&min=0&sec=0&p1=43 [2] http://trac.openlayers.org/wiki/Meetings/12/05/2006/Agenda ---------- Forwarded message ---------- Date: Wed, 29 Nov 2006 21:52:02 -0500 From: Christopher Schmidt To: users@openlayers.org, dev@openlayers.org Subject: [OpenLayers-Dev] OpenLayers Roadmap IRC Meeting Next week, the OpenLayers development team will be meeting on IRC to discuss the future of OpenLayers. This meeting will take place at 3PM Eastern time: for other parts of the world, see timeanddate.com[1]. We hope to discuss the current status of OpenLayers development, as well as lay out a roadmap of the next few releases of OpenLayers and future direction of the project. All members of the PSC will be present at the meeting. The meeting will be held on IRC. The IRC channel for OpenLayers is: Server: irc.freenode.net Channel: #openlayers A web accessible IRC client is available at: http://crschmidt.net/irc/ All are welcome to join the conversation, and offer feedback, comments, and suggestions for the future direction of OpenLayers. We look forward to (virtually) seeing you! [1] http://www.timeanddate.com/worldclock/fixedtime.html?month=12&day=6&year=2006&hour=15&min=0&sec=0&p1=43 Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev From perrygeo at gmail.com Tue Dec 5 13:57:11 2006 From: perrygeo at gmail.com (Matthew Perry) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache w/ Mapserver WMS question In-Reply-To: <20061205123026.GB25654@metacarta.com> References: <5383fa5e0612050103l2782aca0mb50fa75d8a6598f2@mail.gmail.com> <20061205123026.GB25654@metacarta.com> Message-ID: <5383fa5e0612051057w5c1dd0f0h800515359543e7cb@mail.gmail.com> On 12/5/06, Christopher Schmidt wrote: > Can you check your server log and see what URL it's actually requesting? > This error message means "The WMS server gave me no data", but without > knowing the WMS URL, it's hard to know why. (TileCache is unfortunately > not the most informative in this situation.) That's just the problem.. tilecache isn't requesting any WMS urls at all. The apache access logs show no WMS requests (but plenty of tilecache.py requests ;-) I modified Client.WMS.fetch to print out self.url() and can confirm that the URL passed into urllib2.Request() is a valid one according to my browser: http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map&layers=nedrape&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A4326&version=1.1.1&bbox=-45.0%2C0.0%2C0.0%2C45.0 But for some reason, urllib2 doesn't like it and throws a 404. Yes a 404 even though no wms requests make it to the our apache server. You can test it out with the following python snippet.. I'll let you know if it shows up in my logs! ---------------- import urllib2 url = 'http://ebm.nceas.ucsb.edu/cgi-bin/mapserv?map=/maps/threats.map&layers=nedrape&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A4326&version=1.1.1&bbox=-45.0%2C0.0%2C0.0%2C45.0' urlrequest = urllib2.Request(url) client = urllib2.build_opener() response = client.open(urlrequest) ---------------- So it would appear that the url constructed by tilecache doesn't site well with urllib2. Just FYI, I moved from using a WMSLayer to a MapServerLayer to bypass this problem but I thought everyone should know about it. -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry@nceas.ucsb.edu web: http://www.perrygeo.net From tlanglois at archetypecorp.com Tue Dec 5 16:55:28 2006 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps Message-ID: <1165355728.3592.10.camel@langlap> I know this was asked a while back by someone, but I could not find an answer. What are the advantages/disadvantages to using TileCache vs. KaMaps? I am currently using KaMaps (via OpenLayers) to tile and cache mapserver images on the backend. It works well. I wasn't sure if moving to TileCache would improve performance and/or tile quality. Has anyone tried both? Thanks, Tim From crschmidt at metacarta.com Tue Dec 5 17:27:28 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <1165355728.3592.10.camel@langlap> References: <1165355728.3592.10.camel@langlap> Message-ID: <20061205222728.GA1981@metacarta.com> On Tue, Dec 05, 2006 at 03:55:28PM -0600, Tim Langlois wrote: > I know this was asked a while back by someone, but I could not find an > answer. What are the advantages/disadvantages to using TileCache vs. > KaMaps? I am currently using KaMaps (via OpenLayers) to tile and cache > mapserver images on the backend. It works well. I wasn't sure if > moving to TileCache would improve performance and/or tile quality. Has > anyone tried both? TileCache was originally designed as a simple tile caching server. It didn't create larger images and split images up, one of the things that ka-Map does to work around limitations in MapServer. In 1.2, metaTiling support does exist in TileCache. It's not extremely well tested yet. It also doesn't hook directly into mapscript (and there aren't plans to, though it could in the future) to use added capabilities of MapServer like ka-map does. It also (due to lack of support in the Python Imaging library) doesn't support chopping up transparent tiles and maintaining transparency: this means that you can't metaTile transparent images. TileCache is young. It hasn't been tested on dozens or hundreds of installs like ka-Map has been. TileCache is written in Python. It doesn't require mapscript. It can be run on a service which is far from your original service (via WMS cascading). The code is clean. It runs under CGI or mod_python. TileCache supports multiple request formats. WorldWind, WMS-C, TMS. TileCache supports multiple data backends: mapserver (via mapfiles), WMS cascading, mapnik, and is easy to extend to anything else -- for example, one of the next additions I'm going to look into is an ArcXML layer. This means that if you have a custom data source, it's probably easy for you to wrap it in TileCache. TileCache is, for the most part, a replacement for ka-Map. However, it's an immature project, and may not fit all the needs that everyone has. The metaTiling support, in particular, is not extremely well tested, and that is the primary benefit that ka-Map offers. However, based on empirical testing, I feel that it's likely that for many cases, TileCache will be much faster than ka-Map, and I think that it's more likely to be maintained and extended in the future than ka-Map's rendering tool. Personally, I'm working to migrate all my ka-Map based instances to TileCache. If TileCache doesn't do it, then my steps will be to make TileCache do it, rather than setting up ka-Map. However, I have not yet migrated any projects which require metaTiling to TileCache, so I'm not yet convinced of its stability at that particular task. Anything which doesn't require metaTile support, I would absolutely recommend TileCache: I'm not to the same point with anything which requires metaTile support yet. Regards, -- Christopher Schmidt MetaCarta From cholmes at openplans.org Tue Dec 5 18:29:08 2006 From: cholmes at openplans.org (Chris Holmes) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <20061205222728.GA1981@metacarta.com> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> Message-ID: <457600C4.80801@openplans.org> > In 1.2, metaTiling support does exist in TileCache. It's not extremely > well tested yet. I tried it out and got results that were a bit off. See: http://sigma.openplans.org/dev/test.html vs. http://sigma.openplans.org/dev/test-meta.html The second uses metaTile for the tiger layers, the first doesn't, everything else is the same. Overlaid on the bluemarble layer, however, everything in tiger is shifted south, the outlines don't match. Not sure if there was something I configured wrong, but all I did was add metaTile=true. When testing on its own it seemed to be working, definitely less 'United States' labels on my page. So the root concept seems to be working, which is great news. I'll also note that right now it seems to be having more blank images. It's not all pre-cached. I've actually consistently had problems with areas that aren't pre-cached, they tend to not wait until the backend has returned, instead just return the broken images. It would be great if I could get it so there's never the broken images, some just take a lot longer to load. best regards, Chris It also doesn't hook directly into mapscript (and > there aren't plans to, though it could in the future) to use added > capabilities of MapServer like ka-map does. It also (due to lack of > support in the Python Imaging library) doesn't support chopping up > transparent tiles and maintaining transparency: this means that you > can't metaTile transparent images. > > TileCache is young. It hasn't been tested on dozens or hundreds of > installs like ka-Map has been. > > TileCache is written in Python. It doesn't require mapscript. It can be > run on a service which is far from your original service (via WMS > cascading). The code is clean. It runs under CGI or mod_python. > > TileCache supports multiple request formats. WorldWind, WMS-C, TMS. > > TileCache supports multiple data backends: mapserver (via mapfiles), WMS > cascading, mapnik, and is easy to extend to anything else -- for > example, one of the next additions I'm going to look into is an ArcXML > layer. This means that if you have a custom data source, it's probably > easy for you to wrap it in TileCache. > > > TileCache is, for the most part, a replacement for ka-Map. However, it's > an immature project, and may not fit all the needs that everyone has. > The metaTiling support, in particular, is not extremely well tested, and > that is the primary benefit that ka-Map offers. However, based on > empirical testing, I feel that it's likely that for many cases, > TileCache will be much faster than ka-Map, and I think that it's more > likely to be maintained and extended in the future than ka-Map's > rendering tool. > > Personally, I'm working to migrate all my ka-Map based instances to > TileCache. If TileCache doesn't do it, then my steps will be to make > TileCache do it, rather than setting up ka-Map. However, I have not yet > migrated any projects which require metaTiling to TileCache, so I'm not > yet convinced of its stability at that particular task. Anything which > doesn't require metaTile support, I would absolutely recommend > TileCache: I'm not to the same point with anything which requires > metaTile support yet. > > Regards, -- Chris Holmes The Open Planning Project http://topp.openplans.org -------------- next part -------------- A non-text attachment was scrubbed... Name: cholmes.vcf Type: text/x-vcard Size: 269 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061205/454efd5a/cholmes.vcf From noreply at geocartic.com Tue Dec 5 18:38:29 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <457600C4.80801@openplans.org> Message-ID: <011d01c718c6$78879090$15fea8c0@meridian> > http://sigma.openplans.org/dev/test-meta.html > If this is really meta tiles, I'd be interested to see how you're getting transparency. Has anybody else confirmed that PIL gets rid of transparency when doing the image crop? Tim > The second uses metaTile for the tiger layers, the first > doesn't, everything else is the same. Overlaid on the > bluemarble layer, however, everything in tiger is shifted > south, the outlines don't match. Not sure if there was > something I configured wrong, but all I did was add metaTile=true. > > When testing on its own it seemed to be working, definitely > less 'United States' labels on my page. So the root concept > seems to be working, which is great news. > > I'll also note that right now it seems to be having more > blank images. > It's not all pre-cached. I've actually consistently had > problems with areas that aren't pre-cached, they tend to not > wait until the backend has returned, instead just return the > broken images. It would be great if I could get it so > there's never the broken images, some just take a lot longer to load. > > best regards, > > Chris > > > It also doesn't hook directly into mapscript (and > > there aren't plans to, though it could in the future) to use added > > capabilities of MapServer like ka-map does. It also (due to lack of > > support in the Python Imaging library) doesn't support chopping up > > transparent tiles and maintaining transparency: this means that you > > can't metaTile transparent images. > > > > TileCache is young. It hasn't been tested on dozens or hundreds of > > installs like ka-Map has been. > > > > TileCache is written in Python. It doesn't require > mapscript. It can > > be run on a service which is far from your original service > (via WMS > > cascading). The code is clean. It runs under CGI or mod_python. > > > > TileCache supports multiple request formats. WorldWind, WMS-C, TMS. > > > > TileCache supports multiple data backends: mapserver (via > mapfiles), > > WMS cascading, mapnik, and is easy to extend to anything > else -- for > > example, one of the next additions I'm going to look into > is an ArcXML > > layer. This means that if you have a custom data source, > it's probably > > easy for you to wrap it in TileCache. > > > > > > TileCache is, for the most part, a replacement for ka-Map. However, > > it's an immature project, and may not fit all the needs > that everyone has. > > The metaTiling support, in particular, is not extremely > well tested, > > and that is the primary benefit that ka-Map offers. > However, based on > > empirical testing, I feel that it's likely that for many cases, > > TileCache will be much faster than ka-Map, and I think that > it's more > > likely to be maintained and extended in the future than ka-Map's > > rendering tool. > > > > Personally, I'm working to migrate all my ka-Map based instances to > > TileCache. If TileCache doesn't do it, then my steps will > be to make > > TileCache do it, rather than setting up ka-Map. However, I have not > > yet migrated any projects which require metaTiling to TileCache, so > > I'm not yet convinced of its stability at that particular task. > > Anything which doesn't require metaTile support, I would absolutely > > recommend > > TileCache: I'm not to the same point with anything which requires > > metaTile support yet. > > > > Regards, > > -- > Chris Holmes > The Open Planning Project > http://topp.openplans.org > From nick at hogweed.org Tue Dec 5 18:56:24 2006 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] GeoRSSClient - a generic JavaScript class for GeoRSS layers Message-ID: <200612052356.24600.nick@hogweed.org> In an effort to try and factor out common code for developing GeoRSS-based marker layers, useful for instance for OpenStreetMap mashups, I have started to develop a class called GeoRSSClient which allows you to (hopefully) easily add capabilities to view, add and delete GeoRSS-based marker layers to an OpenLayers-based application. It's available from the OpenStreetMap SVN archive (http://svn.openstreetmap.org) under utils/georss. A quick summary of how it works - it has three modes: normal - for viewing georss layers, add - for adding new markers (which will be added to the server too), and delete - for deleting markers (which will be deleted from the server too). For adding or deleting markers from the GeoRSS server, it's set up at the moment to talk to a server which will accept the following parameters: (this probably needs making more REST-compliant...) action : add or delete description: the description of the feature (goes in the RSS description tag) type: the type of the feature (goes in featuretypetag) lat lon link : the link associated with the tag (if any) title: the title of the feature (goes in the RSS title tag) guid: (delete only) the ID of the feature to delete I can think of a number of ways to improve this but if anyone has any comments please let me know. Example application at http://www.free-map.org.uk/test/index.html Nick From perrygeo at gmail.com Tue Dec 5 19:02:58 2006 From: perrygeo at gmail.com (Matthew Perry) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <011d01c718c6$78879090$15fea8c0@meridian> References: <457600C4.80801@openplans.org> <011d01c718c6$78879090$15fea8c0@meridian> Message-ID: <5383fa5e0612051602n7d27503nf652e0e725163d9e@mail.gmail.com> On 12/5/06, Tim Schaub wrote: > > > http://sigma.openplans.org/dev/test-meta.html > > > > If this is really meta tiles, I'd be interested to see how you're getting > transparency. Has anybody else confirmed that PIL gets rid of transparency > when doing the image crop? > I haven't gotten meta tiles to retain their transparency either. The method used to crop the tiles seems to discard transparency for png and gifs. -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry@nceas.ucsb.edu web: http://www.perrygeo.net From crschmidt at metacarta.com Tue Dec 5 19:53:51 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <457600C4.80801@openplans.org> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> <457600C4.80801@openplans.org> Message-ID: <20061206005351.GA4986@metacarta.com> On Tue, Dec 05, 2006 at 06:29:08PM -0500, Chris Holmes wrote: > > I'll also note that right now it seems to be having more blank images. > It's not all pre-cached. I've actually consistently had problems with > areas that aren't pre-cached, they tend to not wait until the backend > has returned, instead just return the broken images. It would be great > if I could get it so there's never the broken images, some just take a > lot longer to load. I think we've talked about this before on the mailing list? This is most likely an OpenLayers bug, if it's the same thing I've run into: have you been able to reproduce it without OpenLayers in the loop? Basically, I don't trust OpenLayers WMS to always request tiles on grids after looking at TileCache in OpenLayers for a while. Figuring out why is high on my priority list for OpenLayers development, but at the moment, OpenLayers development is not high on my priority list. It's unfortunate that this is happening, but I haven't been able to come up with a reasonable test case that can reproduce it, which makes debugging or fixing it hard. Regards, -- Christopher Schmidt MetaCarta From donal_regan10 at YAHOO.CO.UK Tue Dec 5 20:20:09 2006 From: donal_regan10 at YAHOO.CO.UK (Donal) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Reprojection question Message-ID: <7711925.post@talk.nabble.com> Hello, I have a GeoRSS overlay layer and two kaMap raster base layers . The 2 base layers are in different projections and when I switch between them I can see that there is a shift. My GeoRss points though remain in the same place. How can I either prevent the shift between the 2 raster layers or shift the GeoRss points so that they are in the appropriate projection for each base layer? I know I can use the postgis transform function on my point data but one of the layers is in meters which then leads me ask what is the best way to convert the meter data into lon/lat for the GeoRss layer? I don't understand why my mapfile set up doesn't prevent the shift between the 2 raster layers; does the mapfile snippet below not project all layers into the 4326 projection? My map file includes the following PROJECTION "init=epsg:4326" END LAYER GROUP "rasters" NAME "raster_25000" STATUS DEFAULT TYPE RASTER TILEITEM "location" TILEINDEX ProAtlasRaster_25000 PROJECTION "init=epsg:4326" END END LAYER GROUP "AirPhoto" NAME "AirPhotoName1" STATUS DEFAULT TYPE RASTER TILEITEM "location" TILEINDEX AirPhoto MAXSCALE 10001 PROJECTION "init=epsg:30166" END END Thanks, Donal -- View this message in context: http://www.nabble.com/Reprojection-question-tf2765523.html#a7711925 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Dec 5 22:18:46 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Reprojection question In-Reply-To: <7711925.post@talk.nabble.com> References: <7711925.post@talk.nabble.com> Message-ID: <20061206031846.GB6894@metacarta.com> On Tue, Dec 05, 2006 at 05:20:09PM -0800, Donal wrote: > I don't understand why my mapfile set up doesn't prevent the shift between > the 2 raster layers; does the mapfile snippet below not project all layers > into the 4326 projection? It sounds like the question here is really, "Why do my two ka-map layers shift when I switch between them"? The answer to that might be "You have chosen an incorrect EPSG code for your AirPhoto data". The mapfile you have pasted here should result in the data lining up. If it doesn't, then nothing OpenLayers can do could guess correctly where the data should be. You might check that your AirPhoto data is actually in EPSG:31066. If it does turn out to be, you might check whether your 'rasters' data is in EPSG:4326 -- if the shift is about 100M, you might be having a datum shift error. I think the answer is to figure out the source of the shift in your tiles. Once you do that, you'll probably have better luck. Regards, -- Christopher Schmidt MetaCarta From vpi at makina-corpus.com Wed Dec 6 06:04:25 2006 From: vpi at makina-corpus.com (Vincent Picavet) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Openlayers - tilecache and overlay problem Message-ID: <200612061204.25242.vpi@makina-corpus.com> Hello, Here is my setup : * mapserver serving a WMS layer * Tilecache caching this layer (same host) * Openlayers as a client I set up Openlayers to display the layer as WMS directly from mapserver, it works well. Then I set it up to display the same layer from tilecache, and it works like a charm. The thing is that I would like to have this layer as a transparent overlay in openlayers. When I enable the transparency (transparent: "true" in layer creation), the WMS appears as an overlay. Everything fine up to here. But when I do the same with WMSC from tilecache, and check the corresponding layer in openlayer's overlay list, I only have broken images. Same result if I create the WMS layer without transparency, and try this just after creation : wmsc_layer.setIsBaseLayer(false); The trouble seems to be on openlayer's side, but I can't figure out why it can't find tilecache images when the layer is in overlay mode, whereas it can find them in BaseLayer mode. Any idea ? And last but not least : thanks for those tools, great pieces of software ! Vincent From crschmidt at metacarta.com Wed Dec 6 06:44:36 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Openlayers - tilecache and overlay problem In-Reply-To: <200612061204.25242.vpi@makina-corpus.com> References: <200612061204.25242.vpi@makina-corpus.com> Message-ID: <20061206114436.GA19521@metacarta.com> On Wed, Dec 06, 2006 at 12:04:25PM +0100, Vincent Picavet wrote: > Hello, > Here is my setup : > * mapserver serving a WMS layer > * Tilecache caching this layer (same host) > * Openlayers as a client > > I set up Openlayers to display the layer as WMS directly from mapserver, it > works well. Then I set it up to display the same layer from tilecache, and it > works like a charm. > > The thing is that I would like to have this layer as a transparent overlay in > openlayers. When I enable the transparency (transparent: "true" in layer > creation), the WMS appears as an overlay. Everything fine up to here. > But when I do the same with WMSC from tilecache, and check the corresponding > layer in openlayer's overlay list, I only have broken images. Same result if > I create the WMS layer without transparency, and try this just after > creation : > wmsc_layer.setIsBaseLayer(false); > > The trouble seems to be on openlayer's side, but I can't figure out why it > can't find tilecache images when the layer is in overlay mode, whereas it can > find them in BaseLayer mode. > Any idea ? Vincent: In order to display images over the top of Google Maps, there is additional functionality in OpenLayers that modifies the bounding box of the image when it is an overlay. To turn off this functionality, you can turn reprojection off: layer = new OpenLayers.Layer.WMS("WMS-C", "URL", {'layers':'foo'}, {'isBaseLayer':false, 'reproject': false}); The fact that putting an overlay over a standard WMS causes this to break is an issue I'm aware of, but haven't yet had time to track down. I think Tim Schaub spent some time looking at it, and has given us a few patches for it -- Tim, can you comment on if these patches had actually fixed the issue for you? or were you just using reproject=false? Note also that sending 'transprent':true in the OpenLayers config won't actually change the TileCache images. To create transparent tileCache images, your 'url' on your WMS Layer should be something like: http://example.com/cgi-bin/mapserv?TRANSPARENT=true Once you've set the reproject flag to false, and modified your URL line in your TileCache config, everything should work just fine. Sorry for not better documenting this known issue. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Dec 6 07:23:49 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache 1.3 Message-ID: <20061206122349.GA19971@metacarta.com> TileCache 1.3 has been released. With this release comes improved metatiling support. * As Chris Holmes reported, images were being shifted from their previous position by the size of the metaBuffer. This has been fixed. * Tim Schaub and Matthew Perry reported problems maintaining transparency in palletted PNGs. This has been fixed with a patch from Matthew. * metaBuffer and metaSize variables were not being properly initialized from the configuration. Fixed. * Mapnik performance has been improved by caching the Mapnik Map object. This means, however, that TileCache requires Mapnik SVN r405 or later to function correctly. * Integrated an additional fix to Windows for writing tiles which already exist in the Disk Cache, courtesy of Tim Schaub. * Added documentation of all layer params to the README. Thanks to all the users who reported problems and fixes. With this release, metaTiling support is now complete. TileCache is now used with metaBuffering on to power the OpenStreetMap map at http://labs.metacarta.com/osm/ (powered by Mapnik). It is my belief that metaTiling support is now complete and well-tested, and ready for use in production. The new release is available from: http://labs.metacarta.com/wms-c/#TileCache The CHANGELOG for this version of TileCache is at: http://labs.metacarta.com/wms-c/tilecache-1.3.tar.gz/CHANGELOG Followup to this post should be sent to the mailing list on which you received it. (As Schuyler might say, maps metaTiles are cool!) Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Dec 6 08:50:32 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <457600C4.80801@openplans.org> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> <457600C4.80801@openplans.org> Message-ID: <20061206135032.GA22558@metacarta.com> On Tue, Dec 05, 2006 at 06:29:08PM -0500, Chris Holmes wrote: > > >In 1.2, metaTiling support does exist in TileCache. It's not extremely > >well tested yet. > > I tried it out and got results that were a bit off. > > See: http://sigma.openplans.org/dev/test.html > vs. > http://sigma.openplans.org/dev/test-meta.html > > The second uses metaTile for the tiger layers, the first doesn't, > everything else is the same. Overlaid on the bluemarble layer, however, > everything in tiger is shifted south, the outlines don't match. Not > sure if there was something I configured wrong, but all I did was add > metaTile=true. Yep. This is fixed in TileCache 1.3. Thanks for the bug report. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Dec 6 09:12:06 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <20061205222728.GA1981@metacarta.com> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> Message-ID: <20061206141206.GB22558@metacarta.com> On Tue, Dec 05, 2006 at 05:27:28PM -0500, Christopher Schmidt wrote: > On Tue, Dec 05, 2006 at 03:55:28PM -0600, Tim Langlois wrote: > > I know this was asked a while back by someone, but I could not find an > > answer. What are the advantages/disadvantages to using TileCache vs. > > KaMaps? I am currently using KaMaps (via OpenLayers) to tile and cache > > mapserver images on the backend. It works well. I wasn't sure if > > moving to TileCache would improve performance and/or tile quality. Has > > anyone tried both? > > TileCache was originally designed as a simple tile caching server. It > didn't create larger images and split images up, one of the things that > ka-Map does to work around limitations in MapServer. > > In 1.2, metaTiling support does exist in TileCache. It's not extremely > well tested yet. It also doesn't hook directly into mapscript (and > there aren't plans to, though it could in the future) to use added > capabilities of MapServer like ka-map does. It also (due to lack of > support in the Python Imaging library) doesn't support chopping up > transparent tiles and maintaining transparency: this means that you > can't metaTile transparent images. After spending last night hacking with Schuyler, I'm now convinced that TileCache supports transparency correctly, and that metaTiling is now of a quality where I trust it. It doesn't do mapscript hacks to prevent labelling in the metaBuffer area, but presuming a relatively small metabuffer (and PARTIALS OFF, which doesn't cooperate well with ka-Map) the difference between ka-Map and TileCache behavior is probably minimal, and the benefits of switching are, in my humble opinion, significant. I look forward to hearing any questions or concerns you have about making a switch. Regards, -- Christopher Schmidt MetaCarta From tlanglois at archetypecorp.com Wed Dec 6 09:39:02 2006 From: tlanglois at archetypecorp.com (Tim Langlois) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <20061206141206.GB22558@metacarta.com> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> <20061206141206.GB22558@metacarta.com> Message-ID: <1165415942.3468.7.camel@langlap> That's good news. I'll definitely give TileCache a look. On Wed, 2006-12-06 at 09:12 -0500, Christopher Schmidt wrote: > After spending last night hacking with Schuyler, I'm now convinced that > TileCache supports transparency correctly, and that metaTiling is now of > a quality where I trust it. It doesn't do mapscript hacks to prevent > labelling in the metaBuffer area, but presuming a relatively small > metabuffer (and PARTIALS OFF, which doesn't cooperate well with ka-Map) > the difference between ka-Map and TileCache behavior is probably > minimal, and the benefits of switching are, in my humble opinion, > significant. > > I look forward to hearing any questions or concerns you have about > making a switch. > > Regards, From cholmes at openplans.org Wed Dec 6 10:22:25 2006 From: cholmes at openplans.org (Chris Holmes) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <20061206005351.GA4986@metacarta.com> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> <457600C4.80801@openplans.org> <20061206005351.GA4986@metacarta.com> Message-ID: <4576E031.4060302@openplans.org> Christopher Schmidt wrote: > On Tue, Dec 05, 2006 at 06:29:08PM -0500, Chris Holmes wrote: >> I'll also note that right now it seems to be having more blank images. >> It's not all pre-cached. I've actually consistently had problems with >> areas that aren't pre-cached, they tend to not wait until the backend >> has returned, instead just return the broken images. It would be great >> if I could get it so there's never the broken images, some just take a >> lot longer to load. > > I think we've talked about this before on the mailing list? This is most > likely an OpenLayers bug, if it's the same thing I've run into: have you > been able to reproduce it without OpenLayers in the loop? > > Basically, I don't trust OpenLayers WMS to always request tiles on grids > after looking at TileCache in OpenLayers for a while. Figuring out why > is high on my priority list for OpenLayers development, but at the > moment, OpenLayers development is not high on my priority list. Oh yeah, I have brought this up before, but I think I brought up two issues at once. One was zoom levels over 16 not working right, which is now fixed (thanks!), and I thought the answer to that was that OpenLayers wasn't requesting tiles right. But you're saying that it's actually the cause to both? Just in slightly different ways? OpenLayers basically non-deterministically sometimes won't make the right request? Hrm, that is tough. I'll let you know if I find anything more deterministic. best regards, Chris > > It's unfortunate that this is happening, but I haven't been able to come > up with a reasonable test case that can reproduce it, which makes > debugging or fixing it hard. > > Regards, -- Chris Holmes The Open Planning Project http://topp.openplans.org -------------- next part -------------- A non-text attachment was scrubbed... Name: cholmes.vcf Type: text/x-vcard Size: 269 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061206/0b347999/cholmes.vcf From crschmidt at metacarta.com Wed Dec 6 11:14:03 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <4576E031.4060302@openplans.org> References: <1165355728.3592.10.camel@langlap> <20061205222728.GA1981@metacarta.com> <457600C4.80801@openplans.org> <20061206005351.GA4986@metacarta.com> <4576E031.4060302@openplans.org> Message-ID: <20061206161403.GA25087@metacarta.com> On Wed, Dec 06, 2006 at 10:22:25AM -0500, Chris Holmes wrote: > > > Christopher Schmidt wrote: > >On Tue, Dec 05, 2006 at 06:29:08PM -0500, Chris Holmes wrote: > >>I'll also note that right now it seems to be having more blank images. > >>It's not all pre-cached. I've actually consistently had problems with > >>areas that aren't pre-cached, they tend to not wait until the backend > >>has returned, instead just return the broken images. It would be great > >>if I could get it so there's never the broken images, some just take a > >>lot longer to load. > > > >I think we've talked about this before on the mailing list? This is most > >likely an OpenLayers bug, if it's the same thing I've run into: have you > >been able to reproduce it without OpenLayers in the loop? > > > >Basically, I don't trust OpenLayers WMS to always request tiles on grids > >after looking at TileCache in OpenLayers for a while. Figuring out why > >is high on my priority list for OpenLayers development, but at the > >moment, OpenLayers development is not high on my priority list. > > Oh yeah, I have brought this up before, but I think I brought up two > issues at once. One was zoom levels over 16 not working right, which is > now fixed (thanks!), and I thought the answer to that was that > OpenLayers wasn't requesting tiles right. Zoom level 16 is not really 'wrong' -- just a rounding error. The 'threshold' before was set such that if you requested a tile that was different by more than .001% from the spec, you didn't get it. The goal was to never return tiles to broken clients. However, due to rounding errors, *OpenLayers* was broken client: starting at 1.40625 and dividing by 2^16 gives you a pretty small number. So, we bumped the threshold to accept differences of .1%... because in a 256x256 tile, that's still only a half pixel, which isn't going to be visible. So, that could be fixed in OpenLayers with more accurate math, but I'm not willing to reimplment Javascript for the sake of rounding errors :) and we instead went with accepting a bit more tolerance. > But you're saying that it's actually the cause to both? Just in > slightly different ways? OpenLayers basically non-deterministically > sometimes won't make the right request? Hrm, that is tough. I'll let > you know if I find anything more deterministic. Yep. That's the long and short of it. For reasons I don't understand, OpenLayers occasionally gets confused as to where it's putting tiles. It seems to do this more when tiles take longer to load (which is why roadmap cartographers see it more than people using the standard vmap0 map). It seems to happen sometimes when dragging a lot, and it seems to be more common if you resize the window. Unfortunately, that's as far as I've gotten. We've done a fair number of improvements to try to prevent this from being a major issue, but unfortunately the underlying, hard to find problem still exists. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Dec 6 11:51:17 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] [Mapnik-users] Reference to use mapnik.load_map function In-Reply-To: References: <20061205212751.GA1669@metacarta.com> Message-ID: <20061206165117.GA25543@metacarta.com> On Wed, Dec 06, 2006 at 02:30:05PM -0200, Luiz Vital wrote: > Thanks Cristopher, > > Helped a lot :-) > I got a question regarding TileCache with OpenLayers, but not > especifically with the MapnikLayer. > > When instantiating OpenLayers.Map with no options everything works > fine. But when i tried to limit the extent of a map with the > 'maxExtent' option in OpenLayers.Map object, like this: > > map = new OpenLayers.Map('map', > {maxExtent: new OpenLayers.Bounds(-75,-35,-31,7)}); OpenLayers is treating the maxExtent as the corner of the WMS-C grid. This is because OpenLayers does not have explicit support for WMS-C: instead, it simply requests tiles on a grid in the way that WMS-C was originally designed. (That is, OpenLayers was a WMS-C client before WMS-C existed ;)) So, OpenLayers can't be told "The bounds of the WMS-C layer are *this*", and it treats maxExtent as those bounds at the moment. > with an OpenLayers.Layer.WMS pointing to a TileCached data. I get this > error on a specific tile request: > ------------------------ > An error occurred: couldn't calculate tile index for layer Brasil from > ([-75.0, -12.5, -52.5, 10.0]) > File "/usr/lib/cgi-bin/sos_atlas/TileCache/Service.py", line 425, in > cgiHandler > format, image = service.dispatchRequest( params, path_info, host ) > ... > File "/usr/lib/cgi-bin/sos_atlas/TileCache/Service.py", line 125, in getMap > raise Exception( > ------- > And on apache log: > TileCache/Layer.py:139: UserWarning: x (4.000000) - x0 (4.666667) = 0.666667 > > Value 0.666667 (x-x0) should be <= 0.001 (threshold) Yep. This is letting you know that your request was offset from the bounds TileCache expected, and is related to what I described above. > So i noticed the bbox param in tilecache.cfg and set to the same as in > OpenLayers: > [Brasil] > type=MapServerLayer > layers=Brasil,Dominio,Estados,Rema > mapfile=/home/nando/projetos/sos/atlas/atlas.map > bbox=-75,-35,-31,7 > metaTile=true > > The error in Apache log now is: > TileCache/Layer.py:105: UserWarning: can't find resolution index for > 0.087891 Yep: You got closer, but missed the last step: > It seems that the requests of OpenLayers are not matching with what > TileCache expects. > > So the question is: How can I configure OpenLayers and TileCache to > work together specifying a maxExtent param in OpenLayers.Map options? Good question! And one no one has asked yet :) OpenLayers assumes a grid based on the map maxExtent. TileCache does as well, but TileCache *also* resets the resolutions array (which determines the 'scales' or 'zooms' your map is at) based on the full size of your map / 512. Currently, we don't have a way to override this by setting a maxResolution (like OpenLayers does) -- instead, you need to create a resolutions array for yourself. For a resolutions array which matches the default TileCache (and therefore OpenLayers) values, I would personally do this in Python: >>> [.70625. / 2 ** i for i in range(16)] [0.70625000000000004, 0.35312500000000002, 0.17656250000000001, 0.088281250000000006, 0.044140625000000003, 0.022070312500000001, 0.011035156250000001, 0.0055175781250000003, 0.0027587890625000002, 0.0013793945312500001, 0.00068969726562500004, 0.00034484863281250002, 0.00017242431640625001, 8.6212158203125005e-05, 4.3106079101562503e-05, 2.1553039550781251e-05] I would then copy the resolutions array, and set resolutions on my layer: [Brasil] type=MapServerLayer layers=Brasil,Dominio,Estados,Rema mapfile=/home/nando/projetos/sos/atlas/atlas.map bbox=-75,-35,-31,7 metaTile=true resolutions=0.70625,0.353125,0.1765625,0.08828125,0.044140625,0.0220703125,0.01103515625,0.005517578125,0.0027587890625,0.00137939453125,0.000689697265625,0.000344848632813,0.000172424316406,8.62121582031e-05,4.31060791016e-05,2.15530395508e-05 Once you do this, your TileCache layer should work as you expect. In the next version of TileCache (which is not real soon, but will come out eventually ;)), we'll add a 'maxRes', so you can just say 'maxRes=.70625', as you do in OpenLayers. Once you do that, you should be able to use TileCache as the data source for your OpenLayers map. Since I see that you're using metaTiling, I recommend upgrading to TileCache 1.3, which fixes a couple bugs in the metaTiling support. If you have any further questions, please feel free to bring them to the OpenLayers list. Regards, -- Christopher Schmidt MetaCarta From noreply at geocartic.com Wed Dec 6 13:18:12 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <20061206141206.GB22558@metacarta.com> Message-ID: <004a01c71962$e460d870$15fea8c0@meridian> > After spending last night hacking with Schuyler, I'm now > convinced that TileCache supports transparency correctly, and > that metaTiling is now of a quality where I trust it. It > doesn't do mapscript hacks to prevent labelling in the > metaBuffer area, but presuming a relatively small metabuffer > (and PARTIALS OFF, which doesn't cooperate well with ka-Map) > the difference between ka-Map and TileCache behavior is > probably minimal, and the benefits of switching are, in my > humble opinion, significant. Note that you don't need to rely on mapscript to prevent labels in a buffer around the edge of your map. If you're using MapServer to generate your tiles, there's a mapfile metadata hack for that (since 4.6): WEB ... METADATA "labelcache_map_edge_buffer" "10" #pixels END END also, don't forget PARTIALS FALSE Keep an eye on mapserver bug #1353 if you're hesitant to use "experimental" features (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1353). Tim > > I look forward to hearing any questions or concerns you have > about making a switch. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Wed Dec 6 13:32:41 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] TileCache and KaMaps In-Reply-To: <004a01c71962$e460d870$15fea8c0@meridian> References: <20061206141206.GB22558@metacarta.com> <004a01c71962$e460d870$15fea8c0@meridian> Message-ID: <20061206183241.GA27710@metacarta.com> On Wed, Dec 06, 2006 at 11:18:12AM -0700, Tim Schaub wrote: > > After spending last night hacking with Schuyler, I'm now > > convinced that TileCache supports transparency correctly, and > > that metaTiling is now of a quality where I trust it. It > > doesn't do mapscript hacks to prevent labelling in the > > metaBuffer area, but presuming a relatively small metabuffer > > (and PARTIALS OFF, which doesn't cooperate well with ka-Map) > > the difference between ka-Map and TileCache behavior is > > probably minimal, and the benefits of switching are, in my > > humble opinion, significant. > > Note that you don't need to rely on mapscript to prevent labels in a buffer > around the edge of your map. If you're using MapServer to generate your > tiles, there's a mapfile metadata hack for that (since 4.6): > > WEB > ... > METADATA > "labelcache_map_edge_buffer" "10" #pixels > END > END > > also, don't forget > > PARTIALS FALSE > > Keep an eye on mapserver bug #1353 if you're hesitant to use "experimental" > features (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1353). Ooh! Super-good to know. That's the same one ka-map uses internally -- I just assumed it was only in Mapscript for some reason. That's great! We don't have to do anything special for MapServer metatiling then. Regards, -- Christopher Schmidt MetaCarta From noreply at geocartic.com Wed Dec 6 13:31:48 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Openlayers - tilecache and overlay problem In-Reply-To: <20061206114436.GA19521@metacarta.com> Message-ID: <005301c71964$cb8da470$15fea8c0@meridian> > > But when I do the same with WMSC from tilecache, and check the > > corresponding layer in openlayer's overlay list, I only have broken > > images. Same result if I create the WMS layer without transparency, > > and try this just after creation : > > wmsc_layer.setIsBaseLayer(false); > > I think Tim Schaub spent some time looking at it, and has > given us a few patches for it -- Tim, can you comment on if > these patches had actually fixed the issue for you? or were > you just using reproject=false? I think there are a few issues collaborating here. In the simple case where you have an odd sized viewport, the patch I posted for ticket #429 seems to take care of it (http://trac.openlayers.org/ticket/429). However, the problem still shows up with map resizing. I haven't taken more time to look into it. Until it has been solved, I'm constructing all WMS layers that don't need to be reprojected with reproject: false var options = {isBaseLayer: false, reproject: false}; var overlay = new OpenLayers.Layer.WMS(title, url, params, options); Tim From jdb at mail.nerc-essc.ac.uk Thu Dec 7 08:34:51 2006 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Fast WMS base layers Message-ID: <2bb6ee950612070534v20cc0de3qa3232f9ba841c2ad@mail.gmail.com> Hi all, We have created a prototype OpenLayers-based site for marine data visualization (http://lovejoy.nerc-essc.ac.uk:8080/ncWMS/godiva2.html). Currently the site suffers from slow loading of the base layers (NASA Global Mosaic and the OpenLayers WMS). Does anyone know of faster WMS servers that might serve decent global base layers, or perhaps someone has set up a TileCache interface to these servers? Thanks in advance, Jon -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From crschmidt at metacarta.com Thu Dec 7 08:40:40 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Fast WMS base layers In-Reply-To: <2bb6ee950612070534v20cc0de3qa3232f9ba841c2ad@mail.gmail.com> References: <2bb6ee950612070534v20cc0de3qa3232f9ba841c2ad@mail.gmail.com> Message-ID: <20061207134040.GB4235@metacarta.com> On Thu, Dec 07, 2006 at 01:34:51PM +0000, Jon Blower wrote: > Hi all, > > We have created a prototype OpenLayers-based site for marine data > visualization (http://lovejoy.nerc-essc.ac.uk:8080/ncWMS/godiva2.html). > Currently the site suffers from slow loading of the base layers (NASA > Global Mosaic and the OpenLayers WMS). Does anyone know of faster WMS > servers that might serve decent global base layers, or perhaps someone > has set up a TileCache interface to these servers? Hm, I'd be surprised by the OpenLayers basic WMS being slow -- tiles are typically generated in < .2s, which is typically fast enough to not incur a penalty. In any case, the TileCache instance behind http://labs.metacarta.com/wms-c/demo.html has both a Blue Marble layer and a vmap0 layer, which you can feel free to use. However, we don't have access to landsat data at the moment (NASA blocked our server due to too many hits: the blue marble stuff is served graciously by Telascience), so we can't TileCache the landsat data. You should be able to set up your own local TileCache instance with this data in it on your server: setting it up should be as simple as copying the OpenLayers URL into a tilecache.cfg and changing the location of the URL. If you need more help with that, please feel free to respond, and we can work it out in more details. Regards, -- Christopher Schmidt MetaCarta From jdb at mail.nerc-essc.ac.uk Thu Dec 7 11:08:50 2006 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Fast WMS base layers In-Reply-To: <20061207134040.GB4235@metacarta.com> References: <2bb6ee950612070534v20cc0de3qa3232f9ba841c2ad@mail.gmail.com> <20061207134040.GB4235@metacarta.com> Message-ID: <2bb6ee950612070808q44dedf02xe4970c582756f72b@mail.gmail.com> Hi Christopher, Thanks very much, that's brilliant. I think the problems with the OpenLayers basic WMS were intermittent or possibly local to me - either way they have gone away now: http://lovejoy.nerc-essc.ac.uk:8080/ncWMS/godiva2.html Cheers, Jon On 07/12/06, Christopher Schmidt wrote: > On Thu, Dec 07, 2006 at 01:34:51PM +0000, Jon Blower wrote: > > Hi all, > > > > We have created a prototype OpenLayers-based site for marine data > > visualization (http://lovejoy.nerc-essc.ac.uk:8080/ncWMS/godiva2.html). > > Currently the site suffers from slow loading of the base layers (NASA > > Global Mosaic and the OpenLayers WMS). Does anyone know of faster WMS > > servers that might serve decent global base layers, or perhaps someone > > has set up a TileCache interface to these servers? > > Hm, I'd be surprised by the OpenLayers basic WMS being slow -- tiles are > typically generated in < .2s, which is typically fast enough to not > incur a penalty. > > In any case, the TileCache instance behind > http://labs.metacarta.com/wms-c/demo.html has both a Blue Marble layer > and a vmap0 layer, which you can feel free to use. > > However, we don't have access to landsat data at the moment (NASA > blocked our server due to too many hits: the blue marble stuff is served > graciously by Telascience), so we can't TileCache the landsat data. > > You should be able to set up your own local TileCache instance with this > data in it on your server: setting it up should be as simple as copying > the OpenLayers URL into a tilecache.cfg and changing the location of the > URL. > > If you need more help with that, please feel free to respond, and we can > work it out in more details. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From garyt at spatialmapping.com Thu Dec 7 12:46:04 2006 From: garyt at spatialmapping.com (Gary Townsend) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Profmance (continuation of an topic from august) Message-ID: <008601c71a27$aabc1c90$8a00a8c0@spatialmapping.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2661 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061207/b8aa592c/attachment.gif From crschmidt at metacarta.com Thu Dec 7 12:51:23 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Profmance (continuation of an topic from august) In-Reply-To: <008601c71a27$aabc1c90$8a00a8c0@spatialmapping.com> References: <008601c71a27$aabc1c90$8a00a8c0@spatialmapping.com> Message-ID: <20061207175123.GA4873@metacarta.com> On Thu, Dec 07, 2006 at 09:46:04AM -0800, Gary Townsend wrote: > Was reading through the topic posted on performance in august and we just > moved from openlayers 1.0 to 2.2 and have noticed a significant increase in > wait time. Panning isn't as big a concern for us since the portion of our > site that uses Openlayers is just a search engine to define an Area Of > Interest and then find imagery based on that AOI. We had been using untiled > imagery because of the benefits we saw interms of it presenting an > interlaced image to the user faster with which the user could actually > define an AOI before the image was done loading. > > > > So when comparing our two versions of the same image search engine, the one > with OL1.0 and OL2.2 I noticed that the 2.2 is loading an image of 1500x900 > in size behind the viewport. Is there anyway to reduce that? I tried the > following but to no avail. OpenLayers 2.2 uses a 'ratio' option on the untiled layer: you want to set that to 1.0 to get the same untiled behavior you had with 1.0. This is ideal if your user is most likely not going to drag the map at all, but OpenLayers is optimized for the 'dragging the map' case, and a ratio of '2' was seen as the best compromise for most purposes. So, simply replace your 'buffer':1 with 'ratio': 1. Regards, -- Christopher Schmidt MetaCarta From kbehncke at igf.uni-osnabrueck.de Thu Dec 7 14:15:30 2006 From: kbehncke at igf.uni-osnabrueck.de (Kai Behncke) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Panning in OpenLayers Message-ID: <20061207191225.M59569@igf.uni-osnabrueck.de> Hello list, I`m totally new to OpenLayers and I would like to know, where I can find the code for the real panning (I don`t mean the panning with the buttons, I mean the one where it`s possible to klick in the map, mouse is pressed and move the map). Can anybody give me a hint please? Thank you in advance, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke@igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From euzuro at gmail.com Thu Dec 7 14:31:46 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Panning in OpenLayers In-Reply-To: <20061207191225.M59569@igf.uni-osnabrueck.de> References: <20061207191225.M59569@igf.uni-osnabrueck.de> Message-ID: <6ae3fb590612071131p6f3bdad1r9ef0a346c992f1c3@mail.gmail.com> http://trac.openlayers.org/wiki/Control/MouseDefaults That should get you started :-) Erik On 12/7/06, Kai Behncke wrote: > Hello list, > I`m totally new to OpenLayers and I would like to know, where I can find the code > for the real panning (I don`t mean the panning with the buttons, I mean the > one where it`s possible to klick in the map, mouse is pressed and move the map). > Can anybody give me a hint please? > Thank you in advance, Kai > > -- > Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke > > Institut f?r Geoinformatik und Fernerkundung (IGF) > Universit?t Osnabr?ck > Kolpingstr. 7 > 49074 Osnabr?ck > > Raum: 01/308 > Tel.: +49 541 969-4450 > E-Mail: mailto:kbehncke@igf.uni-osnabrueck.de > Web: http://www.igf.uni-osnabrueck.de > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From john.cole at uai.com Thu Dec 7 18:04:13 2006 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... Message-ID: <76758090F8686C47A44B6FF52514A1D3079099F5@hermes.uai.int> I've created a sample page using OpenLayers, but have run into a strange issue. When you resize the image greater than about 1000 pixels wide, the mapserver layer doesn't draw anymore. Another layer (WMS) continues to draw ok (in this cae the Nexrad layer from one of the demos). Here is what I have: var map, layer; function init(){ map = new OpenLayers.Map( $('map') ); layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", "http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m ap&", {layers: 'bound,hydro,roads,landmark'} ); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(-86.5, 34.75), 11); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } Thanks, John Cole This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From jfreeby at globexplorer.com Thu Dec 7 18:38:25 2006 From: jfreeby at globexplorer.com (Jim Freeby) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype Message-ID: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> As of version 2.2, OpenLayers cannot be used with Rico and Prototype on the same page. The object "Rico" is declared in both rico.js and OpenLayer's Rico\Corner.js. Additionally, there are issues related to the function "unloadCache" found in both OpenLayers\Events.js and prototype.js, where the code attempts to remove event listeners twice, resulting in null pointer exceptions. Are there plans to update OpenLayers so that it can be used with Rico/Prototype? For the short term, I made customizations to OpenLayers\Events.js and Rico\Corner.js to avoid the above conflicts. If I am sending to the wrong list, please let me know where I should post. Thanks for any help. Jim From crschmidt at metacarta.com Thu Dec 7 18:49:36 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype In-Reply-To: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> References: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> Message-ID: <20061207234936.GA13668@metacarta.com> On Thu, Dec 07, 2006 at 03:38:25PM -0800, Jim Freeby wrote: Jim -- > As of version 2.2, OpenLayers cannot be used with Rico and Prototype on the same page. The object "Rico" is declared in both rico.js and OpenLayer's Rico\Corner.js. An unintentional mistake. I've filed a ticket (#441) with a patch for this. > Additionally, there are issues related to the function "unloadCache" found in both OpenLayers\Events.js and prototype.js, where the code attempts to remove event listeners twice, resulting in null pointer exceptions. I actually just ran into this for the first time today, and added a patch to prevent it from happening (#440), which was committed earlier today, so this particular problem should be gone from Subversion soon. > Are there plans to update OpenLayers so that it can be used with Rico/Prototype? > > For the short term, I made customizations to OpenLayers\Events.js and Rico\Corner.js to avoid the above conflicts. If you'd like to, you can add information about those changes to tickets 441 and 440 respectively, so that we can ensure we look at them and make sure that your solution matches the one that we've gone with. Thanks for the feedback, and sorry for the trouble: We simply don't have the time to test everything, and this slipped through the cracks when it shouldn't have. Regards, -- Christopher Schmidt MetaCarta From gstamp at gmail.com Thu Dec 7 18:57:57 2006 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype In-Reply-To: <20061207234936.GA13668@metacarta.com> References: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> <20061207234936.GA13668@metacarta.com> Message-ID: > > If you'd like to, you can add information about those changes to tickets > 441 and 440 respectively, so that we can ensure we look at them and make > sure that your solution matches the one that we've gone with. > > I was looking this up but I don't see 441. 440 is there however. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061208/9cffa7d9/attachment.html From crschmidt at metacarta.com Thu Dec 7 19:00:18 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype In-Reply-To: References: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> <20061207234936.GA13668@metacarta.com> Message-ID: <20061208000018.GA13827@metacarta.com> On Fri, Dec 08, 2006 at 10:57:57AM +1100, Glen Stampoultzis wrote: > > > >If you'd like to, you can add information about those changes to tickets > >441 and 440 respectively, so that we can ensure we look at them and make > >sure that your solution matches the one that we've gone with. > > > > > I was looking this up but I don't see 441. 440 is there however. http://trac.openlayers.org/ticket/441 is the ticket I was referring to. Does that show for you? Regards, -- Christopher Schmidt MetaCarta From ruckc at yahoo.com Thu Dec 7 19:26:23 2006 From: ruckc at yahoo.com (Curtis W. Ruck) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... Message-ID: <20061208002624.70927.qmail@web32209.mail.mud.yahoo.com> The reason for this is that your WMS server or wherever you are getting the data will not draw layers larger than 2048px wide. OpenLayers.Layer.WMS.Untiled pulls down an image 4x the size of the viewport. (i.e. viewport is 1000x800 than the requested image is 2000x1600.) I know mapserver's default max width is 2048. If you can recompile your mapserver binaries then you can change that default max width. Another solution is to use OpenLayers.Layer.WMS (not untiled) so it pulls smaller images from the WMS server. Curtis ----- Original Message ---- From: John Cole To: "users@openlayers.org" Sent: Thursday, December 7, 2006 5:04:13 PM Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... I've created a sample page using OpenLayers, but have run into a strange issue. When you resize the image greater than about 1000 pixels wide, the mapserver layer doesn't draw anymore. Another layer (WMS) continues to draw ok (in this cae the Nexrad layer from one of the demos). Here is what I have: var map, layer; function init(){ map = new OpenLayers.Map( $('map') ); layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", "http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m ap&", {layers: 'bound,hydro,roads,landmark'} ); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(-86.5, 34.75), 11); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } Thanks, John Cole This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061207/63ca31f1/attachment.html From crschmidt at metacarta.com Thu Dec 7 20:18:27 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... In-Reply-To: <20061208002624.70927.qmail@web32209.mail.mud.yahoo.com> References: <20061208002624.70927.qmail@web32209.mail.mud.yahoo.com> Message-ID: <20061208011827.GA16094@metacarta.com> On Thu, Dec 07, 2006 at 04:26:23PM -0800, Curtis W. Ruck wrote: > The reason for this is that your WMS server or wherever you are getting the data will not draw layers larger than 2048px wide. OpenLayers.Layer.WMS.Untiled pulls down an image 4x the size of the viewport. (i.e. viewport is 1000x800 than the requested image is 2000x1600.) I know mapserver's default max width is 2048. If you can recompile your mapserver binaries then you can change that default max width. Another solution is to use OpenLayers.Layer.WMS (not untiled) so it pulls smaller images from the WMS server. Two other options: * add 'ratio':1 to the options for the WMS Untiled layer. This will change the multiple of the div size that the untiled layer uses. * set ratio based on the mapsize: new OpenLayers.Layer.WMS.Untiled("Untiled", "http://example.com/url", {'layers':'foo'}, {'ratio':Math.min(2048/Math.max(map.getSize()[0],Map.getSize()[1]),2)}); This would limit the ratio such that it has a maximum of 2048 px in the largest direction. (I think. Untested.) Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Fri Dec 8 02:48:35 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... Message-ID: John, Mapserver by default can only handle images of 2048 by 2048 pixels. Probably OpenLayers is requesting something larger. I ran into this as well, you could solve it by either a recompile of your Mapserver, or you can change your OpenLayers code to use a ratio of 1. map.addLayers([layer]); var layer = new OpenLayers.Layer.WMS.Untiled( "WorldPOI", "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldPOI', 'format':'image/png', 'transparent':'true'}, {'ratio':1, isBaseLayer: false} ); Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: John Cole Naar: 'users@openlayers.org' Onderwerp: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)... Datum: 07/12/06 21:06 > I've created a sample page using OpenLayers, but have run into a strange > issue. When you resize the image greater than about 1000 pixels wide, the > mapserver layer doesn't draw anymore. Another layer (WMS) continues to draw > ok (in this cae the Nexrad layer from one of the demos). > > Here is what I have: > > var map, layer; > > function init(){ > map = new OpenLayers.Map( $('map') ); > layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", > > "http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m > ap&", {layers: 'bound,hydro,roads,landmark'} ); > map.addLayer(layer); > > map.setCenter(new OpenLayers.LonLat(-86.5, 34.75), > 11); > > map.addControl( new OpenLayers.Control.LayerSwitcher() ); > } > > Thanks, > > John Cole > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From jdb at mail.nerc-essc.ac.uk Fri Dec 8 02:49:13 2006 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype In-Reply-To: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> References: <71E37EF6B7DCC1499CEA0316A25683280285AEBF@loki.wc.globexplorer.net> Message-ID: <2bb6ee950612072349i2895487fnaa97122eb0e73b95@mail.gmail.com> Hi Jim (and list), I had this problem (the Rico issue) with version 2.1 as well - my fix is documented at http://www.resc.rdg.ac.uk/trac/ncWMS/wiki/OpenLayersChanges. I don't know whether this also works in 2.2. I don't know about the unloadCache issue. Hope this helps, Jon On 07/12/06, Jim Freeby wrote: > As of version 2.2, OpenLayers cannot be used with Rico and Prototype on the same page. The object "Rico" is declared in both rico.js and OpenLayer's Rico\Corner.js. > > Additionally, there are issues related to the function "unloadCache" found in both OpenLayers\Events.js and prototype.js, where the code attempts to remove event listeners twice, resulting in null pointer exceptions. > > Are there plans to update OpenLayers so that it can be used with Rico/Prototype? > > For the short term, I made customizations to OpenLayers\Events.js and Rico\Corner.js to avoid the above conflicts. > > If I am sending to the wrong list, please let me know where I should post. > > Thanks for any help. > > > Jim > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From karpi.lists at email.cz Fri Dec 8 08:09:41 2006 From: karpi.lists at email.cz (karpi) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Layer.Google scaling Message-ID: <20061208130941.GA24829@alnagon.karneval.cz> Hello.. Im working on this map: http://gismaster.liberix.cz/google/openlayers_czrep Please, what i do wrong, then i can not zoom deeper into g-layer.. when i zoom max in openlayers, my "observation point" is still too high against original gmap interface.. for comparsion: max zoom on openlayers: http://gismaster.liberix.cz/google/openlayers_czrep.html?lat=50.08693&lon=14.41569&zoom=15&layers=B00T ..and even not full zoom on gmap: http://maps.google.com/?ie=UTF8&om=1&z=17&ll=50.08615,14.41462&spn=0.004674,0.008487&t=h How do i can zoom deeper, plz? I was playing with maxZoomLevel, but without any advance thanks -- karpi from http://gismaster.liberix.cz From karpi.lists at email.cz Fri Dec 8 08:14:24 2006 From: karpi.lists at email.cz (karpi) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] MapServer Layer - initial help Message-ID: <20061208131424.GB24829@alnagon.karneval.cz> Hello,.. my second question today: I think wms overlay layer is not probably the best solution (label behavior and so..) I've read something about mapserver layer there: http://trac.openlayers.org/wiki/Layer/MapServer but no more info or doc how to use it at this time. Do you have someone some working example, please ? Or link on some docs ? -- karpi from http://gismaster.liberix.cz From bartvde at osgis.nl Fri Dec 8 08:23:47 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] MapServer Layer - initial help Message-ID: See: http://www.openlayers.org/dev/examples/mapserver.html Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: karpi Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] MapServer Layer - initial help Datum: 08/12/06 11:20 > Hello,.. > my second question today: > > I think wms overlay layer is not probably the best solution (label > behavior and so..) I've read something about mapserver layer there: > http://trac.openlayers.org/wiki/Layer/MapServer > but no more info or doc how to use it at this time. Do you have someone > some working example, please ? Or link on some docs ? > > -- > karpi from > http://gismaster.liberix.cz > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From john.cole at uai.com Fri Dec 8 09:47:15 2006 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] issue with mousewheel zoom... Message-ID: <76758090F8686C47A44B6FF52514A1D3079099F8@hermes.uai.int> I saw that mouse wheel zooming recently changed to zoom to the point under the mouse. Unfortunately, there is a problem with the current implementation. It would be nice to have an option to use the simpler zoom in/out on center also. When you allow multiple zooms on the mouse wheel, you will end up somewhere other than where your mouse is. The reason for this is the new center point is calculated with the new zoom level boundaries, instead of the original. The mouse zoom should not update the extent until the map has reloaded. For an example, using the SVN openlayers, bring up a map with the mousedefault control, put the mouse over a feature near the edge of the map and give the mouse wheel a good turn up (zoom in), the new zoom point will have drifted way off, and your feature will not appear on the map. If you scroll only on click, it works perfectly. Also, is there a way to expand or shrink a layer, so that when you zoom, the map can be expanded/shrunk in real time until the layers can be refreshed? Doing this really helps visualize where your zooming to and it is really important when mouse wheel zooming to know what level your zooming to. Finally, when mouse wheel zooming, if you zoom in or out and back to your original level, it should be treated as a pan or simply canceled, so the layers don't (necessarily) have to be refreshed. Thanks, John Cole This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From euzuro at gmail.com Fri Dec 8 10:54:11 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] issue with mousewheel zoom... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079099F8@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D3079099F8@hermes.uai.int> Message-ID: <6ae3fb590612080754q7c7785a8y8dd3d88a5875e478@mail.gmail.com> I think that John brings up some very good points (and illustrates them well also) in this email. I have reopened 341[1] with his comments included, and I have made a new 'animated zooming' [2] ticket that I think should be considered with 'animated panning' [3] [1] http://trac.openlayers.org/ticket/341 [2] http://trac.openlayers.org/ticket/442 [2] http://trac.openlayers.org/ticket/110 On 12/8/06, John Cole wrote: > I saw that mouse wheel zooming recently changed to zoom to the point under > the mouse. Unfortunately, there is a problem with the current > implementation. It would be nice to have an option to use the simpler zoom > in/out on center also. > > When you allow multiple zooms on the mouse wheel, you will end up somewhere > other than where your mouse is. The reason for this is the new center point > is calculated with the new zoom level boundaries, instead of the original. > The mouse zoom should not update the extent until the map has reloaded. > > For an example, using the SVN openlayers, bring up a map with the > mousedefault control, put the mouse over a feature near the edge of the map > and give the mouse wheel a good turn up (zoom in), the new zoom point will > have drifted way off, and your feature will not appear on the map. If you > scroll only on click, it works perfectly. > > Also, is there a way to expand or shrink a layer, so that when you zoom, the > map can be expanded/shrunk in real time until the layers can be refreshed? > Doing this really helps visualize where your zooming to and it is really > important when mouse wheel zooming to know what level your zooming to. > > Finally, when mouse wheel zooming, if you zoom in or out and back to your > original level, it should be treated as a pan or simply canceled, so the > layers don't (necessarily) have to be refreshed. > > Thanks, > > John Cole > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Fri Dec 8 11:20:22 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] issue with mousewheel zoom... In-Reply-To: <6ae3fb590612080754q7c7785a8y8dd3d88a5875e478@mail.gmail.com> References: <76758090F8686C47A44B6FF52514A1D3079099F8@hermes.uai.int> <6ae3fb590612080754q7c7785a8y8dd3d88a5875e478@mail.gmail.com> Message-ID: <20061208162022.GA28790@metacarta.com> On Fri, Dec 08, 2006 at 04:54:11PM +0100, Erik Uzureau wrote: > I have reopened 341[1] with his comments included, and I have made a > new 'animated zooming' [2] ticket that I think should be considered > with 'animated panning' [3] > > [1] http://trac.openlayers.org/ticket/341 > [2] http://trac.openlayers.org/ticket/442 For the record, a less complete version of #442 is already open as #433. I'll close #433 as a duplicate of #442. Regards, -- Christopher Schmidt MetaCarta From jfreeby at globexplorer.com Fri Dec 8 11:46:51 2006 From: jfreeby at globexplorer.com (Jim Freeby) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] OpenLayers with Rico and Prototype Message-ID: <71E37EF6B7DCC1499CEA0316A25683280285AEC1@loki.wc.globexplorer.net> Hi Jon, I did something similar, but instead of removing the var Rico from Corner.js, I inserted an if statement in Corner.js to see if var Rico exists. if( !Rico ){ var Rico = new Object(); } Although it works for my situation, this solution is not really robust, because it only works if rico.js is loaded before the OpenLayers code. If OpenLayers is loaded first and rico.js is loaded second, then we still have naming conflicts. Additionally, if we load rico.js first, Rico.Corner and Rico.Color will always be the OpenLayers versions of the objects, because we have loaded them second. I think a reasonable solution is to rename the OpenLayers var Rico to something like RicoOL. This implies updating any OpenLayers source that uses the Rico object. This also removes naming conflicts with Rico.Color and Rico.Corner. There are only a handful of places where Rico.Corner or Rico.Color are used in the OpenLayers source, so this type of change should not be too complex. I shared my thoughts to Christopher and he is considering my suggestion. Thanks for sharing your information :) Jim -----Original Message----- From: jon.blower@gmail.com [mailto:jon.blower@gmail.com]On Behalf Of Jon Blower Sent: Thursday, December 07, 2006 11:49 PM To: Jim Freeby Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] OpenLayers with Rico and Prototype Hi Jim (and list), I had this problem (the Rico issue) with version 2.1 as well - my fix is documented at http://www.resc.rdg.ac.uk/trac/ncWMS/wiki/OpenLayersChanges. I don't know whether this also works in 2.2. I don't know about the unloadCache issue. Hope this helps, Jon On 07/12/06, Jim Freeby wrote: > As of version 2.2, OpenLayers cannot be used with Rico and Prototype on the same page. The object "Rico" is declared in both rico.js and OpenLayer's Rico\Corner.js. > > Additionally, there are issues related to the function "unloadCache" found in both OpenLayers\Events.js and prototype.js, where the code attempts to remove event listeners twice, resulting in null pointer exceptions. > > Are there plans to update OpenLayers so that it can be used with Rico/Prototype? > > For the short term, I made customizations to OpenLayers\Events.js and Rico\Corner.js to avoid the above conflicts. > > If I am sending to the wrong list, please let me know where I should post. > > Thanks for any help. > > > Jim > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- ------------------------------------------------------- Click link below if it is SPAM jfreeby@globexplorer.com "https://mailscanner.globexplorer.com/dspam/dspam.cgi?signatureID=4579189480221276534746&user=jfreeby@globexplorer.com&retrain=spam&template=history&history_page=1" !DSPAM:4579189480221276534746! ------------------------------------------------------- From karpi.lists at email.cz Fri Dec 8 11:48:05 2006 From: karpi.lists at email.cz (karpi) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] MapServer Layer - initial help In-Reply-To: References: Message-ID: <20061208164804.GA25304@alnagon.karneval.cz> 08/12/06 14:23, bartvde@osgis.nl napsal(a): > See: > > http://www.openlayers.org/dev/examples/mapserver.html > > Best regards, > Bart Hi Bart, Thanks for your response. I was probably run into some developing feature. I was trying your link, but only pink screen i've found on it (opera9). In source was defined Mapserver layer, but accessed throughout wms, not directly mapserver. Which was my expection. Im wrong? Anyway, I was try define it on my page and funny ressult obtained :) http://gismaster.liberix.cz/google/openlayers_czrep.html?lat=49.26648&lon=15.65552&zoom=8&layers=000FB > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: karpi > Naar: users@openlayers.org > Onderwerp: [OpenLayers-Users] MapServer Layer - initial help > Datum: 08/12/06 11:20 > > > Hello,.. > > my second question today: > > > > I think wms overlay layer is not probably the best solution (label > > behavior and so..) I've read something about mapserver layer there: > > http://trac.openlayers.org/wiki/Layer/MapServer > > but no more info or doc how to use it at this time. Do you have someone > > some working example, please ? Or link on some docs ? > > > > -- > > karpi from > > http://gismaster.liberix.cz > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > -- karpi from http://gismaster.liberix.cz From bartvde at osgis.nl Fri Dec 8 12:57:30 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] MapServer Layer - initial help In-Reply-To: <20061208164804.GA25304@alnagon.karneval.cz> References: <20061208164804.GA25304@alnagon.karneval.cz> Message-ID: <4579A78A.1020404@osgis.nl> No this example shows Mapserver CGI mode. It's a bit confusing that the title in the text says WMS ... The example does not seem to work for me anymore as well in Firefox. Best regards, Bart karpi schreef: > 08/12/06 14:23, bartvde@osgis.nl napsal(a): > >> See: >> >> http://www.openlayers.org/dev/examples/mapserver.html >> >> Best regards, >> Bart >> > > Hi Bart, > Thanks for your response. I was probably run into some developing > feature. I was trying your link, but only pink screen i've found on it > (opera9). In source was defined Mapserver layer, but accessed throughout > wms, not directly mapserver. Which was my expection. Im wrong? > > Anyway, I was try define it on my page and funny ressult obtained :) > http://gismaster.liberix.cz/google/openlayers_czrep.html?lat=49.26648&lon=15.65552&zoom=8&layers=000FB > > > > >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: karpi >> Naar: users@openlayers.org >> Onderwerp: [OpenLayers-Users] MapServer Layer - initial help >> Datum: 08/12/06 11:20 >> >> >>> Hello,.. >>> my second question today: >>> >>> I think wms overlay layer is not probably the best solution (label >>> behavior and so..) I've read something about mapserver layer there: >>> http://trac.openlayers.org/wiki/Layer/MapServer >>> but no more info or doc how to use it at this time. Do you have someone >>> some working example, please ? Or link on some docs ? >>> >>> -- >>> karpi from >>> http://gismaster.liberix.cz >>> >>> >>> _______________________________________________ >>> 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 john.cole at uai.com Fri Dec 8 15:41:53 2006 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] panning and WMS.Untiled... Message-ID: <76758090F8686C47A44B6FF52514A1D3079099FB@hermes.uai.int> Just noticed this, if it's already a ticket, sorry :-) When panning a WMS.Untiled layer, the layer image should not be cleared until the new layer is available (essentially double buffer it). This will eliminate the white flash while refreshing the layer. Thanks, John Cole This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From garyt at spatialmapping.com Fri Dec 8 16:27:50 2006 From: garyt at spatialmapping.com (Gary Townsend) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Progressive Images Message-ID: <004301c71b0f$b6e26c20$8a00a8c0@spatialmapping.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2661 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061208/62b36eb0/attachment.gif From crschmidt at metacarta.com Fri Dec 8 16:36:56 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Progressive Images In-Reply-To: <004301c71b0f$b6e26c20$8a00a8c0@spatialmapping.com> References: <004301c71b0f$b6e26c20$8a00a8c0@spatialmapping.com> Message-ID: <20061208213656.GA2429@metacarta.com> On Fri, Dec 08, 2006 at 01:27:50PM -0800, Gary Townsend wrote: > Another question about migrating from 1.0 to 2.2 version of open layers it > seems like version 1.0 the images were progressively displayed but my > testing of 2.0 seems to show that it waits till it fully renders the image > before it displays it. Am I just seeing this wrong or is there an actual > difference. There is a difference. Because images are now moved around, they are marked as non-visible until they are completed loading -- otherwise you temporarily see asia in south america or the like. This is controlled by the 'delayDisplay' option on the alphaImageDiv, and is part of the general memory=consumption improvements as part of OpenLayers 2.2. Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Fri Dec 8 17:03:50 2006 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] MapServer Layer - initial help In-Reply-To: <20061208164804.GA25304@alnagon.karneval.cz> Message-ID: Hello karpi, 1. The funny result has his cause in wrong extent values. You declare for your map bounds 280659.109943, 5322086.855897, 785870.593444, 5735441.706034, projection: 'EPSG:32633' And the request for the Mapserver layer has extent values for EPSG:4326. GET /wms/czrep?LAYERS=hodiny&MODE=map&MAP_IMAGETYPE=png&mapext=11.953125+52.0312 5+12.65625+52.734375 &imgext=11.953125+52.03125+12.65625+52.734375&map_size=256+256&imgx=128&imgy =128&imgxy=256+256 I think your map-projection in the mapfile is EPSG:32633, but it has to be ESPG:4326. With the WMS request for this layer, there is &SRS=EPSG:4326 added and Mapserver reproject your data. The Google layer works only for ESPG:4326 2. Google Zoom Look here. Ludwig has get the solution. http://www.nabble.com/Google-Zoom-Levels-tf2644005.html#a7380857 I'm using the solution on http://gis.ibbeck.de/ginfo/index.html. Search praha to get some known pictures for you. Arnd Wippermann -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von karpi Gesendet: Freitag, 8. Dezember 2006 17:48 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] MapServer Layer - initial help 08/12/06 14:23, bartvde@osgis.nl napsal(a): > See: > > http://www.openlayers.org/dev/examples/mapserver.html > > Best regards, > Bart Hi Bart, Thanks for your response. I was probably run into some developing feature. I was trying your link, but only pink screen i've found on it (opera9). In source was defined Mapserver layer, but accessed throughout wms, not directly mapserver. Which was my expection. Im wrong? Anyway, I was try define it on my page and funny ressult obtained :) http://gismaster.liberix.cz/google/openlayers_czrep.html?lat=49.26648&lon=15 .65552&zoom=8&layers=000FB > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: karpi > Naar: users@openlayers.org > Onderwerp: [OpenLayers-Users] MapServer Layer - initial help > Datum: 08/12/06 11:20 > > > Hello,.. > > my second question today: > > > > I think wms overlay layer is not probably the best solution (label > > behavior and so..) I've read something about mapserver layer there: > > http://trac.openlayers.org/wiki/Layer/MapServer > > but no more info or doc how to use it at this time. Do you have > > someone some working example, please ? Or link on some docs ? > > > > -- > > karpi from > > http://gismaster.liberix.cz > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > -- karpi from http://gismaster.liberix.cz _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From gstamp at gmail.com Mon Dec 11 00:32:28 2006 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] Greedy event handling Message-ID: I noticed that open layers swallows events such as mousemove so that I can't implement a global mousemove handler effectively. After a but of hunting I tracked it down to line 145 in Map.js. Changing the fallthrough param to true seems to do the trick. this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES, true); Is there any reason why this shouldn't be the default? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061211/302f5eb8/attachment.html From bartvde at osgis.nl Mon Dec 11 05:58:43 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] zooming out when changing base layer Message-ID: <3b10418b079ef3fa408a02c44c2bbad1@145.50.39.11> Hi list, I have 2 base layers and several overlays, all are WMS Untiled. When I change the base layer, the application zooms out. Is this a bug? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From euzuro at gmail.com Mon Dec 11 06:15:11 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] zooming out when changing base layer In-Reply-To: <3b10418b079ef3fa408a02c44c2bbad1@145.50.39.11> References: <3b10418b079ef3fa408a02c44c2bbad1@145.50.39.11> Message-ID: <6ae3fb590612110315v3fe257d9pda7768024e557cf2@mail.gmail.com> When you switch between base layers, OpenLayers tries to find the nearest approximate zoom for the new base layer. So what is happening is that when you switch from baselayer A to baselayer B 1) records current extent of map in baselayer A 2) switches to base layer B 3) calls zoomToExtent() on stored extent from base layer A if the resolutions/scales array for your two base layers are not the same, this would explain the behaviour. Note that with the commercial layers (google, yahoo, etc) we have specifically hard coded the resolutions array so that it will be more consistent with wms layers (due to projection differences). On 12/11/06, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > I have 2 base layers and several overlays, all are WMS Untiled. > > When I change the base layer, the application zooms out. > > Is this a bug? > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bartvde at osgis.nl Mon Dec 11 06:40:51 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] zooming out when changing base layer Message-ID: Hi Erik, but with WMS Untiled, I do not specify an extent nor a resolution for a layer. How does this relate then to WMS Untiled? Is there a way around it? This is my code: function mapinit(){ map = new OpenLayers.Map( $('map'), { controls: [], 'projection': 'EPSG:28992', 'units':'meters', 'maxExtent': new OpenLayers.Bounds(-157973.103596, 300670.145842, 472056.321374, 678687.800824) , 'maxResolution':'auto'}); var layer = new OpenLayers.Layer.WMS.Untiled( "Topografische kaart Nederland", "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", {layers: 'AAA126,AAA127,AAA134', 'format':'image/jpeg', 'transparent':'true'}, {'ratio':1, isBaseLayer: true} ); map.addLayers([layer]); var layer = new OpenLayers.Layer.WMS.Untiled( "Luchtfoto's Nederland", "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/luchtfoto?", {layers: 'AAA216', 'format':'image/jpeg', 'transparent':'true'}, {'ratio':1, isBaseLayer: true} ); map.addLayers([layer]); var layer = new OpenLayers.Layer.WMS.Untiled( "Nationaal Wegen Bestand Wegen wegvakken", "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/nationaalwegenbestand?", {layers: 'AAA70', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, isBaseLayer: false} ); map.addLayers([layer]); var layer = new OpenLayers.Layer.WMS.Untiled( "Top250namen", "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", {layers: 'AAA133', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, isBaseLayer: false} ); map.addLayers([layer]); if (!map.getCenter()) map.zoomToMaxExtent(); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.PanZoomBar()); map.addControl(new OpenLayers.Control.MouseDefaults()); } Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Erik Uzureau Naar: Bart van den Eijnden OSGIS Cc: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] zooming out when changing base layer Datum: 11/12/06 09:16 > When you switch between base layers, OpenLayers tries to find the > nearest approximate > zoom for the new base layer. > > So what is happening is that when you switch from baselayer A to baselayer B > > 1) records current extent of map in baselayer A > 2) switches to base layer B > 3) calls zoomToExtent() on stored extent from base layer A > > if the resolutions/scales array for your two base layers are not the same, > this would explain the behaviour. > > Note that with the commercial layers (google, yahoo, etc) we have specifically > hard coded the resolutions array so that it will be more consistent with wms > layers (due to projection differences). > > On 12/11/06, Bart van den Eijnden (OSGIS) <bartvde@osgis.nl> wrote: > > Hi list, > > > > I have 2 base layers and several overlays, all are WMS Untiled. > > > > When I change the base layer, the application zooms out. > > > > Is this a bug? > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > From bartvde at osgis.nl Mon Dec 11 06:48:03 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] overview map troubles Message-ID: <6cf7bd8f65103eca53cca122dd0bd4fe@145.50.39.11> Hi list, when I add the overview map to my application, I start getting a lot of javascript errors like: this.ovmap.map has no properties this.tile.bounds is empty or no object this.ovmap.map.projection is empty or no object Are these known? Can I best submit a bug report with an application to reproduce? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From euzuro at gmail.com Mon Dec 11 08:03:03 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:11 2010 Subject: [OpenLayers-Users] zooming out when changing base layer In-Reply-To: References: Message-ID: <6ae3fb590612110503n23a77a4dx91abf575c33289e9@mail.gmail.com> I tried loading this locally and none of the tiles load. Is there a live version you could send a link to? On 12/11/06, Bart van den Eijnden (OSGIS) wrote: > Hi Erik, > > but with WMS Untiled, I do not specify an extent nor a resolution for a > layer. > > How does this relate then to WMS Untiled? Is there a way around it? > > This is my code: > > function mapinit(){ > map = new OpenLayers.Map( $('map'), { controls: [], > 'projection': 'EPSG:28992', 'units':'meters', 'maxExtent': new > OpenLayers.Bounds(-157973.103596, 300670.145842, 472056.321374, > 678687.800824) , 'maxResolution':'auto'}); var layer = new > OpenLayers.Layer.WMS.Untiled( "Topografische kaart Nederland", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", > {layers: 'AAA126,AAA127,AAA134', 'format':'image/jpeg', > 'transparent':'true'}, {'ratio':1, isBaseLayer: true} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Luchtfoto's Nederland", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/luchtfoto?", > {layers: 'AAA216', 'format':'image/jpeg', 'transparent':'true'}, {'ratio':1, > isBaseLayer: true} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Nationaal Wegen Bestand Wegen wegvakken", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/nationaalwegenbestand?", > {layers: 'AAA70', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, > isBaseLayer: false} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Top250namen", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", > {layers: 'AAA133', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, > isBaseLayer: false} ); > > map.addLayers([layer]); if (!map.getCenter()) > map.zoomToMaxExtent(); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > map.addControl(new OpenLayers.Control.PanZoomBar()); > map.addControl(new OpenLayers.Control.MouseDefaults()); > } > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Erik Uzureau > Naar: Bart van den Eijnden OSGIS > Cc: users@openlayers.org > Onderwerp: Re: [OpenLayers-Users] zooming out when changing base layer > Datum: 11/12/06 09:16 > > > When you switch between base layers, OpenLayers tries to find the > > nearest approximate > > zoom for the new base layer. > > > > So what is happening is that when you switch from baselayer A to baselayer > B > > > > 1) records current extent of map in baselayer A > > 2) switches to base layer B > > 3) calls zoomToExtent() on stored extent from base layer A > > > > if the resolutions/scales array for your two base layers are not the same, > > this would explain the behaviour. > > > > Note that with the commercial layers (google, yahoo, etc) we have > specifically > > hard coded the resolutions array so that it will be more consistent with > wms > > layers (due to projection differences). > > > > On 12/11/06, Bart van den Eijnden (OSGIS) <bartvde@osgis.nl> wrote: > > > Hi list, > > > > > > I have 2 base layers and several overlays, all are WMS Untiled. > > > > > > When I change the base layer, the application zooms out. > > > > > > Is this a bug? > > > > > > Best regards, > > > Bart > > > > > > -- > > > Bart van den Eijnden > > > OSGIS, Open Source GIS > > > http://www.osgis.nl > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > http://openlayers.org/mailman/listinfo/users > > > > > > > > > > > From xpxiong at purdue.edu Mon Dec 11 13:47:25 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Initial question: Cannot display controls References: <6ae3fb590612110503n23a77a4dx91abf575c33289e9@mail.gmail.com> Message-ID: <05d501c71d54$cdeabd40$6f090a80@ad.cs.purdue.edu> Hello List, I just tried the live demo at http://openlayers.org/dev/examples/click.html. It works fine. So I copied the exact source code into my own html file. But none control is displayed well. You can check my html at http://www.cs.purdue.edu/homes/xxiong/OpenLayers/clicks.html Did I miss anything here? My another question is that what are the event names for mouse pressing, dragging and releasing? I appreciate any help and suggestions. Thanks, Xiaopeng From Marco.Zuehlke at brockmann-consult.de Mon Dec 11 14:04:42 2006 From: Marco.Zuehlke at brockmann-consult.de (Marco =?iso-8859-1?q?Z=FChlke?=) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Initial question: Cannot display controls In-Reply-To: <05d501c71d54$cdeabd40$6f090a80@ad.cs.purdue.edu> References: <6ae3fb590612110503n23a77a4dx91abf575c33289e9@mail.gmail.com> <05d501c71d54$cdeabd40$6f090a80@ad.cs.purdue.edu> Message-ID: <200612112004.42787.Marco.Zuehlke@brockmann-consult.de> Xiaopeng Xiong wrote: > Hello List, > > I just tried the live demo at > http://openlayers.org/dev/examples/click.html. It works fine. > So I copied the exact source code into my own html file. But none control > is displayed well. You can check my html at > http://www.cs.purdue.edu/homes/xxiong/OpenLayers/clicks.html > > Did I miss anything here? Hello, you copied over only the Javascript file from the Openlayers server. The destination of the images relates to location of the Javascript file. You have two possibilities: - You can directly reference the Javascript on the Openlayer server, by pointing to http://openlayers.org/api/2.2/OpenLayers.js - Download the distribution and install parallel to the 'lib' directory also the 'theme' and the 'img' directory. This should fix your problem. > My another question is that what are the event names for mouse pressing, > dragging and releasing? Have a look at: http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Events.js#L123 Regards, Marco > I appreciate any help and suggestions. > > > Thanks, > Xiaopeng > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From fredlucca at gmail.com Mon Dec 11 14:09:12 2006 From: fredlucca at gmail.com (Frederico Lucca) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Problems with Layer.Canvas on IE Message-ID: Hello list, I'm having trouble to draw some lines using canvas drawLine. I'm using version 2.2 and it works well on mozilla, but not on IE. The problem occurs in the function drawLine at line 81: var ctx = this.canvas.getContext("2d"); Someone could help me? Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061211/11cdfdfa/attachment.html From Marco.Zuehlke at brockmann-consult.de Mon Dec 11 14:19:39 2006 From: Marco.Zuehlke at brockmann-consult.de (Marco =?utf-8?q?Z=C3=BChlke?=) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Problems with Layer.Canvas on IE In-Reply-To: References: Message-ID: <200612112019.39688.Marco.Zuehlke@brockmann-consult.de> Frederico Lucca wrote: > Hello list, > > I'm having trouble to draw some lines using canvas drawLine. > I'm using version 2.2 and it works well on mozilla, but not on IE. > The problem occurs in the function drawLine at line 81: > > var ctx = this.canvas.getContext("2d"); > > Someone could help me? > > Thanks in advance. > > Fred Dear Fred, the canvas in Version 2.2 works only on Mozilla, because IE does not support canvas. A 'better' support for drawing is currently developed in the 'vector'-branch. It will include support for Mozilla and IE when it's ready. Regards, Marco From xpxiong at purdue.edu Mon Dec 11 14:29:46 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Initial question: Cannot display controls References: <6ae3fb590612110503n23a77a4dx91abf575c33289e9@mail.gmail.com><05d501c71d54$cdeabd40$6f090a80@ad.cs.purdue.edu> <200612112004.42787.Marco.Zuehlke@brockmann-consult.de> Message-ID: <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu> Thanks Marco, it is working now. I appreciate the help. I did download the .js file, but was not aware that I need the img directory as well. Best, Xiaopeng ----- Original Message ----- From: "Marco Z?hlke" To: Sent: Monday, December 11, 2006 2:04 PM Subject: Re: [OpenLayers-Users] Initial question: Cannot display controls > Xiaopeng Xiong wrote: >> Hello List, >> >> I just tried the live demo at >> http://openlayers.org/dev/examples/click.html. It works fine. >> So I copied the exact source code into my own html file. But none control >> is displayed well. You can check my html at >> http://www.cs.purdue.edu/homes/xxiong/OpenLayers/clicks.html >> >> Did I miss anything here? > > Hello, > > you copied over only the Javascript file from the Openlayers server. The > destination of the images relates to location of the Javascript file. You > have two possibilities: > - You can directly reference the Javascript on the Openlayer server, by > pointing to http://openlayers.org/api/2.2/OpenLayers.js > - Download the distribution and install parallel to the 'lib' directory > also > the 'theme' and the 'img' directory. > > This should fix your problem. > >> My another question is that what are the event names for mouse pressing, >> dragging and releasing? > > Have a look at: > http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Events.js#L123 > > Regards, > > Marco > >> I appreciate any help and suggestions. >> >> >> Thanks, >> Xiaopeng >> >> _______________________________________________ >> 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 noreply at geocartic.com Mon Dec 11 14:47:36 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] overview map troubles In-Reply-To: <6cf7bd8f65103eca53cca122dd0bd4fe@145.50.39.11> Message-ID: <014c01c71d5d$37339580$15fea8c0@meridian> > when I add the overview map to my application, I start > getting a lot of javascript errors like: > > this.ovmap.map has no properties > this.tile.bounds is empty or no object > this.ovmap.map.projection is empty or no object I've created ticket #444 for this and will commit the patch after it has been reviewed. This patch also fixes the overview map to work with non-default map properties (projection, maxExtent, etc). I'll update the docs shortly. Tim > > Are these known? Can I best submit a bug report with an > application to reproduce? > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From xpxiong at purdue.edu Mon Dec 11 15:37:33 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] disable Zoom-in function? References: <6ae3fb590612110503n23a77a4dx91abf575c33289e9@mail.gmail.com><05d501c71d54$cdeabd40$6f090a80@ad.cs.purdue.edu><200612112004.42787.Marco.Zuehlke@brockmann-consult.de> <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu> Message-ID: <060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu> I am curious is it possible to disable the functionality of zoom-in when a user draws a rectangluar region using mouse? My application just wants users to draw a query region on the map instead of have the map zoomed in... Thanks, Xiaopeng From crschmidt at metacarta.com Mon Dec 11 16:03:24 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] disable Zoom-in function? In-Reply-To: <060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu> References: <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu> <060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu> Message-ID: <20061211210324.GA3173@metacarta.com> On Mon, Dec 11, 2006 at 03:37:33PM -0500, Xiaopeng Xiong wrote: > I am curious is it possible to disable the functionality of zoom-in when a > user draws a rectangluar region using mouse? > My application just wants users to draw a query region on the map instead of > have the map zoomed in... This would be a non-trivial modification to OpenLayers.Control.MouseDefaults. I suggest you read and understand the code there to start: if you have questions on it, please feel free to come back to the list for explanations. Regards, -- Christopher Schmidt MetaCarta From fredlucca at gmail.com Tue Dec 12 06:48:08 2006 From: fredlucca at gmail.com (Frederico Lucca) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Problems with Layer.Canvas on IE In-Reply-To: <200612112019.39688.Marco.Zuehlke@brockmann-consult.de> References: <200612112019.39688.Marco.Zuehlke@brockmann-consult.de> Message-ID: Hi, Someone have another idea? I need some solution in one day working on IE. Thanks. Fred On 12/11/06, Marco Z?hlke wrote: > > Frederico Lucca wrote: > > Hello list, > > > > I'm having trouble to draw some lines using canvas drawLine. > > I'm using version 2.2 and it works well on mozilla, but not on IE. > > The problem occurs in the function drawLine at line 81: > > > > var ctx = this.canvas.getContext("2d"); > > > > Someone could help me? > > > > Thanks in advance. > > > > Fred > > Dear Fred, > > the canvas in Version 2.2 works only on Mozilla, because IE does not > support > canvas. A 'better' support for drawing is currently developed in > the 'vector'-branch. It will include support for Mozilla and IE when it's > ready. > > Regards, > Marco > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061212/a1a12153/attachment.html From euzuro at gmail.com Tue Dec 12 07:46:25 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] disable Zoom-in function? In-Reply-To: <20061211210324.GA3173@metacarta.com> References: <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu> <060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu> <20061211210324.GA3173@metacarta.com> Message-ID: <6ae3fb590612120446v4f5a94e5sb66645934a41a200@mail.gmail.com> Hi Xiaopeng The way to do this is, like chris said, inside OpenLayers.Control.MouseDefaults. You need to override the zoomBoxEnd() function. The easiest way to do this is like this: OpenLayers.Control.MouseDefaults.prototype.zoomBoxEnd = function (evt) { if (this.mouseDragStart != null) { // Ripped from MouseDefaults.js var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); // End rip. // Do whatever you want to do here // remove the zoombox this.removeZoomBox(); } } } On 12/11/06, Christopher Schmidt wrote: > On Mon, Dec 11, 2006 at 03:37:33PM -0500, Xiaopeng Xiong wrote: > > I am curious is it possible to disable the functionality of zoom-in when a > > user draws a rectangluar region using mouse? > > My application just wants users to draw a query region on the map instead of > > have the map zoomed in... > > This would be a non-trivial modification to > OpenLayers.Control.MouseDefaults. I suggest you read and understand the > code there to start: if you have questions on it, please feel free to > come back to the list for explanations. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Tue Dec 12 09:18:24 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Problems with Layer.Canvas on IE In-Reply-To: References: <200612112019.39688.Marco.Zuehlke@brockmann-consult.de> Message-ID: <20061212141824.GA5795@metacarta.com> On Tue, Dec 12, 2006 at 08:48:08AM -0300, Frederico Lucca wrote: > Hi, > > Someone have another idea? > I need some solution in one day working on IE. The best place to look is probably in http://svn.openlayers.org/sandbox/vector/ . This work is still in development, but is functional: it simply doesn't have any documentation attached to it yet. Regards, -- Christopher Schmidt MetaCarta From xpxiong at purdue.edu Tue Dec 12 09:56:56 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] disable Zoom-in function? References: <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu> <060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu> <20061211210324.GA3173@metacarta.com> <6ae3fb590612120446v4f5a94e5sb66645934a41a200@mail.gmail.com> Message-ID: <066401c71dfd$c51fde80$6f090a80@ad.cs.purdue.edu> Thanks Chris and Erik. I changed the .js using Erik's suggestion, and it actually works. But the remaining problem is that the rect region immediately disappear when the mouse is released. If I disable the "this.removeZoomBox();", the rect region will never be cleaned out so there will be multiple rects. I also tried to put the removeZoomBox() call to "defaultMouseDown" funciton, it seems not working neither. Thanks, Xiaopeng ----- Original Message ----- From: "Erik Uzureau" To: "Christopher Schmidt" Cc: "Xiaopeng Xiong" ; Sent: Tuesday, December 12, 2006 7:46 AM Subject: Re: [OpenLayers-Users] disable Zoom-in function? > Hi Xiaopeng > > The way to do this is, like chris said, inside > OpenLayers.Control.MouseDefaults. You need to override the > zoomBoxEnd() function. > > The easiest way to do this is like this: > > OpenLayers.Control.MouseDefaults.prototype.zoomBoxEnd = function (evt) > { > > if (this.mouseDragStart != null) { > > // Ripped from MouseDefaults.js > var start = this.map.getLonLatFromViewPortPx( > this.mouseDragStart ); > var end = this.map.getLonLatFromViewPortPx( evt.xy ); > var top = Math.max(start.lat, end.lat); > var bottom = Math.min(start.lat, end.lat); > var left = Math.min(start.lon, end.lon); > var right = Math.max(start.lon, end.lon); > var bounds = new OpenLayers.Bounds(left, bottom, > right, top); > // End rip. > > // Do whatever you want to do here > > // remove the zoombox > this.removeZoomBox(); > > } > } > } > > > > On 12/11/06, Christopher Schmidt wrote: >> On Mon, Dec 11, 2006 at 03:37:33PM -0500, Xiaopeng Xiong wrote: >> > I am curious is it possible to disable the functionality of zoom-in >> > when a >> > user draws a rectangluar region using mouse? >> > My application just wants users to draw a query region on the map >> > instead of >> > have the map zoomed in... >> >> This would be a non-trivial modification to >> OpenLayers.Control.MouseDefaults. I suggest you read and understand the >> code there to start: if you have questions on it, please feel free to >> come back to the list for explanations. >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > From fredlucca at gmail.com Tue Dec 12 11:18:48 2006 From: fredlucca at gmail.com (Frederico Lucca) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Question about property buffer of class Grid Message-ID: Hello list, I'm trying to get less tiles from my server at once. With the default buffer = 2, i open 30 request for my WMS server. I have tryed buffer = 1, than i read 12 tiles. But with buffer = 0, the tiles are not readed correctly. I just want to read the tiles in the center of the map, that I'm viewing. How can I do this? Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061212/931449a2/attachment.html From DCarreira at edia.pt Tue Dec 12 14:38:47 2006 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] TileCache and error "Zero length data returned from layer" Message-ID: <94C0F903807262438796839A98A9BA50015151BA@beja001.edia.pt> I'm trying to setup TileCache under Windows + Python 2.4 + IIS 5.1 + CGI. I can get a python test page to work ok. I use the default configuration pointing to metacarta's vmap0 wms service. Then I try the example url: http://localhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS&VERSIO N=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT =256 And I get the following error: An error occurred: Zero length data returned from layer. File "C:\wms\tilecache-1.3\TileCache\Service.py", line 427, in cgiHandler format, image = service.dispatchRequest( params, path_info, host ) File "C:\wms\tilecache-1.3\TileCache\Service.py", line 383, in dispatchRequest return self.renderTile(tile, params.has_key('FORCE')) File "C:\wms\tilecache-1.3\TileCache\Service.py", line 362, in renderTile else: raise Exception("Zero length data returned from layer.") I have seen another message in the lists pointing the same error and it seems the culprit is urllib2. Is there a solution to this problem? Some additional configuration needed? Is there anyone running the same configuration successfully? Thanks, Duarte -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061212/16bd6018/attachment.html From xpxiong at purdue.edu Tue Dec 12 14:45:02 2006 From: xpxiong at purdue.edu (Xiaopeng Xiong) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] disable Zoom-in function? References: <05e701c71d5a$b85e7a10$6f090a80@ad.cs.purdue.edu><060901c71d64$301dc160$6f090a80@ad.cs.purdue.edu><20061211210324.GA3173@metacarta.com><6ae3fb590612120446v4f5a94e5sb66645934a41a200@mail.gmail.com> <066401c71dfd$c51fde80$6f090a80@ad.cs.purdue.edu> Message-ID: <0af501c71e26$04488300$6f090a80@ad.cs.purdue.edu> I have found the right function to deal with the problem. Thanks all. Xiaopeng ----- Original Message ----- From: "Xiaopeng Xiong" To: Sent: Tuesday, December 12, 2006 9:56 AM Subject: Re: [OpenLayers-Users] disable Zoom-in function? > Thanks Chris and Erik. > > I changed the .js using Erik's suggestion, and it actually works. But the > remaining problem is that the rect region immediately disappear when > the mouse is released. If I disable the "this.removeZoomBox();", the rect > region will never be cleaned out so there will be multiple rects. > I also tried to put the removeZoomBox() call to "defaultMouseDown" > funciton, > it seems not working neither. > > > Thanks, > Xiaopeng > > > > > ----- Original Message ----- > From: "Erik Uzureau" > To: "Christopher Schmidt" > Cc: "Xiaopeng Xiong" ; > Sent: Tuesday, December 12, 2006 7:46 AM > Subject: Re: [OpenLayers-Users] disable Zoom-in function? > > >> Hi Xiaopeng >> >> The way to do this is, like chris said, inside >> OpenLayers.Control.MouseDefaults. You need to override the >> zoomBoxEnd() function. >> >> The easiest way to do this is like this: >> >> OpenLayers.Control.MouseDefaults.prototype.zoomBoxEnd = function (evt) >> { >> >> if (this.mouseDragStart != null) { >> >> // Ripped from MouseDefaults.js >> var start = this.map.getLonLatFromViewPortPx( >> this.mouseDragStart ); >> var end = this.map.getLonLatFromViewPortPx( evt.xy ); >> var top = Math.max(start.lat, end.lat); >> var bottom = Math.min(start.lat, end.lat); >> var left = Math.min(start.lon, end.lon); >> var right = Math.max(start.lon, end.lon); >> var bounds = new OpenLayers.Bounds(left, bottom, >> right, top); >> // End rip. >> >> // Do whatever you want to do here >> >> // remove the zoombox >> this.removeZoomBox(); >> >> } >> } >> } >> >> >> >> On 12/11/06, Christopher Schmidt wrote: >>> On Mon, Dec 11, 2006 at 03:37:33PM -0500, Xiaopeng Xiong wrote: >>> > I am curious is it possible to disable the functionality of zoom-in >>> > when a >>> > user draws a rectangluar region using mouse? >>> > My application just wants users to draw a query region on the map >>> > instead of >>> > have the map zoomed in... >>> >>> This would be a non-trivial modification to >>> OpenLayers.Control.MouseDefaults. I suggest you read and understand the >>> code there to start: if you have questions on it, please feel free to >>> come back to the list for explanations. >>> >>> 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 > From bwoodall at wardrobe.dhs.org Tue Dec 12 22:48:26 2006 From: bwoodall at wardrobe.dhs.org (bwoodall) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Theme Message-ID: <1165981706.5548.36.camel@wardrobe.dhs.org> Hello, Sorry for maybe a trivial question, but I just can't get the style.css in theme/default to effect my web pages, namely change the color of the ControlMousePosition div.olControlMousePosition { bottom: 0em; right: 3px; display: block; color: #0033cc; << was white position: absolute; font-family: Arial; font-size: smaller; } Any thoughts? Thanks! ..........Bill, PS. Great Tool! From bwoodall at wardrobe.dhs.org Wed Dec 13 03:10:36 2006 From: bwoodall at wardrobe.dhs.org (bwoodall) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Theme Message-ID: <1165997436.5548.40.camel@wardrobe.dhs.org> *sigh* Pilot error, once I killed all the instances of Firefox, I saw my color change in ControlMousePosition. .....Bill, From ruckc at yahoo.com Wed Dec 13 10:21:30 2006 From: ruckc at yahoo.com (Curtis W. Ruck) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] bug with getLonLatFromViewPortPx? Message-ID: <20061213152130.59663.qmail@web32213.mail.mud.yahoo.com> I have a raster image that happens to have my latitude/longitude lines drawn on it. My wms server is returning a portion of this image to OpenLayers. I added an event by "map.events.register('mousedown',map,queryLayer)" where queryLayer is a function: "function queryLayer(evt)" Somehow the getLonLatFromViewPortPx is returning invalid coordinates, shifted 5 pixels to the right. I also tried MousePosition() and it is off the same amount. I am running OpenLayers-2.2 release. Curtis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061213/37762828/attachment.html From crschmidt at metacarta.com Wed Dec 13 10:43:40 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] bug with getLonLatFromViewPortPx? In-Reply-To: <20061213152130.59663.qmail@web32213.mail.mud.yahoo.com> References: <20061213152130.59663.qmail@web32213.mail.mud.yahoo.com> Message-ID: <20061213154340.GB19855@metacarta.com> On Wed, Dec 13, 2006 at 07:21:30AM -0800, Curtis W. Ruck wrote: > I have a raster image that happens to have my latitude/longitude lines drawn on it. My wms server is returning a portion of this image to OpenLayers. I added an event by "map.events.register('mousedown',map,queryLayer)" where queryLayer is a function: "function queryLayer(evt)" > > Somehow the getLonLatFromViewPortPx is returning invalid coordinates, shifted 5 pixels to the right. > > I also tried MousePosition() and it is off the same amount. > > I am running OpenLayers-2.2 release. Can you give a page that demonstrates this problem? Is it possible that your map is anchored to the right, and the page then adds a scrollbar? currently, map events do not take into account the resizing of a page, so it's possible that by the scrollbar being added, the offset of 5px is added, but it would be hard to see without a test case. Regards, -- Christopher Schmidt MetaCarta From stuarteve at lparchaeology.com Wed Dec 13 14:24:19 2006 From: stuarteve at lparchaeology.com (Stuart Eve) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap pink tiles Message-ID: <45805363.1060607@lparchaeology.com> Hi all I was having some problems with my KaMap layer producing pink tiles on occasion - after advice from Christopher and TSchaub on the irc - I came up with a bit of a hack that seemed to fix the problem. I haven;t really done anything with JS before so its probably pretty ugly and perhaps someone may want to clean it up. It basically sets the src of the image again - if it really is a broken image after two goes it gives up and makes it pink (although I haven't had that happen). It starts from Line 244 of Util.js OpenLayers.Util.onImageLoadError = function() { this.setAttribute('tries',1); do{ this.setAttribute('src',this.getAttribute('src')); this.setAttribute('tries',this.getAttribute('tries') + 1); }while(this.getAttribute('tries') < 2); if (this.getAttribute('tries') >= 2){ this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor; this.style.display = ""; } }; Hope it helps someone Stuart From cholmes at openplans.org Wed Dec 13 14:46:36 2006 From: cholmes at openplans.org (Chris Holmes) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap pink tiles In-Reply-To: <45805363.1060607@lparchaeology.com> References: <45805363.1060607@lparchaeology.com> Message-ID: <4580589C.1050604@openplans.org> Ah, very nice, I could definitely make use of this, and would be psyched if something like this got in to the core. Just tried it out and it appears to be working great. I'm working off of trunk, and the line number is a bit off, but I think I found the right method. I can make a patch if it would be accepted, though my javascript skills are pretty poor, so someone may still want to clean it up. But I can clean up the formatting at least according to: http://trac.openlayers.org/wiki/CodingStandards Chris Stuart Eve wrote: > Hi all > > I was having some problems with my KaMap layer producing pink tiles on > occasion - after advice from Christopher and TSchaub on the irc - I came > up with a bit of a hack that seemed to fix the problem. I haven;t really > done anything with JS before so its probably pretty ugly and perhaps > someone may want to clean it up. It basically sets the src of the image > again - if it really is a broken image after two goes it gives up and > makes it pink (although I haven't had that happen). It starts from Line > 244 of Util.js > > OpenLayers.Util.onImageLoadError = function() { > > this.setAttribute('tries',1); > > do{ > > this.setAttribute('src',this.getAttribute('src')); > > this.setAttribute('tries',this.getAttribute('tries') + 1); > > }while(this.getAttribute('tries') < 2); > > if (this.getAttribute('tries') >= 2){ > > this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor; > this.style.display = ""; > > } > > }; > > Hope it helps someone > > Stuart > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:1003,45805410232252051017194! > -- Chris Holmes The Open Planning Project http://topp.openplans.org -------------- next part -------------- A non-text attachment was scrubbed... Name: cholmes.vcf Type: text/x-vcard Size: 269 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061213/47970633/cholmes.vcf From noreply at geocartic.com Wed Dec 13 15:07:47 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap pink tiles In-Reply-To: <45805363.1060607@lparchaeology.com> Message-ID: <008701c71ef2$5c3059e0$15fea8c0@meridian> > Hi all > > I was having some problems with my KaMap layer producing pink > tiles on occasion - after advice from Christopher and TSchaub > on the irc - I came up with a bit of a hack that seemed to > fix the problem. I've added a ticket and included a patch that does the same as your code. See http://trac.openlayers.org/attachment/ticket/447/avoid_pink.patch If you want to use this patch, set the IMAGE_RELOAD_ATTEMPTS in your application OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; // works well for me I think this has value for all layer types. Tim From crschmidt at metacarta.com Wed Dec 13 17:18:39 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap pink tiles In-Reply-To: <008701c71ef2$5c3059e0$15fea8c0@meridian> References: <45805363.1060607@lparchaeology.com> <008701c71ef2$5c3059e0$15fea8c0@meridian> Message-ID: <20061213221839.GA21735@metacarta.com> On Wed, Dec 13, 2006 at 01:07:47PM -0700, Tim Schaub wrote: > > Hi all > > > > I was having some problems with my KaMap layer producing pink > > tiles on occasion - after advice from Christopher and TSchaub > > on the irc - I came up with a bit of a hack that seemed to > > fix the problem. > > I've added a ticket and included a patch that does the same as your code. > See > http://trac.openlayers.org/attachment/ticket/447/avoid_pink.patch > > If you want to use this patch, set the IMAGE_RELOAD_ATTEMPTS in your > application > > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; // works well for me > > I think this has value for all layer types. This patch has been applied to trunk in r2048. Thanks to all. Regards, -- Christopher Schmidt MetaCarta From gstamp at gmail.com Thu Dec 14 00:43:42 2006 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] maxExtent Message-ID: I'm using the maxExtent option when creating a map that has an Untiled layer. At lower zoom levels it seems to respect this setting but at higher levels the user is able to pan out of this extent. Am I miss understanding this setting or is this a bug? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061214/146dda4f/attachment.html From trondmm-openlayers at crusaders.no Thu Dec 14 02:19:50 2006 From: trondmm-openlayers at crusaders.no (Trond Michelsen) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] maxExtent In-Reply-To: References: Message-ID: <20061214071950.GJ17217@crusaders.no> On Thu, Dec 14, 2006 at 04:43:42PM +1100, Glen Stampoultzis wrote: > I'm using the maxExtent option when creating a map that has an Untiled > layer. At lower zoom levels it seems to respect this setting but at higher > levels the user is able to pan out of this extent. Am I miss understanding > this setting or is this a bug? It's sort of a feature. As far as I understand, this has been implemented so that the center of the viewport will never be outside maxExtent. That means that you'll be able to see one half viewport outside the maxExtent in all directions. So, when you zoom out, the half viewport will cover a bigger and bigger area. I'm not totally convinced that this is the best way to do it. I think I'd prefer if openlayers tried it's best to not let the viewport go outside maxExtent at all - except when you've zoomed so far out that the entire extent fits within the viewport. -- Trond Michelsen From euzuro at gmail.com Thu Dec 14 07:36:17 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] maxExtent In-Reply-To: <20061214071950.GJ17217@crusaders.no> References: <20061214071950.GJ17217@crusaders.no> Message-ID: <6ae3fb590612140436g1436b39ay65a72b919b5d7c58@mail.gmail.com> This is something we have been meaning to re-evaluate for a while. http://trac.openlayers.org/ticket/340 On 12/14/06, Trond Michelsen wrote: > On Thu, Dec 14, 2006 at 04:43:42PM +1100, Glen Stampoultzis wrote: > > I'm using the maxExtent option when creating a map that has an Untiled > > layer. At lower zoom levels it seems to respect this setting but at higher > > levels the user is able to pan out of this extent. Am I miss understanding > > this setting or is this a bug? > > It's sort of a feature. As far as I understand, this has been > implemented so that the center of the viewport will never be outside > maxExtent. That means that you'll be able to see one half viewport > outside the maxExtent in all directions. So, when you zoom out, the > half viewport will cover a bigger and bigger area. > > I'm not totally convinced that this is the best way to do it. I think > I'd prefer if openlayers tried it's best to not let the viewport go > outside maxExtent at all - except when you've zoomed so far out that > the entire extent fits within the viewport. > > -- > Trond Michelsen > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From Charlie.Okeefe at ngc.com Thu Dec 14 14:33:42 2006 From: Charlie.Okeefe at ngc.com (Okeefe, Charlie (Mission Systems)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Displaying moving symbols on a map? Message-ID: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78B@xmbco501.northgrum.com> Hello all, I'm interested in using OpenLayers for a project, and the basic requirement is fairly straightforward - an interactive world map running in a web browser showing moving symbols whose locations are given and updated by an outside service. I'm fairly new to a lot of the terminology involved here - from what I have read thus far, it looks like I might want to do this with a WFS server - each symbol we want to show becomes a "feature" that can move when the service "updates" it. Am I on the right track here? Is OpenLayers a good tool for this? If it is, I'm interested in learning how to set up such an application. Otherwise any suggestions on a better tool for the job would be greatly appreciated. Thanks! Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061214/580fea4d/attachment.html From post at robertbuzink.nl Thu Dec 14 17:50:13 2006 From: post at robertbuzink.nl (Robert Buzink) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Displaying moving symbols on a map? In-Reply-To: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78B@xmbco501.northgrum.com> References: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78B@xmbco501.northgrum.com> Message-ID: <44f49ff00612141450q3f5dd1a6sa1095b9e442e4b12@mail.gmail.com> hi charlie, I don't know about WFS server. Somebody else will have to answer that, but updating map can also be done by using php script that dynamically generates xml-file. The javascript in the map could read the xml file and generate markers from it. You could set the php script in such a way that it outputs different imagename/location in the xml file for a while when a marker is just updated. Openlayers lets you create custom marker-images. I don't think they can be moving images. Again, it's just a suggestion. WFS server might be better. Robert. On 12/14/06, Okeefe, Charlie (Mission Systems) wrote: > > Hello all, I'm interested in using OpenLayers for a project, and the > basic requirement is fairly straightforward - an interactive world map > running in a web browser showing moving symbols whose locations are given > and updated by an outside service. > > I'm fairly new to a lot of the terminology involved here - from what I > have read thus far, it looks like I might want to do this with a WFS server > - each symbol we want to show becomes a "feature" that can move when the > service "updates" it. > > Am I on the right track here? Is OpenLayers a good tool for this? If it > is, I'm interested in learning how to set up such an application. Otherwise > any suggestions on a better tool for the job would be greatly appreciated. > > Thanks! > > Charlie > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- Robert Buzink, website ontwerp en ontwikkeling Sint-Pietersaalststraat 123 9000 Gent +32 (0)9 33 00 267 +32 (0)487 548 414 post@robertbuzink.nl robertbuzink.nl/webdesign -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061214/19d7506a/attachment.html From bbrehmer at refractions.net Thu Dec 14 17:57:19 2006 From: bbrehmer at refractions.net (Ben Brehmer) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup styling Message-ID: <4581D6CF.8010406@refractions.net> Hello Everyone, I have setup a basic OpenLayers application (thanks to christopher schmidt and others on this list). Currently I have several Marker layers where the user can "mouseover" and see a variety of popups. I am trying to style these popups a bit by changing the shape but am not quite sure where to start. Has anyone here ever created, or knows a good way of changing popup shapes from the standard rectangle? Is it even possible to have triangle popups for example? Any help is greatly appreciated. Thanks, Ben From bwoodall at wardrobe.dhs.org Thu Dec 14 23:04:28 2006 From: bwoodall at wardrobe.dhs.org (bwoodall) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Displaying moving symbols on a map? In-Reply-To: <44f49ff00612141450q3f5dd1a6sa1095b9e442e4b12@mail.gmail.com> References: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78B@xmbco501.northgrum.com> <44f49ff00612141450q3f5dd1a6sa1095b9e442e4b12@mail.gmail.com> Message-ID: <1166155468.17076.38.camel@wardrobe.dhs.org> Hi Charlie, Robert, & List I'm just starting into all of this and saw an AJAX Class Ajax.PeriodicalUpdater that Charlie might look at though I'm not sure how to get it to work within OL. ..........Bill, On Thu, 2006-12-14 at 23:50 +0100, Robert Buzink wrote: > hi charlie, > > I don't know about WFS server. Somebody else will have to answer that, > but updating map can also be done by using php script that dynamically > generates xml-file. > > The javascript in the map could read the xml file and generate markers > from it. You could set the php script in such a way that it outputs > different imagename/location in the xml file for a while when a marker > is just updated. Openlayers lets you create custom marker-images. I > don't think they can be moving images. > > Again, it's just a suggestion. WFS server might be better. > > Robert. > > On 12/14/06, Okeefe, Charlie (Mission Systems) > wrote: > Hello all, I'm interested in using OpenLayers for a project, > and the basic requirement is fairly straightforward - an > interactive world map running in a web browser showing moving > symbols whose locations are given and updated by an outside > service. > > I'm fairly new to a lot of the terminology involved here - > from what I have read thus far, it looks like I might want to > do this with a WFS server - each symbol we want to show > becomes a "feature" that can move when the service "updates" > it. > > Am I on the right track here? Is OpenLayers a good tool for > this? If it is, I'm interested in learning how to set up such > an application. Otherwise any suggestions on a better tool for > the job would be greatly appreciated. > > Thanks! > > Charlie > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > > > > -- > Robert Buzink, website ontwerp en ontwikkeling > Sint-Pietersaalststraat 123 > 9000 Gent > +32 (0)9 33 00 267 > +32 (0)487 548 414 > post@robertbuzink.nl > robertbuzink.nl/webdesign > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From andrew at andrewlarcombe.co.uk Fri Dec 15 03:46:24 2006 From: andrew at andrewlarcombe.co.uk (Andrew Larcombe) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Displaying moving symbols on a map? In-Reply-To: <1166155468.17076.38.camel@wardrobe.dhs.org> References: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78B@xmbco501.northgrum.com> <44f49ff00612141450q3f5dd1a6sa1095b9e442e4b12@mail.gmail.com> <1166155468.17076.38.camel@wardrobe.dhs.org> Message-ID: <458260E0.3080806@andrewlarcombe.co.uk> bwoodall wrote: > Hi Charlie, Robert, & List > > I'm just starting into all of this and saw an AJAX Class > Ajax.PeriodicalUpdater that Charlie might look at though > I'm not sure how to get it to work within OL. Yes, I think that this approach would make sense. Your server-side code can emit some javascript code to reposition a marker. PeriodicalUpdater could intermitently be called with the url of the server code the return of which would be eval'd by the client on return. Regards, Andrew -- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk email: andrew@andrewlarcombe.co.uk icq: 306690163 From fredlucca at gmail.com Fri Dec 15 09:49:27 2006 From: fredlucca at gmail.com (Frederico Lucca) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] MaxZoomLevel for a layer Message-ID: Hello list, I need to set a maxZoomLevel for a text layer. My map have this options: var options = { resolutions: [0.00439453125,0.002197265625,0.0010986328125, 0.00054931640625,0.000274658203125,0.0001373291015625,0.00006866455078125, 0.000034332275390625,0.0000171661376953125,0.00000858306884765625, 0.000004291534423828125], tileSize: new OpenLayers.Size(512, 512), controls: [] }; I'm trying to do: layerText = new OpenLayers.Layer.Text( "Points", {location: ' http://localhost/polos.txt', maxZoomLevel: 5} ); But this don't works for me. Is the right way to do this? Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061215/07020762/attachment.html From kbehncke at igf.uni-osnabrueck.de Fri Dec 15 11:27:31 2006 From: kbehncke at igf.uni-osnabrueck.de (Kai Behncke) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Don`t get WMS to run Message-ID: <20061215161654.M83899@igf.uni-osnabrueck.de> Hello list, I try to get an application where I can use checkboxes to add Layers. The problem is: One of my two layers I don`t get to run, and I have no idea why ( in generally the layer is online, I tested it in a basic template with UMN MapServer). For this layer (it`s the layer basemap3 (TK-100)) I just get pink squares (????). My code is the following:
Could anybody please help me? Thank you very much.......... -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke@igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From Charlie.Okeefe at ngc.com Fri Dec 15 16:21:08 2006 From: Charlie.Okeefe at ngc.com (Okeefe, Charlie (Mission Systems)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Displaying moving symbols on a map? In-Reply-To: <458260E0.3080806@andrewlarcombe.co.uk> Message-ID: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78E@xmbco501.northgrum.com> Thanks Andrew, I'll have to look into that. I wasn't too worried about that aspect though, since it is fairly easy to create a timer using javascript to periodically check for updates... -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Andrew Larcombe Sent: Friday, December 15, 2006 1:46 AM To: bwoodall@wardrobe.dhs.org Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] Displaying moving symbols on a map? bwoodall wrote: > Hi Charlie, Robert, & List > > I'm just starting into all of this and saw an AJAX Class > Ajax.PeriodicalUpdater that Charlie might look at though I'm not sure > how to get it to work within OL. Yes, I think that this approach would make sense. Your server-side code can emit some javascript code to reposition a marker. PeriodicalUpdater could intermitently be called with the url of the server code the return of which would be eval'd by the client on return. Regards, Andrew -- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk email: andrew@andrewlarcombe.co.uk icq: 306690163 _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From Charlie.Okeefe at ngc.com Fri Dec 15 16:28:18 2006 From: Charlie.Okeefe at ngc.com (Okeefe, Charlie (Mission Systems)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Is OpenLayers client-side only? Message-ID: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78F@xmbco501.northgrum.com> I'm hoping to have a couple architectural questions cleared up. Mainly, is OpenLayers purely a client-side ajax package? Or does it include components that run on the server as well? As I currently understand it, setting up a web-based map (using my own map rather than Google or Yahoo etc) will involve: o installing UMN MapServer on a server to handle the actual map data o installing ka-map on a server to handle tiling functionality o including OpenLayers in the script of a web page This way, OpenLayers runs in the browser and accesses ka-map tiling code running on the server, which in turn calls MapServer. Is this correct? Is ka-map currently a useful and/or desirable piece of this puzzle? Are there any diagrams or descripts you that could help clear this up? Thanks for any help! Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061215/cce8ee4b/attachment.html From perrygeo at gmail.com Fri Dec 15 16:44:50 2006 From: perrygeo at gmail.com (Matthew Perry) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Is OpenLayers client-side only? In-Reply-To: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78F@xmbco501.northgrum.com> References: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78F@xmbco501.northgrum.com> Message-ID: <5383fa5e0612151344x4225748cw9999e8805778f6e9@mail.gmail.com> Charlie, On 12/15/06, Okeefe, Charlie (Mission Systems) wrote: > I'm hoping to have a couple architectural questions cleared up. Mainly, is > OpenLayers purely a client-side ajax package? Or does it include components > that run on the server as well? It is purely a client-side library that interfaces with a variety of web mapping services. > As I currently understand it, setting up a web-based map (using my own map > rather than Google or Yahoo etc) will involve: > > o installing UMN MapServer on a server to handle the actual map data You can also look at Geoserver or Mapnik which handle the same functionality. > o installing ka-map on a server to handle tiling functionality I'd suggest also taking a look at TileCache which handles the tiling using a variety of different rendering engines (mapserver, mapnik, wms servers) > o including OpenLayers in the script of a web page > > This way, OpenLayers runs in the browser and accesses ka-map tiling code > running on the server, which in turn calls MapServer. > TileCache works in roughly the same way .. If the tile is already cached on the server, it will just give back the image .. It will only call mapserver (or whatever your rendering engine is) if the tile has not yet been rendered. > Is this correct? Is ka-map currently a useful and/or desirable piece of this > puzzle? Are there any diagrams or descripts you that could help clear this > up? I think you've got a good handle on the big picture. Of course the devil's in the details ;-) I think an intermediate tile caching mechanism is essential for slippy map interfaces and will increase the speed of your app and decrease the server load immensely. ka-map or Tilecache are both good choices for this, although I prefer Tilecache because I like python alot more than php and I find it a bit easier to set up than kamap. -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry@nceas.ucsb.edu web: http://www.perrygeo.net From crschmidt at metacarta.com Fri Dec 15 17:04:37 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Is OpenLayers client-side only? In-Reply-To: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78F@xmbco501.northgrum.com> References: <77771F5FF7A2ED42B9B6F43ADCA95A9F06D78F@xmbco501.northgrum.com> Message-ID: <20061215220437.GA3601@metacarta.com> On Fri, Dec 15, 2006 at 02:28:18PM -0700, Okeefe, Charlie (Mission Systems) wrote: > I'm hoping to have a couple architectural questions cleared up. Mainly, > is OpenLayers purely a client-side ajax package? Or does it include > components that run on the server as well? The former. > As I currently understand it, setting up a web-based map (using my own > map rather than Google or Yahoo etc) will involve: > > o installing UMN MapServer on a server to handle the actual map data Or GeoServer, or mapnik, or other WMS or other servers. > o installing ka-map on a server to handle tiling functionality I'd use TileCache :) But yes. > o including OpenLayers in the script of a web page Yep. > This way, OpenLayers runs in the browser and accesses ka-map tiling code > running on the server, which in turn calls MapServer. > > Is this correct? Is ka-map currently a useful and/or desirable piece of > this puzzle? Are there any diagrams or descripts you that could help > clear this up? I'd use TileCache, again, but the idea of having that server-side piece is important in my experience for pretty maps. Sometimes, it doesn't matter. Aerial imagery doesn't need metatiles, and it only might need caching. The default OpenLayers maps are mapserver-based, and aren't cached. In general, though, I'd say you're right on the money. Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Sat Dec 16 04:58:08 2006 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Don`t get WMS to run In-Reply-To: <20061215161654.M83899@igf.uni-osnabrueck.de> Message-ID: Hello Kai, the german tk raster are only available for local projections. You have to use EPSG:31467 for your map. Or you must use Mapserver to get the layer and reproject it to EPSG:4326. But with this reproach I have myself no luke (it should work). Part of the GetCapabilitiesRequest LGN - WMS EPSG:31467 EPSG:31493 Mit freundlichen Gr?ssen Arnd Wippermann -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Kai Behncke Gesendet: Freitag, 15. Dezember 2006 17:28 An: Users@openlayers.org Betreff: [OpenLayers-Users] Don`t get WMS to run Hello list, I try to get an application where I can use checkboxes to add Layers. The problem is: One of my two layers I don`t get to run, and I have no idea why ( in generally the layer is online, I tested it in a basic template with UMN MapServer). For this layer (it`s the layer basemap3 (TK-100)) I just get pink squares (????). My code is the following:
Could anybody please help me? Thank you very much.......... -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke@igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From euzuro at gmail.com Sat Dec 16 10:39:48 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup styling In-Reply-To: <4581D6CF.8010406@refractions.net> References: <4581D6CF.8010406@refractions.net> Message-ID: <6ae3fb590612160739s1c12be4eqb2e6bc59a7719148@mail.gmail.com> Having anything other than standard rectangular popups is going to be a little bit difficult. The best thing I can think of is that you make an image that you want to use as background for the popup and use that with the standard OpenLayers.Popup.Anchored class. Even so, the interaction is going to be wierd. Erik On 12/14/06, Ben Brehmer wrote: > Hello Everyone, > > I have setup a basic OpenLayers application (thanks to christopher > schmidt and others on this list). Currently I have several Marker layers > where the user can "mouseover" and see a variety of popups. I am trying > to style these popups a bit by changing the shape but am not quite sure > where to start. Has anyone here ever created, or knows a good way of > changing popup shapes from the standard rectangle? Is it even possible > to have triangle popups for example? > > Any help is greatly appreciated. > > Thanks, > > Ben > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From nick at hogweed.org Sun Dec 17 06:04:29 2006 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Trying to get a minimal Vector example to work.... Message-ID: <200612171104.29219.nick@hogweed.org> I'm playing around with the Vector code (checked out Dec 13 21:17GMT) and trying to get a minimal example to work, where the user draws a blue polyline by clicking points on the map. This was derived from the vector.html in the examples. I want to add my own custom code for communicating with a server - hence the need to write my own code rather than use the "draw line" tool in vector.html. However, I can't seem to get it to work. The code is as follows: var map, vector; var line, feature; function init() { map = new OpenLayers.Map('map', { maxExtent:new OpenLayers.Bounds(0,0,599999,999999), maxResolution: 8, units:'meters'}); var ol_wms = new OpenLayers.Layer.WMS( "NPE", "http://nick.dev.openstreetmap.org/openpaths/freemap.php", {'layers':'npe'} ); vector = new OpenLayers.Layer.Vector("Vector Layer"); map.addLayers([vector, ol_wms]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(new OpenLayers.LonLat(489600,128500)); map.events.register('click',map,mapClick); line = new OpenLayers.Geometry.LineString(); feature = new OpenLayers.Feature(); feature.setStyle ( { 'strokeStyle': 'blue', 'lineWidth': 2 } ); feature.setGeometry(line); vector.addFeatures(feature); } function mapClick(e) { var pos = map.getLonLatFromViewPortPx (map.events.getMousePosition(e)); line.addPoint(pos); } Any ideas what the problem might be? It's accessible on the web at http://www.free-map.org.uk/vector/examples/npe.html. Tested on Firefox 1.5. The vector examples (e.g. vector.html) are working. I don't get any errors on the javascript console. Thanks, Nick From crschmidt at metacarta.com Sun Dec 17 07:52:02 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Trying to get a minimal Vector example to work.... In-Reply-To: <200612171104.29219.nick@hogweed.org> References: <200612171104.29219.nick@hogweed.org> Message-ID: <20061217125202.GA17893@metacarta.com> On Sun, Dec 17, 2006 at 11:04:29AM +0000, Nick Whitelegg wrote: > > I'm playing around with the Vector code (checked out Dec 13 21:17GMT) and > trying to get a minimal example to work, where the user draws a blue polyline > by clicking points on the map. > > This was derived from the vector.html in the examples. I want to add my own > custom code for communicating with a server - hence the need to write my own > code rather than use the "draw line" tool in vector.html. Not using the draw line tool and including custom code for communicating with a server are (by design) unrelated. If you want to write your own 'save' code, you simply need to look at the Writer/WFS.js code (http://dev.openlayers.org/sandbox/vector/lib/OpenLayers/Writer/WFS.js) and then pass a different 'writer' in the options array of the layer you create. > However, I can't seem to get it to work. The code is as follows: Although I appreciate the excitement over the vector drawing in OpenLayers, I do want to point out that the vector branch is still in rapid development, and is not considered to be a supported part of OpenLayers. Although I'm relatively certain that some of the vector developers will do their best to respond, the best way to resolve issues with the Vector branch is to start from the examples and work your way forward. I simply don't want people to jump into this too early: I jumped the gun by even showing a demo of it, and the developers of this code have put in a lot of hard work, and still are working hard on it. I don't want to see them get swamped with premature support requests. (I may also be a bit oversensitive here -- I just don't want to scare off the people who've put so much time into making this stuff great!) For the record, I did play with your example for 15 minutes or so, and was unable to see anything obviously wrong. Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Mon Dec 18 13:22:12 2006 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap Tiles Message-ID: <4586DC54.2020006@swoodbridge.com> Hello OpenLayers, We just loaded OpenLayers 2.2 and configured it to work with Ka-Map, but I am concerned because it is generating tiles. We have a pre-cached tile repository with fixed tile sizes, but there is no way that I can find in the docs to limit OL to those fixed zoom scales. In fact the the wiki implies that OL ignores the ka-map scales: > These should be the module names of your php modules for Mapscript and GD. > > $aszMapFiles = array( > "world" => array( "World", "/path/to/your/mapfile", > array( 10000 ), # in openlayers, the scale array doesn't matter. > "PNG24") > > ); How can OL be restricted to work ONLY with the scales we have in out cache? Thanks, -Steve W. From crschmidt at metacarta.com Mon Dec 18 14:12:48 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] KaMap Tiles In-Reply-To: <4586DC54.2020006@swoodbridge.com> References: <4586DC54.2020006@swoodbridge.com> Message-ID: <20061218191248.GA21496@metacarta.com> On Mon, Dec 18, 2006 at 01:22:12PM -0500, Stephen Woodbridge wrote: > Hello OpenLayers, > > We just loaded OpenLayers 2.2 and configured it to work with Ka-Map, but > I am concerned because it is generating tiles. We have a pre-cached tile > repository with fixed tile sizes, but there is no way that I can find in > the docs to limit OL to those fixed zoom scales. In fact the the wiki > implies that OL ignores the ka-map scales: > > > These should be the module names of your php modules for Mapscript > and GD. > > > > $aszMapFiles = array( > > "world" => array( "World", "/path/to/your/mapfile", > > array( 10000 ), # in openlayers, the scale array > doesn't matter. > > "PNG24") > > > > ); > > How can OL be restricted to work ONLY with the scales we have in out cache? new OpenLayers.Map("map", {'scales':[10000, 5000, 2500]}); Also see: http://trac.openlayers.org/wiki/SettingZoomLevels Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Tue Dec 19 19:08:38 2006 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? Message-ID: <200612200008.38369.nick@hogweed.org> I've just converted my custom "GeoRSS2" layer (a layer which can handle retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 to 2.2. However one line breaks - I can no longer set the size of a popup within the markerClick function - I get the error "quadrant has no properties". My markerClick function is modified from the original GeoRSS.js function to handle deleting the marker if a user is in a certain mode, and is as below. Full code (if needed) is at http://www.free-map.org.uk/test/GeoRSS2.js. Is this an API change? Thanks, Nick markerClick: function(evt) { if(this.layer.deleteTestFunction && this.layer.deleteFunction && this.layer.deleteTestFunction()) { this.layer.deleteFunction(this.id); this.layer.removeMarker(this.marker); this.destroy(); } else { sameMarkerClicked = (this == this.layer.selectedFeature); this.layer.selectedFeature = (!sameMarkerClicked) ? this : null; for(var i=0; i < this.layer.map.popups.length; i++) { this.layer.map.removePopup(this.layer.map.popups[i]); } if (!sameMarkerClicked) { var popup = this.createPopup(); // This breaks in 2.2 //popup.setSize(this.layer.popupSize); popup.setBackgroundColor(this.layer.popupColour); OpenLayers.Event.observe(popup.div, "click", function() { for(var i=0; i < this.layer.map.popups.length; i++) { this.layer.map.removePopup(this.layer.map.popups[i]); } }.bindAsEventListener(this)); this.layer.map.addPopup(popup); } OpenLayers.Event.stop(evt); } }, From euzuro at gmail.com Wed Dec 20 14:35:16 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? In-Reply-To: <200612200008.38369.nick@hogweed.org> References: <200612200008.38369.nick@hogweed.org> Message-ID: <6ae3fb590612201135u56cdca2ek2e9de835e2a51188@mail.gmail.com> Hi Nick, My immediate guess is that the problem here is that you are calling setSize() before you actually add the popup to the map. When you call setSize() on an anchored bubble popup, it has to redo its Rico corners, and doing this involves calling the quadrant determination code. The problem is that the popup is not yet added to the map so it can't tell which quadrant it's in. This is obviously a shortcoming in the popup engineering... though I'm surprised that you weren't seeing this same error with 2.1 Try putting the setSize() after the add-to-map call and see if that fixes it? Hope that helps. Let us know. Erik On 12/19/06, Nick Whitelegg wrote: > > I've just converted my custom "GeoRSS2" layer (a layer which can handle > retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 to > 2.2. However one line breaks - I can no longer set the size of a popup within > the markerClick function - I get the error "quadrant has no properties". > > My markerClick function is modified from the original GeoRSS.js function to > handle deleting the marker if a user is in a certain mode, and is as below. > Full code (if needed) is at http://www.free-map.org.uk/test/GeoRSS2.js. > > Is this an API change? > > Thanks, > Nick > > markerClick: function(evt) { > if(this.layer.deleteTestFunction && this.layer.deleteFunction && > this.layer.deleteTestFunction()) { > this.layer.deleteFunction(this.id); > this.layer.removeMarker(this.marker); > this.destroy(); > } else { > sameMarkerClicked = (this == this.layer.selectedFeature); > this.layer.selectedFeature = (!sameMarkerClicked) ? this : null; > for(var i=0; i < this.layer.map.popups.length; i++) { > this.layer.map.removePopup(this.layer.map.popups[i]); > } > if (!sameMarkerClicked) { > var popup = this.createPopup(); > // This breaks in 2.2 > //popup.setSize(this.layer.popupSize); > popup.setBackgroundColor(this.layer.popupColour); > OpenLayers.Event.observe(popup.div, "click", > function() { > for(var i=0; i < this.layer.map.popups.length; i++) { > this.layer.map.removePopup(this.layer.map.popups[i]); > } > }.bindAsEventListener(this)); > this.layer.map.addPopup(popup); > } > OpenLayers.Event.stop(evt); > } > }, > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Wed Dec 20 07:27:03 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? In-Reply-To: <200612200008.38369.nick@hogweed.org> References: <200612200008.38369.nick@hogweed.org> Message-ID: <20061220122703.GB622@metacarta.com> On Wed, Dec 20, 2006 at 12:08:38AM +0000, Nick Whitelegg wrote: > > I've just converted my custom "GeoRSS2" layer (a layer which can handle > retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 to > 2.2. However one line breaks - I can no longer set the size of a popup within > the markerClick function - I get the error "quadrant has no properties". This is fixed in the latest SVN. I'll provide you a simple backport of the patch you can drop into your application so you can continue using OL 2.2 later today. I'm sorry for the inconvenience: it was entirely due to poor testing on my part. Regards, -- Christopher Schmidt MetaCarta From tchaddad at gmail.com Wed Dec 20 16:04:32 2006 From: tchaddad at gmail.com (TC Haddad) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] mapserver cgi extents setting Message-ID: <25de2c7c0612201304t1351dd8ewc692eb5f304b9fb5@mail.gmail.com> hi, forgive this ignorant question. i can't seem to get onto www.openlayers.org to look at the documentation (i get "server not found" error ??), so the answer may be easy. i am trying to set up a mapserver cgi example, but i am finding that openlayers is assuming that my data is in decimal degress lat/long, so it is appending this to the tile urls: mapext=-180+-90+0+90&imgext=-180+-90+0+90 where / how can i over-ride this default? i tried pre-adding correct (LCC feet) exents to my url: mapext=389395.792829+1548097.852289+448925.934325+1650929.857263 but it is just superceded by the above setting. tanya From crschmidt at metacarta.com Thu Dec 21 07:51:23 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] mapserver cgi extents setting In-Reply-To: <25de2c7c0612201304t1351dd8ewc692eb5f304b9fb5@mail.gmail.com> References: <25de2c7c0612201304t1351dd8ewc692eb5f304b9fb5@mail.gmail.com> Message-ID: <20061221125123.GA16891@metacarta.com> On Wed, Dec 20, 2006 at 01:04:32PM -0800, TC Haddad wrote: > hi, > > forgive this ignorant question. i can't seem to get onto > www.openlayers.org to look at the documentation (i get "server not > found" error ??), so the answer may be easy. OpenLayers was having DNS problems for the past couple days. We're working on adding more DNS servers so we aren't at the mercy of one DNS host, whose attitude towards the failure was distressing. It seems like things are back to normal at the moment. > i am trying to set up a mapserver cgi example, but i am finding that > openlayers is assuming that my data is in decimal degress lat/long, so > it is appending this to the tile urls: > > mapext=-180+-90+0+90&imgext=-180+-90+0+90 > > where / how can i over-ride this default? i tried pre-adding correct > (LCC feet) exents to my url: You probably want to look at the FAQ on Projections: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections I think this will help you get what you need. Regards, -- Christopher Schmidt MetaCarta From euzuro at gmail.com Thu Dec 21 09:19:26 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? In-Reply-To: <20061220122703.GB622@metacarta.com> References: <200612200008.38369.nick@hogweed.org> <20061220122703.GB622@metacarta.com> Message-ID: <6ae3fb590612210619l76919d5w76f54fd728ab6597@mail.gmail.com> fyi: http://trac.openlayers.org/ticket/415 On 12/20/06, Christopher Schmidt wrote: > On Wed, Dec 20, 2006 at 12:08:38AM +0000, Nick Whitelegg wrote: > > > > I've just converted my custom "GeoRSS2" layer (a layer which can handle > > retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 to > > 2.2. However one line breaks - I can no longer set the size of a popup within > > the markerClick function - I get the error "quadrant has no properties". > > This is fixed in the latest SVN. I'll provide you a simple backport of > the patch you can drop into your application so you can continue using OL 2.2 > later today. I'm sorry for the inconvenience: it was entirely due to > poor testing on my part. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Thu Dec 21 09:35:11 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? In-Reply-To: <200612200008.38369.nick@hogweed.org> References: <200612200008.38369.nick@hogweed.org> Message-ID: <20061221143511.GB17151@metacarta.com> On Wed, Dec 20, 2006 at 12:08:38AM +0000, Nick Whitelegg wrote: > > I've just converted my custom "GeoRSS2" layer (a layer which can handle > retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 to > 2.2. However one line breaks - I can no longer set the size of a popup within > the markerClick function - I get the error "quadrant has no properties". > > My markerClick function is modified from the original GeoRSS.js function to > handle deleting the marker if a user is in a certain mode, and is as below. > Full code (if needed) is at http://www.free-map.org.uk/test/GeoRSS2.js. > > Is this an API change? After OpenLayers is loaded on your page, ensure that the following code is executed (possibly by putting it in a later-loaded js file, or inside your init() function): OpenLayers.Popup.AnchoredBubble.prototype.setSize = function(size) { OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments); if (this.contentDiv != null) { var contentSize = this.size.clone(); contentSize.h -= (2 * OpenLayers.Popup.AnchoredBubble.CORNER_SIZE); contentSize.h -= (2 * this.padding); this.contentDiv.style.height = contentSize.h + "px"; this.contentDiv.style.width = contentSize.w + "px"; if (this.map) { //size has changed - must redo corners this.setRicoCorners(!this.rounded); this.rounded = true; } } } This will solve the problem for your application. Regards, -- Christopher Schmidt MetaCarta From nick at hogweed.org Thu Dec 21 14:16:12 2006 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Popup.setSize() - any reason why it should break in 2.2? In-Reply-To: <20061221143511.GB17151@metacarta.com> References: <200612200008.38369.nick@hogweed.org> <20061221143511.GB17151@metacarta.com> Message-ID: <200612211916.13106.nick@hogweed.org> On Thursday 21 Dec 2006 14:35, you wrote: > On Wed, Dec 20, 2006 at 12:08:38AM +0000, Nick Whitelegg wrote: > > I've just converted my custom "GeoRSS2" layer (a layer which can handle > > retrieval of GeoRSS features within a bounding box) from OpenLayers 2.1 > > to 2.2. However one line breaks - I can no longer set the size of a popup > > within the markerClick function - I get the error "quadrant has no > > properties". > > > > My markerClick function is modified from the original GeoRSS.js function > > to handle deleting the marker if a user is in a certain mode, and is as > > below. Full code (if needed) is at > > http://www.free-map.org.uk/test/GeoRSS2.js. > > > > Is this an API change? > > After OpenLayers is loaded on your page, ensure that the following code > is executed (possibly by putting it in a later-loaded js file, or inside > your init() function): > > OpenLayers.Popup.AnchoredBubble.prototype.setSize = function(size) { > OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments); > > if (this.contentDiv != null) { > > var contentSize = this.size.clone(); > contentSize.h -= (2 * OpenLayers.Popup.AnchoredBubble.CORNER_SIZE); > contentSize.h -= (2 * this.padding); > > this.contentDiv.style.height = contentSize.h + "px"; > this.contentDiv.style.width = contentSize.w + "px"; > > if (this.map) { > //size has changed - must redo corners > this.setRicoCorners(!this.rounded); > this.rounded = true; > } > } > } > > This will solve the problem for your application. > > Regards, Hello Chris, OK - thanks for that. Nick From DCarreira at edia.pt Fri Dec 22 08:12:29 2006 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] TileCache and error "Zero length data returned from layer" Message-ID: <94C0F903807262438796839A98A9BA50015CF27B@beja001.edia.pt> I'm responding to myself - maybe this will help someone else. Tilecache wasn't working even for localhost mapservices or intranet. After reading the Tile Map Service Specification, I read the notice stating IIS does not conform to the CGI specification regarding path_info. So I followed the instructions to set this up given on the MS link (http://support.microsoft.com/kb/q184320/). After this, the error did not occur if the mapservice was on the Intranet. But I was getting no images in my map... After digging a bit more, I looked at the generated source in Firefox, and all images were being styled with 'display: none' and had a "src=tilecache.py?......" without the complete url (localhost/....). I edited the test page pointing the layer to a complete url, and finally got tilecache working. Another solution was using this line from the demo on http://labs.metacarta.com/wms-c/demo.html: OpenLayers.Tile.Image.prototype = OpenLayers.Class.inherit( OpenLayers.Tile.Image, { checkImgURL: function() {} }); Now, everything works only on intranet mapservices, and every attempt to use external mapservices resulted in the same zero length error. I'm on an ISA server lan, so I'm guessing there's a problem there. I saw many references to this issue on the net but could not figure out a solution other than installing the latest python 2.5 which didn't help. I may be wrong about the root of the problem being ISA Server/proxy, so if anyone else has an ideia about this I'd be happy to hear about it. Thanks. Duarte Carreira -----Mensagem original----- ---------------------------------------------------------------------- Date: Tue, 12 Dec 2006 19:38:47 -0000 From: "Duarte Carreira" Subject: [OpenLayers-Users] TileCache and error "Zero length data returned from layer" To: Message-ID: <94C0F903807262438796839A98A9BA50015151BA@beja001.edia.pt> Content-Type: text/plain; charset="us-ascii" I'm trying to setup TileCache under Windows + Python 2.4 + IIS 5.1 + CGI. I can get a python test page to work ok. I use the default configuration pointing to metacarta's vmap0 wms service. Then I try the example url: http://localhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS&VERSIO N=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT =256 And I get the following error: An error occurred: Zero length data returned from layer. File "C:\wms\tilecache-1.3\TileCache\Service.py", line 427, in cgiHandler format, image = service.dispatchRequest( params, path_info, host ) File "C:\wms\tilecache-1.3\TileCache\Service.py", line 383, in dispatchRequest return self.renderTile(tile, params.has_key('FORCE')) File "C:\wms\tilecache-1.3\TileCache\Service.py", line 362, in renderTile else: raise Exception("Zero length data returned from layer.") I have seen another message in the lists pointing the same error and it seems the culprit is urllib2. Is there a solution to this problem? Some additional configuration needed? Is there anyone running the same configuration successfully? Thanks, Duarte From jacopo.boari at sysgroup.it Fri Dec 22 09:38:00 2006 From: jacopo.boari at sysgroup.it (Jacopo Boari) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] OverviewMap scale Message-ID: <20061222143818.3D6714C3BC@kermit.sysgroup.it> How can I regulate descale of the OverviewMap control with a non default projection. My code is: var options = { layers: [locatorLayer], units:'m', projection: '', maxResolution: "auto" }; Why I see the OverviewMap with a different zoom level of the map? I've tried to use the maxExtent option, but the result is the same... Best regards... Jacopo Boari Sysgroup srl - Lungo Dora Colletta 113/14 - 10153 Torino tel 0112440983 fax 0112406561 e-mail jacopo.boari@sysgroup.it www.sysgroup.it From crschmidt at metacarta.com Fri Dec 22 10:01:38 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] TileCache and error "Zero length data returned from layer" In-Reply-To: <94C0F903807262438796839A98A9BA50015CF27B@beja001.edia.pt> References: <94C0F903807262438796839A98A9BA50015CF27B@beja001.edia.pt> Message-ID: <20061222150138.GA26467@metacarta.com> On Fri, Dec 22, 2006 at 01:12:29PM -0000, Duarte Carreira wrote: > I'm responding to myself - maybe this will help someone else. > > Tilecache wasn't working even for localhost mapservices or intranet. > > After reading the Tile Map Service Specification, I read the notice > stating IIS does not conform to the CGI specification regarding > path_info. So I followed the instructions to set this up given on the MS > link (http://support.microsoft.com/kb/q184320/). That's unfortunate. I'll document that in the next TileCache release. > After this, the error did not occur if the mapservice was on the > Intranet. But I was getting no images in my map... > > After digging a bit more, I looked at the generated source in Firefox, > and all images were being styled with 'display: none' and had a > "src=tilecache.py?......" without the complete url (localhost/....). > I edited the test page pointing the layer to a complete url, and finally > got tilecache working. This part is a problem with OpenLayers 2.2 -- relative URLs don't work. We've got an open bug on this that I haven't had time to review a patch on -- I'm sorry about the fact that this was causing you pain. > Another solution was using this line from the demo on > http://labs.metacarta.com/wms-c/demo.html: > > OpenLayers.Tile.Image.prototype = OpenLayers.Class.inherit( > OpenLayers.Tile.Image, { checkImgURL: function() {} }); > > Now, everything works only on intranet mapservices, and every attempt to > use external mapservices resulted in the same zero length error. If you run Python on the command line, and use urllib to open a URl which is failing, does it work? Open a command line prompt on the server, run Python, and then type: import urllib data = urllib.urlopen("http://example.com/cgi-bin/mapserv?request=GetCapabilities") print len(data.read()) If you get 0, or an exception of some kind, then this won't work, and you probably want to talk to your network administrator and ask why -- typically, this indicates that the server can not speak to port 80 outbound. Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Fri Dec 22 11:02:12 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] show waitimage for overlays Message-ID: Hi list, setting a background url for the OpenLayers' div shows an animated gif (waitimage) until the base layer is loaded, but it does not show the waitimage when overlays are loading. So I am showing a waitimage in a div, and I want to remove it when all the overlays finish loading. Is there an event I can hook into which gives me an idea when the overlays finish loading? Any help very much appreciated! Best regards, Bart From DCarreira at edia.pt Fri Dec 22 13:13:57 2006 From: DCarreira at edia.pt (Duarte Carreira) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] TileCache and error "Zero length data Message-ID: <94C0F903807262438796839A98A9BA50015CF308@beja001.edia.pt> Christopher, Thanks for your input. I've tried your python statements and got the following: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib >>> data = urllib.urlopen("http://labs.metacarta.com/wms/vmap0?REQUEST=GETCAPABI LITIES") Traceback (most recent call last): File "", line 1, in File "F:\Python25\lib\urllib.py", line 82, in urlopen return opener.open(url) File "F:\Python25\lib\urllib.py", line 190, in open return getattr(self, name)(url) File "F:\Python25\lib\urllib.py", line 334, in open_http return self.http_error(url, fp, errcode, errmsg, headers) File "F:\Python25\lib\urllib.py", line 347, in http_error result = method(url, fp, errcode, errmsg, headers) File "F:\Python25\lib\urllib.py", line 687, in http_error_407 errcode, errmsg, headers) File "F:\Python25\lib\urllib.py", line 355, in http_error_default void = fp.read() File "F:\Python25\lib\socket.py", line 290, in read data = self._sock.recv(recv_size) IOError: [Errno socket error] (10054, 'Connection reset by peer') >>> If I try with urllib2 I get a more specific error message: >>> import urllib2 >>> data = urllib2.urlopen("http://labs.metacarta.com/wms/vmap0?REQUEST=GETCAPAB ILITIES") Traceback (most recent call last): File "", line 1, in File "F:\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "F:\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "F:\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "F:\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "F:\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "F:\Python25\lib\urllib2.py", line 499, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Serve r requires authorization to fulfill the request. Access to the Web Proxy service is denied. ) Do you think this can be overcome using Python's proxy commands? Or is this something to review with our net admin? Duarte > Date: Fri, 22 Dec 2006 13:12:29 -0000 > From: "Duarte Carreira" > Subject: Re: [OpenLayers-Users] TileCache and error "Zero length data > returned from layer" > To: > Message-ID: <94C0F903807262438796839A98A9BA50015CF27B@beja001.edia.pt> > Content-Type: text/plain; charset=us-ascii > > I'm responding to myself - maybe this will help someone else. > > Tilecache wasn't working even for localhost mapservices or intranet. > > After reading the Tile Map Service Specification, I read the > notice stating IIS does not conform to the CGI specification > regarding path_info. So I followed the instructions to set > this up given on the MS link > (http://support.microsoft.com/kb/q184320/). > > After this, the error did not occur if the mapservice was on > the Intranet. But I was getting no images in my map... > > After digging a bit more, I looked at the generated source in > Firefox, and all images were being styled with 'display: > none' and had a "src=tilecache.py?......" without the > complete url (localhost/....). > I edited the test page pointing the layer to a complete url, > and finally got tilecache working. > > Another solution was using this line from the demo on > http://labs.metacarta.com/wms-c/demo.html: > > OpenLayers.Tile.Image.prototype = OpenLayers.Class.inherit( > OpenLayers.Tile.Image, { checkImgURL: function() {} }); > > Now, everything works only on intranet mapservices, and every > attempt to use external mapservices resulted in the same zero > length error. > I'm on an ISA server lan, so I'm guessing there's a problem > there. I saw many references to this issue on the net but > could not figure out a solution other than installing the > latest python 2.5 which didn't help. > I may be wrong about the root of the problem being ISA > Server/proxy, so if anyone else has an ideia about this I'd > be happy to hear about it. > > Thanks. > Duarte Carreira > > > > -----Mensagem original----- > ---------------------------------------------------------------------- > Date: Tue, 12 Dec 2006 19:38:47 -0000 > From: "Duarte Carreira" > Subject: [OpenLayers-Users] TileCache and error "Zero length data > returned from layer" > To: > Message-ID: <94C0F903807262438796839A98A9BA50015151BA@beja001.edia.pt> > Content-Type: text/plain; charset="us-ascii" > > I'm trying to setup TileCache under Windows + Python 2.4 + > IIS 5.1 + CGI. > > I can get a python test page to work ok. > > I use the default configuration pointing to metacarta's vmap0 > wms service. > > Then I try the example url: > http://localhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE= WMS&VERSIO > N=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH= > 256&HEIGHT > =256 > ON=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH =256&HEIGH > T=256> > > And I get the following error: > > An error occurred: Zero length data returned from layer. > File "C:\wms\tilecache-1.3\TileCache\Service.py", line 427, > in cgiHandler > format, image = service.dispatchRequest( params, path_info, host ) > > File "C:\wms\tilecache-1.3\TileCache\Service.py", line 383, > in dispatchRequest > return self.renderTile(tile, params.has_key('FORCE')) > > File "C:\wms\tilecache-1.3\TileCache\Service.py", line 362, > in renderTile > else: raise Exception("Zero length data returned from layer.") > > I have seen another message in the lists pointing the same > error and it seems the culprit is urllib2. > > Is there a solution to this problem? Some additional > configuration needed? Is there anyone running the same > configuration successfully? > > Thanks, > > Duarte > > > ------------------------------ > > Message: 4 > Date: Fri, 22 Dec 2006 10:01:38 -0500 > From: Christopher Schmidt > Subject: Re: [OpenLayers-Users] TileCache and error "Zero length data > returned from layer" > To: Duarte Carreira > Cc: users@openlayers.org > Message-ID: <20061222150138.GA26467@metacarta.com> > Content-Type: text/plain; charset=us-ascii > > On Fri, Dec 22, 2006 at 01:12:29PM -0000, Duarte Carreira wrote: > > I'm responding to myself - maybe this will help someone else. > > > > Tilecache wasn't working even for localhost mapservices or intranet. > > > > After reading the Tile Map Service Specification, I read the notice > > stating IIS does not conform to the CGI specification regarding > > path_info. So I followed the instructions to set this up > given on the > > MS link (http://support.microsoft.com/kb/q184320/). > > That's unfortunate. I'll document that in the next TileCache release. > > > After this, the error did not occur if the mapservice was on the > > Intranet. But I was getting no images in my map... > > > > After digging a bit more, I looked at the generated source > in Firefox, > > and all images were being styled with 'display: none' and had a > > "src=tilecache.py?......" without the complete url (localhost/....). > > I edited the test page pointing the layer to a complete url, and > > finally got tilecache working. > > This part is a problem with OpenLayers 2.2 -- relative URLs > don't work. > We've got an open bug on this that I haven't had time to > review a patch on -- I'm sorry about the fact that this was > causing you pain. > > > Another solution was using this line from the demo on > > http://labs.metacarta.com/wms-c/demo.html: > > > > OpenLayers.Tile.Image.prototype = OpenLayers.Class.inherit( > > OpenLayers.Tile.Image, { checkImgURL: function() {} }); > > > > Now, everything works only on intranet mapservices, and > every attempt > > to use external mapservices resulted in the same zero length error. > > If you run Python on the command line, and use urllib to open > a URl which is failing, does it work? Open a command line > prompt on the server, run Python, and then type: > > import urllib > data = > urllib.urlopen("http://example.com/cgi-bin/mapserv?request=Get Capabilities") > print len(data.read()) > > If you get 0, or an exception of some kind, then this won't > work, and you probably want to talk to your network > administrator and ask why -- typically, this indicates that > the server can not speak to port 80 outbound. > > Regards, > -- > Christopher Schmidt > MetaCarta > > > ------------------------------ > > Message: 5 > Date: Fri, 22 Dec 2006 17:02:12 +0100 > From: "Bart van den Eijnden (OSGIS)" > Subject: [OpenLayers-Users] show waitimage for overlays > To: users@openlayers.org > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hi list, > > setting a background url for the OpenLayers' div shows an animated gif > (waitimage) until the base layer is loaded, but it does not show the > waitimage when overlays are loading. > > So I am showing a waitimage in a div, and I want to remove it > when all the > overlays finish loading. Is there an event I can hook into > which gives me an > idea when the overlays finish loading? > > Any help very much appreciated! > > Best regards, > Bart > > > > > > ------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > End of Users Digest, Vol 3, Issue 24 > ************************************ > From noreply at geocartic.com Fri Dec 22 13:24:08 2006 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] OverviewMap scale In-Reply-To: <20061222143818.3D6714C3BC@kermit.sysgroup.it> Message-ID: <004401c725f6$686a7be0$15fea8c0@meridian> > How can I regulate descale of the OverviewMap control with a > non default projection. To use the Overview Map control with non-default map options, you have to use the latest (SVN or soon to be released 2.3) version. If you don't do SVN and can't wait for the release, you can download the source for just the overview control from: http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Control/O verviewMap.js?format=raw (overwrite your current OverviewMap.js with the downloaded one) Once you have the latest version, follow the instructions on the wiki for using non-default map options (projections, maxExtent, etc.): http://trac.openlayers.org/wiki/Control/OverviewMap If you want more control over the zoom behavior of the overview map, see that section on the same wiki page. If you want still more custom behavior, write back. Tim From post at robertbuzink.nl Fri Dec 22 15:30:17 2006 From: post at robertbuzink.nl (Robert Buzink) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] different markers for different textlayers Message-ID: <44f49ff00612221230r72e667b7j2a0bb0ff240ed6c8@mail.gmail.com> hi, I would like to have different markers for different overlays from textfiles. All markers for the overlay from textfile Restaurants.txt should be donuts for example and all markers for the overlay from textfile Houses.txt should be little houses. (The textfiles are dynamically generated and I really must use them. I can't define every location seperately in the script.) Is this possible? Robert. PS I could also rewrite the text files to xml if that's any better. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061222/4933eecb/attachment.html From crschmidt at metacarta.com Fri Dec 22 15:35:08 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] show waitimage for overlays In-Reply-To: References: Message-ID: <20061222203508.GA27439@metacarta.com> On Fri, Dec 22, 2006 at 05:02:12PM +0100, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > setting a background url for the OpenLayers' div shows an animated gif > (waitimage) until the base layer is loaded, but it does not show the > waitimage when overlays are loading. > > So I am showing a waitimage in a div, and I want to remove it when all the > overlays finish loading. Is there an event I can hook into which gives me an > idea when the overlays finish loading? Nope. OpenLayers does not currently track the number of outstanding image requests, so there is no way to know when all the images have loaded. Regards, -- Christopher Schmidt MetaCarta From jdb at mail.nerc-essc.ac.uk Fri Dec 22 15:38:13 2006 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] show waitimage for overlays In-Reply-To: <20061222203508.GA27439@metacarta.com> References: <20061222203508.GA27439@metacarta.com> Message-ID: <2bb6ee950612221238k1337ec7bva8b06e78388d7e29@mail.gmail.com> Hi all, > Nope. OpenLayers does not currently track the number of outstanding > image requests, so there is no way to know when all the images have > loaded. Just to say I'd also find it really useful if this could be added in a future release. Something for the Christmas list maybe! Regards, Jon On 12/22/06, Christopher Schmidt wrote: > On Fri, Dec 22, 2006 at 05:02:12PM +0100, Bart van den Eijnden (OSGIS) wrote: > > Hi list, > > > > setting a background url for the OpenLayers' div shows an animated gif > > (waitimage) until the base layer is loaded, but it does not show the > > waitimage when overlays are loading. > > > > So I am showing a waitimage in a div, and I want to remove it when all the > > overlays finish loading. Is there an event I can hook into which gives me an > > idea when the overlays finish loading? > > Nope. OpenLayers does not currently track the number of outstanding > image requests, so there is no way to know when all the images have > loaded. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From aeskreis at gmail.com Sat Dec 23 17:47:28 2006 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] need help with vectors Message-ID: I know the vectors are still in development but if someone could help me it would be most appreciated. I'm pretty sure my code is right, but for some reason the program keeps messing up when i try to add the features to the vector. here is the relevant code: var linearRing = new OpenLayers.Geometry.LinearRing([ new OpenLayers.Geometry.Point(195090.60388669, 1037165.33840374), new OpenLayers.Geometry.Point(195223.79377482, 1037117.84835569), new OpenLayers.Geometry.Point(195230.71396682, 1037136.86838771), new OpenLayers.Geometry.Point(195085.51383869, 1037188.31824376), new OpenLayers.Geometry.Point(195090.60388669, 1037165.33840374)]); var polygon = new OpenLayers.Geometry.Polygon([linearRing]); var vector = new OpenLayers.Layer.Vector("Vector Layer"); var feature = new OpenLayers.Feature(); feature.setGeometry(polygon); map.addLayer(vector); vector.addFeatures(feature); the error i get is : this.root has no properties the error occurs on Svg.js on line 165 does anyone have a clue as to why this isnt working? I know these coordinates are correct and the extents and everything else is correct, the only problme is this vector code. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061223/049d0340/attachment.html From anselm at gmail.com Sun Dec 24 04:52:32 2006 From: anselm at gmail.com (Anselm Hook) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] need help with vectors In-Reply-To: References: Message-ID: <2686af10612240152p3e03d358s1238ea218b5bfd58@mail.gmail.com> For this kind of answer you really need to join the #openlayers irc.freenode.net - or preferably chat.freenode.net - to be honest. All the developers are there in real time and for work that is pre-release it is really the best way to participate... Looking at your particular problem; I don't see anything wrong per se. But I don't know this code well... - a On 12/23/06, Adam Eskreis wrote: > > I know the vectors are still in development but if someone could help me > it would be most appreciated. I'm pretty sure my code is right, but for > some reason the program keeps messing up when i try to add the features to > the vector. here is the relevant code: > > var linearRing = new OpenLayers.Geometry.LinearRing([ > new OpenLayers.Geometry.Point(195090.60388669, > 1037165.33840374), > new OpenLayers.Geometry.Point(195223.79377482, > 1037117.84835569 ), > new OpenLayers.Geometry.Point(195230.71396682, > 1037136.86838771), > new OpenLayers.Geometry.Point(195085.51383869, > 1037188.31824376), > new OpenLayers.Geometry.Point(195090.60388669 , > 1037165.33840374)]); > var polygon = new OpenLayers.Geometry.Polygon([linearRing]); > var vector = new OpenLayers.Layer.Vector("Vector Layer"); > var feature = new OpenLayers.Feature(); > feature.setGeometry (polygon); > map.addLayer(vector); > vector.addFeatures(feature); > > the error i get is : > > this.root has no properties > > the error occurs on Svg.js on line 165 > > does anyone have a clue as to why this isnt working? I know these > coordinates are correct and the extents and everything else is correct, the > only problme is this vector code. > > > > > _______________________________________________ > 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/20061224/bb8e2530/attachment.html From crschmidt at metacarta.com Sun Dec 24 11:09:35 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] need help with vectors In-Reply-To: <2686af10612240152p3e03d358s1238ea218b5bfd58@mail.gmail.com> References: <2686af10612240152p3e03d358s1238ea218b5bfd58@mail.gmail.com> Message-ID: <20061224160935.GA9850@metacarta.com> On Sun, Dec 24, 2006 at 01:52:32AM -0800, Anselm Hook wrote: > For this kind of answer you really need to join the #openlayers > irc.freenode.net - or preferably chat.freenode.net - to be honest. All the > developers are there in real time and for work that is pre-release it is > really the best way to participate... Not really. Since most people are off for vaccation, that leaves me, and I know less about the vector branch than just about anyone else. Sending email to the mailing list is probably best, and then we can wait for one of the people who have been working on it to read and possibly respond. Once the vector branch is pulled into trunk, I'll have a better understanding of it, and be able to respond to more questions regarding it. For now, you're best reading the code and trying to debug it yourself, unfortunate though that may be. Regards, -- Christopher Schmidt MetaCarta From aeskreis at gmail.com Mon Dec 25 15:03:26 2006 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] Strange problem with vector layer Message-ID: Happy Holidays everyone! I am having a bit of a problem with the vector layer. I added the vector layer adn it shows it properly upon loading the page, but if i pan in any direction, the vector moves more than it should. What would cause this? How can i fix it? I am using ka-map to show the map and running ms4w. here is the relevant vector code: var linearRing = new OpenLayers.Geometry.LinearRing([ new OpenLayers.Geometry.Point(1036611.14832322, 195424.10379100), new OpenLayers.Geometry.Point(1036583.12835519, 195422.43390300), new OpenLayers.Geometry.Point(1036577.76822719, 195475.50398305), new OpenLayers.Geometry.Point(1036606.86825922, 195484.15396706), new OpenLayers.Geometry.Point(1036611.14832322, 195424.10379100), ]); var polygon = new OpenLayers.Geometry.Polygon([linearRing]); var feature = new OpenLayers.Feature(); feature.setGeometry(polygon); vector.addFeatures(feature); thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061225/385a905e/attachment.html From Marco.Zuehlke at brockmann-consult.de Wed Dec 27 04:16:43 2006 From: Marco.Zuehlke at brockmann-consult.de (=?ISO-8859-1?Q?Marco_Z=FChlke?=) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] need help with vectors In-Reply-To: References: Message-ID: <459239FB.4020007@brockmann-consult.de> Adam Eskreis wrote: > I know the vectors are still in development but if someone could help me > it would be most appreciated. I'm pretty sure my code is right, but for > some reason the program keeps messing up when i try to add the features > to the vector. here is the relevant code: > Hi Adam, try adding the command: "map.zoomToMaxExtent();" before you add any feature to the vector layer, but after you have added the vector layer to the map. For me this solved the problem. Regards, Marco -- Marco Z?hlke (Brockmann Consult) phone: +49 4152 889 312 web: http://www.brockmann-consult.de From bartvde at osgis.nl Wed Dec 27 08:02:26 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] can MouseDefaults and MouseToolbar be combined? Message-ID: Hi list, can the MouseDefaults and MouseToolbar controls be combined? If I combine them, I get a few conflicts: * in IE panning is going very slow * when using the zoombox button of the toolbar, I still need to use Shift If I just use MouseToolbar, all works as expected, but I would love to have the mousewheel functionality in there. Are these known issues, or should the two controls not be combined in an OpenLayers application? Thanks in advance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From euzuro at gmail.com Wed Dec 27 11:03:29 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] can MouseDefaults and MouseToolbar be combined? In-Reply-To: References: Message-ID: <6ae3fb590612270803o304a7ac5u7e4d4cfb17375d22@mail.gmail.com> Hi Bart, This is the [undesired] result of a recent patch we put in to trunk. Thanks for spotting this! I have reopened #448 and attached a new patch with a fix. As soon as it can get reviewed it will be back in trunk but until then you can apply the patch to your own trunk yourself. http://trac.openlayers.org/ticket/448 Sorry about the inconvenience :-/ Erik On 12/27/06, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > can the MouseDefaults and MouseToolbar controls be combined? > > If I combine them, I get a few conflicts: > > * in IE panning is going very slow > * when using the zoombox button of the toolbar, I still need to use Shift > > If I just use MouseToolbar, all works as expected, but I would love to have > the mousewheel functionality in there. > > Are these known issues, or should the two controls not be combined in an > OpenLayers application? > > Thanks in advance. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bartvde at osgis.nl Wed Dec 27 11:37:43 2006 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] zooming out when changing base layer Message-ID: <3ae3326168729e329f8fb145862de7bb@145.50.39.11> I have debugged this problem a little bit and "patched" my local version. My base layers are all WMS Untiled. What I understand from it, WMS Untiled does not inherit from FixedZoomLevels, so does not have any zoom levels. The behaviour I see (i.e. when changing base layer sometimes the map zooms out) is caused by the following call in changeBaseLayer (Map.js): this.zoomToExtent(oldBaseLayer.getExtent()); The getExtent call does give back to correct extent btw of the current map. I made the following adjustment by checking on class name, but there is probably a nicer solution to this problem: } else { if (!newBaseLayer.CLASS_NAME == 'OpenLayers.Layers.WMS.Untiled') this.zoomToExtent(oldBaseLayer.getExtent()); } Does anybody have a better idea on how to tackle this? Can we for instance check if the BaseLayer inherits from FixedZoomLevels? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Bart van den Eijnden OSGIS Naar: Erik Uzureau , Bart van den Eijnden OSGIS Cc: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] zooming out when changing base layer Datum: 11/12/06 11:40 > > Hi Erik, > > but with WMS Untiled, I do not specify an extent nor a resolution for a > layer. > > How does this relate then to WMS Untiled? Is there a way around it? > > This is my code: > > function mapinit(){ > map = new OpenLayers.Map( $('map'), { controls: [], > 'projection': 'EPSG:28992', 'units':'meters', 'maxExtent': new > OpenLayers.Bounds(-157973.103596, 300670.145842, 472056.321374, > 678687.800824) , 'maxResolution':'auto'}); var layer = new > OpenLayers.Layer.WMS.Untiled( "Topografische kaart Nederland", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", > {layers: 'AAA126,AAA127,AAA134', 'format':'image/jpeg', > 'transparent':'true'}, {'ratio':1, isBaseLayer: true} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Luchtfoto's Nederland", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/luchtfoto?", > {layers: 'AAA216', 'format':'image/jpeg', 'transparent':'true'}, {'ratio':1, > isBaseLayer: true} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Nationaal Wegen Bestand Wegen wegvakken", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/nationaalwegenbestand?", > {layers: 'AAA70', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, > isBaseLayer: false} ); > > map.addLayers([layer]); var layer = new > OpenLayers.Layer.WMS.Untiled( "Top250namen", > > "http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/topografie?", > {layers: 'AAA133', 'format':'image/gif', 'transparent':'true'}, {'ratio':1, > isBaseLayer: false} ); > > map.addLayers([layer]); if (!map.getCenter()) > map.zoomToMaxExtent(); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > map.addControl(new OpenLayers.Control.PanZoomBar()); > map.addControl(new OpenLayers.Control.MouseDefaults()); > } > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Erik Uzureau <euzuro@gmail.com> > Naar: Bart van den Eijnden OSGIS <bartvde@osgis.nl> > Cc: users@openlayers.org > Onderwerp: Re: [OpenLayers-Users] zooming out when changing base layer > Datum: 11/12/06 09:16 > > > When you switch between base layers, OpenLayers tries to find the > > nearest approximate > > zoom for the new base layer. > > > > So what is happening is that when you switch from baselayer A to baselayer > B > > > > 1) records current extent of map in baselayer A > > 2) switches to base layer B > > 3) calls zoomToExtent() on stored extent from base layer A > > > > if the resolutions/scales array for your two base layers are not the same, > > this would explain the behaviour. > > > > Note that with the commercial layers (google, yahoo, etc) we have > specifically > > hard coded the resolutions array so that it will be more consistent with > wms > > layers (due to projection differences). > > > > On 12/11/06, Bart van den Eijnden (OSGIS) &lt;bartvde@osgis.nl&gt; wrote: > > &gt; Hi list, > > &gt; > > &gt; I have 2 base layers and several overlays, all are WMS Untiled. > > &gt; > > &gt; When I change the base layer, the application zooms out. > > &gt; > > &gt; Is this a bug? > > &gt; > > &gt; Best regards, > > &gt; Bart > > &gt; > > &gt; -- > > &gt; Bart van den Eijnden > > &gt; OSGIS, Open Source GIS > > &gt; http://www.osgis.nl > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; _______________________________________________ > > &gt; Users mailing list > > &gt; Users@openlayers.org > > &gt; http://openlayers.org/mailman/listinfo/users > > &gt; > > > > > > From crschmidt at metacarta.com Wed Dec 27 12:36:06 2006 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] can MouseDefaults and MouseToolbar be combined? In-Reply-To: <6ae3fb590612270803o304a7ac5u7e4d4cfb17375d22@mail.gmail.com> References: <6ae3fb590612270803o304a7ac5u7e4d4cfb17375d22@mail.gmail.com> Message-ID: <20061227173606.GB28718@metacarta.com> On Wed, Dec 27, 2006 at 11:03:29AM -0500, Erik Uzureau wrote: > Hi Bart, > > This is the [undesired] result of a recent patch we put in to trunk. Thanks > for spotting this! > > I have reopened #448 and attached a new patch with a fix. As soon as > it can get reviewed it will be back in trunk but until then you can apply the > patch to your own trunk yourself. > > http://trac.openlayers.org/ticket/448 > > Sorry about the inconvenience :-/ This patch is now integrated into the trunk of SVN. Thanks Erik and Bart. Regards, -- Christopher Schmidt MetaCarta From euzuro at gmail.com Wed Dec 27 16:12:35 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] different markers for different textlayers In-Reply-To: <6ae3fb590612271259s3bc3bb08k2359f5360631275a@mail.gmail.com> References: <44f49ff00612221230r72e667b7j2a0bb0ff240ed6c8@mail.gmail.com> <6ae3fb590612271259s3bc3bb08k2359f5360631275a@mail.gmail.com> Message-ID: <6ae3fb590612271312u418988fdv9604cbc9b46ba5df@mail.gmail.com> Example: http://www.openlayers.org/dev/examples/markersTextLayer.html On 12/27/06, Erik Uzureau wrote: > Hi Robert, > > In fact this is not very difficult to do. You only must add a column > called 'icon' to your text file with the url of the image you wish to > use. :-) > > Erik > > > On 12/22/06, Robert Buzink wrote: > > hi, > > > > I would like to have different markers for different overlays from > > textfiles. All markers for the overlay from textfile Restaurants.txt should > > be donuts for example and all markers for the overlay from textfile > > Houses.txt should be little houses. > > > > (The textfiles are dynamically generated and I really must use them. I can't > > define every location seperately in the script.) > > > > Is this possible? > > > > Robert. > > > > PS I could also rewrite the text files to xml if that's any better. > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > From euzuro at gmail.com Wed Dec 27 15:59:40 2006 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] different markers for different textlayers In-Reply-To: <44f49ff00612221230r72e667b7j2a0bb0ff240ed6c8@mail.gmail.com> References: <44f49ff00612221230r72e667b7j2a0bb0ff240ed6c8@mail.gmail.com> Message-ID: <6ae3fb590612271259s3bc3bb08k2359f5360631275a@mail.gmail.com> Hi Robert, In fact this is not very difficult to do. You only must add a column called 'icon' to your text file with the url of the image you wish to use. :-) Erik On 12/22/06, Robert Buzink wrote: > hi, > > I would like to have different markers for different overlays from > textfiles. All markers for the overlay from textfile Restaurants.txt should > be donuts for example and all markers for the overlay from textfile > Houses.txt should be little houses. > > (The textfiles are dynamically generated and I really must use them. I can't > define every location seperately in the script.) > > Is this possible? > > Robert. > > PS I could also rewrite the text files to xml if that's any better. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > From lancelot at inetnebr.com Sat Dec 30 11:00:22 2006 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:12 2010 Subject: [OpenLayers-Users] How do we use MaxScaleDenominator and MinScaleDenominator Message-ID: <45968D16.6050504@inetnebr.com> WMS 1.3.0 has MinScaleDenominator and MaxScaleDenominator... these do not seem to correspond to setting minScale and maxScale on a layer... does anyone know the translation between them?