From JERICKS at co.pierce.wa.us Thu May 1 11:10:13 2008 From: JERICKS at co.pierce.wa.us (jericks) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] FramedCloud with Layer.Text? In-Reply-To: <20080421175446.GB11748@metacarta.com> References: <20080421175446.GB11748@metacarta.com> Message-ID: <16993296.post@talk.nabble.com> I ran into the exact same problem and came up with a small patch to OpeLayers.Layer.Text that adds popupClass as a property. When the OpenLayers.Feature object is created it's popupClass property is set. Very useful for people dependent on Text layers. I will attach the patch here, but I should probably open a ticket right? Thanks, Jared http://www.nabble.com/file/p16993296/text_popup_class_patch.patch text_popup_class_patch.patch Christopher Schmidt-4 wrote: > > On Mon, Apr 21, 2008 at 10:39:56AM -0400, Bobby H. Braswell wrote: >> >> Hi- >> >> Is there an example of using the framed cloud popups with a text layer >> in 2.6? In general can we specify the popup type when constructing a >> text layer? > > Generally, the answer is 'no, and why are you still using a Layer.Text? > Use a Layer.GML with a format: OpenLayers.Format.Text and a > selectFeature control instead.' > > I understand that this is impractical for long running applications (we > maintain backwards API compatibility for a reason, after all). > > Anyway, the following hacks will let you get something that I like a lot > better for text layers: > > OpenLayers.Feature.prototype.popupClass = > OpenLayers.Popup.FramedCloud; > > OpenLayers.Layer.Text.prototype.markerClick = function(evt) { > var sameMarkerClicked = (this == this.layer.selectedFeature); > if (this.popup) { > this.popup.toggle(); > } else { > this.layer.map.addPopup(this.createPopup(true)); > } > this.layer.selectedFeature = (!sameMarkerClicked) ? this : > null; > OpenLayers.Event.stop(evt); > } > > Good Luck, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/FramedCloud-with-Layer.Text--tp16811991p16993296.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From euzuro at gmail.com Thu May 1 11:55:45 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] FramedCloud with Layer.Text? In-Reply-To: <16993296.post@talk.nabble.com> References: <20080421175446.GB11748@metacarta.com> <16993296.post@talk.nabble.com> Message-ID: <6ae3fb590805010855q57026fc9g37ba61a4bc7e96fa@mail.gmail.com> A ticket would be great! Erik On Thu, May 1, 2008 at 10:10 AM, jericks wrote: > > I ran into the exact same problem and came up with a small patch to > OpeLayers.Layer.Text that adds popupClass as a property. When the > OpenLayers.Feature object is created it's popupClass property is set. Very > useful for people dependent on Text layers. I will attach the patch here, > but I should probably open a ticket right? > > Thanks, > Jared > > http://www.nabble.com/file/p16993296/text_popup_class_patch.patch > text_popup_class_patch.patch > > > > > > Christopher Schmidt-4 wrote: > > > > On Mon, Apr 21, 2008 at 10:39:56AM -0400, Bobby H. Braswell wrote: > >> > >> Hi- > >> > >> Is there an example of using the framed cloud popups with a text layer > >> in 2.6? In general can we specify the popup type when constructing a > >> text layer? > > > > Generally, the answer is 'no, and why are you still using a Layer.Text? > > Use a Layer.GML with a format: OpenLayers.Format.Text and a > > selectFeature control instead.' > > > > I understand that this is impractical for long running applications (we > > maintain backwards API compatibility for a reason, after all). > > > > Anyway, the following hacks will let you get something that I like a lot > > better for text layers: > > > > OpenLayers.Feature.prototype.popupClass = > > OpenLayers.Popup.FramedCloud; > > > > OpenLayers.Layer.Text.prototype.markerClick = function(evt) { > > var sameMarkerClicked = (this == this.layer.selectedFeature); > > if (this.popup) { > > this.popup.toggle(); > > } else { > > this.layer.map.addPopup(this.createPopup(true)); > > } > > this.layer.selectedFeature = (!sameMarkerClicked) ? this : > > null; > > OpenLayers.Event.stop(evt); > > } > > > > Good Luck, > > -- > > Christopher Schmidt > > MetaCarta > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > View this message in context: http://www.nabble.com/FramedCloud-with-Layer.Text--tp16811991p16993296.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From rwburgholzer at deq.virginia.gov Thu May 1 13:23:51 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] KML/GML from text file? Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D1C@deqex01.deq.local> Robert, Thanks much for your reply. While I did not go the route of manually defining my GML based on your example, what your example did was jog my memory: "where have I seen that before???" - mapserver WFS output of course. Since I have mapserver on my system, configured for WFS, I simply loaded the WFS layer in an open layers shell, then copied the GET for the layer in question out of the Firebug Console (thanks to a post by Arnd Wipperman on an earlier thread), and voila, I had myself a properly formatted GML file. What's the use if I already have mapserver? Well, I have a fairly restrictive internet setup here, so I am not able to hit any of my mapserv installs, so I am experimenting with an entirely OL approach, since that is javascript and runs on the client. So far, I am very encouraged! Thanks again to Robert and Arnd for kicking the knowledge. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: Robert Sanson [mailto:SansonR@asurequality.com] Sent: Sunday, April 27, 2008 4:45 PM To: Burgholzer,Robert; users@openlayers.org Subject: Re: [OpenLayers-Users] KML/GML from text file? Yes, managed to get it to work. I have some Java code that pulls a geometry out of a database (SDE) and writes it to a local file system file. Seems OL is fairly fussy about the structure of the GML file. Anyway, here is the OL code: var fbnd = new OpenLayers.Layer.GML("Farm boundary", "./farmfiles/" + farmid + ".xml", {style: farm_style}); map.addLayer(fbnd); And here is a sample GML (I experimented with GML structure using one of the OL examples that writes out GML to a text box, then emulated that): 1821412.509, 5534791.015 1821458.847, 5534735.59 1821598.037, 5534849.028 1821614.701, 5534862.607 1821673.566, 5534910.58 1821659.449, 5534927.465 1821655.449, 5534932.249 1821627.218, 5534966.016 1821412.509, 5534791.015 Kind regads, Robert Sanson >>> "Burgholzer,Robert" 25/04/2008 5:30 a.m. >>> Has anyone loaded a simple KML/GML layer from a local text file? Maybe this is trivial . Thanks! r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080501/069700cc/attachment.html From ary.sucaya at yahoo.com Thu May 1 18:06:02 2008 From: ary.sucaya at yahoo.com (ary sucaya) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] MapGuide Transparency Message-ID: <766138.44491.qm@web58609.mail.re3.yahoo.com> Hello group, I've included a layer from MapGuide through OpenLayers. However i couldn't set this layer into transparent layer. It raised an error. I set layer options as: var options = { isBaseLayer: false, transparent: true, buffer: 1, singleTile: true } Any idea how can i make MapGuide layer as transparent layer? My MapGuide version is 2.0 and use openLayers.js hosted vesion Thanks ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080501/6dacd52a/attachment.html From chris at powerhousetechgrp.com Thu May 1 20:09:07 2008 From: chris at powerhousetechgrp.com (chris1211) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] ArgParser not working Message-ID: <16996246.post@talk.nabble.com> I have tryed to add the ArgParser control and also tryed the permalink control and none of them will work can some one pleeeeeeeeae help me!!!!! I've been trying to figure this out for the last four days!!! WX Server
-- View this message in context: http://www.nabble.com/ArgParser-not-working-tp16996246p16996246.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bwoodall at bwoodall.org Thu May 1 20:52:40 2008 From: bwoodall at bwoodall.org (bwoodall) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] ArgParser not working In-Reply-To: <16996246.post@talk.nabble.com> References: <16996246.post@talk.nabble.com> Message-ID: <1209689560.13834.36.camel@wardrobe.dhs.org> On Thu, 2008-05-01 at 17:09 -0700, chris1211 wrote: > I have tryed to add the ArgParser control and also tryed the permalink > control and none of them will work can some one pleeeeeeeeae help me!!!!! > I've been trying to figure this out for the last four days!!! > > [.snip.] Howdy Chris, First, you might want to strip the page down to only what is needed Second, I'm not sure if you want to parse non-OL args, but if you do you can do so by using O.U.getParameters in your init() function init() { . . . var arg_pairs = new OpenLayers.Util.getParameters(); /* * arg_pairs is an JS object of Key/Value pairs */ if (arg_pairs.zip) { zip = parseInt(arg_pairs.zip); var uri = "http://someplace/cgi-bin/ConvertZip2LonLat.py?zipcode="+zip; OpenLayers.loadURL(uri, '', this, setZipCode); } else { . . . ...........Bill, From pspencer at dmsolutions.ca Fri May 2 08:03:03 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] (slightly) OT: css frameworks Message-ID: <14531403-49AB-4463-875E-BF1B3AB553F4@dmsolutions.ca> Hi, this is somewhat off topic, but since we are usually in the business of putting maps into web pages, I usually find I have to put together some kind of web page around the map and that's where I start running into trouble. While limiting myself to plain HTML tags and avoiding any kind of colour/style decisions is usually a wise idea, sometimes its nice to put some effort into the web page beyond the absolute minimum ... For those of us that are, um, designed-challenged, using a CSS framework is a great place to start. I've recently found a couple of them that might be of interest: http://code.google.com/p/blueprintcss/ "Blueprint is a CSS framework, which aims to cut down on your CSS development time. It gives you a solid CSS foundation to build your project on top of, with an easy-to-use grid, sensible typography, and even a stylesheet for printing." http://960.gs/ "The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem." Both frameworks provide a fixed column grid based on a fixed width of 960 pixels, and blueprint adds some decent choices for colors, styles etc. The fixed width thing is often not what we want for mapping sites built with OpenLayers (we want the map to fill the page and these frameworks won't do that) but occasionally you need a different approach. I put together a simple (non-mapping) page using blueprint after about 5 mins of reading the tutorial and was pretty happy with the result. I haven't tried 960.gs yet but it seems similar in concept and probably more appropriate if you just want the layout part. I haven't specifically researched other CSS frameworks so there's probably something better out there if you care to look. Cheers Paul __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From jdb at mail.nerc-essc.ac.uk Fri May 2 11:14:08 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Changing map projections for WMS layers Message-ID: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> Hi all, I am developing a WMS-based visualization site using OpenLayers and I'd like to have the capability to change the projection of the map. The map is created using EPSG:4326 but I'd like to be able to change this dynamically to EPSG:32661 (north polar stereographic). (so that I can display layers from NSIDC, amongst others: http://nsidc.org/data/atlas/ogc_services.html). I've tried changing the projection like this: map.setOptions({ projection: "EPSG:32661", maxExtent: new OpenLayers.Bounds(-10700000, -10700000, 14700000, 14700000) }); but nothing seems to happen. The map doesn't change at all, even if I zoom or pan. Images are still requested using EPSG:4326 and the extent remains unchanged. (The base layer WMS can accept either EPSG:4326 or EPSG:32661.) All the layers on my map are WMS layers. Do I need to change the projection of all the layers I'm viewing individually? If so, what is the purpose of the projection of the map object? 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 tara_athan at alt2is.com Fri May 2 12:29:14 2008 From: tara_athan at alt2is.com (Tara Athan) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] triggering a submit with permalink parameters? In-Reply-To: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> References: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> Message-ID: <481B415A.2040904@alt2is.com> I have a website which is acting as an interface to a garden-variety MySQL database ( lat/ lon fields). I have an HTML select field set to trigger reloading of the page with "onchange" (because a database query and a bunch of php is required when this parameter is changed). As it is currently implemented, the map loses its place (the center and zoom the user has navigated to) when this happens. I would like to use ArgParser to accomplish this, but I can't figure out how to pass the latest values of the map center and zoom to the form action url. I feel like I must be missing something simple- is there a straightforward way of doing this? Here's the URL of the test page http://www.alt2is.com/imcwma/copy/php/weedpoints_database/map_unverf/index2.php?userTaxon=GEMO2&lon=-123.23&lat=39.16&zoom=15 Thanks in advance for your help, Tara From geomartino at gmail.com Fri May 2 14:30:15 2008 From: geomartino at gmail.com (Martin Ouellet) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] OverviewMap: custom layer + custom projection Message-ID: <28d70b140805021130n7ac0aec8m7c0da6e9831e9ff1@mail.gmail.com> Hi all, I would like to have a custom layer (different from the baselayer) and a custom projection (same as the base layer of course) in my overviewmap: I've tried this: //baselayer based on tilecache baseLayer = new OpenLayers.Layer.WMS ( "Carte de base", [" http://osl1/tilecache/tilecache.py?", " http://osl2/tilecache/tilecache.py?", " http://osl3/tilecache/tilecache.py?", " http://osl4/tilecache/tilecache.py?" ], { layers : "siglight3", map_projection: "init=epsg:42105", transparent: "true" }, { isBaseLayer: true } ); //WMS layer for the overview var wms_ov = new OpenLayers.Layer.WMS ( "overview", "http:/...", { layers : "muncp", map_projection: "init=epsg:42105", transparent: "true", format: "gif" }, { isBaseLayer: false, singleTile: true } ); //options for the ov (from the ol wiki) var ov_options = {layers: [wms_ov], maxExtent: new OpenLayers.Bounds(30000, 75000, 1709360, 2120440), projection:"EPSG:42105", units: "m" }; //adding the control var overview = new OpenLayers.Control.OverviewMap( {mapOptions: ov_options} ); map.addControl(overview); With this configuration, I still have a popup message you tell me that the projection of the ov must be equal to the one in the baselayer (Why?). And, If a check the call made by openlayers for the ov, the SRS seem to be 4326 (why?) and the bounding box is in lat/lon (Why?). http://mdrim00-000251/MapServer5/mapserv.exe?MAP=overview.map&LAYERS=direction_territoriale&MAP_PROJECTION=init%3Depsg%3A42105&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-180,-90,332,422&WIDTH=256&HEIGHT=256 any advice on this? MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080502/c038f2b0/attachment.html From richard at winwaed.com Fri May 2 17:06:04 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Beginner Virtual Earth Problems Message-ID: <481B823C.1030402@winwaed.com> I am currently using MapServer and OpenLayers for an online mapping project to display a rain forest study area - unfortunately I'm a bit of a beginner with both! I'm currently having problems using Virtual Earth in OpenLayers: in particular switching between layers, and with VE versions. Virtual Earth isn't suitable for the main map because our study area is only about 10ha of Costa Rican rain forest - ie. the detail just isn't there. However, I am try to use Virtual Earth as an optional base map to show the study area in context. I've managed to get the OpenLayers Virtual Earth sample working with a MapServer WMS hydrology overlay ('synthetic streams'). I'm currently trying to get it to work with an alternative "outline map". Ie. there are two base layers that can be chosen with a pair of radio buttons in the LayerSwitcher: 'Virtual Earth Base Layer', and 'Outline' (WMS delivered shape file) An optional overlay is selected with a checkbox: 'Synthetic streams' (also via WMS). This is a work in progress so the colours could be improved, but my results are here: http://www.ecomapcostarica.com/map/map_beta.html Virtual Earth imagery loads okay at first. Switching to the 'Outline' works as well. However, when I switch back to Virtual Earth, it fails to re-appear. Instead, Outline is replaced with a white fill. What am I doing wrong? Or is this kind of behaviour not supported? This is my Javascript: ---- I've also tried changing the script to use v6.1 of the Virtual Earth Control, ie.: The results can be seen here: http://www.ecomapcostarica.com/map/map_ve.html The default "North America" map appears - not my selected area at all, and none of the OpenLayers controls (zoom, layer selection, etc) appear. Is v3 the latest version supported by OpenLayers? Are there any plans to update this in the near future? I see that Microsoft are actively retiring old versions of the Virtual Earth API. Thanks in advance. OpenLayers and MapServer are both capable of some pretty neat stuff - I have high hopes regarding the final result! Richard Marsden Wiwnaed Software Technology LLC http://www.winwaed.com http://www.mapping-tools.com From arnd.wippermann at web.de Fri May 2 19:14:22 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] setCenter with visible vectorlayers Message-ID: Is there a way to capture the event zoomstart (like zoomend)? The problem I display up to 100 vectorpoints at a high zoomlevel (14). Then I set center to another area of the world without changing the zoomlevel. With this action FF takes the control and I have to kill FF or wait, wait ... until FF behave normally. If I set the visibility of the vectorlayers to false before I center the map, then all works as it should be. I have looked at the documentation, but nothing found to capture a zoomstart to set the visibility to false for the vectorlayers. I hope, someone can enlighten me. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From kurt at longnow.org Sat May 3 21:55:37 2008 From: kurt at longnow.org (Kurt D. Bollacker) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Local File System Layer? Message-ID: <20080504015537.GO6170@longnow.org> I've got an unusual use for OpenLayers. I'm trying to create an image browser for a very large image-- 648000 by 648000 pixels to be exact. This image will be the "rosetta disk" that we are creating. See http://www.rosettaproject.org to check out our project. My first attempt was to hack the app at: http://www.casa.ucl.ac.uk/software/googlemapimagecutter.asp I created a bunch of image tiles at various resolutions and then was able to Use the Google Maps API to create the browser I needed, EXCEPT that the local javascript calls google.com for support functions. So even though the HTML and javascript are local and the tiles are all local, I still need internet access to view the image. OpenLayers was suggested as a replacement. What I'd like to do is build an image viewer than can run totally locally without more than a web browser (no HTTP). I was hoping there'd be a OpenLayers.Layer.LocalFileSystem class that I could use directly. I can easily slice and dice my tiles to be any size and resolution, and I'm willing to bring in additional javascript libraries. So what should I do? Am I missing something obvious? Should I try to subclass OpenLayers.Layer to use the local file sytem? Any suggestions or pointers are greatly appreciated. Thanks.. Kurt :-) From eric.c2c at gmail.com Sun May 4 07:59:17 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] setCenter with visible vectorlayers In-Reply-To: References: Message-ID: <5ec103de0805040459q4b742b35o6545e4fa1a217de9@mail.gmail.com> Hi Arnd, On Sat, May 3, 2008 at 1:14 AM, Arnd Wippermann wrote: > Is there a way to capture the event zoomstart (like zoomend)? >From the API doc: * - *movestart* triggered after the start of a drag, pan, or zoom * - *move* triggered after each drag, pan, or zoom * - *moveend* triggered after a drag, pan, or zoom completes * - *zoomend* triggered after a zoom completes * - *dragstart* triggered after the start of a drag * - *drag* triggered after a drag * - *dragend* triggered after the end of a drag In your case, using dragstart and dragend did seem the way to go to me. However, I've looked at the code (trunk) and the drag* events seem to be never triggered by OpenLayers. Does anyone know why? -- Eric From eric.c2c at gmail.com Sun May 4 08:00:41 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] (slightly) OT: css frameworks In-Reply-To: <14531403-49AB-4463-875E-BF1B3AB553F4@dmsolutions.ca> References: <14531403-49AB-4463-875E-BF1B3AB553F4@dmsolutions.ca> Message-ID: <5ec103de0805040500m1843016er720bc58e71934956@mail.gmail.com> Thanks for sharing this Paul. This is good to know. -- Eric On Fri, May 2, 2008 at 2:03 PM, Paul Spencer wrote: > Hi, > > this is somewhat off topic, but since we are usually in the business > of putting maps into web pages, I usually find I have to put together > some kind of web page around the map and that's where I start running > into trouble. While limiting myself to plain HTML tags and avoiding > any kind of colour/style decisions is usually a wise idea, sometimes > its nice to put some effort into the web page beyond the absolute > minimum ... > > For those of us that are, um, designed-challenged, using a CSS > framework is a great place to start. I've recently found a couple of > them that might be of interest: > > http://code.google.com/p/blueprintcss/ > > "Blueprint is a CSS framework, which aims to cut down on your CSS > development time. It gives you a solid CSS foundation to build your > project on top of, with an easy-to-use grid, sensible typography, and > even a stylesheet for printing." > > http://960.gs/ > > "The 960 Grid System is an effort to streamline web development > workflow by providing commonly used dimensions, based on a width of > 960 pixels. There are two variants: 12 and 16 columns, which can be > used separately or in tandem." > > Both frameworks provide a fixed column grid based on a fixed width of > 960 pixels, and blueprint adds some decent choices for colors, styles > etc. The fixed width thing is often not what we want for mapping > sites built with OpenLayers (we want the map to fill the page and > these frameworks won't do that) but occasionally you need a different > approach. > > I put together a simple (non-mapping) page using blueprint after about > 5 mins of reading the tutorial and was pretty happy with the result. > I haven't tried 960.gs yet but it seems similar in concept and > probably more appropriate if you just want the layout part. > > I haven't specifically researched other CSS frameworks so there's > probably something better out there if you care to look. > > Cheers > > Paul > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From eric.c2c at gmail.com Sun May 4 08:04:59 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Problem with projection of rasters... In-Reply-To: References: Message-ID: <5ec103de0805040504j5253b5fdla61fd50eba6b0fed@mail.gmail.com> On Tue, Apr 29, 2008 at 2:27 PM, Clemiou wrote: > > Hi all! Hi Clemiou > I come back here because I always have the same problem. > So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France). > Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator. > So, if I try to displaying my map with the Lambert II projection, I obtain the following figure: > > http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 Your link requires authentication. > > As you can see, there is a malfunction=> the repetition of a part of each tile. > > I tried to add projection and units options to my map but nothing change. I think that is a OL probleme because my map is correctly display with Mapserver and without OL. I've used OpenLayers with Lambert II layers a couple times and haven't experienced any problems. Please try isolating the problem and send some html/JS code. I'll try to assist you... Cheers, -- Eric From eric.c2c at gmail.com Sun May 4 08:14:40 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Local File System Layer? In-Reply-To: <20080504015537.GO6170@longnow.org> References: <20080504015537.GO6170@longnow.org> Message-ID: <5ec103de0805040514v783475b8uc7142677c7db3a31@mail.gmail.com> On Sun, May 4, 2008 at 3:55 AM, Kurt D. Bollacker wrote: > > I've got an unusual use for OpenLayers. I'm trying to create an image > browser for a very large image-- 648000 by 648000 pixels to be exact. > This image will be the "rosetta disk" that we are creating. See > http://www.rosettaproject.org to check out our project. > > My first attempt was to hack the app at: > > http://www.casa.ucl.ac.uk/software/googlemapimagecutter.asp > > I created a bunch of image tiles at various resolutions and then was > able to Use the Google Maps API to create the browser I needed, EXCEPT > that the local javascript calls google.com for support functions. So > even though the HTML and javascript are local and the tiles are all > local, I still need internet access to view the image. > > OpenLayers was suggested as a replacement. What I'd like to do is > build an image viewer than can run totally locally without more than a > web browser (no HTTP). I was hoping there'd be a > OpenLayers.Layer.LocalFileSystem class that I could use directly. I > can easily slice and dice my tiles to be any size and resolution, and > I'm willing to bring in additional javascript libraries. > > So what should I do? Am I missing something obvious? Should I try to > subclass OpenLayers.Layer to use the local file sytem? Any > suggestions or pointers are greatly appreciated. > > Thanks.. > > Kurt :-) Hi FireFox can read local files using the file protocol (file://), I'm not sure about other browsers. So with FireFox and Layer.TileCache or Layer.TMS you can probably meet your goal. FWIW, gdal has a utility command to generate a directory woth TMS tiles. See . TileCache also has such a utility, namely tilecache_seed.py. Hope this helps, -- Eric From eric.c2c at gmail.com Sun May 4 08:34:08 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Changing map projections for WMS layers In-Reply-To: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> References: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> Message-ID: <5ec103de0805040534n2e8a76c7v167c2910364f6e72@mail.gmail.com> On Fri, May 2, 2008 at 5:14 PM, Jon Blower wrote: > Hi all, > > I am developing a WMS-based visualization site using OpenLayers and > I'd like to have the capability to change the projection of the map. > The map is created using EPSG:4326 but I'd like to be able to change > this dynamically to EPSG:32661 (north polar stereographic). (so that > I can display layers from NSIDC, amongst others: > http://nsidc.org/data/atlas/ogc_services.html). > > I've tried changing the projection like this: > > map.setOptions({ > projection: "EPSG:32661", > maxExtent: new OpenLayers.Bounds(-10700000, -10700000, 14700000, 14700000) > }); > > but nothing seems to happen. The map doesn't change at all, even if I > zoom or pan. Images are still requested using EPSG:4326 and the > extent remains unchanged. (The base layer WMS can accept either > EPSG:4326 or EPSG:32661.) > > All the layers on my map are WMS layers. > > Do I need to change the projection of all the layers I'm viewing > individually? yes, I think so. > If so, what is the purpose of the projection of the map > object? If a layer is created without a projection specified, its projection is taken from what's specified in the map object. -- Eric From eider at fh-bingen.de Mon May 5 04:52:03 2008 From: eider at fh-bingen.de (Dipl. Inf. Carsten Eider) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Multiple layers in an overviewmap Message-ID: <481ECAB3.5060607@fh-bingen.de> Hi folks, I am looking for an working example where i can use several layers in an overviewmap at the same time My Map is baselayer layer1 layer2 layer3 Overviewmap is baselayer but I would like to have Overviewmap baselayer layer3 layer2 Any solutions available? -- Mit freundlichen Gr??en / Yours faithfully Carsten Eider Dipl. Inf. (FH) Kompetenzzentrum f?r Innovative Informationssysteme c/o Fachhochschhule Bingen / University of applied sciences Bingen Berlinstra?e 109 55411 Bingen Tel: +49 (0) 6721 / 409-179 Fax: +49 (0) 6721 / 409-158 email: eider@fh-bingen.de Internet: iis.fh-bingen.de -------------- next part -------------- A non-text attachment was scrubbed... Name: eider.vcf Type: text/x-vcard Size: 330 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080505/f4753257/eider.vcf From guillaume.sueur at neogeo-online.net Mon May 5 05:09:23 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Multiple layers in an overviewmap In-Reply-To: <481ECAB3.5060607@fh-bingen.de> References: <481ECAB3.5060607@fh-bingen.de> Message-ID: <481ECEC3.9020202@neogeo-online.net> I've never used it myself, but the OverviewMap Control has a layers property which is the array of the layers you want to be displayed in the OVMap. See http://dev.openlayers.org/docs/files/OpenLayers/Control/OverviewMap-js.html Hope that helps Guillaume Dipl. Inf. Carsten Eider a ?crit : > Hi folks, > > I am looking for an working example where i can use several layers in an > overviewmap at the same time > > My Map is > baselayer > layer1 > layer2 > layer3 > > Overviewmap is > baselayer > > but I would like to have > > Overviewmap > baselayer > layer3 > layer2 > > Any solutions available? > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From sjur.ringheim.lid at imr.no Mon May 5 06:51:54 2008 From: sjur.ringheim.lid at imr.no (Lid Sjur Ringheim) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Multiple selectfeature on one layer Message-ID: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> Hello, This was working in OpenLayers 2.5 but I can't get it to work in 2.6. I'm having a GML layer with point features that I want to put a hover and a click selectFeature control on but only the hover one seems to be working. This is the code I'm using which were working in 2.5 selfeature = new OpenLayers.Control.SelectFeature(pointlayer, { hover : true, onSelect : onFeatureSelect, onUnselect :onFeatureUnselect}); clickfeature = new OpenLayers.Control.SelectFeature(pointlayer, {onSelect : updateStationsFeature, onUnselect : updateStationsFeature}); map.addControl(clickfeature); map.addControl(selfeature); clickfeature.activate(); selfeature.activate(); In 2.6 only the first method is working the second is never used for some reason. I have checked the DOM tree and both are part of the controls array of the map object. Do anyone know a workaround for this? Maybe making two layers and having one of them use the hover version and one the click version? Best regards Sjur -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080505/2b4dfb50/attachment.html From eider at fh-bingen.de Mon May 5 06:54:14 2008 From: eider at fh-bingen.de (Dipl. Inf. Carsten Eider) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 Message-ID: <481EE756.5090207@fh-bingen.de> Hi folks, I am using EPSG:31647 (don#t aks why, our government decided to use these systems) and a overviewmap. Now the overviewmap works more like a zoom window, a unknown part is focused and displayed. Using epsg:4326 in former times worked well. Any suggestions ? -- Mit freundlichen Gr??en / Yours faithfully Carsten Eider Dipl. Inf. (FH) Kompetenzzentrum f?r Innovative Informationssysteme c/o Fachhochschhule Bingen / University of applied sciences Bingen Berlinstra?e 109 55411 Bingen Tel: +49 (0) 6721 / 409-179 Fax: +49 (0) 6721 / 409-158 email: eider@fh-bingen.de Internet: iis.fh-bingen.de -------------- next part -------------- A non-text attachment was scrubbed... Name: eider.vcf Type: text/x-vcard Size: 330 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080505/00ed33a4/eider.vcf From guillaume.sueur at neogeo-online.net Mon May 5 07:03:04 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 In-Reply-To: <481EE756.5090207@fh-bingen.de> References: <481EE756.5090207@fh-bingen.de> Message-ID: <481EE968.4030908@neogeo-online.net> maybe you can try to play with minRatio and maxRatio to have a better behaviour. Dipl. Inf. Carsten Eider a ?crit : > Hi folks, > > I am using EPSG:31647 (don#t aks why, our government decided to use > these systems) > and a overviewmap. > Now the overviewmap works more like a zoom window, a unknown part is > focused and displayed. > > Using epsg:4326 in former times worked well. > > Any suggestions ? > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From eric.c2c at gmail.com Mon May 5 16:09:26 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Multiple selectfeature on one layer In-Reply-To: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> Message-ID: <5ec103de0805051309w7e88bc01ha7d07515a80ea223@mail.gmail.com> On Mon, May 5, 2008 at 12:51 PM, Lid Sjur Ringheim wrote: > > > > > Hello, > > > > This was working in OpenLayers 2.5 but I can't get it to work in 2.6. > > > > I'm having a GML layer with point features that I want to put a hover and a > click selectFeature control on but only the hover one seems to be working. > > This is the code I'm using which were working in 2.5 > > > > selfeature = new OpenLayers.Control.SelectFeature(pointlayer, { hover : > true, onSelect : onFeatureSelect, onUnselect :onFeatureUnselect}); > > clickfeature = new OpenLayers.Control.SelectFeature(pointlayer, > {onSelect : updateStationsFeature, onUnselect : updateStationsFeature}); > > > > map.addControl(clickfeature); > > map.addControl(selfeature); > > > > clickfeature.activate(); > > selfeature.activate(); > > > > In 2.6 only the first method is working the second is never used for some > reason. I have checked the DOM tree and both are part of the controls array > of the map object. > > > > Do anyone know a workaround for this? Maybe making two layers and having one > of them use the hover version and one the click version? Hello I can confirm that there are problems. I'll try to take a look. Thanks for reporting it. -- Eric From justin.83 at gmail.com Tue May 6 01:34:55 2008 From: justin.83 at gmail.com (Justin Madex) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Base Layer made up of multiple layers Message-ID: <4718eee90805052234j14a8ac30k24b79dba7111a99a@mail.gmail.com> Hi, I want to have a base layer that is made up of three layers, the relevant layer showing depending on what scale we are zoomed in at. Example: var base = [ new OpenLayers.Layer.WMS( "map_1", WMS_URL, {layers: 'map_1', format: 'image/png' }), new OpenLayers.Layer.WMS( "map_2", WMS_URL, {layers: 'map_2',format: 'image/png'}, {minScale: 5000,maxScale: 500,units:'degrees'}), new OpenLayers.Layer.WMS( "map_3", WMS_URL, {layers: 'map_3,format: 'image/png'}, {minScale: 500,units:'degrees'}) ]; Is there a way i can change the base layer as i zoom in on the map? Thanks for your help Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080506/29439a93/attachment.html From eiclkun at gmail.com Tue May 6 02:31:35 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Display maps in OL from mapserver Message-ID: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> hi all, it's been two days, now i have to admit i am not gifted in any kind of programming at all. I stuck at the first step of using OL. after surfing the maillists and the FAQ for hours, still, i can't display my map.. first of all, i can see the map from mapserver, like http://127.1/cgi-bin/mapserv.exe?mode=map&map=/ms4w/apps/map.map i downloaded the lite.html from the tutorial and than export it to the firefox. unfortunately, although i can find openlayer's control box, but the rest are just two pink image icons. this is the image icon's link http://127.1/cgi-bin/mapserv.exe?layers=Shp_Lakes&map=map%3D%2Fms4w%2Fapps%2Fmap.map&mode=map&map_imagetype=png&mapext=0+-90+180+90&imgext=0+-90+180+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 besides, my .shp files are in wgs84 format, so i thought the projection should be right. the html code shows below,
and the mapfile (generated by qgis) # Map file created from QGIS project file C:/digital/map.qgs # Edit this file to customize for your map interface MAP NAME hzau # Map image size SIZE 2000 2000 UNITS ? EXTENT 114.327181 30.454108 114.363140 30.495525 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'wms_title' 'hzau' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map& ' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'Shp_Background' TYPE POLYGON DATA 'C:\digital\Shp_Background.shp' METADATA 'wms_title' 'Shp_Background' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Background' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 236 230 220 END END END LAYER NAME 'Shp_Buildings' TYPE POLYGON DATA 'C:\digital\Shp_Buildings.shp' METADATA 'wms_title' 'Shp_Buildings' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Buildings' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 255 255 END END END LAYER NAME 'Shp_Fields' TYPE POLYGON DATA 'C:\digital\Shp_Fields.shp' METADATA 'wms_title' 'Shp_Fields' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Fields' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 190 203 144 END END END LAYER NAME 'Shp_Lakes' TYPE POLYGON DATA 'C:\digital\Shp_Lakes.shp' METADATA 'wms_title' 'Shp_Lakes' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Lakes' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 152 178 203 END END END LAYER NAME 'Shp_Landscapes' TYPE POLYGON DATA 'C:\digital\Shp_Landscapes.shp' METADATA 'wms_title' 'Shp_Landscapes' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Landscapes' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 166 203 148 END END END LAYER NAME 'Shp_Playground' TYPE POLYGON DATA 'C:\digital\Shp_Playground.shp' METADATA 'wms_title' 'Shp_Playground' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Playground' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 254 253 214 END END END LAYER NAME 'Shp_Public_Facilities' TYPE POINT DATA 'C:\digital\Shp_Public_Facilities.shp' METADATA 'wms_title' 'Shp_Public_Facilities' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Public_Facilities' STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 101 68 76 END END END LAYER NAME 'Shp_Roads' TYPE LINE DATA 'C:\digital\Shp_Roads.shp' METADATA 'wms_title' 'Shp_Roads' END STATUS DEFAULT TRANSPARENCY 85 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Roads' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 255 255 255 COLOR 0 0 0 END END END LAYER NAME 'Shp_Roads' TYPE LINE DATA 'C:\digital\Shp_Roads.shp' METADATA 'wms_title' 'Shp_Roads' END STATUS DEFAULT TRANSPARENCY 28 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'Shp_Roads' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 17 22 7 COLOR 0 0 0 END END END LAYER NAME 'shp_fishpond' TYPE POLYGON DATA 'C:\digital\shp_fishpond.shp' METADATA 'wms_title' 'shp_fishpond' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'shp_fishpond' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 204 224 225 END END END #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END END cuz i am totally new to programming, so any information or help would be appreciated. Tks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080506/c5c783da/attachment.html From penyaskito at gmail.com Tue May 6 03:10:09 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Display maps in OL from mapserver In-Reply-To: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> References: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> Message-ID: Hi Chen, On Tue, May 6, 2008 at 8:31 AM, Chen kuja wrote: > map = new OpenLayers.Map( 'map' ); > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > "http://127.1/cgi-bin/mapserv.exe?", { layers: > 'Shp_Lakes', > map: 'map=/ms4w/apps/map.map'} ); > map.addLayer(layer); Try with > map: '/ms4w/apps/map.map'} ); > map.addLayer(layer); -- Regards, Christian L?pez Esp?nola From emanuel at intevation.de Tue May 6 03:37:50 2008 From: emanuel at intevation.de (Emanuel =?iso-8859-15?q?Sch=FCtze?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 In-Reply-To: <481EE756.5090207@fh-bingen.de> References: <481EE756.5090207@fh-bingen.de> Message-ID: <200805060937.51199.emanuel@intevation.de> Carsten, I've created a projection example with epsg 31467 and 4326 based on the frida geodata of Osnabr?ck/Germany: http://dev.openlayers.org/sandbox/emanuel/openlayers/examples/epsg-frida-demo.html Hope it can help you. Regards, Emanuel On 05.05.2008 12:54, Dipl. Inf. Carsten Eider wrote: > Hi folks, > > I am using EPSG:31647 (don#t aks why, our government decided to use > these systems) > and a overviewmap. > Now the overviewmap works more like a zoom window, a unknown part is > focused and displayed. > > Using epsg:4326 in former times worked well. > > Any suggestions ? -- Emanuel Sch?tze | ++49-541-335 08 38 | http://www.intevation.de/ Intevation GmbH, Georgstr. 4, 49074 Osnabr?ck, DE | AG Osnabr?ck, HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From jdb at mail.nerc-essc.ac.uk Tue May 6 06:47:34 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Changing map projections for WMS layers In-Reply-To: <5ec103de0805040534n2e8a76c7v167c2910364f6e72@mail.gmail.com> References: <2bb6ee950805020814x7373f7efxcf38b838e2d4acb2@mail.gmail.com> <5ec103de0805040534n2e8a76c7v167c2910364f6e72@mail.gmail.com> Message-ID: <2bb6ee950805060347v7660f1c7h1ee4de02221cabbb@mail.gmail.com> Hi Eric (and list), Thanks for this. I now have a different problem, in that map.zoomToMaxExtent() is not working as expected on my north polar stereographic layer. I have registered an event handler for map.changebaselayer that looks like this: function baseLayerChanged(event) { // Change the parameters of the map based on the new base layer map.setOptions({ projection: projCode, maxExtent: map.baseLayer.maxExtent }); map.zoomToMaxExtent(); } The base layers are set up with different projections (one in EPSG:4326, the other in EPSG:32661). Logging reveals that, when switching to EPSG:32661, the maxExtent of the map is being set correctly *but* the true extent of the map after the call to zoomToMaxExtent() is not correct: max extent of map: -10700000, -10700000, 14700000, 14700000 actual extent of map after call to zoomToMaxExtent: 1999640, 1999718.75, 2000360, 2000281.25 hence the map is only covering a very small portion of the true maximum extent. Are there other parameters that I should be setting on the base map? I am not setting resolution, minExtent or zoom levels explicitly anywhere in my code. The same thing happens if I call zoomToExtent() and pass in the bounding box explicitly. Thanks, Jon On Sun, May 4, 2008 at 1:34 PM, Eric Lemoine wrote: > On Fri, May 2, 2008 at 5:14 PM, Jon Blower wrote: > > Hi all, > > > > I am developing a WMS-based visualization site using OpenLayers and > > I'd like to have the capability to change the projection of the map. > > The map is created using EPSG:4326 but I'd like to be able to change > > this dynamically to EPSG:32661 (north polar stereographic). (so that > > I can display layers from NSIDC, amongst others: > > http://nsidc.org/data/atlas/ogc_services.html). > > > > I've tried changing the projection like this: > > > > map.setOptions({ > > projection: "EPSG:32661", > > maxExtent: new OpenLayers.Bounds(-10700000, -10700000, 14700000, 14700000) > > }); > > > > but nothing seems to happen. The map doesn't change at all, even if I > > zoom or pan. Images are still requested using EPSG:4326 and the > > extent remains unchanged. (The base layer WMS can accept either > > EPSG:4326 or EPSG:32661.) > > > > All the layers on my map are WMS layers. > > > > Do I need to change the projection of all the layers I'm viewing > > individually? > > yes, I think so. > > > > If so, what is the purpose of the projection of the map > > object? > > If a layer is created without a projection specified, its projection > is taken from what's specified in the map object. > > -- > Eric > -- -------------------------------------------------------------- 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 eiclkun at gmail.com Tue May 6 10:37:17 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Display maps in OL from mapserver In-Reply-To: References: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> Message-ID: <49b386480805060737t2efd21f5pe160ce64a6eb8898@mail.gmail.com> Thanks for your helpful tip. I saw this format from a old post, so i thought it might be the right way to do with mapfile. Anyway, after changing the code, the worldmap file(from tutorial) works pretty well. But my file's output turned into an odd way. like in this screenshot http://img.album.pchome.net/00/06/47/89/4450279983314c88777d269a340264a6.png Within the border, only a little dot exits. Projection issue, I know this from FAQ and some old posts. But still, I can't understand. My shp files were built under WGS84. And I want to integrate my base map and google earth's hybid image. So I chose longitude&latitude as my extend. Openlayer's default projection type is epsg 4326 which matches WGS84, right? Besides, the extent vaules in either my mapfile or worldmap's is in latitude&longitude format. this is image link of my mapfile's http://127.1/cgi-bin/mapserv.exe?layers=Shp_Lakes&map=%2Fms4w%2Fapps%2Fmap.map&mode=map&map_imagetype=png&mapext=112.5+22.5+123.75+33.75&imgext=112.5+22.5+123.75+33.75&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 and the mapfile MAP NAME hzau # Map image size SIZE 800 800 EXTENT 114.327181 30.454108 114.363140 30.495525 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' world map's http://127.1/cgi-bin/mapserv.exe?layers=Shp_Lakes&map=%2Fms4w%2Fapps%2F123.map&mode=map&map_imagetype=png&mapext=-90+0+-45+45&imgext=-90+0+-45+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 also the mapfile NAME world # Map image size SIZE 800 800 EXTENT -179.999900 -90 179.999900 90 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' I guess with the openlayer's default extent, the export image should be a little small, not a dot(still a dot after zooming for 5 times) Or I should just set extent manually? best wish 2008/5/6 Christian L?pez Esp?nola : > Hi Chen, > > On Tue, May 6, 2008 at 8:31 AM, Chen kuja wrote: > > map = new OpenLayers.Map( 'map' ); > > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > > "http://127.1/cgi-bin/mapserv.exe?", { layers: > > 'Shp_Lakes', > > map: 'map=/ms4w/apps/map.map'} ); > > map.addLayer(layer); > > Try with > > map: '/ms4w/apps/map.map'} ); > > map.addLayer(layer); > > > -- > Regards, > > Christian L?pez Esp?nola > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080506/d5a3b747/attachment.html From jlacroix at mapgears.com Tue May 6 10:48:24 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Display maps in OL from mapserver In-Reply-To: <49b386480805060737t2efd21f5pe160ce64a6eb8898@mail.gmail.com> References: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> <49b386480805060737t2efd21f5pe160ce64a6eb8898@mail.gmail.com> Message-ID: <48206FB8.5070108@mapgears.com> Hi, Try with the extents of your mapfile in the maxExtent option: var bounds = new OpenLayers.Bounds(114.327181, 30.454108, 114.363140, 30.495525) map = new OpenLayers.Map( 'map', {maxExtent: bounds}); Then after addLayer zoom on that extent: map.addLayer(layer); map.zoomToExtent(bounds); Julien Chen kuja wrote: > Thanks for your helpful tip. I saw this format from a old post, so i > thought it might be the right way to do with mapfile. Anyway, after > changing the code, the worldmap file(from tutorial) works pretty well. > But my file's output turned into an odd way. like in this screenshot > http://img.album.pchome.net/00/06/47/89/4450279983314c88777d269a340264a6.png > Within the border, only a little dot exits. > > Projection issue, I know this from FAQ and some old posts. But still, I > can't understand. My shp files were built under WGS84. And I want to > integrate my base map and google earth's hybid image. So I chose > longitude&latitude as my extend. Openlayer's default projection type is > epsg 4326 which matches WGS84, right? > > Besides, the extent vaules in either my mapfile or worldmap's is in > latitude&longitude format. > this is image link of my mapfile's > http://127.1/cgi-bin/mapserv.exe?layers=Shp_Lakes&map=%2Fms4w%2Fapps%2Fmap.map&mode=map&map_imagetype=png&mapext=112.5+22.5+123.75+33.75&imgext=112.5+22.5+123.75+33.75&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > and the mapfile > > MAP > NAME hzau > # Map image size > SIZE 800 800 > > EXTENT 114.327181 30.454108 114.363140 30.495525 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > > world map's > http://127.1/cgi-bin/mapserv.exe?layers=Shp_Lakes&map=%2Fms4w%2Fapps%2F123.map&mode=map&map_imagetype=png&mapext=-90+0+-45+45&imgext=-90+0+-45+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > also the mapfile > NAME world > # Map image size > SIZE 800 800 > > EXTENT -179.999900 -90 179.999900 90 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > > I guess with the openlayer's default extent, the export image should be > a little small, not a dot(still a dot after zooming for 5 times) > Or I should just set extent manually? > > best wish > > 2008/5/6 Christian L?pez Esp?nola >: > > Hi Chen, > > On Tue, May 6, 2008 at 8:31 AM, Chen kuja > wrote: > > map = new OpenLayers.Map( 'map' ); > > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > > "http://127.1/cgi-bin/mapserv.exe?", { layers: > > 'Shp_Lakes', > > map: 'map=/ms4w/apps/map.map'} ); > > map.addLayer(layer); > > Try with > > map: '/ms4w/apps/map.map'} ); > > map.addLayer(layer); > > > -- > Regards, > > Christian L?pez Esp?nola > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From arnd.wippermann at web.de Tue May 6 16:07:20 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] setCenter with visible vectorlayers In-Reply-To: <5ec103de0805040459q4b742b35o6545e4fa1a217de9@mail.gmail.com> Message-ID: Thanks Eric, I have tried movestart with not the effect I want. But after I have send the mail, I got the solution. The problem is, that FF slowed down rapidly, when I set the center of the map in a high zoomlevel to a new place (i.e. from Paris to Sydney) and have vectorfeatures in the current view of the map. Set the visibility to false is not sufficient, i have to kill the features. The point is, I take the action of setting the new center and have to do the task. Now I was able to build the code to prevend FF going to sleep. The result can be seen here : http://gis.ibbeck.de/ginfo/apps/ClickPoint/clickpoint.html Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: eric.c2c@gmail.com [mailto:eric.c2c@gmail.com] Gesendet: Sonntag, 4. Mai 2008 13:59 An: Arnd Wippermann Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] setCenter with visible vectorlayers Hi Arnd, On Sat, May 3, 2008 at 1:14 AM, Arnd Wippermann wrote: > Is there a way to capture the event zoomstart (like zoomend)? >From the API doc: * - *movestart* triggered after the start of a drag, pan, or zoom * - *move* triggered after each drag, pan, or zoom * - *moveend* triggered after a drag, pan, or zoom completes * - *zoomend* triggered after a zoom completes * - *dragstart* triggered after the start of a drag * - *drag* triggered after a drag * - *dragend* triggered after the end of a drag In your case, using dragstart and dragend did seem the way to go to me. However, I've looked at the code (trunk) and the drag* events seem to be never triggered by OpenLayers. Does anyone know why? -- Eric From justin.83 at gmail.com Tue May 6 19:25:01 2008 From: justin.83 at gmail.com (Justin Madex) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Make the base layer empty or blank Message-ID: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> Hi Is there a way to make the base layer a blank map? The reasoning is that i have multiple layers, but i dont necessarily want to make any of them a base layer. The alternative is to set the base layer based upon what scale im currently at. If i have multiple base layers, is there a way to change which layer is the current base layer depending on the current scale i am at? Thanks for your help Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080507/0e39035c/attachment.html From matthewdw at gmail.com Tue May 6 20:26:01 2008 From: matthewdw at gmail.com (Matt Williamson) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Make the base layer empty or blank In-Reply-To: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> References: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> Message-ID: Justin, I've done something sort of like this before--I just made a small transparent GIF image and set it as a Layer.Image as the base layer (stretched to some arbitrary size and bounding box). You might even be able to set it to not be visible in the Layer Switcher, but I forget the property or method to set to try that (and it might not work). The only thing you'll have to do is configure that "blank" image layer with the appropriate scales or resolutions that you want your other layers to conform to (or I think you can set these on the map directly, but I haven't tried that yet). Probably a better way, but that has at least worked for me. -Matt On May 6, 2008, at 5:25 PM, Justin Madex wrote: > Hi > > Is there a way to make the base layer a blank map? The reasoning is > that i have multiple layers, but i dont necessarily want to make any > of them a base layer. > > The alternative is to set the base layer based upon what scale im > currently at. If i have multiple base layers, is there a way to > change which layer is the current base layer depending on the > current scale i am at? > > Thanks for your help > > Justin > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From gregor at hostgis.com Tue May 6 20:29:51 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Make the base layer empty or blank In-Reply-To: References: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> Message-ID: <4820F7FF.5070702@hostgis.com> My approach is to specify an invalid WMS layer. var blank = new OpenLayers.Layer.WMS('Blank', "/cgi-bin/mapserv", {layers:'blank', format:'image/png'}, {isBaseLayer:true, displayOutsideMaxExtent:true } ); map.addLayer(blank); // now add nothing but overlays This does generate the pink boxes, but I always suppress those anyway. OpenLayers.Util.onImageLoadError = function() { }; -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From eiclkun at gmail.com Tue May 6 20:34:55 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Display maps in OL from mapserver In-Reply-To: <48206FB8.5070108@mapgears.com> References: <49b386480805052331p5627c316t10d3478486d5e6b3@mail.gmail.com> <49b386480805060737t2efd21f5pe160ce64a6eb8898@mail.gmail.com> <48206FB8.5070108@mapgears.com> Message-ID: <49b386480805061734p62665ea9x608173c87014bd83@mail.gmail.com> It WORKS~?Thanks?Julien! Although there still remains some little problems. But I know it will be alright. It's a new beginning to me. Tks again. 2008/5/6 Julien-Samuel Lacroix : > Hi, > > Try with the extents of your mapfile in the maxExtent option: > var bounds = new OpenLayers.Bounds(114.327181, 30.454108, 114.363140, > 30.495525) > map = new OpenLayers.Map( 'map', {maxExtent: bounds}); > > Then after addLayer zoom on that extent: > map.addLayer(layer); > map.zoomToExtent(bounds); > > Julien > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080507/36e0a378/attachment.html From crschmidt at metacarta.com Tue May 6 20:35:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Make the base layer empty or blank In-Reply-To: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> References: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> Message-ID: <20080507003544.GA29259@metacarta.com> On Wed, May 07, 2008 at 09:25:01AM +1000, Justin Madex wrote: > Hi > > Is there a way to make the base layer a blank map? The reasoning is that i > have multiple layers, but i dont necessarily want to make any of them a base > layer. Just use an OpenLayers.Layer, rather than a subclass: http://crschmidt.net/mapping/choropleth-mercator.html uses base = new OpenLayers.Layer("",{isBaseLayer: true}); Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Tue May 6 20:37:31 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Make the base layer empty or blank In-Reply-To: <20080507003544.GA29259@metacarta.com> References: <4718eee90805061625h179ab5bao24984858029728e4@mail.gmail.com> <20080507003544.GA29259@metacarta.com> Message-ID: <4820F9CB.5080402@hostgis.com> Christopher Schmidt wrote: > Just use an OpenLayers.Layer, rather than a subclass: > base = new OpenLayers.Layer("",{isBaseLayer: true}); Nice! I didn't know you could do that. I just KNEW that Chris would have a better way than I had found. :) -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From David at itbeyond.com.au Tue May 6 20:56:59 2008 From: David at itbeyond.com.au (David Martin) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overview Map Resolutions Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB86F@ITB-SVR-01.itbeyond.local> Hi, Can the Overview map resolutions be different than the baselayer[0] resolutions. The reason I am asking is that the overview map window is much smaller than the main map window and I want to be able to show the full country in the overview map when I expand to full extent in the basemap. The base map is using maxExtent and restricted Extents and fixed reolsutions (google duplicates - minus the international sizes). You can see an example of the current system with an Overview map that works perfectly until you want to zoom out past the lowest three resolutions on my mapserver tiles. See http://www.exploroz.com/Places/13774/WA/Neaves_Road__Power_Line_Service_ Tk.aspx - I have the Overview minimised onload so open it up and zoom in/out to see the problem. You will also be able to see the OL scripts in the source of the page. Any help would be appreciated. Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080507/22186952/attachment.html From John.Westwood at port.ac.uk Wed May 7 09:39:45 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps Message-ID: <17105133.post@talk.nabble.com> Hi, I would like to implement a special message tile like Google Maps that tells the user they have zoomed in too far. The Google Maps tile says something like: "We are sorry, but we don't have imagery at this zoom level for this region. Try zooming out for a broader look." I am using OpenLayers with TileCache and MapServer. Does anybody have any ideas on how I might be able to accompish this? Thanks very much. -- View this message in context: http://www.nabble.com/No-imagery-message-tile-like-Google-Maps-tp17105133p17105133.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Wed May 7 09:42:03 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps In-Reply-To: <17105133.post@talk.nabble.com> References: <17105133.post@talk.nabble.com> Message-ID: <20080507134203.GB9063@metacarta.com> On Wed, May 07, 2008 at 06:39:45AM -0700, zenzero-2001 wrote: > > Hi, > > I would like to implement a special message tile like Google Maps that tells > the user they have zoomed in too far. The Google Maps tile says something > like: "We are sorry, but we don't have imagery at this zoom level for this > region. Try zooming out for a broader look." > > I am using OpenLayers with TileCache and MapServer. Does anybody have any > ideas on how I might be able to accompish this? OpenLayers.Util.onImageLoadError = function() { this.style.display = ""; this.src="./nodata.png"; } -- http://www.tilecache.org/demo.html Regards, -- Christopher Schmidt MetaCarta From John.Westwood at port.ac.uk Wed May 7 09:53:03 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps In-Reply-To: <20080507134203.GB9063@metacarta.com> References: <17105133.post@talk.nabble.com> <20080507134203.GB9063@metacarta.com> Message-ID: <17105478.post@talk.nabble.com> That was quick! Thanks very much Christopher, I will give that a try. -- View this message in context: http://www.nabble.com/No-imagery-message-tile-like-Google-Maps-tp17105133p17105478.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jerome.gasperi at gmail.com Wed May 7 10:08:40 2008 From: jerome.gasperi at gmail.com (jrom) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Vector layer on top of SphericalMercator layer Message-ID: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> Hi, I am trying to reproject lat/lon vector ontop of commercial api using OpenLayers. I've spent quite a lot of time on a strange behaviour. My vector does not appear on the map when i switch on sphericalMercator to true... The problem is that the point does not appear at all on the map. However, when i switch sphericalMercator to false, it appears (but not on the right place at large scale due to projection difference) I really don't understand what i am doing wrong. I've check the projected coordinates and they are correct... Did someone experience such an issue ? Regards ps: Here is the code OpenLayers Example
For your information i'm using firefox 2.0.0.14 (inux and windows) and Safari (Leopard). Same problems on each platforms -- jrom. http://www.ombresetlumieres.com -- jrom. http://www.ombresetlumieres.com From crschmidt at metacarta.com Wed May 7 10:12:21 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Vector layer on top of SphericalMercator layer In-Reply-To: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> References: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> Message-ID: <20080507141221.GC9389@metacarta.com> On Wed, May 07, 2008 at 04:08:40PM +0200, jrom wrote: > Hi, > > I am trying to reproject lat/lon vector ontop of commercial api using > OpenLayers. > I've spent quite a lot of time on a strange behaviour. My vector does > not appear on the map when i switch on sphericalMercator to true... > > The problem is that the point does not appear at all on the map. > However, when i switch sphericalMercator to false, it appears (but not > on the right place at large scale due to projection difference) > > I really don't understand what i am doing wrong. I've check the > projected coordinates and they are correct... > > Did someone experience such an issue ? The layer is being turned off because it is 'out of range'. The reason for this is that you have not defined the spherical mercator projection propertpies on the map: this means that the overlay is pulling the defaults from the map (which are in lon/lat) and therefore has a resolutions range of 1.40625 -> some very small number, while your spherical mercator layer has a range of 150000ish -> 100ish, and the end result is that your layer is never on. Copy the options from the map creation in the spherical-mercator.html example, and add them to your map constructor, and your layer should appear. -- Chris > Regards > > ps: Here is the code > > > > OpenLayers Example > > > > >
> > > > > For your information i'm using firefox 2.0.0.14 (inux and windows) and > Safari (Leopard). Same problems on each platforms > > -- > jrom. > http://www.ombresetlumieres.com > > > > -- > jrom. > http://www.ombresetlumieres.com > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From jerome.gasperi at gmail.com Wed May 7 10:27:06 2008 From: jerome.gasperi at gmail.com (jrom) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Vector layer on top of SphericalMercator layer In-Reply-To: <20080507141221.GC9389@metacarta.com> References: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> <20080507141221.GC9389@metacarta.com> Message-ID: <7f752ed80805070727w2ab3e25ege08561e23088ccf0@mail.gmail.com> I've tried this as you can see on the attached file. In this case, the point appears on the map...but it is always on lat=0/lon=0 nevermind the value of the WKT coordinates :( On Wed, May 7, 2008 at 4:12 PM, Christopher Schmidt wrote: > On Wed, May 07, 2008 at 04:08:40PM +0200, jrom wrote: > > Hi, > > > > I am trying to reproject lat/lon vector ontop of commercial api using > > OpenLayers. > > I've spent quite a lot of time on a strange behaviour. My vector does > > not appear on the map when i switch on sphericalMercator to true... > > > > The problem is that the point does not appear at all on the map. > > However, when i switch sphericalMercator to false, it appears (but not > > on the right place at large scale due to projection difference) > > > > I really don't understand what i am doing wrong. I've check the > > projected coordinates and they are correct... > > > > Did someone experience such an issue ? > > The layer is being turned off because it is 'out of range'. The reason > for this is that you have not defined the spherical mercator projection > propertpies on the map: this means that the overlay is pulling the > defaults from the map (which are in lon/lat) and therefore has a > resolutions range of 1.40625 -> some very small number, while your > spherical mercator layer has a range of 150000ish -> 100ish, and the end > result is that your layer is never on. > > Copy the options from the map creation in the spherical-mercator.html > example, and add them to your map constructor, and your layer should > appear. > > -- Chris -- jrom. http://www.ombresetlumieres.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080507/0b48afcd/sphericalMercator.html From emanuel at intevation.de Wed May 7 10:41:28 2008 From: emanuel at intevation.de (Emanuel =?iso-8859-15?q?Sch=FCtze?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 In-Reply-To: <4821B859.4070206@fh-bingen.de> References: <481EE756.5090207@fh-bingen.de> <200805060937.51199.emanuel@intevation.de> <4821B859.4070206@fh-bingen.de> Message-ID: <200805071641.29302.emanuel@intevation.de> On 07.05.2008 16:10, Dipl. Inf. Carsten Eider wrote: > thank you for your working example, but it didn't resolve my problem. > My overviewmap works like an lens showing the center of my map (see > attached image). > Any further suggestions ? You have to define maxResolution for the overviewMap! Try it with the code of my example: http://dev.openlayers.org/sandbox/emanuel/openlayers/examples/epsg-frida-demo.html Define a option variable for the overviewmap. For maxResolution you need the horizontal extent of your bounds (here 17003.71). If your ovmap like a lens you have to turn this value. var ovmapOptions31467 = { maxResolution: 17003.71/256, }; Then add the mapOptions parameter when you call the OverviewMap constructor: map_31467.addControl(new OpenLayers.Control.OverviewMap( {mapOptions: ovmapOptions31467})); This should be the solution of your problem. Regards, Emanuel -- Emanuel Sch?tze | ++49-541-335 08 38 | http://www.intevation.de/ Intevation GmbH, Georgstr. 4, 49074 Osnabr?ck, DE | AG Osnabr?ck, HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From crschmidt at metacarta.com Wed May 7 10:50:13 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Vector layer on top of SphericalMercator layer In-Reply-To: <7f752ed80805070727w2ab3e25ege08561e23088ccf0@mail.gmail.com> References: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> <20080507141221.GC9389@metacarta.com> <7f752ed80805070727w2ab3e25ege08561e23088ccf0@mail.gmail.com> Message-ID: <20080507145013.GA5459@metacarta.com> On Wed, May 07, 2008 at 04:27:06PM +0200, jrom wrote: > I've tried this as you can see on the attached file. > In this case, the point appears on the map...but it is always on > lat=0/lon=0 nevermind the value of the WKT coordinates :( No, it ends up at x=-71, y=42: that's just very close to 0,0. The Vector layer does not reproject coordinates. If you are parsing data with a format class, you need to reproject there: specifically, you should create your format class like: wkt = new OpenLayers.Format.WKT({ internalProjection: map.getProjectionObject(), externalProjection: map.displayProjection}); Regards, -- Christopher Schmidt MetaCarta From jerome.gasperi at gmail.com Wed May 7 10:53:27 2008 From: jerome.gasperi at gmail.com (jrom) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Vector layer on top of SphericalMercator layer In-Reply-To: <20080507145013.GA5459@metacarta.com> References: <7f752ed80805070708y387b2823u448f1af8b12cacc3@mail.gmail.com> <20080507141221.GC9389@metacarta.com> <7f752ed80805070727w2ab3e25ege08561e23088ccf0@mail.gmail.com> <20080507145013.GA5459@metacarta.com> Message-ID: <7f752ed80805070753x3a403b5fif8f22fc7dbe759cb@mail.gmail.com> Great it works ! Thank you very much for your help ! Regards On Wed, May 7, 2008 at 4:50 PM, Christopher Schmidt wrote: > On Wed, May 07, 2008 at 04:27:06PM +0200, jrom wrote: > > I've tried this as you can see on the attached file. > > In this case, the point appears on the map...but it is always on > > lat=0/lon=0 nevermind the value of the WKT coordinates :( > > No, it ends up at x=-71, y=42: that's just very close to 0,0. > > The Vector layer does not reproject coordinates. If you are parsing data > with a format class, you need to reproject there: specifically, you > should create your format class like: > > wkt = new OpenLayers.Format.WKT({ > internalProjection: map.getProjectionObject(), > externalProjection: map.displayProjection}); > > Regards, > -- > Christopher Schmidt > MetaCarta > -- jrom. http://www.ombresetlumieres.com From John.Westwood at port.ac.uk Wed May 7 12:30:03 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps In-Reply-To: <20080507134203.GB9063@metacarta.com> References: <17105133.post@talk.nabble.com> <20080507134203.GB9063@metacarta.com> Message-ID: <17109121.post@talk.nabble.com> Hi, I couldn't get it to work. But I know why. It is because the MapServer WMS is not returning an error, it always returns a valid map, even it is just blank. So I need to make certain scales invalid so that when a WMS request is made for a scale that is not supported it returns an error instead of blankness. I've had a look at the WMS information on the MapServer website and I can't see how to do this. There is "wms_extent" for defining the bounding box, but nothing for scales. Thanks. -- View this message in context: http://www.nabble.com/No-imagery-message-tile-like-Google-Maps-tp17105133p17109121.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From pagameba at gmail.com Wed May 7 12:47:19 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps In-Reply-To: <17109121.post@talk.nabble.com> References: <17105133.post@talk.nabble.com> <20080507134203.GB9063@metacarta.com> <17109121.post@talk.nabble.com> Message-ID: <1ABC7DEE-197A-4F5B-AE3F-618AE91A5C7F@gmail.com> Since you are hitting mapserver anyway to generate the error message, you might as well have it generate the no data tile: LAYER NAME "nodata" STATUS ON TYPE ANNOTATION TRANSFORM FALSE # feature is in pixel space, not geographic space FEATURE POINTS 128 128 # middle of a 256x256 tile draw END TEXT "No Data Available" END CLASS MINSCALE 1 MAXSCALE 20000 # below this scale, there is no data LABEL FONT "arial" #defined in fonts.txt TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUND 255 255 255 FORCE TRUE END END END (adapted from http://mapserver.gis.umn.edu/docs/faq/copyright-layer) Cheers Paul On 7-May-08, at 12:30 PM, zenzero-2001 wrote: > > Hi, > > I couldn't get it to work. But I know why. It is because the > MapServer WMS > is not returning an error, it always returns a valid map, even it is > just > blank. > > So I need to make certain scales invalid so that when a WMS request > is made > for a scale that is not supported it returns an error instead of > blankness. > I've had a look at the WMS information on the MapServer website and > I can't > see how to do this. There is "wms_extent" for defining the bounding > box, but > nothing for scales. > > Thanks. > -- > View this message in context: http://www.nabble.com/No-imagery-message-tile-like-Google-Maps-tp17105133p17109121.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From miles.togoe at gmail.com Wed May 7 13:44:48 2008 From: miles.togoe at gmail.com (MilesTogoe) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] kml offline Message-ID: <4821EA90.2040001@gmail.com> Does the kml feature display all of the "new open" kml standard ? Does the kml display work offline ? When I'm offline, the kml example seems to show a few polylines but does not show all the polylines in the file and does not have the popups working (v 2.6) From crschmidt at metacarta.com Wed May 7 14:01:11 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] kml offline In-Reply-To: <4821EA90.2040001@gmail.com> References: <4821EA90.2040001@gmail.com> Message-ID: <20080507180111.GA21360@metacarta.com> On Wed, May 07, 2008 at 11:44:48AM -0600, MilesTogoe wrote: > Does the kml feature display all of the "new open" kml standard ? No. Nor does i display all of *any* KML standard. > Does the kml display work offline ? To the same extent it will online, yes. If your KML references online content (like icons), those will not be visible if you are offline. > When I'm offline, the kml example seems to show a few polylines but > does not show all the polylines in the file and does not have the > popups working (v 2.6) You say 'the KML example'. Which one? There is no KML example with polylines and popups, as far as I know. Regards, -- Christopher Schmidt MetaCarta From chris at powerhousetechgrp.com Wed May 7 14:17:23 2008 From: chris at powerhousetechgrp.com (chris1211) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Geoserver Message-ID: <17111295.post@talk.nabble.com> I have been using my geoserver that is proxyed throught apache its been working fine now i get a ? Could not determine service error using the demo and openlayers to view the map but when i access it directly on port 8080 every thing works fine? -- View this message in context: http://www.nabble.com/Geoserver-%3Cows%3AExceptionReport-version%3D%221.0.0%22-xsi%3AschemaLocation%3D%22http%3A--www.opengis.net-ows-http%3A--192.168.1.192%3A80-geoserver-schemas-ows-1.0.0-owsExceptionReport.xsd%22%3E-tp17111295p17111295.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From miles.togoe at gmail.com Wed May 7 15:16:36 2008 From: miles.togoe at gmail.com (MilesTogoe) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] kml offline In-Reply-To: <20080507180111.GA21360@metacarta.com> References: <4821EA90.2040001@gmail.com> <20080507180111.GA21360@metacarta.com> Message-ID: <48220014.4020000@gmail.com> Christopher Schmidt wrote: > On Wed, May 07, 2008 at 11:44:48AM -0600, MilesTogoe wrote: > >> Does the kml feature display all of the "new open" kml standard ? >> > > No. Nor does i display all of *any* KML standard. > well I meant now that KML is a standard of the OGC (I didn't know if it changed from the Google code). > >> Does the kml display work offline ? >> > > To the same extent it will online, yes. If your KML references online > content (like icons), those will not be visible if you are offline. > sure, I understand > >> When I'm offline, the kml example seems to show a few polylines but >> does not show all the polylines in the file and does not have the >> popups working (v 2.6) >> > > You say 'the KML example'. Which one? There is no KML example with > polylines and popups, as far as I know. > well whatever you call this one: 41 KML Layer Example kml-layer.html I thought lines.kml had a couple of popups. From crschmidt at metacarta.com Wed May 7 15:33:08 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] kml offline In-Reply-To: <48220014.4020000@gmail.com> References: <4821EA90.2040001@gmail.com> <20080507180111.GA21360@metacarta.com> <48220014.4020000@gmail.com> Message-ID: <20080507193308.GA21456@metacarta.com> On Wed, May 07, 2008 at 01:16:36PM -0600, MilesTogoe wrote: > Christopher Schmidt wrote: > >On Wed, May 07, 2008 at 11:44:48AM -0600, MilesTogoe wrote: > > > >>Does the kml feature display all of the "new open" kml standard ? > >> > > > >No. Nor does i display all of *any* KML standard. > > > well I meant now that KML is a standard of the OGC (I didn't know if it > changed from the Google code). Right. The OpenLayers KML code hsa never supported 'all' (or even 'most') of any KML spec. KML is big. OpenLayers is a 2D geodata viewing library. There is a lot that OpenLayers has no need to support, and a significant amount of stuff that although it would make sense to support, we don't. That includes a number of 2.2 features, and a number of 2.1 features. Since 2.2 is not backwards incompatible with 2.1, there isn't any change in what OpenLayers supports in 2.2 docs, as far as I know. > >>When I'm offline, the kml example seems to show a few polylines but > >>does not show all the polylines in the file and does not have the > >>popups working (v 2.6) > >> > > > >You say 'the KML example'. Which one? There is no KML example with > >polylines and popups, as far as I know. > > > well whatever you call this one: > 41 KML Layer Example kml-layer.html > > > I thought lines.kml had a couple of popups. It may, but that example doesn't do popups. The only KML example in OpenLayers which does popups is the sundials.html example. Regards, -- Christopher Schmidt MetaCarta From kusum at infobase.in Thu May 8 01:15:34 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Data coversion and showing on map References: <4718eee90805052234j14a8ac30k24b79dba7111a99a@mail.gmail.com> Message-ID: <8F0968ED9009488FABACCE64E4E1D9ED@kusum> Hii All, I am working these days on an application which I want to be able to load and show any kind of data supported .like if i give the path of a file it is able to load it and show me the maps. when a map is shown and I want to see adding someother data to it ,I just provide it a file and it shows data on map Basically may be there needs to be some converter The converter u explained on openlayers site seems to be a very useful tool. But the data conversions example urls u have mentioned above dont work http://dev.openlayers.org/sandbox/crschmidt/projection/examples/convert-data.html may be its removed from that place. Pls suggest how to proceed....... Thanks in advance.. Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080508/89b1fe0f/attachment.html From eider at fh-bingen.de Thu May 8 07:30:32 2008 From: eider at fh-bingen.de (Dipl. Inf. Carsten Eider) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 In-Reply-To: <200805071641.29302.emanuel@intevation.de> References: <481EE756.5090207@fh-bingen.de> <200805060937.51199.emanuel@intevation.de> <4821B859.4070206@fh-bingen.de> <200805071641.29302.emanuel@intevation.de> Message-ID: <4822E458.6090801@fh-bingen.de> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: eider.vcf Type: text/x-vcard Size: 330 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080508/c16373a5/eider.vcf From emanuel at intevation.de Thu May 8 08:03:06 2008 From: emanuel at intevation.de (Emanuel =?iso-8859-15?q?Sch=FCtze?=) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Overviewmap using epsg.31467 In-Reply-To: <4822E458.6090801@fh-bingen.de> References: <481EE756.5090207@fh-bingen.de> <200805071641.29302.emanuel@intevation.de> <4822E458.6090801@fh-bingen.de> Message-ID: <200805081403.07431.emanuel@intevation.de> On 08.05.2008 13:30, Dipl. Inf. Carsten Eider wrote: > It works now! THX > > But i don't understand why i do have to add these extraoptions within > the constructor when using epsg:31467 whereas > in epsg:4326 it works automatically? To get the same resolution for the overviewmap in epsg 4326, you _have to_ define the mapOptions, too (of course with an other value as for epsg 31467). Try it: Obmit the maxResolution for 4326 ovmap in my example. You'll see that the ovmap isn't really useful (because very small) ... > maybe it is a bug ? No, I don't think that is a bug. Emanuel -- Emanuel Sch?tze | ++49-541-335 08 38 | http://www.intevation.de/ Intevation GmbH, Georgstr. 4, 49074 Osnabr?ck, DE | AG Osnabr?ck, HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From John.Westwood at port.ac.uk Thu May 8 09:47:41 2008 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] No imagery message tile like Google Maps In-Reply-To: <1ABC7DEE-197A-4F5B-AE3F-618AE91A5C7F@gmail.com> References: <17105133.post@talk.nabble.com> <20080507134203.GB9063@metacarta.com> <17109121.post@talk.nabble.com> <1ABC7DEE-197A-4F5B-AE3F-618AE91A5C7F@gmail.com> Message-ID: <17125305.post@talk.nabble.com> I got it to work using the MapServer method, after I removed the "BACKGROUND" command. However, because I have a large tilecache buffer the text does not appear on every tile. I would rather get it to work the other way, thus bypassing tilecache. But to do this I need MapServer to generate an exception when a map is requested at an unsupported scale. Thanks for your suggestion. Since you are hitting mapserver anyway to generate the error message, you might as well have it generate the no data tile: LAYER NAME "nodata" STATUS ON TYPE ANNOTATION TRANSFORM FALSE # feature is in pixel space, not geographic space FEATURE POINTS 128 128 # middle of a 256x256 tile draw END TEXT "No Data Available" END CLASS MINSCALE 1 MAXSCALE 20000 # below this scale, there is no data LABEL FONT "arial" #defined in fonts.txt TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUND 255 255 255 FORCE TRUE END END END (adapted from http://mapserver.gis.umn.edu/docs/faq/copyright-layer) Cheers Paul -- View this message in context: http://www.nabble.com/No-imagery-message-tile-like-Google-Maps-tp17105133p17125305.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From giohappy at gmail.com Thu May 8 10:48:42 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] check line intersection while polygon editing Message-ID: Is there in the API a ready-to-use function to check if lines intersect while editing a polygonal geometry? I was thinking to something like the isSimple function of GEOS (also used by PostGIS), but that would raise a callback if one line touches another (given a certain tolerance) while editing, not at the end. Giovanni From crschmidt at metacarta.com Thu May 8 10:59:49 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] check line intersection while polygon editing In-Reply-To: References: Message-ID: <20080508145949.GA12085@metacarta.com> On Thu, May 08, 2008 at 04:48:42PM +0200, G. Allegri wrote: > Is there in the API a ready-to-use function to check if lines > intersect while editing a polygonal geometry? Not as far as I'm aware; however, there is geometry.intersects(), which you might be able to use to loop through a polygon and test all the segments of a line for intersection? I'm not entirely sure though. Regards, -- Christopher Schmidt MetaCarta From richard.greenwood at gmail.com Thu May 8 11:20:46 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] OpenLayers + dBox + Postgres text search Message-ID: I had a bad link in the site below, which I have fixed. I've been working on an OpenLayers site that incorporates the dBox tree legend that is popular with many MapServer users. dBox is based on YUI and was developed by Steve Lime and others at the Minnesota DNR. The site is still pretty sloppy but may be of interest: http://www2.tetonwyo.org/mapserver/ol.html Also of possible interest is the use of the new PostgreSQL 8.3 full text search. -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From aschwartz at solidworks.com Thu May 8 11:42:26 2008 From: aschwartz at solidworks.com (Alexander Schwartz) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] OpenLayers Map of building *interior* Message-ID: Hello All! You have a great community here for openlayers users. I have a question, if anyone knows of a way to accomplish what I want to do. Basically I want to make a map of our office building, as the interior is highly complex (none of the hallways are parallel nor perpendicular to the exterior walls!). So I am aiming to create a 3d scene of the building with the roof cut off, and then place that as a 'background', so I can then set up points of interest on the map. The end goal is to help new employees find their way around the building, as most people get lost, even if they've been here a few weeks/months :) So can I make OpenLayers skip the whole GPS-based earth map and use my own flat scene as a background on which I can start building my map? The whole thing should be deceptively simple and will use only select features from OL. I'm a beginner but am not afraid to go through tutorials and explore on my own, so any help would be appreciated. Thank you. -Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080508/195cf59c/attachment.html From giohappy at gmail.com Thu May 8 12:37:52 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] check line intersection while polygon editing In-Reply-To: <20080508145949.GA12085@metacarta.com> References: <20080508145949.GA12085@metacarta.com> Message-ID: > Not as far as I'm aware; however, there is geometry.intersects(), which > you might be able to use to loop through a polygon and test all the > segments of a line for intersection? I'm not entirely sure though. I knew geometry.intersects()... I have to find an efficient way to use it. I'll give a try using it inside the AddPoint function within OpenLayers.Handler.Point, starting withh the Path Handler for simplicity. I think I will do the following: 1. Extract tha last segment from the Line Geometry collection. 2 . Create a clone of the Line and remove the last component from it. 3. Verify the Geometry.intersects() between the two. This should avoi the use of a loop... From pagameba at gmail.com Thu May 8 13:13:14 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] OpenLayers Map of building *interior* In-Reply-To: References: Message-ID: Hi Alex, check out this demo: http://tilecache.org/demos/mario.html Basically, you don't have to do anything different. You need a tile source and a reference system which can be just pixels. There is an image layer example in openlayers that you can use, you would just set the extent to be 0,0,, and put points on interest on at specific pixel coordinates (even though you are using the LonLat class, its just a position and doesn't require real coordinates) Cheers Paul On 8-May-08, at 11:42 AM, Alexander Schwartz wrote: > Hello All! > > You have a great community here for openlayers users. I have a > question, if anyone knows of a way to accomplish what I want to do. > > Basically I want to make a map of our office building, as the > interior is highly complex (none of the hallways are parallel nor > perpendicular to the exterior walls!). So I am aiming to create a 3d > scene of the building with the roof cut off, and then place that as > a 'background', so I can then set up points of interest on the map. > The end goal is to help new employees find their way around the > building, as most people get lost, even if they've been here a few > weeks/months :) > > So can I make OpenLayers skip the whole GPS-based earth map and use > my own flat scene as a background on which I can start building my > map? The whole thing should be deceptively simple and will use only > select features from OL. > > I'm a beginner but am not afraid to go through tutorials and explore > on my own, so any help would be appreciated. Thank you. > > -Alex > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From NathanB at lawtonprinting.com Thu May 8 19:01:06 2008 From: NathanB at lawtonprinting.com (Nathan Boettcher) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Using Custom Cartography Message-ID: <011201c8b15f$65727af0$5c01a8c0@lp.local> New to the list and mapping (other than using software and navigation for camping/hiking/etc). I have special cartography that I would like to use with OpenLayers but I am unsure exactly where to start. At this point I have a single file and I am not sure what program it comes out of. I currently use a custom solution that displays maps similar to OpenLayers and Google, but without a WMS or TMS backend. The maps are sliced in Photoshop for different zoom levels. What I would like to do is use something like a WMS server or TileCache to serve tile sets of these maps via OpenLayers. What I can't find for the life of me is direction on how to take these custom maps and slice them up to work with TileCache or a WMS server. I found the mailing list post about the Avalon map and using TileChache which is supposed to be able to do what I'm talking about, but currently I have not had the opportunity to set up cgi on my webserver. (yes, it's IIS and it's not my fault.wasn't my decision) I would GREATLY appreciate any help or direction on how to take a single large map (no GIS data or anything, just an image) and get it set up into a TileCache or WMS server for use with OpenLayers. Thanks in advance, -Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080508/0a774fa7/attachment.html From giohappy at gmail.com Thu May 8 19:27:09 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Line Intersaction demo Message-ID: I've prepared a simple demo to check line intersection. Next days I will produce one for polygon editing... http://www.geospatial.it/allegri/OL/LineIntersection2.html Giovanni From bjorn at thematicmapping.org Thu May 8 19:53:55 2008 From: bjorn at thematicmapping.org (Bjorn Sandvik) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Using Custom Cartography In-Reply-To: <011201c8b15f$65727af0$5c01a8c0@lp.local> References: <011201c8b15f$65727af0$5c01a8c0@lp.local> Message-ID: <48239293.80504@thematicmapping.org> Nathan, You might also use GDAL2Tiles: http://blog.thematicmapping.org/2008/03/generating-map-tiles-with-gdal2tiles.html Bjorn Nathan Boettcher wrote: > > New to the list and mapping (other than using software and navigation > for camping/hiking/etc). I have special cartography that I would like > to use with OpenLayers but I am unsure exactly where to start. At this > point I have a single file and I am not sure what program it comes out > of. I currently use a custom solution that displays maps similar to > OpenLayers and Google, but without a WMS or TMS backend. The maps are > sliced in Photoshop for different zoom levels. What I would like to do > is use something like a WMS server or TileCache to serve tile sets of > these maps via OpenLayers. What I can?t find for the life of me is > direction on how to take these custom maps and slice them up to work > with TileCache or a WMS server. I found the mailing list post about > the Avalon map and using TileChache which is supposed to be able to do > what I?m talking about, but currently I have not had the opportunity > to set up cgi on my webserver. (yes, it?s IIS and it?s not my > fault?wasn?t my decision) > > I would GREATLY appreciate any help or direction on how to take a > single large map (no GIS data or anything, just an image) and get it > set up into a TileCache or WMS server for use with OpenLayers. > > Thanks in advance, > > -Nathan > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From giohappy at gmail.com Thu May 8 20:42:42 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Line Intersaction demo In-Reply-To: References: Message-ID: I've finished a demo for polygon intersection too... http://www.geospatial.it/allegri/OL/PolygonIntersection.html Giovanni From woodbri at swoodbridge.com Thu May 8 22:16:48 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:17 2010 Subject: [OpenLayers-Users] Line Intersaction demo In-Reply-To: References: Message-ID: <4823B410.5000202@swoodbridge.com> G. Allegri wrote: > I've finished a demo for polygon intersection too... > http://www.geospatial.it/allegri/OL/PolygonIntersection.html Giovanni, Sweet! this is a nice add-on to the vector creation tools. Something similar to be done for the line and polygon editing tools. Thank you for sharing, -Steve W. From luca.casagrande at gmail.com Fri May 9 04:05:35 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Line Intersaction demo In-Reply-To: References: Message-ID: <8d09169d0805090105g27cb0952o36c893e2d5803a45@mail.gmail.com> On Fri, May 9, 2008 at 1:27 AM, G. Allegri wrote: > I've prepared a simple demo to check line intersection. Next days I > will produce one for polygon editing... > http://www.geospatial.it/allegri/OL/LineIntersection2.html > > Giovanni > Really great work! Thanks for sharing it with us. Ciao Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080509/f7a14d86/attachment.html From tom.dean at jdi-solutions.co.uk Fri May 9 10:20:34 2008 From: tom.dean at jdi-solutions.co.uk (Tom (JDi Solutions)) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] WFS points for markers and popups Message-ID: <4fe6dd700805090720m34f04facl8e405f6c877b03e5@mail.gmail.com> Hi all, I've googled and searched the examples and mail archives for the solution for this but can't quite find precisely what I'm looking for so I wonder if someone could help out? I have so far managed to get a standard OpenLayers setup and added a WMS base layer and a WFS layer which returns 2 pieces of data, a point geometry (GEOLOC) and a site reference (SITE_REF) using the following code: var layer2= new OpenLayers.Layer.WFS('Points', 'http://mygeoserver/geoserver/wfs?',{request:'GetFeature',PropertyName:'GEOLOC,SITE_REF',typeName:'gndp:points',isBaseLayer:'false',extractAttributes:'true'}); and that adds a layer of markers to the map which is great. What I now want is to add popups to these markers which simply displays the SITE_REF (I'll later change this to some slightly more glamorous HTML but for now that will do. It seems like I may have to use featureClass: OpenLayers.Feature.WFS as shown in the example here: http://openlayers.org/dev/examples/wfs.html but that appears to give the same functionality I already have. There is a suggestion to subclass OpenLayers.Feature.WFS in order to add a popup but my js skills are weak and I don't get how to do this. Can someone give an example? Which methods need to be overridden and how do I get my data into the popup? Furthermore, is it possible to load the WFS layer as a tiled layer so I can cache the results? and how do I set a different icon? thanks in advance, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080509/7b0360e4/attachment.html From rwburgholzer at deq.virginia.gov Fri May 9 10:42:30 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] WFS points for markers and popups References: <4fe6dd700805090720m34f04facl8e405f6c877b03e5@mail.gmail.com> Message-ID: <6C097DA58429B743A67070F98BE73A37025DD749@deqex01.deq.local> Tom, You may first want to look at the popups demo, popups.html and the textmarkers demo, markersTextLayer.html, in the example folder of the OpenLayers distro. It would seem that this would be fairly easy to add to a WMS layer. r.b. -----Original Message----- From: users-bounces@openlayers.org on behalf of Tom (JDi Solutions) Sent: Fri 5/9/2008 10:20 AM To: users@openlayers.org Cc: Subject: [OpenLayers-Users] WFS points for markers and popups Hi all, I've googled and searched the examples and mail archives for the solution for this but can't quite find precisely what I'm looking for so I wonder if someone could help out? I have so far managed to get a standard OpenLayers setup and added a WMS base layer and a WFS layer which returns 2 pieces of data, a point geometry (GEOLOC) and a site reference (SITE_REF) using the following code: var layer2= new OpenLayers.Layer.WFS('Points', 'http://mygeoserver/geoserver/wfs?',{request:'GetFeature',PropertyName:'GEOLOC,SITE_REF',typeName:'gndp:points',isBaseLayer:'false',extractAttributes:'true'}); and that adds a layer of markers to the map which is great. What I now want is to add popups to these markers which simply displays the SITE_REF (I'll later change this to some slightly more glamorous HTML but for now that will do. It seems like I may have to use featureClass: OpenLayers.Feature.WFS as shown in the example here: http://openlayers.org/dev/examples/wfs.html but that appears to give the same functionality I already have. There is a suggestion to subclass OpenLayers.Feature.WFS in order to add a popup but my js skills are weak and I don't get how to do this. Can someone give an example? Which methods need to be overridden and how do I get my data into the popup? Furthermore, is it possible to load the WFS layer as a tiled layer so I can cache the results? and how do I set a different icon? thanks in advance, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080509/c0dfc8b2/attachment.html From tom.dean at jdi-solutions.co.uk Fri May 9 11:25:52 2008 From: tom.dean at jdi-solutions.co.uk (Tom (JDi Solutions)) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] WFS points for markers and popups In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD749@deqex01.deq.local> References: <4fe6dd700805090720m34f04facl8e405f6c877b03e5@mail.gmail.com> <6C097DA58429B743A67070F98BE73A37025DD749@deqex01.deq.local> Message-ID: <4fe6dd700805090825p376cacf5k7c6e167c676b9740@mail.gmail.com> Hi Robert, thanks for the quick response. I have looked at the 2 examples you suggested and as far as I can see they are ideal for small datasets which can be loaded all at once but I am using WFS specifically because the dataset is fairly large (a few thousand points) and as such I only want OpenLayers to request as much as the user is viewing on screen. When the user zooms right out I'm going to remove them altogether so at any point they will only see a hundred or so at most. On Fri, May 9, 2008 at 3:42 PM, Burgholzer,Robert < rwburgholzer@deq.virginia.gov> wrote: > Tom, > You may first want to look at the popups demo, popups.html and the > textmarkers demo, markersTextLayer.html, in the example folder of the > OpenLayers distro. > > It would seem that this would be fairly easy to add to a WMS layer. > > r.b. > > > > -----Original Message----- > From: users-bounces@openlayers.org on behalf of Tom (JDi Solutions) > Sent: Fri 5/9/2008 10:20 AM > To: users@openlayers.org > Cc: > Subject: [OpenLayers-Users] WFS points for markers and popups > > Hi all, > > I've googled and searched the examples and mail archives for the solution > for this but can't quite find precisely what I'm looking for so I wonder if > someone could help out? > > I have so far managed to get a standard OpenLayers setup and added a WMS > base layer and a WFS layer which returns 2 pieces of data, a point geometry > (GEOLOC) and a site reference (SITE_REF) using the following code: > > var layer2= new OpenLayers.Layer.WFS('Points', > 'http://mygeoserver/geoserver/wfs?' > ,{request:'GetFeature',PropertyName:'GEOLOC,SITE_REF',typeName:'gndp:points',isBaseLayer:'false',extractAttributes:'true'}); > > and that adds a layer of markers to the map which is great. What I now > want > is to add popups to these markers which simply displays the SITE_REF (I'll > later change this to some slightly more glamorous HTML but for now that > will > do. > It seems like I may have to use featureClass: OpenLayers.Feature.WFS as > shown in the example here: http://openlayers.org/dev/examples/wfs.html but > that appears to give the same functionality I already have. There is a > suggestion to subclass OpenLayers.Feature.WFS in order to add a popup but > my > js skills are weak and I don't get how to do this. Can someone give an > example? Which methods need to be overridden and how do I get my data into > the popup? > > Furthermore, is it possible to load the WFS layer as a tiled layer so I can > cache the results? and how do I set a different icon? > > thanks in advance, > > Tom > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080509/1ee85847/attachment.html From pramsey at cleverelephant.ca Fri May 9 12:33:19 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] FOSS4G 2008 - Call for Papers Message-ID: <30fe546d0805090933t63a74403q7053074ca6863291@mail.gmail.com> Hi guys, this just in from the 2008 conference committee: the call for papers deadline approaches! -- Free and Open Source Geospatial 2008, Cape Town, South Africa. September 29 - Oct 3 2008. Reminder: The paper / presentation submission deadline is this coming Monday 12 May. Go to http://www.foss4g2008.org and click on 'Call for Papers'. Early-bird registration closes on 15th June, so register soon! FOSS4G is renowned for its hands-on WORKSHOPS and LABS. 2008 is no exception. The Workshop/labs track has been going well in terms of submissions. We have (as of 9th May 2008) 26 interesting and relevant submissions to choose from, ranging across a wide spectrum of GIS topics. Desktop GIS (with spatial analysis and geovisualization to the fore) is a common theme and there is a strong representation from the broad Internet GIS field (web map servers, rich internet applications/web clients, OGC web services). Themes also making an appearance are geoportals, metadata, spatial ETL and the use of spatial databases. There is also some focus on programming/scripting. The emphasis is heavily on showing what is possible with FOSS4G through practical "how-to's", getting software/services up and running quickly and trying them out. Many of the workshops emphasise the excellent Java-based tools and frameworks. 90 minute Labs are included in the core conference package. Register for the full 5 day package and get to attend up to three 4 hour workshops free! Submit your abstract soon. Come and have a bash in Cape Town. Gavin Fleming FOSS4G 2008 Conference Chair www.foss4g2008.org From giohappy at gmail.com Fri May 9 13:02:10 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Line Intersaction demo In-Reply-To: <4823B410.5000202@swoodbridge.com> References: <4823B410.5000202@swoodbridge.com> Message-ID: > Something similar to be done for the line and polygon editing tools. I'm working on it. Intersection detection already done, now I have to manage the Drag control... From tschaub at openplans.org Fri May 9 13:03:17 2008 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] by example Message-ID: <482483D5.1000803@openplans.org> Hey- So, I gave the examples a bit of a facelift (http://trac.openlayers.org/changeset/7095). Based on the work that was started by Josh Livni and others at FOSS4G 07, I updated the script that parses examples and created a new "index" page for examples: http://openlayers.org/dev/examples/ (Thanks to Chris for making this the default view for that dir and creating a nice shell script so that the single file build is used for those examples - http://trac.openlayers.org/changeset/7122.) The hope is that it will be easier for people to find examples relevant to what they want to do with OpenLayers. You can filter the example list by keywords. E.g. http://openlayers.org/dev/examples/?q=wms Now, this is only as useful as we make it. If there are folks who would like to help out, we could still use more/better documentation in these examples. If you follow the convention laid out in the existing examples (element ids for title, tags, shortdesc, and docs), the index page will work. As we get more tags and classes listed in examples, we can update the index page to allow more control in searching for examples. I acknowledge that our class docs are *not* an easy way to learn the library, our tests are usually the *last* thing that developers understand, and nobody has taken any time to write up nice tutorials (though a tutorials directory and basic template would be a nice addition). So, for now, I think people will continue to learn by example. Any help we can get in making these examples more useful would be appreciated. http://trac.openlayers.org/wiki/HowToContribute Tim From matthewdw at gmail.com Fri May 9 13:05:33 2008 From: matthewdw at gmail.com (Matthew Williamson) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Disable Vector Layer Mouseover--Spinning CPU Message-ID: <3d59894a0805091005j49c0bc1fkba07f0068e44b3a9@mail.gmail.com> Hello list, I've got a map that uses a GML vector layer (loaded with about 8 polygons from a GML file) and a SelectFeature control. The problem I'm having is that just moving the mouse over the layer when it is visible--whether the SelectFeature control is active or not--hogs the CPU on Firefox 2 in Windows to the point of making the map unusable. This is on a Core 2 Duo system, so I don't think it's normal...it's also not so bad in FF3b5 on Linux on a lesser machine. I don't care about mouseover/mouseout/mousemove events because I'm using click to select in the control (hover = false)...so is there a way to simply disable the mousemove and in/out detection for the layer? I presume this is what is causing the problem, because even with the layer visible if I move the mouse around the outside of the feature set there's no problem--but if I'm mousing over the polygons it bogs down. Thanks for any help! -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080509/e895c7c9/attachment.html From jshort at lodgingcompany.com Fri May 9 14:55:23 2008 From: jshort at lodgingcompany.com (Jeremy Short) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles Message-ID: <48249E1B.3070504@lodgingcompany.com> My goal is to render an SVG image map to PNG to display on our website within a mapviewer of some sort with panning and zooming capability. We have many maps. I want to use an Open Source solution. Our web server is running Apache. Additionally we want to add a "layer" of text labels which will not get bigger when we zoom in. Too, since we have large pictures so they don't degrade when one zooms in, we would like to explore the ability to send only "tiles" of the map picture if it's required. What I have found thus far: 1. Using OpenLayers as a client gives us the ability to load a PNG file, pan, and zoom. 2. For the ability to add layers of text labels and transport tiles of data I explored the possiblity to use Mapserver. It appears Mapserver requires a map file like an SHP file as input and it will output a PNG. I would like to feed it as input a PNG file but I don't know if Mapserver is designed for this. Looking further into this I see one can possibly use a tool like gvSIG or AB Viewer to translate a PNG to a SHP file but I want to automate the process without this extra step because people will be modifying the SVG file periodically. There seems like there must be a better way to accomplish what I want which is to render PNG images in a client web browser with the ability to navigate within the map and to render text labels and transport tiles of information. Is there? -- Jeremy Short IT Programmer The Lodging Company http://www.skihills.com/ From eiclkun at gmail.com Fri May 9 16:09:47 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Set extent for mapserver's layer with gmap Message-ID: <49b386480805091309y1aac04e5y30ac3f0b0c36365a@mail.gmail.com> hi, I've tried to set the extend for my map all the night, but failed. I set google map, world map and my own map as base maps, than i can select one from the control box. But the problem is , my map is too small??it's my university's map, and other two maybe too large. With the default setting of extent from a tutorial, I have to zoom at least 20 times to find my dormitory, else all my campus is a pixel. I've tried "SphericalMercator.forwardMercator", it failed too. Maybe I understand it in the wrong way. Here is the stuff: var map; function init() { map = new OpenLayers.Map('map'); map.addControl(new OpenLayers.Control.LayerSwitcher()); var ext1 = OpenLayers.Layer.SphericalMercator.forwardMercator(114.330527, 30.46327); var ext2 = OpenLayers.Layer.SphericalMercator.forwardMercator(114.366537, 30.48481); var options = { projection: new OpenLayers.Projection("EPSG:900913"), units: "m", maxResolution: 156543.0339, // maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) maxExtent: new OpenLayers.Bounds(ext1.lon, ext1.lat, ext2.lon, ext2.lat) }; var map1 = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://kuja.oicp.net/cgi-bin/mapserv.exe?", { map: '/ms4w/hzau/maps/map.map'} ); var map2 = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://kuja.oicp.net/cgi-bin/mapserv.exe?", { map: '/ms4w/hzau/maps/123.map'} ); var gsat = new OpenLayers.Layer.Google( "Google Satellite", {type: G_SATELLITE_MAP} ); map.addLayers([map1, map2, gsat]); map.setCenter(new OpenLayers.LonLat(114.349125, 30.475885), 2); } Did I set sth wrong? Otherwise I have to calculate the extent with calc.exe, silly way but may effects. Besides, i added 'wms_srs' 'EPSG:4326 EPSG:900913' to all my mapfiles , and <900913...> to proj. , but still it seem to be a little drift-- 0.3 cm on my screen, i missed sth ? Any helpful information will be appreciated. Tks in advance. ps. this is my site, but it won't be available all the time, i share a adsl 2m with my roommates http://kuja.oicp.net the testpage, mapserver's layer with gmap (which bothered me the whole night) http://kuja.oicp.net/lite4.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080510/c1da11ab/attachment.html From penyaskito at gmail.com Sat May 10 08:40:15 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] problem with tilecache layer In-Reply-To: <7774252712385784749@unknownmsgid> References: <7774252712385784749@unknownmsgid> Message-ID: Hi Simone Have you generated the tiles with tilecache_seed? HTH On Wed, Apr 16, 2008 at 11:32 AM, Simone Gadenz wrote: > Hi all! > > > > I have a strange bahavior (error?)wrapping the dateline in a tilecache > layer. The column of tiles poistioned right after 180 longitude load empty > images. > > > > This is one of the image url that is asked to the server: > http://139.191.68.15/tscache/pop04sm/02/000/000/004/000/000/001.png. In > fact the folder 02/000/000/004 does not exist in my cache hierarchy. > > > > The definition of the layer into the page is: > > > > var tiledpop = new OpenLayers.Layer.TileCache("World Population 2004 (1km)", > > ["http://139.191.68.15/tscache/"], > > "pop04sm", > > { > > 'format': 'image/png', > > 'isBaseLayer': false, > > 'opacity': 0.6, > > 'reproject':true, > > 'wrapDateLine': true, > > 'singleTile': false, > > 'gutter': 1 > > } > > ); > > > > Any idea? > > > > Simone > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Cheers, Christian L?pez Esp?nola From roald.dewit at lisasoft.com Sun May 11 20:24:41 2008 From: roald.dewit at lisasoft.com (Roald de Wit) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] by example In-Reply-To: <482483D5.1000803@openplans.org> References: <482483D5.1000803@openplans.org> Message-ID: <1210551881.22149.6.camel@bender> Hi Tim et al, On Sat, 2008-05-10 at 02:33 +0930, Tim Schaub wrote: > So, I gave the examples a bit of a facelift This is such an improvement! After looking at an example a potential user might like to see how it is done. Not all browsers have a good source viewer. ?How hard would it be to add a 'view source' link to the examples with the contents syntax highlighted? Another thing: maybe make the left frame resizable? Cheers, Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From eiclkun at gmail.com Sun May 11 22:04:02 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Set extent for mapserver's layer with gmap (Chen kuja) Message-ID: <49b386480805111904ofd1a4d2yab5241b945b42b0f@mail.gmail.com> Now i set the zoomlevel in "setCenter" as 15, it seems to be the max level. But still not enough for me. So anyone konws how to calculate the extent vaule(from 4326 to 900913) regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080512/cf679bfc/attachment.html From roald.dewit at lisasoft.com Sun May 11 22:12:11 2008 From: roald.dewit at lisasoft.com (Roald de Wit) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Disable Vector Layer Mouseover--Spinning CPU In-Reply-To: <3d59894a0805091005j49c0bc1fkba07f0068e44b3a9@mail.gmail.com> References: <3d59894a0805091005j49c0bc1fkba07f0068e44b3a9@mail.gmail.com> Message-ID: <1210558331.22149.12.camel@bender> Hi Matt, On Sat, 2008-05-10 at 02:35 +0930, Matthew Williamson wrote: > I've got a map that uses a GML vector layer (loaded with about 8 > polygons from a GML file) and a SelectFeature control. The problem I'm > having is that just moving the mouse over the layer when it is > visible--whether the SelectFeature control is active or not--hogs the > CPU on Firefox 2 in Windows to the point of making the map unusable. > This is on a Core 2 Duo system, so I don't think it's normal...it's > also not so bad in FF3b5 on Linux on a lesser machine. ?Maybe you can provide a public URL that we can visit, so we can see what is happening and what the code is you're using? I cannot recall ever having experienced something like this, so I'm curious what causes this. Regards, Roald -- Roald de Wit Software Engineer roald.dewit@lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ From woodbri at swoodbridge.com Mon May 12 15:12:04 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] How do I create a kamap layer change the tile, metatile sizes? Message-ID: <48289684.10908@swoodbridge.com> Hi all, I need to create a KaMap tilecache layer in Openlayers, but it uses a non-standard tile size 128x128 and 12x12 tiles per metatile. I was reading through the code but it is not obvious to me how I can override the tile size. Thoughts? Thanks, -Steve W. From eric.c2c at gmail.com Mon May 12 14:59:57 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] by example In-Reply-To: <1210551881.22149.6.camel@bender> References: <482483D5.1000803@openplans.org> <1210551881.22149.6.camel@bender> Message-ID: <5ec103de0805121159o168839d1y2cb6c963cbdbab51@mail.gmail.com> On Mon, May 12, 2008 at 2:24 AM, Roald de Wit wrote: > Hi Tim et al, > > > On Sat, 2008-05-10 at 02:33 +0930, Tim Schaub wrote: > > > So, I gave the examples a bit of a facelift > > This is such an improvement! I agree with you Roald that this is a substantial improvement. thanks for putting this together Tim, -- Eric From woodbri at swoodbridge.com Mon May 12 16:03:56 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SOLVED: How do I create a kamap layer change the tile, metatile sizes? In-Reply-To: <48289684.10908@swoodbridge.com> References: <48289684.10908@swoodbridge.com> Message-ID: <4828A2AC.8090609@swoodbridge.com> Stephen Woodbridge wrote: > Hi all, > > I need to create a KaMap tilecache layer in Openlayers, but it uses a > non-standard tile size 128x128 and 12x12 tiles per metatile. I was > reading through the code but it is not obvious to me how I can override > the tile size. Thoughts? I added this to the options hash. tileSize: new OpenLayers.Size(64, 64) Also, the constructor definition for OpenLayers.Size in the API doc does not make it clear that this is the format, as opposed to what is implied by the w: h: notes that make it seem like you should feed it a hash, like: tileSize: new OpenLayers.Size({h: 64, w: 64}) -Steve From pagameba at gmail.com Mon May 12 15:11:21 2008 From: pagameba at gmail.com (Paul Spencer) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SOLVED: How do I create a kamap layer change the tile, metatile sizes? In-Reply-To: <4828A2AC.8090609@swoodbridge.com> References: <48289684.10908@swoodbridge.com> <4828A2AC.8090609@swoodbridge.com> Message-ID: <9B4FCFB1-86EE-41DD-9C9D-7DF4DC0ECC50@gmail.com> Steve, it looks like the docs specify two parameters, w and h, for the constructor. Do you have a suggestion on how to provide more clarity? Cheers Paul On 12-May-08, at 4:03 PM, Stephen Woodbridge wrote: > Stephen Woodbridge wrote: >> Hi all, >> >> I need to create a KaMap tilecache layer in Openlayers, but it uses a >> non-standard tile size 128x128 and 12x12 tiles per metatile. I was >> reading through the code but it is not obvious to me how I can >> override >> the tile size. Thoughts? > > I added this to the options hash. > tileSize: new OpenLayers.Size(64, 64) > > Also, the constructor definition for OpenLayers.Size in the API doc > does > not make it clear that this is the format, as opposed to what is > implied > by the w: h: notes that make it seem like you should feed it a hash, > like: > > tileSize: new OpenLayers.Size({h: 64, w: 64}) > > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From giohappy at gmail.com Mon May 12 19:07:19 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Polygon Editing Intersection demo Message-ID: I've finished a first demo for the Intersection management during polygon editing. I've had few time, so it should be optimized... In this version I do the check while dragging, so it gets less fluid when there are a lot of vertices. I will improve it as soon as I find some time! http://www.geospatial.it/allegri/OL/PolyEditIntersection.html The "modded" OpenLayers.Control.ModifyFeature I use in this demo is: http://www.geospatial.it/allegri/OL/ModifyFeature_mod.js I'll add some comment next days... Giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080513/be53f31a/attachment.html From giohappy at gmail.com Mon May 12 19:27:55 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Polygon Editing Intersection demo In-Reply-To: References: Message-ID: I forgot to say that I've added also a modified OL.Handler.Polygon version for detection during diitizing: http://www.geospatial.it/allegri/OL/Polygon_mod.js 2008/5/13 G. Allegri : > I've finished a first demo for the Intersection management during polygon > editing. I've had few time, so it should be optimized... In this version I > do the check while dragging, so it gets less fluid when there are a lot of > vertices. I will improve it as soon as I find some time! > http://www.geospatial.it/allegri/OL/PolyEditIntersection.html > > The "modded" OpenLayers.Control.ModifyFeature I use in this demo is: > http://www.geospatial.it/allegri/OL/ModifyFeature_mod.js > > I'll add some comment next days... > > Giovanni > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080513/a74a75e4/attachment.html From giohappy at gmail.com Mon May 12 19:27:55 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Polygon Editing Intersection demo In-Reply-To: References: Message-ID: I forgot to say that I've added also a modified OL.Handler.Polygon version for detection during diitizing: http://www.geospatial.it/allegri/OL/Polygon_mod.js 2008/5/13 G. Allegri : > I've finished a first demo for the Intersection management during polygon > editing. I've had few time, so it should be optimized... In this version I > do the check while dragging, so it gets less fluid when there are a lot of > vertices. I will improve it as soon as I find some time! > http://www.geospatial.it/allegri/OL/PolyEditIntersection.html > > The "modded" OpenLayers.Control.ModifyFeature I use in this demo is: > http://www.geospatial.it/allegri/OL/ModifyFeature_mod.js > > I'll add some comment next days... > > Giovanni > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080513/a74a75e4/attachment-0001.html From woodbri at swoodbridge.com Mon May 12 20:49:24 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SOLVED: How do I create a kamap layer change the tile, metatile sizes? In-Reply-To: <9B4FCFB1-86EE-41DD-9C9D-7DF4DC0ECC50@gmail.com> References: <48289684.10908@swoodbridge.com> <4828A2AC.8090609@swoodbridge.com> <9B4FCFB1-86EE-41DD-9C9D-7DF4DC0ECC50@gmail.com> Message-ID: <4828E594.6020308@swoodbridge.com> Paul Spencer wrote: > Steve, > > it looks like the docs specify two parameters, w and h, for the > constructor. Do you have a suggestion on how to provide more clarity? I looked at it again, and it is consistent with the others so that is good. I guess just leave it as is. For clarity an example would be good, but we already have examples section so duplicating fragments of that in the api is probably not of much value. Not sure where my head was at when I looked at this one. You may return to your regularly scheduled programming. Thanks, -steve > Cheers > > Paul > > On 12-May-08, at 4:03 PM, Stephen Woodbridge wrote: > >> Stephen Woodbridge wrote: >>> Hi all, >>> >>> I need to create a KaMap tilecache layer in Openlayers, but it uses a >>> non-standard tile size 128x128 and 12x12 tiles per metatile. I was >>> reading through the code but it is not obvious to me how I can override >>> the tile size. Thoughts? >> >> I added this to the options hash. >> tileSize: new OpenLayers.Size(64, 64) >> >> Also, the constructor definition for OpenLayers.Size in the API doc does >> not make it clear that this is the format, as opposed to what is implied >> by the w: h: notes that make it seem like you should feed it a hash, >> like: >> >> tileSize: new OpenLayers.Size({h: 64, w: 64}) >> >> -Steve >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > From richard at winwaed.com Mon May 12 20:23:04 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problems with scaling when Virtual Earth is the base layer? Message-ID: <4828DF68.9010506@winwaed.com> I don't know if anyone has seen this, or know of a workaround, but I'm finding that if I zoom in too far with a Virtual Earth base layer, then the other layers are not plotted. Eg. http://www.ecomapcostarica.com/map/map_test_ve.shtml ( I've found problems when trying to switch base layers between MapServer WMS and Virtual Earth. It will switch from VE to MPS perfectly, but not back again. My solution was to have two pages: one for each base layer. The above page is the draft version of the VE page) The default zoom (also duplicated with the Leaves and Lizards zoom option) plots at the maximum zoom that works. What you see is a KML layer, on top of a raster image and a 'stream' vector layer (both from MapServer WMS). No VE should be visible, but if you pan to the north VE should be visible. In fact we're zoomed in too far and VE shows the "forbidden camera" icon indicating that sufficiently detailed images are unavailable. This is to be expected. However if we zoom in one step further (eg. by scrolling the mouse wheel one click), then OpenLayers appears to 'hang' with the VE layer and does not show the other layers. This is actually quite limiting for this application, because virtually everything of interest will be plotted in the red KML polygon! So does anyone know of a workaround, eg. is it possible to make the VE base layer automatically appear and disappear when zoomed in very far? As an aside, the working non-VE version which uses public outline SHP data instead, can be seen here: http://www.ecomapcostarica.com/map/index.shtml We shall be in the field in two weeks time, and hope to update the map(s) whilst we're out there. Yes Wifi has even reached the rainforest!! Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com From randre at gmail.com Mon May 12 22:30:00 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problem displaying multiple wms layers in OpenLayers Message-ID: <9c2015090805121930x1a6d8aa8l18547065328cd5f6@mail.gmail.com> Hi Everyone, I'm having a problem that I suspect many of you has already dealt with. I can't seem to combine several of my MapServer wms layers into a single OL map layer. No matter how I structure the wms layer name array (in single-quotes, or double-quotes), I never can turn two wms layers on at once. I'd like to take this wms request and make it into an open layers layer: http://localhost/cgi-bin/mapserv.exe?map=../htdocs/520.map &SERVICE=WMS &VERSION=%221.1.1%22 &REQUEST=GetMap &LAYERS=wetlands,floodplain &STYLES= &BBOX=775843.302946,602429.871045,848438.746010,635418.446144&WIDTH=600&HEIGHT=500&FORMAT=png&SRS=epsg:2286 I currently have a single OL layer for "wetlands" that works fine. When I add "floodplain" to it, I either get a completely blank screen with no OL controls (which tells me that the .js syntax is messed up), or I get the OpenLayers canvas, but the layer in questions doesn't display any data. Can someone send what the correct syntax should be for getting both layers called correctly from within OL? Or tell me if there is a special trick related to Mapserver WMS and multiple layer calls? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080512/51ea989b/attachment.html From crschmidt at metacarta.com Mon May 12 22:47:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problem displaying multiple wms layers in OpenLayers In-Reply-To: <9c2015090805121930x1a6d8aa8l18547065328cd5f6@mail.gmail.com> References: <9c2015090805121930x1a6d8aa8l18547065328cd5f6@mail.gmail.com> Message-ID: <20080513024755.GA12619@metacarta.com> On Mon, May 12, 2008 at 07:30:00PM -0700, Roger Andr? wrote: > Hi Everyone, > > I'm having a problem that I suspect many of you has already dealt with. I > can't seem to combine several of my MapServer wms layers into a single OL > map layer. No matter how I structure the wms layer name array (in > single-quotes, or double-quotes), I never can turn two wms layers on at > once. I'd like to take this wms request and make it into an open layers > layer: Layer.WMS("name", "url", {layers: ['wetlands', 'floodplain']}) -- Chris > http://localhost/cgi-bin/mapserv.exe?map=../htdocs/520.map > &SERVICE=WMS > &VERSION=%221.1.1%22 > &REQUEST=GetMap > &LAYERS=wetlands,floodplain > &STYLES= > &BBOX=775843.302946,602429.871045,848438.746010,635418.446144&WIDTH=600&HEIGHT=500&FORMAT=png&SRS=epsg:2286 > > I currently have a single OL layer for "wetlands" that works fine. When I > add "floodplain" to it, I either get a completely blank screen with no OL > controls (which tells me that the .js syntax is messed up), or I get the > OpenLayers canvas, but the layer in questions doesn't display any data. Can > someone send what the correct syntax should be for getting both layers > called correctly from within OL? Or tell me if there is a special trick > related to Mapserver WMS and multiple layer calls? > > > Thanks, > > > Roger > -- > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta From randre at gmail.com Tue May 13 01:21:28 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problem displaying multiple wms layers in OpenLayers In-Reply-To: <20080513024755.GA12619@metacarta.com> References: <9c2015090805121930x1a6d8aa8l18547065328cd5f6@mail.gmail.com> <20080513024755.GA12619@metacarta.com> Message-ID: <9c2015090805122221r39780aefj28b32e6e3ea3c62@mail.gmail.com> Thanks Chris, the []'s were the key I was missing. Makes sense, it's an array. I feel like an idiot now, but I do appreciate the help. Roger -- On Mon, May 12, 2008 at 7:47 PM, Christopher Schmidt < crschmidt@metacarta.com> wrote: > On Mon, May 12, 2008 at 07:30:00PM -0700, Roger Andr? wrote: > > Hi Everyone, > > > > I'm having a problem that I suspect many of you has already dealt with. > I > > can't seem to combine several of my MapServer wms layers into a single > OL > > map layer. No matter how I structure the wms layer name array (in > > single-quotes, or double-quotes), I never can turn two wms layers on at > > once. I'd like to take this wms request and make it into an open layers > > layer: > > Layer.WMS("name", "url", {layers: ['wetlands', 'floodplain']}) > > -- Chris > > > http://localhost/cgi-bin/mapserv.exe?map=../htdocs/520.map > > &SERVICE=WMS > > &VERSION=%221.1.1%22 > > &REQUEST=GetMap > > &LAYERS=wetlands,floodplain > > &STYLES= > > > &BBOX=775843.302946,602429.871045,848438.746010,635418.446144&WIDTH=600&HEIGHT=500&FORMAT=png&SRS=epsg:2286 > > > > I currently have a single OL layer for "wetlands" that works fine. When > I > > add "floodplain" to it, I either get a completely blank screen with no > OL > > controls (which tells me that the .js syntax is messed up), or I get the > > OpenLayers canvas, but the layer in questions doesn't display any data. > Can > > someone send what the correct syntax should be for getting both layers > > called correctly from within OL? Or tell me if there is a special trick > > related to Mapserver WMS and multiple layer calls? > > > > > > Thanks, > > > > > > Roger > > -- > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080512/7d8d8a8c/attachment.html From jdb at mail.nerc-essc.ac.uk Tue May 13 09:06:52 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] zoomToExtent() and zoomToMaxExtent() not working in polar stereographic projection Message-ID: <2bb6ee950805130606if2a0b22l3cca9b2d1e67dbb8@mail.gmail.com> Dear all, (This is essentially a re-posting of an earlier post, to which I had no response. This is now posted under a more relevant subject line.) I have an application in which the user can change the base layer. Base layers might have different map projections and so I am trying to set the projection and maxExtent of the Map object based on the new base layer. I have registered an event handler for map.changebaselayer that looks like this: function baseLayerChanged(event) { // Change the parameters of the map based on the new base layer map.setOptions({ projection: projCode, maxExtent: map.baseLayer.maxExtent }); map.zoomToMaxExtent(); } The base layers are set up with different projections (one in EPSG:4326, the other in EPSG:32661, which is north polar stereographic). Logging reveals that, when switching to EPSG:32661, the maxExtent of the map is being set correctly *but* the true extent of the map after the call to zoomToMaxExtent() is not correct: max extent of map: -10700000, -10700000, 14700000, 14700000 actual extent of map after call to zoomToMaxExtent: 1999640, 1999718.75, 2000360, 2000281.25 hence the map is only covering a very small portion of the true maximum extent. Are there other parameters that I should be setting on the base map? I am not setting resolution, minExtent or zoom levels explicitly anywhere in my code. The same thing happens if I call zoomToExtent() and pass in the bounding box explicitly. 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 bluecarto at gmail.com Tue May 13 09:51:14 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] rules depending on state Message-ID: Hello OpenLayers styleMap gurus, I would like to have different symbolizers for the features depending on their state property. The addUniqueValueRules would look perfect for that but the context of the generated rules is feature.attributes. The state will not be evaluated because it's not one of those attributes. Has anyone a workaround to advice ? Regards, Pierre From eiclkun at gmail.com Tue May 13 10:14:08 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Set extent for mapserver's layer with gmap(Chen kuja) In-Reply-To: References: <49b386480805111904ofd1a4d2yab5241b945b42b0f@mail.gmail.com> Message-ID: <49b386480805130714s3bf4b814ue2f025de4c97a1e0@mail.gmail.com> Thanks for the better code. But things getting weird here. my mapfile displayed pretty well as epsg900913(i can see the different from epsg 4326) under the "map.setCenter(new OpenLayers.LonLat(12728934.108387556,3564373.2839840306), 15);" -- as it should be, it's 900913. However, as for the gmap, it seems require " map.setCenter(new OpenLayers.LonLat( 114.350503, 30.475874), 10);" --- the normal lon&lat, not google's own coordinate system. It dizzied my for hours. with this, it is impossible for me to integrate those two map. I can't find much example like local mapserver file and gmap, so I wonder in which steps i did wrong? here is the code ps. Last afternoon, a earthquake stroke South Sichuan, China. It's about 1000km away from my university, but still I can felt the terrible shaking for 1 minute. It even spread to my home in Shanghai. I spent 3 hours, tyring to call my friends in Chengdu&Chongqing. Luckily, they are all alright. But I know , 10 thousands had died, more still buried. GOD BLESS THEM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080513/67f1bcc8/attachment.html From bluecarto at gmail.com Tue May 13 10:56:42 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: <4829A748.1020508@gmail.com> References: <4829A748.1020508@gmail.com> Message-ID: Yep, I already tried that and this works great. However, what if I want to set fillColor, strokeColor, fillOpacity and strokeOpacity at the same time ? This is really painful. And it seems like I need to provide a valid value for each possible value of state. Default style won't be applied to features that aren't in the switch cases. I would prefer something like : var lookup = { 'Insert': { fillColor: 'green', fillOpacity: 0.5 }, ... }; Regards, Pierre On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar wrote: > Hey Pierre, > > without having tried, something like the following should work: > > var context = { > getStateColor: function(feature) { > switch(feature.state) { > case "Insert": return "green"; > case "Update": return "yellow"; > case "Delete": retrun "red"; > } > } > } > > var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ > strokeColor: "${getStateColor}" > }, {context: context})); > > Regards, > Andreas. > > > Pierre GIRAUD wrote: > > > > > > > > > Hello OpenLayers styleMap gurus, > > > > I would like to have different symbolizers for the features depending > > on their state property. > > The addUniqueValueRules would look perfect for that but the context of > > the generated rules is feature.attributes. The state will not be > > evaluated because it's not one of those attributes. > > > > Has anyone a workaround to advice ? > > > > Regards, > > > > Pierre > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > From ddudognon at anyware-tech.com Tue May 13 11:27:53 2008 From: ddudognon at anyware-tech.com (Damien Dudognon) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: References: <4829A748.1020508@gmail.com> Message-ID: <4829B379.20202@anyware-tech.com> Hi all, I performed a research on Google, and I did not get defined answer. So, I would know if OpenLayers is WFS 1.1.0 compliant. I plan to couple a Deegree WFS server and OpenLayers, but I meet some problems. Best regards, Damien From arnd.wippermann at web.de Tue May 13 12:30:28 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Set extent for mapserver's layer with gmap(Chen kuja) In-Reply-To: <49b386480805130714s3bf4b814ue2f025de4c97a1e0@mail.gmail.com> Message-ID: Hi Chen, try this var gsat = new OpenLayers.Layer.Google("Google Satellite", {type: G_SATELLITE_MAP, 'sphericalMercator': true}); instead of your line var gsat = new OpenLayers.Layer.Google("Google Satellite", {type: G_SATELLITE_MAP, },{'sphericalMercator': true}); Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: eiclkun@gmail.com [mailto:eiclkun@gmail.com] Gesendet: Dienstag, 13. Mai 2008 16:14 An: Arnd Wippermann Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Set extent for mapserver's layer with gmap(Chen kuja) Thanks for the better code. But things getting weird here. my mapfile displayed pretty well as epsg900913(i can see the different from epsg 4326) under the "map.setCenter(new OpenLayers.LonLat(12728934.108387556,3564373.2839840306), 15);" -- as it should be, it's 900913. However, as for the gmap, it seems require " map.setCenter(new OpenLayers.LonLat( 114.350503, 30.475874), 10);" --- the normal lon&lat, not google's own coordinate system. It dizzied my for hours. with this, it is impossible for me to integrate those two map. I can't find much example like local mapserver file and gmap, so I wonder in which steps i did wrong? here is the code ps. Last afternoon, a earthquake stroke South Sichuan, China. It's about 1000km away from my university, but still I can felt the terrible shaking for 1 minute. It even spread to my home in Shanghai. I spent 3 hours, tyring to call my friends in Chengdu&Chongqing. Luckily, they are all alright. But I know , 10 thousands had died, more still buried. GOD BLESS THEM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080513/1ac8043b/attachment.html From pramsey at cleverelephant.ca Tue May 13 12:51:11 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] FOSS4G 2008 Call for Papers: Deadline Extension to May 23, 2008 Message-ID: <30fe546d0805130951j553920c0r466fbc0e5e4ea00c@mail.gmail.com> More news from the committee @ FOSS4G2008... P ---- We are pleased to announce an extension in the abstract submission deadline for the 2008 Free and Open Source Software for Geospatial (FOSS4G) conference, incorporating GISSA 2008, being held from 29 September to 3 October, in beautiful Cape Town, South Africa. This is due to the fact that there was a glitch with the online submission process which appeared to be already closed for submissions yesterday, the 12 of May on the last day of submissions. Thank you to those of you who informed us, so that we could rectify the problem. I apologize for the inconvenience caused. As a result we have extended the date for the submissions of abstracts to Friday the 23rd of May 2008. Please endeavor to submit your abstract as soon as possible. We believe that we have ironed out the glitch in the system. In summary the following still applies: Academic Track ~~~~~~~~~~~~~~ This year we are thrilled to host the first academic track for peer reviewed papers at FOSS4G. The date for submission of abstracts to the academic track is now 23 May 2008. Abstracts have to be 500-600 words in length, please ensure that these are long enough as abstracts which are too short will automatically be disregarded. These will be reviewed by the Program Committee of the academic track of FOSS4G 2008. You will be notified of acceptance or otherwise on or before 17 June. If your abstract is accepted for the academic track, you have to submit a full paper by 18 August 2008 for inclusion in the proceedings. The Programme Committee will compile a short list of high quality papers addressing substantial research questions. Authors of these papers will be invited to submit a revised paper in response to reviewer comments and suggestions for inclusion in the South African Computer Journal. Presentation Track ~~~~~~~~~~~~~~~~~~ The date of submission for abstracts of 500-600 words to the presentation track is now the 23 May 2008. Please ensure that your abstract is the correct length as abstracts which are too short will automatically be disregarded. The abstracts submitted to this track will be chosen by an open community process. You will be notified of acceptance or otherwise on or before 17 June. If your abstract is accepted for the presentation track then you will be required to submit your presentation by 18 August 2008 for inclusion in the CD proceedings. Poster Track ~~~~~~~~~~~~ Due to the demand for posters we have included a poster track to the conference. Should you wish to display a poster at the conference, please submit a short abstract of no more than 150 - 300 words detailing the topic and content of your proposed poster. Please also indicate the poster size in the abstract (poster sizes are limited to an A1 or AO size). The deadline for the poster abstract submission is Monday the 30 of June 2008. Posters will be selected as space is limited. You will be notified of acceptance or otherwise on or before the 21 of July 2008. Important Dates ~~~~~~~~~~~~~~~ Submission of abstracts 23 May 2008 Notification of acceptance 17 June 2008 Submission of Posters 30 June 2008 Notification of acceptance of Poster 21 July 2008 FOSS4G2008 Conference 29 September ? 3 October 2008 Submission Process ~~~~~~~~~~~~~~~~~~ In order to submit an abstract please visit the www.foss4g2008.org website, and select Proposal Submission. This will take you to a login page, where you can enter your existing account information, or if you are new to the site, register for a user account before you can proceed. You will then be taken through a step by step process to submit your abstract. Please make sure that you select the correct track option. NOTE: To submit an abstract you will need to be logged in as an Author: From the User Home page, under Roles, select Authors. If you do not have a role of Author available then go to the "my profile" link and check the Author checkbox. You will then have an Author role under the User Home page. General Information ~~~~~~~~~~~~~~~~~~~ All FOSS4G 2008 papers/presentations take the form of 25 minute talks, with 5 minute question and answer sessions at the end. Anyone can submit a presentation or paper and take part in the conference as a presenter. Posters will be on display for the duration of the conference. Designated poster sessions are scheduled to take place on 30 September and 1 October 2008 between 12:00 and 13:00 Author guidelines for the formatting of the paper or presentation are available online on the conference website. Please note that your paper or presentation will only be included in the proceedings once your registration to the conference has been received in full. For more information, see the FOSS4G 2008 site: http://www.foss4g2008.org Should you have any further queries that are not addressed on the website then please contact the following: Technical Programme & submissions: Inge Netterberg [inge.netterberg@gmail.com] Academic Track: Serena Coetzee [scoetzee@cs.up.ac.za] General Track: Inge Netterberg [inge.netterberg@gmail.com] Poster Track: Mandy Vickers [mandyv@mintek.co.za] Kind regards, Inge Netterberg Technical Programme coordinator FOSS4G 2008 From crschmidt at metacarta.com Tue May 13 13:27:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: <4829B379.20202@anyware-tech.com> References: <4829A748.1020508@gmail.com> <4829B379.20202@anyware-tech.com> Message-ID: <20080513172753.GA4099@metacarta.com> On Tue, May 13, 2008 at 05:27:53PM +0200, Damien Dudognon wrote: > Hi all, > > I performed a research on Google, and I did not get defined answer. So, > I would know if OpenLayers is WFS 1.1.0 compliant. > > I plan to couple a Deegree WFS server and OpenLayers, but I meet some > problems. OpenLayers delivers WFS spatial filters via the "?bbox=" param, which I hear that deegree doesn't support. It expects WFS Filters, which OpenLayers does not support. Regards, -- Christopher Schmidt MetaCarta From richard at winwaed.com Tue May 13 14:04:26 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SelectFeature Control only works with one layer? Message-ID: <4829D82A.5010907@winwaed.com> It looks like I can only define one SelectFeature control at once? I am trying to attach event handlers to multiple layers so that I can implement popup windows. This works fine for one layer, but I really need this to work with about 3 layers. According to the documentation, the API does not allow multiple layers to be attached to one SelectFeature Control. So I tried to create two SelectFeature Controls and attach these to different layers. Unfortunately this only works with one layer. All mouse events on the other layer are ignored. Is there a workaround for this bug/feature? Thanks, Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com http://www.mapping-tools.com From andreas.hocevar at gmail.com Tue May 13 14:18:59 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: References: <4829A748.1020508@gmail.com> Message-ID: <4829DB93.5020808@gmail.com> Pierre GIRAUD wrote: > Yep, > I already tried that and this works great. > However, what if I want to set fillColor, strokeColor, fillOpacity and > strokeOpacity at the same time ? This is really painful. > And it seems like I need to provide a valid value for each possible > value of state. Default style won't be applied to features that aren't > in the switch cases. > > I would prefer something like : > var lookup = { > 'Insert': { > fillColor: 'green', > fillOpacity: 0.5 > }, > ... > }; > In that case, we would have to add a context option to StyleMap.addUniqueValueRules. Should be no big deal. Can you please create a ticket so we don't forget that me might want to do that? Regards, Andreas. > Regards, > Pierre > > > On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar > wrote: > >> Hey Pierre, >> >> without having tried, something like the following should work: >> >> var context = { >> getStateColor: function(feature) { >> switch(feature.state) { >> case "Insert": return "green"; >> case "Update": return "yellow"; >> case "Delete": retrun "red"; >> } >> } >> } >> >> var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ >> strokeColor: "${getStateColor}" >> }, {context: context})); >> >> Regards, >> Andreas. >> >> >> Pierre GIRAUD wrote: >> >> >>> >>> Hello OpenLayers styleMap gurus, >>> >>> I would like to have different symbolizers for the features depending >>> on their state property. >>> The addUniqueValueRules would look perfect for that but the context of >>> the generated rules is feature.attributes. The state will not be >>> evaluated because it's not one of those attributes. >>> >>> Has anyone a workaround to advice ? >>> >>> Regards, >>> >>> Pierre >>> _______________________________________________ >>> 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 eric.c2c at gmail.com Tue May 13 15:38:42 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SelectFeature Control only works with one layer? In-Reply-To: <4829D82A.5010907@winwaed.com> References: <4829D82A.5010907@winwaed.com> Message-ID: <5ec103de0805131238h13e6e6ddwafec5d6b705ecfd0@mail.gmail.com> On Tue, May 13, 2008 at 8:04 PM, Richard Marsden wrote: > It looks like I can only define one SelectFeature control at once? > > I am trying to attach event handlers to multiple layers so that I can > implement popup windows. > This works fine for one layer, but I really need this to work with about > 3 layers. > > According to the documentation, the API does not allow multiple layers > to be attached to one SelectFeature Control. > So I tried to create two SelectFeature Controls and attach these to > different layers. > Unfortunately this only works with one layer. All mouse events on the > other layer are ignored. > > Is there a workaround for this bug/feature? Hi Richard, this is a known issue related to limitations in current browsers. For example with FireFox the SVG elements are opaque, i.e. DOM elements that are under the SVG div (in terms of z-index) don't get events. I'm sure if IE suffers the same, I recall someone reporting that IE didn't have the problem (which puzzled me somehow). Cheers, -- Eric From hcan at hotmail.com Tue May 13 16:15:05 2008 From: hcan at hotmail.com (Zer) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problems when deactivating custom control Message-ID: <17168613.post@talk.nabble.com> Hi all, I have made a custom control that gets the length of a line feature. I then show this length in a div. When the control gets deactivated, I want the div to be cleared. What happens is that the div gets cleared but the control does not get deactivated in the panel. Am I missing something here??? mt = new OpenLayers.Control.DrawFeature(vLayer, OpenLayers.Handler.Path, { featureAdded: ShowDistance, handlerOptions: {'freehand': true}, displayClass: 'MeasureTool', deactivate: function() {clearDistance();}, }); If I remove this line "deactivate: function() {clearDistance();" the control gets deactivated in the panel, but how do I then get the div cleard? I also want to clear the div when a new line is drawn. Is there a way to capture an event for this? Thanks and Best Regards, Zer -- View this message in context: http://www.nabble.com/Problems-when-deactivating-custom-control-tp17168613p17168613.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Tue May 13 16:28:01 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problems when deactivating custom control In-Reply-To: <17168613.post@talk.nabble.com> References: <17168613.post@talk.nabble.com> Message-ID: <5ec103de0805131328s69db1bcmcbdd9f2503049d53@mail.gmail.com> On Tue, May 13, 2008 at 10:15 PM, Zer wrote: > > Hi all, Hello > I have made a custom control that gets the length of a line feature. I then > show this length in a div. When the control gets deactivated, I want the div > to be cleared. What happens is that the div gets cleared but the control > does not get deactivated in the panel. Am I missing something here??? > > mt = new OpenLayers.Control.DrawFeature(vLayer, OpenLayers.Handler.Path, > { featureAdded: ShowDistance, > handlerOptions: {'freehand': true}, > displayClass: 'MeasureTool', > deactivate: function() {clearDistance();}, > }); > > If I remove this line "deactivate: function() {clearDistance();" the control > gets deactivated in the panel, but how do I then get the div cleard? > > I also want to clear the div when a new line is drawn. Is there a way to > capture an event for this? How about that: mt = new OpenLayers.Control.DrawFeature(vLayer, OpenLayers.Handler.Path, { featureAdded: ShowDistance, handlerOptions: {'freehand': true}, displayClass: 'MeasureTool' }); mt.events.on({ 'deactivate': function() { clearDistance(); } }); Cheers, -- Eric From hcan at hotmail.com Tue May 13 16:46:00 2008 From: hcan at hotmail.com (Zer) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problems when deactivating custom control In-Reply-To: <5ec103de0805131328s69db1bcmcbdd9f2503049d53@mail.gmail.com> References: <17168613.post@talk.nabble.com> <5ec103de0805131328s69db1bcmcbdd9f2503049d53@mail.gmail.com> Message-ID: <17217990.post@talk.nabble.com> Eric Lemoine-3 wrote: > > > How about that: > > mt = new OpenLayers.Control.DrawFeature(vLayer, OpenLayers.Handler.Path, { > featureAdded: ShowDistance, > handlerOptions: {'freehand': true}, > displayClass: 'MeasureTool' > }); > mt.events.on({ > 'deactivate': function() { > clearDistance(); > } > }); > > Cheers, > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > Thanks Eric! Works perfectly! Is there a way to capture the events when a new line is drawn? Are there any events when the users moves the mouse to draw the line? What I am looking for is a way to clear the text that shows the distance when the users starts to measure a new distance. I would also like to constantly update the distance text, while the user moves the mouse in order to draw the line. Thanks, -Z -- View this message in context: http://www.nabble.com/Problems-when-deactivating-custom-control-tp17168613p17217990.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Tue May 13 17:01:02 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Problems when deactivating custom control In-Reply-To: <17217990.post@talk.nabble.com> References: <17168613.post@talk.nabble.com> <5ec103de0805131328s69db1bcmcbdd9f2503049d53@mail.gmail.com> <17217990.post@talk.nabble.com> Message-ID: <5ec103de0805131401o6234a38t62b96b929484d822@mail.gmail.com> On Tue, May 13, 2008 at 10:46 PM, Zer wrote: > > > > Eric Lemoine-3 wrote: > > > > > > How about that: > > > > mt = new OpenLayers.Control.DrawFeature(vLayer, OpenLayers.Handler.Path, { > > featureAdded: ShowDistance, > > handlerOptions: {'freehand': true}, > > displayClass: 'MeasureTool' > > }); > > mt.events.on({ > > 'deactivate': function() { > > clearDistance(); > > } > > }); > > > > Cheers, > > -- > > Eric > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > Thanks Eric! Works perfectly! > > Is there a way to capture the events when a new line is drawn? Are there any > events when the users moves the mouse to draw the line? What I am looking > for is a way to clear the text that shows the distance when the users starts > to measure a new distance. I would also like to constantly update the > distance text, while the user moves the mouse in order to draw the line. There's no way to achieve this using the draw feature control. What you can do is implement your own control. In addition to configuring a 'done' callback in the path handler your control would also configure a 'point' callback. Start from Control/DrawFeature.js and build upon it. Cheers, -- Eric From richard at winwaed.com Tue May 13 17:05:15 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] SelectFeature Control only works with one layer? In-Reply-To: <5ec103de0805131238h13e6e6ddwafec5d6b705ecfd0@mail.gmail.com> References: <4829D82A.5010907@winwaed.com> <5ec103de0805131238h13e6e6ddwafec5d6b705ecfd0@mail.gmail.com> Message-ID: <482A028B.5000307@winwaed.com> Eric Lemoine wrote: > Hi Richard, > > this is a known issue related to limitations in current browsers. For > example with FireFox the SVG elements are opaque, i.e. DOM elements > that are under the SVG div (in terms of z-index) don't get events. I'm > sure if IE suffers the same, I recall someone reporting that IE didn't > have the problem (which puzzled me somehow). > > Cheers, > -- > Eric > > Thanks for the quick reply Eric. Yes I was using Firefox. Looks like I'm going to have to group all the clickable icons and other features into one layer. Richard From prashant.g.raju at gmail.com Tue May 13 18:07:42 2008 From: prashant.g.raju at gmail.com (Prashant Raju) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Can I please unsuscribe? Message-ID: <3bcefded0805131507i1a844353l506a762c47e46f8e@mail.gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080514/1b11250f/attachment.html From eiclkun at gmail.com Tue May 13 23:16:28 2008 From: eiclkun at gmail.com (Chen kuja) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Set extent for mapserver's layer with gmap(Chen kuja) In-Reply-To: References: <49b386480805130714s3bf4b814ue2f025de4c97a1e0@mail.gmail.com> Message-ID: <49b386480805132016p2f4d7e4u67b232363bca37f1@mail.gmail.com> Tks, that's the point. Now it works pretty well -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080514/c1ee24e8/attachment.html From kusum at infobase.in Wed May 14 01:28:40 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport Message-ID: <691161CD46A94F05B5FDD177FBDB4C89@kusum> Dear All, I am trying to make some nice looking popups and want that the map should pan itself when popup goes to the corner so that the popup comes in the center and is not hidden on any corners. I am trying to use panMapIfOutOfView but its not working popup = new OpenLayers.Popup("pof",coord,si,temp,true ,{autoSize:true},{panMapIfOutOfView:true}); Please suggest. Also Can u please suggest me where can I find some examples of good popups?? Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080514/fbad4582/attachment.html From andreas.hocevar at gmail.com Wed May 14 02:14:41 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? Message-ID: <482A8351.7030707@gmail.com> A question to all vector editing gurus: Is it possible to make the ModifyFeature control delete a point by clicking the Del button? I know that the Del button will delete vertices on geometries, but what about points (only one vertex)? Is there a simple workaround to delete the whole feature instead of a vertex? Thanks! Andreas. From eric.c2c at gmail.com Wed May 14 03:02:01 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <482A8351.7030707@gmail.com> References: <482A8351.7030707@gmail.com> Message-ID: <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> Hi Andreas. The modify feature control does not support that. You'll have to code this by yourself, possibly using the select feature control. Cheers, Eric 2008/5/14, Andreas Hocevar : > A question to all vector editing gurus: > > Is it possible to make the ModifyFeature control delete a point by > clicking the Del button? I know that the Del button will delete vertices > on geometries, but what about points (only one vertex)? > > Is there a simple workaround to delete the whole feature instead of a > vertex? > > Thanks! > Andreas. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From bluecarto at gmail.com Wed May 14 03:06:09 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: <4829DB93.5020808@gmail.com> References: <4829A748.1020508@gmail.com> <4829DB93.5020808@gmail.com> Message-ID: I don't think this is that simple. To me, we can't define a context in addUniqueValueRules because it has no knowledge of individual features. I can't find any example where a context is defined at OpenLayers.Rule instantiation. Pierre On Tue, May 13, 2008 at 8:18 PM, Andreas Hocevar wrote: > Pierre GIRAUD wrote: > > > Yep, > > I already tried that and this works great. > > However, what if I want to set fillColor, strokeColor, fillOpacity and > > strokeOpacity at the same time ? This is really painful. > > And it seems like I need to provide a valid value for each possible > > value of state. Default style won't be applied to features that aren't > > in the switch cases. > > > > I would prefer something like : > > var lookup = { > > 'Insert': { > > fillColor: 'green', > > fillOpacity: 0.5 > > }, > > ... > > }; > > > > > > In that case, we would have to add a context option to > StyleMap.addUniqueValueRules. Should be no big deal. Can you please create a > ticket so we don't forget that me might want to do that? > > Regards, > Andreas. > > > > > > Regards, > > Pierre > > > > > > On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar > > wrote: > > > > > > > Hey Pierre, > > > > > > without having tried, something like the following should work: > > > > > > var context = { > > > getStateColor: function(feature) { > > > switch(feature.state) { > > > case "Insert": return "green"; > > > case "Update": return "yellow"; > > > case "Delete": retrun "red"; > > > } > > > } > > > } > > > > > > var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ > > > strokeColor: "${getStateColor}" > > > }, {context: context})); > > > > > > Regards, > > > Andreas. > > > > > > > > > Pierre GIRAUD wrote: > > > > > > > > > > > > > > > > > Hello OpenLayers styleMap gurus, > > > > > > > > I would like to have different symbolizers for the features depending > > > > on their state property. > > > > The addUniqueValueRules would look perfect for that but the context of > > > > the generated rules is feature.attributes. The state will not be > > > > evaluated because it's not one of those attributes. > > > > > > > > Has anyone a workaround to advice ? > > > > > > > > Regards, > > > > > > > > Pierre > > > > _______________________________________________ > > > > 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 bluecarto at gmail.com Wed May 14 03:59:33 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> Message-ID: I think Eric is wrong on that point. By hovering a vertex, you can delete it pressing the Del button. Tricky, isn't it ? Pierre On Wed, May 14, 2008 at 9:02 AM, Eric Lemoine wrote: > Hi Andreas. The modify feature control does not support that. You'll > have to code this by yourself, possibly using the select feature > control. Cheers, Eric > > 2008/5/14, Andreas Hocevar : > > > > A question to all vector editing gurus: > > > > Is it possible to make the ModifyFeature control delete a point by > > clicking the Del button? I know that the Del button will delete vertices > > on geometries, but what about points (only one vertex)? > > > > Is there a simple workaround to delete the whole feature instead of a > > vertex? > > > > Thanks! > > Andreas. > > _______________________________________________ > > 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 eric.c2c at gmail.com Wed May 14 04:32:36 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> Message-ID: <5ec103de0805140132o22aaf0fcv3e066d420637cf91@mail.gmail.com> On Wed, May 14, 2008 at 9:59 AM, Pierre GIRAUD wrote: > I think Eric is wrong on that point. > By hovering a vertex, you can delete it pressing the Del button. > Tricky, isn't it ? I think Pierre has misunderstood Andreas' request :-) Andreas doesn't want to remove vertices of lines or polygons but just a single point that was drawn with Control.DrawFeature(Handler.Point). See? -- Eric From eric.c2c at gmail.com Wed May 14 04:35:08 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport In-Reply-To: <691161CD46A94F05B5FDD177FBDB4C89@kusum> References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> Message-ID: <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> On Wed, May 14, 2008 at 7:28 AM, Kusum wrote: > Dear All, > > > I am trying to make some nice looking popups and want that the map should > pan itself when popup goes to the corner > so that the popup comes in the center and is not hidden on any corners. > > I am trying to use panMapIfOutOfView but its not working > > popup = new OpenLayers.Popup("pof",coord,si,temp,true > ,{autoSize:true},{panMapIfOutOfView:true}); > > Please suggest. > > Also Can u please suggest me where can I find some examples of good popups?? You may like the FramedCloud popups that are in 2.6. Check this example Cheers, -- Eric From kusum at infobase.in Wed May 14 06:29:29 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> Message-ID: Thanks for thr reply Eric But still things are a bit messy. I am using this code:--- markers.events.register('mouseover', markers, function(evt) { feature = new OpenLayers.Feature(layer,new OpenLayers.LonLat(maplon,maplat)); var maplon_new=maplon+0.005; var maplat_new=maplat+0.06; var coord = new OpenLayers.LonLat(maplon_new,maplat_new); var si = new OpenLayers.Size(240,410); var link ="Refresh Images"; var temp ="
Name:-"+name+"

Desc:-"+p+"

"+imagestr_final+"
"+link+"
"; // popup = new OpenLayers.Popup("pof",coord,si,temp,true ,{autoSize:true},{panMapIfOutOfView:true}); popup = new OpenLayers.Popup.FramedCloud("chicken",coord,si,temp,null, true, onPopupClose); popup.setBackgroundColor("transparent"); var maplon_test=maplon+0.04; map.setCenter(new OpenLayers.LonLat(maplon_test,maplat),8); map.addPopup(popup); }); }); } function onPopupClose(evt) { markers.map.removePopup(popup); popup.destroy(); popup = null; } and its giving this error OpenLayers.Popup.FramedCloud is not a constructor. I am confused wat the problem is Pls suggest.. Regards Kusum -------------------------------------------------- From: "Eric Lemoine" Sent: Wednesday, May 14, 2008 2:05 PM To: "Kusum" Cc: "Openlayers Users" Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport > On Wed, May 14, 2008 at 7:28 AM, Kusum wrote: >> Dear All, >> >> >> I am trying to make some nice looking popups and want that the map should >> pan itself when popup goes to the corner >> so that the popup comes in the center and is not hidden on any corners. >> >> I am trying to use panMapIfOutOfView but its not working >> >> popup = new OpenLayers.Popup("pof",coord,si,temp,true >> ,{autoSize:true},{panMapIfOutOfView:true}); >> >> Please suggest. >> >> Also Can u please suggest me where can I find some examples of good >> popups?? > > You may like the FramedCloud popups that are in 2.6. Check this > example > > Cheers, > > -- > Eric From kusum at infobase.in Wed May 14 07:50:13 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> Message-ID: Will these work in 2.5. -------------------------------------------------- From: "Eric Lemoine" Sent: Wednesday, May 14, 2008 2:05 PM To: "Kusum" Cc: "Openlayers Users" Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport > On Wed, May 14, 2008 at 7:28 AM, Kusum wrote: >> Dear All, >> >> >> I am trying to make some nice looking popups and want that the map should >> pan itself when popup goes to the corner >> so that the popup comes in the center and is not hidden on any corners. >> >> I am trying to use panMapIfOutOfView but its not working >> >> popup = new OpenLayers.Popup("pof",coord,si,temp,true >> ,{autoSize:true},{panMapIfOutOfView:true}); >> >> Please suggest. >> >> Also Can u please suggest me where can I find some examples of good >> popups?? > > You may like the FramedCloud popups that are in 2.6. Check this > example > > Cheers, > > -- > Eric From crschmidt at metacarta.com Wed May 14 08:34:44 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport In-Reply-To: References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> Message-ID: <20080514123443.GA17076@metacarta.com> On Wed, May 14, 2008 at 05:20:13PM +0530, Kusum wrote: > Will these work in 2.5. As Eric said: > > You may like the FramedCloud popups that are in 2.6. Check this ^^^^^^ This code might work in 2.5, if you were to backport it, but it's not a trivial backport. Use 2.6, and life is easy. Regards, -- Christopher Schmidt MetaCarta From helle at sdac.hannover.bgr.de Wed May 14 09:23:41 2008 From: helle at sdac.hannover.bgr.de (Nina Helle-Mildt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] WMS on top of Google Maps Message-ID: <482AE7DD.3020807@sdac.hannover.bgr.de> Hi to all, I have a WMS-layer with point data for the area of Germany and maybe Europe that I want to display on top of Google Maps using OpenLayers. Can someone give me a hint what projection to use in my WMS-Layer in order to display it "right" on top of Google Maps? (So far I'm using EPSG:4326). Any advice appreciated, thanks. Nina From bartvde at osgis.nl Wed May 14 09:28:59 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] WMS on top of Google Maps In-Reply-To: <482AE7DD.3020807@sdac.hannover.bgr.de> References: <482AE7DD.3020807@sdac.hannover.bgr.de> Message-ID: <6dea70054cbb7e0e1363ad5dbb754859@pop02.backbone.tiscomhosting.nl> Hi Nina, see: http://trac.openlayers.org/wiki/SphericalMercator for more info. Best regards, Bart On Wed, 14 May 2008 15:23:41 +0200, Nina Helle-Mildt wrote: > Hi to all, > > I have a WMS-layer with point data for the area of Germany and maybe > Europe that I want to display on top of Google Maps using OpenLayers. > Can someone give me a hint what projection to use in my WMS-Layer in > order to display it "right" on top of Google Maps? > > (So far I'm using EPSG:4326). > > Any advice appreciated, thanks. > > Nina > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From arnd.wippermann at web.de Wed May 14 13:55:49 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: <482A8351.7030707@gmail.com> Message-ID: Hi Andreas, For this task (delete a whole feature) I have overwriten OpenLayers.Control.ModifyFeature.prototype.handleKeypress. With the key "k" i kill a feature (only FF). Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ OpenLayers.Control.ModifyFeature.prototype.handleKeypress = function(code) { /** * Method: handleKeypress * Called by the feature handler on keypress. This is used to delete * vertices and point features. If the property is set, * vertices and points will be deleted when a feature is selected * for modification and the mouse is over a vertex. * * Parameters: * {Integer} Key code corresponding to the keypress event. */ //handleKeypress: function(code) { // check for delete key if(this.feature && OpenLayers.Util.indexOf(this.deleteCodes, code) != -1 && code != 107) { var vertex = this.dragControl.feature; if(vertex && OpenLayers.Util.indexOf(this.vertices, vertex) != -1) { // remove the vertex vertex.geometry.parent.removeComponent(vertex.geometry); this.layer.drawFeature(this.feature, this.selectControl.selectStyle); this.resetVertices(); this.onModification(this.feature); } } else if(this.feature && OpenLayers.Util.indexOf(this.deleteCodes, code) != -1 && code == 107) { var obj = this.feature; var lyr = obj.layer; this.unselectFeature(obj); lyr.removeFeatures(obj); } } -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Andreas Hocevar Gesendet: Mittwoch, 14. Mai 2008 08:15 An: OpenLayers Users Betreff: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? A question to all vector editing gurus: Is it possible to make the ModifyFeature control delete a point by clicking the Del button? I know that the Del button will delete vertices on geometries, but what about points (only one vertex)? Is there a simple workaround to delete the whole feature instead of a vertex? Thanks! Andreas. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From getmandj at ornl.gov Wed May 14 14:24:14 2008 From: getmandj at ornl.gov (getdano) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Beginner Virtual Earth Problems Message-ID: <17236190.post@talk.nabble.com> I am experiencing the same behavior. The VE Layer works great by itself but as soon as you select another base layer, selecting the VE layer does not bring it back. I don?t believe this was a problem in the previous version of OpenLayers. In fact, I replaced the 2.6 lib files with the 2.5 lib files and the base layers example works fine with the older lib. Is there some change that I have missed in the upgrade? Any advice would be greatly appreciated. Richard Marsden-119 wrote: > > I am currently using MapServer and OpenLayers for an online mapping > project to display a rain forest study area - unfortunately I'm a bit > of a beginner with both! I'm currently having problems using Virtual > Earth in OpenLayers: in particular switching between layers, and with VE > versions. > > Virtual Earth isn't suitable for the main map because our study area is > only about 10ha of Costa Rican rain forest - ie. the detail just isn't > there. However, I am try to use Virtual Earth as an optional base map to > show the study area in context. > > I've managed to get the OpenLayers Virtual Earth sample working with a > MapServer WMS hydrology overlay ('synthetic streams'). > I'm currently trying to get it to work with an alternative "outline map". > > Ie. there are two base layers that can be chosen with a pair of radio > buttons in the LayerSwitcher: 'Virtual Earth Base Layer', and > 'Outline' (WMS delivered shape file) > An optional overlay is selected with a checkbox: 'Synthetic streams' > (also via WMS). > > This is a work in progress so the colours could be improved, but my > results are here: > > http://www.ecomapcostarica.com/map/map_beta.html > > Virtual Earth imagery loads okay at first. Switching to the 'Outline' > works as well. However, when I switch back to Virtual Earth, it fails to > re-appear. Instead, Outline is replaced with a white fill. > > What am I doing wrong? Or is this kind of behaviour not supported? > > This is my Javascript: > > > > > > > > > ---- > > I've also tried changing the script to use v6.1 of the Virtual Earth > Control, ie.: > > > > The results can be seen here: > > http://www.ecomapcostarica.com/map/map_ve.html > > The default "North America" map appears - not my selected area at all, > and none of the OpenLayers controls (zoom, layer selection, etc) appear. > > Is v3 the latest version supported by OpenLayers? Are there any plans > to update this in the near future? I see that Microsoft are actively > retiring old versions of the Virtual Earth API. > > Thanks in advance. OpenLayers and MapServer are both capable of some > pretty neat stuff - I have high hopes regarding the final result! > > > Richard Marsden > Wiwnaed Software Technology LLC > http://www.winwaed.com > http://www.mapping-tools.com > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Beginner-Virtual-Earth-Problems-tp17027774p17236190.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From richard at winwaed.com Wed May 14 14:34:39 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Beginner Virtual Earth Problems Message-ID: <482B30BF.8070804@winwaed.com> Yes I now have two separate pages. The example URLs in my earlier message will be broken now. That works but there are some bugs. The base layer switching still doesn't work - having two pages is merely a work around. I've also found a problem with Firefox (but not IE). My OpenLayer's div has a 100% width setting (in CSS). This works fine for the other layers, but the VE layer does not respect it and appears to use a default fixed setting. Overriding a fixed width for the div appears to work, but this doesn't fit with my site style/template very well! And another issue is that only v3 & v4 are supported - both are being retired by Microsoft at the end of August. I've filed a ticket on this one. For positive news, I've also sent a "how to" article to ViaVirtualEarth. My maps are at: http://www.ecomapcostarica.com/map/index.shtml http://www.ecomapcostarica.com/map/index_ve.shtml We hope to have some updates (map updates and student blogs) whilst we're out in the field from the 27th onwards. Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com http://www.mapping-tools.com getdano wrote: > I am experiencing the same behavior. The VE Layer works great by itself but > as soon as you select another base layer, selecting the VE layer does not > bring it back. > > I don't believe this was a problem in the previous version of OpenLayers. In > fact, I replaced the 2.6 lib files with the 2.5 lib files and the base > layers example works fine with the older lib. > > Is there some change that I have missed in the upgrade? Any advice would be > greatly appreciated. > > > > > Richard Marsden-119 wrote: > >> I am currently using MapServer and OpenLayers for an online mapping >> project to display a rain forest study area - unfortunately I'm a bit >> of a beginner with both! I'm currently having problems using Virtual >> Earth in OpenLayers: in particular switching between layers, and with VE >> versions. >> >> Virtual Earth isn't suitable for the main map because our study area is >> only about 10ha of Costa Rican rain forest - ie. the detail just isn't >> there. However, I am try to use Virtual Earth as an optional base map to >> show the study area in context. >> >> I've managed to get the OpenLayers Virtual Earth sample working with a >> MapServer WMS hydrology overlay ('synthetic streams'). >> I'm currently trying to get it to work with an alternative "outline map". >> >> Ie. there are two base layers that can be chosen with a pair of radio >> buttons in the LayerSwitcher: 'Virtual Earth Base Layer', and >> 'Outline' (WMS delivered shape file) >> An optional overlay is selected with a checkbox: 'Synthetic streams' >> (also via WMS). >> >> This is a work in progress so the colours could be improved, but my >> results are here: >> >> http://www.ecomapcostarica.com/map/map_beta.html >> >> Virtual Earth imagery loads okay at first. Switching to the 'Outline' >> works as well. However, when I switch back to Virtual Earth, it fails to >> re-appear. Instead, Outline is replaced with a white fill. >> >> What am I doing wrong? Or is this kind of behaviour not supported? >> >> This is my Javascript: >> >> >> >> >> >> >> >> >> ---- >> >> I've also tried changing the script to use v6.1 of the Virtual Earth >> Control, ie.: >> >> >> >> The results can be seen here: >> >> http://www.ecomapcostarica.com/map/map_ve.html >> >> The default "North America" map appears - not my selected area at all, >> and none of the OpenLayers controls (zoom, layer selection, etc) appear. >> >> Is v3 the latest version supported by OpenLayers? Are there any plans >> to update this in the near future? I see that Microsoft are actively >> retiring old versions of the Virtual Earth API. >> >> Thanks in advance. OpenLayers and MapServer are both capable of some >> pretty neat stuff - I have high hopes regarding the final result! >> >> >> Richard Marsden >> Wiwnaed Software Technology LLC >> http://www.winwaed.com >> http://www.mapping-tools.com >> >> >> >> >> >> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080514/106f82b2/attachment.html From andreas.hocevar at gmail.com Wed May 14 16:26:56 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: References: <4829A748.1020508@gmail.com> <4829DB93.5020808@gmail.com> Message-ID: <482B4B10.4010703@gmail.com> Pierre GIRAUD wrote: > I don't think this is that simple. > To me, we can't define a context in addUniqueValueRules because it has > no knowledge of individual features. > It does not have to. But there is still something missing. Filters would have to do a similar check for a function type context like in http://trac.openlayers.org/changeset/6512#file1. Once we have that, the following modified version of addUniqueValueRules should do the trick: addUniqueValueRules: function(renderIntent, property, symbolizers, context) { var rules = []; for (var value in symbolizers) { rules.push(new OpenLayers.Rule({ symbolizer: symbolizers[value], context: context, filter: new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: property, value: value }) })); } this.styles[renderIntent].addRules(rules); }, > I can't find any example where a context is defined at OpenLayers.Rule > instantiation. > You're right, that is missing somehow, because the rules context is not very useful the way it is now. Regards, Andreas. From andreas.hocevar at gmail.com Wed May 14 16:29:53 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> Message-ID: <482B4BC1.1080201@gmail.com> Pierre GIRAUD wrote: > I think Eric is wrong on that point. > By hovering a vertex, you can delete it pressing the Del button. > Tricky, isn't it ? > I would have thought that it works like that, because it is promised in the API doc of Control.ModifyFeature, but it does not: /** * Method: handleKeypress * Called by the feature handler on keypress. This is used to delete * vertices and point features. If the property is set, * vertices and points will be deleted when a feature is selected * for modification and the mouse is over a vertex. * * Parameters: * {Integer} Key code corresponding to the keypress event. */ Also, handleKeypress is only triggered when the point is not selected. Is this behaviour considered bug or feature? Regards, Andreas. From kusum at infobase.in Thu May 15 01:54:15 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> <20080514123443.GA17076@metacarta.com> Message-ID: Thanks Christopher That was cool and easy to do. U r a life saver . One more thing cant we change the background color or border color or for that we will have to change the popup image. Thanks and Regards Kusum -------------------------------------------------- From: "Christopher Schmidt" Sent: Wednesday, May 14, 2008 6:04 PM To: "Kusum" Cc: "Eric Lemoine" ; "Openlayers Users" Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport > On Wed, May 14, 2008 at 05:20:13PM +0530, Kusum wrote: >> Will these work in 2.5. > > As Eric said: > >> > You may like the FramedCloud popups that are in 2.6. Check this > ^^^^^^ > > This code might work in 2.5, if you were to backport it, but it's not a > trivial backport. Use 2.6, and life is easy. > > Regards, > -- > Christopher Schmidt > MetaCarta From eric.c2c at gmail.com Thu May 15 03:14:50 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <482B4BC1.1080201@gmail.com> References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> <482B4BC1.1080201@gmail.com> Message-ID: <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> On Wed, May 14, 2008 at 10:29 PM, Andreas Hocevar wrote: > Pierre GIRAUD wrote: >> >> I think Eric is wrong on that point. >> By hovering a vertex, you can delete it pressing the Del button. >> Tricky, isn't it ? >> > > I would have thought that it works like that, because it is promised in the > API doc of Control.ModifyFeature, but it does not: Indeed, the API doc isn't correct. We cannot delete polygons et lines with the modify feature control, so why would we allow deleting points? Maybe you think that the control should allow deleting features? > > /** > * Method: handleKeypress > * Called by the feature handler on keypress. This is used to delete > * vertices and point features. If the property is set, > * vertices and points will be deleted when a feature is selected > * for modification and the mouse is over a vertex. > * > * Parameters: > * {Integer} Key code corresponding to the keypress event. > */ > > Also, handleKeypress is only triggered when the point is not selected. I don't get that. Could you please elaborate? Thanks, -- Eric From kusum at infobase.in Thu May 15 08:21:59 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> <20080514123443.GA17076@metacarta.com> Message-ID: <513BF8096D104616B54AA213707A1177@kusum> Dear all I am caught in a very difficult situation. In my application the user marks a point on map and enters description to the point. Aslo uploads photos. a folder is made into which the uploaded photos go and then I fetch the string for all photos in folder. And then the description and photos are seen in popup. But if the user marks a second point and uploads other photos in other folder and then sees the popup. In second popup new photos are seen but then photos of first popup also change as now they start using the new fetched image string for new popup. Isn't there an id corresponding each FramedCloud popup that I can assign and later use to fetch photos corresponding to it. Please Help. Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080515/de506e0e/attachment.html From wendell at enflight.com Thu May 15 13:33:36 2008 From: wendell at enflight.com (Wendell Turner) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] stitch together multiple maps? Message-ID: <20080515173336.GB9848@q.rho.net> I have several GeoTIFF images and each shows up just fine (by itself, using gdal2tile to break them up). How do I use OpenLayers to show a patchwork of maps? That is, the left edge of one is the right edge of the other; the bottom of one is the top of yet another, etc. In fact, I have lots of these that form a mosaic of a given area. Should I use gdalxxx to put them together to form one (very large) map and then use gdal2tile to break it up, or craft OpenLayers.Layer.TMS.prototype.getURL to determine which patch to get? If the latter, how do I reference everything in lat/lon degrees instead of pixels? Is there an example of this in the openlayers example section? I looked, but since I'm new to OpenLayers, I'm not sure what I was seeing, or what I should be looking for. Thanks, Wendell From jshort at lodgingcompany.com Thu May 15 14:48:21 2008 From: jshort at lodgingcompany.com (Jeremy Short) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Large PNG image degraded when inserted into smaller DIV Message-ID: <482C8575.9030409@lodgingcompany.com> I have a 24 bit PNG image 3872 by 2904 pixels (4 by 3 proportion) which when rendered in a DIV with those dimensions looks decent, but big. I want to display this image within a smaller div 400 by 300 pixels to make it manageable in terms of screen size and so I can use the zoom tool usefully. However when I do this it degrades the image such that the writing is jagged and not nearly as crisp, especially noticeable when I zoom in a couple of levels. Eventually, I'll be retrieving the image from Mapserver via tiling but I want to make sure I can render the full size image properly before I proceed. Is there a way to perform the desired resizing without the degradation of quality? Here is the code used. -- Jeremy Short IT Programmer The Lodging Company http://www.skihills.com/ From david.fawcett at gmail.com Thu May 15 16:06:28 2008 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Large PNG image degraded when inserted into smaller DIV In-Reply-To: <482C8575.9030409@lodgingcompany.com> References: <482C8575.9030409@lodgingcompany.com> Message-ID: Jeremy, In general, whenever you have text or other vector features in a raster/image format, they only look good within a relatively narrow scale window. If you are planning on serving this image up using MapServer, have you thought about separating the text out and using MapServer to put the text on as labels? This would give you crisp text at any scale. David. On Thu, May 15, 2008 at 1:48 PM, Jeremy Short wrote: > I have a 24 bit PNG image 3872 by 2904 pixels (4 by 3 proportion) which > when rendered in a DIV with those dimensions looks decent, but big. > > I want to display this image within a smaller div 400 by 300 pixels to > make it manageable in terms of screen size and so I can use the zoom > tool usefully. However when I do this it degrades the image such that > the writing is jagged and not nearly as crisp, especially noticeable > when I zoom in a couple of levels. > > Eventually, I'll be retrieving the image from Mapserver via tiling but I > want to make sure I can render the full size image properly before I > proceed. > > Is there a way to perform the desired resizing without the degradation > of quality? Here is the code used. > > > > > > > > > -- > Jeremy Short > IT Programmer > The Lodging Company > http://www.skihills.com/ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From SansonR at asurequality.com Thu May 15 17:41:53 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] stitch together multiple maps? In-Reply-To: <20080515173336.GB9848@q.rho.net> References: <20080515173336.GB9848@q.rho.net> Message-ID: <482D56E102000037000038D6@gate1.agriquality.com> Hi Wendell My belief is that you need something like Mapserver to serve the images. It would render a seamless "stitched" view on the fly, depending on the area you had zoomed into. OL just acts as the thin client viewer. Cheers, Robert Sanson >>> Wendell Turner 16/05/2008 5:33 a.m. >>> I have several GeoTIFF images and each shows up just fine (by itself, using gdal2tile to break them up). How do I use OpenLayers to show a patchwork of maps? That is, the left edge of one is the right edge of the other; the bottom of one is the top of yet another, etc. In fact, I have lots of these that form a mosaic of a given area. Should I use gdalxxx to put them together to form one (very large) map and then use gdal2tile to break it up, or craft OpenLayers.Layer.TMS.prototype.getURL to determine which patch to get? If the latter, how do I reference everything in lat/lon degrees instead of pixels? Is there an example of this in the openlayers example section? I looked, but since I'm new to OpenLayers, I'm not sure what I was seeing, or what I should be looking for. Thanks, Wendell _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080516/016d7f32/attachment.html From diegoguidi at gmail.com Fri May 16 03:42:44 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Say goodbye to 900913 Message-ID: http://www.iter.dk/post/2008/05/SphericalWeb-Mercator-EPSG-code-3785.aspx -- Diego Guidi From f.vanderbiest at gmail.com Fri May 16 10:22:48 2008 From: f.vanderbiest at gmail.com (=?ISO-8859-1?Q?Fran=E7ois_Van_Der_Biest?=) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Enabling/disabling controls Message-ID: <86169bba0805160722k7b7d39b5o23844f83e3517dd2@mail.gmail.com> Hi list, Currently, OpenLayers controls can be activated/deactivated but not enabled/disabled. In my mind, a disabled control should not be able to change state, nor being triggered, and its panel button would be grayed out (either in OpenLayers or MapFish panel). A simple use case would be the enabling/disabling of the SelectFeature control, based on the presence of features in the vector layer it is attached to. Other controls working on a vector layer's features could take advantage of this new feature too. Ticket 1535 ("featuresremoved" events on vector layers) would be of great help to do this. I just wanted to have your feedback on this before I write a ticket. Thank's to you all, F. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080516/164927a7/attachment.html From rob.braswell at unh.edu Fri May 16 11:23:48 2008 From: rob.braswell at unh.edu (Bobby H. Braswell) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers.Ajax.Request question Message-ID: <115D45C4-7812-494A-AB85-1EFEE9B78455@unh.edu> Hi- I am trying to call a cgi script using OpenLayers.Ajax.Request in OL2.6. I have the following call: new OpenLayers.Ajax.Request(url, { method: 'post', parameters: {width: 150, height, 300}, onComplete: printDone}); My problem is that if the method is post I am unable to get the parameters with my script. If I change it to 'get' everything works fine. I cannot use the get method for the real call because I have another parameter that I need to pass which is very long and if I pass it with the get method then I get "URI Too Large" errors. Thanks very much. -- Bobby H. Braswell (Rob) Institute for the Study of Earth Oceans and Space University of New Hampshire From rob.braswell at unh.edu Fri May 16 14:59:18 2008 From: rob.braswell at unh.edu (Bobby Braswell) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers.Ajax.Request question In-Reply-To: <121089CD850A6C428D442011256BC5CC0205BCF1@scorpio2.loyola.com> References: <115D45C4-7812-494A-AB85-1EFEE9B78455@unh.edu> <121089CD850A6C428D442011256BC5CC0205BCF1@scorpio2.loyola.com> Message-ID: <3F50D6C1-85F5-4340-8E82-948F37B02C4A@unh.edu> Hi- We are using perl scripts on an apache server. Rob Braswell On May 16, 2008, at 2:32 PM, Matthew Atkins wrote: > What server side technology are you using for your CGI script? > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org > ] > On Behalf Of Bobby H. Braswell > Sent: Friday, May 16, 2008 11:24 AM > To: users@openlayers.org > Subject: [OpenLayers-Users] OpenLayers.Ajax.Request question > > > Hi- > > I am trying to call a cgi script using OpenLayers.Ajax.Request in > OL2.6. I have > the following call: > > new OpenLayers.Ajax.Request(url, { > method: 'post', > parameters: {width: 150, height, 300}, > onComplete: printDone}); > > My problem is that if the method is post I am unable to get the > parameters with my script. If I change it to 'get' everything works > fine. I cannot use the get method for the real call because I have > another parameter that I need to pass which is very long and if I pass > it with the get method then I get "URI Too Large" errors. > > Thanks very much. > > -- > Bobby H. Braswell (Rob) > Institute for the Study of Earth Oceans and Space > University of New Hampshire > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From eric.c2c at gmail.com Fri May 16 17:48:26 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Multiple selectfeature on one layer In-Reply-To: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> Message-ID: <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> On Mon, May 5, 2008 at 12:51 PM, Lid Sjur Ringheim wrote: > Hello, > > > > This was working in OpenLayers 2.5 but I can't get it to work in 2.6. > > > > I'm having a GML layer with point features that I want to put a hover and a > click selectFeature control on but only the hover one seems to be working. > > This is the code I'm using which were working in 2.5 > > > > selfeature = new OpenLayers.Control.SelectFeature(pointlayer, { hover : > true, onSelect : onFeatureSelect, onUnselect :onFeatureUnselect}); > > clickfeature = new OpenLayers.Control.SelectFeature(pointlayer, > {onSelect : updateStationsFeature, onUnselect : updateStationsFeature}); > > > > map.addControl(clickfeature); > > map.addControl(selfeature); > > > > clickfeature.activate(); > > selfeature.activate(); > > > > In 2.6 only the first method is working the second is never used for some > reason. I have checked the DOM tree and both are part of the controls array > of the map object. > > > > Do anyone know a workaround for this? Maybe making two layers and having one > of them use the hover version and one the click version? I did some investigation, and having one "click" select feature control and one "hover" select feature control on the same layer works. The simplest way is to activate the click control after that with hover control. If done the other way around, then hoverControl.handler.stopClick = false must be done. This might still not work as you expect it to work because onSelect() of the click control won't be called when you go over a feature and click on it. But in fact it makes sense that onSelect() isn't called. You move over the feature, it gets selectetd, so clicking on it does trigger onSelect() because the feature is already selected. If you tell me more on what you want to achieve, I may be able to help you further. Sorry for taking so long to go back to you on this issue, but I was busy with other stuff. Cheers, -- Eric From eric.c2c at gmail.com Fri May 16 17:56:20 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers.Ajax.Request question In-Reply-To: <115D45C4-7812-494A-AB85-1EFEE9B78455@unh.edu> References: <115D45C4-7812-494A-AB85-1EFEE9B78455@unh.edu> Message-ID: <5ec103de0805161456p4d18a165g347c29f8e1f58f77@mail.gmail.com> On Fri, May 16, 2008 at 5:23 PM, Bobby H. Braswell wrote: > > Hi- > > I am trying to call a cgi script using OpenLayers.Ajax.Request in > OL2.6. I have > the following call: > > new OpenLayers.Ajax.Request(url, { > method: 'post', > parameters: {width: 150, height, 300}, > onComplete: printDone}); > > My problem is that if the method is post I am unable to get the > parameters with my script. If I change it to 'get' everything works > fine. I cannot use the get method for the real call because I have > another parameter that I need to pass which is very long and if I pass > it with the get method then I get "URI Too Large" errors. > > Thanks very much. Hello If you open Firebug and inspect your POST request do you see your parameters in the body? If not this looks like a problem a OpenLayers (which I doubt). If you see them, then your problem is in your CGI perl script and this mailing mailing isn't the right place to answer your question. Cheers, -- Eric From eric.c2c at gmail.com Fri May 16 18:03:56 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport In-Reply-To: <513BF8096D104616B54AA213707A1177@kusum> References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> <20080514123443.GA17076@metacarta.com> <513BF8096D104616B54AA213707A1177@kusum> Message-ID: <5ec103de0805161503g492d0d1eo4a8b04d070663c3e@mail.gmail.com> On Thu, May 15, 2008 at 2:21 PM, Kusum wrote: > Dear all > > I am caught in a very difficult situation. In my application the user marks > a point on map and enters description to the point. > Aslo uploads photos. > a folder is made into which the uploaded photos go and then I fetch the > string for all photos in folder. > And then the description and photos are seen in popup. > But if the user marks a second point and uploads other photos in other > folder and then sees the popup. > In second popup new photos are seen but then photos of first popup also > change as now they start using the new fetched image string for new popup. > > Isn't there an id corresponding each FramedCloud popup that I can assign and > later use to fetch photos corresponding to it. If you pass null as the first arg to the popup constructor, OL will create a popup id for you which you can refer to using popup.id. Would that help? -- Eric From eric.c2c at gmail.com Fri May 16 18:09:11 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Large PNG image degraded when inserted into smaller DIV In-Reply-To: <482C8575.9030409@lodgingcompany.com> References: <482C8575.9030409@lodgingcompany.com> Message-ID: <5ec103de0805161509p3836c291hc4c6a93387ac1da2@mail.gmail.com> On Thu, May 15, 2008 at 8:48 PM, Jeremy Short wrote: > I have a 24 bit PNG image 3872 by 2904 pixels (4 by 3 proportion) which > when rendered in a DIV with those dimensions looks decent, but big. > > I want to display this image within a smaller div 400 by 300 pixels to > make it manageable in terms of screen size and so I can use the zoom > tool usefully. However when I do this it degrades the image such that > the writing is jagged and not nearly as crisp, especially noticeable > when I zoom in a couple of levels. > > Eventually, I'll be retrieving the image from Mapserver via tiling but I > want to make sure I can render the full size image properly before I > proceed. If you use MapServer it'll be the one responsible for down-sampling your image. And it'll probably be better than your browser to do so. I might be wrong, but that's my feeling. -- Eric From eric.c2c at gmail.com Fri May 16 18:15:04 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] stitch together multiple maps? In-Reply-To: <20080515173336.GB9848@q.rho.net> References: <20080515173336.GB9848@q.rho.net> Message-ID: <5ec103de0805161515mcfb5916v295b10a8905df5b2@mail.gmail.com> On Thu, May 15, 2008 at 7:33 PM, Wendell Turner wrote: > I have several GeoTIFF images and each shows up just fine > (by itself, using gdal2tile to break them up). > > How do I use OpenLayers to show a patchwork of maps? That > is, the left edge of one is the right edge of the other; the > bottom of one is the top of yet another, etc. In fact, I > have lots of these that form a mosaic of a given area. > > Should I use gdalxxx to put them together to form one (very > large) map and then use gdal2tile to break it up, or craft > OpenLayers.Layer.TMS.prototype.getURL to determine which > patch to get? If the latter, how do I reference everything > in lat/lon degrees instead of pixels? > > Is there an example of this in the openlayers example > section? I looked, but since I'm new to OpenLayers, I'm not > sure what I was seeing, or what I should be looking for. You can use gdal2tiles to generate tiles in a TMS structure and use OpenLayers.Layer.TMS to access these tiles. See and . Cheers, -- Eric From kusum at infobase.in Sat May 17 03:40:17 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> <20080514123443.GA17076@metacarta.com> <513BF8096D104616B54AA213707A1177@kusum> <5ec103de0805161503g492d0d1eo4a8b04d070663c3e@mail.gmail.com> Message-ID: <51C789E9AD1C4A9BBCD3C19658826D6A@kusum> Dear Eric, I am into great fuss over here The pop up id does not work coz popup is made afterwards I may need to use marker name or something The clear situation is something as this:- I am making a feature in which a user can mark a point on map,add photos the user marks the point, enters name , uploads images then on mouse over the marker the images are fetched using name entered above from folder of that name then user marks second popup,enters name,uploads images now when user takes cursor on this pop up new images are fetched using new name entered Now the problem When user takes cursor to first popup , it shows images of second pop up coz name value is changed and its using changed name value to fetch images. I tried to use markers layer id instead of name but it also changes every time.... if I try to set this.markers.name above markers.events.register('mouseover', markers, function(evt) { Nd then try to use this.markers.name after this code to fetch images it says this.markers.name is undefined.... map.events.register("click", map, function(e) { var lonlat = map.getLonLatFromViewPortPx(e.xy); var maplat = lonlat.lat; var maplon=lonlat.lon ; //document.getElementById("lati").value=maplat; //document.getElementById("long").value=maplon; var markers = new OpenLayers.Layer.Markers( "Markers" ); map.addLayer(markers); var size = new OpenLayers.Size(33,28); var offset = new OpenLayers.Pixel(-(size.w), -size.h); var icon = new OpenLayers.Icon('http://localhost/maplab/interactive-maps/img/poi.gif',size,offset); var marker =new OpenLayers.Marker(new OpenLayers.LonLat(maplon,maplat),icon) markers.addMarker(marker); var name=prompt("Name","") marker.id=name; alert(marker.id); var p =prompt ("Desc","") var answer = confirm("Do u want to upload any images?") if (answer){ var pwin = window.open("test.php?name="+name,"test","width=300,height=180,status=no,resizable=no"); } var bbc=""; imagestr="

Description:-"+p+"

"+imagestr_final+"
"+link+"



"; // popup = new OpenLayers.Popup("pof",coord,si,temp,true ,{autoSize:true},{panMapIfOutOfView:true}); popup = new OpenLayers.Popup.FramedCloud(name,coord,si,temp,null, true); popup.setContentHTML(temp); map.addPopup(popup); document.getElementById('check_bol').value="false"; } }); /*markers.events.register('mouseout', markers, function(evt) {markers.map.removePopup(popup); popup.destroy(); popup = null; }); */ }); Pls suggest something.... Regards Kusum -------------------------------------------------- From: "Eric Lemoine" Sent: Saturday, May 17, 2008 3:33 AM To: "Kusum" Cc: "Christopher Schmidt" ; "Openlayers Users" Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport > On Thu, May 15, 2008 at 2:21 PM, Kusum wrote: >> Dear all >> >> I am caught in a very difficult situation. In my application the user marks >> a point on map and enters description to the point. >> Aslo uploads photos. >> a folder is made into which the uploaded photos go and then I fetch the >> string for all photos in folder. >> And then the description and photos are seen in popup. >> But if the user marks a second point and uploads other photos in other >> folder and then sees the popup. >> In second popup new photos are seen but then photos of first popup also >> change as now they start using the new fetched image string for new popup. >> >> Isn't there an id corresponding each FramedCloud popup that I can assign and >> later use to fetch photos corresponding to it. > > If you pass null as the first arg to the popup constructor, OL will > create a popup id for you which you can refer to using popup.id. Would > that help? > > -- > Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080517/24787aaa/attachment.html From lancelot at inetnebr.com Sat May 17 11:24:27 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: <20080513172753.GA4099@metacarta.com> References: <4829A748.1020508@gmail.com> <4829B379.20202@anyware-tech.com> <20080513172753.GA4099@metacarta.com> Message-ID: <482EF8AB.9010404@inetnebr.com> Could a filter be assigned as a layer attribute on WFS layer? filter: uriencode("") assuming the server accepts filters in a GET Christopher Schmidt wrote: > On Tue, May 13, 2008 at 05:27:53PM +0200, Damien Dudognon wrote: > >> Hi all, >> >> I performed a research on Google, and I did not get defined answer. So, >> I would know if OpenLayers is WFS 1.1.0 compliant. >> >> I plan to couple a Deegree WFS server and OpenLayers, but I meet some >> problems. >> > > OpenLayers delivers WFS spatial filters via the "?bbox=" param, which I > hear that deegree doesn't support. It expects WFS Filters, which > OpenLayers does not support. > > Regards, > Christopher Schmidt wrote: > On Tue, May 13, 2008 at 05:27:53PM +0200, Damien Dudognon wrote: > >> Hi all, >> >> I performed a research on Google, and I did not get defined answer. So, >> I would know if OpenLayers is WFS 1.1.0 compliant. >> >> I plan to couple a Deegree WFS server and OpenLayers, but I meet some >> problems. >> > > OpenLayers delivers WFS spatial filters via the "?bbox=" param, which I > hear that deegree doesn't support. It expects WFS Filters, which > OpenLayers does not support. > > Regards, > From crschmidt at metacarta.com Sat May 17 13:45:21 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: <482EF8AB.9010404@inetnebr.com> References: <4829A748.1020508@gmail.com> <4829B379.20202@anyware-tech.com> <20080513172753.GA4099@metacarta.com> <482EF8AB.9010404@inetnebr.com> Message-ID: <20080517174520.GA30672@metacarta.com> On Sat, May 17, 2008 at 10:24:27AM -0500, Lance Dyas wrote: > Could a filter be assigned as a layer attribute on WFS layer? > filter: uriencode("") > > assuming the server accepts filters in a GET Not on a WFS layer. bbox is sent with all requests. You could do that with a GML layer. -- Chris > Christopher Schmidt wrote: > >On Tue, May 13, 2008 at 05:27:53PM +0200, Damien Dudognon wrote: > > > >>Hi all, > >> > >>I performed a research on Google, and I did not get defined answer. So, > >>I would know if OpenLayers is WFS 1.1.0 compliant. > >> > >>I plan to couple a Deegree WFS server and OpenLayers, but I meet some > >>problems. > >> > > > >OpenLayers delivers WFS spatial filters via the "?bbox=" param, which I > >hear that deegree doesn't support. It expects WFS Filters, which > >OpenLayers does not support. > > > >Regards, > > > > > Christopher Schmidt wrote: > >On Tue, May 13, 2008 at 05:27:53PM +0200, Damien Dudognon wrote: > > > >>Hi all, > >> > >>I performed a research on Google, and I did not get defined answer. So, > >>I would know if OpenLayers is WFS 1.1.0 compliant. > >> > >>I plan to couple a Deegree WFS server and OpenLayers, but I meet some > >>problems. > >> > > > >OpenLayers delivers WFS spatial filters via the "?bbox=" param, which I > >hear that deegree doesn't support. It expects WFS Filters, which > >OpenLayers does not support. > > > >Regards, > > > -- Christopher Schmidt MetaCarta From andreas.hocevar at gmail.com Sat May 17 14:29:50 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> <482B4BC1.1080201@gmail.com> <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> Message-ID: <5b021dd0805171129p291695d5xfda08ee6717ac7d4@mail.gmail.com> On 5/15/08, Eric Lemoine wrote: > On Wed, May 14, 2008 at 10:29 PM, Andreas Hocevar > wrote: >> Pierre GIRAUD wrote: >>> >>> I think Eric is wrong on that point. >>> By hovering a vertex, you can delete it pressing the Del button. >>> Tricky, isn't it ? >>> >> >> I would have thought that it works like that, because it is promised in >> the >> API doc of Control.ModifyFeature, but it does not: > > Indeed, the API doc isn't correct. > > We cannot delete polygons et lines with the modify feature control, so > why would we allow deleting points? Maybe you think that the control > should allow deleting features? I was thinking that a feature gets deleted when we remove its last vertex. But then, this would also mean if there are only 3 vertices of a polygon left and we delete one we end up having a line, and if we delete another vertex we get a point. Not a good idea to do it like that. So you convinced me that the current behaviour is desirable, and that only the API doc is incorrect. >> Also, handleKeypress is only triggered when the point is not selected. > > I don't get that. Could you please elaborate? I set a breakpoint using Firebug in the handleKeypress method of Control.ModifyFeature, and found out that this one only gets triggered (for a point) when the point is not selected (i.e. "blue") while hovering over it. Regards, Andreas. From eric.c2c at gmail.com Sat May 17 15:38:15 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] popup hidden when goes on sides of viewport In-Reply-To: <51C789E9AD1C4A9BBCD3C19658826D6A@kusum> References: <691161CD46A94F05B5FDD177FBDB4C89@kusum> <5ec103de0805140135g1fc9ab8dud8b8708f7d08dc58@mail.gmail.com> <20080514123443.GA17076@metacarta.com> <513BF8096D104616B54AA213707A1177@kusum> <5ec103de0805161503g492d0d1eo4a8b04d070663c3e@mail.gmail.com> <51C789E9AD1C4A9BBCD3C19658826D6A@kusum> Message-ID: <5ec103de0805171238g1b9c0ac9ne4e54012e5eefea7@mail.gmail.com> Kusum, I couldn't quite read your code, formatting was too bad. Anyway, I've created an example showing that you can name markers and get that name when the mouse goes over the markers. See attached file. Just drop that file into OpenLayers' example dir and it should work. Hope this helps, -- Eric On Sat, May 17, 2008 at 9:40 AM, Kusum wrote: > Dear Eric, > > I am into great fuss over here > > The pop up id does not work coz popup is made afterwards > > I may need to use marker name or something > > The clear situation is something as this:- > > I am making a feature in which a user can mark a point on map,add photos > > the user marks the point, enters name , uploads images > > then on mouse over the marker the images are fetched using name entered > above from folder of that name > > then user marks second popup,enters name,uploads images > > now when user takes cursor on this pop up new images are fetched using new > name entered > > Now the problem > > When user takes cursor to first popup , it shows images of second pop up coz > name value is changed > and its using changed name value to fetch images. > > I tried to use markers layer id instead of name but it also changes every > time.... > > if I try to set this.markers.name above > > markers.events.register('mouseover', markers, function(evt) { > > > Nd then try to use this.markers.name after this code to fetch images it says > this.markers.name is undefined.... > > > > map.events.register("click", map, function(e) { > var lonlat = map.getLonLatFromViewPortPx(e.xy); > var maplat = lonlat.lat; > var maplon=lonlat.lon ; > > //document.getElementById("lati").value=maplat; > //document.getElementById("long").value=maplon; > var markers = new OpenLayers.Layer.Markers( "Markers" ); > map.addLayer(markers); > var size = new OpenLayers.Size(33,28); > var offset = new OpenLayers.Pixel(-(size.w), -size.h); > > var icon = new > OpenLayers.Icon('http://localhost/maplab/interactive-maps/img/poi.gif',size,offset); > var marker =new OpenLayers.Marker(new OpenLayers.LonLat(maplon,maplat),icon) > markers.addMarker(marker); > > var name=prompt("Name","") > marker.id=name; > alert(marker.id); > var p =prompt ("Desc","") > var answer = confirm("Do u want to upload any images?") > if (answer){ > var pwin = > window.open("test.php?name="+name,"test","width=300,height=180,status=no,resizable=no"); > } > var bbc=""; > > imagestr=" var pin=new OpenLayers.Control.MousePosition({prefix: 'Lon: ', separator: > ' Lat:'}) > alert(pin); > returnimages(marker.id); //This function fetches images with name sent of > folder but id of marker changes each time name changes above) > > > var check = document.getElementById('check_bol').value; > alert(check); > > if(check){ > var string_result = document.getElementById('string');//(final images string > fetched) > bbc=string_result.value; > alert(bbc); > feature = new OpenLayers.Feature(layer,new > OpenLayers.LonLat(maplon,maplat)); > var coord = new OpenLayers.LonLat(maplon,maplat); > var si = new OpenLayers.Size(240,410); > imagestr_final=bbc; > var link ="Refresh Images"; > var temp ="
"+name+"

Description:- type=verdana > size=3>"+p+"

"+imagestr_final+"
"+link+"



"; > // popup = new OpenLayers.Popup("pof",coord,si,temp,true > ,{autoSize:true},{panMapIfOutOfView:true}); > popup = new OpenLayers.Popup.FramedCloud(name,coord,si,temp,null, true); > popup.setContentHTML(temp); > map.addPopup(popup); > document.getElementById('check_bol').value="false"; > } > > }); > /*markers.events.register('mouseout', markers, function(evt) > {markers.map.removePopup(popup); > popup.destroy(); > popup = null; > > }); */ > > > }); > > > Pls suggest something.... > > Regards > Kusum > > > -------------------------------------------------- > From: "Eric Lemoine" > Sent: Saturday, May 17, 2008 3:33 AM > To: "Kusum" > Cc: "Christopher Schmidt" ; "Openlayers Users" > > Subject: Re: [OpenLayers-Users] popup hidden when goes on sides of viewport > >> On Thu, May 15, 2008 at 2:21 PM, Kusum wrote: >>> Dear all >>> >>> I am caught in a very difficult situation. In my application the user >>> marks >>> a point on map and enters description to the point. >>> Aslo uploads photos. >>> a folder is made into which the uploaded photos go and then I fetch the >>> string for all photos in folder. >>> And then the description and photos are seen in popup. >>> But if the user marks a second point and uploads other photos in other >>> folder and then sees the popup. >>> In second popup new photos are seen but then photos of first popup also >>> change as now they start using the new fetched image string for new >>> popup. >>> >>> Isn't there an id corresponding each FramedCloud popup that I can assign >>> and >>> later use to fetch photos corresponding to it. >> >> If you pass null as the first arg to the popup constructor, OL will >> create a popup id for you which you can refer to using popup.id. Would >> that help? >> >> -- >> Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080517/66adfb36/named-markers.html From arnd.wippermann at web.de Sat May 17 15:53:24 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: <20080517174520.GA30672@metacarta.com> Message-ID: It's possible to add a filter with mergeNewParams. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26examples/wfs_filter_without_e ncoding_26.html But in this case the bbox will not be used and the request returns a response for features outside the view. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From eric.c2c at gmail.com Sat May 17 16:06:22 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <5b021dd0805171129p291695d5xfda08ee6717ac7d4@mail.gmail.com> References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> <482B4BC1.1080201@gmail.com> <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> <5b021dd0805171129p291695d5xfda08ee6717ac7d4@mail.gmail.com> Message-ID: <5ec103de0805171306h6d9a7011l23b5560e97ada106@mail.gmail.com> On Sat, May 17, 2008 at 8:29 PM, Andreas Hocevar wrote: > I set a breakpoint using Firebug in the handleKeypress method of > Control.ModifyFeature, and found out that this one only gets triggered > (for a point) when the point is not selected (i.e. "blue") while > hovering over it. Well, I just did the same kind of experiment as you, i.e. set a breakpoint in handleKeypress and see what's going on. And I must say that it's a lot confusing. When replacing the breakpoint with a console.log() things gets clearer, and the current behavior looks correct. Firebug and keyboard events don't play well together or something... -- Eric From crschmidt at metacarta.com Sat May 17 16:07:54 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: References: <20080517174520.GA30672@metacarta.com> Message-ID: <20080517200754.GA32474@metacarta.com> On Sat, May 17, 2008 at 09:53:24PM +0200, Arnd Wippermann wrote: > It's possible to add a filter with mergeNewParams. > > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26examples/wfs_filter_without_e > ncoding_26.html > > But in this case the bbox will not be used and the request returns a > response for features outside the view. Accepting both of these parameters and not throwing an error is a violation of the spec. Additionally, there is no reason to do this, because it still reloads with the dragging o the map, but it doens't need to, because the data is always the same. Instead, one should just use a GML layer, since that doesn't refresh unneccesarily when you drag. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Sat May 17 16:14:11 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using the ModifyFeature control? In-Reply-To: <5b021dd0805171129p291695d5xfda08ee6717ac7d4@mail.gmail.com> References: <482A8351.7030707@gmail.com> <5ec103de0805140002k6556a539m65d6893752e97e46@mail.gmail.com> <482B4BC1.1080201@gmail.com> <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> <5b021dd0805171129p291695d5xfda08ee6717ac7d4@mail.gmail.com> Message-ID: <5ec103de0805171314m4eae7b23m91c5c9d386a44cd0@mail.gmail.com> On Sat, May 17, 2008 at 8:29 PM, Andreas Hocevar wrote: > [...] > I was thinking that a feature gets deleted when we remove its last > vertex. But then, this would also mean if there are only 3 vertices of > a polygon left and we delete one we end up having a line, and if we > delete another vertex we get a point. Not a good idea to do it like > that. So you convinced me that the current behaviour is desirable, and > that only the API doc is incorrect. API doc comments changed in r7213 (). Thanks, -- Eric From arnd.wippermann at web.de Sat May 17 16:19:42 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> Message-ID: I would appreciate, if the Control.ModifyFeature would enhanced to delete features. If you use OL for digitizing, you have a problem to get rid of a feature. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Eric Lemoine Gesendet: Donnerstag, 15. Mai 2008 09:15 An: Andreas Hocevar Cc: OpenLayers Users Betreff: Re: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? On Wed, May 14, 2008 at 10:29 PM, Andreas Hocevar wrote: > Pierre GIRAUD wrote: >> >> I think Eric is wrong on that point. >> By hovering a vertex, you can delete it pressing the Del button. >> Tricky, isn't it ? >> > > I would have thought that it works like that, because it is promised > in the API doc of Control.ModifyFeature, but it does not: Indeed, the API doc isn't correct. We cannot delete polygons et lines with the modify feature control, so why would we allow deleting points? Maybe you think that the control should allow deleting features? > > /** > * Method: handleKeypress > * Called by the feature handler on keypress. This is used to delete > * vertices and point features. If the property is set, > * vertices and points will be deleted when a feature is selected > * for modification and the mouse is over a vertex. > * > * Parameters: > * {Integer} Key code corresponding to the keypress event. > */ > > Also, handleKeypress is only triggered when the point is not selected. I don't get that. Could you please elaborate? Thanks, -- Eric _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From eric.c2c at gmail.com Sat May 17 16:34:11 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: References: <5ec103de0805150014o4095b0a8t56626148b5cefedb@mail.gmail.com> Message-ID: <5ec103de0805171334v2593ecb5lbc8275c17d2e572e@mail.gmail.com> On Sat, May 17, 2008 at 10:19 PM, Arnd Wippermann wrote: > I would appreciate, if the Control.ModifyFeature would enhanced to delete > features. > > If you use OL for digitizing, you have a problem to get rid of a feature. What would you like the modify feature control to provide? Some way to delete features when the user selects a feature and press certain keys? -- Eric From arnd.wippermann at web.de Sat May 17 17:38:58 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: <5ec103de0805171334v2593ecb5lbc8275c17d2e572e@mail.gmail.com> Message-ID: I have overwritten OpenLayers.Control.ModifyFeature.prototype.handleKeypress to use the key "k" to delete a selected feature. It works great. Arnd -----Urspr?ngliche Nachricht----- Von: eric.c2c@gmail.com [mailto:eric.c2c@gmail.com] Gesendet: Samstag, 17. Mai 2008 22:34 An: Arnd Wippermann Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? On Sat, May 17, 2008 at 10:19 PM, Arnd Wippermann wrote: > I would appreciate, if the Control.ModifyFeature would enhanced to > delete features. > > If you use OL for digitizing, you have a problem to get rid of a feature. What would you like the modify feature control to provide? Some way to delete features when the user selects a feature and press certain keys? -- Eric From ks at geograf.dk Sun May 18 09:29:29 2008 From: ks at geograf.dk (Kenneth Skovhede, GEOGRAF A/S) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Animation in OpenLayers Message-ID: <48302F39.9090807@geograf.dk> I can see that there are several patches supporting zoom animation, which are reportedly included in OpenLayers 2.6. Why are these not enabled in the demo application on the main page? http://openlayers.org/ -- Regards, Kenneth Skovhede, GEOGRAF A/S From lancelot at inetnebr.com Sun May 18 10:14:55 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Animation in OpenLayers In-Reply-To: <48302F39.9090807@geograf.dk> References: <48302F39.9090807@geograf.dk> Message-ID: <483039DF.908@inetnebr.com> Kenneth Skovhede, GEOGRAF A/S wrote: > I can see that there are several patches supporting zoom animation, > which are reportedly included in OpenLayers 2.6. > Why are these not enabled in the demo application on the main page? > http://openlayers.org/ > Yes I would say its a very impressive feature, google shows there coolness on maps.google.com first ... then sometimes later propogates to its API developers... OpenLayers you see it in developed pages before it ever gets back to the site ;-) it's an irony that shows a difference. From alessio.dilorenzo at gmail.com Sun May 18 12:10:38 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] overviewmap style properties Message-ID: <483054FE.5010206@gmail.com> Hi list, I'm working on the overview map outside the map viewport and everything is going fine but I don't uderstand if it is possible to restyle the overview map (by deleting, for example, the blue border) without working directly on the style.css file. I read the online docs concerning the minRectDisplayClass http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap but I don't understand exactly how to use it and if this class is suitable to reach my purpouse... that is to manage the overview map style. Could you give me some hints? thx in advance, alessio From eric.c2c at gmail.com Sun May 18 17:47:30 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Animation in OpenLayers In-Reply-To: <48302F39.9090807@geograf.dk> References: <48302F39.9090807@geograf.dk> Message-ID: <5ec103de0805181447y3e209a99y9876a55de549851b@mail.gmail.com> On Sun, May 18, 2008 at 3:29 PM, Kenneth Skovhede, GEOGRAF A/S wrote: > I can see that there are several patches supporting zoom animation, > which are reportedly included in OpenLayers 2.6. > Why are these not enabled in the demo application on the main page? > http://openlayers.org/ Kenneth, is this what you're looking for: -- Eric From eric.c2c at gmail.com Mon May 19 00:55:25 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:18 2010 Subject: [OpenLayers-Users] Animation in OpenLayers In-Reply-To: <5ec103de0805181447y3e209a99y9876a55de549851b@mail.gmail.com> References: <48302F39.9090807@geograf.dk> <5ec103de0805181447y3e209a99y9876a55de549851b@mail.gmail.com> Message-ID: <5ec103de0805182155q2a26ff3dl7d0e63ae5c463922@mail.gmail.com> On Sun, May 18, 2008 at 11:47 PM, Eric Lemoine wrote: > On Sun, May 18, 2008 at 3:29 PM, Kenneth Skovhede, GEOGRAF A/S > wrote: >> I can see that there are several patches supporting zoom animation, >> which are reportedly included in OpenLayers 2.6. >> Why are these not enabled in the demo application on the main page? >> http://openlayers.org/ > > Kenneth, is this what you're looking for: > Lance had me realize that your question was about having transitions on the main openlayers.org. Sorry for misreading you. -- Eric From ks at geograf.dk Mon May 19 02:37:34 2008 From: ks at geograf.dk (Kenneth Skovhede, GEOGRAF A/S) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Animation in OpenLayers In-Reply-To: <5ec103de0805181447y3e209a99y9876a55de549851b@mail.gmail.com> References: <48302F39.9090807@geograf.dk> <5ec103de0805181447y3e209a99y9876a55de549851b@mail.gmail.com> Message-ID: <4831202E.4020205@geograf.dk> Yes, exactly. I thought it was included as the default transition effect, but it is not. There is one bug though, in FF2, you cannot stretch a PNG image (with alpha?) more than 4 times, or it goes black. Other than that, very nice, thanks. Regards, Kenneth Skovhede, GEOGRAF A/S Eric Lemoine skrev: > On Sun, May 18, 2008 at 3:29 PM, Kenneth Skovhede, GEOGRAF A/S > wrote: > >> I can see that there are several patches supporting zoom animation, >> which are reportedly included in OpenLayers 2.6. >> Why are these not enabled in the demo application on the main page? >> http://openlayers.org/ >> > > Kenneth, is this what you're looking for: > > > -- > Eric > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080519/587dd7cf/attachment.html From penyaskito at gmail.com Mon May 19 04:28:11 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: <483054FE.5010206@gmail.com> References: <483054FE.5010206@gmail.com> Message-ID: Just create a new css and link it in your page, or put a style section in your page's head after the inclusion of the OL css.. There you override the styles that you want to change. HTH On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo wrote: > Hi list, > > I'm working on the overview map outside the map viewport and everything > is going fine but I don't uderstand if it is possible to restyle the > overview map (by deleting, for example, the blue border) without working > directly on the style.css file. > > I read the online docs concerning the minRectDisplayClass > http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap > > but I don't understand exactly how to use it and if this class is > suitable to reach my purpouse... that is to manage the overview map style. > > Could you give me some hints? > > thx in advance, alessio > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Cheers, Christian L?pez Esp?nola From nils.weinander at curalia.se Mon May 19 06:54:33 2008 From: nils.weinander at curalia.se (Nils Weinander) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers application in production Message-ID: <48315C69.9020300@curalia.se> The application we have worked on since January is now in production: http://www.fmis.raa.se/cocoon/fornsok/ It is a map-enabled database of archeological sites and monuments for the swedish National Heritage Board. About 700000 objects on land and under water (shipwrecks) are searchable. The map background is from the swedish land survey, served by WMS and tile cached by the Heritage Board. The object geometries are served by WMS (GeoServer). All text is in swedish, but even if you cannot read what it says, you can enjoy a pretty attractive application which would have been much harder to develop without OpenLayers. -- Nils Weinander | Systems Designer Phone +46 (0)8 410 064 56 Mobile +46 (0)70 978 28 37 -- Curalia AB | www.curalia.se V?stmannagatan 15, 111 24 Stockholm, Sweden -- From alessio.dilorenzo at gmail.com Mon May 19 07:07:06 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: References: <483054FE.5010206@gmail.com> Message-ID: <48315F5A.4060102@gmail.com> Hi and thanks for your answer Christian. Your suggestion works well in Firefox :-) ...but not with IE. I added this css definition to my custom stylesheet: .olControlOverviewMapElement{ -moz-border-radius-bottomleft: 0pt; -moz-border-radius-bottomright: 0pt; -moz-border-radius-topright: 0pt; -moz-border-radius-topleft: 0em; background:none; padding: 0px; } on IE6 and IE7 the blue background and the padding values remains active. maybe you understand what's wrong? alessio Christian L?pez Esp?nola ha scritto: > Just create a new css and link it in your page, or put a style section > in your page's head after the inclusion of the OL css.. > There you override the styles that you want to change. > > HTH > > On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo > wrote: > >> Hi list, >> >> I'm working on the overview map outside the map viewport and everything >> is going fine but I don't uderstand if it is possible to restyle the >> overview map (by deleting, for example, the blue border) without working >> directly on the style.css file. >> >> I read the online docs concerning the minRectDisplayClass >> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap >> >> but I don't understand exactly how to use it and if this class is >> suitable to reach my purpouse... that is to manage the overview map style. >> >> Could you give me some hints? >> >> thx in advance, alessio >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > > > From carl.r.morgan at noaa.gov Mon May 19 07:25:27 2008 From: carl.r.morgan at noaa.gov (Carl Morgan) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Layers.Text with variable filename as input In-Reply-To: <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> Message-ID: <483163A7.6030205@noaa.gov> Hello, I am very new to OpenLayers and just as new to javascript, so I apologize in advance for my lack of basic understanding of all of this. But, I am attempting to plot points on a map using OpenLayers.Layers.Text and it works just fine. However I would ideally like to pass the filename in through the URL. In the following line, I would like to replace "./lsrtext.txt" with a variable but am having no luck. var newl = new OpenLayers.Layer.Text( "text", {location: "./lsrtext.txt"} ); Is it possible to do such a thing? I have the code working which processes the variable name, and I am able to process the lat, lon and zoom level this way. But I can't seem to get it working with the filename. The documentation states that the URL of the text file can't be changed once passed in. Does this count as changing? Thanks for any help! -Carl From ks at geograf.dk Mon May 19 07:51:00 2008 From: ks at geograf.dk (Kenneth Skovhede, GEOGRAF A/S) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Handling double click Message-ID: <483169A4.3040201@geograf.dk> I have a map where several features have links attached. A script checks the current cursor position against the server to determine if there is a link at the current location. If there is, the cursor changes to the hand cursor. This all works fine. Regardless of what tool the user has, I would like to intercept a double-click. I can do that with the doubleclick handler: doubleClick = new OpenLayers.Handler.DoubleClick(this, {dblclick: this.OnDoubleClick}, {single: false, 'double': true, stopSingle: false, stopDouble: true}); doubleClick.activate(); And it works, but the original tool also gets activated. Ea., if the zoom tool is activated, it zooms twice for a double click, as well as activating the custom doubleclick handler. Is there any way to achieve this? It seems that the "click" event is fired before the "doubleclick" event happens, so it is difficult to filter the click. My handler looks like this: OnDoubleClick: function(evt) { if (this.activeLink != null) { window.open(this.activeLink, this.target); OpenLayers.Event.stop(evt); return false; } else return true; }, The "return false" does not prevent the click events from occuring. Stopping the single click events makes the current tool useless. -- Regards, Kenneth Skovhede, GEOGRAF A/S From alessio.dilorenzo at gmail.com Mon May 19 09:22:40 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: <48315F5A.4060102@gmail.com> References: <483054FE.5010206@gmail.com> <48315F5A.4060102@gmail.com> Message-ID: <48317F20.5020106@gmail.com> I'm doing some experiments. Defining the .olControlOverviewMapExtentRectangle class in my css it works well, applying the new style both in FF and IE. It seems like my .olControlOverviewMapElement class can't overwrite the correspondent class in the default style.css if using IE (I hate IE...) Alessio Di Lorenzo ha scritto: > Hi and thanks for your answer Christian. > Your suggestion works well in Firefox :-) > ...but not with IE. > I added this css definition to my custom stylesheet: > > .olControlOverviewMapElement{ > -moz-border-radius-bottomleft: 0pt; > -moz-border-radius-bottomright: 0pt; > -moz-border-radius-topright: 0pt; > -moz-border-radius-topleft: 0em; > background:none; > padding: 0px; } > > on IE6 and IE7 the blue background and the padding values remains active. > maybe you understand what's wrong? > > alessio > > > > > Christian L?pez Esp?nola ha scritto: >> Just create a new css and link it in your page, or put a style section >> in your page's head after the inclusion of the OL css.. >> There you override the styles that you want to change. >> >> HTH >> >> On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo >> wrote: >> >>> Hi list, >>> >>> I'm working on the overview map outside the map viewport and everything >>> is going fine but I don't uderstand if it is possible to restyle the >>> overview map (by deleting, for example, the blue border) without >>> working >>> directly on the style.css file. >>> >>> I read the online docs concerning the minRectDisplayClass >>> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap >>> >>> >>> but I don't understand exactly how to use it and if this class is >>> suitable to reach my purpouse... that is to manage the overview map >>> style. >>> >>> Could you give me some hints? >>> >>> thx in advance, alessio >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> >> >> >> > > From alessio.dilorenzo at gmail.com Mon May 19 09:37:16 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: <4831800B.1040004@inetnebr.com> References: <483054FE.5010206@gmail.com> <48315F5A.4060102@gmail.com> <48317F20.5020106@gmail.com> <4831800B.1040004@inetnebr.com> Message-ID: <4831828C.6010303@gmail.com> Yes... I solved right now with a google search... using !important as you says I'm quite new to these "css tricks"... :-) (and I hate IE, again) thx to all, alessio Lance Dyas ha scritto: > Did you try using the css > padding 0px important!; > background:none important!; > > ? > Alessio Di Lorenzo wrote: >> I'm doing some experiments. >> >> Defining the .olControlOverviewMapExtentRectangle class in my css it >> works well, applying the new style both in FF and IE. >> >> It seems like my .olControlOverviewMapElement class can't overwrite >> the correspondent class in the default style.css if using IE (I hate >> IE...) >> >> >> >> >> Alessio Di Lorenzo ha scritto: >> >>> Hi and thanks for your answer Christian. >>> Your suggestion works well in Firefox :-) >>> ...but not with IE. >>> I added this css definition to my custom stylesheet: >>> >>> .olControlOverviewMapElement{ >>> -moz-border-radius-bottomleft: 0pt; >>> -moz-border-radius-bottomright: 0pt; >>> -moz-border-radius-topright: 0pt; >>> -moz-border-radius-topleft: 0em; >>> background:none; >>> padding: 0px; } >>> >>> on IE6 and IE7 the blue background and the padding values remains >>> active. >>> maybe you understand what's wrong? >>> >>> alessio >>> >>> >>> >>> >>> Christian L?pez Esp?nola ha scritto: >>> >>>> Just create a new css and link it in your page, or put a style section >>>> in your page's head after the inclusion of the OL css.. >>>> There you override the styles that you want to change. >>>> >>>> HTH >>>> >>>> On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo >>>> wrote: >>>> >>>> >>>>> Hi list, >>>>> >>>>> I'm working on the overview map outside the map viewport and >>>>> everything >>>>> is going fine but I don't uderstand if it is possible to restyle the >>>>> overview map (by deleting, for example, the blue border) without >>>>> working >>>>> directly on the style.css file. >>>>> >>>>> I read the online docs concerning the minRectDisplayClass >>>>> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap >>>>> >>>>> >>>>> but I don't understand exactly how to use it and if this class is >>>>> suitable to reach my purpouse... that is to manage the overview >>>>> map style. >>>>> >>>>> Could you give me some hints? >>>>> >>>>> thx in advance, alessio >>>>> _______________________________________________ >>>>> 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 vsaquicela at gmail.com Mon May 19 10:06:30 2008 From: vsaquicela at gmail.com (vsaquicela) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Problem showing OpenLayer controls in a page with a DOCTYPE In-Reply-To: <736d33ec0706280831i6d8aec76rc6b69c1c16680e89@mail.gmail.com> References: <736d33ec0706280411j2bbe3c6ev81da183ce870daff@mail.gmail.com> <736d33ec0706280504l6f62d651l24870d57ad218649@mail.gmail.com> <736d33ec0706280831i6d8aec76rc6b69c1c16680e89@mail.gmail.com> Message-ID: <17316721.post@talk.nabble.com> I don't understand. How???? Ruben Pardo-2 wrote: > > Hi everybody, > i solve the problem, it seems to be a wrong path in the images directory. > Thanks a lot . > > Rub?n P. > > 2007/6/28, Christian L?pez Esp?nola : >> >> I can't reproduce the bug with a example. >> What browser are you using? Do the problem occurs in other browsers? >> I can add that in my application i'm using XHTML Strict, but I think >> that using HTML 4 mustn't be a problem. >> >> Cheers from the hot Seville :) >> >> >> On 6/28/07, Ruben Pardo wrote: >> > Hi, >> > >> > I'm checking my html source generated but it doesn't work. I'm using >> > OpenLayers 2.4 API, and still have the same problem. When i remove the >> tag >> > > > http://www.w3.org/TR/html4/loose.dtd" > it works fine. >> > >> > My code :........... >> > >> > > > http://www.w3.org/TR/html4/loose.dtd" > >> > >> > >> > > > http-equiv="Content-Type"> >> > >> > >> > >> > >> > >> >
>> > >> > >> > >> > >> > >> > >> > 2007/6/28, Christian L?pez Esp?nola < penyaskito@gmail.com>: >> > > Hola Ruben, >> > > >> > > The doctype mustn't be a problem with OpenLayers. I'm using ASP.NET >> > > with OpenLayers and I hadn't any problem. >> > > Please check the HTML source generated by your application and if you >> > > can't find the solution, post a piece. >> > > >> > > Hope this helps >> > > >> > > On 6/28/07, Ruben Pardo wrote: >> > > > Hi everybody, >> > > > >> > > > I've got a problem showing controls with OpenLayers when i put a >> > doctype on >> > > > my html page. >> > > > I'm integrating OpenLayers in a custom jsf component, that >> autogenerate >> > the >> > > > DOCTYPE. >> > > > It shows me the layers, but not the controls over the layers >> > (PanZoomBar, >> > > > Overview, etc...) >> > > > It works fine when i remove the doctype in the generated code. >> > > > ?how can i solve this? >> > > > >> > > > Thanks a lot in advance >> > > > >> > > > My generated code is ... >> > > > >> > > > >> > ------------------------------------------------------------------ >> > > > >> > > > > > > > "http://www.w3.org/TR/html4/loose.dtd" >--> >> > > > >> > > > >> > > > > > > > http-equiv="Content-Type"> >> > > > >> > > > >> > > > >> > > > >> > > >
>> > > > >> > > > >> > >> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >> > > > >> > > > _______________________________________________ >> > > > Users mailing list >> > > > Users@openlayers.org >> > > > http://openlayers.org/mailman/listinfo/users >> > > > >> > > > >> > > >> > > >> > > -- >> > > Regards, >> > > >> > > Christian L?pez Esp?nola >> > > >> > >> > >> >> >> -- >> Regards, >> >> Christian L?pez Esp?nola >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problem-showing-OpenLayer-controls-in-a-page-with-a-DOCTYPE-tp11341146p17316721.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From j.cook at oxfordarch.co.uk Mon May 19 12:45:22 2008 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] changes in wms between 2.4 and 2.6 In-Reply-To: <20080422162329.GB1589@metacarta.com> Message-ID: <24944851.173521211215522935.JavaMail.root@mail.thehumanjourney.net> Hi Chris, Sorry for the delay in responding to this- but it didn't make any difference: http://mapdata.thehumanjourney.net/index_26.html now includes the reproject option. So, to make sure I understand- do I now need to use the spherical mercator option when overlaying on virtual earth, google et al even if all my data is served in EPSG 4326? Thanks Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 880212 http://thehumanjourney.net ----- Original Message ----- From: "Christopher Schmidt" To: "Joanne Cook" Cc: users@openlayers.org Sent: 22 April 2008 17:23:29 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] changes in wms between 2.4 and 2.6 On Tue, Apr 22, 2008 at 05:14:20PM +0100, Joanne Cook wrote: > Hi all, > > I am wondering if there have been any changes in the way wms is handled between openlayers 2.4 and 2.6. I went to upgrade my site from one to the other, and found that my wms layers display in a different location, when all I've changed is the line that says to look in folder Openlayers-2.6 rather than 2.4 for the javascript.(I even downloaded a clean copy of 2.4 to check it wasn't any changes I had made). > > It looks like a projection issue- you can see the difference if you look at the following: > > http://mapdata.thehumanjourney.net uses 2.4 > http://mapdata.thehumanjourney.net/index_26.html uses 2.6 > > If you zoom in far enough to engage the wfs, then sites are in the correct location in both versions of the map. > > Can anyone help me with this- or give me an idea how to debug it? In 2.5, we turned the default 'reproject' option on WMS layers to 'false', because it offers a false sense of success in overlaying raster layers of different projections which isn't really accurate. Setting reproject: true should fix this issue for use now, but you should really at some point look into using SphericalMercator: http://crschmidt.net/~crschmidt/spherical_mercator.html explains some of the how. Regards, -- Christopher Schmidt MetaCarta ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information. From eric.c2c at gmail.com Mon May 19 12:54:12 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Handling double click In-Reply-To: <483169A4.3040201@geograf.dk> References: <483169A4.3040201@geograf.dk> Message-ID: <5ec103de0805190954g1f274a91se643a9f92af8de4@mail.gmail.com> Hi. I'm not sure i understand. Do you use OL click handler or have you implemented your own double click handler? OL click handler supports double click. So use that handler with appropriate options, in part use stopClick:true and make sure you activate the handler after the OL controls. Tell me how it goes. Eric 2008/5/19, Kenneth Skovhede, GEOGRAF A/S : > I have a map where several features have links attached. > A script checks the current cursor position against the server to > determine if there is a link at the current location. > If there is, the cursor changes to the hand cursor. > This all works fine. > > Regardless of what tool the user has, I would like to intercept a > double-click. > I can do that with the doubleclick handler: > doubleClick = new OpenLayers.Handler.DoubleClick(this, {dblclick: > this.OnDoubleClick}, {single: false, 'double': true, stopSingle: false, > stopDouble: true}); > doubleClick.activate(); > > And it works, but the original tool also gets activated. > Ea., if the zoom tool is activated, it zooms twice for a double click, > as well as activating the custom doubleclick handler. > > Is there any way to achieve this? > > It seems that the "click" event is fired before the "doubleclick" event > happens, so it is difficult to filter the click. > My handler looks like this: > > OnDoubleClick: function(evt) > { > if (this.activeLink != null) > { > window.open(this.activeLink, this.target); > OpenLayers.Event.stop(evt); > return false; > } > else > return true; > }, > > The "return false" does not prevent the click events from occuring. > Stopping the single click events makes the current tool useless. > > -- > Regards, Kenneth Skovhede, GEOGRAF A/S > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From carl.r.morgan at noaa.gov Mon May 19 14:26:29 2008 From: carl.r.morgan at noaa.gov (Carl Morgan) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Layers.Text with variable filename as input In-Reply-To: <483163A7.6030205@noaa.gov> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> <483163A7.6030205@noaa.gov> Message-ID: <4831C655.5000406@noaa.gov> Ok, I have it working. Looks like my problem was simply with bad javascript syntax. Carl Morgan wrote: > Hello, > > I am very new to OpenLayers and just as new to javascript, so I > apologize in advance for my lack of basic understanding of all of this. > > But, I am attempting to plot points on a map using > OpenLayers.Layers.Text and it works just fine. However I would ideally > like to pass the filename in through the URL. In the following line, I > would like to replace "./lsrtext.txt" with a variable but am having no > luck. > > var newl = new OpenLayers.Layer.Text( "text", {location: "./lsrtext.txt"} ); > > Is it possible to do such a thing? I have the code working which > processes the variable name, and I am able to process the lat, lon and > zoom level this way. But I can't seem to get it working with the > filename. The documentation states that the URL of the text file can't > be changed once passed in. Does this count as changing? > > Thanks for any help! > > -Carl > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From tschaub at opengeo.org Mon May 19 15:39:04 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: References: <4829A748.1020508@gmail.com> Message-ID: <4831D758.3040507@opengeo.org> Pierre GIRAUD wrote: > Yep, > I already tried that and this works great. > However, what if I want to set fillColor, strokeColor, fillOpacity and > strokeOpacity at the same time ? This is really painful. > And it seems like I need to provide a valid value for each possible > value of state. Default style won't be applied to features that aren't > in the switch cases. > > I would prefer something like : > var lookup = { > 'Insert': { > fillColor: 'green', > fillOpacity: 0.5 > }, > ... > }; > Yes, you're right, you need a different function for each symbolizer property. However, it shouldn't be too painful. function getValue(state, key) { var value = lookup[state][key]; if(value == undefined) { value = defaultSymbolizer[key]; } return value; } var context = { getFillColor: function(feature) { return getValue(feature.state, "fillColor"); }, ... }; Wouldn't be too hard to allow the symbolizer to be a function. This function would be called for each feature and would return a symbolizer. In fact, this seems more intuitive than the style context stuff. The style stuff can be made less twisted in OL3. Tim > Regards, > Pierre > > > On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar > wrote: >> Hey Pierre, >> >> without having tried, something like the following should work: >> >> var context = { >> getStateColor: function(feature) { >> switch(feature.state) { >> case "Insert": return "green"; >> case "Update": return "yellow"; >> case "Delete": retrun "red"; >> } >> } >> } >> >> var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ >> strokeColor: "${getStateColor}" >> }, {context: context})); >> >> Regards, >> Andreas. >> >> >> Pierre GIRAUD wrote: >> >>> >>> >>> Hello OpenLayers styleMap gurus, >>> >>> I would like to have different symbolizers for the features depending >>> on their state property. >>> The addUniqueValueRules would look perfect for that but the context of >>> the generated rules is feature.attributes. The state will not be >>> evaluated because it's not one of those attributes. >>> >>> Has anyone a workaround to advice ? >>> >>> Regards, >>> >>> Pierre >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,4829ade5124501137850744! > From ks at geograf.dk Mon May 19 15:42:36 2008 From: ks at geograf.dk (Kenneth Skovhede, GEOGRAF A/S) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Handling double click In-Reply-To: <5ec103de0805190954g1f274a91se643a9f92af8de4@mail.gmail.com> References: <483169A4.3040201@geograf.dk> <5ec103de0805190954g1f274a91se643a9f92af8de4@mail.gmail.com> Message-ID: <4831D82C.7050704@geograf.dk> I see. For some reason I have a handler called OpenLayers.Handler.DoubleClick with a MetaCarta copyright notice. I can see that the Click handler is much closer to what I want. I will try it out. Thank you. Regards, Kenneth Skovhede, GEOGRAF A/S Eric Lemoine skrev: > Hi. I'm not sure i understand. Do you use OL click handler or have you > implemented your own double click handler? OL click handler supports > double click. So use that handler with appropriate options, in part > use stopClick:true and make sure you activate the handler after the OL > controls. Tell me how it goes. Eric > > 2008/5/19, Kenneth Skovhede, GEOGRAF A/S : > >> I have a map where several features have links attached. >> A script checks the current cursor position against the server to >> determine if there is a link at the current location. >> If there is, the cursor changes to the hand cursor. >> This all works fine. >> >> Regardless of what tool the user has, I would like to intercept a >> double-click. >> I can do that with the doubleclick handler: >> doubleClick = new OpenLayers.Handler.DoubleClick(this, {dblclick: >> this.OnDoubleClick}, {single: false, 'double': true, stopSingle: false, >> stopDouble: true}); >> doubleClick.activate(); >> >> And it works, but the original tool also gets activated. >> Ea., if the zoom tool is activated, it zooms twice for a double click, >> as well as activating the custom doubleclick handler. >> >> Is there any way to achieve this? >> >> It seems that the "click" event is fired before the "doubleclick" event >> happens, so it is difficult to filter the click. >> My handler looks like this: >> >> OnDoubleClick: function(evt) >> { >> if (this.activeLink != null) >> { >> window.open(this.activeLink, this.target); >> OpenLayers.Event.stop(evt); >> return false; >> } >> else >> return true; >> }, >> >> The "return false" does not prevent the click events from occuring. >> Stopping the single click events makes the current tool useless. >> >> -- >> Regards, Kenneth Skovhede, GEOGRAF A/S >> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> From tschaub at opengeo.org Mon May 19 15:55:48 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Say goodbye to 900913 In-Reply-To: References: Message-ID: <4831DB44.80606@opengeo.org> Diego Guidi wrote: > http://www.iter.dk/post/2008/05/SphericalWeb-Mercator-EPSG-code-3785.aspx > I wonder if this means Google now has to change it's GLatLng to use Easting, Northing. Tim From tschaub at opengeo.org Mon May 19 16:03:39 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: References: Message-ID: <4831DD1B.6020507@opengeo.org> Arnd Wippermann wrote: > I would appreciate, if the Control.ModifyFeature would enhanced to delete > features. This was originally the intent. Chris suggested it would be too easy to delete a feature accidentally when you were trying to hover over a vertex. Providing an option on the control seems like a sensible solution. Tim > > If you use OL for digitizing, you have a problem to get rid of a feature. > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ > > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im > Auftrag von Eric Lemoine > Gesendet: Donnerstag, 15. Mai 2008 09:15 > An: Andreas Hocevar > Cc: OpenLayers Users > Betreff: Re: [OpenLayers-Users] Is it possible to delete a point using > theModifyFeature control? > > On Wed, May 14, 2008 at 10:29 PM, Andreas Hocevar > wrote: >> Pierre GIRAUD wrote: >>> I think Eric is wrong on that point. >>> By hovering a vertex, you can delete it pressing the Del button. >>> Tricky, isn't it ? >>> >> I would have thought that it works like that, because it is promised >> in the API doc of Control.ModifyFeature, but it does not: > > Indeed, the API doc isn't correct. > > We cannot delete polygons et lines with the modify feature control, so why > would we allow deleting points? Maybe you think that the control should > allow deleting features? > > >> /** >> * Method: handleKeypress >> * Called by the feature handler on keypress. This is used to delete >> * vertices and point features. If the property is > set, >> * vertices and points will be deleted when a feature is selected >> * for modification and the mouse is over a vertex. >> * >> * Parameters: >> * {Integer} Key code corresponding to the keypress event. >> */ >> >> Also, handleKeypress is only triggered when the point is not selected. > > I don't get that. Could you please elaborate? > > Thanks, > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,482f3de7152132085621377! > From tschaub at opengeo.org Mon May 19 16:37:43 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: <4831828C.6010303@gmail.com> References: <483054FE.5010206@gmail.com> <48315F5A.4060102@gmail.com> <48317F20.5020106@gmail.com> <4831800B.1040004@inetnebr.com> <4831828C.6010303@gmail.com> Message-ID: <4831E517.9090203@opengeo.org> Ok, a few things. If you do not include a link to the default stylesheet in a page that creates an OpenLayers map, then OpenLayers magically appends this stylesheet to the page for you. This bit of magic will bite you if you try to customize styles - since your declarations will likely be evaluated before the default css loads. So, step one, add the following to your page head: Then, below this, add any custom style: I just did this for the Overview Map example (http://openlayers.org/dev/examples/overviewmap.html), and I see, as expected, a red background for my overview map. If you do not see this in IE, please try the following: In your map options, explicitly set the theme property to null - this stops the magic bit from happening where it shouldn't be happening in the first place. var map = new OpenLayers.Map("map_id", {theme: null}); If this works in IE but the previous step did not (adding a link to the default stylesheet and customizing style below), then open a ticket with this as a bug and write back. For elements that are styled with css, you should *not* have to use !important declarations. This declaration means ignore any previous and subsequent declarations and use this one. In the above description, the default css is loaded first and your custom declarations follow - so !important is not necessary. The !important declaration is useful where style is declared in the code. This exists in many places in the library - it is an acknowledged problem waiting for a champion. The overview map is already styled with css. Again, if you properly link the default style and add your custom style after and this still doesn't work in IE, open a ticket and write back. Tim Alessio Di Lorenzo wrote: > Yes... I solved right now with a google search... using !important as > you says > I'm quite new to these "css tricks"... :-) (and I hate IE, again) > > thx to all, alessio > > > > Lance Dyas ha scritto: >> Did you try using the css >> padding 0px important!; >> background:none important!; >> >> ? >> Alessio Di Lorenzo wrote: >>> I'm doing some experiments. >>> >>> Defining the .olControlOverviewMapExtentRectangle class in my css it >>> works well, applying the new style both in FF and IE. >>> >>> It seems like my .olControlOverviewMapElement class can't overwrite >>> the correspondent class in the default style.css if using IE (I hate >>> IE...) >>> >>> >>> >>> >>> Alessio Di Lorenzo ha scritto: >>> >>>> Hi and thanks for your answer Christian. >>>> Your suggestion works well in Firefox :-) >>>> ...but not with IE. >>>> I added this css definition to my custom stylesheet: >>>> >>>> .olControlOverviewMapElement{ >>>> -moz-border-radius-bottomleft: 0pt; >>>> -moz-border-radius-bottomright: 0pt; >>>> -moz-border-radius-topright: 0pt; >>>> -moz-border-radius-topleft: 0em; >>>> background:none; >>>> padding: 0px; } >>>> >>>> on IE6 and IE7 the blue background and the padding values remains >>>> active. >>>> maybe you understand what's wrong? >>>> >>>> alessio >>>> >>>> >>>> >>>> >>>> Christian L?pez Esp?nola ha scritto: >>>> >>>>> Just create a new css and link it in your page, or put a style section >>>>> in your page's head after the inclusion of the OL css.. >>>>> There you override the styles that you want to change. >>>>> >>>>> HTH >>>>> >>>>> On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo >>>>> wrote: >>>>> >>>>> >>>>>> Hi list, >>>>>> >>>>>> I'm working on the overview map outside the map viewport and >>>>>> everything >>>>>> is going fine but I don't uderstand if it is possible to restyle the >>>>>> overview map (by deleting, for example, the blue border) without >>>>>> working >>>>>> directly on the style.css file. >>>>>> >>>>>> I read the online docs concerning the minRectDisplayClass >>>>>> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap >>>>>> >>>>>> >>>>>> but I don't understand exactly how to use it and if this class is >>>>>> suitable to reach my purpouse... that is to manage the overview >>>>>> map style. >>>>>> >>>>>> Could you give me some hints? >>>>>> >>>>>> thx in advance, alessio >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@openlayers.org >>>>>> http://openlayers.org/mailman/listinfo/users >>>>>> >>>>>> >>>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,48318292209727082231907! > From SansonR at asurequality.com Mon May 19 16:38:40 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Layers.Text with variable filename as input In-Reply-To: <483163A7.6030205@noaa.gov> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> <483163A7.6030205@noaa.gov> Message-ID: <48328E10020000370000398C@gate1.agriquality.com> Hi Carl Indeed it is possible. I do the same with my application. See code snippet below: if(gTF==1){ var gate = new OpenLayers.Layer.Text( "Gate", {location: "./farmfiles/" + farmid + ".gate"} ); map.addLayer(gate); } In this case, I use a variable called farmid, and the text file is composed of this plus some other bits. Kind regards, Robert Sanson >>> Carl Morgan 19/05/2008 11:25 p.m. >>> Hello, I am very new to OpenLayers and just as new to javascript, so I apologize in advance for my lack of basic understanding of all of this. But, I am attempting to plot points on a map using OpenLayers.Layers.Text and it works just fine. However I would ideally like to pass the filename in through the URL. In the following line, I would like to replace "./lsrtext.txt" with a variable but am having no luck. var newl = new OpenLayers.Layer.Text( "text", {location: "./lsrtext.txt"} ); Is it possible to do such a thing? I have the code working which processes the variable name, and I am able to process the lat, lon and zoom level this way. But I can't seem to get it working with the filename. The documentation states that the URL of the text file can't be changed once passed in. Does this count as changing? Thanks for any help! -Carl _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080520/9b86dde7/attachment.html From tschaub at opengeo.org Mon May 19 16:49:24 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers WFS compliance In-Reply-To: <20080517200754.GA32474@metacarta.com> References: <20080517174520.GA30672@metacarta.com> <20080517200754.GA32474@metacarta.com> Message-ID: <4831E7D4.2000107@opengeo.org> There is an ongoing effort to improve how vector layers behave. The WFS layer is a prime candidate for better behavior. When this effort is done, we will (if the current design holds) have a WFS protocol, a BBOX strategy, and a smarter Vector layer. The BBOX strategy and the WFS protocol will largely do with the current WFS layer (and tile and format and feature maybe) stuff does now. This protocol will also know how to deal with filters, for which we currently have limited support in the library. If you care to follow or participate, see the vector-behavior sandbox. http://trac.openlayers.org/log/sandbox/vector-behavior/lib/OpenLayers Tim Some detail on the idea: http://trac.openlayers.org/wiki/Proposal/VectorBehavior Also, for what it's worth, I've rewritten the GML parser again. We're bringing over the WFS CITE tests (those that are appropriate). In the end, we'll have WFS compliance (for the limited set of things we support). Christopher Schmidt wrote: > On Sat, May 17, 2008 at 09:53:24PM +0200, Arnd Wippermann wrote: >> It's possible to add a filter with mergeNewParams. >> >> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26examples/wfs_filter_without_e >> ncoding_26.html >> >> But in this case the bbox will not be used and the request returns a >> response for features outside the view. > > Accepting both of these parameters and not throwing an error is a > violation of the spec. Additionally, there is no reason to do this, > because it still reloads with the dragging o the map, but it doens't > need to, because the data is always the same. Instead, one should just > use a GML layer, since that doesn't refresh unneccesarily when you drag. > > Regards, From alessio.dilorenzo at gmail.com Mon May 19 17:50:34 2008 From: alessio.dilorenzo at gmail.com (Alessio Di Lorenzo) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] overviewmap style properties In-Reply-To: <4831E517.9090203@opengeo.org> References: <483054FE.5010206@gmail.com> <48315F5A.4060102@gmail.com> <48317F20.5020106@gmail.com> <4831800B.1040004@inetnebr.com> <4831828C.6010303@gmail.com> <4831E517.9090203@opengeo.org> Message-ID: <4831F62A.2040405@gmail.com> OK Tim, I will try as soon as this method. Thanks a lot for your detailed explanation :-) alessio Tim Schaub ha scritto: > Ok, a few things. > > If you do not include a link to the default stylesheet in a page that > creates an OpenLayers map, then OpenLayers magically appends this > stylesheet to the page for you. This bit of magic will bite you if > you try to customize styles - since your declarations will likely be > evaluated before the default css loads. > > So, step one, add the following to your page head: > > type="text/css" /> > > Then, below this, add any custom style: > > > > I just did this for the Overview Map example > (http://openlayers.org/dev/examples/overviewmap.html), and I see, as > expected, a red background for my overview map. > > If you do not see this in IE, please try the following: > > In your map options, explicitly set the theme property to null - this > stops the magic bit from happening where it shouldn't be happening in > the first place. > > var map = new OpenLayers.Map("map_id", {theme: null}); > > If this works in IE but the previous step did not (adding a link to > the default stylesheet and customizing style below), then open a > ticket with this as a bug and write back. > > For elements that are styled with css, you should *not* have to use > !important declarations. This declaration means ignore any previous > and subsequent declarations and use this one. In the above > description, the default css is loaded first and your custom > declarations follow - so !important is not necessary. > > The !important declaration is useful where style is declared in the > code. This exists in many places in the library - it is an > acknowledged problem waiting for a champion. The overview map is > already styled with css. > > Again, if you properly link the default style and add your custom > style after and this still doesn't work in IE, open a ticket and write > back. > > Tim > > > Alessio Di Lorenzo wrote: >> Yes... I solved right now with a google search... using !important as >> you says >> I'm quite new to these "css tricks"... :-) (and I hate IE, again) >> >> thx to all, alessio >> >> >> >> Lance Dyas ha scritto: >>> Did you try using the css >>> padding 0px important!; >>> background:none important!; >>> >>> ? >>> Alessio Di Lorenzo wrote: >>>> I'm doing some experiments. >>>> >>>> Defining the .olControlOverviewMapExtentRectangle class in my css >>>> it works well, applying the new style both in FF and IE. >>>> >>>> It seems like my .olControlOverviewMapElement class can't overwrite >>>> the correspondent class in the default style.css if using IE (I >>>> hate IE...) >>>> >>>> >>>> >>>> >>>> Alessio Di Lorenzo ha scritto: >>>> >>>>> Hi and thanks for your answer Christian. >>>>> Your suggestion works well in Firefox :-) >>>>> ...but not with IE. >>>>> I added this css definition to my custom stylesheet: >>>>> >>>>> .olControlOverviewMapElement{ >>>>> -moz-border-radius-bottomleft: 0pt; >>>>> -moz-border-radius-bottomright: 0pt; >>>>> -moz-border-radius-topright: 0pt; >>>>> -moz-border-radius-topleft: 0em; >>>>> background:none; >>>>> padding: 0px; } >>>>> >>>>> on IE6 and IE7 the blue background and the padding values remains >>>>> active. >>>>> maybe you understand what's wrong? >>>>> >>>>> alessio >>>>> >>>>> >>>>> >>>>> >>>>> Christian L?pez Esp?nola ha scritto: >>>>> >>>>>> Just create a new css and link it in your page, or put a style >>>>>> section >>>>>> in your page's head after the inclusion of the OL css.. >>>>>> There you override the styles that you want to change. >>>>>> >>>>>> HTH >>>>>> >>>>>> On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo >>>>>> wrote: >>>>>> >>>>>> >>>>>>> Hi list, >>>>>>> >>>>>>> I'm working on the overview map outside the map viewport and >>>>>>> everything >>>>>>> is going fine but I don't uderstand if it is possible to restyle >>>>>>> the >>>>>>> overview map (by deleting, for example, the blue border) without >>>>>>> working >>>>>>> directly on the style.css file. >>>>>>> >>>>>>> I read the online docs concerning the minRectDisplayClass >>>>>>> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap >>>>>>> >>>>>>> >>>>>>> but I don't understand exactly how to use it and if this class is >>>>>>> suitable to reach my purpouse... that is to manage the overview >>>>>>> map style. >>>>>>> >>>>>>> Could you give me some hints? >>>>>>> >>>>>>> thx in advance, alessio >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users@openlayers.org >>>>>>> http://openlayers.org/mailman/listinfo/users >>>>>>> >>>>>>> >>>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> !DSPAM:4033,48318292209727082231907! >> > > From crschmidt at metacarta.com Mon May 19 19:31:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] changes in wms between 2.4 and 2.6 In-Reply-To: <24944851.173521211215522935.JavaMail.root@mail.thehumanjourney.net> References: <20080422162329.GB1589@metacarta.com> <24944851.173521211215522935.JavaMail.root@mail.thehumanjourney.net> Message-ID: <20080519233130.GA15279@metacarta.com> On Mon, May 19, 2008 at 05:45:22PM +0100, Joanne Cook wrote: > Hi Chris, > > Sorry for the delay in responding to this- but it didn't make any difference: > http://mapdata.thehumanjourney.net/index_26.html > now includes the reproject option. No, it now includes a reproject 'parameter', but no reproject option. Parameters are the third argument to a Layer.WMS: Options are the fourth. (Your isBaseLayer is in the wrong place as well.) I've tested setting the reproject option in the right place; it seems to work on your map. > So, to make sure I understand- do I now need to use the spherical mercator option when overlaying on virtual earth, google et al even if all my data is served in EPSG 4326? If your data is served in EPSG:4326, you are not correctly overlaying Google Maps or Virtual Earth. If this bothers you, you will need to change to using Spherical Mercator. (The difference at a country the size of the UK is less significant than if you're at a country hte size of the US, or if you're starting at the whole world.) You've already worked around this problem (by setting a maxResolutino on your layer), but you should be aware that if you care about data actually being in the same place, or if you care about caching, you'll need to be using sphericalMercator. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon May 19 19:33:41 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Layers.Text with variable filename as input In-Reply-To: <483163A7.6030205@noaa.gov> References: <9A503C519418FD42A9DC9460E4A1B878029DAFD3@post2.imr.no> <5ec103de0805161448m6358b0f7w29b22f4b14cac11b@mail.gmail.com> <483163A7.6030205@noaa.gov> Message-ID: <20080519233341.GB15279@metacarta.com> On Mon, May 19, 2008 at 07:25:27AM -0400, Carl Morgan wrote: > Hello, > > I am very new to OpenLayers and just as new to javascript, so I > apologize in advance for my lack of basic understanding of all of this. > > But, I am attempting to plot points on a map using > OpenLayers.Layers.Text and it works just fine. However I would ideally > like to pass the filename in through the URL. In the following line, I > would like to replace "./lsrtext.txt" with a variable but am having no > luck. > > var newl = new OpenLayers.Layer.Text( "text", {location: "./lsrtext.txt"} ); > > Is it possible to do such a thing? I have the code working which > processes the variable name, and I am able to process the lat, lon and > zoom level this way. But I can't seem to get it working with the > filename. The documentation states that the URL of the text file can't > be changed once passed in. Does this count as changing? Thre should be no problems with this. { location: OpenLayers.Util.getParameters()['location']} Would probably work, for example. Are you trying to pass in an "http://foo" path where 'foo' is different from your current domain? that would run afoul of Javascript Cross-Domain XMLHttpRequest limitations... Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon May 19 19:44:05 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Animation in OpenLayers In-Reply-To: <48302F39.9090807@geograf.dk> References: <48302F39.9090807@geograf.dk> Message-ID: <20080519234405.GC15279@metacarta.com> On Sun, May 18, 2008 at 03:29:29PM +0200, Kenneth Skovhede, GEOGRAF A/S wrote: > I can see that there are several patches supporting zoom animation, > which are reportedly included in OpenLayers 2.6. > Why are these not enabled in the demo application on the main page? > http://openlayers.org/ Because, to be frank, the feature is buggy enough that I seldom enable it on fast, tiled maps. I like the feature a lot, and think it has a place, but the main OpenLayers homepage is one place where I think being a bit more considerate of users who have browsers which perform less well is important: In Safari, for example, teh feature tends to mean that instead of getting a nicely resized set of tiles, you get randomly ordered tiles stuck all over the place until the new ones load in. This is also the case in Google Maps, so I don't consider it to be a showstopper in OpenLayers, but on the homepage, I would personally prefer to keep it somewhat simple: if they want the cool effects, they can hit the examples. That said, the website is not really something anyone has spent a lot of love on, so if someone were to want to revamp it, they should feel free to offer. The code is in SVN -- http://svn.openlayers.org/project/website/ -- and I'd be glad to have more people working on managing and maintaining the website as our public face to the project. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon May 19 20:06:57 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers application in production In-Reply-To: <48315C69.9020300@curalia.se> References: <48315C69.9020300@curalia.se> Message-ID: <20080520000657.GF15279@metacarta.com> On Mon, May 19, 2008 at 12:54:33PM +0200, Nils Weinander wrote: > The application we have worked on since January is now in > production: > > http://www.fmis.raa.se/cocoon/fornsok/ Nils, Thank you for the URL! I'm assuming that it's acceptable to include this on our Gallery wiki page? I see that you use "slimcache" for caching: Was TileCache looked at at all? Any particular feedback on why you used one over the other? Thanks again, -- Christopher Schmidt MetaCarta From nils.weinander at curalia.se Tue May 20 00:17:03 2008 From: nils.weinander at curalia.se (Nils Weinander) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers application in production In-Reply-To: <20080520000657.GF15279@metacarta.com> References: <48315C69.9020300@curalia.se> <20080520000657.GF15279@metacarta.com> Message-ID: <62218.83.226.147.39.1211257023.squirrel@intranet.curalia.se> > On Mon, May 19, 2008 at 12:54:33PM +0200, Nils Weinander wrote: >> The application we have worked on since January is now in >> production: >> >> http://www.fmis.raa.se/cocoon/fornsok/ > > Nils, > > Thank you for the URL! I'm assuming that it's acceptable to include this > on our Gallery wiki page? Absolutely! > I see that you use "slimcache" for caching: Was TileCache looked at at > all? Any particular feedback on why you used one over the other? If you refer to the Python-based TileCache it is because it would have been a major pain to get mod_python added to our rather suboptimal apache installation. My colleague Per-Olof Noren then started off from JTileCache and wrote a simpler, less generic version, tailored to our needs (use only disk for storing etc.) and I rewrote the storage algorithm to use two directory levels for the tiles and a simple grid index for the tile file names instead of the corner coordinates. We will however look into GeoWebCache when time and customer budget permits as we want to cache the object geometries as well and then need a cach with an API to invalidate tiles. From bluecarto at gmail.com Tue May 20 03:08:31 2008 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: <4831D758.3040507@opengeo.org> References: <4829A748.1020508@gmail.com> <4831D758.3040507@opengeo.org> Message-ID: Hi Tim, The last Andreas' proposal was put into a patch I commit yesterday. http://trac.openlayers.org/changeset/7216 Eric reviewed this but you can still have a look and scream if you don't agree. Regards, Pierre On Mon, May 19, 2008 at 9:39 PM, Tim Schaub wrote: > Pierre GIRAUD wrote: >> Yep, >> I already tried that and this works great. >> However, what if I want to set fillColor, strokeColor, fillOpacity and >> strokeOpacity at the same time ? This is really painful. >> And it seems like I need to provide a valid value for each possible >> value of state. Default style won't be applied to features that aren't >> in the switch cases. >> >> I would prefer something like : >> var lookup = { >> 'Insert': { >> fillColor: 'green', >> fillOpacity: 0.5 >> }, >> ... >> }; >> > > Yes, you're right, you need a different function for each symbolizer > property. However, it shouldn't be too painful. > > function getValue(state, key) { > var value = lookup[state][key]; > if(value == undefined) { > value = defaultSymbolizer[key]; > } > return value; > } > var context = { > getFillColor: function(feature) { > return getValue(feature.state, "fillColor"); > }, > ... > }; > > Wouldn't be too hard to allow the symbolizer to be a function. This > function would be called for each feature and would return a symbolizer. > In fact, this seems more intuitive than the style context stuff. > > The style stuff can be made less twisted in OL3. > > Tim > > >> Regards, >> Pierre >> >> >> On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar >> wrote: >>> Hey Pierre, >>> >>> without having tried, something like the following should work: >>> >>> var context = { >>> getStateColor: function(feature) { >>> switch(feature.state) { >>> case "Insert": return "green"; >>> case "Update": return "yellow"; >>> case "Delete": retrun "red"; >>> } >>> } >>> } >>> >>> var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ >>> strokeColor: "${getStateColor}" >>> }, {context: context})); >>> >>> Regards, >>> Andreas. >>> >>> >>> Pierre GIRAUD wrote: >>> >>>> >>>> >>>> Hello OpenLayers styleMap gurus, >>>> >>>> I would like to have different symbolizers for the features depending >>>> on their state property. >>>> The addUniqueValueRules would look perfect for that but the context of >>>> the generated rules is feature.attributes. The state will not be >>>> evaluated because it's not one of those attributes. >>>> >>>> Has anyone a workaround to advice ? >>>> >>>> Regards, >>>> >>>> Pierre >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>>> >>> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> !DSPAM:4033,4829ade5124501137850744! >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From j.cook at oxfordarch.co.uk Tue May 20 04:07:16 2008 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] changes in wms between 2.4 and 2.6 In-Reply-To: <20080519233130.GA15279@metacarta.com> Message-ID: <32218918.177511211270836242.JavaMail.root@mail.thehumanjourney.net> Hi Chris, Thanks- that was a real lightbulb moment- I had been quite confused about the different options/parameters etc and you really cleared it up for me! Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 880212 http://thehumanjourney.net ----- Original Message ----- From: "Christopher Schmidt" To: "Joanne Cook" Cc: users@openlayers.org Sent: 20 May 2008 00:31:31 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] changes in wms between 2.4 and 2.6 On Mon, May 19, 2008 at 05:45:22PM +0100, Joanne Cook wrote: > Hi Chris, > > Sorry for the delay in responding to this- but it didn't make any difference: > http://mapdata.thehumanjourney.net/index_26.html > now includes the reproject option. No, it now includes a reproject 'parameter', but no reproject option. Parameters are the third argument to a Layer.WMS: Options are the fourth. (Your isBaseLayer is in the wrong place as well.) I've tested setting the reproject option in the right place; it seems to work on your map. > So, to make sure I understand- do I now need to use the spherical mercator option when overlaying on virtual earth, google et al even if all my data is served in EPSG 4326? If your data is served in EPSG:4326, you are not correctly overlaying Google Maps or Virtual Earth. If this bothers you, you will need to change to using Spherical Mercator. (The difference at a country the size of the UK is less significant than if you're at a country hte size of the US, or if you're starting at the whole world.) You've already worked around this problem (by setting a maxResolutino on your layer), but you should be aware that if you care about data actually being in the same place, or if you care about caching, you'll need to be using sphericalMercator. Regards, -- Christopher Schmidt MetaCarta ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information. From diegoguidi at gmail.com Tue May 20 05:06:50 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera Message-ID: I'm working in a issue that compares only in safari and opera browsers, and I'm searching for any kind of suggestion... I have a monitor component that listens for a loadstart/loadend event and shows/hide an animated gif... nothing complicated: in my code (that I've modified form a source code published in this mailing list) I have a monitor functions like this. monitor: function(layer) { layer.events.register('loadstart', this, this.start); layer.events.register('loadcancel', this, this.end); layer.events.register('loadend', this, this.end); } and I use this component to monitor a WMS layer with a singleTile option activated. All works well in IE and Firefox2, but in Safari 3.1 and Opera 9.2 the loadend event is thrown immediately, and not when the load is effectively terminated! I'm pretty sure about this because I've verified (via console.log messages) that loadend is generated immediately after loadstart. This is maybe strange, but the really strange issue is that the same monitor component (exactly the same lines of code) works well (in all the browsers!) in another website build from my colleague: in this website the component is used to monitor the same WMS layer, uses google data as background like the mine, but something is different (as example, we used different custom layer switchers). The main point is that my website uses OL 2.6 (actually, I'm using http://openlayers.org/api/OpenLayers.js to grab OL from internet), when my colleague uses OL 2.5 from a local repository. So maybe something has changed in event model from 2.5 to 2.6? -- Diego Guidi From crschmidt at metacarta.com Tue May 20 08:10:29 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: References: Message-ID: <20080520121029.GC26175@metacarta.com> On Tue, May 20, 2008 at 11:06:50AM +0200, Diego Guidi wrote: > I'm working in a issue that compares only in safari and opera > browsers, and I'm searching for any kind of suggestion... > I have a monitor component that listens for a loadstart/loadend event > and shows/hide an animated gif... nothing complicated: in my code > (that I've modified form a source code published in this mailing list) > I have a monitor functions like this. > monitor: function(layer) > { > layer.events.register('loadstart', this, this.start); > layer.events.register('loadcancel', this, this.end); > layer.events.register('loadend', this, this.end); > } > and I use this component to monitor a WMS layer with a singleTile > option activated. > > All works well in IE and Firefox2, but in Safari 3.1 and Opera 9.2 the > loadend event is thrown immediately, and not when the load is > effectively terminated! I'm pretty sure about this because I've > verified (via console.log messages) that loadend is generated > immediately after loadstart. > This is maybe strange, but the really strange issue is that the same > monitor component (exactly the same lines of code) works well (in all > the browsers!) in another website build from my colleague: in this > website the component is used to monitor the same WMS layer, uses > google data as background like the mine, but something is different > (as example, we used different custom layer switchers). > The main point is that my website uses OL 2.6 (actually, I'm using > http://openlayers.org/api/OpenLayers.js to grab OL from internet), > when my colleague uses OL 2.5 from a local repository. > So maybe something has changed in event model from 2.5 to 2.6? Perhaps, but I'm not aware of anything changing there that would affect this intentionally, so presumably it was an unintentional side effect of the work done on tile transitions. I did a lot of work on maintaining backwards copatibility, but it's certainly possible that I screwed it up. Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Tue May 20 08:13:27 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: <20080520121029.GC26175@metacarta.com> References: <20080520121029.GC26175@metacarta.com> Message-ID: <13ca7cbdaae89d356179404ad3eca92a@pop02.backbone.tiscomhosting.nl> A way to check might be to see if the loadingpanel example works for you or not (this is against 2.6): http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html Best regards, Bart On Tue, 20 May 2008 08:10:29 -0400, Christopher Schmidt wrote: > On Tue, May 20, 2008 at 11:06:50AM +0200, Diego Guidi wrote: >> I'm working in a issue that compares only in safari and opera >> browsers, and I'm searching for any kind of suggestion... >> I have a monitor component that listens for a loadstart/loadend event >> and shows/hide an animated gif... nothing complicated: in my code >> (that I've modified form a source code published in this mailing list) >> I have a monitor functions like this. >> monitor: function(layer) >> { >> layer.events.register('loadstart', this, this.start); >> layer.events.register('loadcancel', this, this.end); >> layer.events.register('loadend', this, this.end); >> } >> and I use this component to monitor a WMS layer with a singleTile >> option activated. >> >> All works well in IE and Firefox2, but in Safari 3.1 and Opera 9.2 the >> loadend event is thrown immediately, and not when the load is >> effectively terminated! I'm pretty sure about this because I've >> verified (via console.log messages) that loadend is generated >> immediately after loadstart. > > >> This is maybe strange, but the really strange issue is that the same >> monitor component (exactly the same lines of code) works well (in all >> the browsers!) in another website build from my colleague: in this >> website the component is used to monitor the same WMS layer, uses >> google data as background like the mine, but something is different >> (as example, we used different custom layer switchers). >> The main point is that my website uses OL 2.6 (actually, I'm using >> http://openlayers.org/api/OpenLayers.js to grab OL from internet), >> when my colleague uses OL 2.5 from a local repository. >> So maybe something has changed in event model from 2.5 to 2.6? > > Perhaps, but I'm not aware of anything changing there that would affect > this intentionally, so presumably it was an unintentional side effect of > the work done on tile transitions. I did a lot of work on maintaining > backwards copatibility, but it's certainly possible that I screwed it > up. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From springrider at hotmail.com Tue May 20 08:29:47 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Bring base layer to the front Message-ID: <17339172.post@talk.nabble.com> Good afternoon I would need to bring the base layer as the top layer of my map. Is it something possible? or the base layer is always the one at the bottom? Thanks Sylvain -- View this message in context: http://www.nabble.com/Bring-base-layer-to-the-front-tp17339172p17339172.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From diegoguidi at gmail.com Tue May 20 08:30:08 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: <13ca7cbdaae89d356179404ad3eca92a@pop02.backbone.tiscomhosting.nl> References: <20080520121029.GC26175@metacarta.com> <13ca7cbdaae89d356179404ad3eca92a@pop02.backbone.tiscomhosting.nl> Message-ID: > A way to check might be to see if the loadingpanel example works for you or > not (this is against 2.6): > http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html This example works with Safari: it's 2.6 based? In 2.6 LoadingPanel control is not present From bartvde at osgis.nl Tue May 20 08:33:47 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: References: Message-ID: <20080520123347.6F1E515EC1B@webmail-beta.tiscomhosting.nl> <20080520121029.GC26175@metacarta.com> <13ca7cbdaae89d356179404ad3eca92a@pop02.backbone.tiscomhosting.nl> UID 2713) Message-ID: X-Sender: bartvde@osgis.nl Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Tue, 20 May 2008 14:33:47 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Right, I plan to have LoadingPanel be an OpenLayers addin, but it's not yet. So for now the source code is here: http://dev.openlayers.org/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js And instructions are on the Wiki page: http://trac.openlayers.org/wiki/Addins/LoadingPanel Best regards, Bart On Tue, 20 May 2008 14:30:08 +0200, "Diego Guidi" wrote: >> A way to check might be to see if the loadingpanel example works for you > or >> not (this is against 2.6): >> > http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html > > This example works with Safari: it's 2.6 based? In 2.6 LoadingPanel > control is not present From yjacolin at free.fr Tue May 20 08:34:11 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OL example in ie6 Message-ID: <200805201434.11612.yjacolin@free.fr> Hi, One of my collegue is trying to see the OL examples with IE6, and the left column where we choose the example is really small and we can't read the title nor click on the link. Are you aware of this issue? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From diegoguidi at gmail.com Tue May 20 08:45:29 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: <20080520123347.6F1E515EC1B@webmail-beta.tiscomhosting.nl> References: <20080520123347.6F1E515EC1B@webmail-beta.tiscomhosting.nl> Message-ID: > So for now the source code is here: > http://dev.openlayers.org/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js > And instructions are on the Wiki page: > http://trac.openlayers.org/wiki/Addins/LoadingPanel I've integrated your component in my code, but the same issue still remains. I need to investigate... From twink_1984 at yahoo.com.sg Tue May 20 09:47:15 2008 From: twink_1984 at yahoo.com.sg (ashlin) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.LoadURL for kml file - Unhandled request return found Message-ID: <17336572.post@talk.nabble.com> Hi, I would like to know if there is any limit in the kml file size or http request object. I have tried to load a 1.5mb(9000 markers) kml file using the methods below. It showed a javascript error popup window "Unhandled request return found". However, it works fine when i reduced the kml file size to around 59kb (300 markers). What could be the possible problem? function load() { OpenLayers.loadURL("kml/doc.kml", "", null, parseData); } function parseData(req) { g = new OpenLayers.Format.KML({extractStyles: true}); features = g.read(req.responseText); var url = 'http://labs.google.com/ridefinder/images/mm_20_red.png'; var sz = new OpenLayers.Size(10, 17); var calculateOffset = function(size) { return new OpenLayers.Pixel(-(size.w/2), -size.h); }; var icon = new OpenLayers.Icon(url, sz, null, calculateOffset); var countMarkers = 0; var myArray = new Array(); for(var feat in features) { myArray[feat] = new OpenLayers.Marker(new OpenLayers.LonLat(features[feat].geometry.x, features[feat].geometry.y), icon.clone()); //alert(features[feat].geometry.x); myArray[feat].events.register("click", {'marker':myArray[feat], 'testNo':feat}, function (e) { alert(this.testNo); onFeatureSelect(features[this.testNo]); //Event.stop(e); } ); kmlLayer.addMarker(myArray[feat]); countMarkers++; } alert(countMarkers); } ashlin -- View this message in context: http://www.nabble.com/OpenLayers.LoadURL-for-kml-file---Unhandled-request-return-found-tp17336572p17336572.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From twink_1984 at yahoo.com.sg Tue May 20 09:59:00 2008 From: twink_1984 at yahoo.com.sg (ashlin) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load Message-ID: <17336211.post@talk.nabble.com> Hi, I wanted to know the recommended amount of objects that is appropriate to overlay in openlayers. How many markers would be best for client to load in 10-20 secs? Is it possible to have 30k markers to be in the same layer? Please advice on the do and dont. Thanks. ashlin -- View this message in context: http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Tue May 20 10:04:14 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load In-Reply-To: <17336211.post@talk.nabble.com> References: <17336211.post@talk.nabble.com> Message-ID: <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> I think the limit is a few hundred markers, certainly not 30k. You'd better be off displaying them as a WMS layer and implementing GetFeatureInfo on click or hover. Best regards, Bart On Tue, 20 May 2008 06:59:00 -0700 (PDT), ashlin wrote: > > Hi, > > I wanted to know the recommended amount of objects that is appropriate to > overlay in openlayers. How many markers would be best for client to load > in > 10-20 secs? Is it possible to have 30k markers to be in the same > layer? Please advice on the do and dont. Thanks. > > ashlin > -- > View this message in context: > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Tue May 20 10:05:25 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Bring base layer to the front In-Reply-To: <17339172.post@talk.nabble.com> References: <17339172.post@talk.nabble.com> Message-ID: <20080520140524.GA28144@metacarta.com> On Tue, May 20, 2008 at 05:29:47AM -0700, springrider wrote: > > Good afternoon > > I would need to bring the base layer as the top layer of my map. Is it > something possible? or the base layer is always the one at the bottom? Base layers are always below overlays. Regars, -- Christopher Schmidt MetaCarta From diegoguidi at gmail.com Tue May 20 10:10:35 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: References: <20080520123347.6F1E515EC1B@webmail-beta.tiscomhosting.nl> Message-ID: > I've integrated your component in my code, but the same issue still remains. > I need to investigate... This modified sample stops working after two zoom requests: the first two requests works ok but next requests are broken. P.S: sample certified "Works on my machine": http://www.codinghorror.com/blog/archives/000818.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080520/e462e05f/loadingpanel.html From bartvde at osgis.nl Tue May 20 10:21:59 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: References: Message-ID: <20080520142159.7F77B15ECD6@webmail-beta.tiscomhosting.nl> <20080520123347.6F1E515EC1B@webmail-beta.tiscomhosting.nl> UID 2740) Message-ID: <198a22822f20e25c1905c4b7b386b3dd@pop02.backbone.tiscomhosting.nl> X-Sender: bartvde@osgis.nl Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Tue, 20 May 2008 16:21:59 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Just making sure I understand: my sandbox example works, but if you use OpenLayers from the API site (http://openlayers.org/api/OpenLayers.js) it does not? The version number in my sandbox is: $Revision: 6805 $ In the API version: $Revision: 6819 $ so maybe something happened in one of those last changesets? Best regards, Bart On Tue, 20 May 2008 16:10:35 +0200, "Diego Guidi" wrote: >> I've integrated your component in my code, but the same issue still > remains. >> I need to investigate... > This modified sample stops working after two zoom requests: the first > two requests works ok but next requests are broken. > > P.S: > sample certified "Works on my machine": > http://www.codinghorror.com/blog/archives/000818.html From twink_1984 at yahoo.com.sg Tue May 20 10:28:01 2008 From: twink_1984 at yahoo.com.sg (ashlin) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load In-Reply-To: <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> References: <17336211.post@talk.nabble.com> <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> Message-ID: <17341825.post@talk.nabble.com> Are there any examples that i can refer to? What is the difference between having a marker layer and a WMS layer? I am still quite new in GIS system. I seek your understanding. ashlin Bart van den Eijnden wrote: > > I think the limit is a few hundred markers, certainly not 30k. You'd > better > be off displaying them as a WMS layer and implementing GetFeatureInfo on > click or hover. > > Best regards, > Bart > > On Tue, 20 May 2008 06:59:00 -0700 (PDT), ashlin > wrote: >> >> Hi, >> >> I wanted to know the recommended amount of objects that is appropriate to >> overlay in openlayers. How many markers would be best for client to load >> in >> 10-20 secs? Is it possible to have 30k markers to be in the same >> layer? Please advice on the do and dont. Thanks. >> >> ashlin >> -- >> View this message in context: >> > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Openlayers-recommended-load-tp17336211p17341825.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From diegoguidi at gmail.com Tue May 20 10:44:33 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Subtle issue with Safari/Opera In-Reply-To: <20080520142159.7F77B15ECD6@webmail-beta.tiscomhosting.nl> References: <20080520142159.7F77B15ECD6@webmail-beta.tiscomhosting.nl> Message-ID: > Just making sure I understand: my sandbox example works, but if you use > OpenLayers from the API site (http://openlayers.org/api/OpenLayers.js) it > does not? The problem looks exactly this. From cmspinto at gmail.com Tue May 20 11:31:47 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load In-Reply-To: <17341825.post@talk.nabble.com> References: <17336211.post@talk.nabble.com> <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> <17341825.post@talk.nabble.com> Message-ID: In the WMS layer they will be handle by the server, so you can have thousands of them, but if you do a marker layer then each marker is an object that the browser has to handle. The browsers are not made to handle those kinds of applications. Best regards, Calos On Tue, May 20, 2008 at 4:28 PM, ashlin wrote: > > Are there any examples that i can refer to? > > What is the difference between having a marker layer and a WMS layer? > > I am still quite new in GIS system. I seek your understanding. > > ashlin > > > Bart van den Eijnden wrote: > > > > I think the limit is a few hundred markers, certainly not 30k. You'd > > better > > be off displaying them as a WMS layer and implementing GetFeatureInfo on > > click or hover. > > > > Best regards, > > Bart > > > > On Tue, 20 May 2008 06:59:00 -0700 (PDT), ashlin < > twink_1984@yahoo.com.sg> > > wrote: > >> > >> Hi, > >> > >> I wanted to know the recommended amount of objects that is appropriate > to > >> overlay in openlayers. How many markers would be best for client to load > >> in > >> 10-20 secs? Is it possible to have 30k markers to be in the same > >> layer? Please advice on the do and dont. Thanks. > >> > >> ashlin > >> -- > >> View this message in context: > >> > > > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html > >> Sent from the OpenLayers Users mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > View this message in context: > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17341825.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080520/ffbe7a58/attachment.html From eric.c2c at gmail.com Tue May 20 12:11:13 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] rules depending on state In-Reply-To: References: <4829A748.1020508@gmail.com> <4831D758.3040507@opengeo.org> Message-ID: <5ec103de0805200911y715e0be3v9f9c71796e966c17@mail.gmail.com> Andreas actually did the initial review. 2008/5/20, Pierre GIRAUD : > Hi Tim, > > The last Andreas' proposal was put into a patch I commit yesterday. > http://trac.openlayers.org/changeset/7216 > > Eric reviewed this but you can still have a look and scream if you don't > agree. > > Regards, > Pierre > > On Mon, May 19, 2008 at 9:39 PM, Tim Schaub wrote: >> Pierre GIRAUD wrote: >>> Yep, >>> I already tried that and this works great. >>> However, what if I want to set fillColor, strokeColor, fillOpacity and >>> strokeOpacity at the same time ? This is really painful. >>> And it seems like I need to provide a valid value for each possible >>> value of state. Default style won't be applied to features that aren't >>> in the switch cases. >>> >>> I would prefer something like : >>> var lookup = { >>> 'Insert': { >>> fillColor: 'green', >>> fillOpacity: 0.5 >>> }, >>> ... >>> }; >>> >> >> Yes, you're right, you need a different function for each symbolizer >> property. However, it shouldn't be too painful. >> >> function getValue(state, key) { >> var value = lookup[state][key]; >> if(value == undefined) { >> value = defaultSymbolizer[key]; >> } >> return value; >> } >> var context = { >> getFillColor: function(feature) { >> return getValue(feature.state, "fillColor"); >> }, >> ... >> }; >> >> Wouldn't be too hard to allow the symbolizer to be a function. This >> function would be called for each feature and would return a symbolizer. >> In fact, this seems more intuitive than the style context stuff. >> >> The style stuff can be made less twisted in OL3. >> >> Tim >> >> >>> Regards, >>> Pierre >>> >>> >>> On Tue, May 13, 2008 at 4:35 PM, Andreas Hocevar >>> wrote: >>>> Hey Pierre, >>>> >>>> without having tried, something like the following should work: >>>> >>>> var context = { >>>> getStateColor: function(feature) { >>>> switch(feature.state) { >>>> case "Insert": return "green"; >>>> case "Update": return "yellow"; >>>> case "Delete": retrun "red"; >>>> } >>>> } >>>> } >>>> >>>> var styleMap = new OpenLayers.StyleMap(new OpenLayers.Style({ >>>> strokeColor: "${getStateColor}" >>>> }, {context: context})); >>>> >>>> Regards, >>>> Andreas. >>>> >>>> >>>> Pierre GIRAUD wrote: >>>> >>>>> >>>>> >>>>> Hello OpenLayers styleMap gurus, >>>>> >>>>> I would like to have different symbolizers for the features depending >>>>> on their state property. >>>>> The addUniqueValueRules would look perfect for that but the context of >>>>> the generated rules is feature.attributes. The state will not be >>>>> evaluated because it's not one of those attributes. >>>>> >>>>> Has anyone a workaround to advice ? >>>>> >>>>> Regards, >>>>> >>>>> Pierre >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@openlayers.org >>>>> http://openlayers.org/mailman/listinfo/users >>>>> >>>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> !DSPAM:4033,4829ade5124501137850744! >>> >> >> _______________________________________________ >> 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 twink_1984 at yahoo.com.sg Tue May 20 12:15:58 2008 From: twink_1984 at yahoo.com.sg (ashlin) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load In-Reply-To: References: <17336211.post@talk.nabble.com> <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> <17341825.post@talk.nabble.com> Message-ID: <17344360.post@talk.nabble.com> ok. Thanks for the explanation. How can i generate my markers in WMS? Any sample for reference? Can i load my kml file by using GetFeatureInfo or getFeatureInfoURL? What format is supported? ashlin cmspinto wrote: > > In the WMS layer they will be handle by the server, so you can have > thousands of them, but if you do a marker layer then each marker is an > object that the browser has to handle. > The browsers are not made to handle those kinds of applications. > > Best regards, > > Calos > > On Tue, May 20, 2008 at 4:28 PM, ashlin wrote: > >> >> Are there any examples that i can refer to? >> >> What is the difference between having a marker layer and a WMS layer? >> >> I am still quite new in GIS system. I seek your understanding. >> >> ashlin >> >> >> Bart van den Eijnden wrote: >> > >> > I think the limit is a few hundred markers, certainly not 30k. You'd >> > better >> > be off displaying them as a WMS layer and implementing GetFeatureInfo >> on >> > click or hover. >> > >> > Best regards, >> > Bart >> > >> > On Tue, 20 May 2008 06:59:00 -0700 (PDT), ashlin < >> twink_1984@yahoo.com.sg> >> > wrote: >> >> >> >> Hi, >> >> >> >> I wanted to know the recommended amount of objects that is appropriate >> to >> >> overlay in openlayers. How many markers would be best for client to >> load >> >> in >> >> 10-20 secs? Is it possible to have 30k markers to be in the same >> >> layer? Please advice on the do and dont. Thanks. >> >> >> >> ashlin >> >> -- >> >> View this message in context: >> >> >> > >> http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> >> >> _______________________________________________ >> >> Users mailing list >> >> Users@openlayers.org >> >> http://openlayers.org/mailman/listinfo/users >> > >> > _______________________________________________ >> > Users mailing list >> > Users@openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Openlayers-recommended-load-tp17336211p17341825.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Openlayers-recommended-load-tp17336211p17344360.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnaud.sig at gmail.com Tue May 20 14:40:55 2008 From: arnaud.sig at gmail.com (Arnaud Vandecasteele) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] ToolTips on feature Message-ID: <166b86070805201140vce9c15u5830f831e456db98@mail.gmail.com> Hi the list, I made a script who show some tooltips on feature when an events is detected. Here is my example : - http://cataloguesig.c-webhosting.org/exemplesOpenLayers/olToolTips.php, - http://cataloguesig.c-webhosting.org/applications/DcpReunion/DCP_974_Ajax.php And the script : - http://cataloguesig.c-webhosting.org/exemplesOpenLayers/examples/toolTips.js Maybe it could interest someone. Best Regards Arnaud -- ------------------------------------------------------------------------------ Van De Casteele Arnaud 72 Rue de la colline des cam?lias 97400 Saint-Denis 0262 30 67 79 - 0692 23 73 17 Site internet : http://cataloguesig.c-webhosting.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080520/38d0ce6b/attachment.html From woodbri at swoodbridge.com Tue May 20 18:18:50 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Example popupMatrix.html question Message-ID: <48334E4A.1030102@swoodbridge.com> Hi all, I'm trying to understand the example: http://openlayers.org/dev/examples/popupMatrix.html This seems pretty clear, and I was following it up to the point where: function addMarker(ll, popupClass, popupContentHTML, closeBox, overflow) { var feature = new OpenLayers.Feature(layer, ll); "layer" above is a global reference to OpenLayers.Layer.Image(...) So I assume that this is just the base layer and that for some reason the features need to be created on the base layer in spite of the fact that they are getting added to "markers" layer, or I'm missing some other key point. So it is not clear to me what is going on here and I could use some clarification. Thanks, -Steve From SansonR at asurequality.com Tue May 20 18:07:48 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Attributes of WFS features In-Reply-To: <48334E4A.1030102@swoodbridge.com> References: <48334E4A.1030102@swoodbridge.com> Message-ID: <4833F47402000037000039D0@gate1.agriquality.com> I have a n OpenLayers map that displays point markers for a WFS layer served from Mapserver. The source data is an OGR Virtual layer reading froma table in a SQL-server database with x,y fields in a table. Here is the OL snippet that adds the layer: var wfs = new OpenLayers.Layer.WFS("API WFS", "http://10.65.192.1/cgi-bin/apiwfs.exe?", {typename: 'apiaries_dev', maxfeatures: 100}, {scales: [150000, 10], featureClass: OpenLayers.Feature.WFS}); map.addLayers([wms1,wfs]); map.setBaseLayer(wms1); The layer displays fine on top of a base WMS layer. I want to be able to select a single marker using a CTRL-click, and send the attributes to a div below the map. Next I want to be able to capture a new location for the marker using ALT-click, and send the map coordinates to a separate div. From there, I will formulate a POST to a server to update the location in the source table. The code for capturing the coordinates is as follows: //add various map controls var control = new OpenLayers.Control(); OpenLayers.Util.extend(control, { draw: function () { // this Handler.Point will intercept the ctrl-mousedown // before Control.MouseDefault gets to see it this.point = new OpenLayers.Handler.Point( control, {"done": this.notice}, {keyMask: OpenLayers.Handler.MOD_ALT}); this.point.activate(); }, notice: function (bounds) { document.getElementById('apiary').innerHTML = bounds; } }); map.addControl(control); This works. However, I have no idea as to how to select and then get at the attributes of the WFS layer. Any help appreciated. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080521/6e896b7f/attachment.html From SansonR at asurequality.com Tue May 20 21:38:53 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Attributes of WFS features In-Reply-To: <4833F47402000037000039D0@gate1.agriquality.com> References: <48334E4A.1030102@swoodbridge.com> <4833F47402000037000039D0@gate1.agriquality.com> Message-ID: <483425ED02000037000039F6@gate1.agriquality.com> Further to this, I have removed the featureClass parameter, and included extractAttributes: true: var wfs = new OpenLayers.Layer.WFS("API WFS", "http://10.65.192.1/cgi-bin/apiwfs.exe?", {typename: 'apiaries_dev', maxfeatures: 100, extractAttributes: true}, {scales: [150000, 10]}); map.addLayers([wms1,wfs]); I have added: var options = { hover: true, onSelect: function(feature) { OpenLayers.Util.getElement('apiary').innerHTML = feature.attributes.apiary_id; } }; var select = new OpenLayers.Control.SelectFeature(wfs, options); map.addControl(select); //select.handler.stopDown = false; //select.handler.stopUp = false; select.activate(); This allows me to hover over each point and select it, however I am struggling to get at the attributes still. Here is a sample of the GML returned by Mapserver: 1824867.377072,5534693.953457 88883 2734900 6096500 H0733 7 There are 5 attributes: apiary_id, x_nzmg, y_nzmg, beekeeper_reg_no, maf_id However, the onSelect function above returns "undefined" into the apiary div. How should I reference the attribute fields in each feature? Many thanks, Robert Sanson >>> "Robert Sanson" 21/05/2008 10:07 a.m. >>> I have a n OpenLayers map that displays point markers for a WFS layer served from Mapserver. The source data is an OGR Virtual layer reading froma table in a SQL-server database with x,y fields in a table. Here is the OL snippet that adds the layer: var wfs = new OpenLayers.Layer.WFS("API WFS", "http://10.65.192.1/cgi-bin/apiwfs.exe?", {typename: 'apiaries_dev', maxfeatures: 100}, {scales: [150000, 10], featureClass: OpenLayers.Feature.WFS}); map.addLayers([wms1,wfs]); map.setBaseLayer(wms1); The layer displays fine on top of a base WMS layer. I want to be able to select a single marker using a CTRL-click, and send the attributes to a div below the map. Next I want to be able to capture a new location for the marker using ALT-click, and send the map coordinates to a separate div. From there, I will formulate a POST to a server to update the location in the source table. The code for capturing the coordinates is as follows: //add various map controls var control = new OpenLayers.Control(); OpenLayers.Util.extend(control, { draw: function () { // this Handler.Point will intercept the ctrl-mousedown // before Control.MouseDefault gets to see it this.point = new OpenLayers.Handler.Point( control, {"done": this.notice}, {keyMask: OpenLayers.Handler.MOD_ALT}); this.point.activate(); }, notice: function (bounds) { document.getElementById('apiary').innerHTML = bounds; } }); map.addControl(control); This works. However, I have no idea as to how to select and then get at the attributes of the WFS layer. Any help appreciated. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080521/77444f30/attachment.html From richard at winwaed.com Tue May 20 22:01:22 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Attributes of WFS features In-Reply-To: <4833F47402000037000039D0@gate1.agriquality.com> References: <48334E4A.1030102@swoodbridge.com> <4833F47402000037000039D0@gate1.agriquality.com> Message-ID: <48338272.50205@winwaed.com> Robert Sanson wrote: > Here is the OL snippet that adds the layer: > > var wfs = new OpenLayers.Layer.WFS("API WFS", > "http://10.65.192.1/cgi-bin/apiwfs.exe?", > {typename: 'apiaries_dev', maxfeatures: 100}, > {scales: [150000, 10], featureClass: OpenLayers.Feature.WFS}); > map.addLayers([wms1,wfs]); > map.setBaseLayer(wms1); > Doesn't answer any of your questions, but thanks for asking the query! The above bit of code fixed a problem I was having with scale ranges! I was trying to use minZoom / maxZoom but the online documentation wasn't exactly very helpful, and I couldn't find any useful examples. Your above "scales: [ ]" did what I required. I'm reading tiles from a WMS server. I have scale limits on the server (MapServer), but it seemed a bit inefficient if the same limits weren't present on OpenLayers. For example at some common zoom levels, OpenLayers would pointlessly request a series of empty tiles. Simple stuff, but I thought I'd let you know that your post helped a beginner! Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080520/ba67ed07/attachment.html From tschaub at opengeo.org Tue May 20 22:35:52 2008 From: tschaub at opengeo.org (Tim Schaub) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.LoadURL for kml file - Unhandled request return found In-Reply-To: <17336572.post@talk.nabble.com> References: <17336572.post@talk.nabble.com> Message-ID: <48338A88.60208@opengeo.org> ashlin wrote: > Hi, > > I would like to know if there is any limit in the kml file size or http > request object. I have tried to load a 1.5mb(9000 markers) kml file using > the methods below. It showed a javascript error popup window "Unhandled > request return found". However, it works fine when i reduced the kml file > size to around 59kb (300 markers). What could be the possible problem? If your server failed to deliver the doc, you'd get the alert mentioned above. Firebug can assist you in exploring XMLHttpRequest request/response. Even if the request is successful, I doubt you'll please many users waiting to parse 9000 markers - much less display them all at once. Tim > > function load() { > OpenLayers.loadURL("kml/doc.kml", "", null, parseData); > } > > > function parseData(req) { > > g = new OpenLayers.Format.KML({extractStyles: true}); > > features = g.read(req.responseText); > > var url = 'http://labs.google.com/ridefinder/images/mm_20_red.png'; > var sz = new OpenLayers.Size(10, 17); > var calculateOffset = function(size) { > return new OpenLayers.Pixel(-(size.w/2), > -size.h); > }; > > var icon = new OpenLayers.Icon(url, sz, null, calculateOffset); > var countMarkers = 0; > var myArray = new Array(); > > for(var feat in features) { > myArray[feat] = new OpenLayers.Marker(new > OpenLayers.LonLat(features[feat].geometry.x, features[feat].geometry.y), > icon.clone()); > //alert(features[feat].geometry.x); > > myArray[feat].events.register("click", {'marker':myArray[feat], > 'testNo':feat}, > > function (e) { > alert(this.testNo); > onFeatureSelect(features[this.testNo]); > //Event.stop(e); > > } ); > > kmlLayer.addMarker(myArray[feat]); > countMarkers++; > > } > > alert(countMarkers); > } > > > ashlin From richard at winwaed.com Tue May 20 23:13:25 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] MapServer / OpenLayers application launched Message-ID: <48339355.8060808@winwaed.com> (sorry for the cross-posting to the openlayers and mapserver listserver - I believe this is relevant to both) Thank you for helping with my beginners questions. I now have both MapServer and OpenLayers working for the maps on the http://www.ecomapcostarica.com website. This website documents an ecological study of a rain forest reforestation site in Costa Rica. University of Dallas students will be performing the field work as a part of their Field Ecology class. Their class started today and they have already posted their first blog comments. We fly on Sunday, and will be 'in the field' for about a week. We shall have the students blogging, as well as live map updates, and the posting of new panoramic photos as we build them (yes we have internet access in the rain forest!). So feel free to bookmark the site and take a look over the next two weeks. For the map side of things, we quickly realised that Google Maps and Virtual Earth simply did not have the required level of detail for Costa Rica, so I had to create my own mapping application. I chose MapServer to serve the maps, but quickly discovered OpenLayers which greatly improved the user experience. The end result is quite a mix! There are two main versions: http://www.ecomapcostarica.com/map/index.shtml http://www.ecomapcostarica.com/map/index_ve.shtml For a base map, the first map uses a SHP file of the outline of Costa Rica and 1st level admin boundaries delivered by MapServer via WMS. The second uses Virtual Earth for a base map. MapServer WMS also delivers the 'Synthetic Stream' data (also a SHP file) and the 'ASTER' satellite image (a GeoTIFF). OpenLayers brings in two KML layers that have the map data, annotation, and icons that we shall be adding to next week. The icons layer also has popups (I'm having group all 'clickable' shapes on the icons layers due to that bug I asked about last week). Then, just to liven things up, the survey grid is drawn at run-time by Javascript. This grid will have to be relocated on the first day - ie. recomputed/etc. So we might as well have the computation on the webpage, instead of using Excel/Python/whatever and a load of KML text editing. Best regards, Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com From cmspinto at gmail.com Wed May 21 08:46:52 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Openlayers recommended load In-Reply-To: <17344360.post@talk.nabble.com> References: <17336211.post@talk.nabble.com> <2e887001b0f7a810d1eca429952f6a0f@pop02.backbone.tiscomhosting.nl> <17341825.post@talk.nabble.com> <17344360.post@talk.nabble.com> Message-ID: To generate the markers in WMS you will have to use some software like MapServer or GeoServer OpenLayers will only be the client. Carlos On Tue, May 20, 2008 at 6:15 PM, ashlin wrote: > > ok. Thanks for the explanation. > > How can i generate my markers in WMS? Any sample for reference? Can i load > my kml file by using GetFeatureInfo or getFeatureInfoURL? What format is > supported? > > ashlin > > > cmspinto wrote: > > > > In the WMS layer they will be handle by the server, so you can have > > thousands of them, but if you do a marker layer then each marker is an > > object that the browser has to handle. > > The browsers are not made to handle those kinds of applications. > > > > Best regards, > > > > Calos > > > > On Tue, May 20, 2008 at 4:28 PM, ashlin wrote: > > > >> > >> Are there any examples that i can refer to? > >> > >> What is the difference between having a marker layer and a WMS layer? > >> > >> I am still quite new in GIS system. I seek your understanding. > >> > >> ashlin > >> > >> > >> Bart van den Eijnden wrote: > >> > > >> > I think the limit is a few hundred markers, certainly not 30k. You'd > >> > better > >> > be off displaying them as a WMS layer and implementing GetFeatureInfo > >> on > >> > click or hover. > >> > > >> > Best regards, > >> > Bart > >> > > >> > On Tue, 20 May 2008 06:59:00 -0700 (PDT), ashlin < > >> twink_1984@yahoo.com.sg> > >> > wrote: > >> >> > >> >> Hi, > >> >> > >> >> I wanted to know the recommended amount of objects that is > appropriate > >> to > >> >> overlay in openlayers. How many markers would be best for client to > >> load > >> >> in > >> >> 10-20 secs? Is it possible to have 30k markers to be in the same > >> >> layer? Please advice on the do and dont. Thanks. > >> >> > >> >> ashlin > >> >> -- > >> >> View this message in context: > >> >> > >> > > >> > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17336211.html > >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. > >> >> > >> >> _______________________________________________ > >> >> Users mailing list > >> >> Users@openlayers.org > >> >> http://openlayers.org/mailman/listinfo/users > >> > > >> > _______________________________________________ > >> > Users mailing list > >> > Users@openlayers.org > >> > http://openlayers.org/mailman/listinfo/users > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17341825.html > >> Sent from the OpenLayers Users mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > View this message in context: > http://www.nabble.com/Openlayers-recommended-load-tp17336211p17344360.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080521/e73a0c0c/attachment.html From euzuro at gmail.com Wed May 21 09:24:04 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Example popupMatrix.html question In-Reply-To: <48334E4A.1030102@swoodbridge.com> References: <48334E4A.1030102@swoodbridge.com> Message-ID: <6ae3fb590805210624r32378833u532acfb487a2ed32@mail.gmail.com> Stephen, You are absolutely right. That is a mistake on my part. Thanks for spotting it. Fixed in: http://trac.openlayers.org/changeset/7236 Erik On Tue, May 20, 2008 at 5:18 PM, Stephen Woodbridge wrote: > Hi all, > > I'm trying to understand the example: > http://openlayers.org/dev/examples/popupMatrix.html > > This seems pretty clear, and I was following it up to the point where: > > function addMarker(ll, popupClass, popupContentHTML, closeBox, > overflow) { > > var feature = new OpenLayers.Feature(layer, ll); > > "layer" above is a global reference to OpenLayers.Layer.Image(...) > > So I assume that this is just the base layer and that for some reason > the features need to be created on the base layer in spite of the fact > that they are getting added to "markers" layer, or I'm missing some > other key point. > > So it is not clear to me what is going on here and I could use some > clarification. > > Thanks, > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From euzuro at gmail.com Wed May 21 09:34:20 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] MapServer / OpenLayers application launched In-Reply-To: <48339355.8060808@winwaed.com> References: <48339355.8060808@winwaed.com> Message-ID: <6ae3fb590805210634j594c9f67pc07ca3adab47a654@mail.gmail.com> Hello Richard, The site looks great! Would you be OK with us adding this site to our gallery page: http://trac.openlayers.org/wiki/Gallery ...? thanks! Erik On Tue, May 20, 2008 at 10:13 PM, Richard Marsden wrote: > (sorry for the cross-posting to the openlayers and mapserver listserver > - I believe this is relevant to both) > > Thank you for helping with my beginners questions. I now have both > MapServer and OpenLayers working for the maps on the > http://www.ecomapcostarica.com website. > This website documents an ecological study of a rain forest > reforestation site in Costa Rica. University of Dallas students will be > performing the field work as a part of their Field Ecology class. Their > class started today and they have already posted their first blog comments. > > We fly on Sunday, and will be 'in the field' for about a week. We shall > have the students blogging, as well as live map updates, and the posting > of new panoramic photos as we build them (yes we have internet access in > the rain forest!). So feel free to bookmark the site and take a look > over the next two weeks. > > For the map side of things, we quickly realised that Google Maps and > Virtual Earth simply did not have the required level of detail for Costa > Rica, so I had to create my own mapping application. I chose MapServer > to serve the maps, but quickly discovered OpenLayers which greatly > improved the user experience. > > The end result is quite a mix! There are two main versions: > > http://www.ecomapcostarica.com/map/index.shtml > http://www.ecomapcostarica.com/map/index_ve.shtml > > For a base map, the first map uses a SHP file of the outline of Costa > Rica and 1st level admin boundaries delivered by MapServer via WMS. The > second uses Virtual Earth for a base map. > > MapServer WMS also delivers the 'Synthetic Stream' data (also a SHP > file) and the 'ASTER' satellite image (a GeoTIFF). > OpenLayers brings in two KML layers that have the map data, annotation, > and icons that we shall be adding to next week. The icons layer also has > popups (I'm having group all 'clickable' shapes on the icons layers due > to that bug I asked about last week). > > Then, just to liven things up, the survey grid is drawn at run-time by > Javascript. This grid will have to be relocated on the first day - ie. > recomputed/etc. So we might as well have the computation on the webpage, > instead of using Excel/Python/whatever and a load of KML text editing. > > Best regards, > > > Richard > -- > > Richard Marsden > Winwaed Software Technology LLC > http://www.winwaed.com > Tools and Add-ins for MapPoint - http://www.mapping-tools.com > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From richard at winwaed.com Wed May 21 10:19:40 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] MapServer / OpenLayers application launched In-Reply-To: <6ae3fb590805210634j594c9f67pc07ca3adab47a654@mail.gmail.com> References: <48339355.8060808@winwaed.com> <6ae3fb590805210634j594c9f67pc07ca3adab47a654@mail.gmail.com> Message-ID: <48342F7C.90406@winwaed.com> Erik, Thanks for the compliments! Sure, that would be great! Thanks, Richard Erik Uzureau wrote: > Hello Richard, > > The site looks great! > > Would you be OK with us adding this site to our gallery page: > http://trac.openlayers.org/wiki/Gallery > > ...? > > thanks! > Erik > From springrider at hotmail.com Wed May 21 10:29:35 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Behaviour discrepancies between maps (application/openlayers from GeoServer VS OpenLayers JS code) Message-ID: <17364274.post@talk.nabble.com> Good afternoon Sorry for the long title. I am developing a web application based on oracle, GeoServer and Openalyers. It works great but i have found some performance discrepancies and display problems between maps in a Web page generated through OL Javascript code and maps generated from Geoserver using the format="application/openlayers". Here the code I am using to generate my map through JS code (Sorry everything is on my development server and can not be accessed from outside): var myMap = new OpenLayers.Map('mapResourceFIRMS',{numZoomLevels:24,projection: "EPSG:4326" }); myMap.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':true})); myMap.addControl(new OpenLayers.Control.OverviewMap()); var wms = new OpenLayers.Layer.WMS("All Areas","http://193.43.36.236:8080/geoserver/wms?service=wms", {layers:'fifao:FAO_DIVISION'},{wrapDateLine: true} ); wms.addOptions({isBaseLayer: true}); var wms_continent = new OpenLayers.Layer.WMS("Continent","http://193.43.36.236:8080/geoserver/wms?service=wms", {layers: 'fifao:CONTINENTS_LN1', transparent:"true"},{wrapDateLine: true} ); wms_continent.addOptions({isBaseLayer: false}); myMap.addLayer(wms); myMap.addLayer(wms_continent); myMap.zoomToMaxExtent(); I obtain a map which works correctly but when i zoomed in, it always takes 10 seconds to display the new extended view. On this other hand, when i use the openlayer format of Geoserver through: http://193.43.36.236:8080/geoserver/wms?bbox=-198.0,-97,198.0,99&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=600&height=290&srs=EPSG:4326 I obtain the same kind of map with less functionnalities but when i zoom in, it is displayed automatically, very smoothly. No additional delay is required to display the zoomed view. Moreover i have a problem of display: When i zoom in on specific polygons in the map based on OpenLayers JS library in my Web page, these polygons are not correctly represented: http://www.nabble.com/file/p17364274/Untitled-2%2Bcopy.jpg : See in red the limits of the polygons which are missing. Here, an screenshot of the same area from a map generated from Geoserver using the "application/openlayers" format and having the correct border for the polygons: http://www.nabble.com/file/p17364274/Untitled-4%2Bcopy.jpg I don't understand why 2 maps showing the same data which should be based on the same mechanism, behave so differently in term of loading performance and layers display. In fact, I would like to have my map nested in my web page and built using Openlayers JS code behaving the same as the one which can be generated through GeoServer. Moreover, if you have any hints or tricks for improving the speed of display when zooming, i would be very interested. Hope it is clear enough. Thanks Sylvain -- View this message in context: http://www.nabble.com/Behaviour-discrepancies-between-maps-%28application-openlayers-from-GeoServer-VS-OpenLayers-JS-code%29-tp17364274p17364274.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From springrider at hotmail.com Wed May 21 10:50:55 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Bring base layer to the front In-Reply-To: <20080520140524.GA28144@metacarta.com> References: <17339172.post@talk.nabble.com> <20080520140524.GA28144@metacarta.com> Message-ID: <17364291.post@talk.nabble.com> Thanks This is a view of my map: http://www.nabble.com/file/p17364291/Untitled-7%2Bcopy.jpg My map is based on a blue polygon layer which should be covered by the continent layer. In term of JS code, the only way to do so i found was to set the blue polygon layer as baselayer (isBaseLayer: true) and the continent as transparent (transparent:"true"). If there is an other method to specify the order to display the different layers from bottom to top, i would be very interested to know it. In the current situation, in the overviewmap, my base layer which needs to be overlayed by the continent layer in not really relevant to understand where the user stands.In that case, is there any way to specify which should be the layer to be used for the overviewmap? Moreover in the LayerSwitcher, i would prefer to disable/enable the blue polygon layers than the Continent layer which should remain for me the "base layer" even if it is displayed above other layers. Can we specified the layers and their roles (Base layer or not) of the layers to be listed in this layerswitcher? To summarize, i would like my continent layer to be the base layer with the capability for it to overlay other layers. Is it possible? Hope it is clear enough Thanks for your help Sylvain Christopher Schmidt-4 wrote: > > On Tue, May 20, 2008 at 05:29:47AM -0700, springrider wrote: >> >> Good afternoon >> >> I would need to bring the base layer as the top layer of my map. Is it >> something possible? or the base layer is always the one at the bottom? > > Base layers are always below overlays. > > Regars, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Bring-base-layer-to-the-front-tp17339172p17364291.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gcocks at stoller.com Wed May 21 21:55:23 2008 From: gcocks at stoller.com (Greg Cocks) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] LayerSwitcher format - "default" vs "Gallery Example" Message-ID: <66F6CF82BF58CE4DB4285BE816B297E857FF74@tribble.SMStoller.com> Hi, Along with it being maximised on the page when opened, I liked the format of the LayerSwitcher on the "gallery example" at http://www.openlayers.org/gallery/multiple.html - that is, the left justify and the various layers being indented under 'Base Layer' and 'Overlays.' However my 'out of the box' LayerSwitcher has centered lines, no indents, and often the layer names I specify are truncated at the edge of the box on the right. Looking at the source for http://www.openlayers.org/gallery/multiple.html, I could not see any specific way they had set things such as the justification, indents, font size, auto width, etc (but recognizing that the source there may not be an accurate reflection of what they wrote.) Note that I was using a local copy of the API (2.6), but "just in case" re-pointed at the online API - no change. Had a further look around the site, including searching the mailing lists - no luck - hence this email... *Can someone point me in the right direction?* TIA! And yes, a newbie - but excited, interested and grateful about and for OpenLayers - so cheers! ---------- Regards, GREG COCKS GIS Analyst V gcocks@stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080521/a745991d/attachment.html From bwoodall at bwoodall.org Wed May 21 23:03:20 2008 From: bwoodall at bwoodall.org (bwoodall) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] LayerSwitcher format - "default" vs "Gallery Example" In-Reply-To: <66F6CF82BF58CE4DB4285BE816B297E857FF74@tribble.SMStoller.com> References: <66F6CF82BF58CE4DB4285BE816B297E857FF74@tribble.SMStoller.com> Message-ID: <1211425400.4541.55.camel@wardrobe.dhs.org> Howdy Greg, It helps to have a look at URL ( if possible), but I think I know what your problem is, the 'theme' dir is not found and the dir structure can be something like this; OL2.x img -> OpenLayers-2.x/img lib -> OpenLayers-2.x/lib OpenLayers-2.x OpenLayers.js -> OpenLayers-2.x/build/OpenLayers.js theme -> OpenLayers-2.x/theme Hope that makes sense, ....Bill, From crschmidt at metacarta.com Thu May 22 02:23:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] LayerSwitcher format - "default" vs "Gallery Example" In-Reply-To: <66F6CF82BF58CE4DB4285BE816B297E857FF74@tribble.SMStoller.com> References: <66F6CF82BF58CE4DB4285BE816B297E857FF74@tribble.SMStoller.com> Message-ID: <20080522062302.GA1493@metacarta.com> On Wed, May 21, 2008 at 07:55:23PM -0600, Greg Cocks wrote: > Hi, > > > > Along with it being maximised on the page when opened, I liked the > format of the LayerSwitcher on the "gallery example" at > http://www.openlayers.org/gallery/multiple.html - that is, the left > justify and the various layers being indented under 'Base Layer' and > 'Overlays.' > > > > However my 'out of the box' LayerSwitcher has centered lines, no > indents, and often the layer names I specify are truncated at the edge > of the box on the right. I expect you probably have more complex CSS in your page. Remove it all, then figure out where you're setting text-align or what have you, and go back and figure out how to fix it :) -- Chris From diegoguidi at gmail.com Thu May 22 05:49:56 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Util.onImageLoadError and TileCache layers Message-ID: Looks like OpenLayers.Util.onImageLoadError function is not called when trying to get a missimg tile from a tilecache source using OpenLayers.Layers.TileCache layers. This is maybe obvious because TileCache generates a series of urls to tiles, and it's the browser that load images, but in my website with IE7 any missing tile generates an alert(stack overflow exception at line 0) for any tile missing :( It's impossible for me to generates tile for the last level because this requires years of work, so i need to show simply a default empty image. Any suggestion? -- Diego Guidi From crschmidt at metacarta.com Thu May 22 07:49:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Util.onImageLoadError and TileCache layers In-Reply-To: References: Message-ID: <20080522114931.GC6842@metacarta.com> On Thu, May 22, 2008 at 11:49:56AM +0200, Diego Guidi wrote: > Looks like OpenLayers.Util.onImageLoadError function is not called > when trying to get a missimg tile from a tilecache source using > OpenLayers.Layers.TileCache layers. It should be. To some extent, if this isn't true, it's likely a browesr but, since this layer uses the same tile.Image as everything else. > This is maybe obvious because TileCache generates a series of urls to > tiles, and it's the browser that load images, but in my website with > IE7 any missing tile generates an alert(stack overflow exception at > line 0) for any tile missing :( Never seen that before. No clue why it ould happen. > It's impossible for me to generates tile for the last level because > this requires years of work, so i need to show simply a default empty > image. > Any suggestion? If you're not pre-generating all your tiles, why ae you using a Layer.TileCache? If you know ahead of time that you do't need to include the last layer, why not just not include that zoom level in your map? Regards, -- Christopher Schmidt MetaCarta From diegoguidi at gmail.com Thu May 22 08:12:15 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Util.onImageLoadError and TileCache layers In-Reply-To: <20080522114931.GC6842@metacarta.com> References: <20080522114931.GC6842@metacarta.com> Message-ID: > It should be. To some extent, if this isn't true, it's likely a browesr > but, since this layer uses the same tile.Image as everything else. So I need to investigate why this don't happen to me. > If you're not pre-generating all your tiles, why ae you using a > Layer.TileCache? If you know ahead of time that you do't need to include > the last layer, why not just not include that zoom level in your map? This is exactly what I've made. But a layer missing at the max zoom in firefox and safari is simple a not-loading symbol, a compromise acceptable for me. tiles generation is a very expensive procedure, that needs almost a month for last layers, so I like to maintain the max zoom levels and maybe show not-found tiles during tile generation. Thanks in any case for the answer :) From diegoguidi at gmail.com Thu May 22 08:33:39 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Util.onImageLoadError and TileCache layers In-Reply-To: References: <20080522114931.GC6842@metacarta.com> Message-ID: > So I need to investigate why this don't happen to me. All the problem is, of course, my mistake. The code in onLoadImageError generates the overflow in IE/, so OL code works well as expected. Sorry for the time lost. From diegoguidi at gmail.com Thu May 22 08:34:17 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] OpenLayers.Util.onImageLoadError and TileCache layers In-Reply-To: References: <20080522114931.GC6842@metacarta.com> Message-ID: > The code in onLoadImageError generates the overflow in IE/ I mean, code specified BY ME in onLoadImageError From crschmidt at metacarta.com Thu May 22 13:27:38 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] New OpenLayers Gallery Message-ID: <20080522172738.GA11996@metacarta.com> New OpenLayers Gallery: http://gallery.openlayers.org/ To add to it, click the 'add' link in the upper right. Code is in svn.openlayers.org/project/gallery.openlayers.org/ ; built with Django. I've copied up all the examples from the old Gallery page. Feel free to add as many as you like! Regards, -- Christopher Schmidt MetaCarta From springrider at hotmail.com Thu May 22 14:37:38 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Behaviour discrepancies between maps (application/openlayers from GeoServer VS OpenLayers JS code) In-Reply-To: <17364274.post@talk.nabble.com> References: <17364274.post@talk.nabble.com> Message-ID: <17410841.post@talk.nabble.com> Hello, I tried to play with the different output format (gif,PNG8) but the display of the maps is always very slow when i zoom in. Moreover, i am still having this uncorrect display of the plolygons. If anyone could help a lost newbie, I would be very thankful... Sylvain springrider wrote: > > Good afternoon > > Sorry for the long title. I am developing a web application based on > oracle, GeoServer and Openalyers. It works great but i have found some > performance discrepancies and display problems between maps in a Web page > generated through OL Javascript code and maps generated from Geoserver > using the format="application/openlayers". > > Here the code I am using to generate my map through JS code (Sorry > everything is on my development server and can not be accessed from > outside): > > var myMap = new > OpenLayers.Map('mapResourceFIRMS',{numZoomLevels:24,projection: > "EPSG:4326" }); > > myMap.addControl(new > OpenLayers.Control.LayerSwitcher({'ascending':true})); > myMap.addControl(new OpenLayers.Control.OverviewMap()); > > var wms = new OpenLayers.Layer.WMS("All > Areas","http://193.43.36.236:8080/geoserver/wms?service=wms", > {layers:'fifao:FAO_DIVISION'},{wrapDateLine: true} > ); > wms.addOptions({isBaseLayer: true}); > > var wms_continent = new > OpenLayers.Layer.WMS("Continent","http://193.43.36.236:8080/geoserver/wms?service=wms", > {layers: 'fifao:CONTINENTS_LN1', > transparent:"true"},{wrapDateLine: true} > ); > wms_continent.addOptions({isBaseLayer: false}); > > myMap.addLayer(wms); > myMap.addLayer(wms_continent); > myMap.zoomToMaxExtent(); > > I obtain a map which works correctly but when i zoomed in, it always takes > 10 seconds to display the new extended view. > > On this other hand, when i use the openlayer format of Geoserver through: > http://193.43.36.236:8080/geoserver/wms?bbox=-198.0,-97,198.0,99&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=600&height=290&srs=EPSG:4326 > I obtain the same kind of map with less functionnalities but when i zoom > in, it is displayed automatically, very smoothly. No additional delay is > required to display the zoomed view. > > > Moreover i have a problem of display: When i zoom in on specific polygons > in the map based on OpenLayers JS library in my Web page, these polygons > are not correctly represented: > http://www.nabble.com/file/p17364274/Untitled-2%2Bcopy.jpg > : See in red the limits of the polygons which are missing. > > Here, an screenshot of the same area from a map generated from Geoserver > using the "application/openlayers" format and having the correct border > for the polygons: > http://www.nabble.com/file/p17364274/Untitled-4%2Bcopy.jpg > > I don't understand why 2 maps showing the same data which should be based > on the same mechanism, behave so differently in term of loading > performance and layers display. In fact, I would like to have my map > nested in my web page and built using Openlayers JS code behaving the same > as the one which can be generated through GeoServer. > > Moreover, if you have any hints or tricks for improving the speed of > display when zooming, i would be very interested. > > Hope it is clear enough. > > Thanks > > Sylvain > -- View this message in context: http://www.nabble.com/Behaviour-discrepancies-between-maps-%28application-openlayers-from-GeoServer-VS-OpenLayers-JS-code%29-tp17364274p17410841.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From carl.r.morgan at noaa.gov Thu May 22 15:00:45 2008 From: carl.r.morgan at noaa.gov (Carl Morgan) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? Message-ID: <4835C2DD.4020207@noaa.gov> I am using OpenLayers.Layer.Text to draw a text layer. The underlying file is appended to indefinitely at random intervals, however the cached version always loads instead of the latest version. I've waded through various posts about this topic, but I haven't been able to determine if there is a solution for this...and if there is...how to implement it. I can tell you I've tried various techniques that I've dug up in those posts but haven't gotten any of them to work. I would be extremely grateful if someone can show me a technique that will work, and sorry to be so ignorant, but as much detail as possible would be a big help! Thanks! -Carl From giohappy at gmail.com Thu May 22 16:54:38 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] parse gml from WMS GetFeatureInfo Message-ID: Hi list, I need to parse the response I get from a GetFeatureInfo. I thought I could do it with OpenLayers.Format.GML, but I get back nothing... I tried this way: var gmlReader = new OpenLayers.Format.GML({extractAttributes: true}); var _gml = gmlReader.read(response.responseXML); var my_attributes = _gml.attributes; But attributes remain undefined... I'm in a rush, so I think I've misunderstood the use of OpenLayers.Format.GML Could you suggest me other ways? Thanks From crschmidt at metacarta.com Thu May 22 16:59:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] parse gml from WMS GetFeatureInfo In-Reply-To: References: Message-ID: <20080522205920.GA15546@metacarta.com> On Thu, May 22, 2008 at 10:54:38PM +0200, G. Allegri wrote: > Hi list, > I need to parse the response I get from a GetFeatureInfo. I thought I > could do it with OpenLayers.Format.GML, but I get back nothing... I > tried this way: > > var gmlReader = new OpenLayers.Format.GML({extractAttributes: true}); > var _gml = gmlReader.read(response.responseXML); > var my_attributes = _gml.attributes; _gml is an array of OpenLayers.Feature.Vector objects. Regards, -- Christopher Schmidt MetaCarta From giohappy at gmail.com Thu May 22 17:09:08 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] parse gml from WMS GetFeatureInfo In-Reply-To: <20080522205920.GA15546@metacarta.com> References: <20080522205920.GA15546@metacarta.com> Message-ID: Thanks Christopher but I can't get it to work. I had alreay tried to alert(_gml[0].geometry.CLASS_NAME) but I receive that _gml[0] hasn't properties. 2008/5/22 Christopher Schmidt : > On Thu, May 22, 2008 at 10:54:38PM +0200, G. Allegri wrote: >> Hi list, >> I need to parse the response I get from a GetFeatureInfo. I thought I >> could do it with OpenLayers.Format.GML, but I get back nothing... I >> tried this way: >> >> var gmlReader = new OpenLayers.Format.GML({extractAttributes: true}); >> var _gml = gmlReader.read(response.responseXML); >> var my_attributes = _gml.attributes; > > > _gml is an array of OpenLayers.Feature.Vector objects. > > Regards, > -- > Christopher Schmidt > MetaCarta > From euzuro at gmail.com Thu May 22 17:23:12 2008 From: euzuro at gmail.com (Erik Uzureau) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] New OpenLayers Gallery In-Reply-To: <20080522172738.GA11996@metacarta.com> References: <20080522172738.GA11996@metacarta.com> Message-ID: <6ae3fb590805221423t3f250b95wadacc8857a249796@mail.gmail.com> Kudos to chris for a really nice job on this! On Thu, May 22, 2008 at 12:27 PM, Christopher Schmidt wrote: > New OpenLayers Gallery: > > http://gallery.openlayers.org/ > > To add to it, click the 'add' link in the upper right. > > Code is in svn.openlayers.org/project/gallery.openlayers.org/ ; built > with Django. > > I've copied up all the examples from the old Gallery page. > > Feel free to add as many as you like! > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Thu May 22 17:29:49 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] parse gml from WMS GetFeatureInfo In-Reply-To: References: <20080522205920.GA15546@metacarta.com> Message-ID: <20080522212949.GA15605@metacarta.com> On Thu, May 22, 2008 at 11:09:08PM +0200, G. Allegri wrote: > Thanks Christopher but I can't get it to work. > I had alreay tried to alert(_gml[0].geometry.CLASS_NAME) but I receive > that _gml[0] hasn't properties. Then your list is empty. Get firebug, console.log response.responseXML and _gml, and see what they look like, and check the data coming back in the XmlHttpRequest to see if there's anything there. -- Chris > > > 2008/5/22 Christopher Schmidt : > > On Thu, May 22, 2008 at 10:54:38PM +0200, G. Allegri wrote: > >> Hi list, > >> I need to parse the response I get from a GetFeatureInfo. I thought I > >> could do it with OpenLayers.Format.GML, but I get back nothing... I > >> tried this way: > >> > >> var gmlReader = new OpenLayers.Format.GML({extractAttributes: true}); > >> var _gml = gmlReader.read(response.responseXML); > >> var my_attributes = _gml.attributes; > > > > > > _gml is an array of OpenLayers.Feature.Vector objects. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > > -- Christopher Schmidt MetaCarta From giohappy at gmail.com Thu May 22 21:14:02 2008 From: giohappy at gmail.com (G. Allegri) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] parse gml from WMS GetFeatureInfo In-Reply-To: <20080522212949.GA15605@metacarta.com> References: <20080522205920.GA15546@metacarta.com> <20080522212949.GA15605@metacarta.com> Message-ID: I've not solved it yet, having no item. I used XML/DOM classical methods to parse it. Anyway the GML output from the request was correct... Thank you 2008/5/22 Christopher Schmidt : > On Thu, May 22, 2008 at 11:09:08PM +0200, G. Allegri wrote: >> Thanks Christopher but I can't get it to work. >> I had alreay tried to alert(_gml[0].geometry.CLASS_NAME) but I receive >> that _gml[0] hasn't properties. > > Then your list is empty. Get firebug, console.log response.responseXML > and _gml, and see what they look like, and check the data coming back in > the XmlHttpRequest to see if there's anything there. > > -- Chris > >> >> >> 2008/5/22 Christopher Schmidt : >> > On Thu, May 22, 2008 at 10:54:38PM +0200, G. Allegri wrote: >> >> Hi list, >> >> I need to parse the response I get from a GetFeatureInfo. I thought I >> >> could do it with OpenLayers.Format.GML, but I get back nothing... I >> >> tried this way: >> >> >> >> var gmlReader = new OpenLayers.Format.GML({extractAttributes: true}); >> >> var _gml = gmlReader.read(response.responseXML); >> >> var my_attributes = _gml.attributes; >> > >> > >> > _gml is an array of OpenLayers.Feature.Vector objects. >> > >> > Regards, >> > -- >> > Christopher Schmidt >> > MetaCarta >> > > > -- > Christopher Schmidt > MetaCarta > From springrider at hotmail.com Fri May 23 10:10:07 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code Message-ID: <17426479.post@talk.nabble.com> Hello I come back with live examples. It will easier for you to understand my problem. This is the OL map generated by Geoserver: http://193.43.36.238:8484/geoserver/wms?bbox=-198.0,-96.68453554694977,198.0,98.88973978794988&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=800&height=370&srs=EPSG:4326 And this is the one created in a Web page based on the OpenLayers library 2.6: http://193.43.36.238:8484/figis_GIS/Development/openlayers.html The second map is always longer to load probably because of the number of layers and a bigger OpenLayers. js script.(2s vs 2.8s) When i zoom in, the blue polygons always take longer in my web page than in the Geoserver view to be redisplayed. I made some improvements in my code by having for example one unique WMS layer for displaying transparent layers: var wms = new OpenLayers.Layer.WMS("All Areas","http://193.43.36.238:8484/geoserver/wms?service=wms", {layers:'fifao:FAO_DIVISION,fifao:CONTINENTS_LN1', transparent:"true"},{wrapDateLine: true} ); but any feedback about your experience to improve display would be welcome. I tried to play with the format (png/gif/jpeg) but i don't know what would be the best option. More important is the fact that the view displayed in the Web page based on OL 2.6 is not correct, some lines composing my polygons are missing (see between Africa and South america) while in the OL view provided by Geoserver, the line is correctly displayed. See the screen shot below: http://www.nabble.com/file/p17426479/Untitled-2%2Bcopy.jpg I have no idea why the behaviour is so different, is it a bug? Thanks for you help Sylvain -- View this message in context: http://www.nabble.com/application-openlayers-from-GeoServer-VS-OpenLayers-JS-code-tp17426479p17426479.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jdb at mail.nerc-essc.ac.uk Fri May 23 10:42:22 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] zoomToExtent() and zoomToMaxExtent() not working in polar stereographic projection In-Reply-To: <2bb6ee950805130606if2a0b22l3cca9b2d1e67dbb8@mail.gmail.com> References: <2bb6ee950805130606if2a0b22l3cca9b2d1e67dbb8@mail.gmail.com> Message-ID: <2bb6ee950805230742y2ade959fq62329590d0c260ff@mail.gmail.com> Dear all, I fixed my problem. Turns out that I have to set the maxResolution property as well. I have to set this both on the layer (when the layer is created) and on the map (in the handler for map.changebaselayer). I set the value of the maxResolution property to (top-bottom)/256 where top and bottom are the extremes of the layer's extent and 256 is the tile size. Cheers, Jon On Tue, May 13, 2008 at 2:06 PM, Jon Blower wrote: > Dear all, > > (This is essentially a re-posting of an earlier post, to which I had > no response. This is now posted under a more relevant subject line.) > > I have an application in which the user can change the base layer. > Base layers might have different map projections and so I am trying to > set the projection and maxExtent of the Map object based on the new > base layer. I have registered an event handler for > map.changebaselayer that looks like this: > > function baseLayerChanged(event) > { > // Change the parameters of the map based on the new base layer > map.setOptions({ > projection: projCode, > maxExtent: map.baseLayer.maxExtent > }); > map.zoomToMaxExtent(); > } > > The base layers are set up with different projections (one in > EPSG:4326, the other in EPSG:32661, which is north polar > stereographic). Logging reveals that, when switching to EPSG:32661, > the maxExtent of the map is being set correctly *but* the true extent > of the map after the call to zoomToMaxExtent() is not correct: > > max extent of map: -10700000, -10700000, 14700000, 14700000 > actual extent of map after call to zoomToMaxExtent: 1999640, > 1999718.75, 2000360, 2000281.25 > > hence the map is only covering a very small portion of the true > maximum extent. Are there other parameters that I should be setting > on the base map? I am not setting resolution, minExtent or zoom > levels explicitly anywhere in my code. > > The same thing happens if I call zoomToExtent() and pass in the > bounding box explicitly. > > 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 > -------------------------------------------------------------- > -- -------------------------------------------------------------- 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 bpederse at gmail.com Fri May 23 10:51:53 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code In-Reply-To: <17426479.post@talk.nabble.com> References: <17426479.post@talk.nabble.com> Message-ID: hi, your geoserver map is generating 1 big image, so there are no rendering issues at the edges of images. that's also why it's faster. your other map is generating tiles. so you're seeing the edge effects. you can get rid of hte edge effects, and improve the speed by using tilecache. -b On Fri, May 23, 2008 at 7:10 AM, springrider wrote: > > Hello > > I come back with live examples. It will easier for you to understand my > problem. > > This is the OL map generated by Geoserver: > http://193.43.36.238:8484/geoserver/wms?bbox=-198.0,-96.68453554694977,198.0,98.88973978794988&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=800&height=370&srs=EPSG:4326 > > And this is the one created in a Web page based on the OpenLayers library > 2.6: > http://193.43.36.238:8484/figis_GIS/Development/openlayers.html > > The second map is always longer to load probably because of the number of > layers and a bigger OpenLayers. js script.(2s vs 2.8s) > > When i zoom in, the blue polygons always take longer in my web page than in > the Geoserver view to be redisplayed. > I made some improvements in my code by having for example one unique WMS > layer for displaying transparent layers: > > var wms = new OpenLayers.Layer.WMS("All > Areas","http://193.43.36.238:8484/geoserver/wms?service=wms", > {layers:'fifao:FAO_DIVISION,fifao:CONTINENTS_LN1', > transparent:"true"},{wrapDateLine: true} > ); > but any feedback about your experience to improve display would be welcome. > I tried to play with the format (png/gif/jpeg) but i don't know what would > be the best option. > > More important is the fact that the view displayed in the Web page based on > OL 2.6 is not correct, some lines composing my polygons are missing (see > between Africa and South america) while in the OL view provided by > Geoserver, the line is correctly displayed. > See the screen shot below: > http://www.nabble.com/file/p17426479/Untitled-2%2Bcopy.jpg > > I have no idea why the behaviour is so different, is it a bug? > > Thanks for you help > > Sylvain > -- > View this message in context: http://www.nabble.com/application-openlayers-from-GeoServer-VS-OpenLayers-JS-code-tp17426479p17426479.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Fri May 23 11:09:03 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code In-Reply-To: References: <17426479.post@talk.nabble.com> Message-ID: <20080523150903.GB31771@metacarta.com> On Fri, May 23, 2008 at 07:51:53AM -0700, Brent Pedersen wrote: > hi, your geoserver map is generating 1 big image, so there are no > rendering issues at the edges of images. that's also why it's faster. > your other map is generating tiles. so you're seeing the edge effects. > you can get rid of hte edge effects, and improve the speed by using > tilecache. And you can change your custom map to behave like GeoServer by adding a "'singleTile': true" option on the layer. (Not parameter!) -- Chris From springrider at hotmail.com Fri May 23 11:55:43 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code In-Reply-To: <20080523150903.GB31771@metacarta.com> References: <17426479.post@talk.nabble.com> <20080523150903.GB31771@metacarta.com> Message-ID: <17428004.post@talk.nabble.com> Thanks for your replies. I have added the singleTile option for the layer and it works fine now for the edges display. I will try to install TileCache next week to improve the performance. Have a good week end. Sylvain Christopher Schmidt-4 wrote: > > On Fri, May 23, 2008 at 07:51:53AM -0700, Brent Pedersen wrote: >> hi, your geoserver map is generating 1 big image, so there are no >> rendering issues at the edges of images. that's also why it's faster. >> your other map is generating tiles. so you're seeing the edge effects. >> you can get rid of hte edge effects, and improve the speed by using >> tilecache. > > And you can change your custom map to behave like GeoServer by adding a > "'singleTile': true" option on the layer. (Not parameter!) > > -- Chris > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/application-openlayers-from-GeoServer-VS-OpenLayers-JS-code-tp17426479p17428004.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From chander.ganesan at gmail.com Fri May 23 17:22:55 2008 From: chander.ganesan at gmail.com (Chander Ganesan) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] externalGraphic rotation in a vector layer Message-ID: <483735AF.3050609@gmail.com> Hi, Give some advice by crschmidt on #openlayers, I tried to apply the patch specified in ticket #1433 to my installation of OpenLayer, and then tried to create a point with an externalGraphic and rotation angle. Unfortunately, this doesn't seem to work. Here's the code that I used: map = new OpenLayers.Map('map'); var ol_wms = new OpenLayers.Layer.WMS( "Metacarta Basic Layer", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); ol_wms.maxExtent = new OpenLayers.Bounds(-125, 17.84, -59, 52.55); ol_wms.displayOutsideMaxExtent = true; var planes=new OpenLayers.Layer.Vector("Planes", { styleMap: new OpenLayers.StyleMap({ "default": { externalGraphic: "airplane.gif", graphicWidth: 24, graphicHeight: 28, graphicYOffset: 0, rotation: "${angle}", fillOpacity: "${opacity}" } }) }); var extent = planes.map.getExtent(); var yspan = extent.getHeight(); var xspan = extent.getWidth(); var x = extent.left + xspan * Math.random(); var y = extent.top - yspan * Math.random(); var planeangle = Math.floor(Math.random() * 360); var feature=new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(x, y), {"angle": planeangle, opacity: 100 }); map.addLayers([ ol_wms , planes ]); map.zoomToMaxExtent(); This code causes the layer to draw with the US map underneath, and the plane image to appear on the layer, but the image is not rotated. Any ideas/thoughts? thanks chander From wendell at enflight.com Fri May 23 17:44:51 2008 From: wendell at enflight.com (Wendell Turner) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] migrate from 2.4 to 2.6 and select Message-ID: <20080523214451.GA13362@q.rho.net> The javascript that gdal2tiles.py generates references www.openlayers.org/api/2.4/OpenLayers.js, however, that doesn't appear to have SelectFeature. Was SelectFeature added after 2.4? If I change the 2.4 to 2.6 it produces this error: Error: this.projection.getUnits is not a function Source File: http://www.openlayers.org/api/2.6/OpenLayers.js Line: 772 If I change it to reference my own copy from the distribution it gets this error: Error: this.projection.getUnits is not a function Source File: http://delta.rho.net/open/lib/OpenLayers/Layer.js Line: 489 What do I need to do to upgrade from 2.4 to 2.6 (so I can use SelectFeature)? Thanks, Wendell From lancelot at inetnebr.com Fri May 23 18:57:29 2008 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] migrate from 2.4 to 2.6 and select In-Reply-To: <20080523214451.GA13362@q.rho.net> References: <20080523214451.GA13362@q.rho.net> Message-ID: <48374BD9.8080604@inetnebr.com> Wendell Turner wrote: > The javascript that gdal2tiles.py generates references > www.openlayers.org/api/2.4/OpenLayers.js, however, that > doesn't appear to have SelectFeature. Was SelectFeature > added after 2.4? > > If I change the 2.4 to 2.6 it produces this error: > Error: this.projection.getUnits is not a function > Source File: http://www.openlayers.org/api/2.6/OpenLayers.js Line: 772 > > If I change it to reference my own copy from the > distribution it gets this error: > Error: this.projection.getUnits is not a function > Source File: http://delta.rho.net/open/lib/OpenLayers/Layer.js Line: 489 > > What do I need to do to upgrade from 2.4 to 2.6 (so I can > use SelectFeature)? > > Thanks, > > Wendell > several things ... I can recall off the top of my head. Well the html that gdal2tiles creates includes a geturl override that is no longer needed Straight TMS and specifying the version as "." and the baseurl / layername as "" ... that will get it started... From andreas.hocevar at gmail.com Sat May 24 03:00:59 2008 From: andreas.hocevar at gmail.com (Andreas Hocevar) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] externalGraphic rotation in a vector layer In-Reply-To: <483735AF.3050609@gmail.com> References: <483735AF.3050609@gmail.com> Message-ID: <4837BD2B.6090901@gmail.com> Hey, your code does not seem correct. At the time you request the extent, there is no extent yet. And you do not add the feature to the layer. The following code works for me (tested on FF2, IE6, IE7, Opera9 and Safari3 with both png and gif images): map = new OpenLayers.Map('map'); var ol_wms = new OpenLayers.Layer.WMS( "Metacarta Basic Layer", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); ol_wms.maxExtent = new OpenLayers.Bounds(-125, 17.84, -59, 52.55); ol_wms.displayOutsideMaxExtent = true; var planes=new OpenLayers.Layer.Vector("Planes", { styleMap: new OpenLayers.StyleMap({ "default": { externalGraphic: "../img/marker.png", graphicWidth: 24, graphicHeight: 28, graphicYOffset: 0, rotation: "${angle}", fillOpacity: "${opacity}" } }) }); map.addLayers([ ol_wms , planes ]); map.zoomToMaxExtent(); var extent = planes.map.getExtent(); var yspan = extent.getHeight(); var xspan = extent.getWidth(); var x = extent.left + xspan * Math.random(); var y = extent.top - yspan * Math.random(); var planeangle = Math.floor(Math.random() * 360); var feature=new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(x, y), { "angle": planeangle, opacity: 100 }); planes.addFeatures([feature]); Regards, Andreas. Chander Ganesan wrote: > Hi, > > Give some advice by crschmidt on #openlayers, I tried to apply the patch > specified in ticket #1433 to my installation of OpenLayer, and then > tried to create a point with an externalGraphic and rotation angle. > Unfortunately, this doesn't seem to work. Here's the code that I used: > > map = new OpenLayers.Map('map'); > var ol_wms = new OpenLayers.Layer.WMS( "Metacarta Basic Layer", > "http://labs.metacarta.com/wms/vmap0", > {layers: 'basic'} ); > ol_wms.maxExtent = new OpenLayers.Bounds(-125, 17.84, -59, 52.55); > ol_wms.displayOutsideMaxExtent = true; > var planes=new OpenLayers.Layer.Vector("Planes", > { > styleMap: new OpenLayers.StyleMap({ > "default": { > externalGraphic: "airplane.gif", > graphicWidth: 24, > graphicHeight: 28, > graphicYOffset: 0, > rotation: "${angle}", > fillOpacity: "${opacity}" > } > }) > }); > > var extent = planes.map.getExtent(); > var yspan = extent.getHeight(); > var xspan = extent.getWidth(); > var x = extent.left + xspan * Math.random(); > var y = extent.top - yspan * Math.random(); > var planeangle = Math.floor(Math.random() * 360); > var feature=new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(x, y), {"angle": planeangle, > opacity: 100 }); > map.addLayers([ ol_wms , planes ]); > map.zoomToMaxExtent(); > > > This code causes the layer to draw with the US map underneath, and the > plane image to appear on the layer, but the image is not rotated. Any > ideas/thoughts? > > thanks > > chander > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From eric.c2c at gmail.com Sun May 25 15:10:12 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Behaviour discrepancies between maps (application/openlayers from GeoServer VS OpenLayers JS code) In-Reply-To: <17410841.post@talk.nabble.com> References: <17364274.post@talk.nabble.com> <17410841.post@talk.nabble.com> Message-ID: <5ec103de0805251210o2cb02bb7u4aa2048d3980dd1d@mail.gmail.com> Hello. Regarding the performance issue: in the first case three images are requested from GS, one for each WMS layers configured in OL. Althoug i'm not a GS expert, i think that in the second case only one image is requested - the three layers are combined in a single image. Does that make any sense ? Eric 2008/5/22, springrider : > > Hello, > > I tried to play with the different output format (gif,PNG8) but the display > of the maps is always very slow when i zoom in. Moreover, i am still having > this uncorrect display of the plolygons. > > If anyone could help a lost newbie, I would be very thankful... > > Sylvain > > > springrider wrote: >> >> Good afternoon >> >> Sorry for the long title. I am developing a web application based on >> oracle, GeoServer and Openalyers. It works great but i have found some >> performance discrepancies and display problems between maps in a Web page >> generated through OL Javascript code and maps generated from Geoserver >> using the format="application/openlayers". >> >> Here the code I am using to generate my map through JS code (Sorry >> everything is on my development server and can not be accessed from >> outside): >> >> var myMap = new >> OpenLayers.Map('mapResourceFIRMS',{numZoomLevels:24,projection: >> "EPSG:4326" }); >> >> myMap.addControl(new >> OpenLayers.Control.LayerSwitcher({'ascending':true})); >> myMap.addControl(new OpenLayers.Control.OverviewMap()); >> >> var wms = new OpenLayers.Layer.WMS("All >> Areas","http://193.43.36.236:8080/geoserver/wms?service=wms", >> {layers:'fifao:FAO_DIVISION'},{wrapDateLine: true} >> ); >> wms.addOptions({isBaseLayer: true}); >> >> var wms_continent = new >> OpenLayers.Layer.WMS("Continent","http://193.43.36.236:8080/geoserver/wms?service=wms", >> {layers: 'fifao:CONTINENTS_LN1', >> transparent:"true"},{wrapDateLine: true} >> ); >> wms_continent.addOptions({isBaseLayer: false}); >> >> myMap.addLayer(wms); >> myMap.addLayer(wms_continent); >> myMap.zoomToMaxExtent(); >> >> I obtain a map which works correctly but when i zoomed in, it always takes >> 10 seconds to display the new extended view. >> >> On this other hand, when i use the openlayer format of Geoserver through: >> http://193.43.36.236:8080/geoserver/wms?bbox=-198.0,-97,198.0,99&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=600&height=290&srs=EPSG:4326 >> I obtain the same kind of map with less functionnalities but when i zoom >> in, it is displayed automatically, very smoothly. No additional delay is >> required to display the zoomed view. >> >> >> Moreover i have a problem of display: When i zoom in on specific polygons >> in the map based on OpenLayers JS library in my Web page, these polygons >> are not correctly represented: >> http://www.nabble.com/file/p17364274/Untitled-2%2Bcopy.jpg >> : See in red the limits of the polygons which are missing. >> >> Here, an screenshot of the same area from a map generated from Geoserver >> using the "application/openlayers" format and having the correct border >> for the polygons: >> http://www.nabble.com/file/p17364274/Untitled-4%2Bcopy.jpg >> >> I don't understand why 2 maps showing the same data which should be based >> on the same mechanism, behave so differently in term of loading >> performance and layers display. In fact, I would like to have my map >> nested in my web page and built using Openlayers JS code behaving the same >> as the one which can be generated through GeoServer. >> >> Moreover, if you have any hints or tricks for improving the speed of >> display when zooming, i would be very interested. >> >> Hope it is clear enough. >> >> Thanks >> >> Sylvain >> > > -- > View this message in context: > http://www.nabble.com/Behaviour-discrepancies-between-maps-%28application-openlayers-from-GeoServer-VS-OpenLayers-JS-code%29-tp17364274p17410841.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From woodbri at swoodbridge.com Sun May 25 23:54:41 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] How does remove markers/popups from a layer? Message-ID: <483A3481.2080509@swoodbridge.com> Hi all, I'm fetching markers via an Ajax call and rendering them based on code very similar to the popup matrix example. You can see the code here: http://imaptools.com/maps2/tiger.html Just enter an address or zipcode and it will zoom you to that location and adds a marker to the map. So this part works well! But I need to clean up and remove the old markers when a new request is made. What is the best way to do this? It is also possible to get an array of results, not just one, in some cases. Is there a way to tell the layer to tell the markers to delete themselves? Or do I need to create an array and push all the markers onto the array, and then unregister all the click events and somehow destroy all the markers, popups and icons? Do we have an example of how what it the best way to do this? What is the best way to do this? Thanks for any advice offered, -Steve W From woodbri at swoodbridge.com Mon May 26 00:32:02 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] How does remove markers/popups from a layer? In-Reply-To: <483A3481.2080509@swoodbridge.com> References: <483A3481.2080509@swoodbridge.com> Message-ID: <483A3D42.8020402@swoodbridge.com> Stephen Woodbridge wrote: > Hi all, > > I'm fetching markers via an Ajax call and rendering them based on code > very similar to the popup matrix example. You can see the code here: > > http://imaptools.com/maps2/tiger.html > > Just enter an address or zipcode and it will zoom you to that location > and adds a marker to the map. So this part works well! > > But I need to clean up and remove the old markers when a new request is > made. What is the best way to do this? It is also possible to get an > array of results, not just one, in some cases. > > Is there a way to tell the layer to tell the markers to delete > themselves? Or do I need to create an array and push all the markers > onto the array, and then unregister all the click events and somehow > destroy all the markers, popups and icons? Do we have an example of how > what it the best way to do this? What is the best way to do this? > > Thanks for any advice offered, > -Steve W As a follow up to myself, I think I figured it out using an array popups to collect the markers into as I make them and then removing them from the layer, destroying the events and finally the markers. If this is not correct/complete, or leaks (How do I check if this leaks?), please let me know so this thread is complete and might help others. Best regards, -Steve W From aaime at openplans.org Mon May 26 03:41:31 2008 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code In-Reply-To: <17426479.post@talk.nabble.com> References: <17426479.post@talk.nabble.com> Message-ID: <483A69AB.5000903@openplans.org> springrider ha scritto: > Hello > > I come back with live examples. It will easier for you to understand my > problem. > > This is the OL map generated by Geoserver: > http://193.43.36.238:8484/geoserver/wms?bbox=-198.0,-96.68453554694977,198.0,98.88973978794988&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:FAO_DIVISION,fifao:CONTINENTS_LN1&width=800&height=370&srs=EPSG:4326 > > And this is the one created in a Web page based on the OpenLayers library > 2.6: > http://193.43.36.238:8484/figis_GIS/Development/openlayers.html > > The second map is always longer to load probably because of the number of > layers and a bigger OpenLayers. js script.(2s vs 2.8s) > > When i zoom in, the blue polygons always take longer in my web page than in > the Geoserver view to be redisplayed. > I made some improvements in my code by having for example one unique WMS > layer for displaying transparent layers: > > var wms = new OpenLayers.Layer.WMS("All > Areas","http://193.43.36.238:8484/geoserver/wms?service=wms", > {layers:'fifao:FAO_DIVISION,fifao:CONTINENTS_LN1', > transparent:"true"},{wrapDateLine: true} > ); > but any feedback about your experience to improve display would be welcome. > I tried to play with the format (png/gif/jpeg) but i don't know what would > be the best option. It depends mostly on what kind of connection you'll have between your clients and your app. Jpeg is always faster for imagery data types, but may show compression artifacts on vector maps. For a more extensive discussion of the options you have at your disposal see: http://geoserver.org/display/GEOSDOC/Paletted+images+tutorial If your data is mostly static (or at least, for the part of your data that _is_ mostly static) consider using a tile caching solution such as tilecache or geowebcache. > More important is the fact that the view displayed in the Web page based on > OL 2.6 is not correct, some lines composing my polygons are missing (see > between Africa and South america) while in the OL view provided by > Geoserver, the line is correctly displayed. > See the screen shot below: > http://www.nabble.com/file/p17426479/Untitled-2%2Bcopy.jpg Oh, this is bad, I consider this a bug, the line should appear in at least one of the tiles. Any chance you can give me the OL app as well as a sample of your data and the SLD used to draw it? Cheers Andrea From yjacolin at free.fr Mon May 26 05:53:56 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] QGIS export for Openlayers Message-ID: <200805261153.56303.yjacolin@free.fr> Hi, Nicolas Bozon wrote a nice plugin in python for QGIS to export your map to OpenLayers (I didn't test it yet but seems really intersting). You can find more information in the website : http://ogr2layers.org/ All spatial file are converted to KML file with ogr. For french people present in the Geo evenement 2008 tradeshow, Nicolas Bozon was the developer of the http://www.opengeoportail.fr/ website (geo-online contest). Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From springrider at hotmail.com Mon May 26 13:24:34 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica Message-ID: <17475860.post@talk.nabble.com> Good evening In the framework of my project, I should be able to provide different projections for the same layer. It concerns mainly polar projections. I am now struggling for several hours trying to reproject a layer based on the antartic polar sterographic projection (EPSG:3031). Here some details on the projection : http://nsidc.org/data/atlas/epsg_3031.html and this is my code: var options = { projection: new OpenLayers.Projection("EPSG:3031"), units: 'meters', maxResolution: 'auto', maxExtent: new OpenLayers.Bounds(-12400000,-12400000,12400000,12400000) }; var map = new OpenLayers.Map('map', options); var basemap = new OpenLayers.Layer.WMS( "test", "http://193.43.36.238:8484/geoserver/wms?service=wms", {layers: 'fifao:CONTINEENT_GAUL'}); map.addLayer(basemap); map.zoomToMaxExtent(); I am using OL 2.6 but not proj4js, i don't know if it can impact. Anyway, i don't understand why it does not work so if someone could give me some directions or hints, i would be very grateful. Thanks in advance Sylvain -- View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17475860.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon May 26 20:11:24 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers Message-ID: <483B51AC.7040600@swoodbridge.com> Hi all, I have a marker layer that which is working great. I just added a click handler that reverse geocodes on a click and adds a marker at the click point and populates the popup with the XML response. This is all working great EXCEPT that when I click on the icons to open or close a popup, that click is propagating to the click handler causing another marker to be added. How to I control or stop this? Thanks, -Steve W From crschmidt at metacarta.com Mon May 26 19:17:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <483B51AC.7040600@swoodbridge.com> References: <483B51AC.7040600@swoodbridge.com> Message-ID: <20080526231756.GA7443@metacarta.com> On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote: > Hi all, > > I have a marker layer that which is working great. I just added a click > handler that reverse geocodes on a click and adds a marker at the click > point and populates the popup with the XML response. This is all > working great EXCEPT that when I click on the icons to open or close a > popup, that click is propagating to the click handler causing another > marker to be added. > > How to I control or stop this? Return false or OpenLayers.Event.stop(evt); inside your marker click handler. (I can't remember which it is; one of them should do it, I don't know which.) Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Mon May 26 20:58:45 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <20080526231756.GA7443@metacarta.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> Message-ID: <483B5CC5.2020904@swoodbridge.com> Christopher Schmidt wrote: > On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote: >> Hi all, >> >> I have a marker layer that which is working great. I just added a click >> handler that reverse geocodes on a click and adds a marker at the click >> point and populates the popup with the XML response. This is all >> working great EXCEPT that when I click on the icons to open or close a >> popup, that click is propagating to the click handler causing another >> marker to be added. >> >> How to I control or stop this? > > Return false or OpenLayers.Event.stop(evt); inside your marker click > handler. (I can't remember which it is; one of them should do it, I > don't know which.) > > Regards, Thanks, I was already calling OpenLayers.Event.stop(evt); and added return false for good measure, but without success. I just found another symptom that might be relevant, which is that this behavior only happens UNTIL I do a click drag on the map, then it behaves as expected. Opening a popup that causes a pan does not fix the problem. Sorry I meant to post the url in the last message: http://imaptools.com/maps2/tiger.html To reproduce: enter an address like: 11 radcliffe rd, n chelmsford, ma 01863 click Go Click on the Red Marker you will get an aqua marker where you click, click on the close button and you will get another aqua marker. Now, reload the page and repeat, BUT after you click Go, do a click drag first and then will not get the extra markers. -Steve From jdeltoro1973 at yahoo.com Mon May 26 21:50:56 2008 From: jdeltoro1973 at yahoo.com (=?iso-8859-1?q?Juan=20Jose=20Del=20Toro=20Madrue=F1o?=) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Geographic CMS like open source app Message-ID: <447460.40266.qm@web51712.mail.re2.yahoo.com> Dear list; We are on the early stages to develop a kind of geographic cms system that would allow users to manage on their website basic geographic information integrated into a MySQL database; map?ng customers with routes, houses in a real estate company, etc. similar apps are already there but none of them are open spurce projects Before we embark on this task; does anyone know of a similar app that is open source and works as a cms like using OL/OSM/Google Maps? Cheers Juan Jose ____________________________________________________________________________________ Yahoo! Deportes Beta ?No te pierdas lo ?ltimo sobre el torneo clausura 2008! Ent?rate aqu? http://deportes.yahoo.com From kusum at infobase.in Tue May 27 00:17:13 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers References: <483B51AC.7040600@swoodbridge.com><20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> Message-ID: <3ED1EE0EC4A84843BB55FE363DEE04D5@kusum> why don't u use hover event to see popup on marker instead of using click. -------------------------------------------------- From: "Stephen Woodbridge" Sent: Tuesday, May 27, 2008 6:28 AM To: "Christopher Schmidt" Cc: "openlayers user list" Subject: Re: [OpenLayers-Users] Help dealing with popup clicks verse click handlers > Christopher Schmidt wrote: >> On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote: >>> Hi all, >>> >>> I have a marker layer that which is working great. I just added a click >>> handler that reverse geocodes on a click and adds a marker at the click >>> point and populates the popup with the XML response. This is all >>> working great EXCEPT that when I click on the icons to open or close a >>> popup, that click is propagating to the click handler causing another >>> marker to be added. >>> >>> How to I control or stop this? >> >> Return false or OpenLayers.Event.stop(evt); inside your marker click >> handler. (I can't remember which it is; one of them should do it, I >> don't know which.) >> >> Regards, > > Thanks, > > I was already calling OpenLayers.Event.stop(evt); and added return false > for good measure, but without success. > > I just found another symptom that might be relevant, which is that this > behavior only happens UNTIL I do a click drag on the map, then it > behaves as expected. Opening a popup that causes a pan does not fix the > problem. > > Sorry I meant to post the url in the last message: > > http://imaptools.com/maps2/tiger.html > > To reproduce: > > enter an address like: 11 radcliffe rd, n chelmsford, ma 01863 > click Go > Click on the Red Marker you will get an aqua marker where you click, > click on the close button and you will get another aqua marker. > > Now, reload the page and repeat, BUT after you click Go, do a click drag > first and then will not get the extra markers. > > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From weimin_su at 126.com Tue May 27 01:42:23 2008 From: weimin_su at 126.com (=?utf-8?B?5bCP57Kf?=) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse clickhandlers References: <483B51AC.7040600@swoodbridge.com> Message-ID: <39DB9121C7E0414C8A7DF7277ADB509B@suen> Hope this is useful! var feature, popup; var contentHTML; var marker, markers; function addMarker(lon, lat, cHtml) { if(markers == null) { markers = new OpenLayers.Layer.Markers("???"); map.addLayer(markers); } if(feature != null) { feature.destroy(); if(popup != null) { popup.destroy(); popup = null; } } feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lon, lat)); //feature.closeBox = false; feature.popupClass = OpenLayers.Popup.FramedBubbleM2Ex; //feature.popupClass = OpenLayers.Popup.FramedCloud; var markerIcon = new OpenLayers.Icon("mainimg/marker.gif", new OpenLayers.Size(37.5,37.5)); if(marker == null) { marker = feature.createMarker(); //marker.icon = markerIcon; } else { markers.removeMarker(marker); marker = feature.createMarker(); //marker.icon = markerIcon; } markers.addMarker(marker); contentHTML = cHtml; marker.events.register("mousedown", marker, mousedown); } function mousedown(evt) { if (popup == null) { popup = feature.createPopup(true); popup.setContentHTML(contentHTML); markers.map.addPopup(popup); } else { popup.toggle(); } OpenLayers.Event.stop(evt); } ----- Original Message ----- From: "Stephen Woodbridge" To: "openlayers user list" Sent: Tuesday, May 27, 2008 8:11 AM Subject: [OpenLayers-Users] Help dealing with popup clicks verse clickhandlers > Hi all, > > I have a marker layer that which is working great. I just added a click > handler that reverse geocodes on a click and adds a marker at the click > point and populates the popup with the XML response. This is all > working great EXCEPT that when I click on the icons to open or close a > popup, that click is propagating to the click handler causing another > marker to be added. > > How to I control or stop this? > > Thanks, > -Steve W > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From eric.c2c at gmail.com Tue May 27 01:42:27 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <20080526231756.GA7443@metacarta.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> Message-ID: <5ec103de0805262242o11d88932pf4c74632d081bec1@mail.gmail.com> On Tue, May 27, 2008 at 1:17 AM, Christopher Schmidt wrote: > On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote: >> Hi all, >> >> I have a marker layer that which is working great. I just added a click >> handler that reverse geocodes on a click and adds a marker at the click >> point and populates the popup with the XML response. This is all >> working great EXCEPT that when I click on the icons to open or close a >> popup, that click is propagating to the click handler causing another >> marker to be added. >> >> How to I control or stop this? > > Return false or OpenLayers.Event.stop(evt); inside your marker click > handler. (I can't remember which it is; one of them should do it, I > don't know which.) Here the goal is stop propagation towards the parent DOM elements, so it should be OpenLayers.Event.stop(evt). -- Eric From eric.c2c at gmail.com Tue May 27 01:46:33 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse clickhandlers In-Reply-To: <39DB9121C7E0414C8A7DF7277ADB509B@suen> References: <483B51AC.7040600@swoodbridge.com> <39DB9121C7E0414C8A7DF7277ADB509B@suen> Message-ID: <5ec103de0805262246i4c8d6a30kcf1bcea0d3f59d09@mail.gmail.com> On Tue, May 27, 2008 at 7:42 AM, ?? wrote: > Hope this is useful! You don't use a click handler (OpenLayers.Handler.Click) so your example doesn't really pertain to Stephen's case. Thanks, -- Eric > var feature, popup; > var contentHTML; > var marker, markers; > > function addMarker(lon, lat, cHtml) > { > if(markers == null) > { > markers = new OpenLayers.Layer.Markers("???"); > map.addLayer(markers); > } > > if(feature != null) > { > feature.destroy(); > if(popup != null) > { > popup.destroy(); > popup = null; > } > } > feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lon, lat)); > //feature.closeBox = false; > feature.popupClass = OpenLayers.Popup.FramedBubbleM2Ex; > //feature.popupClass = OpenLayers.Popup.FramedCloud; > var markerIcon = new OpenLayers.Icon("mainimg/marker.gif", new OpenLayers.Size(37.5,37.5)); > if(marker == null) > { > marker = feature.createMarker(); > //marker.icon = markerIcon; > } > else > { > markers.removeMarker(marker); > marker = feature.createMarker(); > //marker.icon = markerIcon; > } > > markers.addMarker(marker); > contentHTML = cHtml; > marker.events.register("mousedown", marker, mousedown); > } > > function mousedown(evt) { > if (popup == null) { > popup = feature.createPopup(true); > popup.setContentHTML(contentHTML); > markers.map.addPopup(popup); > } else { > popup.toggle(); > } > > OpenLayers.Event.stop(evt); > } From eric.c2c at gmail.com Tue May 27 01:57:26 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <483B5CC5.2020904@swoodbridge.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> Message-ID: <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> On Tue, May 27, 2008 at 2:58 AM, Stephen Woodbridge wrote: > To reproduce: > > enter an address like: 11 radcliffe rd, n chelmsford, ma 01863 > click Go > Click on the Red Marker you will get an aqua marker where you click, > click on the close button and you will get another aqua marker. This is weird. I don't know what's going on at this point. Note however that I didn't get the aqua marker when clicking on the popup close box. Could you share your code? In particular, I'm thinking about the registration of the marker click listener. Cheers, -- Eric From jdb at mail.nerc-essc.ac.uk Tue May 27 02:13:27 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica Message-ID: <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> Hi Sylvain, You don't explain what you mean by "it doesn't work" but you will almost certainly have to specify the projection of the basemap layer explicitly, as well as the map. If you check the requests from openlayers to your server is it using the wrong SRS/CRS? Cheers, Jon > > ---------- Forwarded message ---------- > From: springrider > To: users@openlayers.org > Date: Mon, 26 May 2008 10:24:34 -0700 (PDT) > Subject: [OpenLayers-Users] Problem with polar projection on Antartica > > Good evening > > In the framework of my project, I should be able to provide different > projections for the same layer. It concerns mainly polar projections. > > I am now struggling for several hours trying to reproject a layer based on > the antartic polar sterographic projection (EPSG:3031). > Here some details on the projection : > http://nsidc.org/data/atlas/epsg_3031.html > and this is my code: > > var options = { > projection: new OpenLayers.Projection("EPSG:3031"), > units: 'meters', > maxResolution: 'auto', > maxExtent: new OpenLayers.Bounds(-12400000,-12400000,12400000,12400000) > }; > var map = new OpenLayers.Map('map', options); > var basemap = new OpenLayers.Layer.WMS( "test", > "http://193.43.36.238:8484/geoserver/wms?service=wms", > {layers: 'fifao:CONTINEENT_GAUL'}); > map.addLayer(basemap); > map.zoomToMaxExtent(); > > I am using OL 2.6 but not proj4js, i don't know if it can impact. > Anyway, i don't understand why it does not work so if someone could give me > some directions or hints, i would be very grateful. > > Thanks in advance > > Sylvain > -- > View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17475860.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > -- -------------------------------------------------------------- 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 kusum at infobase.in Tue May 27 02:10:04 2008 From: kusum at infobase.in (Kusum) Date: Wed Sep 1 17:16:19 2010 Subject: [OpenLayers-Users] Smooth Roads Problem Message-ID: <5FA34D1B5B8B487EB736A850BB4022C8@kusum> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 5444 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/4f0b0f8e/attachment.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 7268 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/4f0b0f8e/attachment-0001.jpe From oscar.fonts.lists at gmail.com Tue May 27 02:53:06 2008 From: oscar.fonts.lists at gmail.com (Oscar Fonts) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: <4831DD1B.6020507@opengeo.org> References: <4831DD1B.6020507@opengeo.org> Message-ID: 2008/5/19 Tim Schaub : > Arnd Wippermann wrote: > > I would appreciate, if the Control.ModifyFeature would enhanced to delete > > features. > > This was originally the intent. Chris suggested it would be too easy to > delete a feature accidentally when you were trying to hover over a > vertex. Providing an option on the control seems like a sensible solution. > You could show a confirm dialog: handleKeypress: function(code) { // check for delete key if(this.feature && OpenLayers.Util.indexOf(this.deleteCodes, code) != -1) { var vertex = this.dragControl.feature; if(vertex && [..]) { // ... } else { // Not over a vertex if(confirm("Do you want to delete the selected feature?")){ var f = this.feature; this.unselectFeature(this); this.layer.removeFeatures([f]); } } } }, Oscar. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/535592ae/attachment.html From ks at geograf.dk Tue May 27 04:05:55 2008 From: ks at geograf.dk (Kenneth Skovhede, GEOGRAF A/S) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Geographic CMS like open source app In-Reply-To: <447460.40266.qm@web51712.mail.re2.yahoo.com> References: <447460.40266.qm@web51712.mail.re2.yahoo.com> Message-ID: <483BC0E3.4000700@geograf.dk> That depends on how much functionality you expect there to be from the start. You can view some OpenLayers galleries here: http://gallery.openlayers.org/ The MapGuide Open Source project has a type of application called "fusion" that uses OpenLayers for mapping: http://mapguide.osgeo.org/livegallery.html The last entry uses fusion, and thus OpenLayers Regards, Kenneth Skovhede, GEOGRAF A/S Juan Jose Del Toro Madrue?o skrev: > Dear list; > > > We are on the early stages to develop a kind of geographic cms system that > would allow users to manage on their website basic geographic information > integrated into a MySQL database; map?ng customers with routes, houses in > a real estate company, etc. > > similar apps are already there but none of them are open spurce projects > > Before we embark on this task; does anyone know of a similar app that is > open source and works as a cms like using OL/OSM/Google Maps? > > Cheers > > Juan Jose > > > > ____________________________________________________________________________________ > Yahoo! Deportes Beta > ?No te pierdas lo ?ltimo sobre el torneo clausura 2008! Ent?rate aqu? http://deportes.yahoo.com > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From springrider at hotmail.com Tue May 27 05:29:06 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica In-Reply-To: <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> References: <17475860.post@talk.nabble.com> <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> Message-ID: <17486550.post@talk.nabble.com> Thanks Jon for your reply Sorry I was not really explicit about the result i had. This is the request which is sent to my Geoserver: GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL &SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES= &EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg &BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332 &WIDTH=256&HEIGHT=256 So the SRS to be used is correct (3031) but what is sent for the bounding box seems to be wrong in respect to what i have specified... As you were suggesting in one of your previous post, could it be related to ZoomToMaxExtent? I tried to add the projection also for the baselayer but with no results: var basemap = new OpenLayers.Layer.WMS( "test", "http://193.43.36.238:8484/geoserver/wms?version=1.1.1", {layers: 'fifao:CONTINEENT_GAUL', srs: 'EPSG:3031'}); basemap.addOptions({isBaseLayer: true}); Thanks for your help and for telling me if the options and the way i used them are corrects. Cheers Sylvain Jon Blower wrote: > > Hi Sylvain, > > You don't explain what you mean by "it doesn't work" but you will > almost certainly have to specify the projection of the basemap layer > explicitly, as well as the map. If you check the requests from > openlayers to your server is it using the wrong SRS/CRS? > > Cheers, Jon > >> >> ---------- Forwarded message ---------- >> From: springrider >> To: users@openlayers.org >> Date: Mon, 26 May 2008 10:24:34 -0700 (PDT) >> Subject: [OpenLayers-Users] Problem with polar projection on Antartica >> >> Good evening >> >> In the framework of my project, I should be able to provide different >> projections for the same layer. It concerns mainly polar projections. >> >> I am now struggling for several hours trying to reproject a layer based >> on >> the antartic polar sterographic projection (EPSG:3031). >> Here some details on the projection : >> http://nsidc.org/data/atlas/epsg_3031.html >> and this is my code: >> >> var options = { >> projection: new OpenLayers.Projection("EPSG:3031"), >> units: 'meters', >> maxResolution: 'auto', >> maxExtent: new >> OpenLayers.Bounds(-12400000,-12400000,12400000,12400000) >> }; >> var map = new OpenLayers.Map('map', options); >> var basemap = new OpenLayers.Layer.WMS( "test", >> "http://193.43.36.238:8484/geoserver/wms?service=wms", >> {layers: 'fifao:CONTINEENT_GAUL'}); >> map.addLayer(basemap); >> map.zoomToMaxExtent(); >> >> I am using OL 2.6 but not proj4js, i don't know if it can impact. >> Anyway, i don't understand why it does not work so if someone could give >> me >> some directions or hints, i would be very grateful. >> >> Thanks in advance >> >> Sylvain >> -- >> View this message in context: >> http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17475860.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> > > -- > -------------------------------------------------------------- > Dr Jon Blower Tel: +44 118 378 5213 (direct line) > Technical Director Tel: +44 118 378 8741 (ESSC) > Reading e-Science Centre Fax: +44 118 378 6413 > ESSC Email: jdb@mail.nerc-essc.ac.uk > University of Reading > 3 Earley Gate > Reading RG6 6AL, UK > -------------------------------------------------------------- > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17486550.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From aparna0123 at gmail.com Tue May 27 06:28:21 2008 From: aparna0123 at gmail.com (Aparna Sriram) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Labs.metacarta down? Message-ID: <2bbc4860805270328m3425e637t9849467593cc1231@mail.gmail.com> Hi, I've been tinkering around with Open Layers for sometime now. Today I'm experiencing difficulty loading the map layer form metacarta. Is it down? Am I the only one or is it the same with everyone? Thanks Aparna -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/abf58d33/attachment.html From jdb at mail.nerc-essc.ac.uk Tue May 27 06:54:34 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with labs.metacarta.com WMS servers? Message-ID: <2bb6ee950805270354h697e078dtac786cdea3d03f68@mail.gmail.com> Hi all, I'm not getting any response from http://labs.metacarta.com, meaning that background maps have disappeared on most OL-powered websites. I think it's been like this for a couple of days. Is there a problem? Cheers, 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 robe.dnd at cityofboston.gov Tue May 27 07:12:50 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] WFS WMS Comparison queries Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086B3@ZDND.DND.boston.cob> I noticed there is a class called OpenLayers.Filter.Comparison which I thought was there for doing WFS/WMS LIKE, EQUAL_TO etc. attribute filters. Unfortunately I can't figure out how to use it against a WFS layers for that purpose or maybe it wasn't designed for that and only for applying styles. I couldn't find any examples of it. Except for the below http://www.nabble.com/rules-and-filters.-i%27m-confused-to17329314.html# a17343472 Which isn't quite what I needed it for. Any examples of it use or if I am totally of-base e.g. you can't use it for doing WFS filters would be helpful. Thanks, Regina ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From crschmidt at metacarta.com Tue May 27 07:50:11 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with labs.metacarta.com WMS servers? In-Reply-To: <2bb6ee950805270354h697e078dtac786cdea3d03f68@mail.gmail.com> References: <2bb6ee950805270354h697e078dtac786cdea3d03f68@mail.gmail.com> Message-ID: <20080527115011.GB19052@metacarta.com> On Tue, May 27, 2008 at 11:54:34AM +0100, Jon Blower wrote: > Hi all, > > I'm not getting any response from http://labs.metacarta.com, meaning > that background maps have disappeared on most OL-powered websites. I > think it's been like this for a couple of days. Is there a problem? Given that three emails were sent about it within an hour of each other, something tells me that if it had been down for a few days, Someone would have mentioned something earlier :) It's up again now. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue May 27 07:52:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] WFS WMS Comparison queries In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086B3@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086B3@ZDND.DND.boston.cob> Message-ID: <20080527115200.GC19052@metacarta.com> On Tue, May 27, 2008 at 07:12:50AM -0400, Obe, Regina wrote: > I noticed there is a class called > > OpenLayers.Filter.Comparison which I thought was there for doing WFS/WMS > LIKE, EQUAL_TO etc. attribute filters. > > Unfortunately I can't figure out how to use it against a WFS layers for > that purpose or maybe it wasn't designed for that and only for applying > styles. I couldn't find any examples of it. Currently, OpenLayers does not support making WFS Filter requests to WFS filters via the WFS layer. There is ongoing work in this department, in the 'vector-behavior' sandbox, being worked on by both TOPP and camptocamp, as I understand it, which is targeted for inclusion in 2.7. Regards, -- Christopher Schmidt MetaCarta From carl.r.morgan at noaa.gov Tue May 27 07:59:18 2008 From: carl.r.morgan at noaa.gov (Carl Morgan) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? Message-ID: <483BF796.5030400@noaa.gov> Since there have been no replies as of yet, I thought I'd throw this back out there. Anybody have any insight on how I can redraw the text layer? At this point, I have to load up the text file in the browser and manually reload it. Thanks for any advice! -Carl -------------- next part -------------- An embedded message was scrubbed... From: Carl Morgan Subject: [OpenLayers-Users] redraw or refresh a text layer? Date: Thu, 22 May 2008 15:00:45 -0400 Size: 3486 Url: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/e3a7d008/OpenLayers-Usersredraworrefreshatextlayer.eml From robe.dnd at cityofboston.gov Tue May 27 08:08:55 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <483BF796.5030400@noaa.gov> References: <483BF796.5030400@noaa.gov> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> Carl, Haven't worked with text layers in a while Have you tried tagging a random field on top of your layer with mylayer.mergeNewParams({rand: Math.random()}) or doing a redraw mylayer.redraw(true) or both. I think the redraw was introduced in 2.6 or was it 2.5 Hope that helps, Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Carl Morgan Sent: Tuesday, May 27, 2008 7:59 AM To: users@openlayers.org Subject: Re: [OpenLayers-Users] redraw or refresh a text layer? Since there have been no replies as of yet, I thought I'd throw this back out there. Anybody have any insight on how I can redraw the text layer? At this point, I have to load up the text file in the browser and manually reload it. Thanks for any advice! -Carl ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From jdb at mail.nerc-essc.ac.uk Tue May 27 08:42:21 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer Message-ID: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> Hi, I have an OL2.6 application that uses base layers in different map projections. The map is initially constructed with a base layer in lat-lon (EPSG:4326). If I change the base layer to a layer in polar stereographic projection (EPSG:32661) the map loads a whole load (up to 40) of spurious tiles. This effect can be seen by loading the attached example web page and using Firebug (or similar) to examine the outgoing GetMap requests. The spurious tiles have a bounding box that is inappropriate for the current zoom level and map extent (this shows up clearly because the extents for 4326 and 32661 are very different in their native units). Registering an event listener for changebaselayer does not help: it seems that the spurious tiles are loaded anyway. Cheers, 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 -------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/f8977b07/testProj.html From chander at otg-nc.com Tue May 27 08:49:29 2008 From: chander at otg-nc.com (Chander Ganesan) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] externalGraphic rotation in a vector layer In-Reply-To: <4837BD2B.6090901@gmail.com> References: <483735AF.3050609@gmail.com> <4837BD2B.6090901@gmail.com> Message-ID: <483C0359.40201@otg-nc.com> Andreas Hocevar wrote: > your code does not seem correct. At the time you request the extent, > there is no extent yet. And you do not add the feature to the layer. > The following code works for me (tested on FF2, IE6, IE7, Opera9 and > Safari3 with both png and gif images): Thanks! I had copied the code below from a much larger script, and apparently copied the order of different components wrong (hence the errors you noticed). It turns out, I had applied the patch against the 2.6 release, and not against trunk. As a result it didn't work. Once I reapplied against trunk it worked like a charm... I'm actually wondering if my little demo might be a good thing for the gallery... It's here: http://www.otg-nc.com/csc/index1.html -- This one draws planes and "moves" them over time across the base layer. This requires the patch... And another one that might be a good demo is: http://www.otg-nc.com/csc/index.html -- This one takes 5,10,15,20,25,30,35,40, and 45 minute NEXRAD weather imagery (over the US) and cycles through the layers to give the impression of a "moving weather" map. This works with OL 2.6 . However, I have two ongoing issues that I cannot figure out: 1. When "switching" the NEXRAD layers, the image appears to "blink". When I use the CIA factbook base layer, this behavior seems to disappear. Note, when I switch layers I enable the new layer, then disable the old layer (not vice-versa). 2. On the http://www.otg-nc.com/csc/index1.html example, if you click on a plane you'll see some feature information displayed in a popup. However, in some cases, you'll notice the angle of the plane gets messed up until its redrawn. Any ideas on how to fix these? Kudos to you on the patch Andreas! thanks chander > Hey, > > map = new OpenLayers.Map('map'); > var ol_wms = new OpenLayers.Layer.WMS( "Metacarta Basic Layer", > > "http://labs.metacarta.com/wms/vmap0", > {layers: 'basic'} ); > ol_wms.maxExtent = new OpenLayers.Bounds(-125, 17.84, -59, 52.55); > ol_wms.displayOutsideMaxExtent = true; > var planes=new OpenLayers.Layer.Vector("Planes", > { > styleMap: new OpenLayers.StyleMap({ > "default": { > externalGraphic: "../img/marker.png", > graphicWidth: 24, > graphicHeight: 28, > graphicYOffset: 0, > rotation: "${angle}", > fillOpacity: "${opacity}" > } > }) > }); > > map.addLayers([ ol_wms , planes ]); > map.zoomToMaxExtent(); > > var extent = planes.map.getExtent(); > var yspan = extent.getHeight(); > var xspan = extent.getWidth(); > var x = extent.left + xspan * Math.random(); > var y = extent.top - yspan * Math.random(); > var planeangle = Math.floor(Math.random() * 360); > var feature=new OpenLayers.Feature.Vector( > new OpenLayers.Geometry.Point(x, y), { > "angle": planeangle, > opacity: 100 > }); > planes.addFeatures([feature]); > > > Regards, > Andreas. > > Chander Ganesan wrote: >> Hi, >> >> Give some advice by crschmidt on #openlayers, I tried to apply the >> patch specified in ticket #1433 to my installation of OpenLayer, and >> then tried to create a point with an externalGraphic and rotation >> angle. Unfortunately, this doesn't seem to work. Here's the code >> that I used: >> >> map = new OpenLayers.Map('map'); >> var ol_wms = new OpenLayers.Layer.WMS( "Metacarta Basic Layer", >> >> "http://labs.metacarta.com/wms/vmap0", >> {layers: 'basic'} ); >> ol_wms.maxExtent = new OpenLayers.Bounds(-125, 17.84, -59, 52.55); >> ol_wms.displayOutsideMaxExtent = true; >> var planes=new OpenLayers.Layer.Vector("Planes", >> { >> styleMap: new OpenLayers.StyleMap({ >> "default": { >> externalGraphic: "airplane.gif", >> graphicWidth: 24, >> graphicHeight: 28, >> graphicYOffset: 0, >> rotation: "${angle}", >> fillOpacity: "${opacity}" >> } >> }) >> }); >> >> var extent = planes.map.getExtent(); >> var yspan = extent.getHeight(); >> var xspan = extent.getWidth(); >> var x = extent.left + xspan * Math.random(); >> var y = extent.top - yspan * Math.random(); >> var planeangle = Math.floor(Math.random() * 360); >> var feature=new OpenLayers.Feature.Vector( new >> OpenLayers.Geometry.Point(x, y), {"angle": planeangle, >> >> opacity: 100 }); >> map.addLayers([ ol_wms , planes ]); >> map.zoomToMaxExtent(); >> >> >> This code causes the layer to draw with the US map underneath, and >> the plane image to appear on the layer, but the image is not >> rotated. Any ideas/thoughts? >> >> thanks >> >> chander >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > -- Chander Ganesan Open Technology Group, Inc. One Copley Parkway, Suite 210 Morrisville, NC 27560 919-463-0999/877-258-8987 http://www.otg-nc.com From carl.r.morgan at noaa.gov Tue May 27 10:14:20 2008 From: carl.r.morgan at noaa.gov (Carl Morgan) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> References: <483BF796.5030400@noaa.gov> <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> Message-ID: <483C173C.7010400@noaa.gov> Regina, I got the following function to redraw the layer. Not sure I understand why this works, but it does. I call it immediately after I call my init function. I appreciate your help! -Carl function refresh_markers() { reports.redraw(true); map.removeLayer(reports); reports.destroy(); reports = new OpenLayers.Layer.Text( "New Rep", {location: "./" + textfile + "?" + Math.random()}); map.addLayer(reports); } Obe, Regina wrote: > Carl, > Haven't worked with text layers in a while > > Have you tried tagging a random field on top of your layer with > mylayer.mergeNewParams({rand: Math.random()}) > > > or doing a redraw > > > mylayer.redraw(true) > > > > > or both. > > I think the redraw was introduced in 2.6 or was it 2.5 > > Hope that helps, > Regina > > > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > On Behalf Of Carl Morgan > Sent: Tuesday, May 27, 2008 7:59 AM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] redraw or refresh a text layer? > > Since there have been no replies as of yet, I thought I'd throw this > back out there. Anybody have any insight on how I can redraw the text > layer? At this point, I have to load up the text file in the browser and > > manually reload it. Thanks for any advice! > > -Carl > ----------------------------------------- > The substance of this message, including any attachments, may be > confidential, legally privileged and/or exempt from disclosure > pursuant to Massachusetts law. It is intended > solely for the addressee. If you received this in error, please > contact the sender and delete the material from any computer. > > From per-erik.modig at itmedia.se Tue May 27 10:34:06 2008 From: per-erik.modig at itmedia.se (giris68) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Link to proj4js def-files is not correct Message-ID: <17491844.post@talk.nabble.com> I making an website at with the homeadress: www.myserver.com/maps/index.php My include of definition file and link to proj4js looks like: where lib is an subdirectory to maps. When proj4js is looking for the definitions it will look for them at www.myserver.com/lib/defs/EPSG900913.js www.myserver.com/lib/defs/EPSG4124.js Why is the directory maps missing? -- View this message in context: http://www.nabble.com/Link-to-proj4js-def-files-is-not-correct-tp17491844p17491844.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From chander.ganesan at gmail.com Tue May 27 10:55:02 2008 From: chander.ganesan at gmail.com (Chander Ganesan) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Reprojection Example Message-ID: <483C20C6.8010204@gmail.com> Is there an example anywhere of taking google maps and re projecting it to something else (like EPSG:4269) ? I tried this once before and couldn't get reprojection to work, and ended up just modifying my MapServer WMS service to support EPSG:900913 . If I have 6 map services that are all EPSG:4269, and want to overlay on a google maps base layer, it seems like it would be better to reproject the google maps layer than to reproject all 6 other layers...right? thanks chander From woodbri at swoodbridge.com Tue May 27 12:24:37 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> Message-ID: <483C35C5.4020605@swoodbridge.com> Eric Lemoine wrote: > On Tue, May 27, 2008 at 2:58 AM, Stephen Woodbridge > wrote: >> To reproduce: >> >> enter an address like: 11 radcliffe rd, n chelmsford, ma 01863 >> click Go >> Click on the Red Marker you will get an aqua marker where you click, >> click on the close button and you will get another aqua marker. > > This is weird. I don't know what's going on at this point. Note > however that I didn't get the aqua marker when clicking on the popup > close box. Could you share your code? In particular, I'm thinking > about the registration of the marker click listener. > > Cheers, > -- > Eric Hi Eric, All the client side code is in the html page at http://imaptools.com/maps2/tiger.html It is probably easiest to setup a proxy to my server requests if you need that. This feels like a corner case bug, but hey, I'm still sorting my way through using OpenLayers so I would not put it past a misunderstanding or stupid error on my part. Thanks, -Steve From woodbri at swoodbridge.com Tue May 27 12:28:37 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <3ED1EE0EC4A84843BB55FE363DEE04D5@kusum> References: <483B51AC.7040600@swoodbridge.com><20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> <3ED1EE0EC4A84843BB55FE363DEE04D5@kusum> Message-ID: <483C36B5.3030807@swoodbridge.com> Kusum wrote: > why don't u use hover event to see popup on marker instead of using click. That might be useful eventually, but it can be very annoying also if the hover time is too small and windows popup as you are trying to do something else. Anyway, its a good thought and I will keep it in mind, but right now I just want to understand what is happening with the current code, especially if I have a misunderstanding on how to use it or if I have found a bug. Thanks, -Steve > -------------------------------------------------- > From: "Stephen Woodbridge" > Sent: Tuesday, May 27, 2008 6:28 AM > To: "Christopher Schmidt" > Cc: "openlayers user list" > Subject: Re: [OpenLayers-Users] Help dealing with popup clicks verse > click handlers > >> Christopher Schmidt wrote: >>> On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote: >>>> Hi all, >>>> >>>> I have a marker layer that which is working great. I just added a click >>>> handler that reverse geocodes on a click and adds a marker at the click >>>> point and populates the popup with the XML response. This is all >>>> working great EXCEPT that when I click on the icons to open or close a >>>> popup, that click is propagating to the click handler causing another >>>> marker to be added. >>>> >>>> How to I control or stop this? >>> >>> Return false or OpenLayers.Event.stop(evt); inside your marker click >>> handler. (I can't remember which it is; one of them should do it, I >>> don't know which.) >>> >>> Regards, >> >> Thanks, >> >> I was already calling OpenLayers.Event.stop(evt); and added return false >> for good measure, but without success. >> >> I just found another symptom that might be relevant, which is that this >> behavior only happens UNTIL I do a click drag on the map, then it >> behaves as expected. Opening a popup that causes a pan does not fix the >> problem. >> >> Sorry I meant to post the url in the last message: >> >> http://imaptools.com/maps2/tiger.html >> >> To reproduce: >> >> enter an address like: 11 radcliffe rd, n chelmsford, ma 01863 >> click Go >> Click on the Red Marker you will get an aqua marker where you click, >> click on the close button and you will get another aqua marker. >> >> Now, reload the page and repeat, BUT after you click Go, do a click drag >> first and then will not get the extra markers. >> >> -Steve >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > > From woodbri at swoodbridge.com Tue May 27 12:41:17 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Smooth Roads Problem In-Reply-To: <5FA34D1B5B8B487EB736A850BB4022C8@kusum> References: <5FA34D1B5B8B487EB736A850BB4022C8@kusum> Message-ID: <483C39AD.4070707@swoodbridge.com> Kusum, I think this is probably a question you should be asking on the mapserver-users list and not on Openlayers. You ahould probably also read http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics if you want good antialiased lines. -Steve W Kusum wrote: > > > Hii All > > This problem may not be intended for this list > but I am new to mapserver , so pls help. > I was getting broken kind of roads as in 1st picture below > To give it a smoother look I added antialias true to the style of roads > using imagetype png24 > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > EXTENSION "png" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT OFF > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > The roads looked smoother but the colors of roads changed as in > picture below > Antialias false > > antialias true > > Please suggest something to resolve this. > Thanks in Advance > > Regards > Kusum > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From SnapeM at rpsgroup.com Tue May 27 12:09:19 2008 From: SnapeM at rpsgroup.com (Matthew Snape) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] popup in IE Message-ID: <605F55D8070C094AA2E2A9CBA2767A3C965C39@EXMB1.eur.rpsgroup.com> Skipped content of type multipart/alternative-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/e01ceabe/iecheck.html From crschmidt at metacarta.com Tue May 27 12:13:23 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Reprojection Example In-Reply-To: <483C20C6.8010204@gmail.com> References: <483C20C6.8010204@gmail.com> Message-ID: <20080527161322.GA22898@metacarta.com> On Tue, May 27, 2008 at 10:55:02AM -0400, Chander Ganesan wrote: > Is there an example anywhere of taking google maps and re projecting it > to something else (like EPSG:4269) ? I tried this once before and > couldn't get reprojection to work, and ended up just modifying my > MapServer WMS service to support EPSG:900913 . > > If I have 6 map services that are all EPSG:4269, and want to overlay on > a google maps base layer, it seems like it would be better to reproject > the google maps layer than to reproject all 6 other layers...right? Short answer: No. Long answer: The typical response to this, in my mind is: http://sc.tri-bit.com/images/2/23/pony.jpg """ No you can't have a pony. Not Yours. """ Specifically: * Google produces Google tiles: you're not allowed to use them outside the Google API. * The Google API does not provide the ability to display the Google tiles in any other projection. * OpenLayers can't reproject images at all: there is no way to use image data in two different projections and have them match up in OpenLayers. So, your data will need to be in the same projection as Google's to use them together. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Tue May 27 12:30:02 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <483C35C5.4020605@swoodbridge.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> <483C35C5.4020605@swoodbridge.com> Message-ID: <5ec103de0805270930l6e9ccb80s5b9e3200f9e74be2@mail.gmail.com> Hi Stephen Of interest: with the attached patch to markers.html, I cannot reproduce your problem. -- Eric -------------- next part -------------- A non-text attachment was scrubbed... Name: markers-example.patch Type: text/x-diff Size: 874 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/93f2c3f9/markers-example.bin From arnd.wippermann at web.de Tue May 27 13:49:46 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? In-Reply-To: Message-ID: Thanks Oscar, That's right. I will update my code Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: oscar.fonts.lists@gmail.com [mailto:oscar.fonts.lists@gmail.com] Gesendet: Dienstag, 27. Mai 2008 08:53 An: Tim Schaub Cc: Arnd Wippermann; users@openlayers.org Betreff: Re: [OpenLayers-Users] Is it possible to delete a point using theModifyFeature control? 2008/5/19 Tim Schaub : Arnd Wippermann wrote: > I would appreciate, if the Control.ModifyFeature would enhanced to delete > features. This was originally the intent. Chris suggested it would be too easy to delete a feature accidentally when you were trying to hover over a vertex. Providing an option on the control seems like a sensible solution. You could show a confirm dialog: handleKeypress: function(code) { // check for delete key if(this.feature && OpenLayers.Util.indexOf(this.deleteCodes, code) != -1) { var vertex = this.dragControl.feature; if(vertex && [..]) { // ... } else { // Not over a vertex if(confirm("Do you want to delete the selected feature?")){ var f = this.feature; this.unselectFeature(this); this.layer.removeFeatures([f]); } } } }, Oscar. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080527/f0f4f681/attachment.html From springrider at hotmail.com Tue May 27 14:54:55 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] application/openlayers from GeoServer VS OpenLayers JS code In-Reply-To: <20080523150903.GB31771@metacarta.com> References: <17426479.post@talk.nabble.com> <20080523150903.GB31771@metacarta.com> Message-ID: <17497530.post@talk.nabble.com> Good evening Our server administrator has installed tileCache. I is not completely optimized according to this document (http://geoserver.org/display/GEOSDOC/TileCache+Tutorial) but it seems effectively that the display is quicker. Nevertheless, by zooming between Africa and South america, i obtain again the edges discrepancies: http://193.43.36.238:8484/cache/tilecache-2.03/. I tried to use the SingleTile option and it seems that it can not work with TileCache. Moreover, when i zoom in, at a certain level of zoom, i obtain a nice pink tile ... Do i need to set up some parameters in TileCache to solve this 2 issues? Thanks for you help again Sylvain Christopher Schmidt-4 wrote: > > On Fri, May 23, 2008 at 07:51:53AM -0700, Brent Pedersen wrote: >> hi, your geoserver map is generating 1 big image, so there are no >> rendering issues at the edges of images. that's also why it's faster. >> your other map is generating tiles. so you're seeing the edge effects. >> you can get rid of hte edge effects, and improve the speed by using >> tilecache. > > And you can change your custom map to behave like GeoServer by adding a > "'singleTile': true" option on the layer. (Not parameter!) > > -- Chris > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/application-openlayers-from-GeoServer-VS-OpenLayers-JS-code-tp17426479p17497530.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mtd at bom.gov.au Wed May 28 03:43:01 2008 From: mtd at bom.gov.au (Matthew Doyle) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Customising the OL interface Message-ID: <17506906.post@talk.nabble.com> Hi OL users, We have designed a new set of icons to replace the basic set in the OpenLayers theme and now wish to redesign some of the aspects on where these should be and how they should work. I assumed this to be an easy process which is completely controlled via CSS, but have spent the day scratching my head at how some aspects of the interface is driven. Simply replacing a few images with the new icons does work for the current interface, but we wish to change the position of, say, the top left panning buttons and change the size of the increase zoom 'plus' button. It doesn't seem immediately obvious how to do this, and looks as though some on-the-fly processing of icons is done through the JS via element.style="..." I'm sure there have been many others who have already been through this process, so i am ask you, is there any FAQ or "how to" on customising the OpenLayers interface? I apologise if this is an easy one, but trawling through the style.css didn't define some aspects i thought it would. Many thanks in advance, Matt -- View this message in context: http://www.nabble.com/Customising-the-OL-interface-tp17506906p17506906.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smithlev at levii.com Wed May 28 06:54:18 2008 From: smithlev at levii.com (Levii Smith) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Draw Feature from Form field Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080528/b4e4ab16/attachment.html From wolfsnipes at gmail.com Wed May 28 12:12:10 2008 From: wolfsnipes at gmail.com (Wes Toews) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] sld_body with WMS Message-ID: <7d76f9330805280912l6cfb762cx78eb6dba402ccbac@mail.gmail.com> hi, I need to implement dynamic map colouring client-side with javascript with sld_body in the layer declaration. The concept is that different polygons can be highlighted (well, shaded red or something) based on input from a dropdown list or form or something. I'm using OpenLayers with Geoserver 1.6.1. what I have so far is.. var mysld = '...xml stuff here...'; var myLayer = new OpenLayers.Layer.WMS("MyLayer", "/geoserver/wms", { height: '362', width: '800', layers: 'trsiLayers', sld_body: mysld, srs: 'EPSG:4326', format: 'image/png' }, {singleTile: true} ); after this, I get a blank map with no complaints from IE. The SLD itself should be fine as it's tested in Geoserver and works fine, it's just when I write it in the web page that it doesn't render a map. If the sld_body is commented out everything shows up. And please don't point me to any existing posts unless you KNOW it is a good one. thanks, Daniel From lee_keel at trimble.com Wed May 28 12:22:04 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Authentication Error Message-ID: <944DCD961F4CD649BCEBB52E3C929F65020808C8@usd-am-xch-01.am.trimblecorp.net> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 145 bytes Desc: Blank Bkgrd.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080528/2337313c/attachment.gif From bartvde at osgis.nl Wed May 28 12:55:10 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] NL: open source GIS event with OpenLayers workshop Message-ID: <483D8E6E.5020605@osgis.nl> Hi list, a small announcement for the OpenLayers people in The Netherlands, 17 june 2008 there is a full-day open source GIS event in Delft with a workshop about OpenLayers, for more info see: http://www.osgeo.nl/ Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From eric.c2c at gmail.com Wed May 28 15:51:35 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> References: <483BF796.5030400@noaa.gov> <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> Message-ID: <5ec103de0805281251r3e6f505bm3f64f0e84f7d75ee@mail.gmail.com> On Tue, May 27, 2008 at 2:08 PM, Obe, Regina wrote: > Carl, > Haven't worked with text layers in a while > > Have you tried tagging a random field on top of your layer with > mylayer.mergeNewParams({rand: Math.random()}) > > > or doing a redraw > > > mylayer.redraw(true) Neither mergeNewParams() nor redraw(true) will work as Text layers aren't HTTPRequest layers. -- Eric From eric.c2c at gmail.com Wed May 28 15:55:01 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <483C173C.7010400@noaa.gov> References: <483BF796.5030400@noaa.gov> <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> <483C173C.7010400@noaa.gov> Message-ID: <5ec103de0805281255m3a3864b3u7167dc040f8e920b@mail.gmail.com> On Tue, May 27, 2008 at 4:14 PM, Carl Morgan wrote: > Regina, > > I got the following function to redraw the layer. Not sure I understand > why this works, but it does. I call it immediately after I call my init > function. I appreciate your help! > > -Carl > > function refresh_markers() { > > reports.redraw(true); > map.removeLayer(reports); > reports.destroy(); > reports = new OpenLayers.Layer.Text( "New Rep", {location: > "./" + textfile + "?" + Math.random()}); > map.addLayer(reports); > } Are you saying that it doesn't work without the random() call? If the web server serving the text file is yours you should probably configure it to prevent browsers from caching that text file. To me this isn't a problem on the OpenLayers side. -- Eric From wolfsnipes at gmail.com Wed May 28 15:55:20 2008 From: wolfsnipes at gmail.com (wolfsnipes) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] sld_body with WMS In-Reply-To: <7d76f9330805280912l6cfb762cx78eb6dba402ccbac@mail.gmail.com> References: <7d76f9330805280912l6cfb762cx78eb6dba402ccbac@mail.gmail.com> Message-ID: <17520740.post@talk.nabble.com> Actually I solved it after looking closer at the SLD specification - the tag in the SLD has to specify the layer to query. duh. -w wolfsnipes wrote: > > hi, I need to implement dynamic map colouring client-side with > javascript with sld_body in the layer declaration. The concept is > that different polygons can be highlighted (well, shaded red or > something) based on input from a dropdown list or form or something. > I'm using OpenLayers with Geoserver 1.6.1. > > what I have so far is.. > > var mysld = '...xml stuff > here...'; > > var myLayer = new OpenLayers.Layer.WMS("MyLayer", "/geoserver/wms", > { > height: '362', > width: '800', > layers: 'trsiLayers', > sld_body: mysld, > srs: 'EPSG:4326', > format: 'image/png' > }, > {singleTile: true} > ); > > after this, I get a blank map with no complaints from IE. The SLD > itself should be fine as it's tested in Geoserver and works fine, it's > just when I write it in the web page that it doesn't render a map. If > the sld_body is commented out everything shows up. And please don't > point me to any existing posts unless you KNOW it is a good one. > > thanks, > > Daniel > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/sld_body-with-WMS-tp17516355p17520740.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Wed May 28 16:06:40 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer In-Reply-To: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> References: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> Message-ID: <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> On Tue, May 27, 2008 at 2:42 PM, Jon Blower wrote: > Hi, > > I have an OL2.6 application that uses base layers in different map > projections. The map is initially constructed with a base layer in > lat-lon (EPSG:4326). If I change the base layer to a layer in polar > stereographic projection (EPSG:32661) the map loads a whole load (up > to 40) of spurious tiles. This effect can be seen by loading the > attached example web page and using Firebug (or similar) to examine > the outgoing GetMap requests. The spurious tiles have a bounding box > that is inappropriate for the current zoom level and map extent (this > shows up clearly because the extents for 4326 and 32661 are very > different in their native units). > > Registering an event listener for changebaselayer does not help: it > seems that the spurious tiles are loaded anyway. Based on http://spatialreference.org/ref/epsg/32661/ the bounds for 32661 are -180.0 60.0 180.0 90.0 so I don't understand the values you're using. (That might not explain the spurious tiles you're seeing though) -- Eric From eric.c2c at gmail.com Wed May 28 16:10:05 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer In-Reply-To: <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> References: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> Message-ID: <5ec103de0805281310l50adb083v5f66c9647bfb68f7@mail.gmail.com> On Wed, May 28, 2008 at 10:06 PM, Eric Lemoine wrote: > On Tue, May 27, 2008 at 2:42 PM, Jon Blower wrote: >> Hi, >> >> I have an OL2.6 application that uses base layers in different map >> projections. The map is initially constructed with a base layer in >> lat-lon (EPSG:4326). If I change the base layer to a layer in polar >> stereographic projection (EPSG:32661) the map loads a whole load (up >> to 40) of spurious tiles. This effect can be seen by loading the >> attached example web page and using Firebug (or similar) to examine >> the outgoing GetMap requests. The spurious tiles have a bounding box >> that is inappropriate for the current zoom level and map extent (this >> shows up clearly because the extents for 4326 and 32661 are very >> different in their native units). >> >> Registering an event listener for changebaselayer does not help: it >> seems that the spurious tiles are loaded anyway. > > Based on http://spatialreference.org/ref/epsg/32661/ the bounds for > 32661 are -180.0 60.0 180.0 90.0 so I don't understand the values > you're using. (That might not explain the spurious tiles you're seeing > though) http://nsidc.org/data/atlas/epsg_32661.html gives differing information so I'm confused. -- Eric From eric.c2c at gmail.com Wed May 28 16:14:30 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica In-Reply-To: <17486550.post@talk.nabble.com> References: <17475860.post@talk.nabble.com> <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> <17486550.post@talk.nabble.com> Message-ID: <5ec103de0805281314sd428186h5173b8731ddd327c@mail.gmail.com> On Tue, May 27, 2008 at 11:29 AM, springrider wrote: > > Thanks Jon for your reply > > Sorry I was not really explicit about the result i had. > > This is the request which is sent to my Geoserver: > GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL > &SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES= > &EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg > &BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332 > &WIDTH=256&HEIGHT=256 Do you think the rounding errors are the cause of your problem? > So the SRS to be used is correct (3031) but what is sent for the bounding > box seems to be wrong in respect to what i have specified... > > As you were suggesting in one of your previous post, could it be related to > ZoomToMaxExtent? > > I tried to add the projection also for the baselayer but with no results: > var basemap = new OpenLayers.Layer.WMS( "test", > "http://193.43.36.238:8484/geoserver/wms?version=1.1.1", > {layers: 'fifao:CONTINEENT_GAUL', > srs: 'EPSG:3031'}); > basemap.addOptions({isBaseLayer: true}); You have only one base layer so no need to set things at the layer level, map level is fine. -- Eric From crschmidt at metacarta.com Wed May 28 16:46:29 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer In-Reply-To: <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> References: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> Message-ID: <20080528204628.GC12361@metacarta.com> On Wed, May 28, 2008 at 10:06:40PM +0200, Eric Lemoine wrote: > On Tue, May 27, 2008 at 2:42 PM, Jon Blower wrote: > > Hi, > > > > I have an OL2.6 application that uses base layers in different map > > projections. The map is initially constructed with a base layer in > > lat-lon (EPSG:4326). If I change the base layer to a layer in polar > > stereographic projection (EPSG:32661) the map loads a whole load (up > > to 40) of spurious tiles. This effect can be seen by loading the > > attached example web page and using Firebug (or similar) to examine > > the outgoing GetMap requests. The spurious tiles have a bounding box > > that is inappropriate for the current zoom level and map extent (this > > shows up clearly because the extents for 4326 and 32661 are very > > different in their native units). > > > > Registering an event listener for changebaselayer does not help: it > > seems that the spurious tiles are loaded anyway. > > Based on http://spatialreference.org/ref/epsg/32661/ the bounds for > 32661 are -180.0 60.0 180.0 90.0 so I don't understand the values > you're using. (That might not explain the spurious tiles you're seeing > though) Those extents are in degrees, not projected units. Regards, -- Christopher Schmidt MetaCarta From jdb at mail.nerc-essc.ac.uk Wed May 28 16:54:23 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer In-Reply-To: <20080528204628.GC12361@metacarta.com> References: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> <20080528204628.GC12361@metacarta.com> Message-ID: <2bb6ee950805281354t17e2e095h7f1e1bb4009d214@mail.gmail.com> > Those extents are in degrees, not projected units. That's right. The extent of -180,60,180,90 is just an approximation (and not a very good one) in lat-lon. The extent in the units of the projection (metres, notionally) is -10700000, -10700000, 14700000, 14700000. So I think I'm doing the right thing. Regarding the spurious tiles it seems to be that a load of new tiles get loaded before the maximum extent of the layer can be changed. Presumably the bounding boxes of the tiles need to be recalculated as soon as the projection changes and before any new tiles are loaded. Cheers, Jon On Wed, May 28, 2008 at 9:46 PM, Christopher Schmidt wrote: > On Wed, May 28, 2008 at 10:06:40PM +0200, Eric Lemoine wrote: >> On Tue, May 27, 2008 at 2:42 PM, Jon Blower wrote: >> > Hi, >> > >> > I have an OL2.6 application that uses base layers in different map >> > projections. The map is initially constructed with a base layer in >> > lat-lon (EPSG:4326). If I change the base layer to a layer in polar >> > stereographic projection (EPSG:32661) the map loads a whole load (up >> > to 40) of spurious tiles. This effect can be seen by loading the >> > attached example web page and using Firebug (or similar) to examine >> > the outgoing GetMap requests. The spurious tiles have a bounding box >> > that is inappropriate for the current zoom level and map extent (this >> > shows up clearly because the extents for 4326 and 32661 are very >> > different in their native units). >> > >> > Registering an event listener for changebaselayer does not help: it >> > seems that the spurious tiles are loaded anyway. >> >> Based on http://spatialreference.org/ref/epsg/32661/ the bounds for >> 32661 are -180.0 60.0 180.0 90.0 so I don't understand the values >> you're using. (That might not explain the spurious tiles you're seeing >> though) > > Those extents are in degrees, not projected units. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From wendell at enflight.com Wed May 28 18:51:48 2008 From: wendell at enflight.com (Wendell Turner) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] select multiple layers? Message-ID: <20080528225148.GA14087@q.rho.net> In an environment where multiple layers have objects that are selectable, how do they get un-selected? That is, in this function: function onPopupClose(evt) { selectControl.unselect(selectedFeature); } how does it know which selectControl item was used for the popup? Does the evt object have a reference to the selectControl? Or does the function onFeatureSelect(feature) need to save that value? Does the feature object have a reference to a layer or selectControl? Or can one selectControl span multiple layers? Thanks, Wendell From brad at cubewerx.com.au Wed May 28 20:13:31 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer Message-ID: I have been able to produce a markers layer with FramedCloud popups quite nicely. However, when I then overlay another layer such as colour filled polygons as a WMS overlay it overplots the markers making the popup event not fire. I have set the polygon overlay's z-index to be lower than the Markers layer with the map.setLayerZIndex method but this does not seem to work on the Markers layer. Is there another way to always have the Markers Layer higher than any other layer independent of the order in which they create either markers or overlays? Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080529/62401a64/attachment.html From brad at cubewerx.com.au Wed May 28 20:52:31 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer In-Reply-To: Message-ID: Well, I fixed one problem. I was not using the map.setLayerZIndex on the appropriate markers layer. However, now my FramedCloud is now lower than the markers and the overlayed layer. Is there anyway to control the zIndex of the FramedCloud? Cheers, Brad Spencer -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org]On Behalf Of bradleyspencer Sent: Thursday, 29 May 2008 10:14 AM To: openlayers users Subject: [OpenLayers-Users] Z-Index of Markers Layer I have been able to produce a markers layer with FramedCloud popups quite nicely. However, when I then overlay another layer such as colour filled polygons as a WMS overlay it overplots the markers making the popup event not fire. I have set the polygon overlay's z-index to be lower than the Markers layer with the map.setLayerZIndex method but this does not seem to work on the Markers layer. Is there another way to always have the Markers Layer higher than any other layer independent of the order in which they create either markers or overlays? Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080529/874d8d97/attachment.html From woodbri at swoodbridge.com Wed May 28 22:09:50 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <5ec103de0805270930l6e9ccb80s5b9e3200f9e74be2@mail.gmail.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> <483C35C5.4020605@swoodbridge.com> <5ec103de0805270930l6e9ccb80s5b9e3200f9e74be2@mail.gmail.com> Message-ID: <483E106E.8090608@swoodbridge.com> Eric Lemoine wrote: > Hi Stephen > > Of interest: with the attached patch to markers.html, I cannot > reproduce your problem. > > -- > Eric > Eric, I finally got around to trying out your suggested change. This code is much more compact than what I had scraped out of the other examples, thank you. I was still able to reproduce the problem as long as I did the click.activate(); BEFORE map.setCenter(...); call. Once I moved the click.activate() after that it started behaving as expected. I have no clue why/how this changes the behavior, but manually panning the map or the setCenter() call seems to change/fix the click events of the zlevel or something. Thank you so much for your assistance, I hope this report helps. -Steve From woodbri at swoodbridge.com Wed May 28 22:11:01 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Help dealing with popup clicks verse click handlers In-Reply-To: <5ec103de0805270930l6e9ccb80s5b9e3200f9e74be2@mail.gmail.com> References: <483B51AC.7040600@swoodbridge.com> <20080526231756.GA7443@metacarta.com> <483B5CC5.2020904@swoodbridge.com> <5ec103de0805262257v232357act85430233c37f084d@mail.gmail.com> <483C35C5.4020605@swoodbridge.com> <5ec103de0805270930l6e9ccb80s5b9e3200f9e74be2@mail.gmail.com> Message-ID: <483E10B5.7050304@swoodbridge.com> Eric Lemoine wrote: > Hi Stephen > > Of interest: with the attached patch to markers.html, I cannot > reproduce your problem. > > -- > Eric > The new working code is here: http://imaptools.com/maps2/tiger.html -Steve From eric.c2c at gmail.com Thu May 29 00:53:32 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Lots of spurious tiles get loaded when changing base layer In-Reply-To: <2bb6ee950805281354t17e2e095h7f1e1bb4009d214@mail.gmail.com> References: <2bb6ee950805270542wcd0da46yd100caa959b1c67e@mail.gmail.com> <5ec103de0805281306p24af1cadj39909c281ed09f77@mail.gmail.com> <20080528204628.GC12361@metacarta.com> <2bb6ee950805281354t17e2e095h7f1e1bb4009d214@mail.gmail.com> Message-ID: <5ec103de0805282153l4d45e9a8r832ef4910a7f2b1f@mail.gmail.com> On Wed, May 28, 2008 at 10:54 PM, Jon Blower wrote: >> Those extents are in degrees, not projected units. > That's right. The extent of -180,60,180,90 is just an approximation > (and not a very good one) in lat-lon. The extent in the units of the > projection (metres, notionally) is -10700000, -10700000, 14700000, > 14700000. So I think I'm doing the right thing. > > Regarding the spurious tiles it seems to be that a load of new tiles > get loaded before the maximum extent of the layer can be changed. > Presumably the bounding boxes of the tiles need to be recalculated as > soon as the projection changes and before any new tiles are loaded. I think this is an OL bug and therefore deserves a ticket. Jon, would you mind filing one out? Thanks, -- Eric From eric.c2c at gmail.com Thu May 29 02:29:31 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer In-Reply-To: References: Message-ID: <5ec103de0805282329i46ad24bbu4738c5119ad5c7d@mail.gmail.com> On Thu, May 29, 2008 at 2:52 AM, bradleyspencer wrote: > Well, I fixed one problem. I was not using the map.setLayerZIndex on the > appropriate markers layer. > > However, now my FramedCloud is now lower than the markers and the overlayed > layer. Is there anyway to control the zIndex of the FramedCloud? Hi Brad, Try this: markerLayer.setZIndex(map.Z_INDEX_BASE['Popup'] - 1); -- Eric From eric.c2c at gmail.com Thu May 29 02:37:44 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] select multiple layers? In-Reply-To: <20080528225148.GA14087@q.rho.net> References: <20080528225148.GA14087@q.rho.net> Message-ID: <5ec103de0805282337l62482badv37598d9f8e66e035@mail.gmail.com> On Thu, May 29, 2008 at 12:51 AM, Wendell Turner wrote: > In an environment where multiple layers have objects that > are selectable, You mean you have multiple vector layers and one select feature control for each? If that's the case I'd be surprised you got it working. Due to current browser limitations feature selection with multiple vector layers does not work in OpenLayers. > how do they get un-selected? That is, > in this function: > function onPopupClose(evt) { > selectControl.unselect(selectedFeature); > } > how does it know which selectControl item was used for the > popup? It doesn't. > Does the evt object have a reference to the > selectControl? It doesn't. > Or does the > function onFeatureSelect(feature) > need to save that value? Yes, your app-level code need do the job. > Does the feature object have a > reference to a layer or selectControl? feature.layer references the layer the feature in added to. > Or can one selectControl span multiple layers? It can't. Cheers, -- Eric From eric.c2c at gmail.com Thu May 29 02:38:54 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] WFS WMS Comparison queries In-Reply-To: <20080527115200.GC19052@metacarta.com> References: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086B3@ZDND.DND.boston.cob> <20080527115200.GC19052@metacarta.com> Message-ID: <5ec103de0805282338g499fdf16y8a912852c00aa7c4@mail.gmail.com> On Tue, May 27, 2008 at 1:52 PM, Christopher Schmidt wrote: > On Tue, May 27, 2008 at 07:12:50AM -0400, Obe, Regina wrote: >> I noticed there is a class called >> >> OpenLayers.Filter.Comparison which I thought was there for doing WFS/WMS >> LIKE, EQUAL_TO etc. attribute filters. >> >> Unfortunately I can't figure out how to use it against a WFS layers for >> that purpose or maybe it wasn't designed for that and only for applying >> styles. I couldn't find any examples of it. > > Currently, OpenLayers does not support making WFS Filter requests to WFS > filters via the WFS layer. There is ongoing work in this department, in > the 'vector-behavior' sandbox, being worked on by both TOPP and > camptocamp, as I understand it, which is targeted for inclusion in 2.7. You're understanding correctly Chris :-) -- Eric From andrew at andrewlarcombe.co.uk Thu May 29 04:10:39 2008 From: andrew at andrewlarcombe.co.uk (Andrew Larcombe) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Geographic CMS like open source app In-Reply-To: <447460.40266.qm@web51712.mail.re2.yahoo.com> References: <447460.40266.qm@web51712.mail.re2.yahoo.com> Message-ID: <8D9AD819-F949-4027-9CC8-CDC33F00B4F5@andrewlarcombe.co.uk> On 27 May 2008, at 02:50, Juan Jose Del Toro Madrue?o wrote: > Dear list; > > > We are on the early stages to develop a kind of geographic cms > system that > would allow users to manage on their website basic geographic > information > integrated into a MySQL database; map?ng customers with routes, > houses in > a real estate company, etc. > > similar apps are already there but none of them are open spurce > projects > > Before we embark on this task; does anyone know of a similar app > that is > open source and works as a cms like using OL/OSM/Google Maps? Well, Drupal has some basic Location/Geocoding modules, and I'm close to finishing (insofar as any project is actually finished) an OpenLayers module for Drupal. Cheers, A -- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk : http://blog.andrewl.net email: andrew@andrewlarcombe.co.uk icq: 306690163 From brad at cubewerx.com.au Thu May 29 06:02:26 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer In-Reply-To: <5ec103de0805282329i46ad24bbu4738c5119ad5c7d@mail.gmail.com> Message-ID: Eric, Thanks for that. I tried your suggestion. So this will make the markerLayer a Z-Index one less than the Popup. Right? However, what I am doing is preassigning groups of layers to z-index levels so they layer predictably and not just as they get dynamically loaded. On top of all this I want to display two markers layers - I have been able to make sure that the two markers layers are above these layers by assigning numbers appropriately. When I use this suggestion it pushes the markers below the other layers which I do not want to do. Is there any way of making the Popup to be +1 above the markers layers? Cheers, Brad Spencer -----Original Message----- From: Eric Lemoine [mailto:eric.c2c@gmail.com] Sent: Thursday, 29 May 2008 4:30 PM To: brad@cubewerx.com.au Cc: openlayers users Subject: Re: [OpenLayers-Users] Z-Index of Markers Layer On Thu, May 29, 2008 at 2:52 AM, bradleyspencer wrote: > Well, I fixed one problem. I was not using the map.setLayerZIndex on the > appropriate markers layer. > > However, now my FramedCloud is now lower than the markers and the overlayed > layer. Is there anyway to control the zIndex of the FramedCloud? Hi Brad, Try this: markerLayer.setZIndex(map.Z_INDEX_BASE['Popup'] - 1); -- Eric From eric.c2c at gmail.com Thu May 29 07:19:47 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer In-Reply-To: References: <5ec103de0805282329i46ad24bbu4738c5119ad5c7d@mail.gmail.com> Message-ID: <5ec103de0805290419l2524a69l574415ee5b9ed422@mail.gmail.com> On Thu, May 29, 2008 at 12:02 PM, bradleyspencer wrote: > Eric, > > Thanks for that. I tried your suggestion. > > So this will make the markerLayer a Z-Index one less than the Popup. Right? Correct. > > However, what I am doing is preassigning groups of layers to z-index levels so they layer predictably and not just as they get dynamically loaded. On top of all this I want to display two markers layers - I have been able to make sure that the two markers layers are above these layers by assigning numbers appropriately. > > When I use this suggestion it pushes the markers below the other layers which I do not want to do. Is there any way of making the Popup to be +1 above the markers layers? Have you tried playing with popup.div.style.zIndex? This is getting hackish ;-) -- Eric From robe.dnd at cityofboston.gov Thu May 29 07:44:17 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <5ec103de0805281255m3a3864b3u7167dc040f8e920b@mail.gmail.com> References: <483BF796.5030400@noaa.gov><53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob><483C173C.7010400@noaa.gov> <5ec103de0805281255m3a3864b3u7167dc040f8e920b@mail.gmail.com> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D20425B828@ZDND.DND.boston.cob> Eric, Actually I had suggested the below to Carl offlist. The reason I suggested tacking the random to his location is that say you have a .txt file that gets automatically generated every so often. A lot of web servers like IIS treat these kind of files as static and will send a directive to the web browser to cache them and then browsers. They will not give a new version unless you fool them into thinking its a different file you are asking for by tagging a random seed on it. Also browsers have varying hockeyness on how they decide when to get a fresh copy or read from cache. True you could change the behavior if you had control of the web server (which if you are on a shared box you don't necessarily). You would also take a performance hit on things that really should be cached. Just my two cents. Regina -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Eric Lemoine Sent: Wednesday, May 28, 2008 3:55 PM To: Carl Morgan Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] redraw or refresh a text layer? On Tue, May 27, 2008 at 4:14 PM, Carl Morgan wrote: > Regina, > > I got the following function to redraw the layer. Not sure I understand > why this works, but it does. I call it immediately after I call my init > function. I appreciate your help! > > -Carl > > function refresh_markers() { > > reports.redraw(true); > map.removeLayer(reports); > reports.destroy(); > reports = new OpenLayers.Layer.Text( "New Rep", {location: > "./" + textfile + "?" + Math.random()}); > map.addLayer(reports); > } Are you saying that it doesn't work without the random() call? If the web server serving the text file is yours you should probably configure it to prevent browsers from caching that text file. To me this isn't a problem on the OpenLayers side. -- Eric _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From springrider at hotmail.com Thu May 29 11:39:29 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica In-Reply-To: <5ec103de0805281314sd428186h5173b8731ddd327c@mail.gmail.com> References: <17475860.post@talk.nabble.com> <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> <17486550.post@talk.nabble.com> <5ec103de0805281314sd428186h5173b8731ddd327c@mail.gmail.com> Message-ID: <17537271.post@talk.nabble.com> Thanks Eric for your reply I have fixed my problem and this is the code: var map, layer; map =new OpenLayers.Map("map", {maxExtent: new OpenLayers.Bounds(-8000000,-8000000,8000000,8000000), maxResolution: 25000, units:'meters', projection:"EPSG:3031"}); layer = new OpenLayers.Layer.WMS( "test", "http://localhost:8080/geoserver/wms?version=1.1.1", {layers: 'fifao:FAO_AREAS_PROJ,fifao:continents_pg',projection: "EPSG:3031"}); map.addLayer(layer); map.zoomToMaxExtent(); The point is that it works only when the layer corresponds to shapefile in my Geoserver and not to a table in my Oracle database. In that case, i obtain a white map. I don't know if it is a GeoServer or an Oracle problem. If anyone has a any idea, keep me informed. Anyway, thanks for your help. Sylvain Eric Lemoine-3 wrote: > > On Tue, May 27, 2008 at 11:29 AM, springrider > wrote: >> >> Thanks Jon for your reply >> >> Sorry I was not really explicit about the result i had. >> >> This is the request which is sent to my Geoserver: >> GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL >> &SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES= >> &EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg >> &BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332 >> &WIDTH=256&HEIGHT=256 > > Do you think the rounding errors are the cause of your problem? > > >> So the SRS to be used is correct (3031) but what is sent for the bounding >> box seems to be wrong in respect to what i have specified... >> >> As you were suggesting in one of your previous post, could it be related >> to >> ZoomToMaxExtent? >> >> I tried to add the projection also for the baselayer but with no results: >> var basemap = new OpenLayers.Layer.WMS( "test", >> >> "http://193.43.36.238:8484/geoserver/wms?version=1.1.1", >> {layers: 'fifao:CONTINEENT_GAUL', >> srs: 'EPSG:3031'}); >> basemap.addOptions({isBaseLayer: true}); > > You have only one base layer so no need to set things at the layer > level, map level is fine. > > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17537271.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Thu May 29 11:53:57 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica In-Reply-To: <17537271.post@talk.nabble.com> References: <17475860.post@talk.nabble.com> <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> <17486550.post@talk.nabble.com> <5ec103de0805281314sd428186h5173b8731ddd327c@mail.gmail.com> <17537271.post@talk.nabble.com> Message-ID: <5ec103de0805290853of039832nfbdc4d2055b28dbe@mail.gmail.com> You dont need the projection property in the WMS layer param, do you? Cheers. Eric 2008/5/29, springrider : > > Thanks Eric for your reply > > I have fixed my problem and this is the code: > > var map, layer; > > map =new OpenLayers.Map("map", {maxExtent: new > OpenLayers.Bounds(-8000000,-8000000,8000000,8000000), maxResolution: 25000, > units:'meters', projection:"EPSG:3031"}); > layer = new OpenLayers.Layer.WMS( "test", > "http://localhost:8080/geoserver/wms?version=1.1.1", > {layers: 'fifao:FAO_AREAS_PROJ,fifao:continents_pg',projection: > "EPSG:3031"}); > map.addLayer(layer); > > map.zoomToMaxExtent(); > > The point is that it works only when the layer corresponds to shapefile in > my Geoserver and not to a table in my Oracle database. In that case, i > obtain a white map. > > I don't know if it is a GeoServer or an Oracle problem. If anyone has a any > idea, keep me informed. > > Anyway, thanks for your help. > > Sylvain > > > Eric Lemoine-3 wrote: >> >> On Tue, May 27, 2008 at 11:29 AM, springrider >> wrote: >>> >>> Thanks Jon for your reply >>> >>> Sorry I was not really explicit about the result i had. >>> >>> This is the request which is sent to my Geoserver: >>> GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL >>> &SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES= >>> &EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg >>> &BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332 >>> &WIDTH=256&HEIGHT=256 >> >> Do you think the rounding errors are the cause of your problem? >> >> >>> So the SRS to be used is correct (3031) but what is sent for the bounding >>> box seems to be wrong in respect to what i have specified... >>> >>> As you were suggesting in one of your previous post, could it be related >>> to >>> ZoomToMaxExtent? >>> >>> I tried to add the projection also for the baselayer but with no results: >>> var basemap = new OpenLayers.Layer.WMS( "test", >>> >>> "http://193.43.36.238:8484/geoserver/wms?version=1.1.1", >>> {layers: 'fifao:CONTINEENT_GAUL', >>> srs: 'EPSG:3031'}); >>> basemap.addOptions({isBaseLayer: true}); >> >> You have only one base layer so no need to set things at the layer >> level, map level is fine. >> >> -- >> Eric >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- > View this message in context: > http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17537271.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From eric.c2c at gmail.com Thu May 29 11:56:33 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] redraw or refresh a text layer? In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D20425B828@ZDND.DND.boston.cob> References: <483BF796.5030400@noaa.gov> <53F9CF533E1AA14EA1F8C5C08ABC08D2042086CF@ZDND.DND.boston.cob> <483C173C.7010400@noaa.gov> <5ec103de0805281255m3a3864b3u7167dc040f8e920b@mail.gmail.com> <53F9CF533E1AA14EA1F8C5C08ABC08D20425B828@ZDND.DND.boston.cob> Message-ID: <5ec103de0805290856k6d7af1cene72ab36f91c6ea6c@mail.gmail.com> I was thinking about disabling caching only for that particular file. Cheers. Eric 2008/5/29, Obe, Regina : > Eric, > > Actually I had suggested the below to Carl offlist. The reason I > suggested tacking the random to his location is that say you have a > .txt file that gets automatically generated every so often. A lot of > web servers like IIS treat these kind of files as static and will send a > directive to the web browser to cache them and then browsers. They will > not give a new version unless you fool them into thinking its a > different file you are asking for by tagging a random seed on it. Also > browsers have varying hockeyness on how they decide when to get a fresh > copy or read from cache. > > True you could change the behavior if you had control of the web server > (which if you are on a shared box you don't necessarily). You would also > take a performance hit on things that really should be cached. > > Just my two cents. > > Regina > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] > On Behalf Of Eric Lemoine > Sent: Wednesday, May 28, 2008 3:55 PM > To: Carl Morgan > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] redraw or refresh a text layer? > > On Tue, May 27, 2008 at 4:14 PM, Carl Morgan > wrote: >> Regina, >> >> I got the following function to redraw the layer. Not sure I > understand >> why this works, but it does. I call it immediately after I call my > init >> function. I appreciate your help! >> >> -Carl >> >> function refresh_markers() { >> >> reports.redraw(true); >> map.removeLayer(reports); >> reports.destroy(); >> reports = new OpenLayers.Layer.Text( "New Rep", {location: >> "./" + textfile + "?" + Math.random()}); >> map.addLayer(reports); >> } > > Are you saying that it doesn't work without the random() call? > > If the web server serving the text file is yours you should probably > configure it to prevent browsers from caching that text file. To me > this isn't a problem on the OpenLayers side. > > -- > Eric > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > ----------------------------------------- > The substance of this message, including any attachments, may be > confidential, legally privileged and/or exempt from disclosure > pursuant to Massachusetts law. It is intended > solely for the addressee. If you received this in error, please > contact the sender and delete the material from any computer. > > From springrider at hotmail.com Thu May 29 12:15:59 2008 From: springrider at hotmail.com (springrider) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Problem with polar projection on Antartica In-Reply-To: <5ec103de0805290853of039832nfbdc4d2055b28dbe@mail.gmail.com> References: <17475860.post@talk.nabble.com> <2bb6ee950805262313m43e07a03g4c51de3f0f3039f2@mail.gmail.com> <17486550.post@talk.nabble.com> <5ec103de0805281314sd428186h5173b8731ddd327c@mail.gmail.com> <17537271.post@talk.nabble.com> <5ec103de0805290853of039832nfbdc4d2055b28dbe@mail.gmail.com> Message-ID: <17539732.post@talk.nabble.com> Right, only the projection at map declaration is enough. Sylvain Eric Lemoine-3 wrote: > > You dont need the projection property in the WMS layer param, do you? > Cheers. Eric > > 2008/5/29, springrider : >> >> Thanks Eric for your reply >> >> I have fixed my problem and this is the code: >> >> var map, layer; >> >> map =new OpenLayers.Map("map", {maxExtent: new >> OpenLayers.Bounds(-8000000,-8000000,8000000,8000000), maxResolution: >> 25000, >> units:'meters', projection:"EPSG:3031"}); >> layer = new OpenLayers.Layer.WMS( "test", >> "http://localhost:8080/geoserver/wms?version=1.1.1", >> {layers: 'fifao:FAO_AREAS_PROJ,fifao:continents_pg',projection: >> "EPSG:3031"}); >> map.addLayer(layer); >> >> map.zoomToMaxExtent(); >> >> The point is that it works only when the layer corresponds to shapefile >> in >> my Geoserver and not to a table in my Oracle database. In that case, i >> obtain a white map. >> >> I don't know if it is a GeoServer or an Oracle problem. If anyone has a >> any >> idea, keep me informed. >> >> Anyway, thanks for your help. >> >> Sylvain >> >> >> Eric Lemoine-3 wrote: >>> >>> On Tue, May 27, 2008 at 11:29 AM, springrider >>> wrote: >>>> >>>> Thanks Jon for your reply >>>> >>>> Sorry I was not really explicit about the result i had. >>>> >>>> This is the request which is sent to my Geoserver: >>>> GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL >>>> &SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES= >>>> &EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg >>>> &BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332 >>>> &WIDTH=256&HEIGHT=256 >>> >>> Do you think the rounding errors are the cause of your problem? >>> >>> >>>> So the SRS to be used is correct (3031) but what is sent for the >>>> bounding >>>> box seems to be wrong in respect to what i have specified... >>>> >>>> As you were suggesting in one of your previous post, could it be >>>> related >>>> to >>>> ZoomToMaxExtent? >>>> >>>> I tried to add the projection also for the baselayer but with no >>>> results: >>>> var basemap = new OpenLayers.Layer.WMS( "test", >>>> >>>> "http://193.43.36.238:8484/geoserver/wms?version=1.1.1", >>>> {layers: 'fifao:CONTINEENT_GAUL', >>>> srs: 'EPSG:3031'}); >>>> basemap.addOptions({isBaseLayer: true}); >>> >>> You have only one base layer so no need to set things at the layer >>> level, map level is fine. >>> >>> -- >>> Eric >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17537271.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17539732.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From brad at cubewerx.com.au Thu May 29 19:13:28 2008 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Z-Index of Markers Layer In-Reply-To: <5ec103de0805290419l2524a69l574415ee5b9ed422@mail.gmail.com> Message-ID: Eric, The hack suggestion did not work, or at least I am unable to make it work :( My latest attempt to sort this almost worked. Given that the OL defaults are Z_INDEX_BASE: { BaseLayer: 100, Overlay: 325, Popup: 750, Control: 1000 }, I made sure that all my user layers were set in the correct overlay levels within the range 325 thru 700 Zindex. Then I set the levels of the two markers to be offset from the Popup default level by -1 and -2 by using 'myMarkerLayer'.setZIndex(map.Z_INDEX_BASE['Popup'] - 1 & 2). This worked fine if I just wanted to see the marker layers and the popups together. However, once I plotted my other layers they simply stamped over the top of the markers and popup layers. Is there a way to interrogate the ZIndex of any given layer so that I can check what is going on? Cheers, Brad Spencer -----Original Message----- From: Eric Lemoine [mailto:eric.c2c@gmail.com] Sent: Thursday, 29 May 2008 9:20 PM To: brad@cubewerx.com.au Cc: openlayers users Subject: Re: [OpenLayers-Users] Z-Index of Markers Layer On Thu, May 29, 2008 at 12:02 PM, bradleyspencer wrote: > Eric, > > Thanks for that. I tried your suggestion. > > So this will make the markerLayer a Z-Index one less than the Popup. Right? Correct. > > However, what I am doing is preassigning groups of layers to z-index levels so they layer predictably and not just as they get dynamically loaded. On top of all this I want to display two markers layers - I have been able to make sure that the two markers layers are above these layers by assigning numbers appropriately. > > When I use this suggestion it pushes the markers below the other layers which I do not want to do. Is there any way of making the Popup to be +1 above the markers layers? Have you tried playing with popup.div.style.zIndex? This is getting hackish ;-) -- Eric From n.helminger at visyoo.com Fri May 30 08:06:55 2008 From: n.helminger at visyoo.com (Norbert Helminger) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Google Earth 3D Plugin Message-ID: <17557357.post@talk.nabble.com> It would be great to integrate Google Earth's 3D Browser Plugin into Open Layers. It can be integrated into Google Maps. So maybe it should be possible to integrate it into Open Layers as well. http://code.google.com/apis/earth/documentation/advanced.html#maps -- View this message in context: http://www.nabble.com/Google-Earth-3D-Plugin-tp17557357p17557357.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jcz at northredoubt.com Fri May 30 08:26:25 2008 From: jcz at northredoubt.com (John Zastrow) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] ESRI ArcIMS and/or ArcGIS Server Support In-Reply-To: <17557357.post@talk.nabble.com> References: <17557357.post@talk.nabble.com> Message-ID: <483FF271.2040408@northredoubt.com> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080530/db4a1108/attachment.html From jdb at mail.nerc-essc.ac.uk Fri May 30 08:48:36 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Tiles outside maxExtent being loaded Message-ID: <2bb6ee950805300548s4733b9d1t48f6899acb3aadb0@mail.gmail.com> Hi all, I've noticed that in my application OpenLayers is requesting tiles outside the maximum extent of my overlay layer (which is in EPSG:4326 and hence has a maxExtent of -180,-90,180,90). I've checked using the Firebug console that the maxExtent is correctly set. wrapDateLine is set true. My map div has dimensions 512px x 400px (width x height). When zoomed such that the whole world is visible, I expect 2 tiles to be loaded (with size 256x256), one for each of the western and eastern hemispheres. Instead, OL loads 8 tiles: the two "correct" tiles and six other tiles - four above and two below the map. I.e. it is loading tiles with impossible latitudes. The incorrect tiles have bounding boxes: -180,90,0,270 (tile "above" western hemisphere) 0,90,180,270 (above E hem) -180,-270,0,-90 (below W hem) 0,-270,180,-90 (below E hem) -180,270,180,450 (two tiles above W hem) 0,270,180,450 (two tiles above E hem) Is there any way of preventing these tiles from being loaded? You can see this effect at http://www.reading.ac.uk/godiva2 (load the web page, then select an item from the LH menu to create an overlay). Cheers, 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 Fri May 30 10:24:12 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Tiles outside maxExtent being loaded In-Reply-To: <2bb6ee950805300548s4733b9d1t48f6899acb3aadb0@mail.gmail.com> References: <2bb6ee950805300548s4733b9d1t48f6899acb3aadb0@mail.gmail.com> Message-ID: <20080530142411.GB23107@metacarta.com> On Fri, May 30, 2008 at 01:48:36PM +0100, Jon Blower wrote: > I've noticed that in my application OpenLayers is requesting tiles > outside the maximum extent of my overlay layer (which is in EPSG:4326 > and hence has a maxExtent of -180,-90,180,90). I've checked using the > Firebug console that the maxExtent is correctly set. wrapDateLine is > set true. wrapDateLine forces displayOutsideMaxExtent, which is why you are seeing the behavior you are seeing. > > Is there any way of preventing these tiles from being loaded? Turn off wrapDateLine. Regards, -- Christopher Schmidt MetaCarta From SnapeM at rpsgroup.com Fri May 30 10:35:01 2008 From: SnapeM at rpsgroup.com (Matthew Snape) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] ESRI ArcIMS and/or ArcGIS Server Support References: <17557357.post@talk.nabble.com> <71497ab70c02cbfa76c71412d59460e2fd1cd54a@localhost> Message-ID: <605F55D8070C094AA2E2A9CBA2767A3C9E4C08@EXMB1.eur.rpsgroup.com> We have been making heavy use of the AGS cache code that was in the arcgis server sandbox. The biggest issue we have had was with setting the extents. I found that the extents had to be different for each zoom level. I used the following code to calculate the correct extents, added to the start of the geturl and setmap functions: var res = this.map.getResolution(); var tile_height = res*512; var yorigin = this.maxExtent.top; var ydiff = yorigin-this.ymin; var tilecount = ydiff/tile_height; var tilecountr = Math.ceil(tilecount); var coverage = tilecountr*tile_height; var yminorigin = yorigin-coverage; this.maxExtent.bottom = yminorigin; Because you need a fixed number of tiles to cover the map, the bottom tile will overlap the edge of the map extents. At different resolutions the amount of overlap changes. This code calculates the y co-ordinate of the bottom of the map extents, depending on your resolution. It uses an addittional attribute "ymin" to store the minimum y value of the data extents, allowing maxExtent.bottom to change as appropriate. Once the extents issue is sorted the layer works well. I also am in the process of writing some code (which I will share) that pre generates the layer configuration from the xml file in the cache directory. ________________________________ From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of John Zastrow Sent: 30 May 2008 13:26 Cc: users@openlayers.org Subject: [OpenLayers-Users] ESRI ArcIMS and/or ArcGIS Server Support What's the status of OpenLayers supporting ArcIMS and/or ArcGIS server output that is not WMS? Anyone? http://openlayers.org/pipermail/users/2007-May/001571.html http://blog.davebouwman.net/2006/11/30/OpenLayersConnectorForArcGISServe r.aspx http://www.spatiallyadjusted.com/2006/11/30/dave-bouwman-on-a-openlayers -connector-for-arcgis-server/ This e-mail message and any attached file is the property of the sender and is sent in confidence to the addressee only. The contents are not to be disclosed to anyone other than the addressee. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. If you experience difficulty with opening any attachments to this message, or with sending a reply by email, please telephone on + 44-(0)1235 438151 or fax on + 44-(0)1235 438188. Any advice contained in this e-mail or any accompanying file attached hereto is for information purposes only. RPS do not take any responsibility for differences between the original and the transmission copy or any amendments made thereafter. If the addressee requires RPS to be responsible for the contents of this e-mail, RPS will be pleased to issue a signed hard copy of the document upon request. RPS Group Plc, company number: 208 7786 (England). Registered office: Centurion Court, 85 Milton Park Abingdon Oxfordshire OX14 4RY. RPS Group Plc web link: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080530/4fbe8aa7/attachment.html From jdb at mail.nerc-essc.ac.uk Fri May 30 10:37:12 2008 From: jdb at mail.nerc-essc.ac.uk (Jon Blower) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Tiles outside maxExtent being loaded In-Reply-To: <20080530142411.GB23107@metacarta.com> References: <2bb6ee950805300548s4733b9d1t48f6899acb3aadb0@mail.gmail.com> <20080530142411.GB23107@metacarta.com> Message-ID: <2bb6ee950805300737r10a880fcg98438acb98be12c5@mail.gmail.com> Hi Chris, Thanks for the reply. Is it not possible (logically at least) to have wrapDateLine=true and displayOutsideMaxExtent=false? This seems to make a lot of sense for the very common case of EPSG:4326. Alternatively is there a method I can override to prevent tiles outside the latitude range [-90,90] being loaded (e.g. by subclassing Layer.WMS)? I'm keen to do this because having 8 requests to my WMS server (even if 6 of them are quickly rejected) not only causes increased load on my server but also uses up some of the web browser's image loading threads, slowing up my application considerably. Cheers, Jon On Fri, May 30, 2008 at 3:24 PM, Christopher Schmidt wrote: > On Fri, May 30, 2008 at 01:48:36PM +0100, Jon Blower wrote: >> I've noticed that in my application OpenLayers is requesting tiles >> outside the maximum extent of my overlay layer (which is in EPSG:4326 >> and hence has a maxExtent of -180,-90,180,90). I've checked using the >> Firebug console that the maxExtent is correctly set. wrapDateLine is >> set true. > > wrapDateLine forces displayOutsideMaxExtent, which is why you are seeing > the behavior you are seeing. > >> >> Is there any way of preventing these tiles from being loaded? > > Turn off wrapDateLine. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- -------------------------------------------------------------- Dr Jon Blower Tel: +44 118 378 5213 (direct line) Technical Director Tel: +44 118 378 8741 (ESSC) Reading e-Science Centre Fax: +44 118 378 6413 ESSC Email: jdb@mail.nerc-essc.ac.uk University of Reading 3 Earley Gate Reading RG6 6AL, UK -------------------------------------------------------------- From lee_keel at trimble.com Fri May 30 11:24:09 2008 From: lee_keel at trimble.com (Lee Keel) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Authentication Error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F65020808C8@usd-am-xch-01.am.trimblecorp.net> Message-ID: <944DCD961F4CD649BCEBB52E3C929F65021067F9@usd-am-xch-01.am.trimblecorp.net> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 145 bytes Desc: Blank Bkgrd.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080530/c2e5c150/attachment.gif From penyaskito at gmail.com Fri May 30 11:42:06 2008 From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Authentication Error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F65021067F9@usd-am-xch-01.am.trimblecorp.net> References: <944DCD961F4CD649BCEBB52E3C929F65020808C8@usd-am-xch-01.am.trimblecorp.net> <944DCD961F4CD649BCEBB52E3C929F65021067F9@usd-am-xch-01.am.trimblecorp.net> Message-ID: Hi, Please note that not all the readers here are familiar with the usual ASP.NET jargon. It seems to me that this is an ASP.NET problem with authentication, not an OL one. I've seen that you posted here: http://forums.asp.net/t/1257016.aspx and that's the better place for asking. I can try to help you, but this should be offlist because it's not OpenLayers related, and I would require a minimal demo (code) that shows the problem. Don't hesitate to contact me offlist. HTH On Fri, May 30, 2008 at 5:24 PM, Lee Keel wrote: > I did not get many replies to this, so I thought I would elaborate a little > more and explain why I asked this question on this forum. > > I have a map that I have on a page that is on a secure website using forms > authentication. When the user clicks on the map, I want to send the > coordinates, visible layers, and resolution back to the server so that I can > perform a database query. I was doing this by using an AJAX call to a > WebMethod on my page which would set these values in session variables, then > I would call refresh on an updatepanel and then perform some work with the > session variables. Before I implemented security, this was working just > fine, but now that I have security turned on for this page I get an > Authentication Error whenever I try to make my PageMethod call. > > So here is some code that was working before security was enabled: > > javascript: > click: function (evt) { > OpenLayers.Console.dir(evt); > var layers = []; > > for (var i = 0; i < map.layers.length; i++){ > if (map.layers[i].visibility == true && map.layers[i].inRange == > true ){ > layers.push(map.layers[i].name); > } > } > > var lonlat = map.getLonLatFromPixel(evt.xy); > var resolution = map.getResolution(); > > PageMethods.SearchPoint(lonlat.lon, lonlat.lat, resolution, layers, > SearchPointSuccess, SearchPointFailure); > Event.stop(evt); > > }, > > function SearchPointSuccess(args) { > __doPostBack('<%= udpTabs.ClientID %>', ''); > } > > C#: > [WebMethod(EnableSession = true)] > public static void SearchPoint(double X, double Y, double resolution, > string[] layers){ > HttpContext.Current.Session["X"] = X; > HttpContext.Current.Session["Y"] = Y; > HttpContext.Current.Session["resolution"] = resolution; > HttpContext.Current.Session["layers"] = layers; > HttpContext.Current.Session["searchtype"] = "IdentifyPoint"; > HttpContext.Current.Session["srid"] = > ConfigurationManager.AppSettings["srid"]; > } > > protected > > void Page_Load(object sender, EventArgs e){ > if(this.IsPostBack) > { > //Get session variables and do work > } > } > > Does anyone have a better way to send information from the client back to > the server? Or at this point I would even settle for a way that works with > security on. My only thought right now is to put these values into a hidden > field and when the refresh is performed I could parse the information from > the text. But it just seemed to me that the AJAX call was much cleaner and > more secure. > > Thanks in advance, > Lee > > ________________________________ > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Lee Keel > Sent: Wednesday, May 28, 2008 11:22 AM > To: users@openlayers.org > Subject: [OpenLayers-Users] Authentication Error > > Hello All, > > I have been trying to implement forms authentication on my website and have > run into a little snag. I know this is not directly an OpenLayers question, > but there are so many smart javascript programmers on here, I am hoping for > an answer. > > The problem is that now that I have security enabled I am having a problem > making calls from my javascript back to my webmethods using the PageMethod > calls. When ever I make a PageMethod call, I get a 401 - "Authentication > Failed". Has anyone experienced this before? If so, could you please give > me some idea on how you fixed it? > > Best Regards, > Lee Keel > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Cheers, Christian L?pez Esp?nola From robe.dnd at cityofboston.gov Fri May 30 11:54:07 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Authentication Error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F65021067F9@usd-am-xch-01.am.trimblecorp.net> References: <944DCD961F4CD649BCEBB52E3C929F65020808C8@usd-am-xch-01.am.trimblecorp.net> <944DCD961F4CD649BCEBB52E3C929F65021067F9@usd-am-xch-01.am.trimblecorp.net> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D20425C385@ZDND.DND.boston.cob> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 145 bytes Desc: Blank Bkgrd.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080530/fc87231d/attachment.gif From crschmidt at metacarta.com Fri May 30 13:36:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Tiles outside maxExtent being loaded In-Reply-To: <2bb6ee950805300737r10a880fcg98438acb98be12c5@mail.gmail.com> References: <2bb6ee950805300548s4733b9d1t48f6899acb3aadb0@mail.gmail.com> <20080530142411.GB23107@metacarta.com> <2bb6ee950805300737r10a880fcg98438acb98be12c5@mail.gmail.com> Message-ID: <20080530173620.GA29269@metacarta.com> On Fri, May 30, 2008 at 03:37:12PM +0100, Jon Blower wrote: > Hi Chris, > > Thanks for the reply. Is it not possible (logically at least) to have > wrapDateLine=true and displayOutsideMaxExtent=false? This seems to > make a lot of sense for the very common case of EPSG:4326. Correct. wrapDateLine true and displayOutsideMaxExtent false can not be used in combination. > Alternatively is there a method I can override to prevent tiles > outside the latitude range [-90,90] being loaded (e.g. by subclassing > Layer.WMS)? I'm keen to do this because having 8 requests to my WMS > server (even if 6 of them are quickly rejected) not only causes > increased load on my server but also uses up some of the web browser's > image loading threads, slowing up my application considerably. Not that I'm aware of. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Sat May 31 09:13:09 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:16:20 2010 Subject: [OpenLayers-Users] Google Earth 3D Plugin In-Reply-To: <17557357.post@talk.nabble.com> References: <17557357.post@talk.nabble.com> Message-ID: <5ec103de0805310613q5fa43e3eucbb531baf5615d6c@mail.gmail.com> On Fri, May 30, 2008 at 2:06 PM, Norbert Helminger wrote: > > It would be great to integrate Google Earth's 3D Browser Plugin into Open > Layers. It can be integrated into Google Maps. So maybe it should be > possible to integrate it into Open Layers as well. > http://code.google.com/apis/earth/documentation/advanced.html#maps OpenLayers could easily provide support for the new google map type G_SATELLITE_3D_MAP. Beyond that, I don't see how OpenLayers could use that Google Earth API. -- Eric