From bartvde at osgis.nl Mon Jul 2 08:13:33 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] lower part of tiles does not load in IE Message-ID: <0a30b0a16af835850ebad33b3e9c859d@145.50.39.11> Hi list, did anybody ever see the following problem before? I am using OL 2.4. I have an application with a baselayer of tiled WMS served by tilecache. On top are a few WMS overlays. In Internet Explorer sometimes the lower rim of the application does not load the tiles. If I pan something like 50px up they will appear. The pattern is repetitive when panning towards the north. Firefox does not have this problem. It is always the lower part which won't load. See: IE: http://www.osgis.nl/download/geotool_ie.jpg versus Firefox: http://www.osgis.nl/download/geotool_ff.jpg Any ideas appreciated. Thanks in advance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From pablo at pablopda.com.ar Mon Jul 2 10:45:05 2007 From: pablo at pablopda.com.ar (Pablo Perez De Angelis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] i Only get gray screen Message-ID: When i try to publish whit http://trac.openlayers.org/wiki/MappingYourData i get all the thin ok But when i try whit my own data i only get solid gray. I tray whit WMS instead of mapserver layer and the same result. this query http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.map&LAYERS=Ciudad&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-22.5%2C33.75%2C-11.25%2C45&WIDTH=256&HEIGHT=256 Return an gray box when i erase BBOX=-22.5%2C33.75%2C-11.25%2C45 http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.map&LAYERS=Ciudad&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&WIDTH=256&HEIGHT=256 I get a map. Can any one help me?. my .map # Map file created from QGIS project file /var/www/mapa/unc.qgs # Edit this file to customize for your map interface MAP NAME mapa # Map image size SIZE 800 600 UNITS METERS EXTENT -64.196055 -31.444185 -64.179119 -31.430301 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' 'mapa' 'wms_onlineresource' ' http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.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 'Ciudad' TYPE POLYGON DATA '/var/www/mapa/uncdata/Ciudad.shp' METADATA 'wms_title' 'Ciudad' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME Ciudad STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 0 COLOR 161 59 179 END END END END My html
-- Pablo PDA http://www.pablopda.com.ar/blog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070702/3aa89630/attachment.html From ierickson at analygis.com Mon Jul 2 12:01:41 2007 From: ierickson at analygis.com (Ian Erickson) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] i Only get gray screen In-Reply-To: References: Message-ID: <46892165.3090305@analygis.com> Pablo, It appears as though your BBOX request contains a box centered off the coast of Portugal. The extents specified in your .map file contain points in Argentina. The meat of the issue seems to be the lon and lat parameters passed into the map.setCenter method. Try something like: //------------------------------------------- lon = -64.187587; lat = -31.437243; zoom = 5; map.setCenter( new OpenLayers.LonLat( lon, lat ), zoom ); //------------------------------------------- This will, at the very least, center your map on an area that contains valid data (based on your .map file). Ian Erickson AnalyGIS, LLC http://www.analygis.com Pablo Perez De Angelis wrote: > When i try to publish whit > http://trac.openlayers.org/wiki/MappingYourData i get all the thin ok > But when i try whit my own data i only get solid gray. > I tray whit WMS instead of mapserver layer and the same result. > > > this query > http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.map&LAYERS=Ciudad&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-22.5%2C33.75%2C-11.25%2C45&WIDTH=256&HEIGHT=256 > > Return an gray box > when i erase BBOX=-22.5%2C33.75%2C-11.25%2C45 > http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.map&LAYERS=Ciudad&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&WIDTH=256&HEIGHT=256 > > I get a map. > > Can any one help me?. > > > my .map > > # Map file created from QGIS project file /var/www/mapa/unc.qgs > # Edit this file to customize for your map interface > MAP > NAME mapa > # Map image size > SIZE 800 600 > UNITS METERS > > EXTENT -64.196055 -31.444185 -64.179119 -31.430301 > 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' 'mapa' > 'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv?map=/var/www/mapa/unc.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 'Ciudad' > TYPE POLYGON > DATA '/var/www/mapa/uncdata/Ciudad.shp' > METADATA > 'wms_title' 'Ciudad' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > END > CLASS > NAME Ciudad > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 0 0 0 > COLOR 161 59 179 > END > END > END > > > > END > > > My html > > > > > > > >
> > > > > > -- > Pablo PDA > http://www.pablopda.com.ar/blog > >------------------------------------------------------------------------ > >_______________________________________________ >Users mailing list >Users@openlayers.org >http://openlayers.org/mailman/listinfo/users > > From correosig at gmail.com Mon Jul 2 13:39:33 2007 From: correosig at gmail.com (Ruben Pardo) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Problem using EditingToolbar Control with EPSG:23030 Message-ID: <736d33ec0707021039i207dc28doa9f29802ee85e2fa@mail.gmail.com> Hi, i trying to put a EditingTool Control in my map. My problem is that the editing toolbar doesn't work correctly. I need to use a projection EPSG:23030 on the layers that i show, because of that, i need to put on the vector layer the projection, a maxExtent and a resolution, in other cases it doesn't paint anything. In the cases that paint something, the behaviour is: 1) It paints the features but only when i press double click (at the time i am drawing it doesn't paint anything), in big scales. 2) In small scale the behaviour is different, it shows me the features at the same time i am drawing but when i do a double click it doesn't paint anything. what i am doing wrong? thanks very much. The code is: ------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070702/468953af/attachment.html From fadimaali at gmail.com Tue Jul 3 11:05:31 2007 From: fadimaali at gmail.com (fadi maali) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] disable double click Message-ID: Hi all, double clicking a map will zoom it in. Can I disable this double click handling and how? Many thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070703/f828cb33/attachment.html From ierickson at analygis.com Tue Jul 3 11:50:46 2007 From: ierickson at analygis.com (Ian Erickson) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] disable double click In-Reply-To: References: Message-ID: <468A7056.8020003@analygis.com> A nice way to do this is to create your own class inheriting from the OpenLayers.Control.Navigation class. Here's what I would recommend... In a new Javascript file....AM_Navigation.js //---------------------------------------------------------- /** * @class * * @requires OpenLayers/Control/Navigation.js */ OpenLayers.Control.AM_Navigation = OpenLayers.Class.create(); OpenLayers.Control.AM_Navigation.prototype = OpenLayers.Class.inherit( OpenLayers.Control.Navigation, { /** * @param {Event} evt */ defaultDblClick: function (evt) { var newCenter = this.map.getLonLatFromViewPortPx( evt.xy ); //this.map.setCenter(newCenter, this.map.zoom + 1); this.map.setCenter(newCenter, this.map.zoom); OpenLayers.Event.stop(evt); return false; }, /** @final @type String */ CLASS_NAME: "OpenLayers.Control.AM_Navigation" }); //---------------------------------------------------------- When you initialize your map, initialize it with your new map navigation control.... //---------------------------------------------------------- ... ... map = new OpenLayers.Map( 'map', {controls: [new OpenLayers.Control.AM_Navigation(), new OpenLayers.Control.PanZoom(), new OpenLayers.Control.ArgParser()]} ); ... //---------------------------------------------------------- Ian Erickson AnalyGIS, LLC http://www.analygis.com fadi maali wrote: > Hi all, > > double clicking a map will zoom it in. > Can I disable this double click handling and how? > > Many thanks > >------------------------------------------------------------------------ > >_______________________________________________ >Users mailing list >Users@openlayers.org >http://openlayers.org/mailman/listinfo/users > > From gstamp at gmail.com Wed Jul 4 03:40:22 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Possible bug with open layers and safari Message-ID: Hi. Today I was setting the visibility of a layer using the setVisibility call and noticed some incorrect behaviour under safari 2 and 3. I then went to the openlayers.org home page and started fiddling with the Canada transparent layer and noticed the same issue. To reproduce you need to switch on the Canada layer, switch it off then try and switch it on again (without scrolling). You should notice that it does not appear again. If you scroll or zoom around you'll find it can come back. By scrolling around you can get the situation where you have some of the transparent tiles visible and some missing. Can someone please confirm they can reproduce this one before I file a bug report? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070704/77cf950b/attachment.html From f.husson at brgm.fr Wed Jul 4 04:45:14 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] SLD with WFS ? References: Message-ID: <9B3EB2ACEB474549921FEA4EEB68FEE336AB21@RES005.brgm.fr> Hi all, Can I bind a SLD with a WFS layer, more or less like that : Layer = new OpenLayers.Layer.WFS( name, "/geoserver/wfs", { typename: name, extractAttributes: true, SLD : " http://localhost:8080 /geoserver/data/styles/Lakes.sld"} ); For the moment, that doesn't work... Is this possible ? Many thanks , Florian ********************************************************************************************** Pensez à l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) désigné(s) comme tel(s). En cas de réception par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifiée à l'émission, il convient néanmoins de s'assurer de l'absence de contamination à sa réception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070704/6ee89cae/attachment.html From bartvde at osgis.nl Wed Jul 4 07:25:39 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] lower part of tiles does not load in IE Message-ID: Okay, done quite a bit of debugging on this. My map is 694x464 pixels. Tilesize is 256. Buffer is 1. Initially, a grid of 6x4 tiles is created. When zooming in to the zoom level which has this problem, only 6x3 tiles are created (so one of the rows is removed from the grid). It can be quickly patched in the _initTiles function: _initTiles:function() { // work out mininum number of rows and columns; this is the number of // tiles required to cover the viewport plus one for panning var viewSize = this.map.getSize(); var minRows = Math.ceil(viewSize.h/this.tileSize.h) + 1; var minCols = Math.ceil(viewSize.w/this.tileSize.w) + 1; by replacing + 1 with + 2*this.buffer. Maybe/hopefully :-) someone more knowledgeable of this part of the code can determine the right fix for this. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Bart van den Eijnden OSGIS Naar: users@openlayers.org Onderwerp: lower part of tiles does not load in IE Datum: 02/07/07 14:13 > > Hi list, > > did anybody ever see the following problem before? I am using OL 2.4. > > I have an application with a baselayer of tiled WMS served by tilecache. On > top are a few WMS overlays. > > In Internet Explorer sometimes the lower rim of the application does not > load the tiles. If I pan something like 50px up they will appear. The > pattern is repetitive when panning towards the north. Firefox does not have > this problem. It is always the lower part which won't load. From mailinglist at jpluebbert.de Wed Jul 4 09:32:15 2007 From: mailinglist at jpluebbert.de (=?iso-8859-1?Q?Jan_Patrick_L=FCbbert?=) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Simple Image Map Message-ID: <451684655.20070704153215@jpluebbert.de> Hello, I'm new to Openlayers/Tilecache (found it while searching for Google alternatives) and have to make a comment and ask some questions. First I find Openlayers/Tilecache looks like great pieces of software, BUT what's great software without proper documentation ... and that's what both are missing for sure. I've made some maps for a game and want to share them with others on the web, so I've searched the web and ended up at Openlayers Website (if there's something better to do what I want, please tell me!). My Map is atm a huge Image file and I want to do something like http://tilecache.org/demos/xkcd-onlinecommunities.html or http://tilecache.org/demos/mario.html But I didn't find any documentation that told me how to do that. Can Tilecache cut my Image into tiles? How do I configure that (ImageLayer was mentioned in another mail but from the code I think I got that that's what I'm searching but no word on how to configure)? Can the people who did the demos please not only show the results, show how you've done that! I'm also thinking about cutting my map into tile via a script myself (think this http://wiki.osgeo.org/index.php/Image:Tms.png is how they are named?) and simply put it on the right places (directories), but how do I configure Openlayers to use them because it's no WMS or whatever service then ... Can you help me with some links/docs/howtos/words please? [Crosspost from Tilecache ML, because I didn't get any response there.] Thanks Jan From drspencer at hotmail.com Wed Jul 4 19:53:10 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Defining zoom levels with Google Maps Message-ID: <11439053.post@talk.nabble.com> Hi I am trying to create a map with only three zoom levels, using google maps as background. I have put up an example at http://www.villageografica.com/test50/zoomLevels.html . I would like to keep the top three zoom levels and cut the lower six ones, but if I change the number of zoom levels from 9 to 3, the map will be far too zoomed out on first load, much more than intended, http://www.villageografica.com/test50/zoomLevels2.html . Is there a way to define exactly which ones to use? Magnus -- View this message in context: http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053 Sent from the OpenLayers Users mailing list archive at Nabble.com. From gstamp at gmail.com Wed Jul 4 19:58:30 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Defining zoom levels with Google Maps In-Reply-To: <11439053.post@talk.nabble.com> References: <11439053.post@talk.nabble.com> Message-ID: Well the resolutions are defined in an array called RESOLUTIONS in google.js. I'm guessing you could start by looking at altering that and/or MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL. On 05/07/07, kaka wrote: > > > Hi > I am trying to create a map with only three zoom levels, using google maps > as background. I have put up an example at > http://www.villageografica.com/test50/zoomLevels.html . I would like to > keep > the top three zoom levels and cut the lower six ones, but if I change the > number of zoom levels from 9 to 3, the map will be far too zoomed out on > first load, much more than intended, > http://www.villageografica.com/test50/zoomLevels2.html . Is there a way to > define exactly which ones to use? > > Magnus > -- > View this message in context: > http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053 > 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/20070705/0a2ed339/attachment.html From drspencer at hotmail.com Wed Jul 4 20:11:31 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Defining zoom levels with Google Maps In-Reply-To: References: <11439053.post@talk.nabble.com> Message-ID: <11439171.post@talk.nabble.com> I have tried using maxZoomLevel etc. but to my understanding, this only decides if the layer should be drawn or not, and it does not actually define the resolutions used. Is this correct? Also, I found some google maps resolutions over at http://dev.openlayers.org/docs/overview-summary-Google.js.html , but I am not sure of how to insert them (3, to be exact) in my example. Any suggestions? Many thanks for your rapid reply. Magnus Glen Stampoultzis-2 wrote: > > Well the resolutions are defined in an array called RESOLUTIONS in > google.js. > I'm guessing you could start by looking at altering that and/or > MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL. > > On 05/07/07, kaka wrote: >> >> >> Hi >> I am trying to create a map with only three zoom levels, using google >> maps >> as background. I have put up an example at >> http://www.villageografica.com/test50/zoomLevels.html . I would like to >> keep >> the top three zoom levels and cut the lower six ones, but if I change the >> number of zoom levels from 9 to 3, the map will be far too zoomed out on >> first load, much more than intended, >> http://www.villageografica.com/test50/zoomLevels2.html . Is there a way >> to >> define exactly which ones to use? >> >> Magnus >> -- >> View this message in context: >> http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053 >> 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/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439171 Sent from the OpenLayers Users mailing list archive at Nabble.com. From drspencer at hotmail.com Wed Jul 4 20:32:03 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer Message-ID: <11439299.post@talk.nabble.com> Hi I would like to change the colour of a small GML layer (polygons) from the standard orange to, say, green. I found the example http://www.openlayers.org/dev/examples/vector-features.html , but I am having trouble following it. I have added the sections var style_green = { strokeColor: "#00FF00", strokeOpacity: 1, strokeWidth: 3, pointRadius: 6, pointerEvents: "visiblePainted" }; and ...,null,style_green but it isn?t working and I am quite sure I have missed something. My file is at http://www.villageografica.com/test50/GMLcolour.html . Any suggestions warmly welcome. Regards, Magnus -- View this message in context: http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 Sent from the OpenLayers Users mailing list archive at Nabble.com. From gstamp at gmail.com Thu Jul 5 02:08:48 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Defining zoom levels with Google Maps In-Reply-To: <11439171.post@talk.nabble.com> References: <11439053.post@talk.nabble.com> <11439171.post@talk.nabble.com> Message-ID: Just had a bit of a play and got it working. Here's what I did: map = new OpenLayers.Map( 'map' , { controls: [new OpenLayers.Control.MouseDefaults()] , 'numZoomLevels':3}); var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, MIN_ZOOM_LEVEL: 10, MAX_ZOOM_LEVEL: 13 } ); map.addLayers([satellite]); You'll probably want to choose different MIN and MAX values but this seems to work for me. On 05/07/07, kaka wrote: > > > I have tried using maxZoomLevel etc. but to my understanding, this only > decides if the layer should be drawn or not, and it does not actually > define > the resolutions used. Is this correct? Also, I found some google maps > resolutions over at > http://dev.openlayers.org/docs/overview-summary-Google.js.html , but I am > not sure of how to insert them (3, to be exact) in my example. Any > suggestions? Many thanks for your rapid reply. > > Magnus > > > > Glen Stampoultzis-2 wrote: > > > > Well the resolutions are defined in an array called RESOLUTIONS in > > google.js. > > I'm guessing you could start by looking at altering that and/or > > MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL. > > > > On 05/07/07, kaka wrote: > >> > >> > >> Hi > >> I am trying to create a map with only three zoom levels, using google > >> maps > >> as background. I have put up an example at > >> http://www.villageografica.com/test50/zoomLevels.html . I would like to > >> keep > >> the top three zoom levels and cut the lower six ones, but if I change > the > >> number of zoom levels from 9 to 3, the map will be far too zoomed out > on > >> first load, much more than intended, > >> http://www.villageografica.com/test50/zoomLevels2.html . Is there a way > >> to > >> define exactly which ones to use? > >> > >> Magnus > >> -- > >> View this message in context: > >> > http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053 > >> 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/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439171 > 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/20070705/1617d28f/attachment.html From drspencer at hotmail.com Thu Jul 5 04:02:11 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Defining zoom levels with Google Maps In-Reply-To: References: <11439053.post@talk.nabble.com> <11439171.post@talk.nabble.com> Message-ID: <11442334.post@talk.nabble.com> Thank you Glen, this seems to be working. I used var map = new OpenLayers.Map('map', {controls: [new OpenLayers.Control.PanZoomBar()], numZoomLevels: 3}); var GMapsSat = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, MIN_ZOOM_LEVEL: 6, MAX_ZOOM_LEVEL: 8} ); However, this also seems to cause a new problem: the GML layer is no longer being drawn and I am not sure why this is the case. See http://www.villageografica.com/test50/zoomLevels3.html for a demo. Regards, Magnus Glen Stampoultzis-2 wrote: > > Just had a bit of a play and got it working. Here's what I did: > > map = new OpenLayers.Map( 'map' , { controls: [new > OpenLayers.Control.MouseDefaults()] , 'numZoomLevels':3}); > var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: > G_SATELLITE_MAP, MIN_ZOOM_LEVEL: 10, MAX_ZOOM_LEVEL: 13 } ); > map.addLayers([satellite]); > > You'll probably want to choose different MIN and MAX values but this seems > to work for me. > > On 05/07/07, kaka wrote: >> >> >> I have tried using maxZoomLevel etc. but to my understanding, this only >> decides if the layer should be drawn or not, and it does not actually >> define >> the resolutions used. Is this correct? Also, I found some google maps >> resolutions over at >> http://dev.openlayers.org/docs/overview-summary-Google.js.html , but I am >> not sure of how to insert them (3, to be exact) in my example. Any >> suggestions? Many thanks for your rapid reply. >> >> Magnus >> >> >> >> Glen Stampoultzis-2 wrote: >> > >> > Well the resolutions are defined in an array called RESOLUTIONS in >> > google.js. >> > I'm guessing you could start by looking at altering that and/or >> > MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL. >> > >> > On 05/07/07, kaka wrote: >> >> >> >> >> >> Hi >> >> I am trying to create a map with only three zoom levels, using google >> >> maps >> >> as background. I have put up an example at >> >> http://www.villageografica.com/test50/zoomLevels.html . I would like >> to >> >> keep >> >> the top three zoom levels and cut the lower six ones, but if I change >> the >> >> number of zoom levels from 9 to 3, the map will be far too zoomed out >> on >> >> first load, much more than intended, >> >> http://www.villageografica.com/test50/zoomLevels2.html . Is there a >> way >> >> to >> >> define exactly which ones to use? >> >> >> >> Magnus >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053 >> >> 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/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439171 >> 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/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11442334 Sent from the OpenLayers Users mailing list archive at Nabble.com. From eisberg at gmail.com Thu Jul 5 04:33:24 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Problem with GML features Message-ID: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> Hello everybody! I'm experiencing problems with handling the features of a GML layer, which is loaded when the page is opened. The problem is that after the 'loanend' event is raised, the features-property of the layer stays empty for some more time, so there is no way to examine the features in this handler. In my case I need to extract the bounds-properties of the features to construct an common bounds-object for zooming (the action should simulate feature selection and zooming to the selection). Any ideas, how this could work? Here's my code snapshot: function SelectFeature() { var layer = GetLayerByName(FEATURE_LAYER); //returns a MapServer layer to send a request on if (layer == null) return; var selection_url = CreateWFSGetFeatureRequest(layer, FIELD_NAME, FIELD_VALUE); //creates a WFS GetFeature-request if ((selection != null)&&(selection.map != null)) { OLMap.removeLayer(selection); selection = null; } selection = new OpenLayers.Layer.GML("Selected Objects", selection_url); OLMap.addLayer(selection); selection.displayInLayerChooser = false; selection.events.register("loadend", selection, ZoomToSelection); selection.events.triggerEvent("loadend"); } function ZoomToSelection() { var bounds = ComputeSelectionBounds(); if (bounds == null) return; OLMap.zoomToExtent(bounds); } Thanks in advance! -- Regards, Dmitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070705/ca43b724/attachment.html From louvy.joseph at gmail.com Thu Jul 5 04:40:15 2007 From: louvy.joseph at gmail.com (louvy.joseph@gmail.com) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: References: <6ae3fb590704270837n5d63723eq19f6ed3601d8e751@mail.gmail.com> Message-ID: <468CAE6F.2040100@gmail.com> Glen, is your problem solved at all? I am also seeing similar issue with Google as the base layer. While dragging the map, WFS layer seem to smoothly drag but the underlying the Google turns white before coming alive, thus resulting in flickr. I am assuming that this is related to some kind of interaction between the openlayers & google tile cacheing. Has anybody seen the issue? Thanks Louvy Glen Stampoultzis wrote: > Sorry for the late reply. I'm just a plain old WMS layer. If I'm the > only one getting this I'll see if I can come up with a self contained > example and stick is somewhere public. > > Regards, > > Glen > > > On 28/04/07, *Erik Uzureau* > wrote: > > It might help to mention what layer you're using as a baselayer :-) > > On 4/26/07, *Glen Stampoultzis* < gstamp@gmail.com > > wrote: > > I'm using the vector support in RC2 to draw a route. This is > working very nicely but in FF there's a very distracting > flicker when dragging the map around. It appears where the > lines form triangles it get black area's that appear briefly > before things are redrawn. Anyone seen this? I'm afraid I > don't have a public facing example to show. > > -- Glen > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From myardbenoit at gmail.com Thu Jul 5 05:56:12 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] A new Era of... documentation! In-Reply-To: <6fb81fc70707050254k464dd5deic03261add4231f80@mail.gmail.com> References: <20070629162430.GA15461@metacarta.com> <6ae3fb590706290929g7959dfefycf750baf406d83f8@mail.gmail.com> <6fb81fc70707050254k464dd5deic03261add4231f80@mail.gmail.com> Message-ID: <6fb81fc70707050256n2678c279u7b7c2487fc5021d8@mail.gmail.com> A bit late on this (about a week). I would like to thank all the devs who did their best to give documentation a go. I think this was (yeah, I'm optimistic) a big problem in OpenLayers and I hope that this effort will last over the months. Even though there are few reactions from the user community, be sure of that the time spent on documentation is valuable. Anyway, thanks. PS: sorry Erik for the mail.. I wonder why GMail stopped answering to list since a few months. -- Benoit Myard From bluecarto at gmail.com Thu Jul 5 07:38:38 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer In-Reply-To: <11439299.post@talk.nabble.com> References: <11439299.post@talk.nabble.com> Message-ID: You are right, you are missing something. In fact, you're mixing two different things. The map.addLayer method only accepts one single parameter. map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); If you want to apply a style to your GML layer, you must give it as an option. map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", {style: style_green})); Regards Pierre On 7/5/07, kaka wrote: > > Hi > I would like to change the colour of a small GML layer (polygons) from the > standard orange to, say, green. I found the example > http://www.openlayers.org/dev/examples/vector-features.html , but I am > having trouble following it. I have added the sections > > var style_green = { > strokeColor: "#00FF00", > strokeOpacity: 1, > strokeWidth: 3, > pointRadius: 6, > pointerEvents: "visiblePainted" > }; > > and ...,null,style_green > > but it isn?t working and I am quite sure I have missed something. My file is > at http://www.villageografica.com/test50/GMLcolour.html . Any suggestions > warmly welcome. > > Regards, > > Magnus > -- > View this message in context: http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From rkarru at gmail.com Thu Jul 5 08:59:33 2007 From: rkarru at gmail.com (Raivo Karru) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Zoom to object Message-ID: Hi! Is some solution,example how to realize zoom to object using OpenLayers. Something similar like in Ka-map! search used ( http://www.ominiverdi.org/ka-map/ka-map/htdocs/ ) Thanks! RKarru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070705/bc82e331/attachment.html From drspencer at hotmail.com Thu Jul 5 10:14:04 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer In-Reply-To: References: <11439299.post@talk.nabble.com> Message-ID: <11447188.post@talk.nabble.com> Ah, yes, thank you Pierre. By the way, how do I control the colour/opacity of the polygon (currently black) and not just the edges? http://www.villageografica.com/test50/GMLcolour.html Pierre GIRAUD wrote: > > You are right, you are missing something. In fact, you're mixing two > different things. > > The map.addLayer method only accepts one single parameter. > > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); > > If you want to apply a style to your GML layer, you must give it as an > option. > > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", > {style: style_green})); > > Regards > > Pierre > > On 7/5/07, kaka wrote: >> >> Hi >> I would like to change the colour of a small GML layer (polygons) from >> the >> standard orange to, say, green. I found the example >> http://www.openlayers.org/dev/examples/vector-features.html , but I am >> having trouble following it. I have added the sections >> >> var style_green = { >> strokeColor: "#00FF00", >> strokeOpacity: 1, >> strokeWidth: 3, >> pointRadius: 6, >> pointerEvents: "visiblePainted" >> }; >> >> and ...,null,style_green >> >> but it isn?t working and I am quite sure I have missed something. My file >> is >> at http://www.villageografica.com/test50/GMLcolour.html . Any suggestions >> warmly welcome. >> >> Regards, >> >> Magnus >> -- >> View this message in context: >> http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 >> 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/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11447188 Sent from the OpenLayers Users mailing list archive at Nabble.com. From bluecarto at gmail.com Thu Jul 5 11:40:14 2007 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer In-Reply-To: <11447188.post@talk.nabble.com> References: <11439299.post@talk.nabble.com> <11447188.post@talk.nabble.com> Message-ID: Add some more properties in your style, for example : fillColor: "#ee9900" fillOpacity: 0.4 Regards Pierre On 7/5/07, kaka wrote: > > Ah, yes, thank you Pierre. By the way, how do I control the colour/opacity of > the polygon (currently black) and not just the edges? > http://www.villageografica.com/test50/GMLcolour.html > > > > > Pierre GIRAUD wrote: > > > > You are right, you are missing something. In fact, you're mixing two > > different things. > > > > The map.addLayer method only accepts one single parameter. > > > > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); > > > > If you want to apply a style to your GML layer, you must give it as an > > option. > > > > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", > > {style: style_green})); > > > > Regards > > > > Pierre > > > > On 7/5/07, kaka wrote: > >> > >> Hi > >> I would like to change the colour of a small GML layer (polygons) from > >> the > >> standard orange to, say, green. I found the example > >> http://www.openlayers.org/dev/examples/vector-features.html , but I am > >> having trouble following it. I have added the sections > >> > >> var style_green = { > >> strokeColor: "#00FF00", > >> strokeOpacity: 1, > >> strokeWidth: 3, > >> pointRadius: 6, > >> pointerEvents: "visiblePainted" > >> }; > >> > >> and ...,null,style_green > >> > >> but it isn?t working and I am quite sure I have missed something. My file > >> is > >> at http://www.villageografica.com/test50/GMLcolour.html . Any suggestions > >> warmly welcome. > >> > >> Regards, > >> > >> Magnus > >> -- > >> View this message in context: > >> http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 > >> 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/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11447188 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From ierickson at analygis.com Thu Jul 5 11:41:38 2007 From: ierickson at analygis.com (Ian Erickson) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer In-Reply-To: <11447188.post@talk.nabble.com> References: <11439299.post@talk.nabble.com> <11447188.post@talk.nabble.com> Message-ID: <468D1132.6050506@analygis.com> Try the following: //--------------------------------------------- fillColor: "#ee9900", fillOpacity: 0.4 //--------------------------------------------- Ian Erickson AnalyGIS, LLC http://www.analygis.com kaka wrote: >Ah, yes, thank you Pierre. By the way, how do I control the colour/opacity of >the polygon (currently black) and not just the edges? >http://www.villageografica.com/test50/GMLcolour.html > > > > >Pierre GIRAUD wrote: > > >>You are right, you are missing something. In fact, you're mixing two >>different things. >> >>The map.addLayer method only accepts one single parameter. >> >>map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); >> >>If you want to apply a style to your GML layer, you must give it as an >>option. >> >>map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", >>{style: style_green})); >> >>Regards >> >>Pierre >> >>On 7/5/07, kaka wrote: >> >> >>>Hi >>>I would like to change the colour of a small GML layer (polygons) from >>>the >>>standard orange to, say, green. I found the example >>>http://www.openlayers.org/dev/examples/vector-features.html , but I am >>>having trouble following it. I have added the sections >>> >>>var style_green = { >>> strokeColor: "#00FF00", >>> strokeOpacity: 1, >>> strokeWidth: 3, >>> pointRadius: 6, >>> pointerEvents: "visiblePainted" >>> }; >>> >>>and ...,null,style_green >>> >>>but it isn?t working and I am quite sure I have missed something. My file >>>is >>>at http://www.villageografica.com/test50/GMLcolour.html . Any suggestions >>>warmly welcome. >>> >>>Regards, >>> >>>Magnus >>>-- >>>View this message in context: >>>http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 >>>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 >> >> >> >> > > > From drspencer at hotmail.com Thu Jul 5 11:56:50 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Changing the colour of a GML layer In-Reply-To: References: <11439299.post@talk.nabble.com> <11447188.post@talk.nabble.com> Message-ID: <11449369.post@talk.nabble.com> Aha! Thank you Pierre and Ian, you saved my day. Looks great. Magnus Pierre GIRAUD wrote: > > Add some more properties in your style, for example : > > fillColor: "#ee9900" > fillOpacity: 0.4 > > Regards > > Pierre > > On 7/5/07, kaka wrote: >> >> Ah, yes, thank you Pierre. By the way, how do I control the >> colour/opacity of >> the polygon (currently black) and not just the edges? >> http://www.villageografica.com/test50/GMLcolour.html >> >> >> >> >> Pierre GIRAUD wrote: >> > >> > You are right, you are missing something. In fact, you're mixing two >> > different things. >> > >> > The map.addLayer method only accepts one single parameter. >> > >> > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml")); >> > >> > If you want to apply a style to your GML layer, you must give it as an >> > option. >> > >> > map.addLayer(new OpenLayers.Layer.GML("Regions", "gml/output.gml", >> > {style: style_green})); >> > >> > Regards >> > >> > Pierre >> > >> > On 7/5/07, kaka wrote: >> >> >> >> Hi >> >> I would like to change the colour of a small GML layer (polygons) from >> >> the >> >> standard orange to, say, green. I found the example >> >> http://www.openlayers.org/dev/examples/vector-features.html , but I am >> >> having trouble following it. I have added the sections >> >> >> >> var style_green = { >> >> strokeColor: "#00FF00", >> >> strokeOpacity: 1, >> >> strokeWidth: 3, >> >> pointRadius: 6, >> >> pointerEvents: "visiblePainted" >> >> }; >> >> >> >> and ...,null,style_green >> >> >> >> but it isn?t working and I am quite sure I have missed something. My >> file >> >> is >> >> at http://www.villageografica.com/test50/GMLcolour.html . Any >> suggestions >> >> warmly welcome. >> >> >> >> Regards, >> >> >> >> Magnus >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11439299 >> >> 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/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11447188 >> 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/Changing-the-colour-of-a-GML-layer-tf4027134.html#a11449369 Sent from the OpenLayers Users mailing list archive at Nabble.com. From lorenzo at ominiverdi.com Thu Jul 5 12:21:04 2007 From: lorenzo at ominiverdi.com (Lorenzo Becchi) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Zoom to object Message-ID: <468D1A70.8080403@ominiverdi.com> > Hi! > > Is some solution,example how to realize zoom to object using OpenLayers. > Something similar like in Ka-map! search used ( > http://www.ominiverdi.org/ka-map/ka-map/htdocs/ > ) > > Thanks! > > RKarru Hi Raivo, I've wrote that ka-map code. things are not that different in OL. to make it easy, you can create an onclick function for each geo-object you have and use this two lines: -------------------------------------------- var bbox = new OpenLayers.Bounds(minx, miny, maxx, maxy); map.zoomToExtent(bbox); -------------------------------------------- where - minx, miny, maxy, maxy are the values of your object extent - map is your OL map object hope I've understood your needing ciao Lorenzo From noreply at geocartic.com Thu Jul 5 13:57:08 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] FOSS4G Presentations Message-ID: <468D30F4.6040106@geocartic.com> Those who have registered for FOSS4G have received a reminder about voting for the presentations that you'd like to see there. Thirteen of the submitted abstracts mention OpenLayers. If you're interested in seeing OpenLayers at the conference, vote for some of the presentations below (filtered by those that contain mention of OpenLayers, sorted arbitrarily by me) OpenLayers - Agile Geography in a Browser http://www.foss4g2007.org/presentations/view.php/228 Cartoweb4, a easy to use and extensible web GIS application built on top of OpenLayers. http://www.foss4g2007.org/presentations/view.php/216 Pleiades: Building a RESTful, Open Source GIS for the Humanities http://www.foss4g2007.org/presentations/view.php/7 GeoServer and the GeoWeb: KML, GeoRSS, TileCaching and SuperOverlays http://www.foss4g2007.org/presentations/view.php/141 Geopole.org: Integrating Mashups and Open Source Web-GIS http://www.foss4g2007.org/presentations/view.php/150 Operational, Timely Fire Data on an Open Source Stack. http://www.foss4g2007.org/presentations/view.php/175 GeoServer, past, present and future http://www.foss4g2007.org/presentations/view.php/111 Building air quality data analysis applications with open services http://www.foss4g2007.org/presentations/view.php/231 Metabase of cartographic resources of the Lublin voivodeship http://www.foss4g2007.org/presentations/view.php/16 CalZone - Web-based geospatial decision support framework for utilizing the Marxan reserve system design algorithm http://www.foss4g2007.org/presentations/view.php/211 ReformBallot.org: Mapping Civic Engangement in the 2007 Philadelphia Mayoral Primary http://www.foss4g2007.org/presentations/view.php/173 Avian influenza RSS web mapping exploring geographic and temporal aspects of outbreak events http://www.foss4g2007.org/presentations/view.php/105 ActionEditor - taking JSF, SEAM, OpenLayers, PostGIS, and GeoServer to build A CRUD website with some mapping http://www.foss4g2007.org/presentations/view.php/230 From jdege at korterra.com Thu Jul 5 15:44:23 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Augmenting a method? Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370A6D@mrburns.KorOffice.local> In a derived class, how do I override a method, and then call the parent's implementation of that method? In C++: class Foo() { virtual void snaffle() { cout << "Snaffle!" << endl; } } class Bar: public Foo { virtual void snaffle() { Foo::snaffle(); Foo::snaffle(); } } In OpenLayers Javascript? OpenLayers.Layer.MyGML = OpenLayers.Class.create(); OpenLayers.Layer.MyGML.prototype = OpenLayers.Class.inherit( OpenLayers.Layer.GML, { initialize: function(name, url, options) { var newArguments = new Array() newArguments.push(name, options); OpenLayers.Layer.GML.prototype.initialize.apply(this, newArguments); this.url = url; }, addFeatures: function(features) { How??? }, /** @final @type String */ CLASS_NAME: "OpenLayers.Layer.MyGML" }); From erik.uzureau at metacarta.com Thu Jul 5 17:00:15 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Augmenting a method? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370A6D@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370A6D@mrburns.KorOffice.local> Message-ID: <6ae3fb590707051400n6bdc1c15i2ef0cc74d6f19d6a@mail.gmail.com> > addFeatures: function(features) { > /// your code > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [arguments]); > /// your code > }, -e On 7/5/07, Jeff Dege wrote: > In a derived class, how do I override a method, and then call the > parent's implementation of that method? > > In C++: > > class Foo() > { > virtual void snaffle() { cout << "Snaffle!" << endl; } > } > > class Bar: public Foo > { > virtual void snaffle() { Foo::snaffle(); Foo::snaffle(); } > } > > In OpenLayers Javascript? > > > OpenLayers.Layer.MyGML = OpenLayers.Class.create(); > OpenLayers.Layer.MyGML.prototype = > OpenLayers.Class.inherit( OpenLayers.Layer.GML, { > initialize: function(name, url, options) { > var newArguments = new Array() > newArguments.push(name, options); > OpenLayers.Layer.GML.prototype.initialize.apply(this, > newArguments); > this.url = url; > }, > addFeatures: function(features) { > How??? > }, > /** @final @type String */ > CLASS_NAME: "OpenLayers.Layer.MyGML" > }); > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From brad at cubewerx.com.au Thu Jul 5 17:53:09 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: <468CAE6F.2040100@gmail.com> Message-ID: Louvy, I have the same problem I think. But this has a 'flickr' in both IE and FF. http://www.ozdemo.org/ Just change base map to Google Maps (or Hybrid) and drag away. The TerraPages is what I use as default and is a separate TileCached environment and no flickr. Cheers, Brad Spencer mailto:brad@cubewerx.com.au http://www.cubewerx.com.au -----Original Message----- From: louvy.joseph@gmail.com [mailto:louvy.joseph@gmail.com] Sent: Thursday, 5 July 2007 6:40 PM To: Glen Stampoultzis Cc: users@openlayers.org; Erik Uzureau Subject: Re: [OpenLayers-Users] Flicker while dragging map with vector in FF Glen, is your problem solved at all? I am also seeing similar issue with Google as the base layer. While dragging the map, WFS layer seem to smoothly drag but the underlying the Google turns white before coming alive, thus resulting in flickr. I am assuming that this is related to some kind of interaction between the openlayers & google tile cacheing. Has anybody seen the issue? Thanks Louvy Glen Stampoultzis wrote: > Sorry for the late reply. I'm just a plain old WMS layer. If I'm the > only one getting this I'll see if I can come up with a self contained > example and stick is somewhere public. > > Regards, > > Glen > > > On 28/04/07, *Erik Uzureau* > wrote: > > It might help to mention what layer you're using as a baselayer :-) > > On 4/26/07, *Glen Stampoultzis* < gstamp@gmail.com > > wrote: > > I'm using the vector support in RC2 to draw a route. This is > working very nicely but in FF there's a very distracting > flicker when dragging the map around. It appears where the > lines form triangles it get black area's that appear briefly > before things are redrawn. Anyone seen this? I'm afraid I > don't have a public facing example to show. > > -- Glen > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 brian at polibyte.com Thu Jul 5 19:02:13 2007 From: brian at polibyte.com (Brian Pitts) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Events on Vector Features Message-ID: <1183676533.27705.16.camel@jpod.library.emory.edu> What's the proper way to register events on Vector features? After reading http://www.nabble.com/associating-events-to-geometries-tf3426206.html I put together http://wilson.library.emory.edu/~mapserver/openlayers/SelectFeatureTest.html , but the callback method I registered is never called. My goal is to execure a method any time a click occurs within a vector feature's geometry. A snippets from the link: var callBackControl = new OpenLayers.Control.SelectFeature(vectorLayer, {callbacks: {'over':doOnHover}}); map.addControl(callBackControl); callBackControl.activate; Thanks, Brian Pitts From woodbri at swoodbridge.com Thu Jul 5 19:53:32 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] How do I do side by side maps the nav in sync? Message-ID: <468D847C.8090408@swoodbridge.com> Hi, I thought there was an example for this, but I can't find it. I need to generate a page with two OL maps that are side by side each serving different data, but I need them to navigate in sync. I can live with only one map having navigation controls, so there is a master/slave relationship if that simplifies things. Is there a demo example for this? Is anyone doing this? Can you send me a link? Any help would be greatly appreciated. -Steve From frederic.junod at camptocamp.com Fri Jul 6 01:58:56 2007 From: frederic.junod at camptocamp.com (=?UTF-8?B?RnLDqWTDqXJpYw==?= Junod) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Events on Vector Features In-Reply-To: <1183676533.27705.16.camel@jpod.library.emory.edu> References: <1183676533.27705.16.camel@jpod.library.emory.edu> Message-ID: <20070706075856.6a2aee53@localhost.localdomain> Hi Brian, Try the following: var callBackControl = new OpenLayers.Control.SelectFeature(vectorLayer, {onSelect: doOnHover, onUnselect: xxx}); ... The onUnselect method is called when the user click an other feature. Regards, fr?d Le Thu, 05 Jul 2007 19:02:13 -0400, Brian Pitts a ?crit : > What's the proper way to register events on Vector features? After > reading > http://www.nabble.com/associating-events-to-geometries-tf3426206.html > I put together > http://wilson.library.emory.edu/~mapserver/openlayers/SelectFeatureTest.html , > but the callback method I registered is never called. My goal is to > execure a method any time a click occurs within a vector feature's > geometry. > > A snippets from the link: > > var callBackControl = new > OpenLayers.Control.SelectFeature(vectorLayer, {callbacks: > {'over':doOnHover}}); map.addControl(callBackControl); > callBackControl.activate; > > Thanks, > Brian Pitts > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Fr?d?ric Junod Camptocamp SA From eisberg at gmail.com Fri Jul 6 03:54:19 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Fwd: Problem with GML features In-Reply-To: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> References: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> Message-ID: <54584fb80707060054u6bf6a0f2hb935588e9e354dc8@mail.gmail.com> Hi! I haven't got any reaction to my previous mail, so I'm trying to point your attention to my problem again in this follow-up. The problem is: after loading a GML layer the features collection of the layer stays empty (at least for some time), which means that there's no way to handle those in the loadend-event of the layer. Is there another event, which is raised after the features collection of the loaded layer is initialized? Is there any rational workaround? My next action would be setting up a timer with the setTimeout(...) function and trying to access the features collection after some time interval hoping that the features are finally loaded. However, this seems to be a very hardcoded solution. Cheers, Dmitri Mizerkin ---------- Forwarded message ---------- From: Dmitri Mizerkin Date: 05.07.2007 10:33 Subject: Problem with GML features To: users@openlayers.org Hello everybody! I'm experiencing problems with handling the features of a GML layer, which is loaded when the page is opened. The problem is that after the 'loanend' event is raised, the features-property of the layer stays empty for some more time, so there is no way to examine the features in this handler. In my case I need to extract the bounds-properties of the features to construct an common bounds-object for zooming (the action should simulate feature selection and zooming to the selection). Any ideas, how this could work? Here's my code snapshot: function SelectFeature() { var layer = GetLayerByName(FEATURE_LAYER); //returns a MapServer layer to send a request on if (layer == null) return; var selection_url = CreateWFSGetFeatureRequest(layer, FIELD_NAME, FIELD_VALUE); //creates a WFS GetFeature-request if ((selection != null)&&(selection.map != null)) { OLMap.removeLayer (selection); selection = null; } selection = new OpenLayers.Layer.GML("Selected Objects", selection_url); OLMap.addLayer(selection); selection.displayInLayerChooser = false; selection.events.register ("loadend", selection, ZoomToSelection); selection.events.triggerEvent("loadend"); } function ZoomToSelection() { var bounds = ComputeSelectionBounds(); if (bounds == null) return; OLMap.zoomToExtent(bounds); } Thanks in advance! -- Regards, Dmitri -- Gru?, Dmitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070706/13ab6158/attachment.html From woodbri at swoodbridge.com Fri Jul 6 07:54:09 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] SOLVED: How do I do side by side maps the nav in sync? In-Reply-To: <468D847C.8090408@swoodbridge.com> References: <468D847C.8090408@swoodbridge.com> Message-ID: <468E2D61.3050000@swoodbridge.com> Stephen Woodbridge wrote: > Hi, > > I thought there was an example for this, but I can't find it. > I need to generate a page with two OL maps that are side by side each > serving different data, but I need them to navigate in sync. I can live > with only one map having navigation controls, so there is a master/slave > relationship if that simplifies things. Is there a demo example for > this? Is anyone doing this? Can you send me a link? Thanks to az2a on IRC and some reading of the code, lead to this solution: map.events.register('moveend', map, function() { map2.setCenter(this.getExtent().getCenterLonLat(), this.getZoomForResolution(map.getResolution())); }); map.events.register('zoomend', map, function() { map2.setCenter(this.getExtent().getCenterLonLat(), this.getZoomForResolution(map.getResolution())); }); I created map and map2 objects, with map having all the nav controls and map2 being a slave that is synced to map. -Steve From tchule at hotmail.com Fri Jul 6 09:49:12 2007 From: tchule at hotmail.com (Benoit PESTY) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Z-index ordering in Layer Switcher Message-ID: Hello, For an application I'm working on I need to offer the possibility for the user to choose the Z-index ordering of the layers he is using. I've seen something like this in the WMSManager component but as I wanted something simpler I've modified the Layer Switcher component. The source code of my layer switcher is in attachment, in case someone else is interested. It seems to work in my environment (I've not done extensive tests), if you see things that could be done in a better way don't hesitate to tell me. For this application I will maybe have to do some other changes on my version of OpenLayers (based on 2.4 but with some custom Javascript and PHP to link my data to a PostGis database), I'll try to publish things I can publish. Tchule. _________________________________________________________________ http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07 -------------- next part -------------- A non-text attachment was scrubbed... Name: MyLayerSwitcher.js Type: application/x-javascript Size: 20028 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070706/29588a4e/MyLayerSwitcher.js From john.cole at uai.com Fri Jul 6 10:11:38 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] How do I do side by side maps the nav in s ync? Message-ID: <76758090F8686C47A44B6FF52514A1D307909D7D@hermes.uai.int> Steve, I would attach an event handler to the moveend or zoomend event off of your master map, and move the slave to match. This assumes that both are in the same projection of course :-) Something like: // assuming that your main map is in "var master" master.events.register('moveend', master, mapMoveEnd); and then have a funcitno mapMoveEnd that did a slave.setCenter based off of the new values in master (master.getCenter() and master.getZoom()). We have something similar for setting up the map in the print preview page on our hud site. John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Stephen Woodbridge Sent: Thursday, July 05, 2007 6:54 PM To: openlayers user list Subject: [OpenLayers-Users] How do I do side by side maps the nav in sync? Hi, I thought there was an example for this, but I can't find it. I need to generate a page with two OL maps that are side by side each serving different data, but I need them to navigate in sync. I can live with only one map having navigation controls, so there is a master/slave relationship if that simplifies things. Is there a demo example for this? Is anyone doing this? Can you send me a link? Any help would be greatly appreciated. -Steve _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From jdege at korterra.com Fri Jul 6 11:21:21 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Augmenting a method? In-Reply-To: <6ae3fb590707051400n6bdc1c15i2ef0cc74d6f19d6a@mail.gmail.com> References: <34E056CD4D475841B8C9ABCE956F92F6370A6D@mrburns.KorOffice.local> <6ae3fb590707051400n6bdc1c15i2ef0cc74d6f19d6a@mail.gmail.com> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370A6F@mrburns.KorOffice.local> Shouldn't that be? addFeatures: function(features) { /// your code OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [features]); /// your code }, > -----Original Message----- > From: euzuro@gmail.com [mailto:euzuro@gmail.com] On Behalf Of > Erik Uzureau > Sent: Thursday, July 05, 2007 4:00 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Augmenting a method? > > > addFeatures: function(features) { > > /// your code > > > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [arguments]); > > /// your code > > }, > > -e > > > > On 7/5/07, Jeff Dege wrote: > > In a derived class, how do I override a method, and then call the > > parent's implementation of that method? > > > > In C++: > > > > class Foo() > > { > > virtual void snaffle() { cout << "Snaffle!" << endl; } > > } > > > > class Bar: public Foo > > { > > virtual void snaffle() { Foo::snaffle(); Foo::snaffle(); } > > } > > > > In OpenLayers Javascript? > > > > > > OpenLayers.Layer.MyGML = OpenLayers.Class.create(); > > OpenLayers.Layer.MyGML.prototype = > > OpenLayers.Class.inherit( OpenLayers.Layer.GML, { > > initialize: function(name, url, options) { > > var newArguments = new Array() > > newArguments.push(name, options); > > OpenLayers.Layer.GML.prototype.initialize.apply(this, > > newArguments); > > this.url = url; > > }, > > addFeatures: function(features) { > > How??? > > }, > > /** @final @type String */ > > CLASS_NAME: "OpenLayers.Layer.MyGML" > > }); > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > From skotea at gmail.com Fri Jul 6 11:26:47 2007 From: skotea at gmail.com (skotea@gmail.com) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] how to "set up the labels and divs for the control" ? In-Reply-To: References: Message-ID: <12ba1a4a0707060826j39f21fa1h945b34c94f9134b1@mail.gmail.com> hi people, using OpenLayers.Control.LayerSwitcher... please, can someone give me a quick example how maximizeControl function and maximizeDiv property work ? I wanna write something like this. is it possible ? // first example map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false, 'maximizeDiv':something1})); // and second one please var ls = new OpenLayers.Control.LayerSwitcher(); ls.maximizeControl(something2); what is needed to replace "something1" and "something2" and set the label (title ?) and divs (minimized / maximized, ...) in the upper code ? TIA skotea (newbie) PS : where can I find online examples and tutorials about openlayers ? On 7/6/07, users-owner@openlayers.org wrote: > > You are not allowed to post to this mailing list, and your message has > been automatically rejected. If you think that your messages are > being rejected in error, contact the mailing list owner at > users-owner@openlayers.org. > > > > ---------- Forwarded message ---------- > From: skotea > To: users@openlayers.org > Date: Fri, 6 Jul 2007 08:14:05 -0700 (PDT) > Subject: how to "set up the labels and divs for the control" ? > > hi people, > > using OpenLayers.Control.LayerSwitcher... > > please, can someone give me a quick example how maximizeControl function > and > maximizeDiv property work ? > > I wanna write something like this. is it possible ? > > // first example > map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false, > 'maximizeDiv':something1})); > > // and second one please > var ls = new OpenLayers.Control.LayerSwitcher(); > ls.maximizeControl(something2); > > what is needed to replace "something1" and "something2" and set the label > (title ?) and divs (minimized / maximized, ...) in the upper code ? > > TIA > skotea (newbie) > > > -- > View this message in context: > http://www.nabble.com/how-to-%22set-up-the-labels-and-divs-for-the-control%22---tf4036245.html#a11466628 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070706/a1f3059d/attachment.html From erik.uzureau at metacarta.com Fri Jul 6 11:28:08 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Augmenting a method? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370A6F@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370A6D@mrburns.KorOffice.local> <6ae3fb590707051400n6bdc1c15i2ef0cc74d6f19d6a@mail.gmail.com> <34E056CD4D475841B8C9ABCE956F92F6370A6F@mrburns.KorOffice.local> Message-ID: <6ae3fb590707060828h7ee2379ft3aeba8ef3d589ead@mail.gmail.com> right. im sorry... in my head the 'arguments' was supposed to be pseudo code for "your list of arguments", rather than the actual JavaScript keyword 'arguments'. Sorry about that correct code is: > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [features]); (like you said)... or > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, arguments); ++E On 7/6/07, Jeff Dege wrote: > Shouldn't that be? > > addFeatures: function(features) { > /// your code > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [features]); > /// your code > }, > > > > -----Original Message----- > > From: euzuro@gmail.com [mailto:euzuro@gmail.com] On Behalf Of > > Erik Uzureau > > Sent: Thursday, July 05, 2007 4:00 PM > > To: Jeff Dege > > Cc: users@openlayers.org > > Subject: Re: [OpenLayers-Users] Augmenting a method? > > > > > addFeatures: function(features) { > > > /// your code > > > > > OpenLayers.Layer.GML.prototype.addFeatures.apply(this, [arguments]); > > > /// your code > > > }, > > > > -e > > > > > > > > On 7/5/07, Jeff Dege wrote: > > > In a derived class, how do I override a method, and then call the > > > parent's implementation of that method? > > > > > > In C++: > > > > > > class Foo() > > > { > > > virtual void snaffle() { cout << "Snaffle!" << endl; } > > > } > > > > > > class Bar: public Foo > > > { > > > virtual void snaffle() { Foo::snaffle(); Foo::snaffle(); } > > > } > > > > > > In OpenLayers Javascript? > > > > > > > > > OpenLayers.Layer.MyGML = OpenLayers.Class.create(); > > > OpenLayers.Layer.MyGML.prototype = > > > OpenLayers.Class.inherit( OpenLayers.Layer.GML, { > > > initialize: function(name, url, options) { > > > var newArguments = new Array() > > > newArguments.push(name, options); > > > OpenLayers.Layer.GML.prototype.initialize.apply(this, > > > newArguments); > > > this.url = url; > > > }, > > > addFeatures: function(features) { > > > How??? > > > }, > > > /** @final @type String */ > > > CLASS_NAME: "OpenLayers.Layer.MyGML" > > > }); > > > _______________________________________________ > > > 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 drspencer at hotmail.com Fri Jul 6 12:48:27 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] how to "set up the labels and divs for the control" ? In-Reply-To: <12ba1a4a0707060826j39f21fa1h945b34c94f9134b1@mail.gmail.com> References: <11466628.post@talk.nabble.com> <12ba1a4a0707060826j39f21fa1h945b34c94f9134b1@mail.gmail.com> Message-ID: <11468776.post@talk.nabble.com> You can find quite a few examples over at http://www.openlayers.org/dev/examples/ . Magnus skotea wrote: > > > hi people, > > using OpenLayers.Control.LayerSwitcher... > > please, can someone give me a quick example how maximizeControl function > and > maximizeDiv property work ? > > I wanna write something like this. is it possible ? > > // first example > map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false, > 'maximizeDiv':something1})); > > // and second one please > var ls = new OpenLayers.Control.LayerSwitcher(); > ls.maximizeControl(something2); > > what is needed to replace "something1" and "something2" and set the label > (title ?) and divs (minimized / maximized, ...) in the upper code ? > > TIA > skotea (newbie) > > PS : where can I find online examples and tutorials about openlayers ? > > On 7/6/07, users-owner@openlayers.org wrote: >> >> You are not allowed to post to this mailing list, and your message has >> been automatically rejected. If you think that your messages are >> being rejected in error, contact the mailing list owner at >> users-owner@openlayers.org. >> >> >> >> ---------- Forwarded message ---------- >> From: skotea >> To: users@openlayers.org >> Date: Fri, 6 Jul 2007 08:14:05 -0700 (PDT) >> Subject: how to "set up the labels and divs for the control" ? >> >> hi people, >> >> using OpenLayers.Control.LayerSwitcher... >> >> please, can someone give me a quick example how maximizeControl function >> and >> maximizeDiv property work ? >> >> I wanna write something like this. is it possible ? >> >> // first example >> map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false, >> 'maximizeDiv':something1})); >> >> // and second one please >> var ls = new OpenLayers.Control.LayerSwitcher(); >> ls.maximizeControl(something2); >> >> what is needed to replace "something1" and "something2" and set the label >> (title ?) and divs (minimized / maximized, ...) in the upper code ? >> >> TIA >> skotea (newbie) >> >> >> -- >> View this message in context: >> http://www.nabble.com/how-to-%22set-up-the-labels-and-divs-for-the-control%22---tf4036245.html#a11466628 >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/how-to-%22set-up-the-labels-and-divs-for-the-control%22---tf4036245.html#a11468776 Sent from the OpenLayers Users mailing list archive at Nabble.com. From noreply at geocartic.com Fri Jul 6 13:48:42 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Fwd: Problem with GML features In-Reply-To: <54584fb80707060054u6bf6a0f2hb935588e9e354dc8@mail.gmail.com> References: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> <54584fb80707060054u6bf6a0f2hb935588e9e354dc8@mail.gmail.com> Message-ID: <468E807A.7080708@geocartic.com> Hey Dmitri- Dmitri Mizerkin wrote: > Hi! > > I haven't got any reaction to my previous mail, so I'm trying to point > your attention to my problem again in this follow-up. > The problem is: after loading a GML layer the features collection of the > layer stays empty (at least for some time), which means that there's no > way to handle those in the loadend-event of the layer. Is there another > event, which is raised after the features collection of the loaded layer > is initialized? Is there any rational workaround? You're right. There is no good way to do what you want right now. I assume you're talking about the WFS layer in vector mode (as opposed to marker mode). When the tile for this layer is drawn a WFS request is made asynchronously - when this request returns, the GML is parsed and added to your layer. As each feature is added to your layer, the optional onFeatureInsert property of your layer (a function) is called. This is not handy if you want to know when the features are done being added. I thought there was a ticket out there already for this. I'll check - and add one if not. I'm hoping to do some work on the WFS layer in the near future. This and other issues will likely get addressed then. Tim > > Cheers, > Dmitri Mizerkin > > ---------- Forwarded message ---------- > From: *Dmitri Mizerkin* > > Date: 05.07.2007 10:33 > Subject: Problem with GML features > To: users@openlayers.org > > Hello everybody! > > I'm experiencing problems with handling the features of a GML layer, > which is loaded when the page is opened. The problem is that after the > 'loanend' event is raised, the features-property of the layer stays > empty for some more time, so there is no way to examine the features in > this handler. In my case I need to extract the bounds-properties of the > features to construct an common bounds-object for zooming (the action > should simulate feature selection and zooming to the selection). > > Any ideas, how this could work? > > Here's my code snapshot: > > function SelectFeature() { > var layer = GetLayerByName(FEATURE_LAYER); //returns a MapServer layer > to send a request on > if (layer == null) > return; > var selection_url = CreateWFSGetFeatureRequest(layer, FIELD_NAME, > FIELD_VALUE); //creates a WFS GetFeature-request > if ((selection != null)&&(selection.map != null)) { > OLMap.removeLayer (selection); > selection = null; > } > selection = new OpenLayers.Layer.GML("Selected Objects", selection_url); > OLMap.addLayer(selection); > selection.displayInLayerChooser = false; > selection.events.register ("loadend", selection, ZoomToSelection); > selection.events.triggerEvent("loadend"); > } > > function ZoomToSelection() { > var bounds = ComputeSelectionBounds(); > if (bounds == null) > return; > OLMap.zoomToExtent(bounds); > } > > Thanks in advance! > > -- > Regards, > Dmitri > > -- > Gru?, > Dmitri > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From erik.uzureau at metacarta.com Fri Jul 6 13:53:56 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Fwd: Problem with GML features In-Reply-To: <468E807A.7080708@geocartic.com> References: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> <54584fb80707060054u6bf6a0f2hb935588e9e354dc8@mail.gmail.com> <468E807A.7080708@geocartic.com> Message-ID: <6ae3fb590707061053p5f2bb697t8f9e1e33beaee83c@mail.gmail.com> I would note that the work that I'm doing in my untiled3 branch could be helpful for this. The problem is that WFS layer is no longer subclassed off of grid. I think this is a mistake, but so be it. At the very least, the work with sending loadStart and loadEnd events can be a good model. --erik On 7/6/07, Tim Schaub wrote: > Hey Dmitri- > > Dmitri Mizerkin wrote: > > Hi! > > > > I haven't got any reaction to my previous mail, so I'm trying to point > > your attention to my problem again in this follow-up. > > The problem is: after loading a GML layer the features collection of the > > layer stays empty (at least for some time), which means that there's no > > way to handle those in the loadend-event of the layer. Is there another > > event, which is raised after the features collection of the loaded layer > > is initialized? Is there any rational workaround? > > You're right. There is no good way to do what you want right now. I > assume you're talking about the WFS layer in vector mode (as opposed to > marker mode). When the tile for this layer is drawn a WFS request is > made asynchronously - when this request returns, the GML is parsed and > added to your layer. As each feature is added to your layer, the > optional onFeatureInsert property of your layer (a function) is called. > This is not handy if you want to know when the features are done being > added. > > I thought there was a ticket out there already for this. I'll check - > and add one if not. > > I'm hoping to do some work on the WFS layer in the near future. This > and other issues will likely get addressed then. > > Tim > > > > > > Cheers, > > Dmitri Mizerkin > > > > ---------- Forwarded message ---------- > > From: *Dmitri Mizerkin* > > > Date: 05.07.2007 10:33 > > Subject: Problem with GML features > > To: users@openlayers.org > > > > Hello everybody! > > > > I'm experiencing problems with handling the features of a GML layer, > > which is loaded when the page is opened. The problem is that after the > > 'loanend' event is raised, the features-property of the layer stays > > empty for some more time, so there is no way to examine the features in > > this handler. In my case I need to extract the bounds-properties of the > > features to construct an common bounds-object for zooming (the action > > should simulate feature selection and zooming to the selection). > > > > Any ideas, how this could work? > > > > Here's my code snapshot: > > > > function SelectFeature() { > > var layer = GetLayerByName(FEATURE_LAYER); //returns a MapServer layer > > to send a request on > > if (layer == null) > > return; > > var selection_url = CreateWFSGetFeatureRequest(layer, FIELD_NAME, > > FIELD_VALUE); //creates a WFS GetFeature-request > > if ((selection != null)&&(selection.map != null)) { > > OLMap.removeLayer (selection); > > selection = null; > > } > > selection = new OpenLayers.Layer.GML("Selected Objects", selection_url); > > OLMap.addLayer(selection); > > selection.displayInLayerChooser = false; > > selection.events.register ("loadend", selection, ZoomToSelection); > > selection.events.triggerEvent("loadend"); > > } > > > > function ZoomToSelection() { > > var bounds = ComputeSelectionBounds(); > > if (bounds == null) > > return; > > OLMap.zoomToExtent(bounds); > > } > > > > Thanks in advance! > > > > -- > > Regards, > > Dmitri > > > > -- > > Gru?, > > Dmitri > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 eisberg at gmail.com Fri Jul 6 14:03:26 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Fwd: Problem with GML features In-Reply-To: <6ae3fb590707061053p5f2bb697t8f9e1e33beaee83c@mail.gmail.com> References: <54584fb80707050133n2ef9bbcdp184a79fe53cdcb7f@mail.gmail.com> <54584fb80707060054u6bf6a0f2hb935588e9e354dc8@mail.gmail.com> <468E807A.7080708@geocartic.com> <6ae3fb590707061053p5f2bb697t8f9e1e33beaee83c@mail.gmail.com> Message-ID: <54584fb80707061103x65203410qa14bd3c6a27125c@mail.gmail.com> Hello, the workaround suggested by Tim will do it, because I want to zoom to a single feature at this time. Thanks for the help, guys! Cheers, Dmitri 2007/7/6, Erik Uzureau : > > I would note that the work that I'm doing in my untiled3 branch could > be helpful for this. > > The problem is that WFS layer is no longer subclassed off of grid. I > think this is a mistake, but so be it. > > At the very least, the work with sending loadStart and loadEnd events > can be a good model. > > --erik > > > On 7/6/07, Tim Schaub wrote: > > Hey Dmitri- > > > > Dmitri Mizerkin wrote: > > > Hi! > > > > > > I haven't got any reaction to my previous mail, so I'm trying to point > > > your attention to my problem again in this follow-up. > > > The problem is: after loading a GML layer the features collection of > the > > > layer stays empty (at least for some time), which means that there's > no > > > way to handle those in the loadend-event of the layer. Is there > another > > > event, which is raised after the features collection of the loaded > layer > > > is initialized? Is there any rational workaround? > > > > You're right. There is no good way to do what you want right now. I > > assume you're talking about the WFS layer in vector mode (as opposed to > > marker mode). When the tile for this layer is drawn a WFS request is > > made asynchronously - when this request returns, the GML is parsed and > > added to your layer. As each feature is added to your layer, the > > optional onFeatureInsert property of your layer (a function) is called. > > This is not handy if you want to know when the features are done being > > added. > > > > I thought there was a ticket out there already for this. I'll check - > > and add one if not. > > > > I'm hoping to do some work on the WFS layer in the near future. This > > and other issues will likely get addressed then. > > > > Tim > > > > > > > > > > Cheers, > > > Dmitri Mizerkin > > > > > > ---------- Forwarded message ---------- > > > From: *Dmitri Mizerkin* > > > > Date: 05.07.2007 10:33 > > > Subject: Problem with GML features > > > To: users@openlayers.org > > > > > > Hello everybody! > > > > > > I'm experiencing problems with handling the features of a GML layer, > > > which is loaded when the page is opened. The problem is that after the > > > 'loanend' event is raised, the features-property of the layer stays > > > empty for some more time, so there is no way to examine the features > in > > > this handler. In my case I need to extract the bounds-properties of > the > > > features to construct an common bounds-object for zooming (the action > > > should simulate feature selection and zooming to the selection). > > > > > > Any ideas, how this could work? > > > > > > Here's my code snapshot: > > > > > > function SelectFeature() { > > > var layer = GetLayerByName(FEATURE_LAYER); //returns a MapServer > layer > > > to send a request on > > > if (layer == null) > > > return; > > > var selection_url = CreateWFSGetFeatureRequest(layer, FIELD_NAME, > > > FIELD_VALUE); //creates a WFS GetFeature-request > > > if ((selection != null)&&(selection.map != null)) { > > > OLMap.removeLayer (selection); > > > selection = null; > > > } > > > selection = new OpenLayers.Layer.GML("Selected Objects", > selection_url); > > > OLMap.addLayer(selection); > > > selection.displayInLayerChooser = false; > > > selection.events.register ("loadend", selection, ZoomToSelection); > > > selection.events.triggerEvent("loadend"); > > > } > > > > > > function ZoomToSelection() { > > > var bounds = ComputeSelectionBounds(); > > > if (bounds == null) > > > return; > > > OLMap.zoomToExtent(bounds); > > > } > > > > > > Thanks in advance! > > > > > > -- > > > Regards, > > > Dmitri > > > > > > -- > > > Gru?, > > > Dmitri > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070706/ff011492/attachment.html From info at knapzakvaart.nl Fri Jul 6 16:58:33 2007 From: info at knapzakvaart.nl (Info Knapzak Vaart) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] GML layer, line not in place using Firefox Message-ID: <000b01c7c010$6bb91590$0100a8c0@SALON> Hi list I have a map using Google as baselayer, a few Text layers and two GML layers. When I activate the GML - using a .xml file to draw a line - in FireFox2 the line feature is not exactly on place. Markers parsed by the Text layer are in the exact position. In IE6+7 it works perfectly. I'm using OL 2.4. Can someone explain this behavior? Regards, Fred van Beelen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070706/05b84816/attachment.html From andy.dale at gmail.com Sat Jul 7 01:29:57 2007 From: andy.dale at gmail.com (andydale) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] ProxyHost setup under JBoss + GeoServer Message-ID: <11409680.post@talk.nabble.com> Hi, I am pretty new to using OpenLayers, and am now running into some issues. I can use OpenLayers with WMS layers from the GeoServer (war install) with out any problem. The issue occurs when trying to use a WFS layer like below. wfs = new OpenLayers.Layer.WFS("WFS fixpoint", "http://172.16.135.144:8080/geoserver/wfs?", {typename: "topp:fixpoint" ,maxfeatures: "100"}, {featureClass: OpenLayers.Feature.WFS} ); This layers in not drawn on the map, but causes no errors. After seaching around on the net and forums i have discovered that i must set the OpenLayers.ProxyHost to get the WFS layer to be displayed, and have seen many examples such as this: OpenLayers.ProxyHost="/proxy/?url="; The above will not work for me, how can i set the proxy host within JBoss. The page i am using openlayers on is a .jsp (using jsf), packed inside a simple .war archive. Has anybody managed to set up the ProxyHost under JBoss before ? Is it just a matter of packing something (python script ??) into my war archive ? Any advice would be greatly appreciated . Cheers, Andy -- View this message in context: http://www.nabble.com/ProxyHost-setup-under-JBoss-%2B-GeoServer-tf4017504.html#a11409680 Sent from the OpenLayers Users mailing list archive at Nabble.com. From fadimaali at gmail.com Sat Jul 7 09:26:26 2007 From: fadimaali at gmail.com (fadi maali) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] popup close box is not displayed? Message-ID: Hi All, I have a problem with popup's close box. here is a snippet of the code: var feature = new OpenLayers.Feature("top 10",new OpenLayers.LonLat (35,38)); popup = feature.createPopup(true); but the popup has no close box? is the problem related to the *bubble* popup? Many thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070707/07d22089/attachment.html From gregor at hostgis.com Sat Jul 7 19:17:41 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Map changes zoom level when switching maps Message-ID: <46901F15.1090406@hostgis.com> Hi, all. I've slogged through a fair amount of getting our map hammered into shape. And here it is: http://www.lynxmaps.com/openlayersdemo/ I have two issues, which I'll ask about in separate threads. If I change basemaps, the zoomlevel changes. Sometimes it moves the slider in the zoombar, sometimes not. But it does happen, every time. For example, when the map opens with LANDSAT as the base layer, note the extent covered by the overlaid parcels. Now change to NAIP basemap. It's zoomed way, way out. What are my options for getting all of the base layers to use the same set of zoom levels, so this quits happening? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Sat Jul 7 19:21:37 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Why does my WMS layer become unavailable when using some basemaps? Message-ID: <46902001.8090307@hostgis.com> Hi, all. I've slogged through a fair amount of getting our map hammered into shape. And here it is: http://www.lynxmaps.com/openlayersdemo/ I have two issues, which I'll ask about in separate threads. Note that there are several base layers to choose from, and a single WMS layer overlaid. Why is it that the WMS layer is only available when the basemap is another WMS layer (NAIP and LANDSAT), and greyed out when it's a commercial provider? I don't seem to recall this always happening, but it's definitely consistent now. Any ideas why this is happening? (I swear, I'm not this lame when it's good old Mapserver apps! :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Sat Jul 7 19:25:15 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Map changes zoom level when switching maps In-Reply-To: <46901F15.1090406@hostgis.com> References: <46901F15.1090406@hostgis.com> Message-ID: <469020DB.6040003@hostgis.com> Gregor Mosheh wrote: > http://www.lynxmaps.com/openlayersdemo/ Oh, a tad more info, to help out those generous folks who feel like helping. :) These JS files do the map setup: http://www.lynxmaps.com/openlayersdemo/map_config.js http://www.lynxmaps.com/openlayersdemo/map_load.js The first is configuration: bounding box, list of layers. The second is the code to make the map, set the extent, and so on. I am setting a maxres, minres, and maxextent on each layer, in addition to the map. Is that a no-no, or at least rife with caveats? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Sat Jul 7 19:25:16 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Why does my WMS layer become unavailable when using some basemaps? In-Reply-To: <46902001.8090307@hostgis.com> References: <46902001.8090307@hostgis.com> Message-ID: <469020DC.1060001@hostgis.com> Gregor Mosheh wrote: > http://www.lynxmaps.com/openlayersdemo/ Oh, a tad more info, to help out those generous folks who feel like helping. :) These JS files do the map setup: http://www.lynxmaps.com/openlayersdemo/map_config.js http://www.lynxmaps.com/openlayersdemo/map_load.js The first is configuration: bounding box, list of layers. The second is the code to make the map, set the extent, and so on. I am setting a maxres, minres, and maxextent on each layer, in addition to the map. Is that a no-no, or at least rife with caveats? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Sat Jul 7 19:46:16 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Reloading broken tiles? Message-ID: <469025C8.7050303@hostgis.com> A question that's come up a time or two here, is how one can reload broken tiles without reloading the entire map and losing your view, layer selection, etc. I have "OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3" but still, it happens sometimes. Is this param still used, and is increasing it my only resort? Or does there exist a method for refreshing the current map view and reloading all of the tiles -- does map.redraw() do this? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From aaime at openplans.org Sun Jul 8 05:53:11 2007 From: aaime at openplans.org (Andrea Aime) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Reloading broken tiles? In-Reply-To: <469025C8.7050303@hostgis.com> References: <469025C8.7050303@hostgis.com> Message-ID: <4690B407.3070200@openplans.org> Gregor Mosheh ha scritto: > A question that's come up a time or two here, is how one can reload > broken tiles without reloading the entire map and losing your view, > layer selection, etc. > > I have "OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3" but still, it happens > sometimes. Is this param still used, and is increasing it my only > resort? Or does there exist a method for refreshing the current map view > and reloading all of the tiles -- does map.redraw() do this? > I'm also curious about this. I have the impression sometimes OpenLayers is giving up on a tile too soon, is there any way to make it wait more? Cheers Andrea From eric.c2c at gmail.com Sun Jul 8 09:41:50 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] popup close box is not displayed? In-Reply-To: References: Message-ID: <5ec103de0707080641g4bcb4ee8t45e63f34dc564546@mail.gmail.com> On 7/7/07, fadi maali wrote: > Hi All, > > I have a problem with popup's close box. > > here is a snippet of the code: > var feature = new OpenLayers.Feature("top 10",new > OpenLayers.LonLat (35,38)); > popup = feature.createPopup(true); > > but the popup has no close box? is the problem related to the *bubble* > popup? Hi Fadi What version of OpenLayers are you using? There was a bug () that got fixed in 2.4 RC4. If you're using the current stable release (2.4) you should not see this bug. If you're on the stable release and yet see the bug, report the problem here again and we'll look into it... Thx, -- Eric From crschmidt at metacarta.com Sun Jul 8 12:00:59 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Reloading broken tiles? In-Reply-To: <4690B407.3070200@openplans.org> References: <469025C8.7050303@hostgis.com> <4690B407.3070200@openplans.org> Message-ID: <20070708160059.GF27344@metacarta.com> On Sun, Jul 08, 2007 at 11:53:11AM +0200, Andrea Aime wrote: > Gregor Mosheh ha scritto: > > A question that's come up a time or two here, is how one can reload > > broken tiles without reloading the entire map and losing your view, > > layer selection, etc. > > > > I have "OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3" but still, it happens > > sometimes. Is this param still used, and is increasing it my only > > resort? Or does there exist a method for refreshing the current map view > > and reloading all of the tiles -- does map.redraw() do this? > > > > I'm also curious about this. I have the impression sometimes OpenLayers > is giving up on a tile too soon, is there any way to make it wait more? OpenLayers only sets the 'src' attribute of an image tag -- nothing more. When images don't load, they don't load because the browser decided not to load them -- I have no idea why this happens. The IMAGE_RELOAD_ATTEMPTS is the only way I know of to fix this, and I have no idea why this wouldn't work. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Jul 8 12:04:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Simple Image Map In-Reply-To: <451684655.20070704153215@jpluebbert.de> References: <451684655.20070704153215@jpluebbert.de> Message-ID: <20070708160402.GG27344@metacarta.com> On Wed, Jul 04, 2007 at 03:32:15PM +0200, Jan Patrick L?bbert wrote: > But I didn't find any documentation that told me how to do that. Can Tilecache > cut my Image into tiles? How do I configure that (ImageLayer was mentioned in > another mail but from the code I think I got that that's what I'm searching but > no word on how to configure)? http://svn.tilecache.org/trunk/tilecache/EXAMPLES Other than that, you'll need to dig into the code. > I'm also thinking about cutting my map into tile via a script myself (think this > http://wiki.osgeo.org/index.php/Image:Tms.png is how they are named?) and simply > put it on the right places (directories), but how do I configure Openlayers to > use them because it's no WMS or whatever service then ... Layer.TMS: http://openlayers.org/dev/examples/tms.html Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Jul 8 12:06:31 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] ProxyHost setup under JBoss + GeoServer In-Reply-To: <11409680.post@talk.nabble.com> References: <11409680.post@talk.nabble.com> Message-ID: <20070708160631.GH27344@metacarta.com> On Fri, Jul 06, 2007 at 10:29:57PM -0700, andydale wrote: > > Hi, > > I am pretty new to using OpenLayers, and am now running into some issues. > > I can use OpenLayers with WMS layers from the GeoServer (war install) with > out any problem. The issue occurs when trying to use a WFS layer like > below. > > wfs = new OpenLayers.Layer.WFS("WFS fixpoint", > "http://172.16.135.144:8080/geoserver/wfs?", > {typename: "topp:fixpoint" ,maxfeatures: "100"}, > {featureClass: OpenLayers.Feature.WFS} ); > > This layers in not drawn on the map, but causes no errors. After seaching > around on the net and forums i have discovered that i must set the > OpenLayers.ProxyHost to get the WFS layer to be displayed, and have seen > many examples such as this: > > OpenLayers.ProxyHost="/proxy/?url="; > > The above will not work for me, how can i set the proxy host within JBoss. > The page i am using openlayers on is a .jsp (using jsf), packed inside a > simple .war archive. Has anybody managed to set up the ProxyHost under > JBoss before ? Is it just a matter of packing something (python script ??) > into my war archive ? Any advice would be greatly appreciated . The best thing for you to do is probably to get the OpenLayers file served from within GeoServer. So, your OpenLayers HTML should be at http://172.16.135.144:8080/openlayers/ or whatever. Once you do that, you don't need a proxyhost anymore. Anything else is going to be vastly more complex. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Jul 8 12:07:58 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Possible bug with open layers and safari In-Reply-To: References: Message-ID: <20070708160758.GI27344@metacarta.com> On Wed, Jul 04, 2007 at 05:40:22PM +1000, Glen Stampoultzis wrote: > Hi. Today I was setting the visibility of a layer using the setVisibility > call and noticed some incorrect behaviour under safari 2 and 3. I then went > to the openlayers.org home page and started fiddling with the Canada > transparent layer and noticed the same issue. > > To reproduce you need to switch on the Canada layer, switch it off then try > and switch it on again (without scrolling). You should notice that it does > not appear again. If you scroll or zoom around you'll find it can come > back. By scrolling around you can get the situation where you have some of > the transparent tiles visible and some missing. > > Can someone please confirm they can reproduce this one before I file a bug > report? Yes, I can reproduce this. Please file a bug report. -- Christopher Schmidt MetaCarta From gregor at hostgis.com Sun Jul 8 12:54:11 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Reloading broken tiles? In-Reply-To: <20070708160059.GF27344@metacarta.com> References: <469025C8.7050303@hostgis.com> <4690B407.3070200@openplans.org> <20070708160059.GF27344@metacarta.com> Message-ID: <469116B3.40400@hostgis.com> Christopher Schmidt wrote: > OpenLayers only sets the 'src' attribute of an image tag -- nothing > more. When images don't load, they don't load because the browser > decided not to load them -- I have no idea why this happens. The > IMAGE_RELOAD_ATTEMPTS is the only way I know of to fix this, and I have > no idea why this wouldn't work. Yeah; even Google Maps does this now and then. No sweat, but I do have some other applications for such functionality. Does there exist a method that orders OpenLayers to refresh the current map view, re-download all tiles for the current viewport, or for a specific layer? A real-world use comes to mind when using dynamic data, e.g. having added a new point to a database via some PHP script, I'd like to redraw the WMS layer without my reloading the entire page and losing my place. I don't see documentation of a .redraw() method, for example, on the Layer or Map objects, so I take it the answer is No here? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gstamp at gmail.com Mon Jul 9 03:08:20 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: References: <468CAE6F.2040100@gmail.com> Message-ID: On 06/07/07, bradleyspencer wrote: > > Louvy, > > I have the same problem I think. But this has a 'flickr' in both IE and > FF. > > http://www.ozdemo.org/ > > Just change base map to Google Maps (or Hybrid) and drag away. The > TerraPages is what I use as default and is a separate TileCached > environment > and no flickr. > > Cheers, > > Brad Spencer > mailto:brad@cubewerx.com.au > http://www.cubewerx.com.au > > Hi Brad, Hi. Sorry for the lateness of my reply. I only just noticed your message. The issue was being caused for me because I was was erasing and redrawing a vector when any pan occurred. This would cause black triangles to appear for me when it was erased. This was fixed in FF by moving the erase into the same event as the draw. Previously I was erasing the vector making an ajax request then drawing a new vector. Unfortunately this causes a weird ghost line in Internet Explorer for a split second so I had to keep the erase before the ajax request in Internet Explorer. this means the line disappears until the ajax request comes back which is unfortunate. The flicker I was experiencing doesn't seem to be the same thing that I'm seeing on your site. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070709/4c742187/attachment.html From gstamp at gmail.com Mon Jul 9 03:22:10 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] Possible bug with open layers and safari In-Reply-To: <20070708160758.GI27344@metacarta.com> References: <20070708160758.GI27344@metacarta.com> Message-ID: On 09/07/07, Christopher Schmidt wrote: > On Wed, Jul 04, 2007 at 05:40:22PM +1000, Glen Stampoultzis wrote: > > Hi. Today I was setting the visibility of a layer using the setVisibility > > call and noticed some incorrect behaviour under safari 2 and 3. I then went > > to the openlayers.org home page and started fiddling with the Canada > > transparent layer and noticed the same issue. > > > > To reproduce you need to switch on the Canada layer, switch it off then try > > and switch it on again (without scrolling). You should notice that it does > > not appear again. If you scroll or zoom around you'll find it can come > > back. By scrolling around you can get the situation where you have some of > > the transparent tiles visible and some missing. > > > > Can someone please confirm they can reproduce this one before I file a bug > > report? > > Yes, I can reproduce this. Please file a bug report. > Ticket #814 From andy.dale at gmail.com Mon Jul 9 03:45:00 2007 From: andy.dale at gmail.com (Andy Dale) Date: Wed Sep 1 17:15:35 2010 Subject: [OpenLayers-Users] ProxyHost setup under JBoss + GeoServer In-Reply-To: <20070708160631.GH27344@metacarta.com> References: <11409680.post@talk.nabble.com> <20070708160631.GH27344@metacarta.com> Message-ID: Hi, Ok I now deploy my simple OpenLayers .war archive in the same JBoss instance as the GeoServer .war archive and the WFS layer is now displayed. It currently displays the features as markers, is it possible to display them as point as in a Vector layer ?? I have managed to find a reference to WFS Vector mode in this post http://openlayers.org/pipermail/dev/2007-March/000499.html What i basically want it to be able to select features that are displayed (i know how to do this in a Vector layer), would it be possible to map the results of WFS requests to points in a GML layer, similar to the below example: http://openlayers.org/dev/examples/gml-layer.html Thanks, Andy On 08/07/07, Christopher Schmidt wrote: > > On Fri, Jul 06, 2007 at 10:29:57PM -0700, andydale wrote: > > > > Hi, > > > > I am pretty new to using OpenLayers, and am now running into some > issues. > > > > I can use OpenLayers with WMS layers from the GeoServer (war install) > with > > out any problem. The issue occurs when trying to use a WFS layer like > > below. > > > > wfs = new OpenLayers.Layer.WFS("WFS fixpoint", > > " http://172.16.135.144:8080/geoserver/wfs?", > > {typename: "topp:fixpoint" ,maxfeatures: "100"}, > > {featureClass: OpenLayers.Feature.WFS} ); > > > > This layers in not drawn on the map, but causes no errors. After > seaching > > around on the net and forums i have discovered that i must set the > > OpenLayers.ProxyHost to get the WFS layer to be displayed, and have seen > > many examples such as this: > > > > OpenLayers.ProxyHost= "/proxy/?url="; > > > > The above will not work for me, how can i set the proxy host within > JBoss. > > The page i am using openlayers on is a .jsp (using jsf), packed inside a > > simple .war archive. Has anybody managed to set up the ProxyHost under > > JBoss before ? Is it just a matter of packing something (python script > ??) > > into my war archive ? Any advice would be greatly appreciated . > > The best thing for you to do is probably to get the OpenLayers file > served from within GeoServer. So, your OpenLayers HTML should be at > http://172.16.135.144:8080/openlayers/ or whatever. Once you do that, > you don't need a proxyhost anymore. Anything else is going to be vastly > more complex. > > Regards, > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070709/0bfc96bf/attachment.html From f.husson at brgm.fr Mon Jul 9 10:06:19 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] SLD with WFS ?? References: <200705291152.59566.yjacolin@free.fr> Message-ID: <9B3EB2ACEB474549921FEA4EEB68FEE33BA846@RES005.brgm.fr> Hi all, Can I bind a SLD with a WFS layer, more or less like that : Layer = new OpenLayers.Layer.WFS( name, "/geoserver/wfs", { typename: name, extractAttributes: true, SLD : "http://localhost:8080/geoserver/data/styles/Lakes.sld"} ); For the moment, that doesn't work... Is this possible ? Many thanks , Florian ********************************************************************************************** Pensez à l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) désigné(s) comme tel(s). En cas de réception par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifiée à l'émission, il convient néanmoins de s'assurer de l'absence de contamination à sa réception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** From erik.uzureau at metacarta.com Mon Jul 9 10:24:02 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Reloading broken tiles? In-Reply-To: <469116B3.40400@hostgis.com> References: <469025C8.7050303@hostgis.com> <4690B407.3070200@openplans.org> <20070708160059.GF27344@metacarta.com> <469116B3.40400@hostgis.com> Message-ID: <6ae3fb590707090724g14b8fb9ened36790d17a101a9@mail.gmail.com> On 7/8/07, Gregor Mosheh wrote: > Christopher Schmidt wrote: > > OpenLayers only sets the 'src' attribute of an image tag -- nothing > > more. When images don't load, they don't load because the browser > > decided not to load them -- I have no idea why this happens. The > > IMAGE_RELOAD_ATTEMPTS is the only way I know of to fix this, and I have > > no idea why this wouldn't work. > > Yeah; even Google Maps does this now and then. No sweat, but I do have > some other applications for such functionality. > > Does there exist a method that orders OpenLayers to refresh the current > map view, re-download all tiles for the current viewport, or for a > specific layer? If you are using trunk, there is now a function "redraw()" on Layer that should work to redraw layers, but there is not a map.redraw(). What you would do is call map.setCenter() and passing "true" for the "zoomChanged" flag. If people think a map.redraw() function would be helpful, please let me know and I can add that. e > > A real-world use comes to mind when using dynamic data, e.g. having > added a new point to a database via some PHP script, I'd like to redraw > the WMS layer without my reloading the entire page and losing my place. > I don't see documentation of a .redraw() method, for example, on the > Layer or Map objects, so I take it the answer is No here? > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From gregor at hostgis.com Mon Jul 9 10:32:04 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Reloading broken tiles? In-Reply-To: <6ae3fb590707090724g14b8fb9ened36790d17a101a9@mail.gmail.com> References: <469025C8.7050303@hostgis.com> <4690B407.3070200@openplans.org> <20070708160059.GF27344@metacarta.com> <469116B3.40400@hostgis.com> <6ae3fb590707090724g14b8fb9ened36790d17a101a9@mail.gmail.com> Message-ID: <469246E4.8040804@hostgis.com> > If you are using trunk, there is now a function "redraw()" on Layer > that should work to redraw layers, but there is not a map.redraw(). > What you would do is call map.setCenter() and passing "true" for the > "zoomChanged" flag. Nice; thanks for the tip and the trick. Since our app includes a mini-app for editing data, with the expectation for the map to refresh to show the change, this is just great. > If people think a map.redraw() function would be helpful, please let > me know and I can add that. The use I had in mind was just to redraw all layers, which could be implemented with a simple loop: for (i in this.layers) this.layers[i].redraw -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at metacarta.com Mon Jul 9 10:44:39 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] SLD with WFS ?? In-Reply-To: <9B3EB2ACEB474549921FEA4EEB68FEE33BA846@RES005.brgm.fr> References: <200705291152.59566.yjacolin@free.fr> <9B3EB2ACEB474549921FEA4EEB68FEE33BA846@RES005.brgm.fr> Message-ID: <20070709144439.GA31364@metacarta.com> On Mon, Jul 09, 2007 at 04:06:19PM +0200, Husson Florian wrote: > Hi all, > > Can I bind a SLD with a WFS layer, more or less like that : > > Layer = new OpenLayers.Layer.WFS( name, "/geoserver/wfs", > > { typename: name, extractAttributes: true, SLD : > "http://localhost:8080/geoserver/data/styles/Lakes.sld"} ); > > For the moment, that doesn't work... Is this possible ? It's not possible with existing code. It would be possible to write code to make this work. Regards, -- Christopher Schmidt MetaCarta From erik.uzureau at metacarta.com Mon Jul 9 12:28:15 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] grid funkyness with 2.4RC3 In-Reply-To: <777ee809ca2c919d07667f40f5ad7cc6@145.50.39.11> References: <777ee809ca2c919d07667f40f5ad7cc6@145.50.39.11> Message-ID: <6ae3fb590707090928q4b738f5fue4f567ebc78af4b3@mail.gmail.com> Hi Bart, Is this problem still happening in 2.4 release? Could you make an example html so that this would be easier to test? Erik On 5/8/07, Bart van den Eijnden (OSGIS) wrote: > Some more info on this problem. It can only be reproduced in Internet > Explorer (we use 6) and not in Firefox. > > There are 2 baselayers in the application: one WMS untiled and one tiled WMS > layer pointing to TileCache. > > To reproduce we have to: > 1) set WMS.Untiled as baselayer > 2) zoom out > 3) before the baselayer appears, switch the baselayer > > Hopefully this rings a bell. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Bart van den Eijnden OSGIS > Naar: users@openlayers.org > Onderwerp: [OpenLayers-Users] grid funkyness with 2.4RC3 > Datum: 08/05/07 05:53 > > > Hi list, > > > > we still experience grid funkyness with 2.4RC3, see: > > > > http://www.osgis.nl/download/gridfunkyness.png > > > > I've tracked down the boundingboxes of the tilecache requests, starting at > > upperleft (1) and going down to lowerright (9): > > > > 1 2 3 > > 4 5 6 > > 7 8 9 > > > > 1: BBOX=-50000,479200.467643,39600.233821,568800.701464 > > 2: BBOX=-50000,658400.935286,308400.935286,1016801.870572 > > 3: BBOX=129200.467643,479200.467643,218800.701464,568800.701464 > > 4: BBOX=-50000,479200.467643,39600.233821,568800.701464 > > 5: BBOX=-50000,300000,308400.935286,658400.935286 > > 6: BBOX=129200.467643,389600.233821,218800.701464,479200.467643 > > 7: BBOX=93360.374114,461280.420879,111280.420879,479200.467643 > > 8: tile failed loading (white pixel) > > 9: BBOX=129200.467643,461280.420879,147120.514407,479200.467643 > > > > but have no idea on how to tackle this problem. Any ideas highly > > appreciated. > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > > > > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Mon Jul 9 12:37:49 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] strange click events with internet explorer In-Reply-To: References: <20070531142151.GD26260@metacarta.com> <465F08F0.1070800@pdx.edu> Message-ID: <6ae3fb590707090937n446dc0b4we50c6d056eccc126@mail.gmail.com> ...so the functionality that you want here is to be able to override the cached offsets in getMousePosition? Maybe we should make that an option (for people whose pages are doing funky things)? I know that the offsets are in there because those mousing functions get called a *lot* and the less overhead in them the better. Thoughts? anyone? Erik On 6/1/07, Christian Sengstock wrote: > After debugging i found the problem to be in the method: > > OpenLayers.Events#getMousePosition > > Problem is, that i have my map div element in a "dislpay:none" div at > startup (so the map div offsets are 0). However inside of > #getMousePosition there's just once the check for the div offsets at > first method call. After that the offsets are saved as a member var. > > So my problem was solved by checking the map div element offsets each > time i call #getMousePosition .. thus: > > getMousePosition: function (evt) { > // if (!this.element.offsets) { // COMMENTED > this.element.offsets = OpenLayers.Util.pagePosition(this.element); > this.element.offsets[0] += (document.documentElement.scrollLeft > || document.body.scrollLeft); > this.element.offsets[1] += (document.documentElement.scrollTop > || document.body.scrollTop); > // } // COMMENTED > return new OpenLayers.Pixel( > (evt.clientX + (document.documentElement.scrollLeft > || document.body.scrollLeft)) - > this.element.offsets[0], > (evt.clientY + (document.documentElement.scrollTop > || document.body.scrollTop)) - this.element.offsets[1] > ); > }, > > > > I saw that most of the click handling stuff comes from the prototype > library. Wouldn't it be easier using the prototype methods directly ( > and make use of all the benefits of a constantly enhanced library) ? > > Chris > > > > 2007/5/31, percy : > > This sounds similar to a problem I had last October. I think it was > > fixed in version 2.2, I'll paste the email below... > > Percy > > > > -------- Original Message -------- > > Subject: Re: [OpenLayers-Users] "interesting" cross browser problem > > with mouse click position > > Date: Fri, 27 Oct 2006 11:09:34 -0700 > > From: percy > > To: Christopher Schmidt > > CC: users@openlayers.org > > References: <20061011160003.A6010EDFAF@rainier.metacarta.com> > > <45401072.3020304@pdx.edu> <20061026143712.GB15808@metacarta.com> > > > > that fixed it, thanks! > > > > any idea when 2.2 will become the "stable" release? > > > > I just got the SVN version out yesterday and was playing with that SWEET > > new MousePosition control. I need to wait to put that on our production > > server until it gets blessed, though. > > > > Thanks again for the groovy interface, > > Percy > > > > Christopher Schmidt wrote: > > > On Wed, Oct 25, 2006 at 06:33:38PM -0700, percy wrote: > > > > > >> Hi All, > > >> > > >> We are attempting to use an openlayers frontend to a kamap tiled > > backend. > > >> > > >> My test page, http://ngmdb.usgs.gov/ol/examples/ngmdb4.html , works > > >> great in both "major" browsers. However when we integrate it into the > > >> main search page (which is not yet on a public site, but here's a > > >> simpler Kamap version: http://ngmdb.usgs.gov/ngm_compsearch_map.html) we > > >> get errant behaviour with regard to how the mouseclicks are handled by > > >> OpenLayers in FireFox! > > >> > > >> to see this in action, just edit your test file by sticking in this div > > >> just after the body tag: > > >> > > >>
> > >> Push the map down the screen > > >>
> > >> > > >> and then load the test file in a browser. firefox will exhibit the same > > >> breaking behavior as it does on the working page!" > > >> > > > > > > Mistakenly sent my response to Percy, rather than to the list: This was > > > fixed with r1692, http://trac.openlayers.org/changeset/1692 closing bug > > > #333, http://trac.openlayers.org/ticket/333 , and the patch available at > > > the bottom of the page on r1692 should allow you to fix this issue for > > > older OpenLayers instances. Alternatively, this fix is included in the > > > 2.2-rc1 currently being tested, and will be included in the final 2.2 > > > release. > > > > > > Regards, > > > > > > > Christopher Schmidt wrote: > > > On Thu, May 31, 2007 at 11:00:08AM +0200, Christian Sengstock wrote: > > >> Is this a known problem and is there maybe a workaround? I think the > > >> problem depends on where the map div is located in the DOM, because it > > >> worked properly when i tested the MouseToolbar with a very basic html > > >> page (just the map div). > > > > > > I'm not aware of this problem, or a workaround. (This just means I > > > haven't run into it, largely because I mostly use simple DOMs :)) > > > > > > Anyone else run into this issue? > > > > > > Regards, > > > > -- > > David Percy > > Geospatial Data Manager > > Geology Department > > Portland State University > > http://gisgeek.pdx.edu > > 503-725-3373 > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Mon Jul 9 12:43:35 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] FW: OpenLayers Beginners Questions In-Reply-To: <999C454C-7B56-4F6E-B05A-1D663918357B@email.arc.nasa.gov> References: <001d01c7b095$9b791d50$321412ac@geosp.uq.edu.au> <20070617120423.GA16304@metacarta.com> <999C454C-7B56-4F6E-B05A-1D663918357B@email.arc.nasa.gov> Message-ID: <6ae3fb590707090943v7835644cp9080e3445551f9fd@mail.gmail.com> Made ticket: http://trac.openlayers.org/ticket/817 On 6/17/07, Matt Hancher wrote: > On Jun 17, 2007, at 5:04 AM, Christopher Schmidt wrote: > > >> 2. > >> > >> Problem with "var pointLayer = new OpenLayers.Layer.Vector("Point > >> Layer");" and similar (Line and Polygon): All draw controls seem > >> to draw > >> points and vertices south-east of where the mouse-click occurred > >> by about > >> 1/2 of the diameter of the drawn Point-Circle. That means all > >> drawn features > >> are miss-placed. Is this a bug or is it just that I do use the > >> draw feature > >> wrongly? Source attached below. The website is at this stage not > >> public for > >> administrative reasons; sorry. > > > > Internet Explorer has problems with its 'box model': the 3px border > > you're putting on your map is causing the browser to incorrectly > > report > > your mouse position relative to the map. If you remove that border, > > this > > will be fixed: you can instead create a slightly more complicated map > > setup, with the map div inside another div which does have a border, > > rather than putting it directly on a map. > > > > Erik, this is a bug we might be able to work around, can you file a > > ticket for 2.6 to look at this? Gerd, if you or anyone want to > > submit a > > patch before that, then it should be able to make it into 2.5. The > > function to look into is OpenLayers.Events.getMousePosition(). > > For what it's worth, I've encountered a similar issue using Firefox > under > certain specific situations. For example, again modifying the > editingtoolbar.html example, try this: > >
id="map">
> > In this case getMousePosition() appears not to properly translate > from client > coordinates to map-local coordinates, with an offset equal to the > 20px margin. > The problem goes away if you use padding instead of margin, if you > make the > table non-absolute, if you use a div instead of a table, or if you > use WebKit > instead of Firefox. So this was easy enough for me to work around on > my own, > but I thought if anybody starts looking at adding workarounds to > getMousePosition() > they might want to know about it. > > Matt > > Matthew D. Hancher > Intelligent Systems Division > NASA Ames Research Center > Official: mdh@email.arc.nasa.gov > Personal: mdh@maximumentropy.org > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From noreply at geocartic.com Mon Jul 9 13:57:37 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] SLD with WFS ?? In-Reply-To: <9B3EB2ACEB474549921FEA4EEB68FEE33BA846@RES005.brgm.fr> References: <200705291152.59566.yjacolin@free.fr> <9B3EB2ACEB474549921FEA4EEB68FEE33BA846@RES005.brgm.fr> Message-ID: <46927711.4090908@geocartic.com> Hello- Husson Florian wrote: > Can I bind a SLD with a WFS layer, more or less like that : > > Layer = new OpenLayers.Layer.WFS( name, "/geoserver/wfs", > > { typename: name, extractAttributes: true, SLD : > "http://localhost:8080/geoserver/data/styles/Lakes.sld"} ); > > For the moment, that doesn't work... Is this possible ? Note that the WFS layer takes 4 arguments[1]. You are including the "SLD" and "extractAttributes" properties in the third argument above. These get mapped to parameter names in the GetFeature request. The "extractAttributes" property belongs in the options argument (the fourth). This tells OpenLayers to extract all attributes of the returned features. It doesn't mean anything as a parameter in the GetFeature request. Putting the "SLD" parameter in the third argument makes it one of the named parameters in your GetFeature query string. For WMS, you can do this - make a GetMap request with a URL to an SLD doc. The WFS spec does not say what to do with an SLD parameter in the GetFeature request. This means that the way you've set things up above, you shouldn't expect anything to happen. If you did mean to include the SLD property in the options argument, as Chis mentions, this also currently means nothing to OpenLayers. This could change in the future. Hope that makes sense, Tim [1] http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/WFS-js.html#OpenLayers.Layer.WFS.OpenLayers.Layer.WFS From bartvde at osgis.nl Mon Jul 9 14:02:13 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] grid funkyness with 2.4RC3 In-Reply-To: <6ae3fb590707090928q4b738f5fue4f567ebc78af4b3@mail.gmail.com> References: <777ee809ca2c919d07667f40f5ad7cc6@145.50.39.11> <6ae3fb590707090928q4b738f5fue4f567ebc78af4b3@mail.gmail.com> Message-ID: <46927825.1080301@osgis.nl> Hi Erik, it was still happening but we found a workaround, which I had already used before: http://trac.openlayers.org/ticket/504 Best regards, Bart Erik Uzureau schreef: > Hi Bart, > > Is this problem still happening in 2.4 release? > > Could you make an example html so that this would > be easier to test? > > Erik > > On 5/8/07, Bart van den Eijnden (OSGIS) wrote: >> Some more info on this problem. It can only be reproduced in Internet >> Explorer (we use 6) and not in Firefox. >> >> There are 2 baselayers in the application: one WMS untiled and one >> tiled WMS >> layer pointing to TileCache. >> >> To reproduce we have to: >> 1) set WMS.Untiled as baselayer >> 2) zoom out >> 3) before the baselayer appears, switch the baselayer >> >> Hopefully this rings a bell. >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: Bart van den Eijnden OSGIS >> Naar: users@openlayers.org >> Onderwerp: [OpenLayers-Users] grid funkyness with 2.4RC3 >> Datum: 08/05/07 05:53 >> >> > Hi list, >> > >> > we still experience grid funkyness with 2.4RC3, see: >> > >> > http://www.osgis.nl/download/gridfunkyness.png >> > >> > I've tracked down the boundingboxes of the tilecache requests, >> starting at >> > upperleft (1) and going down to lowerright (9): >> > >> > 1 2 3 >> > 4 5 6 >> > 7 8 9 >> > >> > 1: BBOX=-50000,479200.467643,39600.233821,568800.701464 >> > 2: BBOX=-50000,658400.935286,308400.935286,1016801.870572 >> > 3: BBOX=129200.467643,479200.467643,218800.701464,568800.701464 >> > 4: BBOX=-50000,479200.467643,39600.233821,568800.701464 >> > 5: BBOX=-50000,300000,308400.935286,658400.935286 >> > 6: BBOX=129200.467643,389600.233821,218800.701464,479200.467643 >> > 7: BBOX=93360.374114,461280.420879,111280.420879,479200.467643 >> > 8: tile failed loading (white pixel) >> > 9: BBOX=129200.467643,461280.420879,147120.514407,479200.467643 >> > >> > but have no idea on how to tackle this problem. Any ideas highly >> > appreciated. >> > >> > Best regards, >> > Bart >> > >> > -- >> > Bart van den Eijnden >> > OSGIS, Open Source GIS >> > http://www.osgis.nl >> > >> > >> > >> > >> > >> > _______________________________________________ >> > Users mailing list >> > Users@openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> > >> > >> >> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde@osgis.nl http://www.osgis.nl From erik.uzureau at metacarta.com Mon Jul 9 14:06:05 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Issue with removeMarker In-Reply-To: References: Message-ID: <6ae3fb590707091106y55a54c72rd1d68ff843005b17@mail.gmail.com> Thanks for the tip on this Glen. I think you're very right. I've made a ticket: http://trac.openlayers.org/ticket/818 If someone wants to make a patch they are welcome. If not, it's on my queue of things to do. Erik On 6/18/07, Glen Stampoultzis wrote: > None of my recent messages to this list have made it through as far as I > know. Hope this one makes it. > > The removeMarker call in Markers.js assumes internal knowledge about > OpenLayer.Icon. Since I've created my own version of Icon which doesn't > have the same structure this function fails: > > /** > * @param {OpenLayers.Marker} marker > */ > removeMarker: function(marker) { > OpenLayers.Util.removeItem(this.markers, marker); > if ((marker.icon != null) && ( marker.icon.imageDiv != null) && > (marker.icon.imageDiv.parentNode == this.div) ) { > this.div.removeChild(marker.icon.imageDiv); > } > }, > > Perhaps this should be moved onto the Icon.js so it can clean itself up? > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From erik.uzureau at metacarta.com Mon Jul 9 14:12:51 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Linestring behavior in IE6 In-Reply-To: <20070619143027.GA27609@metacarta.com> References: <6fb81fc70706190658se813ac9wc6c119e5d4f593e1@mail.gmail.com> <20070619143027.GA27609@metacarta.com> Message-ID: <6ae3fb590707091112x51f76717gf9e738e5d77bf1ca@mail.gmail.com> Ticket created: http://trac.openlayers.org/ticket/819 Thanks for the report, Benoit! Erik On 6/19/07, Christopher Schmidt wrote: > On Tue, Jun 19, 2007 at 03:58:55PM +0200, Benoit Myard wrote: > > Hi list, > > > > I'm experiencing a strange behavior with OpenLayers' Vector layer > > based upon OpenLayers Feature. Dunno if I'm any understandable but > > anyway, here is what I do: > > > > var points = []; > > points.push(new OpenLayers.Geometry.Point(1, 2)); > > // ... > > var target = new OpenLayers.Layer.Vector("My layer"); > > map.addLayer(target); > > target.addFeatures([new OpenLayers.Feature.Vector( > > new OpenLayers.Geometry.LineString(points))]); > > > > And I end up with a nice line in Firefox and IE7 but with a > > white-filled polygon in IE6 [1]. Strangely, the white-fill > > disappears once I zoom in [2] and does *not* > > reappear when I zoom out. > > This is the current behavior. I don't know why. > > Erik, can you file this one as a bug when you get a chance? We should > put it into 2.5 for explortation: when I looked into it, I found that > the same VML ended up behaving differently when the page first loaded > than from later, and I never figured out why. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Mon Jul 9 15:59:17 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] max/minScale Values In-Reply-To: <7897256F0627534C8B8706E1E15A81B80BCD6D@alw2k3.IT2.local> References: <7897256F0627534C8B8706E1E15A81B80BCD6D@alw2k3.IT2.local> Message-ID: <6ae3fb590707091259k4983dbfeib94f6b206b169252@mail.gmail.com> Hi Jochen, I've taken a look at this, stepped through the initialization of a layer with miin/max scale properties, and I think I have a reasonable explanation for you: When you run your code, you should notice that the maxScale property *does* get set as you had desired, but the minScale will probably be modified. The reason for this is because of zoom levels. The way initResolutions() works is that it takes all the information that has been provided (as options to the layer or options to the map) and tries to create a resolutions array. Since you specify min&max Scale, what it does is first to convert those two values into the corresponding resolution values (maxResolution/minResolution). Then, in order to create the resolutions array, it executes the following code: // determine numZoomLevels if (confProps.minResolution != null) { var ratio = confProps.maxResolution / confProps.minResolution; confProps.numZoomLevels = Math.floor(Math.log(ratio) / Math.log(2)) + 1; } Basically, unless you explicitly specify a resolutions or scales array, OpenLayers works on a power of two principle (like google, yahoo, others) for determining the zoom levels. Thus it will start from the maxResolution and progressively build up from there. In order to determine when to stop, it takes a ratio between the min and the max and uses that to set numZoomLevels. Hopefully that makes sense. If you want to be precise about your max and min scale values, the best thing to do would be to specify a scales array with all the intermediate levels you wish to display in between min and max. If someone has an alternative way of programmatically defining those intermediate steps betweeen min and max scale/resolution, please write in to the list with some suggestions -- we're certainly open to hearing them... this power of two bit is just a default that has worked well in general. Cheers, Erik On 6/28/07, Jochen Grefe wrote: > Hello, > At first I'm new to OL so please forgive my ignorance of anything obvisious. > I want to set max/minScale Values on initialization of a Layer: > new OpenLayers.Layer.KaMap('B1','...uri...',{g: 'B1',map: 'map',i: 'png'},{minScale: 499,maxScale: 3001}) > But if I add this layer to the map via: map.addLayers(layers); > the layer values are overwritten by the map values for max/minScale > on initResolution of OpenLayers.Layer (Called by addLayer/Map -> setMap/Grid ->setMap/Layer) > Since I don't know the desired handling, I assume that the layer settings should > only be overwritten if they are not set. In lib/layer.js that would guide me to: > 546,547c546,549 > < this.minScale = this.scales[0]; > < this.maxScale = this.scales[this.scales.length - 1]; > --- > > if (this.minScale == null) > > this.minScale = this.scales[0]; > > if (this.maxScale == null) > > this.maxScale = this.scales[this.scales.length - 1]; > > Best regards, > Jochen > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From jrmerz at gmail.com Mon Jul 9 17:20:11 2007 From: jrmerz at gmail.com (justin merz) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] OpenLayers, Google Maps, and WFS example Message-ID: I am sorry if this has already been done/covered, but I have been in the processes of developing some online apps using OL and Google layers. I have version of OL (using ESPG 41001) up and running with the Google Layers here... http://team.resources.ca.gov/justin/lightweight_viewer.aspx Issues I ran into and seem to have a fix for (or at least a working hack): -> WFS overlay not fitting/floating (depending on pan/zoom). This was done by using doing projection conversions in getLongitudeFromMapObjectLonLat, getLatitudeFromMapObjectLonLat, and getMapObjectLonLatFromLonLat in OpenLayers.Layer.Google. As well as defining new extents and zoom levels. -> Google Layers moving center position upon a layer switch, after the map/browser has been resized. This I have not totally figured this out, but the OL view plane and Google view plane seem to be off. I fixed this with a hack in setMapObjectCenter in Google.js. Basically I set center, tell the google API to see if the map size has changed, then set center again. -> Other: I have also added a very quick and dirty "loading ?" display for WFS and a WFS feature selector that allows for quick display of other information inside GML. These use outside div's and have not yet been migrated into OL. Also on a browser note, I made two different classes for vector rendering styles, one for IE and one for everything else. -Justin Merz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070709/f9977c15/attachment.html From erik.uzureau at metacarta.com Mon Jul 9 17:31:05 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] OpenLayers, Google Maps, and WFS example In-Reply-To: References: Message-ID: <6ae3fb590707091431h1f0ce934heee746a701227cd@mail.gmail.com> Justin, sounds like you have been hard at work. The map resizing issues is still unfortunately a murky area with OL. If you would like to share your patch with us, it would be well appreciated. http://trac.openlayers.org/wiki/HowToContribute erik On 7/9/07, justin merz wrote: > > > I am sorry if this has already been done/covered, but I have been in the > processes of developing some online apps using OL and Google layers. I have > version of OL (using ESPG 41001) up and running with the Google Layers > here... > > > http://team.resources.ca.gov/justin/lightweight_viewer.aspx > > Issues I ran into and seem to have a fix for (or at least a working hack): > > -> WFS overlay not fitting/floating (depending on pan/zoom). This was done > by using doing projection conversions in > getLongitudeFromMapObjectLonLat, > getLatitudeFromMapObjectLonLat, and getMapObjectLonLatFromLonLat in > OpenLayers.Layer.Google. As well as defining new extents and zoom levels. > > -> Google Layers moving center position upon a layer switch, after the > map/browser has been resized. This I have not totally figured this out, but > the OL view plane and Google view plane seem to be off. I fixed this with a > hack in setMapObjectCenter in Google.js. Basically I set center, tell the > google API to see if the map size has changed, then set center again. > > > -> Other: I have also added a very quick and dirty "loading ?" display for > WFS and a WFS feature selector that allows for quick display of other > information inside GML. These use outside div's and have not yet been > migrated into OL. Also on a browser note, I made two different classes for > vector rendering styles, one for IE and one for everything else. > > > > -Justin Merz > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From erik.uzureau at metacarta.com Mon Jul 9 17:42:21 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Marker Disappearing In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909D61@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909D61@hermes.uai.int> Message-ID: <6ae3fb590707091442h71cf17bflb9e1ad3e62823b0e@mail.gmail.com> Hi John, Can you be more specific about what you did that fixed your problem? Is this something that we should fix in the code? Still not quite clear to me. Erik On 6/27/07, John Cole wrote: > Christopher, > Just wanted to let you know that adding the resolutions to the new > OpenLayers.Layer.Markers call worked. Thanks for the help! > > John > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Christopher Schmidt > Sent: Wednesday, June 27, 2007 10:26 AM > To: Lee Keel > Cc: users@openlayers.org; euzuro@metacarta.com > Subject: Re: [OpenLayers-Users] Marker Disappearing > > On Wed, Jun 27, 2007 at 09:44:59AM -0500, Lee Keel wrote: > > Hello All, > > > > > > > > We are experiencing a disappearing marker when the user zooms in after > > placement of the marker. You can see this @ > > http://hud.uai.com/hudpls/ViewMap.aspx?FindAddTI=1 then by doing an > address > > search. The marker will remain as long as you are at the current zoom > level > > or above, but disappears when you zoom in beyond the initial level. Here > is > > the code I am using to create the marker. > > Change this: > > > addressMarkers = new OpenLayers.Layer.Markers("Find Address"); > > To this: > > addressMarkers = new OpenLayers.Layer.Markers("Find Address", > {'calculateInRange': function() { return true; }}); > > Alternatively, I think the following should work: > > addressMarkers = new OpenLayers.Layer.Markers("Find Address", > {'numZoomLevels':25}); > > But I'm not 100% sure. > > The problem is that your markers layer is considered 'out of range' for > some reason -- changing the numZoomLevels should fix that, but > overrdiding the calculateInRange function to always return true should > also work. > > The source of the problem here is probably related to the 'resolutions' > setting on your base_wms. > > Erik, is this the behavior you expected? I think your'e closest to this > code -- to reproduce it, simply create a map with an explicit list of > resolutions which reaches farther in than the default, and then watch > your markers layer turn off when you zoom in past that point. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From noreply at geocartic.com Mon Jul 9 19:54:58 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Welcome back Chris Message-ID: <4692CAD2.6050800@geocartic.com> Hey Chris- We wanted to let you know how much you are appreciated around here. Very sorry your vacation didn't end up providing you with the break you very much deserve. We wish Jess a solid recovery, and hope you guys can find some other time to take off in the near future. And, I'm sure this is echoed by everybody, thank you so much for all the effort you put in to development and support of OpenLayers. Sincerely, Tim (on behalf of the OL community) From erik.uzureau at metacarta.com Mon Jul 9 20:06:48 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Welcome back Chris In-Reply-To: <4692CAD2.6050800@geocartic.com> References: <4692CAD2.6050800@geocartic.com> Message-ID: <6ae3fb590707091706i55239400o1340877011f309b6@mail.gmail.com> Yes... it was suspiciously silent around here in your absence. Tim and I took it upon ourselves to debate such crucial points as the spacing of NaturalDocs comments just to keep up the guise of a lively trac timeline... :-P Saludos, Erik On 7/9/07, Tim Schaub wrote: > Hey Chris- > > We wanted to let you know how much you are appreciated around here. > Very sorry your vacation didn't end up providing you with the break you > very much deserve. > > We wish Jess a solid recovery, and hope you guys can find some other > time to take off in the near future. > > And, I'm sure this is echoed by everybody, thank you so much for all the > effort you put in to development and support of OpenLayers. > > Sincerely, > Tim (on behalf of the OL community) > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Mon Jul 9 21:22:18 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Welcome back Chris In-Reply-To: <4692CAD2.6050800@geocartic.com> References: <4692CAD2.6050800@geocartic.com> Message-ID: <20070710012218.GA748@metacarta.com> On Mon, Jul 09, 2007 at 05:54:58PM -0600, Tim Schaub wrote: > Hey Chris- > > We wanted to let you know how much you are appreciated around here. > Very sorry your vacation didn't end up providing you with the break you > very much deserve. Well, I still did get the break from all you silly people answering questions ;) But thank you for the well wishes and appreciation. > We wish Jess a solid recovery, and hope you guys can find some other > time to take off in the near future. Thanks! She's actually doing much better today, and we'll hopefully be taking time off in another couple weeks to get the trip up to the mountains we had planned. > And, I'm sure this is echoed by everybody, thank you so much for all the > effort you put in to development and support of OpenLayers. Thanks again. The biggest benefit to helping the OpenLayers community is the true appreciation that is offered by the community in so many ways -- whether it be email, IRC, IM, or just in using the code. THe growth of this community over the past year has been tremendous, and I can't say enough how great it is to be a part of it. Regards, -- Christopher Schmidt MetaCarta From lancelot at inetnebr.com Mon Jul 9 23:04:54 2007 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WFS without Proxy? Message-ID: <4692F756.6060005@inetnebr.com> In theory if you are connecting to a WFS server on the same host you shouldnt need to have a proxy? nor should it be necessary when the page is loaded locally(unless the browser has some security very high) but I cant figure out how to set it up.... here is proof that the wfs stuff works (even though the server at openlayers.org seems to be perpetually down) http://www.dyasdesigns.com/egeotest/wfs-states.html in the above I am using a proxy even though I shouldn't need to with the same domain. From gregor at hostgis.com Tue Jul 10 00:30:09 2007 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WFS layer features: how to stylize them? Message-ID: <46930B51.6030807@hostgis.com> Hi, all. I have a WFS layer in a map. How do I set the icon for the features? At present, they're all orange circles. Nice, but I'd like the layers to use different icons. What options exist here? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From eric.c2c at gmail.com Tue Jul 10 00:44:29 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WFS without Proxy? In-Reply-To: <4692F756.6060005@inetnebr.com> References: <4692F756.6060005@inetnebr.com> Message-ID: <5ec103de0707092144t26877b39lecd5cc2886c1b7f0@mail.gmail.com> Hi Lance, On 7/10/07, Lance Dyas wrote: > In theory if you are connecting to a WFS server on the same host you > shouldnt need to have a proxy? You don't need a proxy if the WFS server is on the same host *and* port. Hope this helps, -- Eric From correosig at gmail.com Tue Jul 10 06:33:14 2007 From: correosig at gmail.com (Ruben Pardo) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Security with openlayers Message-ID: <736d33ec0707100333g638254e9rd86b19302e0b4822@mail.gmail.com> Hi, how can i implement security with openlayers? is it possible to hide the layers or the server that you request? or i have to implement this on the server side? thanks very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070710/33b8fade/attachment.html From andrew at andrewlarcombe.co.uk Tue Jul 10 06:56:57 2007 From: andrew at andrewlarcombe.co.uk (Andrew Larcombe) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Security with openlayers In-Reply-To: <736d33ec0707100333g638254e9rd86b19302e0b4822@mail.gmail.com> References: <736d33ec0707100333g638254e9rd86b19302e0b4822@mail.gmail.com> Message-ID: <729DB835-FBB4-4E25-9833-2F25C5B7B3ED@andrewlarcombe.co.uk> On 10 Jul 2007, at 11:33, Ruben Pardo wrote: > Hi, > > how can i implement security with openlayers? is it possible to > hide the layers or the server that you request? > or i have to implement this on the server side? It really depends on what you mean by security. It's quite tricky to do this on the client given the very nature of what openlayers does (ie makes asynchronous requests to open web servers), so most security (eg limiting requests by IP address, limiting which layers can be viewed by clients is handled on the server side. Cheers, Andrew --- Andrew Larcombe Freelance Geospatial, Database & Web Programming web: http://www.andrewlarcombe.co.uk email: andrew@andrewlarcombe.co.uk mob: +44 (7760) 258623 icq: 306690163 From lancelot at inetnebr.com Tue Jul 10 08:23:50 2007 From: lancelot at inetnebr.com (Lance Dyas) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WFS without Proxy? In-Reply-To: <5ec103de0707092144t26877b39lecd5cc2886c1b7f0@mail.gmail.com> References: <4692F756.6060005@inetnebr.com> <5ec103de0707092144t26877b39lecd5cc2886c1b7f0@mail.gmail.com> Message-ID: <46937A56.8090604@inetnebr.com> Thanks that does indeed seem to be the issue, a little more checking around on the case of local files... and I am not sure why a local file without proxyhost set doesnt work or throw errors in Firefox but does indeed work in Internet Explorer? Eric Lemoine wrote: > Hi Lance, > > On 7/10/07, Lance Dyas wrote: >> In theory if you are connecting to a WFS server on the same host you >> shouldnt need to have a proxy? > > You don't need a proxy if the WFS server is on the same host *and* port. > > Hope this helps, > > -- > Eric > > . > From myardbenoit at gmail.com Tue Jul 10 08:39:47 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Linestring behavior in IE6 In-Reply-To: <6ae3fb590707091112x51f76717gf9e738e5d77bf1ca@mail.gmail.com> References: <6fb81fc70706190658se813ac9wc6c119e5d4f593e1@mail.gmail.com> <20070619143027.GA27609@metacarta.com> <6ae3fb590707091112x51f76717gf9e738e5d77bf1ca@mail.gmail.com> Message-ID: <6fb81fc70707100539s3ffaafeatbb95b866c64889e7@mail.gmail.com> Thank you both for the information. For people looking for a workaround, I use the following code: window.setTimeout(function() { myLayer.setVisibility(false); myLayer.setVisibility(true); }, 1000); Cheers. -- Benoit Myard From jachym.cepicky at gmail.com Tue Jul 10 09:42:40 2007 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] A new Era of... documentation! In-Reply-To: <20070629162430.GA15461@metacarta.com> References: <20070629162430.GA15461@metacarta.com> Message-ID: <1184074960.7877.23.camel@mellon> Hi, great work, thanks a lot for it. In previous version of the documentation, it was possible to display also the source of each file. Is there a way, how to do it in this new viewer? Jachym Christopher Schmidt p??e v P? 29. 06. 2007 v 12:24 -0400: > (Follow-up to users@openlayers.org.) > > So, as of about 15 minutes ago, the trunk of OpenLayers has been > completely reworked to be documented in NaturalDocs style instead of > JSDoc style. > > What does this mean for you? > > For everyone, there is now a more complete set of OpenLayers > documentation, which can be built by anyone, and a full set of docs > written in that style. > > For users, we now have a set of documentation about what APIs, > properties, etc. we promise to keep the same from version to version. > The Properties, Methods, classes, etc. that are documented at > http://dev.openlayers.org/apidocs/ will not change without a major > version bump (or, in some extreme cases, a strong majority opinion to > the contrary, as in the non-working Canvas code that has been removed > from trunk). > > For developers, we now have a much more complete set of documentation, > describing everything in and around the OpenLayers classes. > http://dev.openlayers.org/docs/ In addition, you can generate these docs > using the natural docs command line tool, so when you're writing your own > code, you can generate the docs and see how your docs look. > > There are a lot of people who have put effort in, and improving the > existing documentation is going to continue to be a challenge -- but > we've now taken the documentation we *do* have and made it available in > a way that we didn't have as of even 2 weeks ago. Thanks so much ot all > the people who worked on this, and we're looking forward to seeing what > happens now that people actually know what's inside OpenLayers :) > > Regards, -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070710/81a0c0a5/attachment.bin From myardbenoit at gmail.com Tue Jul 10 09:46:28 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> Message-ID: <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> I have implemented this idea as a custom OpenLayers.Control class. If anyone is interested, I might clean it up an post it here later. I think it would be a good thing to add to OpenLayers (it's one of the first feature I've been asked to add to it). PS: sorry Richard, I know I wasn't supposed to directly answer to you but GMail is a bitch. -- Benoit Myard From crschmidt at metacarta.com Tue Jul 10 09:54:17 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WFS without Proxy? In-Reply-To: <46937A56.8090604@inetnebr.com> References: <4692F756.6060005@inetnebr.com> <5ec103de0707092144t26877b39lecd5cc2886c1b7f0@mail.gmail.com> <46937A56.8090604@inetnebr.com> Message-ID: <20070710135417.GA2820@metacarta.com> On Tue, Jul 10, 2007 at 07:23:50AM -0500, Lance Dyas wrote: > Thanks that does indeed seem to be the issue, a little more checking > around on the case of local files... > and I am not sure why a local file without proxyhost set doesnt work > or throw errors in Firefox but > does indeed work in Internet Explorer? Because IE and FF implement the same origin policy differently. (FF is more strict.) Regards, -- Christopher Schmidt MetaCarta From myardbenoit at gmail.com Tue Jul 10 09:58:46 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> Message-ID: <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> // Here is the code: OpenLayers.Control.LoadMonitor = OpenLayers.Class.create(); OpenLayers.Control.LoadMonitor.prototype = OpenLayers.Class.inherit( OpenLayers.Control, { div: null, counter: 0, activate: function() { var img = OpenLayers.Util.getImagesLocation() + "loading.gif"; var size = new OpenLayers.Size(40, 40); var dim = OpenLayers.Element.getDimensions(this.map.viewPortDiv); var pos = new OpenLayers.Pixel((dim.width - size.w) / 2, (dim.height - size.h) / 2); this.div = OpenLayers.Util.createDiv("LoadMonitor", pos, size, img); this.div.style.zIndex = 1000; this.map.viewPortDiv.appendChild(this.div); }, deactivate: function() { if (this.div) { this.div.style.display = "none"; this.div = null; } }, draw: function() { this.activate(); }, monitor: function(layer) { layer.events.register('loadstart', this, this.start); layer.events.register('loadcancel', this, this.end); layer.events.register('loadend', this, this.end); }, start: function(layer) { this.counter++ if (this.counter > 0 && this.div) this.div.style.display = "block"; }, end: function(layer) { if (this.counter > 0) this.counter--; if (this.counter == 0 && this.div) this.div.style.display = "none"; }, CLASS_NAME: "OpenLayers.Control.LoadMonitor" }); // And here is an example: var map = new OpenLayers.Map(...); var monitor = new ExpWeb.Control.LoadMonitor(); map.addControl(monitor); var layer = new OpenLayers.Layer.WMS(...); monitor.monitor(layer); map.addLayer(layer); It's not automated because I had to have the ability to choose which layer to monitor. Also, for some reason, events are somewhat strange. Add breakpoints in start() and end() if you use FireBug and note events triggered. Any idea ? Cheers. -- Benoit Myard From erik.uzureau at metacarta.com Tue Jul 10 10:21:00 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] A new Era of... documentation! In-Reply-To: <1184074960.7877.23.camel@mellon> References: <20070629162430.GA15461@metacarta.com> <1184074960.7877.23.camel@mellon> Message-ID: <6ae3fb590707100721he240bbk9957b3ad019d46de@mail.gmail.com> That is a good idea Jachym. I'll see if we can get that done erik On 7/10/07, Jachym Cepicky wrote: > Hi, > > great work, thanks a lot for it. > > In previous version of the documentation, it was possible to display > also the source of each file. Is there a way, how to do it in this new > viewer? > > Jachym > > Christopher Schmidt p??e v P? 29. 06. 2007 v 12:24 -0400: > > (Follow-up to users@openlayers.org.) > > > > So, as of about 15 minutes ago, the trunk of OpenLayers has been > > completely reworked to be documented in NaturalDocs style instead of > > JSDoc style. > > > > What does this mean for you? > > > > For everyone, there is now a more complete set of OpenLayers > > documentation, which can be built by anyone, and a full set of docs > > written in that style. > > > > For users, we now have a set of documentation about what APIs, > > properties, etc. we promise to keep the same from version to version. > > The Properties, Methods, classes, etc. that are documented at > > http://dev.openlayers.org/apidocs/ will not change without a major > > version bump (or, in some extreme cases, a strong majority opinion to > > the contrary, as in the non-working Canvas code that has been removed > > from trunk). > > > > For developers, we now have a much more complete set of documentation, > > describing everything in and around the OpenLayers classes. > > http://dev.openlayers.org/docs/ In addition, you can generate these docs > > using the natural docs command line tool, so when you're writing your own > > code, you can generate the docs and see how your docs look. > > > > There are a lot of people who have put effort in, and improving the > > existing documentation is going to continue to be a challenge -- but > > we've now taken the documentation we *do* have and made it available in > > a way that we didn't have as of even 2 weeks ago. Thanks so much ot all > > the people who worked on this, and we're looking forward to seeing what > > happens now that people actually know what's inside OpenLayers :) > > > > Regards, > -- > Jachym Cepicky > e-mail: jachym.cepicky@gmail.com > URL: http://les-ejk.cz > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > From erik.uzureau at metacarta.com Tue Jul 10 10:30:55 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> Message-ID: <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> Dear Benoit et tous, I'm actually working on getting reliable loadstart/loadend messages going in a sandbox that I've been working on for the past couple of weeks. I'm hoping to write tests today and have a patch ready and hopefully integrated by the end of the week. Once in (cross fingers), all layers derived of Grid.js will correctly fire "loadstart", "loadend" and "tileloaded" events. Similar to your implementation below, there will be a new property on the grid layer called numLoadingTiles, which can be used to implement a progress bar. Keep an eye out for it, Erik On 7/10/07, Benoit Myard wrote: > // Here is the code: > > OpenLayers.Control.LoadMonitor = OpenLayers.Class.create(); > OpenLayers.Control.LoadMonitor.prototype = > OpenLayers.Class.inherit( OpenLayers.Control, { > > div: null, > counter: 0, > > activate: function() { > var img = OpenLayers.Util.getImagesLocation() + "loading.gif"; > var size = new OpenLayers.Size(40, 40); > var dim = OpenLayers.Element.getDimensions(this.map.viewPortDiv); > var pos = new OpenLayers.Pixel((dim.width - size.w) / 2, > (dim.height - size.h) / 2); > > this.div = OpenLayers.Util.createDiv("LoadMonitor", pos, size, img); > this.div.style.zIndex = 1000; > > this.map.viewPortDiv.appendChild(this.div); > }, > > deactivate: function() { > if (this.div) { > this.div.style.display = "none"; > this.div = null; > } > }, > > draw: function() { > this.activate(); > }, > > monitor: function(layer) { > layer.events.register('loadstart', this, this.start); > layer.events.register('loadcancel', this, this.end); > layer.events.register('loadend', this, this.end); > }, > > start: function(layer) { > this.counter++ > if (this.counter > 0 && this.div) > this.div.style.display = "block"; > }, > > end: function(layer) { > if (this.counter > 0) > this.counter--; > if (this.counter == 0 && this.div) > this.div.style.display = "none"; > }, > > CLASS_NAME: "OpenLayers.Control.LoadMonitor" > }); > > // And here is an example: > > var map = new OpenLayers.Map(...); > > var monitor = new ExpWeb.Control.LoadMonitor(); > map.addControl(monitor); > > var layer = new OpenLayers.Layer.WMS(...); > monitor.monitor(layer); > map.addLayer(layer); > > It's not automated because I had to have the ability to choose which > layer to monitor. Also, for some reason, events are somewhat strange. > Add breakpoints in start() and end() if you use FireBug and note > events triggered. Any idea ? > > Cheers. > > -- > Benoit Myard > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Tue Jul 10 10:32:51 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> Message-ID: <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> btw: http://dev.openlayers.org/sandbox/euzuro/untiled3/examples/layerLoadMonitoring.html On 7/10/07, Erik Uzureau wrote: > Dear Benoit et tous, > > I'm actually working on getting reliable loadstart/loadend messages > going in a sandbox that I've been working on for the past couple of > weeks. > > I'm hoping to write tests today and have a patch ready and hopefully > integrated by the end of the week. > > Once in (cross fingers), all layers derived of Grid.js will correctly > fire "loadstart", "loadend" and "tileloaded" events. Similar to your > implementation below, there will be a new property on the grid layer > called numLoadingTiles, which can be used to implement a progress bar. > > Keep an eye out for it, > Erik > > > > > On 7/10/07, Benoit Myard wrote: > > // Here is the code: > > > > OpenLayers.Control.LoadMonitor = OpenLayers.Class.create(); > > OpenLayers.Control.LoadMonitor.prototype = > > OpenLayers.Class.inherit( OpenLayers.Control, { > > > > div: null, > > counter: 0, > > > > activate: function() { > > var img = OpenLayers.Util.getImagesLocation() + "loading.gif"; > > var size = new OpenLayers.Size(40, 40); > > var dim = OpenLayers.Element.getDimensions(this.map.viewPortDiv); > > var pos = new OpenLayers.Pixel((dim.width - size.w) / 2, > > (dim.height - size.h) / 2); > > > > this.div = OpenLayers.Util.createDiv("LoadMonitor", pos, size, img); > > this.div.style.zIndex = 1000; > > > > this.map.viewPortDiv.appendChild(this.div); > > }, > > > > deactivate: function() { > > if (this.div) { > > this.div.style.display = "none"; > > this.div = null; > > } > > }, > > > > draw: function() { > > this.activate(); > > }, > > > > monitor: function(layer) { > > layer.events.register('loadstart', this, this.start); > > layer.events.register('loadcancel', this, this.end); > > layer.events.register('loadend', this, this.end); > > }, > > > > start: function(layer) { > > this.counter++ > > if (this.counter > 0 && this.div) > > this.div.style.display = "block"; > > }, > > > > end: function(layer) { > > if (this.counter > 0) > > this.counter--; > > if (this.counter == 0 && this.div) > > this.div.style.display = "none"; > > }, > > > > CLASS_NAME: "OpenLayers.Control.LoadMonitor" > > }); > > > > // And here is an example: > > > > var map = new OpenLayers.Map(...); > > > > var monitor = new ExpWeb.Control.LoadMonitor(); > > map.addControl(monitor); > > > > var layer = new OpenLayers.Layer.WMS(...); > > monitor.monitor(layer); > > map.addLayer(layer); > > > > It's not automated because I had to have the ability to choose which > > layer to monitor. Also, for some reason, events are somewhat strange. > > Add breakpoints in start() and end() if you use FireBug and note > > events triggered. Any idea ? > > > > Cheers. > > > > -- > > Benoit Myard > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > From john.cole at uai.com Tue Jul 10 11:04:07 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Marker Disappearing Message-ID: <76758090F8686C47A44B6FF52514A1D307909D88@hermes.uai.int> Erik, I simply copied the resolution list passed to the base layer, as an option on the marker layer. I think Christopher was concerned that the marker layer was not picking up the valid zoom levels from the base layer by default. I tend to think that the markers, given no other parameters, should be visible at all zoom levels valid for the base layers. Hope this makes things clearer :-) John -----Original Message----- From: euzuro@gmail.com [mailto:euzuro@gmail.com] On Behalf Of Erik Uzureau Sent: Monday, July 09, 2007 4:42 PM To: John Cole Cc: Christopher Schmidt; Lee Keel; users@openlayers.org; euzuro@metacarta.com Subject: Re: [OpenLayers-Users] Marker Disappearing Hi John, Can you be more specific about what you did that fixed your problem? Is this something that we should fix in the code? Still not quite clear to me. Erik On 6/27/07, John Cole wrote: > Christopher, > Just wanted to let you know that adding the resolutions to the new > OpenLayers.Layer.Markers call worked. Thanks for the help! > > John > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Christopher Schmidt > Sent: Wednesday, June 27, 2007 10:26 AM > To: Lee Keel > Cc: users@openlayers.org; euzuro@metacarta.com > Subject: Re: [OpenLayers-Users] Marker Disappearing > > On Wed, Jun 27, 2007 at 09:44:59AM -0500, Lee Keel wrote: > > Hello All, > > > > > > > > We are experiencing a disappearing marker when the user zooms in after > > placement of the marker. You can see this @ > > http://hud.uai.com/hudpls/ViewMap.aspx?FindAddTI=1 then by doing an > address > > search. The marker will remain as long as you are at the current zoom > level > > or above, but disappears when you zoom in beyond the initial level. Here > is > > the code I am using to create the marker. > > Change this: > > > addressMarkers = new OpenLayers.Layer.Markers("Find Address"); > > To this: > > addressMarkers = new OpenLayers.Layer.Markers("Find Address", > {'calculateInRange': function() { return true; }}); > > Alternatively, I think the following should work: > > addressMarkers = new OpenLayers.Layer.Markers("Find Address", > {'numZoomLevels':25}); > > But I'm not 100% sure. > > The problem is that your markers layer is considered 'out of range' for > some reason -- changing the numZoomLevels should fix that, but > overrdiding the calculateInRange function to always return true should > also work. > > The source of the problem here is probably related to the 'resolutions' > setting on your base_wms. > > Erik, is this the behavior you expected? I think your'e closest to this > code -- to reproduce it, simply create a map with an explicit list of > resolutions which reaches farther in than the default, and then watch > your markers layer turn off when you zoom in past that point. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From myardbenoit at gmail.com Tue Jul 10 12:00:47 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> Message-ID: <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> That's a good news. I'm affraid I never tried the code I posted earlier with Tiled layers. On 10/07/07, Erik Uzureau wrote: > > Once in (cross fingers), all layers derived of Grid.js will correctly > > fire "loadstart", "loadend" and "tileloaded" events. Similar to your > > implementation below, there will be a new property on the grid layer > > called numLoadingTiles, which can be used to implement a progress bar. On the other hand, this wouldn't solve the problem for OpenLayers.Layer.WMS.Untiled which inherits OpenLayers.Layer.HTTPRequest but not OpenLayers.Layer.Grid. Do you have any plans for layers that don't inherit OpenLayers.Layer.Grid ? > > Keep an eye out for it, I will. PS: sorry Erik for the direct mail. GMail drives me crazy.. it used to answer to lists but it looks like it doesn't anymore. -- Benoit Myard From erik.uzureau at metacarta.com Tue Jul 10 12:23:29 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> Message-ID: <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> On 7/10/07, Benoit Myard wrote: > That's a good news. I'm affraid I never tried the code I posted > earlier with Tiled layers. > > On 10/07/07, Erik Uzureau wrote: > > > Once in (cross fingers), all layers derived of Grid.js will correctly > > > fire "loadstart", "loadend" and "tileloaded" events. Similar to your > > > implementation below, there will be a new property on the grid layer > > > called numLoadingTiles, which can be used to implement a progress bar. > > On the other hand, this wouldn't solve the problem for > OpenLayers.Layer.WMS.Untiled which inherits > OpenLayers.Layer.HTTPRequest but not OpenLayers.Layer.Grid. Do you > have any plans for layers that don't inherit OpenLayers.Layer.Grid ? :-) So the good news is that the essential part of the patch that I'm working on is to bring the Gridded and Untiled layers back together. Instead of declaring your layer as OpenLayers.WMS.Untiled, you will simply declare it OpenLayers.WMS and pass it an option { singleTile: true } Thus, both of those will be supported. :-) Erik > > > Keep an eye out for it, > > I will. > > PS: sorry Erik for the direct mail. GMail drives me crazy.. it used to > answer to lists but it looks like it doesn't anymore. > > -- > Benoit Myard > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From rdmailings at duif.net Tue Jul 10 13:01:44 2007 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] ctrl-z behaviour while editing linestring Message-ID: <4693BB78.6090701@duif.net> Hi all, while the editing of a feature is not yet available in 2.4 (by the way: any roadmap available for editing an excisting feature?), I thought it would be nice to have some 'undo' functionality. So while somebody is drawing a (sometimes rather large) linestring and does ctrl-Z or something like that, I want to grab the current linestring being edited, remove the last added point and draw the (one point shorter) linestring again. I thought this would be easy, but it isn't ( for me :-( ). The Vector layer doesn't have the feature/geometry in it's hands while you are drawing it, and the point-callback get's a 'Point' as argument (instead of the Linestring?). Have been looking into the source of the DrawFeature control and Path Handler, but couldn't find a hook. Somebody an idea for implementing this? TIA Richard Duivenvoorde From trondmm-openlayers at crusaders.no Tue Jul 10 15:37:17 2007 From: trondmm-openlayers at crusaders.no (Trond Michelsen) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> Message-ID: <20070710193717.GQ21504@crusaders.no> On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote: > :-) So the good news is that the essential part of the patch that I'm > working on is to bring the Gridded and Untiled layers back together. > > Instead of declaring your layer as OpenLayers.WMS.Untiled, you will > simply declare it OpenLayers.WMS and pass it an option { singleTile: > true } Great news. One thing, though :) Would it be possible to make the singletile-version have a "snap to grid"-functionality, so that even the singletiles can be cached? -- Trond Michelsen From bitner at gyttja.org Tue Jul 10 16:05:37 2007 From: bitner at gyttja.org (David William Bitner) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <20070710193717.GQ21504@crusaders.no> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> <20070710193717.GQ21504@crusaders.no> Message-ID: > > > Would it be possible to make the singletile-version have a "snap to > grid"-functionality, so that even the singletiles can be cached? That kind of defeats the point of a single tile. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070710/9e171c49/attachment.html From noreply at geocartic.com Tue Jul 10 17:21:13 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <20070710193717.GQ21504@crusaders.no> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> <20070710193717.GQ21504@crusaders.no> Message-ID: <4693F849.1000903@geocartic.com> Trond Michelsen wrote: > On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote: >> :-) So the good news is that the essential part of the patch that I'm >> working on is to bring the Gridded and Untiled layers back together. >> >> Instead of declaring your layer as OpenLayers.WMS.Untiled, you will >> simply declare it OpenLayers.WMS and pass it an option { singleTile: >> true } > > Great news. > > One thing, though :) > > Would it be possible to make the singletile-version have a "snap to > grid"-functionality, so that even the singletiles can be cached? > Try a layer with a very big tile size and zero buffer if you want to cache big tiles. From erik.uzureau at metacarta.com Tue Jul 10 17:32:14 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <4693F849.1000903@geocartic.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> <20070710193717.GQ21504@crusaders.no> <4693F849.1000903@geocartic.com> Message-ID: <6ae3fb590707101432g3550dda2m22bb388cb32343c1@mail.gmail.com> Good answer Tim. Does that make sense, Trond? If you set the buffer to 0, then OL wont pre-load any tiles that are outside the bounds of the viewport of the map.... therefore, if you set a tile size that is bigger than the viewport, you will always only be loading one tile... and since you're still in normal gridded mode, you will be snapping to grid and benefit from cacheing. On 7/10/07, Tim Schaub wrote: > Trond Michelsen wrote: > > On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote: > >> :-) So the good news is that the essential part of the patch that I'm > >> working on is to bring the Gridded and Untiled layers back together. > >> > >> Instead of declaring your layer as OpenLayers.WMS.Untiled, you will > >> simply declare it OpenLayers.WMS and pass it an option { singleTile: > >> true } > > > > Great news. > > > > One thing, though :) > > > > Would it be possible to make the singletile-version have a "snap to > > grid"-functionality, so that even the singletiles can be cached? > > > > Try a layer with a very big tile size and zero buffer if you want to > cache big tiles. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From josh at livniconsulting.com Tue Jul 10 17:48:32 2007 From: josh at livniconsulting.com (Josh Livni) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <6ae3fb590707101432g3550dda2m22bb388cb32343c1@mail.gmail.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100646g53a3c5bdna2cda4c91a36b599@mail.gmail.com> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> <20070710193717.GQ21504@crusaders.no> <4693F849.1000903@geocartic.com> <6ae3fb590707101432g3550dda2m22bb388cb32343c1@mail.gmail.com> Message-ID: <4693FEB0.6060200@livniconsulting.com> It seems to me that it's still possible, with a tilesize far great than the viewport size, you may end up loading 4 tiles. Such as if you happened to be looking at an area where four (very large) tiles came together. I may well be missing something obvious though (including, at the very least, why it's important to only load exactly one tile). -Josh Erik Uzureau wrote: > Good answer Tim. > > Does that make sense, Trond? > > > If you set the buffer to 0, then OL wont pre-load any tiles that are > outside the bounds of the viewport of the map.... therefore, if you > set a tile size that is bigger than the viewport, you will always only > be loading one tile... and since you're still in normal gridded mode, > you will be snapping to grid and benefit from cacheing. > > > > On 7/10/07, Tim Schaub wrote: > >> Trond Michelsen wrote: >> >>> On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote: >>> >>>> :-) So the good news is that the essential part of the patch that I'm >>>> working on is to bring the Gridded and Untiled layers back together. >>>> >>>> Instead of declaring your layer as OpenLayers.WMS.Untiled, you will >>>> simply declare it OpenLayers.WMS and pass it an option { singleTile: >>>> true } >>>> >>> Great news. >>> >>> One thing, though :) >>> >>> Would it be possible to make the singletile-version have a "snap to >>> grid"-functionality, so that even the singletiles can be cached? >>> >>> >> Try a layer with a very big tile size and zero buffer if you want to >> cache big tiles. >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From erik.uzureau at metacarta.com Tue Jul 10 17:52:48 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] wms untiled 'busy loading' message or image In-Reply-To: <4693FEB0.6060200@livniconsulting.com> References: <7b2ce29c5d8aa762f170adffd44a04a0@145.50.39.11> <6fb81fc70707100658u6394a621w4c081cdcdd3cdd68@mail.gmail.com> <6ae3fb590707100730u146c9e2eqe6423b33f4653fe4@mail.gmail.com> <6ae3fb590707100732o635800b1mee43b816730c3bb2@mail.gmail.com> <6fb81fc70707100900s174c8593w2af199d8d62ece0b@mail.gmail.com> <6ae3fb590707100923i39eb8ba1l73ad21e8aaeb67d3@mail.gmail.com> <20070710193717.GQ21504@crusaders.no> <4693F849.1000903@geocartic.com> <6ae3fb590707101432g3550dda2m22bb388cb32343c1@mail.gmail.com> <4693FEB0.6060200@livniconsulting.com> Message-ID: <6ae3fb590707101452x5fc5b48fm8ca8eb92b7dd8acf@mail.gmail.com> Arf. Yes, Josh is right. you will have border cases, in which case this isnt very useful. If you want cached tiles, however... you will always have this gridded case. Erik On 7/10/07, Josh Livni wrote: > It seems to me that it's still possible, with a tilesize far great than > the viewport size, you may end up loading 4 tiles. Such as if you > happened to be looking at an area where four (very large) tiles came > together. > > I may well be missing something obvious though (including, at the very > least, why it's important to only load exactly one tile). > > -Josh > > > Erik Uzureau wrote: > > Good answer Tim. > > > > Does that make sense, Trond? > > > > > > If you set the buffer to 0, then OL wont pre-load any tiles that are > > outside the bounds of the viewport of the map.... therefore, if you > > set a tile size that is bigger than the viewport, you will always only > > be loading one tile... and since you're still in normal gridded mode, > > you will be snapping to grid and benefit from cacheing. > > > > > > > > On 7/10/07, Tim Schaub wrote: > > > >> Trond Michelsen wrote: > >> > >>> On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote: > >>> > >>>> :-) So the good news is that the essential part of the patch that I'm > >>>> working on is to bring the Gridded and Untiled layers back together. > >>>> > >>>> Instead of declaring your layer as OpenLayers.WMS.Untiled, you will > >>>> simply declare it OpenLayers.WMS and pass it an option { singleTile: > >>>> true } > >>>> > >>> Great news. > >>> > >>> One thing, though :) > >>> > >>> Would it be possible to make the singletile-version have a "snap to > >>> grid"-functionality, so that even the singletiles can be cached? > >>> > >>> > >> Try a layer with a very big tile size and zero buffer if you want to > >> cache big tiles. > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > >> > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > From noreply at geocartic.com Tue Jul 10 19:15:08 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Handler.RegularPolygon In-Reply-To: <1178307773.3052.27.camel@langlap> References: <1178307773.3052.27.camel@langlap> Message-ID: <469412FC.8020901@geocartic.com> Hey Tim- I thought this was a great idea - and actually overlooked your attachment until just recently. When I didn't see the example online, I started fresh on this. Turns out it's quite different than the one that you put together. I needed different sorts of configuration options. So, for my version of regular polygon drawing (and approximating circles), see http://dev.openlayers.org/sandbox/tschaub/feature/examples/regular-polygons.html Thanks for the inspiration, Tim (Note that this requires a few patches that aren't in the trunk yet.) Tim Langlois wrote: > I wrote a custom handler to draw an N-sided regular polygon by clicking > and dragging a line to specify the radius. The polygon is drawn on > mouse up. The number of sides is specified by the "sides" attribute. > > Here's an example. Click the polygon button in the toolbar in the upper > right corner and click and drag to create the polygon. To change the > sides, enter the number of sides you want and click submit. > > http://maps.terratrace.net/mapserver/vmaptest.html > > Attached is the handler code. > > > > The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company. Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission. > > > ------------------------------------------------------------------------ > > /** * Handler to draw an N sided regular ploygon on the map. A point is > drawn on mouse down, * a line is drawn on mouse move (representing the > radius), and the polygon is drawn on mouse up. * Use the "sides" option > to set the number of polygon sides. * * @class * @requires > OpenLayers/Handler/Point.js * @requires OpenLayers/Geometry/Polygon.js > */ OpenLayers.Handler.RegularPolygon = OpenLayers.Class.create(); > OpenLayers.Handler.RegularPolygon.prototype = > OpenLayers.Class.inherit(OpenLayers.Handler.Point, { /** * @type > OpenLayers.Feature.Vector * @private */ line: null, /** * @type > OpenLayers.Feature.Vector * @private */ regularPolygon: null, /** * The > number of sides the polygon will have * @type int */ sides: 50, /** * > @constructor * * @param {OpenLayers.Control} control * @param {Array} > callbacks An object with a 'done' property whos value is * a function to > be called when the path drawing is * finished. The callback should > expect to recieve a * single argument, the polygon geometry. * If the > callbacks object contains a 'point' * property, this function will be > sent each point * as they are added. If the callbacks object contains * > a 'cancel' property, this function will be called when * the handler is > deactivated while drawing. The cancel * should expect to receive a > geometry. * @param {Object} options */ initialize: function(control, > callbacks, options) { > OpenLayers.Handler.Point.prototype.initialize.apply(this, arguments); }, > /** * Add temporary geometries */ createFeature: function() { this.line > = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString()); > this.point = new OpenLayers.Feature.Vector(new > OpenLayers.Geometry.Point()); this.regularPolygon = new > OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon()); }, /** * > Destroy temporary geometries */ destroyFeature: function() { > this.line.destroy(); this.point.destroy(); > this.regularPolygon.destroy(); this.line = null; this.regularPolygon = > null; }, /** * Modify the existing geometry given the new point * */ > modifyFeature: function() { var index = > this.line.geometry.components.length - 1; > this.line.geometry.components[index].x = this.point.geometry.x; > this.line.geometry.components[index].y = this.point.geometry.y; }, /** * > Render geometries on the temporary layer. */ drawFeature: function() { > this.layer.drawFeature(this.line, this.style); > this.layer.drawFeature(this.point, this.style); }, /** * Add point to > geometry. Send the point index to override * the behavior of LinearRing > that disregards adding duplicate points. */ addPoint: function() { > this.line.geometry.addComponent(this.point.geometry.clone(), > this.line.geometry.components.length); this.callback("point", > [this.point.geometry]); }, /** * Return a clone of the relevant > geometry. * * @type OpenLayers.Geometry.LineString */ geometryClone: > function() { return this.regularPolygon.geometry.clone(); }, > createRegularPolygon: function() { var pointList = []; // the radius is > the length of the line segment var radius = > this.line.geometry.getLength(); // draw the polygon, the center is the > first point drawn at mousedown if (radius > 0) { var cenx = > this.line.geometry.components[0].x; var ceny = > this.line.geometry.components[0].y; var piNum = Math.PI * 2; var > segments = piNum / this.sides; for (var a = 0; a < piNum; a += segments) > { var x = cenx + radius * Math.sin(a); var y = ceny + radius * > Math.cos(a); var newPoint = new OpenLayers.Geometry.Point(x,y); > pointList.push(newPoint); } pointList.push(pointList[0]); var linearRing > = new OpenLayers.Geometry.LinearRing(pointList); > this.regularPolygon.geometry.addComponent(linearRing); } }, /** * Return > the radius of the polygon * * @type int */ getRadius: function() { > this.line.geometry.getLength(); }, /** * Handle mouse down. Add the > starting (center) point of the polygon and render it * Return determines > whether to propagate the event on the map. * * @param {Event} evt * > @type Boolean */ mousedown: function(evt) { if(this.line == null) { > this.createFeature(); } this.mouseDown = true; var lonlat = > this.control.map.getLonLatFromPixel(evt.xy); this.point.geometry.x = > lonlat.lon; this.point.geometry.y = lonlat.lat; this.addPoint(); > this.drawFeature(); return false; }, /** * Handle mouse move. Adjust the > geometry and redraw the line. * Return determines whether to propagate > the event on the map. * * @param {Event} evt * @type Boolean */ > mousemove: function (evt) { if ((this.line == null) || > (this.line.geometry == null)) return true; > if(this.line.geometry.components.length > 0) { var lonlat = > this.map.getLonLatFromPixel(evt.xy); if > (this.line.geometry.components.length == 1) { this.point = new > OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point()); > this.addPoint(); } this.point.geometry.x = lonlat.lon; > this.point.geometry.y = lonlat.lat; this.modifyFeature(); > this.drawFeature(); } return false; }, /** * Handle mouse up. Send the > last point in the geometry to the control. If we * have a valid line > segment (radius), then draw the polygon. * Return determines whether to > propagate the event on the map. * * @param {Event} evt * @type Boolean > */ mouseup: function (evt) { this.mouseDown = false; if > (this.line.geometry.components.length == 2) { > this.createRegularPolygon(); } this.point.destroy(); > this.line.destroy(); this.finalize(); return false; }, /** @final @type > String */ CLASS_NAME: "OpenLayers.Handler.RegularPolygon" }); > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From tom.dean at jdi-solutions.co.uk Wed Jul 11 08:45:38 2007 From: tom.dean at jdi-solutions.co.uk (Tom (JDi Solutions)) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> Message-ID: <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> All, The docs appear to show that Geometry.Point ( http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) only supports a basic x and y with no direction. I ask because we're going to be implementing an image library which could include the location from which the image was taken and also the direction the camera was facing (2d only!) If this feature does not already exist is there any call for it? It's not an urgent requirement for us but I guess it could be done fairly easily by extending the Point class? regards, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070711/3864d1e0/attachment.html From jachym.cepicky at gmail.com Wed Jul 11 09:34:42 2007 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] ctrl-z behaviour while editing linestring In-Reply-To: <4693BB78.6090701@duif.net> References: <4693BB78.6090701@duif.net> Message-ID: <1184160882.7817.4.camel@mellon> Hi, I have this - using [backspace] or [delete] buttons, which is IMHO more intuitive for normal users, than ctrl+anything here part of the code: [...] map.addControl(new OpenLayers.Control.KeyboardActions()); [...] OpenLayers.Control.KeyboardActions = OpenLayers.Class.create(); OpenLayers.Control.KeyboardActions.prototype = OpenLayers.Class.inherit( OpenLayers.Control, { /** * @constructor */ initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); }, /** * */ destroy: function() { if (this.handler) { this.handler.destroy(); } this.handler = null; OpenLayers.Control.prototype.destroy.apply(this, arguments); }, /** * */ draw: function() { this.handler = new OpenLayers.Handler.Keyboard( this, { "keypress": this.defaultKeyPress }); this.activate(); }, /** * @param {Integer} code */ defaultKeyPress: function (code) { switch(code) { case OpenLayers.Event.KEY_BACKSPACE: this.onBackspace(); break; case OpenLayers.Event.KEY_DELETE: this.onBackspace(); break; case OpenLayers.Event.KEY_ESC: this.onEsc(); break; } }, onBackspace: function () { // are we digitizing something? if (BNInfoButtons.polygonQuery.active) { var feature = BNInfoButtons.polygonQuery.handler.polygon; var polyidx = feature.geometry.components.length-1; var pointidx = feature.geometry.components[polyidx].components.length-2; var point = feature.geometry.components[polyidx].components[pointidx]; BNInfoButtons.polygonQuery.handler.line.geometry.removeComponent(point); BNInfoButtons.polygonQuery.handler.polygon.geometry.removeComponent(point); BNInfoButtons.polygonQuery.handler.drawFeature(); } }, onEsc: function () { // are we digitizing something? if (BNInfoButtons.polygonQuery.active) { BNQueryPanel.activateControl(BNInfoButtons.navigation); BNQueryPanel.activateControl(BNInfoButtons.polygonQuery); } }, /** @final @type String */ CLASS_NAME: "OpenLayers.Control.KeyboardActions" }); Since I'm not a JavaScript coder (I'm actually no coder at all), I will be thankful for any comments. Jachym Richard Duivenvoorde p??e v ?t 10. 07. 2007 v 19:01 +0200: > Hi all, > while the editing of a feature is not yet available in 2.4 (by the way: > any roadmap available for editing an excisting feature?), I thought it > would be nice to have some 'undo' functionality. So while somebody is > drawing a (sometimes rather large) linestring and does ctrl-Z or > something like that, I want to grab the current linestring being edited, > remove the last added point and draw the (one point shorter) linestring > again. > > I thought this would be easy, but it isn't ( for me :-( ). > The Vector layer doesn't have the feature/geometry in it's hands while > you are drawing it, and the point-callback get's a 'Point' as argument > (instead of the Linestring?). > Have been looking into the source of the DrawFeature control and Path > Handler, but couldn't find a hook. > > Somebody an idea for implementing this? > > TIA > > Richard Duivenvoorde > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070711/3c94092f/attachment.bin From erik.uzureau at metacarta.com Wed Jul 11 10:13:21 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> Message-ID: <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> Hi Tom, The feature you're suggesting doesn't sounds like something that would fit the general use case for OpenLayers, but as you say in the end of your mail, it would be *very* simple to add that functionality by extending the Point class. Let us know if you need help doing that. Erik On 7/11/07, Tom (JDi Solutions) wrote: > All, > > The docs appear to show that Geometry.Point ( > http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) > only supports a basic x and y with no direction. I ask because we're going > to be implementing an image library which could include the location from > which the image was taken and also the direction the camera was facing (2d > only!) > > If this feature does not already exist is there any call for it? It's not > an urgent requirement for us but I guess it could be done fairly easily by > extending the Point class? > > regards, > > Tom > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From john.cole at uai.com Wed Jul 11 10:31:21 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] selecting text in popup... Message-ID: <76758090F8686C47A44B6FF52514A1D307909D97@hermes.uai.int> Pedro, I wasn't able to get this to work and other issues have cropped up, preventing my looking into this further. I hope to get back to it though. >From the code, it appears that selecting text is something that is intended, but there is something higher up the chain preventing it. :-( John _____ From: Pedro Assuncao [mailto:Pedro.Assuncao@tomtom.com] Sent: Wednesday, July 11, 2007 9:25 AM To: users@openlayers.org; John Cole Subject: [OpenLayers-Users] selecting text in popup... Hi there, I was wondering if you figured out a way to allow selecting text inside an openlayers popup, since we are experiencing the same problem :) Thanks in advance, Pedro _____ This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070711/10cfac83/attachment.html From tom.dean at jdi-solutions.co.uk Wed Jul 11 10:53:49 2007 From: tom.dean at jdi-solutions.co.uk (Tom (JDi Solutions)) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> Message-ID: <4fe6dd700707110753x43e9ba77m6e313d6a919820c5@mail.gmail.com> Cool, I may do that and I'll let you know if and when, just don't hold your breath! Many thanks, Tom On 7/11/07, Erik Uzureau wrote: > > Hi Tom, > > The feature you're suggesting doesn't sounds like something that would > fit the general use case for OpenLayers, but as you say in the end of > your mail, it would be *very* simple to add that functionality by > extending the Point class. > > Let us know if you need help doing that. > > Erik > > > > On 7/11/07, Tom (JDi Solutions) wrote: > > All, > > > > The docs appear to show that Geometry.Point ( > > http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) > > only supports a basic x and y with no direction. I ask because we're > going > > to be implementing an image library which could include the location > from > > which the image was taken and also the direction the camera was facing > (2d > > only!) > > > > If this feature does not already exist is there any call for it? It's > not > > an urgent requirement for us but I guess it could be done fairly easily > by > > extending the Point class? > > > > regards, > > > > 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/20070711/69731cad/attachment.html From rdmailings at duif.net Wed Jul 11 11:16:12 2007 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] ctrl-z behaviour while editing linestring In-Reply-To: <1184160882.7817.4.camel@mellon> References: <4693BB78.6090701@duif.net> <1184160882.7817.4.camel@mellon> Message-ID: <4694F43C.8010906@duif.net> Hi Jachym, My problem is a little easier then yours I think. I know for sure there is always just one linestring in my drawinglayer/handler. The clue from your code was that the handler has the current geometry you are drawing, couldn't find that myself :-o I'm not a javascript guru either, but my (probably not so faulttolerant) little hack now is: var feature = myLineControl.handler.line; if(feature.geometry.components.length >1){ var lineidx = feature.geometry.components.length-1; feature.geometry.removeComponent( feature.geometry.components[lineidx]); lineControl.handler.modifyFeature(); lineControl.handler.drawFeature(); } It's maybe more clean to do it your way: make a new control. Thanks for your help! Richard Duivenvoorde Jachym Cepicky wrote: > Hi, > > I have this - using [backspace] or [delete] buttons, which is IMHO more > intuitive for normal users, than ctrl+anything > > here part of the code: > > [...] > map.addControl(new OpenLayers.Control.KeyboardActions()); > > [...] > > OpenLayers.Control.KeyboardActions = OpenLayers.Class.create(); > OpenLayers.Control.KeyboardActions.prototype = > OpenLayers.Class.inherit( OpenLayers.Control, { > > /** > * @constructor > */ > initialize: function() { > OpenLayers.Control.prototype.initialize.apply(this, arguments); > }, > > /** > * > */ > destroy: function() { > if (this.handler) { > this.handler.destroy(); > } > this.handler = null; > > OpenLayers.Control.prototype.destroy.apply(this, arguments); > }, > > /** > * > */ > draw: function() { > this.handler = new OpenLayers.Handler.Keyboard( this, { > "keypress": this.defaultKeyPress }); > this.activate(); > }, > > /** > * @param {Integer} code > */ > defaultKeyPress: function (code) { > switch(code) { > case OpenLayers.Event.KEY_BACKSPACE: > this.onBackspace(); > break; > case OpenLayers.Event.KEY_DELETE: > this.onBackspace(); > break; > case OpenLayers.Event.KEY_ESC: > this.onEsc(); > break; > } > }, > > onBackspace: function () { > > // are we digitizing something? > if (BNInfoButtons.polygonQuery.active) { > var feature = BNInfoButtons.polygonQuery.handler.polygon; > var polyidx = feature.geometry.components.length-1; > var pointidx = > feature.geometry.components[polyidx].components.length-2; > var point = > feature.geometry.components[polyidx].components[pointidx]; > > BNInfoButtons.polygonQuery.handler.line.geometry.removeComponent(point); > > BNInfoButtons.polygonQuery.handler.polygon.geometry.removeComponent(point); > BNInfoButtons.polygonQuery.handler.drawFeature(); > } > }, > > onEsc: function () { > > // are we digitizing something? > if (BNInfoButtons.polygonQuery.active) { > BNQueryPanel.activateControl(BNInfoButtons.navigation); > BNQueryPanel.activateControl(BNInfoButtons.polygonQuery); > } > }, > > /** @final @type String */ > CLASS_NAME: "OpenLayers.Control.KeyboardActions" > }); > > > Since I'm not a JavaScript coder (I'm actually no coder at all), I will > be thankful for any comments. > > Jachym > > Richard Duivenvoorde p??e v ?t 10. 07. 2007 v 19:01 +0200: >> Hi all, >> while the editing of a feature is not yet available in 2.4 (by the way: >> any roadmap available for editing an excisting feature?), I thought it >> would be nice to have some 'undo' functionality. So while somebody is >> drawing a (sometimes rather large) linestring and does ctrl-Z or >> something like that, I want to grab the current linestring being edited, >> remove the last added point and draw the (one point shorter) linestring >> again. >> >> I thought this would be easy, but it isn't ( for me :-( ). >> The Vector layer doesn't have the feature/geometry in it's hands while >> you are drawing it, and the point-callback get's a 'Point' as argument >> (instead of the Linestring?). >> Have been looking into the source of the DrawFeature control and Path >> Handler, but couldn't find a hook. >> >> Somebody an idea for implementing this? >> >> TIA >> >> Richard Duivenvoorde >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users From woodbri at swoodbridge.com Wed Jul 11 11:30:11 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> Message-ID: <4694F783.8090405@swoodbridge.com> Erik, I can think of a few use cases that would fit OpenLayers for this feature: 1) photo with direction of camera indicated as Tom mentioned. 2) GPS tracking, showing a vehicle symbol with the orientation of the symbol aligned to the direction of travel 3) animating a car driving over a route and keeping it oriented to the road 4) Showing symbols for wind force and direction, these need to be oriented with the direction of the wind and might be served via WFS. Currently there are some mapserver users doing this in mapserver, but they might want a more interactive model to work with. These are just few that come to mind off the top of my head, I'm sure there are others, so don't discount this feature too fast. -Steve W. Erik Uzureau wrote: > Hi Tom, > > The feature you're suggesting doesn't sounds like something that would > fit the general use case for OpenLayers, but as you say in the end of > your mail, it would be *very* simple to add that functionality by > extending the Point class. > > Let us know if you need help doing that. > > Erik > > > > On 7/11/07, Tom (JDi Solutions) wrote: >> All, >> >> The docs appear to show that Geometry.Point ( >> http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) >> only supports a basic x and y with no direction. I ask because we're going >> to be implementing an image library which could include the location from >> which the image was taken and also the direction the camera was facing (2d >> only!) >> >> If this feature does not already exist is there any call for it? It's not >> an urgent requirement for us but I guess it could be done fairly easily by >> extending the Point class? >> >> regards, >> >> Tom >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From erik.uzureau at metacarta.com Wed Jul 11 11:47:02 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <4694F783.8090405@swoodbridge.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> <4694F783.8090405@swoodbridge.com> Message-ID: <6ae3fb590707110847k7cb0e649p1c7af889214f2c00@mail.gmail.com> All good points. I didn't mean for my email to sound like a closed door... My initial reaction was just that it's not something we'd want in the core Pixel/Point object, but would make sense as a subclass. Although maybe I'm wrong and it *would* be worth adding directly to Pixel/Point? I'm far from an expert on GIS matters, so please always second-guess me on things like this, I'm grateful for the feedback :-) Erik On 7/11/07, Stephen Woodbridge wrote: > Erik, > > I can think of a few use cases that would fit OpenLayers for this feature: > > 1) photo with direction of camera indicated as Tom mentioned. > 2) GPS tracking, showing a vehicle symbol with the orientation of the > symbol aligned to the direction of travel > 3) animating a car driving over a route and keeping it oriented to the road > 4) Showing symbols for wind force and direction, these need to be > oriented with the direction of the wind and might be served via WFS. > Currently there are some mapserver users doing this in mapserver, but > they might want a more interactive model to work with. > > These are just few that come to mind off the top of my head, I'm sure > there are others, so don't discount this feature too fast. > > -Steve W. > > Erik Uzureau wrote: > > Hi Tom, > > > > The feature you're suggesting doesn't sounds like something that would > > fit the general use case for OpenLayers, but as you say in the end of > > your mail, it would be *very* simple to add that functionality by > > extending the Point class. > > > > Let us know if you need help doing that. > > > > Erik > > > > > > > > On 7/11/07, Tom (JDi Solutions) wrote: > >> All, > >> > >> The docs appear to show that Geometry.Point ( > >> http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) > >> only supports a basic x and y with no direction. I ask because we're going > >> to be implementing an image library which could include the location from > >> which the image was taken and also the direction the camera was facing (2d > >> only!) > >> > >> If this feature does not already exist is there any call for it? It's not > >> an urgent requirement for us but I guess it could be done fairly easily by > >> extending the Point class? > >> > >> regards, > >> > >> Tom > >> > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > >> > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > From noreply at geocartic.com Wed Jul 11 12:34:20 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] FOSS4G OL Sprint Message-ID: <4695068C.5020907@geocartic.com> For those attending FOSS4G in Sept, there will be an OpenLayers code sprint on the Friday following the conference. http://wiki.osgeo.org/index.php/FOSS4G2007_CodeSprint#OpenLayers At some point over the next couple months, I think it would be good to get organized about what might happen on that day (and beyond if people are sticking around). I've added my name and a few ideas to that osgeo wiki page. If others are planning on being there and have ideas, please do the same. At some point next month, I'll see if folks are interested in having a meeting about organizing priorities. Tim From noreply at geocartic.com Wed Jul 11 18:17:59 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: <4694F783.8090405@swoodbridge.com> References: <4fe6dd700707110536p6526b3eaia15180c0d2170b4c@mail.gmail.com> <4fe6dd700707110545qd82df62n9383f9147e29f6f0@mail.gmail.com> <6ae3fb590707110713r2b2d2b32ne70334fc774f886a@mail.gmail.com> <4694F783.8090405@swoodbridge.com> Message-ID: <46955717.5080102@geocartic.com> The answer is yes, OpenLayers does support adding arbitrary attributes to points. You should be looking at OpenLayers.Feature.Vector. A point geometry doesn't have direction. A feature is geometry plus attributes. If you create a feature with a point geometry, you can store any arbitrary attributes along with it. Hope that makes sense. Tim Stephen Woodbridge wrote: > Erik, > > I can think of a few use cases that would fit OpenLayers for this feature: > > 1) photo with direction of camera indicated as Tom mentioned. > 2) GPS tracking, showing a vehicle symbol with the orientation of the > symbol aligned to the direction of travel > 3) animating a car driving over a route and keeping it oriented to the road > 4) Showing symbols for wind force and direction, these need to be > oriented with the direction of the wind and might be served via WFS. > Currently there are some mapserver users doing this in mapserver, but > they might want a more interactive model to work with. > > These are just few that come to mind off the top of my head, I'm sure > there are others, so don't discount this feature too fast. > > -Steve W. > > Erik Uzureau wrote: >> Hi Tom, >> >> The feature you're suggesting doesn't sounds like something that would >> fit the general use case for OpenLayers, but as you say in the end of >> your mail, it would be *very* simple to add that functionality by >> extending the Point class. >> >> Let us know if you need help doing that. >> >> Erik >> >> >> >> On 7/11/07, Tom (JDi Solutions) wrote: >>> All, >>> >>> The docs appear to show that Geometry.Point ( >>> http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) >>> only supports a basic x and y with no direction. I ask because we're going >>> to be implementing an image library which could include the location from >>> which the image was taken and also the direction the camera was facing (2d >>> only!) >>> >>> If this feature does not already exist is there any call for it? It's not >>> an urgent requirement for us but I guess it could be done fairly easily by >>> extending the Point class? >>> >>> regards, >>> >>> Tom >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From cheung.jackey at gmail.com Thu Jul 12 00:45:00 2007 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Overlaid layers alignment problem Message-ID: Greetings! I've got a map, one base layer (WMS) with 3 overlays (WFS). All overlays are for displaying POI only. The options of the map object is: var options4326 = { numZoomLevels: 12, maxResolution: .00068359375, maxExtent: new OpenLayers.Bounds(-180,-90,180,90), projection:"EPSG:4326", controls: [] }; While the overlays are: g_markLayer = new OpenLayers.Layer.WFS(g_layerPOI,"strWFS.php?"+"ID=1", {TYPENAME: "POI",LCID:3076,TYPES:"1603,1900"}, { featureClass: OpenLayers.Feature.WFSPOI,ratio:1.0}); g_map.addLayer(g_markLayer); var customPOILayer = new OpenLayers.Layer.WFS(g_layerCustomPOI,"WFSBox.php?"+"ID=1", {typename: "ud",geometrytype:"POINT", maxfeatures: 10}, { featureClass: OpenLayers.Feature.CustomPOI,ratio:1.0}); g_map.addLayer(customPOILayer); g_searchLayer = new OpenLayers.Layer.Markers("Markers"); g_map.addLayer(g_searchLayer); The outcome don't align correctly: http://www3.mapasia.com/jackout/1.png http://www3.mapasia.com/jackout/2.png I've check the mouse position, it show the correct lon,lat as I expected. What is wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070712/73614139/attachment.html From lp at rpag.ch Thu Jul 12 04:47:46 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Message-ID: <929074CD8C635346B3FFFEFACDE01B45019B2147@exrpmu1.ingnet.local> Hi list, I have a UMN mapserver setup that I try to access with OpenLayers. I can get the objects and it displays the PNG images for them in OL. But these objects don't seem to get repeated over multiple mapserver pictures (meaning I see an objects, for example a train station symbol and the half of its description. The other part of the description should be in the next image receieved from the mapserver, but I don't see it). Google Maps under my WMS layer works fine. What could be the problem? Does OL get wrong images from the mapserver? Or is the grid from the mapserver images setup wrong? Are there settings in OpenLayers for this? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070712/7a60d812/attachment.html From Robert.Jeansoulin at univ-mlv.fr Thu Jul 12 05:51:00 2007 From: Robert.Jeansoulin at univ-mlv.fr (Robert Jeansoulin) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Does OpenLayers support orientation of points? In-Reply-To: References: Message-ID: - About this " orientation of points " discussion thread: I do believe that any " Geometry " or " Feature " can possibly be attributed an orientation, not only Points. A LineString, a Polygon, even a MultiPolygon may be characterized by a " general orientation ". Actually, a good approximation of any spatial object could be an ellipse (the kind of potato we can sketch on a map) for which we need a LatLon plus two floats. Let's name Potatoid this ellipse. Hence, I would be interested by a more general solution, and I have a suggestion : Tim proposes to use OpenLayers.Feature.Vector that associates external attributes to a Geometry, it is one point ; the second point is that there is a method Geometry.atPoint(lonlat, toleranceLon, toleranceLat) that positions approximately the Geometry, it is - as I understand - simply the center of the bounding box hence, for a Point, it should be the Point itself (I didn't check) but the other two parameters can be used to determine the orientation, and for Point, they are certanly zero (I didn't check) therefore, the Potatoid, or ellipse, or oriented point, etc. can be set and drawn from the answer of Geometry.atPoint(lonlat, tlon, tlat) or OpenLayers.Feature.Vector.Geometry.atPoint(lonlat, tlon, tlat) The problem is : how to set these (lonlat, tlon, tlat) differently that from the bounding box ? my suggestion is that the method atPoint should exist also at the Vector level, and: - to add methods : Vector.setPoint(latlon) Vector.setOrientation( tlon, tlat) e.g.: sinAlpha, cosAlpha in case we want to explicitely set the Potatoid It can be set in the Vector.attributes object, but we need a special flag to inform the atPoint() method to behave differently in this case : - Vector.Geometry.atPoint() is exactly Geometry.atPoint() if the flag is false - Vector.Geometry.atPoint() returns (lonlat, tlon, tlat) computed from the Vector.attributes, considered as the Potatoid, if the flag is true That it makes sense ? Merci, Robert. -- ------------------------------------------------------------ Robert JEANSOULIN PhD, Ing., DR CNRS, Assoc.Prof. U.Laval ------------------------------------------------------------ Labo.Informatique - Institut Gaspard Monge Universite Paris-Est 77454 - MARNE-LA-VALLEE Cedex - France RER stop: " Noisy-Champs " (line A) Tel.: +33 (0)1 60 95 77 26 Fax: +33 (0)1 60 95 77 55 www: http://igm.univ-mlv.fr/~jeansoul/ From dalsinao at yahoo.es Thu Jul 12 09:23:57 2007 From: dalsinao at yahoo.es (David_Als) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Select markers at the same location Message-ID: <11559841.post@talk.nabble.com> Hello users, I am using OpenLayers.Layer.Markers to add layers of markers to a map. Then I want to be able to select a specific marker clicking on it, so I've registered the click event for OpenLayers.Marker; then, when the event is raised I can react on the selection of that specific marker and present for instance information about the selected marker to the user. The problem comes when I have markers at the exact same location; then, no matter how much I zoom in, they all appear as one single icon and so I can only select the one on top. I have been thinking in offering for instance the possibility of right-clicking on a marker and getting a list of markers at the same location, if any, but that seems to me a bit tedious thing to do, since I would have to search the location of all the markers on all the layers and compare them to find which ones are at that (or very close to that) location. So my question is, is there an easy way of selecting any of the markers located at a same location? Do you have any suggestion of making markers at the same location easily "selectable"? Thanks in advance for your help and regards, David -- View this message in context: http://www.nabble.com/Select-markers-at-the-same-location-tf4068046.html#a11559841 Sent from the OpenLayers Users mailing list archive at Nabble.com. From fquintana at codesyntax.com Thu Jul 12 09:28:38 2007 From: fquintana at codesyntax.com (Nando Quintana) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] configuration problems with TMS Message-ID: <1184246918.4248.22.camel@localhost> Hi all, I'm writing an script to create a map using TMS: http://kelpi.com/script/0638e7 I think I'm missing something in the configuration when I use OpenLayers.Layer.TMS in line 47: http://kelpi.com/script/0638e7#47 the tiles I'm trying to use follow the same schema that google's ones: for example, for this google's tile: http://mt2.google.com/mt?n=404&v=ap.55&x=8093&y=6002&zoom=3 I'll request this one: http://b5m.gipuzkoa.net/web5000/b5m.php?t=map&z=3&x=8093&y=6002 The problem with this script is that the bounds that arrives to getURL function are slightly differents to the tiles bounds... Could anybody give me a clue about the map configuration? I see that the parameters: 'maxResolution' and 'maxExtent' changes the behaviour of the map but I don't understand the role of those parameters in the tile bounds compositions... Some url to doc or examples would be very appreciated... By the way, Im using this python psp to debbug my TMS invokations: http://kelpi.com/script/98f108 this python script returns a tile that shows the request parameters. May be you find it useful... Thanks in advance, Nando. -- http://www.nandoquintana.com/contact -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070712/627ec91b/attachment.bin From rwburgholzer at deq.virginia.gov Thu Jul 12 09:51:08 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Scrollbars in popup Message-ID: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> I am trying to have popup text with scrollbars on my map. I have seen two posts regarding this in the archives, but found no resolutions. Any help would be most appreciated. I am new to OpenLayers and think it is really fantastic. Thanks, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070712/feee36b2/attachment.html From crschmidt at metacarta.com Thu Jul 12 09:58:48 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Scrollbars in popup In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> Message-ID: <20070712135848.GC15508@metacarta.com> On Thu, Jul 12, 2007 at 09:51:08AM -0400, Burgholzer,Robert wrote: > I am trying to have popup text with scrollbars on my map. I have seen > two posts regarding this in the archives, but found no resolutions. Any > help would be most appreciated. > > > > I am new to OpenLayers and think it is really fantastic. FlickrBrowse does this. THe code is in http://labs.metacarta.com/flickrbrowse/Flickr.js -- popup.contentDiv.style.overflow='auto'; I have no idea if this is supported or not. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Jul 12 10:07:06 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] selecting text in popup... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909D97@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909D97@hermes.uai.int> Message-ID: <20070712140706.GE15508@metacarta.com> On Wed, Jul 11, 2007 at 09:31:21AM -0500, John Cole wrote: > Pedro, > > I wasn't able to get this to work and other issues have cropped up, > preventing my looking into this further. I hope to get back to it though. > From the code, it appears that selecting text is something that is intended, > but there is something higher up the chain preventing it. :-( If you're in Firefox, check the theme/default/style.css. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Jul 12 10:17:30 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Select markers at the same location In-Reply-To: <11559841.post@talk.nabble.com> References: <11559841.post@talk.nabble.com> Message-ID: <20070712141730.GH15508@metacarta.com> On Thu, Jul 12, 2007 at 06:23:57AM -0700, David_Als wrote: > > Hello users, > > I am using OpenLayers.Layer.Markers to add layers of markers to a map. > Then I want to be able to select a specific marker clicking on it, so I've > registered the click event for OpenLayers.Marker; then, when the event is > raised I can react on the selection of that specific marker and present for > instance information about the selected marker to the user. > > The problem comes when I have markers at the exact same location; then, no > matter how much I zoom in, they all appear as one single icon and so I can > only select the one on top. > > I have been thinking in offering for instance the possibility of > right-clicking on a marker and getting a list of markers at the same > location, if any, but that seems to me a bit tedious thing to do, > since I would have to search the location of all the markers on all the > layers and compare them to find which ones are at that (or very close to > that) location. > > So my question is, is there an easy way of selecting any of the markers > located at a same location? Do you have any suggestion of making markers at > the same location easily "selectable"? http://ondemand.metacarta.com/client_samples/geosearch.js.html If you click a marker, a popup window contains all relavnt documents -- fetched by a server-side query with a small bounding box around the center of the marker. IF your data is coming from a server, you might be able to do something similar. Regards, -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Thu Jul 12 10:49:27 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Can someone please summarize google layer related issues Message-ID: <46963F77.1020509@swoodbridge.com> Hi all, I have to start a project that will be based on using Google Layers and I have seem a lot of discussion over the past month regarding Google layers that I have read, but didn't integrate at the time and I am hoping someone could summarize the issues, rather than rereading all the threads. This also might be handy to add to the OL FAQ. From what I remember it works very nicely for the general stuff but it seems that there are various specific issues related to the Google projection and that maybe overlay alignment with google. What are the overlay issues? What triggers these issues? What other issues are there? This would help greatly for planning. Thanks, -Steve From john.cole at uai.com Thu Jul 12 10:57:06 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Scrollbars in popup Message-ID: <76758090F8686C47A44B6FF52514A1D307909DA1@hermes.uai.int> That works, but there is a FF bug that affects this. If your map is not the size of the window, and your pan, the popup will be visible outside the main map div. IE 6/7 doesn't do this. John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Christopher Schmidt Sent: Thursday, July 12, 2007 8:59 AM To: Burgholzer,Robert Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Scrollbars in popup On Thu, Jul 12, 2007 at 09:51:08AM -0400, Burgholzer,Robert wrote: > I am trying to have popup text with scrollbars on my map. I have seen > two posts regarding this in the archives, but found no resolutions. Any > help would be most appreciated. > > > > I am new to OpenLayers and think it is really fantastic. FlickrBrowse does this. THe code is in http://labs.metacarta.com/flickrbrowse/Flickr.js -- popup.contentDiv.style.overflow='auto'; I have no idea if this is supported or not. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From rwburgholzer at deq.virginia.gov Thu Jul 12 11:25:26 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:36 2010 Subject: [OpenLayers-Users] Scrollbars in popup Message-ID: <6C097DA58429B743A67070F98BE73A37025DD633@deqex01.deq.local> I hope I will not get in trouble for cross-posting, but I will post this to the DEV listserv also. A small modification to the code in "lib\OpenLayers\Layer\Text.js" and " lib\OpenLayers\Feature.js" will permit the specification of overflow by including the column "overflow" in the text file that is read to create Text Features. It does nothing if the text file does not possess this column. I put the modified lines here: lib\OpenLayers\Layers\Text.js (Diff output): 71c71 < var icon, iconSize, iconOffset, overflow; --- > var icon, iconSize, iconOffset; 101,102d101 < } else if (columns[valIndex] == 'overflow') { < overflow = vals[valIndex]; 128,130d126 < if ((overflow != null) ) { < data['overflow'] = overflow; < } lib\OpenLayers\Feature.js (Diff output): 149,154d149 < < if (this.data.overflow != null) { < this.popup.contentDiv.style.overflow = this.data.overflow; < } < < //this.popup.contentDiv.style.overflow = 'auto'; -----Original Message----- From: John Cole [mailto:john.cole@uai.com] Sent: Thursday, July 12, 2007 10:57 AM To: 'Christopher Schmidt'; Burgholzer,Robert Cc: users@openlayers.org Subject: RE: [OpenLayers-Users] Scrollbars in popup That works, but there is a FF bug that affects this. If your map is not the size of the window, and your pan, the popup will be visible outside the main map div. IE 6/7 doesn't do this. John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Christopher Schmidt Sent: Thursday, July 12, 2007 8:59 AM To: Burgholzer,Robert Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Scrollbars in popup On Thu, Jul 12, 2007 at 09:51:08AM -0400, Burgholzer,Robert wrote: > I am trying to have popup text with scrollbars on my map. I have seen > two posts regarding this in the archives, but found no resolutions. Any > help would be most appreciated. > > > > I am new to OpenLayers and think it is really fantastic. FlickrBrowse does this. THe code is in http://labs.metacarta.com/flickrbrowse/Flickr.js -- popup.contentDiv.style.overflow='auto'; I have no idea if this is supported or not. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From erik.uzureau at metacarta.com Thu Jul 12 12:57:35 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] selecting text in popup... In-Reply-To: <20070712140706.GE15508@metacarta.com> References: <76758090F8686C47A44B6FF52514A1D307909D97@hermes.uai.int> <20070712140706.GE15508@metacarta.com> Message-ID: <6ae3fb590707120957p7cdd37b4gec8f268e4e8406ea@mail.gmail.com> Might this be worthy of an FAQ addition? On 7/12/07, Christopher Schmidt wrote: > On Wed, Jul 11, 2007 at 09:31:21AM -0500, John Cole wrote: > > Pedro, > > > > I wasn't able to get this to work and other issues have cropped up, > > preventing my looking into this further. I hope to get back to it though. > > From the code, it appears that selecting text is something that is intended, > > but there is something higher up the chain preventing it. :-( > > If you're in Firefox, check the theme/default/style.css. > > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Thu Jul 12 13:52:12 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] selecting text in popup... In-Reply-To: <6ae3fb590707120957p7cdd37b4gec8f268e4e8406ea@mail.gmail.com> References: <76758090F8686C47A44B6FF52514A1D307909D97@hermes.uai.int> <20070712140706.GE15508@metacarta.com> <6ae3fb590707120957p7cdd37b4gec8f268e4e8406ea@mail.gmail.com> Message-ID: <20070712175212.GC16083@metacarta.com> On Thu, Jul 12, 2007 at 11:57:35AM -0500, Erik Uzureau wrote: > Might this be worthy of an FAQ addition? Better to figure out how to fix it :) Regards, -- Christopher Schmidt MetaCarta From rpierce at actgeospatial.com Thu Jul 12 16:14:40 2007 From: rpierce at actgeospatial.com (Richie Pierce) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] moveend and IE Message-ID: <002101c7c4c1$491bf650$1200a8c0@ibmworkstation2> I'm putting together a viewer that takes advantage of the vector drawing. I'm using the moveend event handler to query my SQL database to get the geometry ring ( thanks to MSSQL Spatial ) and re-draw the vectors for the current extent. My problem is that the moveend event is not firing in IE when I pan. Everything works great in Firefox I've seen some mention of this issue and thought it might had been corrected but I'm still having the problem after updating through SVN. Any help would be great. Have a look and see if I'm missing something. http://maps.datascoutpro.com/dmap.php Thanks, Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce@actgeospatial.com www.actgeospatial.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070712/d94a528c/attachment.html From noreply at geocartic.com Thu Jul 12 16:23:33 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B2147@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B2147@exrpmu1.ingnet.local> Message-ID: <46968DC5.1070902@geocartic.com> Pfirter Lukas wrote: > Hi list, > I have a UMN mapserver setup that I try to access with OpenLayers. > I can get the objects and it displays the PNG images for them in OL. But > these objects don't seem to get repeated over multiple mapserver > pictures (meaning I see an objects, for example a train station symbol > and the half of its description. The other part of the description > should be in the next image receieved from the mapserver, but I don't > see it). Google Maps under my WMS layer works fine. > > What could be the problem? Does OL get wrong images from the mapserver? > Or is the grid from the mapserver images setup wrong? Each request to a WMS for an image tile is independent. When you you request a tile from MapServer with bounds that contain your train station (point), MapServer will render as much of that symbol as it can on that tile. When you request the next tile that doesn't contain the train station (point), MapServer has no reason to render a partial train station. You can get around this in two ways: 1) use something that requests larger tiles with a buffer, slices them up in to smaller tiles and discards the buffer - see http://tilecache.org or 2) use the "gutter" property on your WMS layer in OpenLayers - see http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.gutter # ignore a 10 pixel gutter around each tile var layer = new OpenLayers.Layer.WMS(name, url, params, {gutter: 10}); Good luck, Tim > > Are there settings in OpenLayers for this? > Thank you. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From tben at refractions.net Thu Jul 12 17:20:19 2007 From: tben at refractions.net (Thomas Bengtson) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] How to switch between panning / zooming mode for dragging events? Message-ID: <46969B13.5000703@refractions.net> I would like to incorporate the "zoom to bounding box" feature into a (non-openlayers) toolbar where the user clicks a button to put the map into "bounding box" mode with functionality like the current Shift-Drag feature. Is there a way I can switch between panning and zooming for the maps' mousemove events? or do I have to write code to capture mouse co-ords and call zoomToExtent? or... Thanks, Tom From louvy.joseph at gmail.com Thu Jul 12 21:20:49 2007 From: louvy.joseph at gmail.com (louvy.joseph@gmail.com) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: References: <468CAE6F.2040100@gmail.com> Message-ID: <4696D371.1060108@gmail.com> The google drag flicker is captured in http://trac.openlayers.org/ticket/816 as far as I understand. I can't understand how this bug is left around for so long. It is pretty serious in the sense of AJAX experience. The same thing does happen in my trials with Yahoo layer too but the flicker is not so bad. -- Narayana Glen Stampoultzis wrote: > > On 06/07/07, *bradleyspencer* > wrote: > > Louvy, > > I have the same problem I think. But this has a 'flickr' in both > IE and FF. > > http://www.ozdemo.org/ > > Just change base map to Google Maps (or Hybrid) and drag away. The > TerraPages is what I use as default and is a separate TileCached > environment > and no flickr. > > Cheers, > > Brad Spencer > mailto:brad@cubewerx.com.au > http://www.cubewerx.com.au > > > > Hi Brad, > > Hi. Sorry for the lateness of my reply. I only just noticed your > message. > > The issue was being caused for me because I was was erasing and > redrawing a vector > when any pan occurred. This would cause black triangles to appear for > me when it was erased. This was fixed in FF by moving the erase into > the same event as the draw. Previously I was erasing the vector > making an ajax request then drawing a new vector. Unfortunately this > causes a weird ghost line in Internet Explorer for a split second so I > had to keep the erase before the ajax request in Internet Explorer. > this means the line disappears until the ajax request comes back which > is unfortunate. > > The flicker I was experiencing doesn't seem to be the same thing that > I'm seeing on your site. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From crschmidt at metacarta.com Fri Jul 13 00:44:48 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Flicker while dragging map with vector in FF In-Reply-To: <4696D371.1060108@gmail.com> References: <468CAE6F.2040100@gmail.com> <4696D371.1060108@gmail.com> Message-ID: <20070713044448.GB18227@metacarta.com> On Fri, Jul 13, 2007 at 06:50:49AM +0530, louvy.joseph@gmail.com wrote: > The google drag flicker is captured in > http://trac.openlayers.org/ticket/816 as far as I understand. I can't > understand how this bug is left around for so long. It's quite simple, really: It's a bug in the Google Maps API, and no one has proposed a workaround at the OpenLayers level. There was a post to the Google Maps API Google Group on Jun 5 by Josh Livni (http://groups.google.com/group/Google-Maps-API/browse_thread/thread/3cab18706cb51efd?hl=en) demonstrating this behavior with the Google Maps API alone, with no responses from that group. Is there a solution that has been proposed which hasn't been accepted? I hope not, since this bugs me very much as well, and I'd love to have it fixed - I just don't have any way to do anything about it that I'm aware of. If you have a patch or other contribution, and it hasn't made it to trac yet, please do feel free to describe it in prose or code in the ticket -- http://trac.openlayers.org/wiki/FilingTickets has login information, if that's a blocker. Regards, -- Christopher Schmidt MetaCarta From prasad.choudhary at gmail.com Fri Jul 13 01:28:01 2007 From: prasad.choudhary at gmail.com (pforprasad) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Want to change the Unit Message-ID: <11534948.post@talk.nabble.com> Hello all, I am new to OL exprimenting with it for some project, I want to show scale on map and need to change the units for map, will some one help me to understand properties like resolutions, scale and BoundingBox if i change the scale to 'ft' or 'mt' -- View this message in context: http://www.nabble.com/Want-to-change-the-Unit-tf4060151.html#a11534948 Sent from the OpenLayers Users mailing list archive at Nabble.com. From lp at rpag.ch Fri Jul 13 03:32:56 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Message-ID: <929074CD8C635346B3FFFEFACDE01B45019B214B@exrpmu1.ingnet.local> Hello Tim, thank you for the answer! I looked into solution (1) and it seemed to be too complicated and needs cgi-script installation on the server, also configuration for each layer to make it work. Actually "gutter" is probably what I need - but there is almost nothing on google about gutter/openlayers... :( This is my test application: http://map.webser125.lookass.ch/openlayers/ex_rpag_google.php I used "gutter: 200" on it, but nothing changed / happened. Applying any gutter doesn't change anything. What am I missing? (btw: looking at this WMS in a Desktiop GIS like UDIG works fine, all descriptions are totally visible...) Thanks! -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Tim Schaub Gesendet: Donnerstag, 12. Juli 2007 22:24 Cc: Users@openlayers.org Betreff: Re: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Each request to a WMS for an image tile is independent. When you you request a tile from MapServer with bounds that contain your train station (point), MapServer will render as much of that symbol as it can on that tile. When you request the next tile that doesn't contain the train station (point), MapServer has no reason to render a partial train station. You can get around this in two ways: 1) use something that requests larger tiles with a buffer, slices them up in to smaller tiles and discards the buffer - see http://tilecache.org or 2) use the "gutter" property on your WMS layer in OpenLayers - see http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.gutter # ignore a 10 pixel gutter around each tile var layer = new OpenLayers.Layer.WMS(name, url, params, {gutter: 10}); Good luck, Tim From myardbenoit at gmail.com Fri Jul 13 04:05:48 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B214B@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B214B@exrpmu1.ingnet.local> Message-ID: <6fb81fc70707130105g3efcbbf6m2976f096b3bcdb3c@mail.gmail.com> You may want to use OpenLayers.Layer.WMS.Untiled instead of OpenLayers.Layer.WMS. -- Benoit Myard From kuttinger at gmx.de Fri Jul 13 09:29:51 2007 From: kuttinger at gmx.de (kutte) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] getfeature info in Internet Explorer Message-ID: <11546595.post@talk.nabble.com> Hallo, I`m using openlayers with Google, Virtual Earth and Yahoo as baselayers and a some WMS-layers as overlays. The WMS layers i queryable. In FireFox eyerything works fine. When I click in the map to pan, no information pop-up from the getfeature opens. When I try to pan in Internet explorer, every click in the map opens the info pop-up. So I cannot pan without that pop-up. Any idea? Thank you! Alex -- View this message in context: http://www.nabble.com/getfeature-info-in-Internet-Explorer-tf4063938.html#a11546595 Sent from the OpenLayers Users mailing list archive at Nabble.com. From akhan at unfpa.org Fri Jul 13 10:26:59 2007 From: akhan at unfpa.org (Ali Khan) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] OpenLayers issues In-Reply-To: <002101c7c4c1$491bf650$1200a8c0@ibmworkstation2> References: <002101c7c4c1$491bf650$1200a8c0@ibmworkstation2> Message-ID: <46978BB3.30408@unfpa.org> Help! I'm using a menu navigation bar based in CSS. The problem si though it seems when I use this bar openlayers breaks in a sense. the layer loads initially but the zoom bar is missing. When i do a mouse over on one of my menu objects it shows. When i try to lcick the map the entire div seems to disappear. Any ideas? From jochen.grefe at ingenieurteam2.com Fri Jul 13 11:03:53 2007 From: jochen.grefe at ingenieurteam2.com (Jochen Grefe) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Using kamaps direct cache access Message-ID: <7897256F0627534C8B8706E1E15A81B80BCDDA@alw2k3.IT2.local> Hello, I have changed the kamap Layer to work on precached http available caches. Usage: new OpenLayers.Layer.KaMap('map','/kacachemap', {g: 'test',map: 'testmap',i: 'png', cache: true, metaTileSize: {w: 3, h: 3}}, {minScale: 100,maxScale: 500}) Everything like the normal kamap layer only cache: true to enable the direct cache access. And metaTileSize: {w: 3, h: 3} to give the number of tiles per metatile. I'm not sure if the using of the params hashmap is appropriate. Lib/layer/kamap.js: 84,88c84,113 < return this.getFullRequestString( < { t: pY, < l: pX, < s: scale < }); --- > > if (this.params.cache){ > var metaX = Math.floor(pX / this.tileSize.w / this.params.metaTileSize.w) * this.tileSize.w * this.params.metaTileSize.w; > var metaY = Math.floor(pY / this.tileSize.h / this.params.metaTileSize.h) * this.tileSize.h * this.params.metaTileSize.h; > var paramsString = "/" + this.params["map"] > + "/" + scale > + "/" + this.params["g"] > + "/" + "def" > + "/t" + metaY > + "/l" + metaX > + "/t" + pY + "l" + pX + "." + this.params.i; > > // if url is not a string, it should be an array of strings, > // in which case we will deterministically select one of them in > // order to evenly distribute requests to different urls. > // > var url = this.url; > if (url instanceof Array) { > url = this.selectUrl(paramsString, url); > } > > return url + paramsString; > } > else { > return this.getFullRequestString( > { t: pY, > l: pX, > s: scale > }); > } From marc.desharnais at ec.gc.ca Fri Jul 13 16:03:29 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers Message-ID: <4697DA91.9030101@ec.gc.ca> Hi all, I'm new to this mailing list. I work for the government of Canada on a project to develop visualization tools. I tried to adapt the example from http://www.openlayers.org/dev/examples/getfeatureinfo.html To get the getfeatureInfo working. I get the loading message in the div section 'nodeList'. The problem is that it never seems to get an answer. I get the checkpoint popup when I click the map so I guess that this part is executed well. But it stays forever with the loading message. So probably "wmsLayer1.getFullRequestString" is not correct or my database is not quite right... I just have a layer with points. And I want to query information about thoise points in the database to display it beside the map. I'm using a local Geoserver with PostGIS. I would like to know too how the getFeatureInfo query works. Like if I have anything I have to do specially into the database. I figure that it's querying the database for info, but what info? Do I have to define what I want to be queried? Maybe this is off-topic here sorry. I searched for informations on the UTIL package for openlayers but didn't find real documentation about that. Please let me know if you would like more info. Any help will be greatly appreciated. Thanks in advance /******* CODE START HERE - !!! Note that this code is not complete. I posted only the parts I found relevant. !!! function init(){ var map = new OpenLayers.Map($('map'), {controls:[]} ); OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; var yahooLayer = new OpenLayers.Layer.Yahoo( "Globe (Yahoo)", {reproject: "true"} ); map.addLayer(yahooLayer); var wmsLayer1 = new OpenLayers.Layer.WMS( "POSTGIS villes", "http://ulysse.cmc.ec.gc.ca:8081/geoserver/wms", { layers: 'topp:villes', format: 'image/png' , transparent: "true", reproject: "true"} ); map.addLayer(wmsLayer1); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.NavToolbar()); map.addControl(new OpenLayers.Control.PanZoomBar($('map'))); map.addControl(new OpenLayers.Control.MouseDefaults()); map.addControl(new OpenLayers.Control.Scale($('scale'))); map.addControl(new OpenLayers.Control.MousePosition({element: $('position')})); map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodeList').innerHTML = "T?l?chargement d'information...
Veuillez Attendre SVP...
"; var url = wmsLayer1.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: wmsLayer1.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: wmsLayer1.params.LAYERS, WIDTH: wmsLayer1.map.size.w, HEIGHT: wmsLayer1.map.size.h}); OpenLayers.loadURL(url, '', this, setHTML); alert("Checkpoint"); Event.stop(e); }); } function setHTML(response) { alert("before answer"); OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText; alert("after answer"); } /********* CODE STOPS HERE From woodbri at swoodbridge.com Fri Jul 13 17:43:42 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer Message-ID: <4697F20E.9060606@swoodbridge.com> Hi all, I have run into an annoying issue that if you zoom to an extents the extents is not always inside the viewport, so if I have a bunch of points and zoom to their extents, sometimes some of the points are outside the viewport after the zoom. Is there a fix or workaround for this problem? Thanks, -Steve W From crschmidt at metacarta.com Fri Jul 13 18:55:29 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer In-Reply-To: <4697F20E.9060606@swoodbridge.com> References: <4697F20E.9060606@swoodbridge.com> Message-ID: <20070713225529.GA21774@metacarta.com> On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote: > Hi all, > > I have run into an annoying issue that if you zoom to an extents the > extents is not always inside the viewport, so if I have a bunch of > points and zoom to their extents, sometimes some of the points are > outside the viewport after the zoom. > > Is there a fix or workaround for this problem? Can you provide a test case for this? Regards, -- Christopher Schmidt MetaCarta From brad at cubewerx.com.au Sat Jul 14 02:38:19 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Double click mouse control Message-ID: List, I have implemented an application that allows me to select a layer as the ?Active? layer. In the function triggered, I deactivate any DoubleClick map event with map.events.remove('dblclick'); and then register a DoubleClick event to do a getFeatureInfo on a mouse doubleclick. This works fine but after doing this once the standard DoubleClick (recenter & zoom) has of course been deactivated. I would like to reactivate just the DoubleClick to do Zoom & Recentre when selecting an active layer that is not queryable. Is there a method like map.events.remove('dblclick'); that allows me to activate the standard doubleclick mouse event? Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070714/82a98c42/attachment.html From john.cole at uai.com Sat Jul 14 10:27:23 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer Message-ID: <76758090F8686C47A44B6FF52514A1D307909DAB@hermes.uai.int> Steve, You might be doing this already or it might not apply, but... If you are using zoom levels (and not just free zoom scales) find out the zoom level for your extent with something like: var zoomlevel = map.getZoomForExtent(ci.Bounds); This should make sure that your entire extent is in the view port. Then use a setCenter with the center of your bounds and the zoomlevel. Like I said, this might not apply in your case. John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Stephen Woodbridge Sent: Friday, July 13, 2007 4:44 PM To: openlayers user list Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer Hi all, I have run into an annoying issue that if you zoom to an extents the extents is not always inside the viewport, so if I have a bunch of points and zoom to their extents, sometimes some of the points are outside the viewport after the zoom. Is there a fix or workaround for this problem? Thanks, -Steve W _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From eric.c2c at gmail.com Sat Jul 14 10:55:19 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Want to change the Unit In-Reply-To: <11534948.post@talk.nabble.com> References: <11534948.post@talk.nabble.com> Message-ID: <5ec103de0707140755n16bd039y760e6e1b29c6ae54@mail.gmail.com> Hi On 7/13/07, pforprasad wrote: > > Hello all, > > I am new to OL exprimenting with it for some project, I want to show scale > on map and need to change the units for map, will some one help me to > understand properties like resolutions, scale and BoundingBox if i change > the scale to 'ft' or 'mt' Currently, there's no control for OL to show the current scale. You'll have to write your own and use map.getScale() to actually access the current scale value. To change unit you need to pass options to the map constructor : var map = new OpenLayers.Map($('map'), { units: 'm' }); Hope this helps... -- Eric From crschmidt at metacarta.com Sat Jul 14 11:40:01 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Want to change the Unit In-Reply-To: <5ec103de0707140755n16bd039y760e6e1b29c6ae54@mail.gmail.com> References: <11534948.post@talk.nabble.com> <5ec103de0707140755n16bd039y760e6e1b29c6ae54@mail.gmail.com> Message-ID: <20070714154001.GA26666@metacarta.com> On Sat, Jul 14, 2007 at 04:55:19PM +0200, Eric Lemoine wrote: > Hi > > On 7/13/07, pforprasad wrote: > > > > Hello all, > > > > I am new to OL exprimenting with it for some project, I want to show scale > > on map and need to change the units for map, will some one help me to > > understand properties like resolutions, scale and BoundingBox if i change > > the scale to 'ft' or 'mt' > > Currently, there's no control for OL to show the current scale. You'll > have to write your own and use map.getScale() to actually access the > current scale value. Actually, there is an OpenLayers.Control.Scale -- it's not a scalebar, just a scale value, but it does exist. Regards, -- Christopher Schmidt MetaCarta From arnd.wippermann at web.de Sat Jul 14 13:42:09 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] getfeature info in Internet Explorer In-Reply-To: <11546595.post@talk.nabble.com> Message-ID: Hello Alex, I have the same problem. I use a variable QueryFlag=true or false to control the GetFeatureInfo-Request. If someone has something better, it woul be great. 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 kutte Gesendet: Freitag, 13. Juli 2007 15:30 An: users@openlayers.org Betreff: [OpenLayers-Users] getfeature info in Internet Explorer Hallo, I`m using openlayers with Google, Virtual Earth and Yahoo as baselayers and a some WMS-layers as overlays. The WMS layers i queryable. In FireFox eyerything works fine. When I click in the map to pan, no information pop-up from the getfeature opens. When I try to pan in Internet explorer, every click in the map opens the info pop-up. So I cannot pan without that pop-up. Any idea? Thank you! Alex -- View this message in context: http://www.nabble.com/getfeature-info-in-Internet-Explorer-tf4063938.html#a1 1546595 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 Sat Jul 14 13:47:03 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909DAB@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909DAB@hermes.uai.int> Message-ID: <46990C17.9060805@swoodbridge.com> John, Thank you I will see that we give that a try if we are not already doing it. I was posting the original inquiry for Les Szklanny that is doing the development. At the moment the problem is in an OL integrated with Slippymap.com application so it is possibly not an OL problem at all. I'll ask Les to try the above suggestion and to provide a follow up example in just OL if he can demonstrate that. We really appreciate all the development and support we get from the OL community. Thanks, -Steve John Cole wrote: > Steve, > You might be doing this already or it might not apply, but... > > If you are using zoom levels (and not just free zoom scales) find out the > zoom level for your extent with something like: > > var zoomlevel = map.getZoomForExtent(ci.Bounds); > > > This should make sure that your entire extent is in the view port. Then > use a setCenter with the center of your bounds and the zoomlevel. > > Like I said, this might not apply in your case. > > John > > -----Original Message----- > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Stephen Woodbridge > Sent: Friday, July 13, 2007 4:44 PM > To: openlayers user list > Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer > > Hi all, > > I have run into an annoying issue that if you zoom to an extents the > extents is not always inside the viewport, so if I have a bunch of > points and zoom to their extents, sometimes some of the points are > outside the viewport after the zoom. > > Is there a fix or workaround for this problem? > > Thanks, > -Steve W > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From eric.c2c at gmail.com Sat Jul 14 15:21:35 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Want to change the Unit In-Reply-To: <20070714154001.GA26666@metacarta.com> References: <11534948.post@talk.nabble.com> <5ec103de0707140755n16bd039y760e6e1b29c6ae54@mail.gmail.com> <20070714154001.GA26666@metacarta.com> Message-ID: <5ec103de0707141221k6adff567u4fabf3c3517380f@mail.gmail.com> On 7/14/07, Christopher Schmidt wrote: > On Sat, Jul 14, 2007 at 04:55:19PM +0200, Eric Lemoine wrote: > > Hi > > > > On 7/13/07, pforprasad wrote: > > > > > > Hello all, > > > > > > I am new to OL exprimenting with it for some project, I want to show scale > > > on map and need to change the units for map, will some one help me to > > > understand properties like resolutions, scale and BoundingBox if i change > > > the scale to 'ft' or 'mt' > > > > Currently, there's no control for OL to show the current scale. You'll > > have to write your own and use map.getScale() to actually access the > > current scale value. > > Actually, there is an OpenLayers.Control.Scale -- it's not a scalebar, > just a scale value, but it does exist. Had forgotten about that one :-) Thx for correcting me Chris... -- Eric From yangzhaozhao2008 at 163.com Sun Jul 15 05:43:46 2007 From: yangzhaozhao2008 at 163.com (Yang Zhaohui) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] xmlhttprequest with IE7 Message-ID: <22453550.2442981184492626120.JavaMail.coremail@bj163app67.163.com> Hello dear sir, I have a problem to ask you. I find in IE7(Internet Explorer 7) the Ajax xmlhttprequest cannot run correctly.It can receive responseXML,but it has wrong in the "fc_node = getElements(xmlhttp.responseXML,"wfs","FeatureCollection")[0];". I guess the IE7 is not support the "node.getElementsByTagName(tag_name);". Did you test it? Thank you for your help all the time! Best wishes for you! Sincerely yours, Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070715/c75f3da5/attachment.html From crschmidt at metacarta.com Sun Jul 15 09:11:50 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] xmlhttprequest with IE7 In-Reply-To: <22453550.2442981184492626120.JavaMail.coremail@bj163app67.163.com> References: <22453550.2442981184492626120.JavaMail.coremail@bj163app67.163.com> Message-ID: <20070715131150.GA30736@metacarta.com> On Sun, Jul 15, 2007 at 05:43:46PM +0800, Yang Zhaohui wrote: > Hello dear sir, > I have a problem to ask you. I find in IE7(Internet Explorer 7) the Ajax xmlhttprequest cannot run correctly.It can receive > responseXML,but it has wrong in the "fc_node = getElements(xmlhttp.responseXML,"wfs","FeatureCollection")[0];". I guess the IE7 is not support the "node.getElementsByTagName(tag_name);". Did you test it? Thank you for your help all the time! Yang: That particular code appears to be from MapBuilder, rather than from OpenLayers. Can you confirm that? I don't have enough experience with that particular chunk of code to recognize what 'getElements' is doing -- in general, OpenLayers has a wrapper function: OpenLayers.Ajax.getElementsByTagNameNS(data, this.gmlns, "gml", this.featureName); which works on IE. If you can share the code you're having problems with, that would be helpful. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Sun Jul 15 16:48:00 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] MouseWheel -- Double-zooming in Opera Message-ID: <20070715204800.GA31942@metacarta.com> Subject: Re: [OpenLayers-Trac] [OpenLayers] #673: MouseWheel -- Double-zooming in Opera #673: MouseWheel -- Double-zooming in Opera With the Navigation control, I don't see this problem happening anymore in my version of Opera. If it is reported again, we can reopen it, but I think that for now, I'm going to call this one resolved as WORKSFORME. Will forward this to the users list so that others can comment. Ticket URL: If you have any feedback that this is still happening with the Navigation control, please reply to this message or reopen ticket #673. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Mon Jul 16 01:30:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] FOSS4G Presentations announced Message-ID: <20070716053028.GA807@metacarta.com> FOSS4G presentations were announced -- looks like OpenLayers bagged the number 3 spot in ranking. This is hugely impressive, and it's the work of this community that has generated this result. See the full list at: http://www.foss4g2007.org/presentations/html.php For those of you who don't know what FOSS4G is: "The annual Free and Open Source Software for Geospatial (FOSS4G) conference brings together the people who create, use, and support open spatial software. No other event brings together members of the open source development, open data creation, and open standards promotion communities like FOSS4G." Early bird rates run until July 27, and there's going to be a lot of people close to the OpenLayers project speaking there -- everyone from Tim Schaub (OpenLayers), Schuyler Erle (TileCache, Public Geodata Repository), Pierre Giraud (Cartoweb4), David Bitner (Automating Reports using PHP, MapServer, etc.) Sean Gillies (Pleiades), to myself (FeatureServer) and Howard Butler and I (Getting Help with Open Source). It's going to be the place to be. If you're an OL hacker, you should definitely be planning on staying through the code sprint (http://www.foss4g2007.org/code_sprint/) -- it's gonna be a blast. Both Erik and I will be there representing MetaCarta, and I look forward to meeting so many of you who I've worked with online but not in person. Regards, -- Christopher Schmidt MetaCarta From fquintana at codesyntax.com Mon Jul 16 08:41:20 2007 From: fquintana at codesyntax.com (Nando Quintana) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] google tiles with TMS Message-ID: <1184589681.4251.5.camel@localhost> Hello, Is there any example of using the google tiles with TMS? I mean, examples of how to configure a map (bounds, projection, resolution, etc.) and howto translate to x, y and z from the tile bounds: http://mt2.google.com/mt?n=404&v=ap.55&x=8093&y=6002&zoom=3 Thanks in advance, Nando. -- http://www.nandoquintana.com/contact -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/1797445c/attachment.bin From fquintana at codesyntax.com Mon Jul 16 08:41:20 2007 From: fquintana at codesyntax.com (Nando Quintana) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] google tiles with TMS Message-ID: <1184589681.4251.6.camel@localhost> Hello, Is there any example of using the google tiles with TMS? I mean, examples of how to configure a map (bounds, projection, resolution, etc.) and howto translate to x, y and z from the tile bounds: http://mt2.google.com/mt?n=404&v=ap.55&x=8093&y=6002&zoom=3 Thanks in advance, Nando. -- http://www.nandoquintana.com/contact -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/c43eb255/attachment.bin From luguangxian at sohu.com Mon Jul 16 09:46:14 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] How to Add Multi-Vector-Layers into SelectFeature? Message-ID: <11594470.post@talk.nabble.com> I'm a beginner to OpenLayers and have three vector layers below, but only one gml layer can be hovered or selected. How to add them all into SelectFeature? many thanks /*******************************************************************/ var gml110=new OpenLayers.Layer.GML("110kv", "110.xml",{style:style_yellow}); map.addLayer(gml110); var gml220=new OpenLayers.Layer.GML("220Kv", "220.xml",{style:style_red}); map.addLayer(gml220); var vectors = new OpenLayers.Layer.Vector( "Editable Vector Layer"); map.addLayer(vectors); map.addControl(new OpenLayers.Control.EditingToolbar(vectors)); var vctoptions = { hover: false, onSelect: displayWKT }; var drawControls = new OpenLayers.Control.SelectFeature(gml110, vctoptions); map.addControl(drawControls); drawControls.activate(); /*******************************************************************/ -- View this message in context: http://www.nabble.com/How-to--Add-Multi-Vector-Layers-into-SelectFeature--tf4079356.html#a11594470 Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Jul 16 10:43:13 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer In-Reply-To: <20070713225529.GA21774@metacarta.com> References: <4697F20E.9060606@swoodbridge.com> <20070713225529.GA21774@metacarta.com> Message-ID: <469B8401.6040507@swoodbridge.com> Chris, Attached is an html test case. You will probably need to set the google key to your host. This was run using OL 2.4. Sorry for the file instead of a URL, I didn't have a host with a google key that was publically accessible and readily accessible to me to post the example. Les also tried John Cole's suggestion, but that did not solve the problem either. -Steve Christopher Schmidt wrote: > On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote: >> Hi all, >> >> I have run into an annoying issue that if you zoom to an extents the >> extents is not always inside the viewport, so if I have a bunch of >> points and zoom to their extents, sometimes some of the points are >> outside the viewport after the zoom. >> >> Is there a fix or workaround for this problem? > > Can you provide a test case for this? > > Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/f7537efc/google-ol-bug.html From crschmidt at metacarta.com Mon Jul 16 11:15:25 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] How to Add Multi-Vector-Layers into SelectFeature? In-Reply-To: <11594470.post@talk.nabble.com> References: <11594470.post@talk.nabble.com> Message-ID: <20070716151525.GA9489@metacarta.com> On Mon, Jul 16, 2007 at 06:46:14AM -0700, RaymondLv wrote: > > I'm a beginner to OpenLayers and have three vector layers below, but only one > gml layer can be hovered or selected. > How to add them all into SelectFeature? You must create three seperate selectfeature controls. (The openmnnd.html demo shows how to set up two, I think.) Only one can be enabled at a time. This is, as they say, 'just the way it works'. http://trac.openlayers.org/ticket/434 is a tracking bug for fixing this: I think Cameron has a desire to change it, but no code currently exists for this in OL. -- Chris > many thanks > > /*******************************************************************/ > var gml110=new OpenLayers.Layer.GML("110kv", > "110.xml",{style:style_yellow}); > map.addLayer(gml110); > > var gml220=new OpenLayers.Layer.GML("220Kv", "220.xml",{style:style_red}); > map.addLayer(gml220); > > var vectors = new OpenLayers.Layer.Vector( "Editable Vector Layer"); > map.addLayer(vectors); > map.addControl(new OpenLayers.Control.EditingToolbar(vectors)); > > var vctoptions = { > hover: false, > onSelect: displayWKT > }; > > var drawControls = new OpenLayers.Control.SelectFeature(gml110, vctoptions); > map.addControl(drawControls); > drawControls.activate(); > /*******************************************************************/ > -- > View this message in context: http://www.nabble.com/How-to--Add-Multi-Vector-Layers-into-SelectFeature--tf4079356.html#a11594470 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Christopher Schmidt MetaCarta From bwoodall at bwoodall.org Mon Jul 16 13:11:04 2007 From: bwoodall at bwoodall.org (Bill Woodall) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer In-Reply-To: <469B8401.6040507@swoodbridge.com> References: <4697F20E.9060606@swoodbridge.com> <20070713225529.GA21774@metacarta.com> <469B8401.6040507@swoodbridge.com> Message-ID: <1184605864.25985.20.camel@wardrobe.dhs.org> Hi Steve, After looking at your example I noticed that you are using CSS (width:100%) for your map div and thus the browser will set the viewport width and the viewport might never equal the bounds you set. ......Bill, On Mon, 2007-07-16 at 10:43 -0400, Stephen Woodbridge wrote: > Chris, > > Attached is an html test case. You will probably need to set the google > key to your host. This was run using OL 2.4. Sorry for the file instead > of a URL, I didn't have a host with a google key that was publically > accessible and readily accessible to me to post the example. > > Les also tried John Cole's suggestion, but that did not solve the > problem either. > > -Steve > > Christopher Schmidt wrote: > > On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote: > >> Hi all, > >> > >> I have run into an annoying issue that if you zoom to an extents the > >> extents is not always inside the viewport, so if I have a bunch of > >> points and zoom to their extents, sometimes some of the points are > >> outside the viewport after the zoom. > >> > >> Is there a fix or workaround for this problem? > > > > Can you provide a test case for this? > > > > Regards, > > HTML page attachment (google-ol-bug.html) > OpenLayers With Google Layer Example > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From woodbri at swoodbridge.com Mon Jul 16 14:32:11 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps layer In-Reply-To: <1184605864.25985.20.camel@wardrobe.dhs.org> References: <4697F20E.9060606@swoodbridge.com> <20070713225529.GA21774@metacarta.com> <469B8401.6040507@swoodbridge.com> <1184605864.25985.20.camel@wardrobe.dhs.org> Message-ID: <469BB9AB.2010000@swoodbridge.com> Bill, Maybe I'm missing something here, but it seems to me that if the viewport width is defined by whatever means, and I make an ajax call which returns stuff I want to display and the bounds of stuff, that calling map.zoomExtents(boundsOfStuff) should zoom the map to an extents or scale that will include all my stuff. Also there is no reason to expect boundsOfStuff to be the same aspect ratio of the viewport. I think zoomExtents tries to compute a new extents based on the correct aspect ratio and to zoom it to the best scale the will show the extents. This in facts works fine with mapserver and we have never seen a problem, but with google we occasionally run into this problem. The example Les put together is just one case that reproduces the problem for debugging purposes. Thanks, -Steve Bill Woodall wrote: > Hi Steve, > > After looking at your example I noticed that you are using CSS > (width:100%) for your map div and thus the browser will set the viewport > width and the viewport might never equal the bounds you set. > > ......Bill, > > On Mon, 2007-07-16 at 10:43 -0400, Stephen Woodbridge wrote: >> Chris, >> >> Attached is an html test case. You will probably need to set the google >> key to your host. This was run using OL 2.4. Sorry for the file instead >> of a URL, I didn't have a host with a google key that was publically >> accessible and readily accessible to me to post the example. >> >> Les also tried John Cole's suggestion, but that did not solve the >> problem either. >> >> -Steve >> >> Christopher Schmidt wrote: >>> On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote: >>>> Hi all, >>>> >>>> I have run into an annoying issue that if you zoom to an extents the >>>> extents is not always inside the viewport, so if I have a bunch of >>>> points and zoom to their extents, sometimes some of the points are >>>> outside the viewport after the zoom. >>>> >>>> Is there a fix or workaround for this problem? >>> Can you provide a test case for this? >>> >>> Regards, >> HTML page attachment (google-ol-bug.html) >> OpenLayers With Google Layer Example >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > From john.cole at uai.com Mon Jul 16 15:39:32 2007 From: john.cole at uai.com (John Cole) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer Message-ID: <76758090F8686C47A44B6FF52514A1D307909DB1@hermes.uai.int> It is my experience that when you zoom to a bounding box, you should be able to see the entirety of whatever is in the bounding box :-) For example, if you zoom to either California or Tennessee, you should see the entire state, which is what happens on our site. Plugging Steve's values into a postgis query just to make sure the contains was sane: select Contains(makebox2d(makepoint(-89.47265625, 39.9476478239225), makepoint(-83.968505859375, 42.06968462804663)), makebox2d(makepoint(-87.79053, 39.89316), makepoint(-85.65279, 42.13795))) shows that the OL viewport extent overlaps the requested extent, instead of containing it. Using a standard WMS layer instead of the google layer, Stephen's test returns true, so I suspect that the issue is only in the google layer. Here is the query for a WMS layer: select Contains(makebox2d(makepoint(-89.4737351953125, 39.609305), makepoint(-83.9695848046875, 42.421805)), makebox2d(makepoint(-87.79053, 39.89316), makepoint(-85.65279, 42.13795))) Which is true. John -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Stephen Woodbridge Sent: Monday, July 16, 2007 1:32 PM To: Bill Woodall Cc: Les Szklanny; openlayers user list Subject: Re: [OpenLayers-Users] Problem with zoomexents and google maps layer Bill, Maybe I'm missing something here, but it seems to me that if the viewport width is defined by whatever means, and I make an ajax call which returns stuff I want to display and the bounds of stuff, that calling map.zoomExtents(boundsOfStuff) should zoom the map to an extents or scale that will include all my stuff. Also there is no reason to expect boundsOfStuff to be the same aspect ratio of the viewport. I think zoomExtents tries to compute a new extents based on the correct aspect ratio and to zoom it to the best scale the will show the extents. This in facts works fine with mapserver and we have never seen a problem, but with google we occasionally run into this problem. The example Les put together is just one case that reproduces the problem for debugging purposes. Thanks, -Steve Bill Woodall wrote: > Hi Steve, > > After looking at your example I noticed that you are using CSS > (width:100%) for your map div and thus the browser will set the viewport > width and the viewport might never equal the bounds you set. > > ......Bill, > > On Mon, 2007-07-16 at 10:43 -0400, Stephen Woodbridge wrote: >> Chris, >> >> Attached is an html test case. You will probably need to set the google >> key to your host. This was run using OL 2.4. Sorry for the file instead >> of a URL, I didn't have a host with a google key that was publically >> accessible and readily accessible to me to post the example. >> >> Les also tried John Cole's suggestion, but that did not solve the >> problem either. >> >> -Steve >> >> Christopher Schmidt wrote: >>> On Fri, Jul 13, 2007 at 05:43:42PM -0400, Stephen Woodbridge wrote: >>>> Hi all, >>>> >>>> I have run into an annoying issue that if you zoom to an extents the >>>> extents is not always inside the viewport, so if I have a bunch of >>>> points and zoom to their extents, sometimes some of the points are >>>> outside the viewport after the zoom. >>>> >>>> Is there a fix or workaround for this problem? >>> Can you provide a test case for this? >>> >>> Regards, >> HTML page attachment (google-ol-bug.html) >> OpenLayers With Google Layer Example >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From crschmidt at metacarta.com Mon Jul 16 16:14:40 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909DB1@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909DB1@hermes.uai.int> Message-ID: <20070716201440.GA12256@metacarta.com> On Mon, Jul 16, 2007 at 02:39:32PM -0500, John Cole wrote: > It is my experience that when you zoom to a bounding box, you should be able > to see the entirety of whatever is in the bounding box :-) For example, if > you zoom to either California or Tennessee, you should see the entire state, > which is what happens on our site. > shows that the OL viewport extent overlaps the requested extent, instead of > containing it. Using a standard WMS layer instead of the google layer, > Stephen's test returns true, so I suspect that the issue is only in the > google layer. Right, I missed this the first time around. I have a feeling that the problem here is the same as all problems with the Google layer -- OpenLayers assumes that it is unprojected, when in reality, it is projected. This only works so well. I'd say this can be filed as a bug against OL2.5, though it's possible my resolution of the ticket will simply be "Switch to the new GoogleMercator Layer" once that gets into trunk. -- Chris From jdege at korterra.com Mon Jul 16 17:47:27 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with GML coordinates? Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370A85@mrburns.KorOffice.local> I've been working with the OpenLayers.Layer.GML, and things have been working, mostly. I've been working with the default EPSG:4326 projection, but my users don't like the looks of it. (Decimal degrees are stretched, left-to-right.) So I've been trying to convert things to EPSG:102004. My original GML files had been converted from shapefiles using ogr2ogr, with no SRS specified. Since the shapefiles had been in EPSG:4326, everything was fine. I created new GML files, specifying a conversion to EPSG:102004, set the projection and units options in the OpenLayers.Map() constructor, and nothing worked at all. The generated map is a collection of random-looking sharp spikes. So I edited the GML file to cut it down to having only one rectangular feature. And OpenLayers drew it all catywhompus. Comparing the GML file that worked to the GML that didn't, the one that didn't had three-dimensional coordinates: -634517.11999089224,691849.77929356066,0 -653761.64509297756,471181.53429472551,0 -673343.60852865304,250906.9515983529,0 -1088825.734430399,299284.85108220269,0 -1254041.3897117018,324729.27754874947,0 -1235750.4212498858,434167.33911316615,0 -1190777.7803201093,704392.96327195223,0 -1181607.835811228,762236.29408003774,0 -634517.11999089224,691849.77929356066,0 The one that did had two-dimensional coordinates: -104.05769844520292,44.997431638295993 -104.05312407321384,43.000582772448595 -104.05324668521079,41.001406996991136 -109.05007717114714,41.000661173718115 -111.04672699029817,40.997960720571911 -111.04669077447262,42.001566700961526 -111.04897415303213,44.47407102095351 -111.05519878435098,45.001322181741365 -104.05769844520292,44.997431638295993 When I edit the gml file that didn't work to remove the third dimension, things draw just fine. I'm no expert on the GML specification, but my expectation would be that if the ogr tools can create GML files with three-dimensional coordinates, then the GML specification probably allows for it. In which case, OpenLayers.Layer.GML should probably cope with it, even if it's only throwing the third dimension away. From jdege at korterra.com Mon Jul 16 18:16:32 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with GML coordinates? In-Reply-To: <20070716215303.GA12583@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370A85@mrburns.KorOffice.local> <20070716215303.GA12583@metacarta.com> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370A86@mrburns.KorOffice.local> > -----Original Message----- > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Sent: Monday, July 16, 2007 4:53 PM > To: Jeff Dege > Subject: Re: [OpenLayers-Users] Problem with GML coordinates? > > On Mon, Jul 16, 2007 at 04:47:27PM -0500, Jeff Dege wrote: > > I'm no expert on the GML specification, but my expectation > would be that > > if the ogr tools can create GML files with three-dimensional > > coordinates, then the GML specification probably allows for it. > > > > In which case, OpenLayers.Layer.GML should probably cope > with it, even > > if it's only throwing the third dimension away. > > The GML format class is meant to handle 3d data. IT looks for an > srsDimension attribute on the gml:pos or gml:posList elements. I think that's the problem. It's assuming that if it uses gml:coordinates, it's GML2, and if it's using gml:pos or gml:posList, it's GML3, and that if it's GML2, it only has two dimensions. Now I'm not sure whether ogr is incorrect in using three dimensions in a gml:coordinates element, or whether the GML format class is incorrect in assuming that the lack of gml:pos or gml:posList indicates two dimensions. But if it's a bug in OGR, it's going to be a widespread one. > Can you > put up a full GML file generated by ogr2ogr in this way so that it can > be examined by developers who might be able to improve the parser to > handle this case? I'm using the ogr2ogr bundled in MS4W version 2.0 - which seems to be gdal/ogr version 1.3.2. My commandline: : ogr2ogr -f "GML" -s_srs EPSG:4326 -t_srs EPSG:102004 testoutput.gml testinput.gml I've attached the input and output files, and copied the email to you since I'm not sure the list will accept the attachments. -------------- next part -------------- A non-text attachment was scrubbed... Name: testoutput.gml Type: application/octet-stream Size: 1269 bytes Desc: testoutput.gml Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/7486dee6/testoutput.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: testinput.gml Type: application/octet-stream Size: 1256 bytes Desc: testinput.gml Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/7486dee6/testinput.obj From crschmidt at metacarta.com Mon Jul 16 18:41:58 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with GML coordinates? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370A86@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370A85@mrburns.KorOffice.local> <20070716215303.GA12583@metacarta.com> <34E056CD4D475841B8C9ABCE956F92F6370A86@mrburns.KorOffice.local> Message-ID: <20070716224158.GA12715@metacarta.com> On Mon, Jul 16, 2007 at 05:16:32PM -0500, Jeff Dege wrote: > I think that's the problem. It's assuming that if it uses > gml:coordinates, it's GML2, and if it's using gml:pos or gml:posList, > it's GML3, and that if it's GML2, it only has two dimensions. > > Now I'm not sure whether ogr is incorrect in using three dimensions in a > gml:coordinates element, or whether the GML format class is incorrect in > assuming that the lack of gml:pos or gml:posList indicates two > dimensions. But if it's a bug in OGR, it's going to be a widespread > one. > > > Can you > > put up a full GML file generated by ogr2ogr in this way so that it can > > be examined by developers who might be able to improve the parser to > > handle this case? > > I'm using the ogr2ogr bundled in MS4W version 2.0 - which seems to be > gdal/ogr version 1.3.2. > I've attached the input and output files, and copied the email to you > since I'm not sure the list will accept the attachments. Great. This is clearly a bug, and should be fixed in the Format.GML class. Erik, can you file a ticket for this, marked for 2.5, and attach the output file to the ticket as an attachment so we don't lose it? That way I'll have the data to test against when I'm fixing it. Jeff, I assume you don't mind if we use the GML data in question as data for our unit tests? Regards, -- Christopher Schmidt MetaCarta From jdege at korterra.com Mon Jul 16 18:58:58 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with GML coordinates? In-Reply-To: <20070716224158.GA12715@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370A85@mrburns.KorOffice.local> <20070716215303.GA12583@metacarta.com> <34E056CD4D475841B8C9ABCE956F92F6370A86@mrburns.KorOffice.local> <20070716224158.GA12715@metacarta.com> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370A87@mrburns.KorOffice.local> > -----Original Message----- > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Sent: Monday, July 16, 2007 5:42 PM > To: Jeff Dege > Cc: openlayers user list; euzuro@metacarta.com > Subject: Re: [OpenLayers-Users] Problem with GML coordinates? > > On Mon, Jul 16, 2007 at 05:16:32PM -0500, Jeff Dege wrote: > > I think that's the problem. It's assuming that if it uses > > gml:coordinates, it's GML2, and if it's using gml:pos or > gml:posList, > > it's GML3, and that if it's GML2, it only has two dimensions. > > > > Now I'm not sure whether ogr is incorrect in using three > dimensions in a > > gml:coordinates element, or whether the GML format class is > incorrect in > > assuming that the lack of gml:pos or gml:posList indicates two > > dimensions. But if it's a bug in OGR, it's going to be a widespread > > one. > > > > > Can you > > > put up a full GML file generated by ogr2ogr in this way > so that it can > > > be examined by developers who might be able to improve > the parser to > > > handle this case? > > > > I'm using the ogr2ogr bundled in MS4W version 2.0 - which > seems to be > > gdal/ogr version 1.3.2. > > > I've attached the input and output files, and copied the > email to you > > since I'm not sure the list will accept the attachments. > > > Great. This is clearly a bug, and should be fixed in the Format.GML > class. > > Erik, can you file a ticket for this, marked for 2.5, and attach the > output file to the ticket as an attachment so we don't lose > it? That way > I'll have the data to test against when I'm fixing it. > > Jeff, I assume you don't mind if we use the GML data in > question as data > for our unit tests? No. That particular file contains date that originated (prior to my massaging and mangling) in the public domain. From erik.uzureau at metacarta.com Mon Jul 16 20:41:57 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with GML coordinates? In-Reply-To: <20070716224158.GA12715@metacarta.com> References: <34E056CD4D475841B8C9ABCE956F92F6370A85@mrburns.KorOffice.local> <20070716215303.GA12583@metacarta.com> <34E056CD4D475841B8C9ABCE956F92F6370A86@mrburns.KorOffice.local> <20070716224158.GA12715@metacarta.com> Message-ID: <6ae3fb590707161741n603b2235ua16e6927ee332c38@mail.gmail.com> On 7/16/07, Christopher Schmidt wrote: > On Mon, Jul 16, 2007 at 05:16:32PM -0500, Jeff Dege wrote: > > I think that's the problem. It's assuming that if it uses > > gml:coordinates, it's GML2, and if it's using gml:pos or gml:posList, > > it's GML3, and that if it's GML2, it only has two dimensions. > > > > Now I'm not sure whether ogr is incorrect in using three dimensions in a > > gml:coordinates element, or whether the GML format class is incorrect in > > assuming that the lack of gml:pos or gml:posList indicates two > > dimensions. But if it's a bug in OGR, it's going to be a widespread > > one. > > > > > Can you > > > put up a full GML file generated by ogr2ogr in this way so that it can > > > be examined by developers who might be able to improve the parser to > > > handle this case? > > > > I'm using the ogr2ogr bundled in MS4W version 2.0 - which seems to be > > gdal/ogr version 1.3.2. > > > I've attached the input and output files, and copied the email to you > > since I'm not sure the list will accept the attachments. > > > Great. This is clearly a bug, and should be fixed in the Format.GML > class. > > Erik, can you file a ticket for this, marked for 2.5, and attach the > output file to the ticket as an attachment so we don't lose it? That way > I'll have the data to test against when I'm fixing it. > at yer service :-) http://trac.openlayers.org/ticket/846 > Jeff, I assume you don't mind if we use the GML data in question as data > for our unit tests? > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From woodbri at swoodbridge.com Mon Jul 16 21:24:24 2007 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer In-Reply-To: <20070716201440.GA12256@metacarta.com> References: <76758090F8686C47A44B6FF52514A1D307909DB1@hermes.uai.int> <20070716201440.GA12256@metacarta.com> Message-ID: <469C1A48.2000208@swoodbridge.com> Christopher Schmidt wrote: > On Mon, Jul 16, 2007 at 02:39:32PM -0500, John Cole wrote: >> It is my experience that when you zoom to a bounding box, you should be able >> to see the entirety of whatever is in the bounding box :-) For example, if >> you zoom to either California or Tennessee, you should see the entire state, >> which is what happens on our site. > >> shows that the OL viewport extent overlaps the requested extent, instead of >> containing it. Using a standard WMS layer instead of the google layer, >> Stephen's test returns true, so I suspect that the issue is only in the >> google layer. > > Right, I missed this the first time around. I have a feeling that the > problem here is the same as all problems with the Google layer -- > OpenLayers assumes that it is unprojected, when in reality, it is > projected. This only works so well. I'd say this can be filed as a bug > against OL2.5, though it's possible my resolution of the ticket will > simply be "Switch to the new GoogleMercator Layer" once that gets into > trunk. Chris, John, Thank you for the assessment. I was afraid this was going to be the case. I did a lot of checking on our end before posting. I'm sorry it was not initial clearer. Anyway, I'm looking for a work-around. If we could do something like: var zoomlevel = map.getZoomForExtent(ci.Bounds); var bounds = map.getExtentForZoomLevel(zoomlevel); if (overlaps(bounds, ci.Bounds) && zoomlevel > 0) zoomlevel--; I think this would work. How would we do the equivalent of: var bounds = map.getExtentForZoomLevel(zoomlevel); I haven't checked but I doubt that that function already exists. -Steve From crschmidt at metacarta.com Mon Jul 16 21:29:24 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem with zoomexents and google maps la yer In-Reply-To: <469C1A48.2000208@swoodbridge.com> References: <76758090F8686C47A44B6FF52514A1D307909DB1@hermes.uai.int> <20070716201440.GA12256@metacarta.com> <469C1A48.2000208@swoodbridge.com> Message-ID: <20070717012924.GA13309@metacarta.com> On Mon, Jul 16, 2007 at 09:24:24PM -0400, Stephen Woodbridge wrote: > Anyway, I'm looking for a work-around. If we could do something like: > > var zoomlevel = map.getZoomForExtent(ci.Bounds); > var bounds = map.getExtentForZoomLevel(zoomlevel); > if (overlaps(bounds, ci.Bounds) && zoomlevel > 0) > zoomlevel--; > > I think this would work. How would we do the equivalent of: > > var bounds = map.getExtentForZoomLevel(zoomlevel); No clue. If we could do this accurately, we wouldn't be having this discussion, since this is how the code is already supposed to work :) The problem is that because Google isn't linear, the only way we have of getting accurate corners from a center and zoom is to zoom there, and ask the Google layer. (I think. Corrections welcome) Regards, -- Christopher Schmidt MetaCarta From carsella11 at msn.com Mon Jul 16 21:45:29 2007 From: carsella11 at msn.com (Mike Carsella) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers Message-ID: I'm new to OpenLayers, so bear with me... I'm creating an OpenLayers map and adding Google Maps as a layer. What I'd like to do is then use the the Google Maps API to pop up an info window using openinfowindow or openinfowindowhtml. Does OpenLayers expose the GMap2 object? Is what I want to do possible? Any help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070716/a36fee52/attachment.html From gstamp at gmail.com Mon Jul 16 21:58:11 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Making popup display above controls? Message-ID: Is it possible to make popup's display above controls? From erik.uzureau at metacarta.com Mon Jul 16 22:34:01 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Making popup display above controls? In-Reply-To: References: Message-ID: <6ae3fb590707161934u6423682gdf6d43676331230d@mail.gmail.com> In Map.js, you will find: Z_INDEX_BASE: { BaseLayer: 100, Overlay: 325, Popup: 750, Control: 1000 }, which is how the z index of the different layers, popups, and controls are determined. I *believe* that if you do something like OpenLayers.Map.Z_INDEX_BASE.Popup = 2000; that should fix it. ...sure, you're overwriting a defined constant.... but hey.. that's what JS is all about. Erik On 7/16/07, Glen Stampoultzis wrote: > Is it possible to make popup's display above controls? > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From gstamp at gmail.com Mon Jul 16 23:10:36 2007 From: gstamp at gmail.com (Glen Stampoultzis) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Making popup display above controls? In-Reply-To: References: <6ae3fb590707161934u6423682gdf6d43676331230d@mail.gmail.com> Message-ID: On 17/07/07, Erik Uzureau wrote: > In Map.js, you will find: > > Z_INDEX_BASE: { BaseLayer: 100, Overlay: 325, Popup: 750, Control: 1000 }, > > which is how the z index of the different layers, popups, and controls > are determined. > > I *believe* that if you do something like > > OpenLayers.Map.Z_INDEX_BASE.Popup = 2000; > > that should fix it. > > ...sure, you're overwriting a defined constant.... but hey.. that's > what JS is all about. > > Erik Thanks Eric, this doesn't seem to do it. The issue seems to be that the controls don't have the same parent div as the popup/layer divs so the z-order doesn't help. I'm guessing the controls would have to be specifically placed inside the "OpenLayers_Container" div for this to work. Regards, Glen From crschmidt at metacarta.com Mon Jul 16 23:43:45 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers In-Reply-To: References: Message-ID: <20070717034345.GA13661@metacarta.com> On Mon, Jul 16, 2007 at 07:45:29PM -0600, Mike Carsella wrote: > I'm new to OpenLayers, so bear with me... > > I'm creating an OpenLayers map and adding Google Maps as a layer. What I'd like to do is then use the the Google Maps API to pop up an info window using openinfowindow or openinfowindowhtml. Does OpenLayers expose the GMap2 object? Is what I want to do possible? Any help would be appreciated. In general, the way OpenLayers works is to *not* expose the lower level interface -- in fact, if you just want to use the Google Maps API, you probably want to be using something like Mapstraction (http://www.mapstraction.com/) instead of OpenLayers. However, you can use the OpenLayers.Popup classes. These are kinda hairy compared to Google's library, probably, but they do exist. examples in examples/popups.html Regards, -- Christopher Schmidt MetaCarta From erik.uzureau at metacarta.com Mon Jul 16 23:45:16 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Making popup display above controls? In-Reply-To: References: <6ae3fb590707161934u6423682gdf6d43676331230d@mail.gmail.com> Message-ID: <6ae3fb590707162045j1a619f8dk82d1e0a53f96172e@mail.gmail.com> On 7/16/07, Glen Stampoultzis wrote: > On 17/07/07, Erik Uzureau wrote: > > In Map.js, you will find: > > > > Z_INDEX_BASE: { BaseLayer: 100, Overlay: 325, Popup: 750, Control: 1000 }, > > > > which is how the z index of the different layers, popups, and controls > > are determined. > > > > I *believe* that if you do something like > > > > OpenLayers.Map.Z_INDEX_BASE.Popup = 2000; > > > > that should fix it. > > > > ...sure, you're overwriting a defined constant.... but hey.. that's > > what JS is all about. > > > > Erik > > Thanks Eric, this doesn't seem to do it. The issue seems to be that > the controls don't have the same parent div as the popup/layer divs so > the z-order doesn't help. I'm guessing the controls would have to be > specifically placed inside the "OpenLayers_Container" div for this to > work. > > Regards, > > Glen so it is, so it is.... hmm.... can't think of an answer for you right off the bat. I tried the suggestion I gave you and the whole layer floated over the controls. not good. I'm not sure this can actually be done. Since the popups by default live in the container and the controls live parallel to the container... it might not be possible:
Sorry... maybe someone else has an idea? ---E > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From prasad.choudhary at gmail.com Tue Jul 17 04:59:56 2007 From: prasad.choudhary at gmail.com (pforprasad) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] want infowindow in OpenLayers Message-ID: <11645705.post@talk.nabble.com> Hello all, The popup we have ie rounded popup , that opens away from location and looks some what unpleasant cant I use google style info window that can point the location and relocate the coordinates, If yes then how come? Please guide me through. -- View this message in context: http://www.nabble.com/want-infowindow-in-OpenLayers-tf4095682.html#a11645705 Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070717/1622eca4/attachment.html From Stefan.Ziegler at bd.so.ch Tue Jul 17 06:03:57 2007 From: Stefan.Ziegler at bd.so.ch (Ziegler Stefan) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] printing from openlayers with geoserver/itext Message-ID: Hi from time to time there are requests for printing with openlayers. So I just want to show you that's possible to produce some nice maps with geoserver and the itext-library. Openlayers is producing the getMap-url and a servlet is doing the rest. It's only a screencast because I don't have a running geoserver visible for the internet. http://www.john-longo.org/ol_pdf2.htm Stefan Mit freundlichem Gruss Stefan Ziegler Leiter Aufsicht Kanton Solothurn Bau- und Justizdepartement Amt f?r Geoinformation R?tistrasse 4 4501 Solothurn Telefon 032 627 75 96 Telefax 032 627 75 98 stefan.ziegler@bd.so.ch http://www.so.ch -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070717/1ca4ec45/attachment.html From carsella11 at msn.com Tue Jul 17 08:29:12 2007 From: carsella11 at msn.com (Mike Carsella) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers References: <20070717034345.GA13661@metacarta.com> Message-ID: What I really like about OpenLayers is the ability to use WMS overlays. Will I still be able to take advantage of OL WMS overlays if I use Mapstraction? I think the Google openinfowindow popups are little better than the OL popups because of the tab capabilities and pan if needed feature. ----- Original Message ----- From: "Christopher Schmidt" To: "Mike Carsella" Cc: Sent: Monday, July 16, 2007 9:43 PM Subject: Re: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers > On Mon, Jul 16, 2007 at 07:45:29PM -0600, Mike Carsella wrote: >> I'm new to OpenLayers, so bear with me... >> >> I'm creating an OpenLayers map and adding Google Maps as a layer. What >> I'd like to do is then use the the Google Maps API to pop up an info >> window using openinfowindow or openinfowindowhtml. Does OpenLayers >> expose the GMap2 object? Is what I want to do possible? Any help would >> be appreciated. > > In general, the way OpenLayers works is to *not* expose the lower level > interface -- in fact, if you just want to use the Google Maps API, you > probably want to be using something like Mapstraction > (http://www.mapstraction.com/) instead of OpenLayers. > > However, you can use the OpenLayers.Popup classes. These are kinda hairy > compared to Google's library, probably, but they do exist. examples in > examples/popups.html > > Regards, > -- > Christopher Schmidt > MetaCarta > From crschmidt at metacarta.com Tue Jul 17 08:58:41 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers In-Reply-To: References: <20070717034345.GA13661@metacarta.com> Message-ID: <20070717125841.GA15388@metacarta.com> On Tue, Jul 17, 2007 at 06:29:12AM -0600, Mike Carsella wrote: > What I really like about OpenLayers is the ability to use WMS overlays. > Will I still be able to take advantage of OL WMS overlays if I use > Mapstraction? Nope (or 'not that I'm aware of'). Sorry, I had just wanted to make sure you weren't ignoring another possible solution. > I think the Google openinfowindow popups are little better > than the OL popups because of the tab capabilities and pan if needed > feature. I don't disagree. Patches to OpenLayers welcome :) Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Jul 17 09:00:38 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] want infowindow in OpenLayers In-Reply-To: <11645705.post@talk.nabble.com> References: <11645705.post@talk.nabble.com> Message-ID: <20070717130038.GB15388@metacarta.com> On Tue, Jul 17, 2007 at 01:59:56AM -0700, pforprasad wrote: > > Hello all, > > The popup we have ie rounded popup , that opens away from location and looks > some what unpleasant cant I use google style info window that can point the > location and relocate the coordinates, If yes then how come? Nope, you can't. Patches to improve the OpenLayers popups are, however, welcome. Regards, -- Christopher Schmidt MetaCarta From John.Westwood at port.ac.uk Tue Jul 17 09:29:47 2007 From: John.Westwood at port.ac.uk (zenzero-2001) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Map div within a div does not display in Internet Explorer Message-ID: <11649510.post@talk.nabble.com> Hi, I have a problem with getting the map div to display in browsers other than Firefox. I have found that the problem is something to do with having the map div encapsulated within other divs. If I remove the encapsulating divs then the map will display okay in other browsers, but obviously all the CSS formatting is lost. Does anybody have any ideas how I can get the map to display in Internet Explorer (etc) whilst maintaining the CSS formatting? I am new to CSS; basically the prettiness was written by somebody else and I am writing a new OpenLayers backend. Here is an excerpt from the jsp page source, there are three encapsulating divs (div id="mainContent", div id="fullWidth" and div class="text"). Any help would be much appreciated, thanks! John W.
<%-- Add a page heading in large letters: --%>

Historical Mapping

<%-- Add a crumbtrail, which at a minimum takes the user back to the home page: --%> <%-- The main content of the page appears here: --%>

Map Information


<%-- Finally, add a footer: --%>
-- View this message in context: http://www.nabble.com/Map-div-within-a-div-does-not-display-in-Internet-Explorer-tf4096969.html#a11649510 Sent from the OpenLayers Users mailing list archive at Nabble.com. From simone.dalmasso at gmail.com Tue Jul 17 09:41:18 2007 From: simone.dalmasso at gmail.com (Simo D) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS Message-ID: <11649812.post@talk.nabble.com> Hi, I've made an application wich allows to visualize some GeoRSS feeds and it's working fine. But I would like to visualize also a GeoRSS from the GDACS site, the link is http://dma.jrc.it/services/gdas/fl/rss.asp?alertscore=2 Gdacs Floods and don't work. Somebody can help me please? Thanks in advance. -- View this message in context: http://www.nabble.com/Can%27t-view-a-GeoRSS-tf4097047.html#a11649812 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Jul 17 09:45:38 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <11649812.post@talk.nabble.com> References: <11649812.post@talk.nabble.com> Message-ID: <20070717134538.GA15579@metacarta.com> On Tue, Jul 17, 2007 at 06:41:18AM -0700, Simo D wrote: > > Hi, I've made an application wich allows to visualize some GeoRSS feeds and > it's working fine. But I would like to visualize also a GeoRSS from the > GDACS site, the link is > http://dma.jrc.it/services/gdas/fl/rss.asp?alertscore=2 Gdacs Floods and > don't work. http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost Regards, -- Christopher Schmidt MetaCarta From simone.dalmasso at gmail.com Tue Jul 17 10:01:17 2007 From: simone.dalmasso at gmail.com (Simo D) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <20070717134538.GA15579@metacarta.com> References: <11649812.post@talk.nabble.com> <20070717134538.GA15579@metacarta.com> Message-ID: <11650163.post@talk.nabble.com> Christopher Schmidt-4 wrote: > > On Tue, Jul 17, 2007 at 06:41:18AM -0700, Simo D wrote: > > >>http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost > >>Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > Thanks but my proxy.cgi is ok and the application is working correctly with other GeoRSS. Only with the last, Gdacs Floods, I have the problem. -- View this message in context: http://www.nabble.com/Can%27t-view-a-GeoRSS-tf4097047.html#a11650163 Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.c2c at gmail.com Tue Jul 17 10:02:04 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Scrollbars in popup In-Reply-To: <20070712135848.GC15508@metacarta.com> References: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> <20070712135848.GC15508@metacarta.com> Message-ID: <5ec103de0707170702ldba79f4l2910c3f587b07f56@mail.gmail.com> On 7/12/07, Christopher Schmidt wrote: > On Thu, Jul 12, 2007 at 09:51:08AM -0400, Burgholzer,Robert wrote: > > I am trying to have popup text with scrollbars on my map. I have seen > > two posts regarding this in the archives, but found no resolutions. Any > > help would be most appreciated. > > > > > > > > I am new to OpenLayers and think it is really fantastic. > > FlickrBrowse does this. THe code is in > http://labs.metacarta.com/flickrbrowse/Flickr.js -- > popup.contentDiv.style.overflow='auto'; > > I have no idea if this is supported or not. Hi all ! Two related questions: (1) using popup.contentDiv.style.overflow='auto' works fine except half of the scrollbar is hidden in my case (I use AnchoredBubble w/ a close button). Do you know a way to avoid this? (2) scrolling in the popup with the mousewheel doesn't work, and does zoom in/out instead. Do you know how to fix that? Thanks, -- Eric From crschmidt at metacarta.com Tue Jul 17 10:22:44 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Scrollbars in popup In-Reply-To: <5ec103de0707170702ldba79f4l2910c3f587b07f56@mail.gmail.com> References: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> <20070712135848.GC15508@metacarta.com> <5ec103de0707170702ldba79f4l2910c3f587b07f56@mail.gmail.com> Message-ID: <20070717142244.GA15696@metacarta.com> On Tue, Jul 17, 2007 at 04:02:04PM +0200, Eric Lemoine wrote: > On 7/12/07, Christopher Schmidt wrote: > (1) using popup.contentDiv.style.overflow='auto' works fine except > half of the scrollbar is hidden in my case (I use AnchoredBubble w/ a > close button). Do you know a way to avoid this? Ah, I didn't actually use this solution. I just make my content have a small scrollable div inside. html += "
"+attrs.title+"
"; 25px less wide than the popup. Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Tue Jul 17 10:32:00 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Scrollbars in popup In-Reply-To: <20070717142244.GA15696@metacarta.com> References: <6C097DA58429B743A67070F98BE73A37025EF875@deqex01.deq.local> <20070712135848.GC15508@metacarta.com> <5ec103de0707170702ldba79f4l2910c3f587b07f56@mail.gmail.com> <20070717142244.GA15696@metacarta.com> Message-ID: <5ec103de0707170732iaa239ebv45f30a41fb5250e8@mail.gmail.com> On 7/17/07, Christopher Schmidt wrote: > On Tue, Jul 17, 2007 at 04:02:04PM +0200, Eric Lemoine wrote: > > On 7/12/07, Christopher Schmidt wrote: > > (1) using popup.contentDiv.style.overflow='auto' works fine except > > half of the scrollbar is hidden in my case (I use AnchoredBubble w/ a > > close button). Do you know a way to avoid this? > > Ah, I didn't actually use this solution. I just make my content have a > small scrollable div inside. > > html += ""; > > 25px less wide than the popup. I tried that and it worked ok. Thx a lot! Any advice on the mousewheel thing? ;-> -- Eric From nick at torchbox.com Tue Jul 17 12:26:34 2007 From: nick at torchbox.com (Nick Burch) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Unable to use both OpenLayers.Layer.Google and OpenLayers.Layer.TMS In-Reply-To: References: <20070604152110.GB16513@metacarta.com> <5ec103de0706042147u4ecd3713r5055a8ec35cdd605@mail.gmail.com> Message-ID: On Tue, 5 Jun 2007, Nick Burch wrote: > Attached is a patch for GoogleMercator which sorts this. It checks to > see if the overall maps projection is set to EPSG:41001 or not. If it's > not, the current behaviour applies. If it is, then it uses slightly > different conversion routines, which allow it to be compatible. I've just noticed I got the logic in the forwardMercator41001 function slightly off, and I had the x and y variables the wrong way around The attached patch gets them right, and also allows you to specify a projection property to the constructor, so it can get the max resolution correct (41001 and 54004 have a very slightly different one). It's against the latest tschaub sandbox checkout. Nick -------------- next part -------------- --- GoogleMercator.js.sav 2007-06-05 15:28:53.000000000 +0100 +++ GoogleMercator.js 2007-07-17 17:19:49.000000000 +0100 @@ -19,6 +19,7 @@ rMajor: 6378137.0, rMinor: 6356752.31424518, eccent: Math.sqrt(1.0 - Math.pow(6356752.31424518 / 6378137.0, 2)), + halfExt41001: 20037508.34, /** * @constructor @@ -26,13 +27,19 @@ * @param {String} name */ initialize: function(name, options) { - // set up properties for Mercator - assume EPSG:54004 + // set up properties for Mercator - assume EPSG:54004, unless + // EPSG:41001 is specified this.RESOLUTIONS = new Array(); var maxResolution = 156543.0339; + this.projection = "EPSG:54004"; + if(options['projection'] == 'EPSG:41001') { + maxResolution = 156543; + this.projection = options['projection']; + } + for(var zoom=this.MIN_ZOOM_LEVEL; zoom<=this.MAX_ZOOM_LEVEL; ++zoom) { this.RESOLUTIONS[zoom] = maxResolution / Math.pow(2, zoom); } - this.projection = "EPSG:54004"; this.units = "m"; OpenLayers.Layer.Google.prototype.initialize.apply(this, arguments); }, @@ -159,7 +166,8 @@ }, /** - * Given a point in EPSG:4326, return a point in EPSG:54005 (Mercator) + * Given a point in EPSG:4326, return a point in EPSG:54005 (Mercator), + * or EPSG:41001 if that's set for the map. * * @param {OpenLayers.LonLat|GLatLng} lonlat * @type OpenLayers.LonLat @@ -174,7 +182,37 @@ lon = lonlat.lon; lat = lonlat.lat; } - + + if(this.map.projection == "EPSG:41001") { + return this.forwardMercator41001(lon,lat); + } + return this.forwardMercator54005(lon,lat); + }, + + /** + * Given a point in EPSG:4326, return a point in EPSG:41001 (Google Modified Mercator) + * + * @param {OpenLayers.LonLat|GLatLng} lonlat + * @type OpenLayers.LonLat + * @returns The coordinates transformed to Mercator + */ + forwardMercator41001: function(lon,lat) { + var y = Math.log( Math.tan( (90+lat) * Math.PI / 360 ) ) / (Math.PI/180); + y = y * this.halfExt41001 / 180; + + var x = lon * this.halfExt41001 / 180; + + return new OpenLayers.LonLat(x, y); + }, + + /** + * Given a point in EPSG:4326, return a point in EPSG:54005 (Mercator) + * + * @param {OpenLayers.LonLat|GLatLng} lonlat + * @type OpenLayers.LonLat + * @returns The coordinates transformed to Mercator + */ + forwardMercator54005: function(lon,lat) { // convert to radians if(lat <= 90.0 && lat >= -90.0 && lon <= 180.0 && lon >= -180.0) { lat *= this.deg2rad; @@ -202,7 +240,8 @@ }, /** - * Given a point in EPSG:54005 (Mercator), return a point in EPSG:4326. + * Given a point in EPSG:54005 (Mercator) or EPSG:41001 (if set for the + * overall Map), return a point in EPSG:4326. * Ignore that the argument type is named LonLat - these are coordinates in * a Mercator projection, with units of meters. * @@ -211,7 +250,42 @@ * @returns The coordinates transformed to EPSG:4326 */ inverseMercator: function(merc) { + if(this.map.projection == "EPSG:41001") { + return this.inverseMercator41001(merc); + } + return this.inverseMercator54005(merc); + }, + + /** + * Given a point in EPSG:41001 (Google Modified Mercator), return a point in EPSG:4326. + * Ignore that the argument type is named LonLat - these are coordinates in + * a Mercator projection, with units of meters. + * + * @param {OpenLayers.LonLat} merc + * @type OpenLayers.LonLat + * @returns The coordinates transformed to EPSG:4326 + */ + inverseMercator41001: function(merc) { + var lon = merc.lon * 180 / this.halfExt41001; + var lat = merc.lat * 180 / this.halfExt41001; + + lat = lat * Math.PI / 180; + lat = Math.atan( Math.pow(Math.E,lat) ) / PI * 360 + lat = lat - 90 + return new OpenLayers.LonLat(lon, lat); + }, + + /** + * Given a point in EPSG:54005 (Mercator), return a point in EPSG:4326. + * Ignore that the argument type is named LonLat - these are coordinates in + * a Mercator projection, with units of meters. + * + * @param {OpenLayers.LonLat} merc + * @type OpenLayers.LonLat + * @returns The coordinates transformed to EPSG:4326 + */ + inverseMercator54005: function(merc) { // calculate latitude var temp = this.rMinor / this.rMajor; var ts = Math.exp(-merc.lat / this.rMajor); From drspencer at hotmail.com Tue Jul 17 18:05:13 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] want infowindow in OpenLayers In-Reply-To: <20070717130038.GB15388@metacarta.com> References: <11645705.post@talk.nabble.com> <20070717130038.GB15388@metacarta.com> Message-ID: <11658695.post@talk.nabble.com> I have noticed that the marker info windows containing text sometimes cut the text on the right side, so that about 0.5-1 letters are typed outside of the small window. Is this a known issue? If I understand this correctly, there is at the moment no way to make the marker windows larger. Is this correct? Magnus Christopher Schmidt-4 wrote: > > On Tue, Jul 17, 2007 at 01:59:56AM -0700, pforprasad wrote: >> >> Hello all, >> >> The popup we have ie rounded popup , that opens away from location and >> looks >> some what unpleasant cant I use google style info window that can point >> the >> location and relocate the coordinates, If yes then how come? > > Nope, you can't. Patches to improve the OpenLayers popups are, however, > welcome. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/want-infowindow-in-OpenLayers-tf4095682.html#a11658695 Sent from the OpenLayers Users mailing list archive at Nabble.com. From carsella11 at msn.com Tue Jul 17 19:53:32 2007 From: carsella11 at msn.com (Mike Carsella) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers References: <20070717034345.GA13661@metacarta.com> Message-ID: Can you at least entertain the idea of exposing the GMap2 object? It looks like a lot of us need better popups and this could be a way to provide it easily until better OL popups are developed. ----- Original Message ----- From: "Christopher Schmidt" To: "Mike Carsella" Cc: Sent: Monday, July 16, 2007 9:43 PM Subject: Re: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers > On Mon, Jul 16, 2007 at 07:45:29PM -0600, Mike Carsella wrote: >> I'm new to OpenLayers, so bear with me... >> >> I'm creating an OpenLayers map and adding Google Maps as a layer. What >> I'd like to do is then use the the Google Maps API to pop up an info >> window using openinfowindow or openinfowindowhtml. Does OpenLayers >> expose the GMap2 object? Is what I want to do possible? Any help would >> be appreciated. > > In general, the way OpenLayers works is to *not* expose the lower level > interface -- in fact, if you just want to use the Google Maps API, you > probably want to be using something like Mapstraction > (http://www.mapstraction.com/) instead of OpenLayers. > > However, you can use the OpenLayers.Popup classes. These are kinda hairy > compared to Google's library, probably, but they do exist. examples in > examples/popups.html > > Regards, > -- > Christopher Schmidt > MetaCarta > From crschmidt at metacarta.com Tue Jul 17 20:16:13 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers In-Reply-To: References: <20070717034345.GA13661@metacarta.com> Message-ID: <20070718001613.GA6618@metacarta.com> On Tue, Jul 17, 2007 at 05:53:32PM -0600, Mike Carsella wrote: > Can you at least entertain the idea of exposing the GMap2 object? It looks > like a lot of us need better popups and this could be a way to provide it > easily until better OL popups are developed. Unfortunately, doing so leads to a whole host of other problems. One of the features I beileve you mentioned wanting was the ability to have popup automatically slide into view. Great, in theory. Except that as soon as that happens, the Google Map has moved without the OpenLayers map moving at the same time. The end result is that OpenLayers and Google have a different idea of where the map is centered, which results in crazy behavior in extreme cases, but in all cases is going to be behavior that users don't want. The events model in OpenLayers doesn't cooperate well with Google popups -- zoomboxing and letting go over one will get your zoombox 'stuck' so it can't be released. etc. What seems like a simple solution leads to a number of interface issues. Not exposing the object is a design decision based on this type of problem, and although I understand the desire, it's not something we can support without creating more problems than we solve. Regards, -- Christopher Schmidt MetaCarta From luguangxian at sohu.com Tue Jul 17 23:33:16 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] How to Add Multi-Vector-Layers into SelectFeature? In-Reply-To: <20070716151525.GA9489@metacarta.com> References: <11594470.post@talk.nabble.com> <20070716151525.GA9489@metacarta.com> Message-ID: <11661940.post@talk.nabble.com> thank you Chris Christopher Schmidt-4 wrote: > > On Mon, Jul 16, 2007 at 06:46:14AM -0700, RaymondLv wrote: >> >> I'm a beginner to OpenLayers and have three vector layers below, but only >> one >> gml layer can be hovered or selected. >> How to add them all into SelectFeature? > > You must create three seperate selectfeature controls. (The > openmnnd.html demo shows how to set up two, I think.) Only one can be > enabled at a time. This is, as they say, 'just the way it works'. > > http://trac.openlayers.org/ticket/434 is a tracking bug for fixing this: > I think Cameron has a desire to change it, but no code currently exists > for this in OL. > > -- Chris > >> many thanks >> >> /*******************************************************************/ >> var gml110=new OpenLayers.Layer.GML("110kv", >> "110.xml",{style:style_yellow}); >> map.addLayer(gml110); >> >> var gml220=new OpenLayers.Layer.GML("220Kv", >> "220.xml",{style:style_red}); >> map.addLayer(gml220); >> >> var vectors = new OpenLayers.Layer.Vector( "Editable Vector Layer"); >> map.addLayer(vectors); >> map.addControl(new OpenLayers.Control.EditingToolbar(vectors)); >> >> var vctoptions = { >> hover: false, >> onSelect: displayWKT >> }; >> >> var drawControls = new OpenLayers.Control.SelectFeature(gml110, >> vctoptions); >> map.addControl(drawControls); >> drawControls.activate(); >> /*******************************************************************/ >> -- >> View this message in context: >> http://www.nabble.com/How-to--Add-Multi-Vector-Layers-into-SelectFeature--tf4079356.html#a11594470 >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/How-to--Add-Multi-Vector-Layers-into-SelectFeature--tf4079356.html#a11661940 Sent from the OpenLayers Users mailing list archive at Nabble.com. From franz-josef.behr at hft-stuttgart.de Wed Jul 18 02:17:11 2007 From: franz-josef.behr at hft-stuttgart.de (Dr. Franz-Josef Behr) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers In-Reply-To: <20070718001613.GA6618@metacarta.com> References: <20070717034345.GA13661@metacarta.com> <20070718001613.GA6618@metacarta.com> Message-ID: <469DB067.2090406@hft-stuttgart.de> Mike, Christopher Schmidt wrote: > One of the features I beileve you mentioned wanting was the ability to > have popup automatically slide into view. Great, in theory. Except that What's about calling a small function which recenters the map before poping up the popup? >> like a lot of us need better popups and this could be a way to provide it I'd like to say that I appreciate the clarity of OL's popups instead of Google's toy-like ones. Mit freundlichen Gr??en / Regards / Cordialement Franz-Josef Behr --------------------------------------------------------------- "What does education often do? It makes a straight-cut ditch of a free, meandering brook" H.D. THOREAU --------------------------------------------------------------- Prof. Dr. Franz-Josef Behr - Home Office Author of: Strategisches GIS-Management - http://www.gismngt.de eMail: franz-josef.behr@hft-stuttgart.de http://www.gis-news.de Tel: 0721 / 453980-1 sowie 45 33 35 Fax: 0721 / 453980-7 sowie via web.de: 01212-5-12048213 Christopher Schmidt schrieb: > On Tue, Jul 17, 2007 at 05:53:32PM -0600, Mike Carsella wrote: >> Can you at least entertain the idea of exposing the GMap2 object? It looks >> like a lot of us need better popups and this could be a way to provide it >> easily until better OL popups are developed. > > Unfortunately, doing so leads to a whole host of other problems. > One of the features I beileve you mentioned wanting was the ability to > have popup automatically slide into view. Great, in theory. Except that > as soon as that happens, the Google Map has moved without the OpenLayers > map moving at the same time. The end result is that OpenLayers and > Google have a different idea of where the map is centered, which results > in crazy behavior in extreme cases, but in all cases is going to be > behavior that users don't want. > > The events model in OpenLayers doesn't cooperate well with Google popups > -- zoomboxing and letting go over one will get your zoombox 'stuck' so > it can't be released. > > etc. > > What seems like a simple solution leads to a number of interface > issues. Not exposing the object is a design decision based on this type > of problem, and although I understand the desire, it's not something we > can support without creating more problems than we solve. > > Regards, From lp at rpag.ch Wed Jul 18 03:47:55 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Message-ID: <929074CD8C635346B3FFFEFACDE01B45019B215A@exrpmu1.ingnet.local> Well there are 2 different problems: Problem 1: With OpenLayers.Layer.WMS: The description of an object in one tile is not continued in the next tile that comes from the mapserver. In the meantime, I know that this is "normal behaviour" of the mapserver, because he doesn't know, that OpenLayers is going to get an other tile right next to it and therefore doesn't display a part of a discription from an object not in this tile. Problem 2: With OpenLayers.Layer.WMS.Untiled: When entering the map, everything seems fine. But as soon as I zoom in, only a little part from the MapServer is visible above the Google Layer. When moving the map around a few times, it gets visible. When zooming in again, same thing: I have to move the map around to make everything visible that should be there. I think this is a OL problem. See this: http://map.webser125.lookass.ch/openlayers/ex_rpag_google2.php You can see a fwe objects (white arrows, ...). When you zoom in, only one arrow is visible at the top left (there should be more things in the center area). Moving the map around and back to where you were makes the other things visible... This problem exists in Firefox 2 AND IE 7... Lucas -----Urspr?ngliche Nachricht----- Von: Benoit Myard [mailto:myardbenoit@gmail.com] Gesendet: Dienstag, 17. Juli 2007 16:37 An: Pfirter Lukas Betreff: Re: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut On 13/07/07, Pfirter Lukas wrote: > I've already tried "OpenLayers.Layer.WMS.Untiled"... > It actually works fine as long as you don't zoom or move the map around (as long as you stay in the entry view). > As soon as zooming in one level, it gets cut again... What do you mean "cut" ? I think I've missed something because I use WMS.Untiled with no problem! -- Benoit Myard From tchule at hotmail.com Wed Jul 18 03:48:12 2007 From: tchule at hotmail.com (Benoit PESTY) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] DOTS_PER_INCH -> PIXEL_PER_INCH Message-ID: Hello, Just a little note from a guy who seems to have nothing better to do (but should). I was working with resolutions and scales and tilecache and I was trying to adjust everything to have a set of predefined levels corresponding to fixed scales (1 : 1M, 1 : 500 K, ...). I seems that in fact it's better to works with resolutions instead of scales when using tilecache and that the base extend should correspond to 2x2 tiles at the max resolution. I have a TIFF file in 3200 meters per pixel, I've had to adjust my EXTEND so that it correspond to 3200*512 to avoid rounding problems and missing tiles. Now, the scale controller show a scale based on the following calculus : 3200 pixels/meter * 72 ppi * 39.3701 inch/m --> 1 : 9 M The 72 ppi and 39.3701 inch/m values are defined in the Utils.js 72 ppi is the same value used by Mapserver by default. I've made a some research on Internet to understand how it works and maybe we should add a little note on the OpenLayer site. All this to say that if I understand well, we should rename the variable "DOTS_PER_INCH" of the Utils.js file into "PIXEL_PER_INCH" to be more correct (I know, I should have done more important things this morning ^^) . http://www.scantips.com/no72dpi.html http://en.wikipedia.org/wiki/Pixels_per_inch http://en.wikipedia.org/wiki/Dots_per_inch Tchule. _________________________________________________________________ http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 From myardbenoit at gmail.com Wed Jul 18 04:04:45 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B215A@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B215A@exrpmu1.ingnet.local> Message-ID: <6fb81fc70707180104h19709793mc04b68f94bef5192@mail.gmail.com> Now I understand. Well, it looks like some Google tiles appear upon -- and hide -- your WMS Layer. As far as I can tell, you add your WMS layer before your Google layer to the map. As often in IT, it may be a good starting point to fix that, "just to make sure". So please, use this piece of code in your page : var satellite = new OpenLayers.Layer.Google( "Google Satellit" , {type: G_SATELLITE_MAP, 'maxZoomLevel':19} ); var karte = new OpenLayers.Layer.Google( "Google Karte" , {type: G_NORMAL_MAP, 'maxZoomLevel':19} ); var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP, 'maxZoomLevel':19} ); map.addLayers([satellite, karte, hybrid]); var layer = new OpenLayers.Layer.WMS.Untiled( "RPAG", "http://map.webser125.lookass.ch/cgi-bin/mapserv?map=/home/web/web4/data_rpaglocation/rpag_lp_test.map", {layers:'anfahrtsweg,oeffentlicher_verkehr', transparent:true, format:'image/png'} ); map.addLayer(layer); Now please, let us know if the problem is still there. -- Benoit Myard From lp at rpag.ch Wed Jul 18 05:05:35 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Message-ID: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> Hi Benoit, thanks for your quick answer! Unfortunately, putting the WMS layer above the Google-Layers in the code (http://map.webser125.lookass.ch/openlayers/ex_rpag_google_test.php) doesn't change anything, WMS still hides partially. I've seen that I just have to move the map a slightly little bit after changing the zoom to make everything visible like should be... Isn't there like a function that will move the map 1 px everytime you change zoom? Or another workaround for this? Is it a bug actually? -----Urspr?ngliche Nachricht----- Von: Benoit Myard [mailto:myardbenoit@gmail.com] Gesendet: Mittwoch, 18. Juli 2007 10:05 An: Pfirter Lukas Cc: Users@openlayers.org Betreff: Re: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Now I understand. Well, it looks like some Google tiles appear upon -- and hide -- your WMS Layer. As far as I can tell, you add your WMS layer before your Google layer to the map. As often in IT, it may be a good starting point to fix that, "just to make sure". So please, use this piece of code in your page : var satellite = new OpenLayers.Layer.Google( "Google Satellit" , {type: G_SATELLITE_MAP, 'maxZoomLevel':19} ); var karte = new OpenLayers.Layer.Google( "Google Karte" , {type: G_NORMAL_MAP, 'maxZoomLevel':19} ); var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP, 'maxZoomLevel':19} ); map.addLayers([satellite, karte, hybrid]); var layer = new OpenLayers.Layer.WMS.Untiled( "RPAG", "http://map.webser125.lookass.ch/cgi-bin/mapserv?map=/home/web/web4/data_rpaglocation/rpag_lp_test.map", {layers:'anfahrtsweg,oeffentlicher_verkehr', transparent:true, format:'image/png'} ); map.addLayer(layer); Now please, let us know if the problem is still there. -- Benoit Myard From myardbenoit at gmail.com Wed Jul 18 05:28:15 2007 From: myardbenoit at gmail.com (Benoit Myard) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> Message-ID: <6fb81fc70707180228h22dc72c5q5fd988e3938a31f9@mail.gmail.com> > Is it a bug actually? I think so. You should fill a ticket for this [1] and try keep the example online for a while. > I've seen that I just have to move the map a slightly little bit after changing > the zoom to make everything visible like should be... Isn't there like a function > that will move the map 1 px everytime you change zoom? Or > another workaround for this? You may use 'map::pan(dx, dy)' but this is ugly. [1] http://trac.openlayers.org/ (Opening tickets requires to be logged in) -- Benoit Myard From rwburgholzer at deq.virginia.gov Wed Jul 18 08:23:17 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] 3D rotation of map Message-ID: <6C097DA58429B743A67070F98BE73A37025EF892@deqex01.deq.local> (sorry, this is cross-posted on Mapserver, but I figured the lists may not be mutually inclusive) I hope this isn't too far afield, but I was requested to produce a map rotated into the 3rd dimension, with some 3D pie charts on it. ArcFoo is supposed to be able to do this, but when I ran into trouble I got this response from the folks at ESRI: > This is a known limit. Chart symbology is not able to work under the current software architecture. > Workaround : > Chart symbology can not be used in ArcScene at this time. Anyhow, I was wondering if this was something that anyone has fiddled with using the OS tools such as OpenLayers or other. Thanks, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070718/629363af/attachment.html From rwburgholzer at deq.virginia.gov Wed Jul 18 08:26:46 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers Message-ID: <6C097DA58429B743A67070F98BE73A37025EF893@deqex01.deq.local> Maybe an object (such the Gmap) could have a method which requests that the container re-center itself. Perhaps this is what Dr. Behr meant. If so, this sounds like a useful thing. -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Dr. Franz-Josef Behr Sent: Wednesday, July 18, 2007 2:17 AM To: Mike Carsella Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers Mike, Christopher Schmidt wrote: > One of the features I beileve you mentioned wanting was the ability to > have popup automatically slide into view. Great, in theory. Except that What's about calling a small function which recenters the map before poping up the popup? >> like a lot of us need better popups and this could be a way to provide it I'd like to say that I appreciate the clarity of OL's popups instead of Google's toy-like ones. Mit freundlichen Gr??en / Regards / Cordialement Franz-Josef Behr --------------------------------------------------------------- "What does education often do? It makes a straight-cut ditch of a free, meandering brook" H.D. THOREAU --------------------------------------------------------------- Prof. Dr. Franz-Josef Behr - Home Office Author of: Strategisches GIS-Management - http://www.gismngt.de eMail: franz-josef.behr@hft-stuttgart.de http://www.gis-news.de Tel: 0721 / 453980-1 sowie 45 33 35 Fax: 0721 / 453980-7 sowie via web.de: 01212-5-12048213 Christopher Schmidt schrieb: > On Tue, Jul 17, 2007 at 05:53:32PM -0600, Mike Carsella wrote: >> Can you at least entertain the idea of exposing the GMap2 object? It looks >> like a lot of us need better popups and this could be a way to provide it >> easily until better OL popups are developed. > > Unfortunately, doing so leads to a whole host of other problems. > One of the features I beileve you mentioned wanting was the ability to > have popup automatically slide into view. Great, in theory. Except that > as soon as that happens, the Google Map has moved without the OpenLayers > map moving at the same time. The end result is that OpenLayers and > Google have a different idea of where the map is centered, which results > in crazy behavior in extreme cases, but in all cases is going to be > behavior that users don't want. > > The events model in OpenLayers doesn't cooperate well with Google popups > -- zoomboxing and letting go over one will get your zoombox 'stuck' so > it can't be released. > > etc. > > What seems like a simple solution leads to a number of interface > issues. Not exposing the object is a design decision based on this type > of problem, and although I understand the desire, it's not something we > can support without creating more problems than we solve. > > Regards, _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Wed Jul 18 08:58:16 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Question on using Google Maps API on top of OpenLayers In-Reply-To: <469DB067.2090406@hft-stuttgart.de> References: <20070717034345.GA13661@metacarta.com> <20070718001613.GA6618@metacarta.com> <469DB067.2090406@hft-stuttgart.de> Message-ID: <20070718125816.GB8800@metacarta.com> On Wed, Jul 18, 2007 at 08:17:11AM +0200, Dr. Franz-Josef Behr wrote: > Mike, > > Christopher Schmidt wrote: > > > One of the features I beileve you mentioned wanting was the ability to > > have popup automatically slide into view. Great, in theory. Except that > > What's about calling a small function which recenters the map before > poping up the popup? This is functionality which we plan to add to OpenLayers in the relatively near future. I'm hopeful I'll get time to write it for 2.5, but I think it may not go in until 2.6. There are some difficulties -- for example, if it's a WFS layer, moving the map by a few pixels in any direction may end up redrawing the WFS layer -- but I'm hopeful we can create a solution for the simple cases, at least. Regards, -- Christopher Schmidt MetaCarta From marc.desharnais at ec.gc.ca Wed Jul 18 10:42:43 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers Message-ID: <469E26E3.40400@ec.gc.ca> Hi all, I wish to update my problem in hope to get more precise help. I checked what is returned by the server and every time and do a manual attempt by entering the request URL myself I get "no features were found". Is it because of the server or from OpenLayers? I tried to change the name of the layer in the reuqest to something random, and I received a message telling that the feature type was not found. So I guess that it is querying the server with something that exists. But it can't get any feature from the database. Again, if anyone has any experience of OpenLayers getting layers from geoserver with PostGIS, please tell me if there is anything to do in the database to make ot work. Thank you :) Marc Tim Schaub wrote: > Hey Marc- > > Marc Desharnais wrote: >> To get the getfeatureInfo working. I get the loading message in the >> div section 'nodeList'. The problem is that it never seems to get an >> answer. >> I get the checkpoint popup when I click the map so I guess that this >> part is executed well. But it stays forever with the loading message. >> So probably "wmsLayer1.getFullRequestString" is not correct or my >> database is not quite right... I just have a layer with points. >> And I want to query information about thoise points in the database >> to display it beside the map. > > Since you are making an asynchronous request for the GetFeatureInfo > results, you are subject to the same origin policies that browsers > enforce. > > This means that your GetFeatureInfo request won't go anywhere unless > it is requested with the same protocol, from the same port, and on the > same host as the request that initiated your application (see [1]). > > If this sounds like your issue (i.e. you are making the request to > GeoServer on a different port than the request for the rest of your > application), see the FAQ on setting up a proxy host [2]. Note that > if you are using the proxy.cgi that comes in the OL examples > directory, you will need to add your host (and port) to the accepted > list (in proxy.cgi). > >> >> I'm using a local Geoserver with PostGIS. I would like to know too >> how the getFeatureInfo query works. >> Like if I have anything I have to do specially into the database. I >> figure that it's querying the database for info, but what info? >> Do I have to define what I want to be queried? Maybe this is >> off-topic here sorry. > > Also, use Firebug to watch the requests go out. Copy the request and > paste in to a new tab to make sure you are getting what you expect. > If you don't get what you expect, then you'll have to troubleshoot > your GeoServer configuration. > > Hope that helps some, > Tim > > [1] http://www.mozilla.org/projects/security/components/same-origin.html > [2] http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost > > >> >> I searched for informations on the UTIL package for openlayers but >> didn't find real documentation about that. >> >> Please let me know if you would like more info. >> >> >> Any help will be greatly appreciated. >> Thanks in advance >> >> >> >> >> >> /******* CODE START HERE - !!! Note that this code is not complete. I >> posted only the parts I found relevant. !!! >> function init(){ >> >> var map = new OpenLayers.Map($('map'), {controls:[]} ); >> OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; >> var yahooLayer = new >> OpenLayers.Layer.Yahoo( "Globe (Yahoo)", {reproject: "true"} ); >> map.addLayer(yahooLayer); >> var wmsLayer1 = new OpenLayers.Layer.WMS( >> "POSTGIS villes", >> "http://ulysse.cmc.ec.gc.ca:8081/geoserver/wms", >> { >> layers: 'topp:villes', >> format: 'image/png' , transparent: "true", reproject: >> "true"} >> ); >> map.addLayer(wmsLayer1); >> map.addControl(new >> OpenLayers.Control.LayerSwitcher()); >> >> map.addControl(new OpenLayers.Control.NavToolbar()); >> map.addControl(new OpenLayers.Control.PanZoomBar($('map'))); >> map.addControl(new OpenLayers.Control.MouseDefaults()); >> map.addControl(new OpenLayers.Control.Scale($('scale'))); >> map.addControl(new >> OpenLayers.Control.MousePosition({element: $('position')})); >> >> map.events.register('click', map, function (e) { >> OpenLayers.Util.getElement('nodeList').innerHTML = >> "T?l?chargement d'information...
Veuillez Attendre SVP...
"; >> var url = wmsLayer1.getFullRequestString({ >> REQUEST: "GetFeatureInfo", >> EXCEPTIONS: "application/vnd.ogc.se_xml", >> BBOX: wmsLayer1.map.getExtent().toBBOX(), >> X: e.xy.x, >> Y: e.xy.y, >> INFO_FORMAT: 'text/html', >> QUERY_LAYERS: wmsLayer1.params.LAYERS, >> WIDTH: wmsLayer1.map.size.w, >> HEIGHT: wmsLayer1.map.size.h}); >> OpenLayers.loadURL(url, '', this, setHTML); >> >> alert("Checkpoint"); >> >> Event.stop(e); >> }); >> >> >> } >> function setHTML(response) { >> alert("before answer"); >> OpenLayers.Util.getElement('nodeList').innerHTML = >> response.responseText; >> alert("after answer"); >> } >> >> /********* CODE STOPS HERE >> _______________________________________________ >> 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/20070718/282bc9f9/attachment.html From bpederse at gmail.com Wed Jul 18 12:05:37 2007 From: bpederse at gmail.com (Brent Pedersen) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: <469E26E3.40400@ec.gc.ca> References: <469E26E3.40400@ec.gc.ca> Message-ID: hi, in mapserver, you'd have to add something to make getfeatureinfo work ('ows_include_items') is that the case in geoserver? have you checked if the &X , &Y url parameters look like the correct pixel values. then what does postgres log for the query from geoserver? -b On 7/18/07, Marc Desharnais wrote: > > > Hi all, > > I wish to update my problem in hope to get more precise help. > I checked what is returned by the server and every time and do a manual > attempt by entering the request URL myself I get "no features were found". > Is it because of the server or from OpenLayers? > I tried to change the name of the layer in the reuqest to something random, > and I received a message telling that the feature type was not found. > > So I guess that it is querying the server with something that exists. But > it can't get any feature from the database. Again, if anyone has any > experience of OpenLayers getting layers from geoserver with PostGIS, please > tell me if there is anything to do in the database to make ot work. > > > Thank you :) > > Marc > > > Tim Schaub wrote: > > Hey Marc- > > Marc Desharnais wrote: > > To get the getfeatureInfo working. I get the loading message in the div > section 'nodeList'. The problem is that it never seems to get an answer. > I get the checkpoint popup when I click the map so I guess that this part > is executed well. But it stays forever with the loading message. > So probably "wmsLayer1.getFullRequestString" is not correct or my database > is not quite right... I just have a layer with points. > And I want to query information about thoise points in the database to > display it beside the map. > > Since you are making an asynchronous request for the GetFeatureInfo > results, you are subject to the same origin policies that browsers enforce. > > This means that your GetFeatureInfo request won't go anywhere unless it is > requested with the same protocol, from the same port, and on the same host > as the request that initiated your application (see [1]). > > If this sounds like your issue (i.e. you are making the request to > GeoServer on a different port than the request for the rest of your > application), see the FAQ on setting up a proxy host [2]. Note that if you > are using the proxy.cgi that comes in the OL examples directory, you will > need to add your host (and port) to the accepted list (in proxy.cgi). > > > > I'm using a local Geoserver with PostGIS. I would like to know too how the > getFeatureInfo query works. > Like if I have anything I have to do specially into the database. I figure > that it's querying the database for info, but what info? > Do I have to define what I want to be queried? Maybe this is off-topic > here sorry. > > Also, use Firebug to watch the requests go out. Copy the request and paste > in to a new tab to make sure you are getting what you expect. If you don't > get what you expect, then you'll have to troubleshoot your GeoServer > configuration. > > Hope that helps some, > Tim > > [1] > http://www.mozilla.org/projects/security/components/same-origin.html > [2] > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost > > > > > > I searched for informations on the UTIL package for openlayers but didn't > find real documentation about that. > > Please let me know if you would like more info. > > > Any help will be greatly appreciated. > Thanks in advance > > > > > > /******* CODE START HERE - !!! Note that this code is not complete. I > posted only the parts I found relevant. !!! > function init(){ > > var map = new OpenLayers.Map($('map'), {controls:[]} ); > OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; > var yahooLayer = new OpenLayers.Layer.Yahoo( > "Globe (Yahoo)", {reproject: "true"} ); > map.addLayer(yahooLayer); > var wmsLayer1 = new OpenLayers.Layer.WMS( > "POSTGIS villes", > "http://ulysse.cmc.ec.gc.ca:8081/geoserver/wms", > { > layers: 'topp:villes', > format: 'image/png' , transparent: "true", reproject: "true"} > ); > map.addLayer(wmsLayer1); > map.addControl(new > OpenLayers.Control.LayerSwitcher()); > > map.addControl(new OpenLayers.Control.NavToolbar()); > map.addControl(new OpenLayers.Control.PanZoomBar($('map'))); > map.addControl(new > OpenLayers.Control.MouseDefaults()); > map.addControl(new OpenLayers.Control.Scale($('scale'))); > map.addControl(new > OpenLayers.Control.MousePosition({element: > $('position')})); > > map.events.register('click', map, function (e) { > OpenLayers.Util.getElement('nodeList').innerHTML = > "T?l?chargement d'information...
Veuillez Attendre SVP...
"; > var url = wmsLayer1.getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > BBOX: wmsLayer1.map.getExtent().toBBOX(), > X: e.xy.x, > Y: e.xy.y, > INFO_FORMAT: 'text/html', > QUERY_LAYERS: wmsLayer1.params.LAYERS, > WIDTH: wmsLayer1.map.size.w, > HEIGHT: wmsLayer1.map.size.h}); > OpenLayers.loadURL(url, '', this, setHTML); > > alert("Checkpoint"); > > Event.stop(e); > }); > > > } > function setHTML(response) { > alert("before answer"); > OpenLayers.Util.getElement('nodeList').innerHTML = > response.responseText; > alert("after answer"); > } > > /********* CODE STOPS HERE > _______________________________________________ > 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 prasad.choudhary at gmail.com Thu Jul 19 01:28:29 2007 From: prasad.choudhary at gmail.com (pforprasad) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Need fancy Popup Message-ID: <11682576.post@talk.nabble.com> Hello all, I really need your help, since i am very poor in java script unable to develope a new popup class, will some one help me for the New kinda popup on map which can be put as patch in openlayers Please help. -- View this message in context: http://www.nabble.com/Need-fancy-Popup-tf4108244.html#a11682576 Sent from the OpenLayers Users mailing list archive at Nabble.com. From simone.dalmasso at gmail.com Thu Jul 19 08:39:56 2007 From: simone.dalmasso at gmail.com (Simo D) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Problem parsing GeoRSS? Message-ID: <11688112.post@talk.nabble.com> Hi, in my OpenLayers based web application I have any GeoRSS feeds that are visualized correctly. But one of theese don't work, it's http://dma.jrc.it/services/gdas/fl/rss.asp?alertscore=2 Gdacs . I think it may be a problem with the parser that can't read the feed, but I'm not sure.... Can you help me? Thanks! -- View this message in context: http://www.nabble.com/Problem-parsing-GeoRSS--tf4110425.html#a11688112 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Thu Jul 19 08:53:32 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <11650163.post@talk.nabble.com> References: <11649812.post@talk.nabble.com> <20070717134538.GA15579@metacarta.com> <11650163.post@talk.nabble.com> Message-ID: <20070719125332.GB12852@metacarta.com> On Tue, Jul 17, 2007 at 07:01:17AM -0700, Simo D wrote: > Thanks but my proxy.cgi is ok and the application is working correctly with > other GeoRSS. > Only with the last, Gdacs Floods, I have the problem. Yep, looks like the parser can't parse that feed. No idea why. Sorry. Erik -- can you take the URL from the original post, and file it as a bug? Regards, -- Christopher Schmidt MetaCarta From marc.desharnais at ec.gc.ca Thu Jul 19 09:04:34 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: References: <469E26E3.40400@ec.gc.ca> Message-ID: <469F6162.5080008@ec.gc.ca> Hi, I confirm that my geoserver is working fine. I exchanged some emails on the geoserver mailing list and they suggested me to try the preview maps given by geoserver. They now integer the getfeatureinfo functionality in the default previews. So I tried there and everything worked fine. but, now, if I copy the html code entirely without any modification into my webpage, I won't work. The map displays fine and everything. But it hangs on the loading message and never get response. I used Firebug to track the bug and I remarked that the request is never noticed in firebug when I click on a point. The loadURL function is called but not the setHTML. It makes me think that maybe it's a permission problem. Since it semms to work from geoserver itself but not from apache (which my web page is on). Anyone had any experience like this? Thank a lot, Marc Brent Pedersen wrote: > hi, > in mapserver, you'd have to add something to make getfeatureinfo work > ('ows_include_items') is that the case in geoserver? > have you checked if the &X , &Y url parameters look like the correct > pixel values. > then what does postgres log for the query from geoserver? > -b > > > On 7/18/07, Marc Desharnais wrote: >> >> >> Hi all, >> >> I wish to update my problem in hope to get more precise help. >> I checked what is returned by the server and every time and do a manual >> attempt by entering the request URL myself I get "no features were >> found". >> Is it because of the server or from OpenLayers? >> I tried to change the name of the layer in the reuqest to something >> random, >> and I received a message telling that the feature type was not found. >> >> So I guess that it is querying the server with something that >> exists. But >> it can't get any feature from the database. Again, if anyone has any >> experience of OpenLayers getting layers from geoserver with PostGIS, >> please >> tell me if there is anything to do in the database to make ot work. >> >> >> Thank you :) >> >> Marc >> >> >> Tim Schaub wrote: >> >> Hey Marc- >> >> Marc Desharnais wrote: >> >> To get the getfeatureInfo working. I get the loading message in the div >> section 'nodeList'. The problem is that it never seems to get an answer. >> I get the checkpoint popup when I click the map so I guess that this >> part >> is executed well. But it stays forever with the loading message. >> So probably "wmsLayer1.getFullRequestString" is not correct or my >> database >> is not quite right... I just have a layer with points. >> And I want to query information about thoise points in the database to >> display it beside the map. >> >> Since you are making an asynchronous request for the GetFeatureInfo >> results, you are subject to the same origin policies that browsers >> enforce. >> >> This means that your GetFeatureInfo request won't go anywhere unless >> it is >> requested with the same protocol, from the same port, and on the same >> host >> as the request that initiated your application (see [1]). >> >> If this sounds like your issue (i.e. you are making the request to >> GeoServer on a different port than the request for the rest of your >> application), see the FAQ on setting up a proxy host [2]. Note that >> if you >> are using the proxy.cgi that comes in the OL examples directory, you >> will >> need to add your host (and port) to the accepted list (in proxy.cgi). >> >> >> >> I'm using a local Geoserver with PostGIS. I would like to know too >> how the >> getFeatureInfo query works. >> Like if I have anything I have to do specially into the database. I >> figure >> that it's querying the database for info, but what info? >> Do I have to define what I want to be queried? Maybe this is off-topic >> here sorry. >> >> Also, use Firebug to watch the requests go out. Copy the request >> and paste >> in to a new tab to make sure you are getting what you expect. If you >> don't >> get what you expect, then you'll have to troubleshoot your GeoServer >> configuration. >> >> Hope that helps some, >> Tim >> >> [1] >> http://www.mozilla.org/projects/security/components/same-origin.html >> [2] >> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost >> >> >> >> >> >> I searched for informations on the UTIL package for openlayers but >> didn't >> find real documentation about that. >> >> Please let me know if you would like more info. >> >> >> Any help will be greatly appreciated. >> Thanks in advance >> >> >> >> >> >> /******* CODE START HERE - !!! Note that this code is not complete. I >> posted only the parts I found relevant. !!! >> function init(){ >> >> var map = new OpenLayers.Map($('map'), {controls:[]} ); >> OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5; >> var yahooLayer = new >> OpenLayers.Layer.Yahoo( >> "Globe (Yahoo)", {reproject: "true"} ); >> map.addLayer(yahooLayer); >> var wmsLayer1 = new OpenLayers.Layer.WMS( >> "POSTGIS villes", >> "http://ulysse.cmc.ec.gc.ca:8081/geoserver/wms", >> { >> layers: 'topp:villes', >> format: 'image/png' , transparent: "true", reproject: >> "true"} >> ); >> map.addLayer(wmsLayer1); >> map.addControl(new >> OpenLayers.Control.LayerSwitcher()); >> >> map.addControl(new OpenLayers.Control.NavToolbar()); >> map.addControl(new OpenLayers.Control.PanZoomBar($('map'))); >> map.addControl(new >> OpenLayers.Control.MouseDefaults()); >> map.addControl(new OpenLayers.Control.Scale($('scale'))); >> map.addControl(new >> OpenLayers.Control.MousePosition({element: >> $('position')})); >> >> map.events.register('click', map, function (e) { >> OpenLayers.Util.getElement('nodeList').innerHTML = >> "T?l?chargement d'information...
Veuillez Attendre SVP...
"; >> var url = wmsLayer1.getFullRequestString({ >> REQUEST: "GetFeatureInfo", >> EXCEPTIONS: "application/vnd.ogc.se_xml", >> BBOX: wmsLayer1.map.getExtent().toBBOX(), >> X: e.xy.x, >> Y: e.xy.y, >> INFO_FORMAT: 'text/html', >> QUERY_LAYERS: wmsLayer1.params.LAYERS, >> WIDTH: wmsLayer1.map.size.w, >> HEIGHT: wmsLayer1.map.size.h}); >> OpenLayers.loadURL(url, '', this, setHTML); >> >> alert("Checkpoint"); >> >> Event.stop(e); >> }); >> >> >> } >> function setHTML(response) { >> alert("before answer"); >> OpenLayers.Util.getElement('nodeList').innerHTML = >> response.responseText; >> alert("after answer"); >> } >> >> /********* CODE STOPS HERE >> _______________________________________________ >> 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 crschmidt at metacarta.com Thu Jul 19 09:07:12 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> Message-ID: <20070719130712.GA12939@metacarta.com> On Wed, Jul 18, 2007 at 11:05:35AM +0200, Pfirter Lukas wrote: > Hi Benoit, thanks for your quick answer! > Unfortunately, putting the WMS layer above the Google-Layers in the code (http://map.webser125.lookass.ch/openlayers/ex_rpag_google_test.php) doesn't change anything, WMS still hides partially. > I've seen that I just have to move the map a slightly little bit after changing the zoom to make everything visible like should be... Isn't there like a function that will move the map 1 px everytime you change zoom? Or another workaround for this? Is it a bug actually? There is definitely a bug here. The problem is that the bounding box requested for the tile is not actually in the right place -- it's off by about .02 degrees, it looks like, which is a fair distance. Could you try upgrading to the latest svn code -- svn co http://svn.openlayers.org/trunk/openlayers/ will get the code for you -- and see if it still happens? It looks like you're currently running against 2.4-RC2, and although I'm not really hopeful that this change will fix the problem, I'm hopeful that it will at least elmiinate that as part of it. Another question -- did you see this with tiled layers as well? I think the answer is yes, but I can't remember. Thanks in advance for trying to help us dig into it. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Thu Jul 19 09:12:43 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B215C@exrpmu1.ingnet.local> Message-ID: <20070719131243.GB12939@metacarta.com> On Wed, Jul 18, 2007 at 11:05:35AM +0200, Pfirter Lukas wrote: > Hi Benoit, thanks for your quick answer! > Unfortunately, putting the WMS layer above the Google-Layers in the code (http://map.webser125.lookass.ch/openlayers/ex_rpag_google_test.php) doesn't change anything, WMS still hides partially. > I've seen that I just have to move the map a slightly little bit after changing the zoom to make everything visible like should be... Isn't there like a function that will move the map 1 px everytime you change zoom? Or another workaround for this? Is it a bug actually? (Looks like I mistakenly sent to user instead of to list -- ) The problem here appears to be that the bounding box for the tile is off in both directions by a significant amount, which results in the tile not having the correct data. Could you try updating the code to run against SVN head -- you can point to http://openlayers.org/dev/lib/OpenLayers.js temporarily to do so -- and see if the behavior changes at all? Also, just to confirm -- this problem happens with WMS Tiled layers too, correct? I just want to make sure that this isn't a problem with OL-2.4 RC2. I doubt it, but you never know. Regards, -- Christopher Schmidt MetaCarta From rwburgholzer at deq.virginia.gov Thu Jul 19 09:19:20 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] Information/Advice about placing markers Message-ID: <6C097DA58429B743A67070F98BE73A37025EF899@deqex01.deq.local> Brad, In the examples folder you will find "markersTextLayer.html" which does 90% of what you want. It loads information for your markers from a text file (with a custom icon for each if you like) and displays a popup with information relevant to that marker (also loaded from the text file). It does not, to my knowledge, do so on just a mouse-over, the user has to click on the icon, but I imagine that wouldn't be too difficult to finesse. There has been considerable traffic recently regarding having scrollbars in these popups as well, so if that is a need, you can do it too. Good luck, r.b. var newl = new OpenLayers.Layer.Text( "text", {location: "./wateruse.txt"} ); map.addLayer(newl); -----Original Message----- From: dev-bounces@openlayers.org [mailto:dev-bounces@openlayers.org] On Behalf Of Bradley Mclain Sent: Wednesday, July 18, 2007 7:29 PM To: Mapserver Users ML; OpenLayers ML Subject: [OpenLayers-Dev] Information/Advice about placing markers Ok what I want to do is place a series of markers on different farm blocks and properties, I currently have a Webserver using OpenLayers to import Google Maps and my own custom Mapserver WMS data. I am looking for any advice hints and tips on how to go about all of this. I have a list of all the info I need about the different farm blocks, names of growers, variety of produce etc and I would like to place a marker so that when you hover over it it displays this data. (Also a potential future feature would be a full outline of the property but this is probably a while off. Currently all I have is markers being placed on the specific locations with no pop-up info or anything. I don't want to cram my html file full of this info and would prefer if I could import from some sort of a database or text file. (Preferably textfile in the short term for testing but eventually a database would be ideal). Cheers Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070719/377bd064/attachment.html From crschmidt at metacarta.com Thu Jul 19 09:20:33 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: <469F6162.5080008@ec.gc.ca> References: <469E26E3.40400@ec.gc.ca> <469F6162.5080008@ec.gc.ca> Message-ID: <20070719132033.GE12939@metacarta.com> On Thu, Jul 19, 2007 at 01:04:34PM +0000, Marc Desharnais wrote: > Hi, > > I confirm that my geoserver is working fine. I exchanged some emails on > the geoserver mailing list and they suggested me to try the preview maps > given by geoserver. They now integer the getfeatureinfo functionality in > the default previews. > > So I tried there and everything worked fine. > > but, now, if I copy the html code entirely without any modification into > my webpage, I won't work. The map displays fine and everything. But it > hangs on the loading message and never get response. I used Firebug to > track the bug and I remarked that the request is never noticed in > firebug when I click on a point. The loadURL function is called but not > the setHTML. It makes me think that maybe it's a permission problem. > Since it semms to work from geoserver itself but not from apache (which > my web page is on). http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost Regards, -- Christopher Schmidt MetaCarta From wbronsema at dmsolutions.ca Thu Jul 19 10:56:58 2007 From: wbronsema at dmsolutions.ca (William Bronsema) Date: Wed Sep 1 17:15:37 2010 Subject: [OpenLayers-Users] IE7 vector flicker when panning Message-ID: <006401c7ca15$0ecb7fd0$2c627f70$@ca> Hi Everyone, First off let me say that the vector implementation is awesome. It has made my life a lot easier in this latest project I am working on, so thanks! I'm having an issue with my vector image flashing when I pan around the map in IE7. I can reproduce the same effect in the demo: http://dev.openlayers.org/sandbox/vector-2.4/examples/vector-features.html When you pan the map the vector images moves nicely along with the map but when you release the mouse the vector flashes in its original starting position for a fraction of a second and then is back where it is supposed to be. Has anyone else run into this? Any ideas? Thanks, Bill William Bronsema Senior Applications Specialist DM Solutions Group Inc. ___________________________________ http://www.dmsolutions.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070719/32c9087b/attachment.html From marc.desharnais at ec.gc.ca Thu Jul 19 11:48:05 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: <20070719132033.GE12939@metacarta.com> References: <469E26E3.40400@ec.gc.ca> <469F6162.5080008@ec.gc.ca> <20070719132033.GE12939@metacarta.com> Message-ID: <469F87B5.8070801@ec.gc.ca> Hi Christopher, Like you said, it turned out that the problem was a security issue. To those who don't know (like me), you can't access a host with your browser and make query on another. The point I was missing was that the same machine with 2 different ports are considered to be 2 different hosts. It's a simple explanation when you realize that. I learned too why the security exception in Firefox while I attempted to make request (via Firebug) didn't show like I would have expect. That's a thing that really bothered me at the first place because I would have expected an clear error from the browser. I have read that this kind of exception are treated silently in the browser so it's normal I've seen nothing while I was debugging. Now everything is working well! Thank you for your supportt! :) Marc Christopher Schmidt wrote: > On Thu, Jul 19, 2007 at 01:04:34PM +0000, Marc Desharnais wrote: > >> Hi, >> >> I confirm that my geoserver is working fine. I exchanged some emails on >> the geoserver mailing list and they suggested me to try the preview maps >> given by geoserver. They now integer the getfeatureinfo functionality in >> the default previews. >> >> So I tried there and everything worked fine. >> >> but, now, if I copy the html code entirely without any modification into >> my webpage, I won't work. The map displays fine and everything. But it >> hangs on the loading message and never get response. I used Firebug to >> track the bug and I remarked that the request is never noticed in >> firebug when I click on a point. The loadURL function is called but not >> the setHTML. It makes me think that maybe it's a permission problem. >> Since it semms to work from geoserver itself but not from apache (which >> my web page is on). >> > > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070719/49419a5e/attachment.html From eisberg at gmail.com Thu Jul 19 11:48:57 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] No tooltips in Firefox Message-ID: <54584fb80707190848g26921f6eqcb78a6e0d49b5480@mail.gmail.com> Hello! Just found out that the image tooltips of OpenLayers are not being shown in Firefox. In my case these are the buttons in the MouseToolBox, which have tooltips only in IE. -- Regards, Dmitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070719/3ba98e56/attachment.html From crschmidt at metacarta.com Thu Jul 19 12:42:29 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: <469F87B5.8070801@ec.gc.ca> References: <469E26E3.40400@ec.gc.ca> <469F6162.5080008@ec.gc.ca> <20070719132033.GE12939@metacarta.com> <469F87B5.8070801@ec.gc.ca> Message-ID: <20070719164229.GA13558@metacarta.com> On Thu, Jul 19, 2007 at 03:48:05PM +0000, Marc Desharnais wrote: > I learned too why the security exception in Firefox while I attempted to > make request (via Firebug) didn't show like I would have expect. > That's a thing that really bothered me at the first place because I > would have expected an clear error from the browser. > I have read that this kind of exception are treated silently in the > browser so it's normal I've seen nothing while I was debugging. Actually, that's not entirely true. Instead, this is a failing of OpenLayers.Ajax, which has since been corrected in trunk: http://trac.openlayers.org/ticket/534 So, had you been using SVN, you would have seen "Unable to call XMLHttpRequest.open". Just for the record. Regards, -- Christopher Schmidt MetaCarta From marc.desharnais at ec.gc.ca Thu Jul 19 13:46:04 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo Message-ID: <469FA35C.2000406@ec.gc.ca> Hi all, I search for an attribute to set to make it easier to click on points to get some info about them. I tried some things like RADIUS or REDIUS (saw that on a page on internet) but nothing works. I just want it to be easier to click on the point if it's possible, a couple of pixels more. Thank in advance, Marc From eisberg at gmail.com Thu Jul 19 14:08:42 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <469FA35C.2000406@ec.gc.ca> References: <469FA35C.2000406@ec.gc.ca> Message-ID: <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> Hi Marc, in a WMS/WFS service request the attribute you are looking for is called TOLERANCE. I think this should do it when set as a parameter in getFullRequestString function (see user recipies: http://trac.openlayers.org/wiki/GetFeatureInfo). Hopefully it helps you out. Cheers, Dmitri 2007/7/19, Marc Desharnais : > > Hi all, > > I search for an attribute to set to make it easier to click on points to > get some info about them. > I tried some things like RADIUS or REDIUS (saw that on a page on > internet) but nothing works. > > I just want it to be easier to click on the point if it's possible, a > couple of pixels more. > > > Thank in advance, > > Marc > _______________________________________________ > 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/20070719/3c94a142/attachment.html From marc.desharnais at ec.gc.ca Thu Jul 19 15:36:44 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> Message-ID: <469FBD4C.9080606@ec.gc.ca> Hi Dmitri, I tried to make a manual query with this parameter without success. Usecase (this is part of the query referring to the place where the click is made): SUCCESS : X=235&Y=503 FAILURE : X=235&Y=504 FAILURE : X=235&Y=504&TOLERANCE=5 So the TOLERANCE parameter doesn't affect the query... I tried to search internet for any wms parameter refering to TOLERANCE but could'nt get any information about it. If you can provide any clue about how to use it, or any documentation referring to it please help. Thank you :) Marc Dmitri Mizerkin wrote: > Hi Marc, > > in a WMS/WFS service request the attribute you are looking for is > called TOLERANCE. I think this should do it when set as a parameter in > getFullRequestString function (see user recipies: > http://trac.openlayers.org/wiki/GetFeatureInfo). > > Hopefully it helps you out. > > Cheers, > Dmitri > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca > >: > > Hi all, > > I search for an attribute to set to make it easier to click on > points to > get some info about them. > I tried some things like RADIUS or REDIUS (saw that on a page on > internet) but nothing works. > > I just want it to be easier to click on the point if it's possible, a > couple of pixels more. > > > Thank in advance, > > Marc > _______________________________________________ > 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/20070719/bcd1be7a/attachment.html From eisberg at gmail.com Thu Jul 19 17:03:12 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <469FBD4C.9080606@ec.gc.ca> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <469FBD4C.9080606@ec.gc.ca> Message-ID: <54584fb80707191403s40d5a6e7jf156aa87213c7ed8@mail.gmail.com> Hi Marc, if you are using UMN MapServer, you always have an opportunity to change the parameters of a class in a mapfile via URL. The URL should look like this: http://yourhostname/cgi-bin/mapserv.exe?map=yourmapfilepath&REQUEST=GetFeatureInfo&...&layer_youlayername_class_yourclassname_tolerance=5 whereby "yourlayername" and "yourclassname" stay for the layer name and the class representing the layer as defined in the mapfile. If you are using another GIS server as for instance GeoServer, that doesn't support mapfiles and custom classes, you should look for a workaround. I would suggest to use the GetFeature request (WFS service) instead of GetFeatureInfo (WMS), because in this case you don't have to explicitly define the map position (parameters X and Y). Instead of this you only type a BBOX (minimum and maximum values for latitude and longitude) in your URL, which defines the area of interest, and the response you get from the server will contain all the features in this box. The BBOX could easily be computed via javascript. If none of those suggestions is helpful, please describe your configuration and your actions in detail so I could exactly understand what you are doing and what you're trying to achieve. Regards, Dmitri 2007/7/19, Marc Desharnais : > > Hi Dmitri, > > I tried to make a manual query with this parameter without success. > > Usecase (this is part of the query referring to the place where the click > is made): > SUCCESS : X=235&Y=503 > FAILURE : X=235&Y=504 > FAILURE : X=235&Y=504&TOLERANCE=5 > > So the TOLERANCE parameter doesn't affect the query... > > I tried to search internet for any wms parameter refering to TOLERANCE but > could'nt get any information about it. If you can provide any clue about how > to use it, or any documentation referring to it please help. > > > Thank you :) > > Marc > > > > Dmitri Mizerkin wrote: > > Hi Marc, > > in a WMS/WFS service request the attribute you are looking for is called > TOLERANCE. I think this should do it when set as a parameter in > getFullRequestString function (see user recipies: > http://trac.openlayers.org/wiki/GetFeatureInfo). > > Hopefully it helps you out. > > Cheers, > Dmitri > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca>: > > > > Hi all, > > > > I search for an attribute to set to make it easier to click on points to > > > > get some info about them. > > I tried some things like RADIUS or REDIUS (saw that on a page on > > internet) but nothing works. > > > > I just want it to be easier to click on the point if it's possible, a > > couple of pixels more. > > > > > > Thank in advance, > > > > Marc > > _______________________________________________ > > 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/20070719/b84fa6f1/attachment.html From brad at cubewerx.com.au Thu Jul 19 18:12:59 2007 From: brad at cubewerx.com.au (bradleyspencer) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Double click mouse control Message-ID: List, I have implemented an application that allows me to select a layer as the ?Active? layer. In the function triggered, I deactivate any DoubleClick map event with map.events.remove('dblclick'); and then register a DoubleClick event to do a getFeatureInfo on a mouse doubleclick. This works fine but after doing this once the standard DoubleClick (recenter & zoom) has of course been deactivated. I would like to reactivate just the DoubleClick to do Zoom & Recentre when selecting an active layer that is not queryable. Is there a method like map.events.remove('dblclick'); that allows me to activate the standard doubleclick mouse event? Cheers, Brad Spencer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070720/2c5aadd0/attachment.html From bwoodall at bwoodall.org Fri Jul 20 01:46:05 2007 From: bwoodall at bwoodall.org (Bill Woodall) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> Message-ID: <1184910365.25986.32.camel@wardrobe.dhs.org> Hi All What has worked for me in using TOLERANCE is to put it into the mapfile ( if you are using MapServer) like ; LAYER NAME Scrub_and_Chaparral TEMPLATE blank TOLERANCE 1 TOLERANCEUNITS feet METADATA "wms_title" "Scrub_and_Chaparral" "wms_include_items" "CATEGORY,LEGEND,SOURCE" END TYPE POLYGON STATUS ON DATA Scrub_and_Chaparral ......Bill, On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > Hi Marc, > > in a WMS/WFS service request the attribute you are looking for is > called TOLERANCE. I think this should do it when set as a parameter in > getFullRequestString function (see user recipies: > http://trac.openlayers.org/wiki/GetFeatureInfo). > > Hopefully it helps you out. > > Cheers, > Dmitri > > 2007/7/19, Marc Desharnais : > Hi all, > > I search for an attribute to set to make it easier to click on > points to > get some info about them. > I tried some things like RADIUS or REDIUS (saw that on a page > on > internet) but nothing works. > > I just want it to be easier to click on the point if it's > possible, a > couple of pixels more. > > > Thank in advance, > > Marc > _______________________________________________ > 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 eisberg at gmail.com Fri Jul 20 02:33:06 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <1184910365.25986.32.camel@wardrobe.dhs.org> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <1184910365.25986.32.camel@wardrobe.dhs.org> Message-ID: <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> Hi Bill, that's the right way to do it. What I meant is setting the tolerance via URL, in your case it would be sth like http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet(I don't know if the underscores in your layer name won't affect the functionality so I'm assuming that it is the first layer in the mapfile and using the index of it). More information can be found on http://mapserver.gis.umn.edu/docs/reference/cgi/controls in the very last chapter "Changing map file parameters via a form or a URL". Hopefully it helps Marc with his issue. Regards, Dmitri 2007/7/20, Bill Woodall : > > Hi All > > What has worked for me in using TOLERANCE is to put it into the mapfile > ( if you are using MapServer) like ; > > LAYER > NAME Scrub_and_Chaparral > TEMPLATE blank > TOLERANCE 1 > TOLERANCEUNITS feet > METADATA > "wms_title" "Scrub_and_Chaparral" > "wms_include_items" "CATEGORY,LEGEND,SOURCE" > END > TYPE POLYGON > STATUS ON > DATA Scrub_and_Chaparral > > ......Bill, > > On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > > Hi Marc, > > > > in a WMS/WFS service request the attribute you are looking for is > > called TOLERANCE. I think this should do it when set as a parameter in > > getFullRequestString function (see user recipies: > > http://trac.openlayers.org/wiki/GetFeatureInfo). > > > > Hopefully it helps you out. > > > > Cheers, > > Dmitri > > > > 2007/7/19, Marc Desharnais : > > Hi all, > > > > I search for an attribute to set to make it easier to click on > > points to > > get some info about them. > > I tried some things like RADIUS or REDIUS (saw that on a page > > on > > internet) but nothing works. > > > > I just want it to be easier to click on the point if it's > > possible, a > > couple of pixels more. > > > > > > Thank in advance, > > > > Marc > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070720/e1ddfaae/attachment.html From rdmailings at duif.net Fri Jul 20 03:43:02 2007 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] javascript lessons / learning Message-ID: <46A06786.6060905@duif.net> Hi Guys, Via some clean user-googlemaps-code (maps.js in http://www.liveearthalert.nl/page/googlemap/) I stumbled upon the javascript lib mootools (http://www.mootools.net/). (By the way is openlayers not using prototype anymore?) Mootools has a post for beginning (and mediocre) javascript coders: http://blog.mootools.net/2007/6/5/help-i-dont-know-javascript. Especially the yahoo-video's of douglas crockford were an eyeopener for me! Concluding: - if you want to understand a little more about some constructs/concepts in Openlayers, or want to learn how to code javascript a little cleaner: do take some time to view the video's of douglas crockford and Nicholas Zakas: http://video.yahoo.com/video/play?ei=UTF-8&b=4&vid=568351&gid=133414 - really have a look at the documentation of firebug (I was using it, but didn't know it had so much possibilities): still using alerts? read: http://www.getfirebug.com/logging.html - still not using the debugging features of firebug? see http://video.yahoo.com/video/play?vid=111597 - wouldn't it be nice to have something like http://blog.mootools.net/2007/6/5/help-i-dont-know-javascript in the openlayers (users) wiki? After seeing all this, http://www.liveearthalert.nl/static/javascript/maps.js showed me a nice example to organize (application) code. Look a lot better then mine. Is it an idea to add such an example in the examples, using the Openlayers constructs (use a 'namespace', use the Ajax and 'class' code of OL, organize your constants etc etc)? Richard Duivenvoorde ps: I do understand this is probably nothing new for the OL-dev-guys themselves, but posted for all the humble webapp builders (OL-users-guys) like me ;-) From yjacolin at free.fr Fri Jul 20 03:54:48 2007 From: yjacolin at free.fr (Jacolin Yves) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] javascript lessons / learning In-Reply-To: <46A06786.6060905@duif.net> References: <46A06786.6060905@duif.net> Message-ID: <200707200954.48774.yjacolin@free.fr> Le Friday 20 July 2007 09:43:02 Richard Duivenvoorde, vous avez ?crit?: > - really have a look at the documentation of firebug (I was using it, > but didn't know it had so much possibilities): still using alerts? read: > ? http://www.getfirebug.com/logging.html Hi, Thanks for your links, specially the one about firebug, even if I already know Firebug, I didn't know how it is so powerful and just discover can we can use it in other navigator like IE, opera, ... for debugging it is really interesting. Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From simone.dalmasso at gmail.com Fri Jul 20 04:50:21 2007 From: simone.dalmasso at gmail.com (Simo D) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <20070719125332.GB12852@metacarta.com> References: <11649812.post@talk.nabble.com> <20070717134538.GA15579@metacarta.com> <11650163.post@talk.nabble.com> <20070719125332.GB12852@metacarta.com> Message-ID: <11704487.post@talk.nabble.com> Hi, I found wich is the problem. The parser can't parse the tags. If I remove theese tags from the code it works fine. Thank you. Simone Christopher Schmidt-4 wrote: > > On Tue, Jul 17, 2007 at 07:01:17AM -0700, Simo D wrote: >> Thanks but my proxy.cgi is ok and the application is working correctly >> with >> other GeoRSS. >> Only with the last, Gdacs Floods, I have the problem. > > Yep, looks like the parser can't parse that feed. No idea why. Sorry. > > Erik -- can you take the URL from the original post, and file it as a > bug? > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Can%27t-view-a-GeoRSS-tf4097047.html#a11704487 Sent from the OpenLayers Users mailing list archive at Nabble.com. From marc.desharnais at ec.gc.ca Fri Jul 20 07:30:18 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <1184910365.25986.32.camel@wardrobe.dhs.org> <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> Message-ID: <46A09CCA.7060508@ec.gc.ca> Hi all, I'm using geoserver so I guess your solution won't work. Anyone has an idea about setting a tolerance level in geoserver? Or anything that would make it easier to click on a point of a map with geoserver. Thanks, Marc Dmitri Mizerkin wrote: > Hi Bill, > > that's the right way to do it. What I meant is setting the tolerance > via URL, in your case it would be sth like > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > > (I don't know if the underscores in your layer name won't affect the > functionality so I'm assuming that it is the first layer in the > mapfile and using the index of it). More information can be found on > http://mapserver.gis.umn.edu/docs/reference/cgi/controls in the very > last chapter "Changing map file parameters via a form or a URL ". > > Hopefully it helps Marc with his issue. > > Regards, > Dmitri > > 2007/7/20, Bill Woodall >: > > Hi All > > What has worked for me in using TOLERANCE is to put it into the > mapfile > ( if you are using MapServer) like ; > > LAYER > NAME Scrub_and_Chaparral > TEMPLATE blank > TOLERANCE 1 > TOLERANCEUNITS feet > METADATA > "wms_title" "Scrub_and_Chaparral" > "wms_include_items" "CATEGORY,LEGEND,SOURCE" > END > TYPE POLYGON > STATUS ON > DATA Scrub_and_Chaparral > > ......Bill, > > On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > > Hi Marc, > > > > in a WMS/WFS service request the attribute you are looking for is > > called TOLERANCE. I think this should do it when set as a > parameter in > > getFullRequestString function (see user recipies: > > http://trac.openlayers.org/wiki/GetFeatureInfo). > > > > Hopefully it helps you out. > > > > Cheers, > > Dmitri > > > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca > >: > > Hi all, > > > > I search for an attribute to set to make it easier to > click on > > points to > > get some info about them. > > I tried some things like RADIUS or REDIUS (saw that on a > page > > on > > internet) but nothing works. > > > > I just want it to be easier to click on the point if it's > > possible, a > > couple of pixels more. > > > > > > Thank in advance, > > > > Marc > > _______________________________________________ > > 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 lp at rpag.ch Fri Jul 20 07:37:51 2007 From: lp at rpag.ch (Pfirter Lukas) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut Message-ID: <929074CD8C635346B3FFFEFACDE01B45019B2161@exrpmu1.ingnet.local> Hi Chris, and thanks for the help. I downloaded the latest svn version (I think it worked, I don't have SVN, did it with "wget -r"). http://map.webser125.lookass.ch/openlayers_svn/ex_rpag_google_untiled.php Copied the file that includes OL in there and still the same thing happens. As you see, this does only happens with OpenLayers.Layer.WMS.Untiled. Without "Untiled", it works: http://map.webser125.lookass.ch/openlayers_svn/ex_rpag_google.php But I have other problems with that one: My mapserver doesn't continue object descriptions in tiles that end in other tiles. I know this can be fixed with "tilecache" or tools like that, but this one seems to be a bit too complex for that I just want a simple WMS displayed in OL the right way. Do you want me to add these new links to the Bug report too? I will for sure keep them online until it is fixed (I saw milestone is 2.5, gonna take a while though?). Thanks, Lucas -----Urspr?ngliche Nachricht----- Von: Christopher Schmidt [mailto:crschmidt@metacarta.com] Gesendet: Donnerstag, 19. Juli 2007 15:07 An: Pfirter Lukas Cc: Users@openlayers.org Betreff: Re: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut On Wed, Jul 18, 2007 at 11:05:35AM +0200, Pfirter Lukas wrote: > Hi Benoit, thanks for your quick answer! > Unfortunately, putting the WMS layer above the Google-Layers in the code (http://map.webser125.lookass.ch/openlayers/ex_rpag_google_test.php) doesn't change anything, WMS still hides partially. > I've seen that I just have to move the map a slightly little bit after changing the zoom to make everything visible like should be... Isn't there like a function that will move the map 1 px everytime you change zoom? Or another workaround for this? Is it a bug actually? There is definitely a bug here. The problem is that the bounding box requested for the tile is not actually in the right place -- it's off by about .02 degrees, it looks like, which is a fair distance. Could you try upgrading to the latest svn code -- svn co http://svn.openlayers.org/trunk/openlayers/ will get the code for you -- and see if it still happens? It looks like you're currently running against 2.4-RC2, and although I'm not really hopeful that this change will fix the problem, I'm hopeful that it will at least elmiinate that as part of it. Another question -- did you see this with tiled layers as well? I think the answer is yes, but I can't remember. Thanks in advance for trying to help us dig into it. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jul 20 07:56:02 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut In-Reply-To: <929074CD8C635346B3FFFEFACDE01B45019B2161@exrpmu1.ingnet.local> References: <929074CD8C635346B3FFFEFACDE01B45019B2161@exrpmu1.ingnet.local> Message-ID: <20070720115602.GA17132@metacarta.com> On Fri, Jul 20, 2007 at 01:37:51PM +0200, Pfirter Lukas wrote: > Hi Chris, and thanks for the help. > > I downloaded the latest svn version (I think it worked, I don't have SVN, did it with "wget -r"). > http://map.webser125.lookass.ch/openlayers_svn/ex_rpag_google_untiled.php > Copied the file that includes OL in there and still the same thing happens. > > As you see, this does only happens with OpenLayers.Layer.WMS.Untiled. Without "Untiled", it works: > http://map.webser125.lookass.ch/openlayers_svn/ex_rpag_google.php Thanks. That's definitely informative. If you could add that to the bug description, I'd appreciate it. -- Chris > But I have other problems with that one: My mapserver doesn't continue object descriptions in tiles that end in other tiles. I know this can be fixed with "tilecache" or tools like that, but this one seems to be a bit too complex for that I just want a simple WMS displayed in OL the right way. > > Do you want me to add these new links to the Bug report too? I will for sure keep them online until it is fixed (I saw milestone is 2.5, gonna take a while though?). > > Thanks, > Lucas > > > > > -----Urspr?ngliche Nachricht----- > Von: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Gesendet: Donnerstag, 19. Juli 2007 15:07 > An: Pfirter Lukas > Cc: Users@openlayers.org > Betreff: Re: [OpenLayers-Users] WMS in OpenLayers: Objects get Cut > > On Wed, Jul 18, 2007 at 11:05:35AM +0200, Pfirter Lukas wrote: > > Hi Benoit, thanks for your quick answer! > > Unfortunately, putting the WMS layer above the Google-Layers in the code (http://map.webser125.lookass.ch/openlayers/ex_rpag_google_test.php) doesn't change anything, WMS still hides partially. > > I've seen that I just have to move the map a slightly little bit after changing the zoom to make everything visible like should be... Isn't there like a function that will move the map 1 px everytime you change zoom? Or another workaround for this? Is it a bug actually? > > There is definitely a bug here. The problem is that the bounding box requested for the tile is not actually in the right place -- it's off by about .02 degrees, it looks like, which is a fair distance. > > Could you try upgrading to the latest svn code -- > > svn co http://svn.openlayers.org/trunk/openlayers/ > > will get the code for you -- and see if it still happens? It looks like you're currently running against 2.4-RC2, and although I'm not really hopeful that this change will fix the problem, I'm hopeful that it will at least elmiinate that as part of it. > > Another question -- did you see this with tiled layers as well? I think the answer is yes, but I can't remember. > > Thanks in advance for trying to help us dig into it. > > Regards, > -- > Christopher Schmidt > MetaCarta > -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jul 20 07:56:35 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <11704487.post@talk.nabble.com> References: <11649812.post@talk.nabble.com> <20070717134538.GA15579@metacarta.com> <11650163.post@talk.nabble.com> <20070719125332.GB12852@metacarta.com> <11704487.post@talk.nabble.com> Message-ID: <20070720115635.GB17132@metacarta.com> On Fri, Jul 20, 2007 at 01:50:21AM -0700, Simo D wrote: > > Hi, > I found wich is the problem. > The parser can't parse the tags. > If I remove theese tags from the code it works fine. Thanks. We'll put that into the bug report. Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jul 20 08:04:10 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] javascript lessons / learning In-Reply-To: <46A06786.6060905@duif.net> References: <46A06786.6060905@duif.net> Message-ID: <20070720120410.GF17132@metacarta.com> On Fri, Jul 20, 2007 at 09:43:02AM +0200, Richard Duivenvoorde wrote: > - wouldn't it be nice to have something like > http://blog.mootools.net/2007/6/5/help-i-dont-know-javascript in the > openlayers (users) wiki? I'm assuming you mean 'linked from', rather than reproducing the work that has already been done there. Where would you like to see it linked from? I do think that a beginning introduction to OpenLayers for non-JS people would be great. I look forward to seeing it :) Regards, -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Fri Jul 20 08:48:53 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] limit map to maxExtent? Message-ID: <56407c947c946b44217ddefb0c29959d@145.50.39.11> Hi list, is there a way to limit the map to its maxExtent? Right now I can pan outside of the maxExtent. I tried adding a check to setCenter in Map.js: .. var bounds = this.getExtent(); if (!this.maxExtent.containsBounds(bounds)) { return false; } but that does not seem to do the job. Any help appreciated. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From eisberg at gmail.com Fri Jul 20 08:58:37 2007 From: eisberg at gmail.com (Dmitri Mizerkin) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <46A09CCA.7060508@ec.gc.ca> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <1184910365.25986.32.camel@wardrobe.dhs.org> <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> <46A09CCA.7060508@ec.gc.ca> Message-ID: <54584fb80707200558i15347286r5bbcce5a15b76d67@mail.gmail.com> Mi Marc, so you have to request feature from the server, not feature info. A click event on a map returns the values for x and y in the view port. You should make a box of those adding and substracting a custom tolerance value. After you've done so you got 4 values: minx = x - tolerance, miny = y - tolerance, maxx = x + tolerance, maxy = y + tolerance. These can be converted to latitude-longitude values using OpenLayers ( map.getLonLatFromViewPortPx function). After all of these actions you get your BBOX so you can send a request to the geoserver like this: http://your_host/geoserver/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=your_layer_names&BBOX=your_bbox&MAXFEATURES=10 That's the only workaround I know. Cheers, Dmitri 2007/7/20, Marc Desharnais : > > Hi all, > > I'm using geoserver so I guess your solution won't work. Anyone has an > idea about setting a tolerance level in geoserver? > Or anything that would make it easier to click on a point of a map with > geoserver. > > > Thanks, > > Marc > > > Dmitri Mizerkin wrote: > > Hi Bill, > > > > that's the right way to do it. What I meant is setting the tolerance > > via URL, in your case it would be sth like > > > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > > < > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > > > > (I don't know if the underscores in your layer name won't affect the > > functionality so I'm assuming that it is the first layer in the > > mapfile and using the index of it). More information can be found on > > http://mapserver.gis.umn.edu/docs/reference/cgi/controls in the very > > last chapter "Changing map file parameters via a form or a URL ". > > > > Hopefully it helps Marc with his issue. > > > > Regards, > > Dmitri > > > > 2007/7/20, Bill Woodall > >: > > > > Hi All > > > > What has worked for me in using TOLERANCE is to put it into the > > mapfile > > ( if you are using MapServer) like ; > > > > LAYER > > NAME Scrub_and_Chaparral > > TEMPLATE blank > > TOLERANCE 1 > > TOLERANCEUNITS feet > > METADATA > > "wms_title" "Scrub_and_Chaparral" > > "wms_include_items" "CATEGORY,LEGEND,SOURCE" > > END > > TYPE POLYGON > > STATUS ON > > DATA Scrub_and_Chaparral > > > > ......Bill, > > > > On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > > > Hi Marc, > > > > > > in a WMS/WFS service request the attribute you are looking for is > > > called TOLERANCE. I think this should do it when set as a > > parameter in > > > getFullRequestString function (see user recipies: > > > http://trac.openlayers.org/wiki/GetFeatureInfo). > > > > > > Hopefully it helps you out. > > > > > > Cheers, > > > Dmitri > > > > > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca > > >: > > > Hi all, > > > > > > I search for an attribute to set to make it easier to > > click on > > > points to > > > get some info about them. > > > I tried some things like RADIUS or REDIUS (saw that on a > > page > > > on > > > internet) but nothing works. > > > > > > I just want it to be easier to click on the point if it's > > > possible, a > > > couple of pixels more. > > > > > > > > > Thank in advance, > > > > > > Marc > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > http://openlayers.org/mailman/listinfo/users > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > http://openlayers.org/mailman/listinfo/users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070720/3abf4a1a/attachment.html From crschmidt at metacarta.com Fri Jul 20 09:13:37 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] limit map to maxExtent? In-Reply-To: <56407c947c946b44217ddefb0c29959d@145.50.39.11> References: <56407c947c946b44217ddefb0c29959d@145.50.39.11> Message-ID: <20070720131337.GA17377@metacarta.com> On Fri, Jul 20, 2007 at 02:48:53PM +0200, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > is there a way to limit the map to its maxExtent? Right now I can pan > outside of the maxExtent. > > I tried adding a check to setCenter in Map.js: > > .. > var bounds = this.getExtent(); > if (!this.maxExtent.containsBounds(bounds)) > { > return false; > } Sounds like you want (from http://trac.openlayers.org/ticket/340): Interpretation: loose Context: map browsing – a base layer's resolutions have precedence over maxExtent, but maxExtent is respected where possible. If the requested map extent falls outside maxExtent in any direction, the returned extent is adjusted by the difference. If the requested map extent is completely outside the maxExtent in any dimension, the returned extent is centered on maxExtent. I will follow up on the dev list, and see what we need to do to make this happen. I've punted on it for far too long, and it's time to stop. Regards, -- Christopher Schmidt MetaCarta From marc.desharnais at ec.gc.ca Fri Jul 20 11:21:14 2007 From: marc.desharnais at ec.gc.ca (Marc Desharnais) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo In-Reply-To: <54584fb80707200558i15347286r5bbcce5a15b76d67@mail.gmail.com> References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <1184910365.25986.32.camel@wardrobe.dhs.org> <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> <46A09CCA.7060508@ec.gc.ca> <54584fb80707200558i15347286r5bbcce5a15b76d67@mail.gmail.com> Message-ID: <46A0D2EA.8060608@ec.gc.ca> Hi all, For the record, I asked the geoserver team and it seems that no such options exists for now. The problem is that for now they do a getinfo on the coordonates of the geometry (a point in my case) instead of the representation (likely a circle for me). The representation is larger than the geometry so you get the feeling you can click anywhere in the cercle to get info. By reality is really different ;) This issue is opened in their bug base so I guess it will be fixed in the next versions. Regards, Marc Dmitri Mizerkin wrote: > Mi Marc, > > so you have to request feature from the server, not feature info. > > A click event on a map returns the values for x and y in the view > port. You should make a box of those adding and substracting a custom > tolerance value. After you've done so you got 4 values: minx = x - > tolerance, miny = y - tolerance, maxx = x + tolerance, maxy = y + > tolerance. These can be converted to latitude-longitude values using > OpenLayers ( map.getLonLatFromViewPortPx function). After all of these > actions you get your BBOX so you can send a request to the geoserver > like this: > http://your_host/geoserver/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=your_layer_names&BBOX=your_bbox&MAXFEATURES=10 > > > That's the only workaround I know. > > Cheers, > Dmitri > > 2007/7/20, Marc Desharnais >: > > Hi all, > > I'm using geoserver so I guess your solution won't work. Anyone has an > idea about setting a tolerance level in geoserver? > Or anything that would make it easier to click on a point of a map > with > geoserver. > > > Thanks, > > Marc > > > Dmitri Mizerkin wrote: > > Hi Bill, > > > > that's the right way to do it. What I meant is setting the tolerance > > via URL, in your case it would be sth like > > > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > > > < > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > > > > (I don't know if the underscores in your layer name won't affect the > > functionality so I'm assuming that it is the first layer in the > > mapfile and using the index of it). More information can be found on > > http://mapserver.gis.umn.edu/docs/reference/cgi/controls in the > very > > last chapter "Changing map file parameters via a form or a URL ". > > > > Hopefully it helps Marc with his issue. > > > > Regards, > > Dmitri > > > > 2007/7/20, Bill Woodall < bwoodall@bwoodall.org > > > >>: > > > > Hi All > > > > What has worked for me in using TOLERANCE is to put it into the > > mapfile > > ( if you are using MapServer) like ; > > > > LAYER > > NAME Scrub_and_Chaparral > > TEMPLATE blank > > TOLERANCE 1 > > TOLERANCEUNITS feet > > METADATA > > "wms_title" "Scrub_and_Chaparral" > > "wms_include_items" "CATEGORY,LEGEND,SOURCE" > > END > > TYPE POLYGON > > STATUS ON > > DATA Scrub_and_Chaparral > > > > ......Bill, > > > > On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > > > Hi Marc, > > > > > > in a WMS/WFS service request the attribute you are looking > for is > > > called TOLERANCE. I think this should do it when set as a > > parameter in > > > getFullRequestString function (see user recipies: > > > http://trac.openlayers.org/wiki/GetFeatureInfo). > > > > > > Hopefully it helps you out. > > > > > > Cheers, > > > Dmitri > > > > > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca > > > >>: > > > Hi all, > > > > > > I search for an attribute to set to make it easier to > > click on > > > points to > > > get some info about them. > > > I tried some things like RADIUS or REDIUS (saw > that on a > > page > > > on > > > internet) but nothing works. > > > > > > I just want it to be easier to click on the point > if it's > > > possible, a > > > couple of pixels more. > > > > > > > > > Thank in advance, > > > > > > Marc > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > > > http://openlayers.org/mailman/listinfo/users > > > _______________________________________________ > > > Users mailing list > > > Users@openlayers.org > > > > > http://openlayers.org/mailman/listinfo/users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070720/a978ee4f/attachment.html From j.cook at oxfordarch.co.uk Fri Jul 20 11:52:50 2007 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <19719540.01184941998565.JavaMail.root@mail.thehumanjourney.net> Message-ID: <3061499.291184946770870.JavaMail.root@mail.thehumanjourney.net> Hi All, I have an openlayers site at http://mapdata.thehumanjourney.net, and I want to ensure that it's as optimised as possible because it's quite slow to load at the moment. I would like to ask for help from the openlayers community as to possible ways to improve the performance of the map. In return you'll get lots of good karma, mention in our code and on our blogs. Not much, I know, but it's all I can offer... My base data is served from an indexed postgresql/postgis database (there are a couple of thousand points in it). I know that I can't use tilecache with either the Virtual Earth or Google Earth base layer, so that's out of the question unless someone can point me in the direction of a base layer that does something similar to what I currently have. I have tried both mapserver and geoserver to serve the wms, and for the moment am using mapserver because it seems a little quicker. Any pointers that people can give me on tuning the performance (even if it's just to tell me to go and see the mapserver/geoserver folks) would be extremely gratefully received! Thanks Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 541000 http://thehumanjourney.net ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://openarchaeology.net/iso26300 for more information. From carsella11 at msn.com Fri Jul 20 22:56:27 2007 From: carsella11 at msn.com (Mike Carsella) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Hard to click on points for GetFeatureInfo References: <469FA35C.2000406@ec.gc.ca> <54584fb80707191108r72dbf463rd8c16d1440f78e9c@mail.gmail.com> <1184910365.25986.32.camel@wardrobe.dhs.org> <54584fb80707192333y960cd2ax3be0d84eae31afe5@mail.gmail.com> <46A09CCA.7060508@ec.gc.ca><54584fb80707200558i15347286r5bbcce5a15b76d67@mail.gmail.com> <46A0D2EA.8060608@ec.gc.ca> Message-ID: All, I have the same problem with getfeatureinfo on line data using MapGuide Open Source WMS and OpenLayers. I think it's a bug in MapGuide. Polygon queries work OK. ----- Original Message ----- From: Marc Desharnais To: users@openlayers.org Sent: Friday, July 20, 2007 9:21 AM Subject: Re: [OpenLayers-Users] Hard to click on points for GetFeatureInfo Hi all, For the record, I asked the geoserver team and it seems that no such options exists for now. The problem is that for now they do a getinfo on the coordonates of the geometry (a point in my case) instead of the representation (likely a circle for me). The representation is larger than the geometry so you get the feeling you can click anywhere in the cercle to get info. By reality is really different ;) This issue is opened in their bug base so I guess it will be fixed in the next versions. Regards, Marc Dmitri Mizerkin wrote: Mi Marc, so you have to request feature from the server, not feature info. A click event on a map returns the values for x and y in the view port. You should make a box of those adding and substracting a custom tolerance value. After you've done so you got 4 values: minx = x - tolerance, miny = y - tolerance, maxx = x + tolerance, maxy = y + tolerance. These can be converted to latitude-longitude values using OpenLayers ( map.getLonLatFromViewPortPx function). After all of these actions you get your BBOX so you can send a request to the geoserver like this: http://your_host/geoserver/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=your_layer_names&BBOX=your_bbox&MAXFEATURES=10 That's the only workaround I know. Cheers, Dmitri 2007/7/20, Marc Desharnais : Hi all, I'm using geoserver so I guess your solution won't work. Anyone has an idea about setting a tolerance level in geoserver? Or anything that would make it easier to click on a point of a map with geoserver. Thanks, Marc Dmitri Mizerkin wrote: > Hi Bill, > > that's the right way to do it. What I meant is setting the tolerance > via URL, in your case it would be sth like > http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet > < http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet> > (I don't know if the underscores in your layer name won't affect the > functionality so I'm assuming that it is the first layer in the > mapfile and using the index of it). More information can be found on > http://mapserver.gis.umn.edu/docs/reference/cgi/controls in the very > last chapter "Changing map file parameters via a form or a URL ". > > Hopefully it helps Marc with his issue. > > Regards, > Dmitri > > 2007/7/20, Bill Woodall < bwoodall@bwoodall.org > >: > > Hi All > > What has worked for me in using TOLERANCE is to put it into the > mapfile > ( if you are using MapServer) like ; > > LAYER > NAME Scrub_and_Chaparral > TEMPLATE blank > TOLERANCE 1 > TOLERANCEUNITS feet > METADATA > "wms_title" "Scrub_and_Chaparral" > "wms_include_items" "CATEGORY,LEGEND,SOURCE" > END > TYPE POLYGON > STATUS ON > DATA Scrub_and_Chaparral > > ......Bill, > > On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote: > > Hi Marc, > > > > in a WMS/WFS service request the attribute you are looking for is > > called TOLERANCE. I think this should do it when set as a > parameter in > > getFullRequestString function (see user recipies: > > http://trac.openlayers.org/wiki/GetFeatureInfo). > > > > Hopefully it helps you out. > > > > Cheers, > > Dmitri > > > > 2007/7/19, Marc Desharnais < marc.desharnais@ec.gc.ca > >: > > Hi all, > > > > I search for an attribute to set to make it easier to > click on > > points to > > get some info about them. > > I tried some things like RADIUS or REDIUS (saw that on a > page > > on > > internet) but nothing works. > > > > I just want it to be easier to click on the point if it's > > possible, a > > couple of pixels more. > > > > > > Thank in advance, > > > > Marc > > _______________________________________________ > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070720/0479f9ef/attachment.html From crschmidt at metacarta.com Sun Jul 22 09:55:58 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] JS Developers: Help with OL 2.5 Message-ID: <20070722135558.GB27660@metacarta.com> Are you experienced with Javascript? Do you want to help contributed to the development of OpenLayers? Got a bug you wish was fixed, but have no idea how to get started? Want to help with the development of OpenLayers, but don't know how you can help? OpenLayers is rapidly heading towards version 2.5. If you'd like to help with the development of this release, we'd love to have you. To get started: 1. Join http://openlayers.org/mailman/listinfo/dev 2. Read http://openlayers.org/pipermail/dev/2007-July/001072.html 3. ??? 4. Profit! ... er, ask questions on anything you don't understand :) I'd love to help more developers into the fold to assist with this release. If you're interested, let us know! Regards, -- Christopher Schmidt MetaCarta From eric.c2c at gmail.com Sun Jul 22 18:09:49 2007 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <3061499.291184946770870.JavaMail.root@mail.thehumanjourney.net> References: <19719540.01184941998565.JavaMail.root@mail.thehumanjourney.net> <3061499.291184946770870.JavaMail.root@mail.thehumanjourney.net> Message-ID: <5ec103de0707221509t667d7c72gea093e8a5de0a1b0@mail.gmail.com> On 7/20/07, Joanne Cook wrote: > Hi All, > > I have an openlayers site at http://mapdata.thehumanjourney.net, and I want to ensure that it's as optimised as possible because it's quite slow to load at the moment. I would like to ask for help from the openlayers community as to possible ways to improve the performance of the map. > > In return you'll get lots of good karma, mention in our code and on our blogs. Not much, I know, but it's all I can offer... > > My base data is served from an indexed postgresql/postgis database (there are a couple of thousand points in it). > > I know that I can't use tilecache with either the Virtual Earth or Google Earth base layer, so that's out of the question unless someone can point me in the direction of a base layer that does something similar to what I currently have. > > I have tried both mapserver and geoserver to serve the wms, and for the moment am using mapserver because it seems a little quicker. > > Any pointers that people can give me on tuning the performance (even if it's just to tell me to go and see the mapserver/geoserver folks) would be extremely gratefully received! > > Thanks Hi One thing: you don't seem to be using the compressed OpenLayers library. I'd recommend looking into directory "build" and learn how to build a compressed and specialized library. -- Eric From j.cook at oxfordarch.co.uk Mon Jul 23 06:28:54 2007 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <5ec103de0707221509t667d7c72gea093e8a5de0a1b0@mail.gmail.com> Message-ID: <13390588.1961185186534249.JavaMail.root@mail.thehumanjourney.net> Hi Eric, Thanks for bringing the compressed version to my attention. I've ran ./build_py (the readme file talks about build.sh so I assume it's a little out of date), and have a new OpenLayers.js, but when I try and use it the graphics on the map seem to have got lost. It seems to be looking for the img folder in the root directory of my web server rather than in OpenLayers/img. Now, I could copy the img folder to where it's expecting to find it, but is there a simple code fix to address this issue? (It does seem to be quicker though, which is fantastic!) Thanks again Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 541000 http://thehumanjourney.net ----- Original Message ----- From: "Eric Lemoine" To: "Joanne Cook" Cc: users@openlayers.org Sent: 22 July 2007 23:09:49 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] Tuning Open Layers Hi One thing: you don't seem to be using the compressed OpenLayers library. I'd recommend looking into directory "build" and learn how to build a compressed and specialized library. -- Eric This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://openarchaeology.net/iso26300 for more information. From crschmidt at metacarta.com Mon Jul 23 08:42:33 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <13390588.1961185186534249.JavaMail.root@mail.thehumanjourney.net> References: <5ec103de0707221509t667d7c72gea093e8a5de0a1b0@mail.gmail.com> <13390588.1961185186534249.JavaMail.root@mail.thehumanjourney.net> Message-ID: <20070723124233.GA638@metacarta.com> On Mon, Jul 23, 2007 at 11:28:54AM +0100, Joanne Cook wrote: > Hi Eric, > > Thanks for bringing the compressed version to my attention. I've ran ./build_py (the readme file talks about build.sh so I assume it's a little out of date), and have a new OpenLayers.js, but when I try and use it the graphics on the map seem to have got lost. It seems to be looking for the img folder in the root directory of my web server rather than in OpenLayers/img. > > Now, I could copy the img folder to where it's expecting to find it, but is there a simple code fix to address this issue? The single file version is designed to live at a directory level *above* lib/ -- so you should move it from build/ to '..' from there. Also, if you need vector support, you should do './build.py full', not just ./build.py. Regards, -- Christopher Schmidt MetaCarta From j.cook at oxfordarch.co.uk Mon Jul 23 09:00:09 2007 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <20070723124233.GA638@metacarta.com> Message-ID: <24165820.2631185195609468.JavaMail.root@mail.thehumanjourney.net> Does it also assume that the page you are calling it from is in the directory above lib? Mine is not, and it doesn't work. I have copied the img folder into the same directory as the page I am calling from (the root directory of my web server) and that seems to work. Can I remove some of the stuff from the openlayers directories to save space now? Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 541000 http://thehumanjourney.net ----- Original Message ----- From: "Christopher Schmidt" To: "Joanne Cook" Cc: users@openlayers.org Sent: 23 July 2007 13:42:33 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] Tuning Open Layers On Mon, Jul 23, 2007 at 11:28:54AM +0100, Joanne Cook wrote: > Hi Eric, > > Thanks for bringing the compressed version to my attention. I've ran ./build_py (the readme file talks about build.sh so I assume it's a little out of date), and have a new OpenLayers.js, but when I try and use it the graphics on the map seem to have got lost. It seems to be looking for the img folder in the root directory of my web server rather than in OpenLayers/img. > > Now, I could copy the img folder to where it's expecting to find it, but is there a simple code fix to address this issue? The single file version is designed to live at a directory level *above* lib/ -- so you should move it from build/ to '..' from there. Also, if you need vector support, you should do './build.py full', not just ./build.py. Regards, -- Christopher Schmidt MetaCarta This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://openarchaeology.net/iso26300 for more information. From crschmidt at metacarta.com Mon Jul 23 09:16:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <24165820.2631185195609468.JavaMail.root@mail.thehumanjourney.net> References: <20070723124233.GA638@metacarta.com> <24165820.2631185195609468.JavaMail.root@mail.thehumanjourney.net> Message-ID: <20070723131628.GA728@metacarta.com> On Mon, Jul 23, 2007 at 02:00:09PM +0100, Joanne Cook wrote: > Does it also assume that the page you are calling it from is in the directory above lib? No, it shouldn't. If it does, that's a bug. I'd like to see it filed if you can make an HTML page available on the web which demonstrates it. > Mine is not, and it doesn't work. I have copied the img folder into the same directory as the page I am calling from (the root directory of my web server) and that seems to work. > > Can I remove some of the stuff from the openlayers directories to save space now? With a single file build, only the img/, theme/ and OpenLayers.js files matter -- everything else (art/, build/, doc/, examples/, tests/, tools/) can be deleted. You might want to investigate HTTP Compression, especially if the images you are serving are not jpgs: http://www.ibm.com/developerworks/web/library/wa-httpcomp/ via mod_gzip through apache. Regards, -- Christopher Schmidt MetaCarta From j.cook at oxfordarch.co.uk Mon Jul 23 09:25:48 2007 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <20070723131628.GA728@metacarta.com> Message-ID: <30914146.2751185197148571.JavaMail.root@mail.thehumanjourney.net> http://mapdata.thehumanjourney.net/index_new_comp.html The structure is as follows: /var/www/index_new_comp.html /var/www/OpenLayers-2.3/ /var/www/OpenLayers-2.3/OpenLayers_comp.js (to avoid confusion with the uncompressed version) /var/www/OpenLayers-2.3/lib/ /var/www/OpenLayers-2.3/img/ etc If I copy img into /var/www then it works Is that enough of a test for you? Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 541000 http://thehumanjourney.net ----- Original Message ----- From: "Christopher Schmidt" To: "Joanne Cook" Cc: users@openlayers.org Sent: 23 July 2007 14:16:28 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] Tuning Open Layers On Mon, Jul 23, 2007 at 02:00:09PM +0100, Joanne Cook wrote: > Does it also assume that the page you are calling it from is in the directory above lib? No, it shouldn't. If it does, that's a bug. I'd like to see it filed if you can make an HTML page available on the web which demonstrates it. > Mine is not, and it doesn't work. I have copied the img folder into the same directory as the page I am calling from (the root directory of my web server) and that seems to work. > > Can I remove some of the stuff from the openlayers directories to save space now? With a single file build, only the img/, theme/ and OpenLayers.js files matter -- everything else (art/, build/, doc/, examples/, tests/, tools/) can be deleted. You might want to investigate HTTP Compression, especially if the images you are serving are not jpgs: http://www.ibm.com/developerworks/web/library/wa-httpcomp/ via mod_gzip through apache. Regards, -- Christopher Schmidt MetaCarta This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://openarchaeology.net/iso26300 for more information. From ihaddad at wtwlevant.com Mon Jul 23 10:31:22 2007 From: ihaddad at wtwlevant.com (ihaddad@wtwlevant.com) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OpenLayers.Control.DrawFeature on IE Message-ID: <56961.81.169.147.22.1185201082.squirrel@webmail.wtwlevant.com> hello everyone , i am trying to draw a rectangle using this code below. it work fine on firefox, but on IE it doesn't draw rectangle, it draws it either as a vertical or horizontal line or sometimes after amny tries as a rectangle. any help would be greatly appreciated. //code in the html page //--------------------------------------------- drawingLayer = new OpenLayers.Layer.Vector("Drawing"); drawingLayer.setVisibility(false,false); drawingLayer.onFeatureInsert = drawgeofence; if(drawingcontrol==undefined) { drawingcontrol = new OpenLayers.Control.DrawFeature(drawingLayer,OpenLayers.Handler.Rectangle); map.addControl(drawingcontrol); } map.addLayer(drawingLayer); drawingcontrol.activate(); --------------------------------------------------------------------------------- ///here's the rectangle calss //--------------------------------------- OpenLayers.Handler.Rectangle = OpenLayers.Class.create(); OpenLayers.Handler.Rectangle.prototype = OpenLayers.Class.inherit(OpenLayers.Handler.Polygon, { /** * Handle mouse move. Adjust the geometry and redraw. * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mousemove: function(evt) { if (this.drawing) { var lonlat = this.map.getLonLatFromPixel(evt.xy); this.point.x = lonlat.lon; this.point.y = lonlat.lat; this.line.components[1].x = lonlat.lon; this.line.components[2] = this.point.clone(); this.line.components[3].y = lonlat.lat; this.drawGeometry(); } return false; }, /** * Handle mouse up. Finalize the geometry. * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mouseup: function (evt) { if (this.drawing) { this.drawing = false; this.finalize(); } return false; }, /** * Handle mouse down. Create the geometry. * Return determines whether to propagate the event on the map. * * @param {Event} evt * @type Boolean */ mousedown: function(evt) { // ignore double-clicks if (this.lastDown && this.lastDown.equals(evt.xy)) { return false; } this.lastDown = evt.xy; this.drawing = true; this.createGeometry(); var lonlat = this.control.map.getLonLatFromPixel(evt.xy); this.point.x = lonlat.lon; this.point.y = lonlat.lat; // add the 4 points this.line.addComponent(this.point.clone(), -1); this.line.addComponent(this.point.clone(), -1); this.line.addComponent(this.point.clone(), -1); return false; }, /** @final @type String */ CLASS_NAME: "OpenLayers.Handler.Rectangle" }); From crschmidt at metacarta.com Mon Jul 23 10:46:46 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <30914146.2751185197148571.JavaMail.root@mail.thehumanjourney.net> References: <20070723131628.GA728@metacarta.com> <30914146.2751185197148571.JavaMail.root@mail.thehumanjourney.net> Message-ID: <20070723144646.GB1003@metacarta.com> On Mon, Jul 23, 2007 at 02:25:48PM +0100, Joanne Cook wrote: > http://mapdata.thehumanjourney.net/index_new_comp.html > > The structure is as follows: > /var/www/index_new_comp.html > /var/www/OpenLayers-2.3/ > /var/www/OpenLayers-2.3/OpenLayers_comp.js (to avoid confusion with the uncompressed version) > /var/www/OpenLayers-2.3/lib/ > /var/www/OpenLayers-2.3/img/ > etc Ah. The bit that wasn't mentioned was that you changed the name from OpenLayers.js to OpenLayers_comp.js. That is not supported, and I expect that not to work. If it's important to you to do that, then I think we're pretty close to having it be possible, but not quite. In general, we just keep the OpenLayers.js name when making our compressed versions -- if it's in lib/, it's uncompressed, and if it's not, it's compressed. Regards, -- Christopher Schmidt MetaCarta From j.cook at oxfordarch.co.uk Mon Jul 23 11:03:43 2007 From: j.cook at oxfordarch.co.uk (Joanne Cook) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Tuning Open Layers In-Reply-To: <20070723144646.GB1003@metacarta.com> Message-ID: <14505228.3291185203023544.JavaMail.root@mail.thehumanjourney.net> No, it's not important- I was just being overcautious (and inexperienced)! It works fine now I've renamed it Thanks! Jo ----------------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology (North) 01524 541000 http://thehumanjourney.net ----- Original Message ----- From: "Christopher Schmidt" To: "Joanne Cook" Cc: users@openlayers.org Sent: 23 July 2007 15:46:46 o'clock (GMT) Europe/London Subject: Re: [OpenLayers-Users] Tuning Open Layers On Mon, Jul 23, 2007 at 02:25:48PM +0100, Joanne Cook wrote: > http://mapdata.thehumanjourney.net/index_new_comp.html > > The structure is as follows: > /var/www/index_new_comp.html > /var/www/OpenLayers-2.3/ > /var/www/OpenLayers-2.3/OpenLayers_comp.js (to avoid confusion with the uncompressed version) > /var/www/OpenLayers-2.3/lib/ > /var/www/OpenLayers-2.3/img/ > etc Ah. The bit that wasn't mentioned was that you changed the name from OpenLayers.js to OpenLayers_comp.js. That is not supported, and I expect that not to work. If it's important to you to do that, then I think we're pretty close to having it be possible, but not quite. In general, we just keep the OpenLayers.js name when making our compressed versions -- if it's in lib/, it's uncompressed, and if it's not, it's compressed. Regards, -- Christopher Schmidt MetaCarta This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com ------ Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://openarchaeology.net/iso26300 for more information. From damien.devismes at hotmail.fr Mon Jul 23 11:52:17 2007 From: damien.devismes at hotmail.fr (DamienD) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] New fonction.. a "Go to!" button... But how can I do this? Message-ID: <11747253.post@talk.nabble.com> I'm a beginner to javascript, so I ask you to help me to realize this idea... I'm trying to realize an action wich allow the user to put the coordinates in 2 fields (for latitude & longitude in wgs84, decimal degree) and with a button center and zoom the Openlayers' map to this point. Another thing, i want to center the map without change the page, in the same way as the geonames tools (Chercher une commune :) in http://www.opengeoportail.fr the excellent opengeoportail so in my html page, i 've written this:
latitude : longitude :
and before in a script..., i was trying to write a Javascript fonction with something like this within... function viewonmap() { ... .... "javascript:changezoom(' + lat + ',' + long + ',13);"... ... } But really, i'm a beginner and i don't know how to do after, so I need your help. Thanks to all. -- View this message in context: http://www.nabble.com/New-fonction..-a-%22Go-to%21%22-button...-But-how-can-I-do-this--tf4130747.html#a11747253 Sent from the OpenLayers Users mailing list archive at Nabble.com. From f.husson at brgm.fr Tue Jul 24 10:44:16 2007 From: f.husson at brgm.fr (Husson Florian) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] FeatureId after a wfs-t Insert ? References: <20070723131628.GA728@metacarta.com><30914146.2751185197148571.JavaMail.root@mail.thehumanjourney.net> <20070723144646.GB1003@metacarta.com> Message-ID: <9B3EB2ACEB474549921FEA4EEB68FEE346E41F@RES005.brgm.fr> Hi, I work with OpenLayers 2.4 + Geoserver + PostGIS. I have a problem when I do a wfs-t Insert request. When I draw a feature and then save it into my PostGIS Table (FID serial not null, THE_GEOM geometry), I receive a commit succes response, the feature is correctly saved into my database, but in OpenLayers when I display the featureId (fid) of this feature, fid = null. And the only solution which I found to retrieve the fid is to refresh the layer...and to display the fid after that. Have you an idea from where the problem can come ? Thanks, Florian. ********************************************************************************************** Pensez à l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) désigné(s) comme tel(s). En cas de réception par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifiée à l'émission, il convient néanmoins de s'assurer de l'absence de contamination à sa réception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. ********************************************************************************************** From noreply at geocartic.com Tue Jul 24 19:01:49 2007 From: noreply at geocartic.com (Tim Schaub) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] GetFeatureInfo requests never get answers In-Reply-To: <469F87B5.8070801@ec.gc.ca> References: <469E26E3.40400@ec.gc.ca> <469F6162.5080008@ec.gc.ca> <20070719132033.GE12939@metacarta.com> <469F87B5.8070801@ec.gc.ca> Message-ID: <46A684DD.4050600@geocartic.com> Hey Marc- Glad you figured this out. Guess I should have put the same, protocol, *same port*, and same host part in bold. Hope others searching stumble across this sooner. > Since you are making an asynchronous request for the GetFeatureInfo > results, you are subject to the same origin policies that browsers enforce. > > This means that your GetFeatureInfo request won't go anywhere unless it > is requested with the same protocol, from the same port, and on the same > host as the request that initiated your application (see [1]). > Marc Desharnais wrote: > Hi Christopher, > > Like you said, it turned out that the problem was a security issue. > To those who don't know (like me), you can't access a host with your > browser and make query on another. The point I was missing was that the > same machine with 2 different ports are considered to be 2 different > hosts. It's a simple explanation when you realize that. > > I learned too why the security exception in Firefox while I attempted to > make request (via Firebug) didn't show like I would have expect. > That's a thing that really bothered me at the first place because I > would have expected an clear error from the browser. > I have read that this kind of exception are treated silently in the > browser so it's normal I've seen nothing while I was debugging. > > Now everything is working well! > > Thank you for your supportt! :) > > Marc > > > Christopher Schmidt wrote: >> On Thu, Jul 19, 2007 at 01:04:34PM +0000, Marc Desharnais wrote: >> >>> Hi, >>> >>> I confirm that my geoserver is working fine. I exchanged some emails on >>> the geoserver mailing list and they suggested me to try the preview maps >>> given by geoserver. They now integer the getfeatureinfo functionality in >>> the default previews. >>> >>> So I tried there and everything worked fine. >>> >>> but, now, if I copy the html code entirely without any modification into >>> my webpage, I won't work. The map displays fine and everything. But it >>> hangs on the loading message and never get response. I used Firebug to >>> track the bug and I remarked that the request is never noticed in >>> firebug when I click on a point. The loadURL function is called but not >>> the setHTML. It makes me think that maybe it's a permission problem. >>> Since it semms to work from geoserver itself but not from apache (which >>> my web page is on). >>> >> >> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost >> >> Regards, >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From alperd.liste at gmail.com Wed Jul 25 05:44:17 2007 From: alperd.liste at gmail.com (=?ISO-8859-1?Q?Alper_Din=E7er?=) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Virtual Earth Hill Shade option Message-ID: Hi, I want to show the new feature of VE, which is Hill Shaded Road Map, but I didn't find how to add it. Is there anyone dealing with this before? Thanks. Alper -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070725/c28fa181/attachment.html From jachym.cepicky at gmail.com Wed Jul 25 08:13:40 2007 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap in non wgs84 map Message-ID: <1185365620.7812.10.camel@mellon> Hi, I would like to add OpenLayers.Control.OverviewMap() control to the map object, however, it works wrong. For example, one can take layer-opacity.html from the examples directory: function init(){ var options = { projection: "EPSG:26912", units: 'm', maxExtent: new OpenLayers.Bounds(455402, 4967657, 473295, 4984095), maxResolution: 'auto', maxZoomLevel: 8 }; map = new OpenLayers.Map('map', options); var drg = new OpenLayers.Layer.WMS("Topo Maps", "http://terraservice.net/ogcmap.ashx", {layers: "DRG"}); map.addLayers([drg]); map.addControl(new OpenLayers.Control.LayerSwitcher()); // vvvvvvvvvvvvvvvvvvvvv map.addControl(new OpenLayers.Control.OverviewMap()); // ^^^^^^^^^^^^^^^^^^^^^ map.setCenter(new OpenLayers.LonLat(464348.5,4975876), 1); } The OverviewMap is zoomed in the original map, instead of being overview for it. Any hint, how to initialize OpenLayers.Control.OverView properly? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070725/f140eb6d/attachment.bin From jdege at korterra.com Wed Jul 25 10:39:39 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] New INI in stage Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AA8@mrburns.KorOffice.local> There's a new adlshost.ini file in stage - changing the mapping URLs to point to Flanders From jdege at korterra.com Wed Jul 25 10:47:16 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] New INI in stage In-Reply-To: <6ae3fb590707250742t15934766v2d201589f6b73aa4@mail.gmail.com> References: <34E056CD4D475841B8C9ABCE956F92F6370AA8@mrburns.KorOffice.local> <6ae3fb590707250742t15934766v2d201589f6b73aa4@mail.gmail.com> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AA9@mrburns.KorOffice.local> Yes, sorry. This was supposed to go to an internal list, that used to be the one that address completion would give me, when I typed "OP" in the "To" field. (Before I added "openlayers user list" to my address book). I suppose there's no chance of renaming openlayers, so as to avoid this? Didn't think so ;) > -----Original Message----- > From: euzuro@gmail.com [mailto:euzuro@gmail.com] On Behalf Of > Erik Uzureau > Sent: Wednesday, July 25, 2007 9:43 AM > To: Jeff Dege > Subject: Re: [OpenLayers-Users] New INI in stage > > ? confused. > > (maybe this was supposed to go to another list?) > > > On 7/25/07, Jeff Dege wrote: > > There's a new adlshost.ini file in stage - changing the > mapping URLs to > > point to Flanders > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > From erik.uzureau at metacarta.com Wed Jul 25 12:02:02 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] animated zoom status? In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909D59@hermes.uai.int> References: <76758090F8686C47A44B6FF52514A1D307909D59@hermes.uai.int> Message-ID: <6ae3fb590707250902k46a2180dq62fbe8d5f28fcb11@mail.gmail.com> Sorry John, this got buried in the email pile. I believe that the latest version from emanuel is here: http://trac.openlayers.org/browser/sandbox/emanuel/animatedZooming ...though obviously trunk has changed quite a bit since that code was written, and if/when we do get to this, we may or may not want to just start over :-/ erik On 6/26/07, John Cole wrote: > Erik, > Quite understandable :-) I see lots of fixes every day, making me really > happy about the future of OL. I have lots of tasks I have to finish before > getting back to a few projects I want to get back to OL, so I can sympathize > with your schedule. > > If I wanted to play with the animated code, which branch should I pull > from, and is it close to the 2.4 branch? > > Thanks, > > John > > -----Original Message----- > From: euzuro@gmail.com [mailto:euzuro@gmail.com] On Behalf Of Erik Uzureau > Sent: Monday, June 25, 2007 6:15 PM > To: John Cole > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] animated zoom status? > > John, the status of the animated panning/zooming patches is very much > still in limbo. Depending on when the next release of OL gets put > together, it may or not make it into the 2.5 release. > > Those tickets are very high on the list. As far as sponsored > development time goes, however, there are a few other things that are > higher on the MC priority list. > > I wish I could give you a more concrete estimate, but I think the best > I can say is that expecting that animation code in trunk any earlier > than the fall is probably unrealistic. > > Erik > > On 6/22/07, John Cole wrote: > > > > > > > > > > Christopher, > > > > What is the status of #442; Animated Zooming? Is it in the trunk or > > another sandbox? I'd love to start putting this through it's paces... > > > > > > > > Thanks, > > > > > > > > John This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they are > > addressed. If you have received this email in error please notify the > > sender. This message contains confidential information and is intended > only > > for the individual named. If you are not the named addressee you should > not > > disseminate, distribute or copy this e-mail. > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > From tschaub at openplans.org Wed Jul 25 12:41:22 2007 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap in non wgs84 map In-Reply-To: <1185365620.7812.10.camel@mellon> References: <1185365620.7812.10.camel@mellon> Message-ID: <46A77D32.9090506@openplans.org> Hello- Jachym Cepicky wrote: > Hi, > > I would like to add OpenLayers.Control.OverviewMap() control to the map > object, however, it works wrong. For example, one can take > layer-opacity.html from the examples directory: > Please see the wiki page on the OverviewMap, specifically the section on custom projections[1]. You'll want to construct your overview map with some non-default options. Set the mapOptions property of the options object as in the example, and you should get what you want. Tim [1] http://trac.openlayers.org/wiki/Control/OverviewMap#Customprojectionsextentsetc. From jdege at korterra.com Wed Jul 25 14:51:05 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - bad coords? Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> I'm trying to add the OverviewMap control to a map built with KaMap layers. I'm using OL version 2.4. The example - examples\overviewmap.html - works perfectly. Mine doesn't work at all. When the OverviewMap control requests tiles from KaMap, the tiles are generated correctly - or at least they seem to. The directory structure looks fine, and the generated GIF files look fine. But the tiles that are actually being requested don't correspond to any of the tiles that were generated. The URL of the tile that was requested: http://localhost:8080/servicearealookup/tile.php?map=mississippi&g=all&i =gif&t=-768&l=-1536&s=19686393 Top is -768, left is -1536, scale is 19686393. In the KaMap cache, there is a directory for scale 19686393, and in that a subdirectory for group "all", and for layer "def". And in that, there is a subdirectory t-1200l-2400. In that, there are 36 GIF files, all of them blank except one, t-600l-1600.gif, which contains the image that should be being drawn in the overview map at this scale. (Zoomed out all the way.) Now I seem to remember having had a similar problem with KaMap on the main map, because the default tile size in OpenLayers was 256x256 and in KaMap was 200x200. Which I fixed by setting the tilesize option to the OpenLayers.Map constructor. So I passed a tilesize option to the OverviewMap constructor, and it made no difference. Has anyone had any experience with the OverviewMap on KaMap layers? From jdege at korterra.com Wed Jul 25 15:08:19 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - bad coords? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AAC@mrburns.KorOffice.local> On doing some websearching, I found changeset 3087, which looks like it might be a fix for the problem I'm seeing. But it looks like 3087 was included in 2.4, and I'm still having the problem. I just DLed the trunk, and with that, I still have the problem. > -----Original Message----- > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] On Behalf Of Jeff Dege > Sent: Wednesday, July 25, 2007 1:51 PM > To: users@openlayers.org > Subject: [OpenLayers-Users] OverviewMap - bad coords? > > I'm trying to add the OverviewMap control to a map built with KaMap > layers. > > I'm using OL version 2.4. > > The example - examples\overviewmap.html - works perfectly. > > Mine doesn't work at all. > > When the OverviewMap control requests tiles from KaMap, the tiles are > generated correctly - or at least they seem to. The > directory structure > looks fine, and the generated GIF files look fine. > > But the tiles that are actually being requested don't > correspond to any > of the tiles that were generated. > > The URL of the tile that was requested: > > http://localhost:8080/servicearealookup/tile.php?map=mississip > pi&g=all&i > =gif&t=-768&l=-1536&s=19686393 > > Top is -768, left is -1536, scale is 19686393. > > In the KaMap cache, there is a directory for scale 19686393, > and in that > a subdirectory for group "all", and for layer "def". > > And in that, there is a subdirectory t-1200l-2400. In that, there are > 36 GIF files, all of them blank except one, t-600l-1600.gif, which > contains the image that should be being drawn in the overview map at > this scale. (Zoomed out all the way.) > > Now I seem to remember having had a similar problem with KaMap on the > main map, because the default tile size in OpenLayers was > 256x256 and in > KaMap was 200x200. Which I fixed by setting the tilesize > option to the > OpenLayers.Map constructor. So I passed a tilesize option to the > OverviewMap constructor, and it made no difference. > > Has anyone had any experience with the OverviewMap on KaMap layers? > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From jdege at korterra.com Wed Jul 25 15:18:56 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - bad coords? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370AAC@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> <34E056CD4D475841B8C9ABCE956F92F6370AAC@mrburns.KorOffice.local> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AAD@mrburns.KorOffice.local> One more thing - looking at the properties for the tile image in the overviewmap control that isn't being found, it has dimensions of 256x256. Not the 200x200 I had specified. So I set the tilesize in both OpenLayers and in KaMap to 256x256, and now the OverviewMap seems to be working. > -----Original Message----- > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] On Behalf Of Jeff Dege > Sent: Wednesday, July 25, 2007 2:08 PM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - bad coords? > > On doing some websearching, I found changeset 3087, which > looks like it > might be a fix for the problem I'm seeing. But it looks like 3087 was > included in 2.4, and I'm still having the problem. > > I just DLed the trunk, and with that, I still have the problem. > > > -----Original Message----- > > From: users-bounces@openlayers.org > > [mailto:users-bounces@openlayers.org] On Behalf Of Jeff Dege > > Sent: Wednesday, July 25, 2007 1:51 PM > > To: users@openlayers.org > > Subject: [OpenLayers-Users] OverviewMap - bad coords? > > > > I'm trying to add the OverviewMap control to a map built with KaMap > > layers. > > > > I'm using OL version 2.4. > > > > The example - examples\overviewmap.html - works perfectly. > > > > Mine doesn't work at all. > > > > When the OverviewMap control requests tiles from KaMap, the > tiles are > > generated correctly - or at least they seem to. The > > directory structure > > looks fine, and the generated GIF files look fine. > > > > But the tiles that are actually being requested don't > > correspond to any > > of the tiles that were generated. > > > > The URL of the tile that was requested: > > > > http://localhost:8080/servicearealookup/tile.php?map=mississip > > pi&g=all&i > > =gif&t=-768&l=-1536&s=19686393 > > > > Top is -768, left is -1536, scale is 19686393. > > > > In the KaMap cache, there is a directory for scale 19686393, > > and in that > > a subdirectory for group "all", and for layer "def". > > > > And in that, there is a subdirectory t-1200l-2400. In > that, there are > > 36 GIF files, all of them blank except one, t-600l-1600.gif, which > > contains the image that should be being drawn in the overview map at > > this scale. (Zoomed out all the way.) > > > > Now I seem to remember having had a similar problem with > KaMap on the > > main map, because the default tile size in OpenLayers was > > 256x256 and in > > KaMap was 200x200. Which I fixed by setting the tilesize > > option to the > > OpenLayers.Map constructor. So I passed a tilesize option to the > > OverviewMap constructor, and it made no difference. > > > > Has anyone had any experience with the OverviewMap on KaMap layers? > > > > _______________________________________________ > > 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 tschaub at openplans.org Wed Jul 25 15:42:47 2007 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - bad coords? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> Message-ID: <46A7A7B7.9090508@openplans.org> Jeff Dege wrote: > Now I seem to remember having had a similar problem with KaMap on the > main map, because the default tile size in OpenLayers was 256x256 and in > KaMap was 200x200. Which I fixed by setting the tilesize option to the > OpenLayers.Map constructor. So I passed a tilesize option to the > OverviewMap constructor, and it made no difference. > Please see the wiki page on the OverviewMap, specifically the section on custom map options[1]. You'll want to construct your overview map with some non-default options. Set the mapOptions property of the options object as in the example, and you should get what you want. To quote from the wiki: The thing to keep in mind here is that the OverviewMap control is a control, not a map. This is an important distinction. The OverviewMap control *has* a map, but *it is not* a map itself. To set options on the control, use properties of the options object as you would with other controls. To set properties on the little map that the OverviewMap control controls, use the special mapOptions property of the options object. Tim [1] http://trac.openlayers.org/wiki/Control/OverviewMap#Custommapoptions-projectionsextentsetc. From crschmidt at metacarta.com Wed Jul 25 16:14:50 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] openlayers in jack dangermond's keynote Message-ID: <20070725201450.GA11228@metacarta.com> 16:11:14 < mpg> At JackD's keynote at GeoWeb this morning, he had OpenLayers on one of his slides -- one of the very few non-ESRI names to appear. 16:11:25 < mpg> (I laughed, I cried, I was deeply moved.) -- #osgeo, irc.freenode.net Regards, -- Christopher Schmidt MetaCarta From jdege at korterra.com Wed Jul 25 16:37:27 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - outside div? In-Reply-To: <46A7A7B7.9090508@openplans.org> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> <46A7A7B7.9090508@openplans.org> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AAE@mrburns.KorOffice.local> > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] On Behalf Of Tim Schaub > Sent: Wednesday, July 25, 2007 2:43 PM > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - bad coords? > > Jeff Dege wrote: > > Now I seem to remember having had a similar problem with KaMap on the > > main map, because the default tile size in OpenLayers was 256x256 and in > > KaMap was 200x200. Which I fixed by setting the tilesize option to the > > OpenLayers.Map constructor. So I passed a tilesize option to the > > OverviewMap constructor, and it made no difference. > > Please see the wiki page on the OverviewMap, specifically the section on > custom map options[1]. Yep, that's what I missed. > You'll want to construct your overview map with some non-default > options. Set the mapOptions property of the options object as in the > example, and you should get what you want. But!!! There are options I'm passing to Map() that I apparently don't want to pass to OverviewMap. My first attempt, I created a mapOptions variable, and passed it to both constructors (as options, in Map(), as options.mapOptions in OverviewMap.) That didn't work. I had been setting Map.scales. That's inappropriate for OverviewMap. Letting OverviewMap pick its own scales seems to work fine, but if you want to force a set of scales, they'll most definitely not be the same as you're using in the main map. But one thing I've noticed. Most controls have the option of being placed either over the map, or in divs outside the map. MousePosition, for example, or Scale, or Permalink, all accept element as on option argument, and create their own, attached to the map, only if it isn't passed. OverviewMap does not allow for this. It only allows the overviewmap to be drawn over the map itself. Is there a reason for this? From tschaub at openplans.org Wed Jul 25 16:41:42 2007 From: tschaub at openplans.org (Tim Schaub) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - outside div? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370AAE@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> <46A7A7B7.9090508@openplans.org> <34E056CD4D475841B8C9ABCE956F92F6370AAE@mrburns.KorOffice.local> Message-ID: <46A7B586.4040503@openplans.org> Jeff Dege wrote: > But one thing I've noticed. > > Most controls have the option of being placed either over the map, or in > divs outside the map. MousePosition, for example, or Scale, or > Permalink, all accept element as on option argument, and create their > own, attached to the map, only if it isn't passed. > > OverviewMap does not allow for this. It only allows the overviewmap to > be drawn over the map itself. > au contraire http://trac.openlayers.org/wiki/Control/OverviewMap#Customlayout Tim From jdege at korterra.com Wed Jul 25 17:30:12 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap - outside div? In-Reply-To: <46A7B586.4040503@openplans.org> References: <34E056CD4D475841B8C9ABCE956F92F6370AAB@mrburns.KorOffice.local> <46A7A7B7.9090508@openplans.org><34E056CD4D475841B8C9ABCE956F92F6370AAE@mrburns.KorOffice.local> <46A7B586.4040503@openplans.org> Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AAF@mrburns.KorOffice.local> > From: users-bounces@openlayers.org > [mailto:users-bounces@openlayers.org] On Behalf Of Tim Schaub > Sent: Wednesday, July 25, 2007 3:42 PM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - outside div? > > Jeff Dege wrote: > > But one thing I've noticed. > > > > OverviewMap does not allow for this. It only allows the > overviewmap to > > be drawn over the map itself. > > > > au contraire > > http://trac.openlayers.org/wiki/Control/OverviewMap#Customlayout Sorry to keep harping on this. I am figuring things out. When I attempted to set the 'div' option, I got a crash. On examination, it was because I had originally done a OverviewMap.maximizeControl(), immediately after adding the control to the map. If outside the viewport, we don't have minimizeDiv or maximizeDiv. My fault. I think I've pretty much got everything working, now. Thanks for your help. From jachym.cepicky at gmail.com Thu Jul 26 03:18:26 2007 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] OverviewMap in non wgs84 map In-Reply-To: <46A77D32.9090506@openplans.org> References: <1185365620.7812.10.camel@mellon> <46A77D32.9090506@openplans.org> Message-ID: <1185434306.7929.3.camel@mellon> Hallo, yes, I found this page, however, I missed, that options have to be setup as {mapOptions:options} thanks for this Jachym P.S.: Where is the documentation gone? http://dev.openlayers.org/docs/files/OpenLayers-js.html Tim Schaub p??e v St 25. 07. 2007 v 10:41 -0600: > Hello- > > Jachym Cepicky wrote: > > Hi, > > > > I would like to add OpenLayers.Control.OverviewMap() control to the map > > object, however, it works wrong. For example, one can take > > layer-opacity.html from the examples directory: > > > > > Please see the wiki page on the OverviewMap, specifically the section on > custom projections[1]. > > You'll want to construct your overview map with some non-default > options. Set the mapOptions property of the options object as in the > example, and you should get what you want. > > Tim > > [1] > http://trac.openlayers.org/wiki/Control/OverviewMap#Customprojectionsextentsetc. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070726/23fc8ee6/attachment.bin From tylersticky at gmail.com Thu Jul 26 06:40:30 2007 From: tylersticky at gmail.com (Tyler Durden) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems Message-ID: Hi, I'm using Openlayers with Mapnik and Tilecache and I can't resolve the resolutions problem for the bounding box: bbox=-12.62878,36.27686,-2.79602,43.07739 The maps doesn't appear correctly and my GeoRSS points is out of place. Tilecache configuration: =================== [all] type=MapnikLayer mapfile=osm.xml bbox=-12.62878,36.27686,-2.79602,43.07739 maxResolution=0.021972656 resolutions=0.021972656,0.010986328,0.005493164 levels=10 extension=png srs=EPSG:4326 debug=on Openlayers: ========== var bounds = new OpenLayers.Bounds(-12.62878, 36.27686, -2.79602, 43.07739); var options = {maxResolution: 0.060253125, numZoomLevels : 10, projection : "EPSG:4326", controls : controls }; map = new OpenLayers.Map('map', options); layer_all = new OpenLayers.Layer.TMS("all", "http://192.168.1.160:8080/", layername: 'all', type:'png'} ); map.addLayer(layer_all); How can I adjust the resolutions? What is the diference between maxResolution and resolutions? Thanks, Tyler From crschmidt at metacarta.com Thu Jul 26 07:37:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: References: Message-ID: <20070726113728.GC13812@metacarta.com> On Thu, Jul 26, 2007 at 11:40:30AM +0100, Tyler Durden wrote: > Hi, > I'm using Openlayers with Mapnik and Tilecache and I can't resolve the > resolutions problem for the bounding box: > bbox=-12.62878,36.27686,-2.79602,43.07739 > > The maps doesn't appear correctly and my GeoRSS points is out of place. > > Tilecache configuration: > =================== > > [all] > type=MapnikLayer > mapfile=osm.xml > bbox=-12.62878,36.27686,-2.79602,43.07739 > maxResolution=0.021972656 > resolutions=0.021972656,0.010986328,0.005493164 > levels=10 > extension=png > srs=EPSG:4326 > debug=on > > Openlayers: > ========== > > var bounds = new OpenLayers.Bounds(-12.62878, 36.27686, -2.79602, 43.07739); > var options = {maxResolution: 0.060253125, > numZoomLevels : 10, > projection : "EPSG:4326", > controls : controls }; > > map = new OpenLayers.Map('map', options); > layer_all = new OpenLayers.Layer.TMS("all", > "http://192.168.1.160:8080/", layername: 'all', type:'png'} ); > map.addLayer(layer_all); > > How can I adjust the resolutions? I'm not sure what you mean. Your maxresolution in openlayers and TileCache don't match. You should make them match. (And then clear your cache.) Additionally, I would recommend using: new OpenLayers.Layer.WMS("all", "http://192.168.1.160:8080/", {'layers':'all'}) instead of what you're currently using, because TMS is not as well tested as WMS. TMS doesn't care if your tiles are off. WMS does, and would have told you so. > What is the diference between maxResolution and resolutions? resolutions is a list of resolutions. maxResolution is a top level, which is then divided by 2 many times to get a list. Regards, -- Christopher Schmidt MetaCarta From tylersticky at gmail.com Thu Jul 26 09:23:30 2007 From: tylersticky at gmail.com (Tyler Durden) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: <20070726113728.GC13812@metacarta.com> References: <20070726113728.GC13812@metacarta.com> Message-ID: Ok, I've switched to WMS and maxResolution matches, but now only shows 2 tiles with this error: An error occurred: couldn't calculate tile index for layer all from ([0.0, -90.0, 180.0, 90.0]) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 452, in wsgiHandler format, image = service.dispatchRequest( fields, path_info, req_method, host ) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 395, in dispatchRequest tile = WMS(self).parse(params, path_info, host) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 120, in parse return self.getMap(param) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 127, in getMap raise Exception( My configuration: tilecache.cfg ========== [all] type=MapnikLayer mapfile=osm.xml bbox=-12.62878,36.27686,-2.79602,43.07739 maxResolution=0.703125 levels=10 extension=png srs=EPSG:4326 debug=on OpenLayers ========== var options = {maxResolution : 0.703125, numZoomLevels : 10, maxExtend : new OpenLayers.Bounds(-12.62878, 36.27686, -2.79602, 43.07739), projection : "EPSG:4326", controls : controls }; map = new OpenLayers.Map('map', options); layer_all = new OpenLayers.Layer.WMS("all", "http://192.168.1.160:8080/", {'layers':'all'}) map.addLayer(layer_all); From tylersticky at gmail.com Thu Jul 26 09:26:35 2007 From: tylersticky at gmail.com (Tyler Durden) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: References: <20070726113728.GC13812@metacarta.com> Message-ID: He tries get bounding box for ([0.0, -90.0, 180.0, 90.0]). I think is because of resolutions. I just want a bounding box like this: bbox=-12.62878,36.27686,-2.79602,43.07739 From crschmidt at metacarta.com Thu Jul 26 09:27:54 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: References: <20070726113728.GC13812@metacarta.com> Message-ID: <20070726132754.GA14279@metacarta.com> On Thu, Jul 26, 2007 at 02:23:30PM +0100, Tyler Durden wrote: > Ok, > I've switched to WMS and maxResolution matches, but now only shows 2 > tiles with this error: > OpenLayers > ========== > > var options = {maxResolution : 0.703125, > numZoomLevels : 10, > maxExtend : new OpenLayers.Bounds(-12.62878, > 36.27686, -2.79602, 43.07739), You misspelled maxExtent. Regards, -- Christopher Schmidt MetaCarta From nesiren at gmail.com Thu Jul 26 09:53:10 2007 From: nesiren at gmail.com (Armin Nesiren) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] maxExtent problem Message-ID: <46A8A746.40803@gmail.com> How to prevent form getting out from MaxExtent when dragging. I have try with map_maxextent.patch added by bartvde, but after patching my app won't work at all. Thanks alot!! From bartvde at osgis.nl Thu Jul 26 10:03:41 2007 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] maxExtent problem Message-ID: Can you describe how you applied the patch and what the patch command output was? http://trac.openlayers.org/attachment/ticket/340/map_maxextent.patch?format=raw Your app does not work at all, do you get javascript errors? Can you describe more exactly what the problem is after applying the patch? On what version of OL did you apply the patch? 2.4? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Armin Nesiren Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] maxExtent problem Datum: 26/07/07 11:57 > How to prevent form getting out from MaxExtent when dragging. > > I have try with map_maxextent.patch added by bartvde, but after patching > my app won't work at all. From tylersticky at gmail.com Thu Jul 26 10:16:45 2007 From: tylersticky at gmail.com (Tyler Durden) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: <20070726132754.GA14279@metacarta.com> References: <20070726113728.GC13812@metacarta.com> <20070726132754.GA14279@metacarta.com> Message-ID: On 7/26/07, Christopher Schmidt wrote: > You misspelled maxExtent. Sorry Now with this configurations works fine except for some tiles that shows: An error occurred: couldn't calculate tile index for layer all from ([-15.441280000000001, 41.901859999999999, -12.628780000000001, 44.714359999999999]) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 452, in wsgiHandler format, image = service.dispatchRequest( fields, path_info, req_method, host ) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 395, in dispatchRequest tile = WMS(self).parse(params, path_info, host) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 120, in parse return self.getMap(param) File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 127, in getMap raise Exception( [all] type=MapnikLayer mapfile=/home/nmariz/python/projects/ptx/ptx-osm.xml bbox=-12.62878,36.27686,-2.79602,43.07739 maxResolution=0.010986328125 resolutions=0.010986328125,0.0054931640625 levels=10 extension=png srs=EPSG:4326 debug=on [Openlayers] var options = {maxResolution : 0.010986328125, resolutions: [0.010986328125,0.0054931640625], numZoomLevels : 10, maxExtent : new OpenLayers.Bounds(-12.62878, 36.27686, -2.79602, 43.07739), projection : "EPSG:4326", controls : controls }; map = new OpenLayers.Map('map', options); layer_all = new OpenLayers.Layer.WMS("all", "http://192.168.1.160:8080/", {'layers':'all'}) map.addLayer(layer_all); Any idea why? From nesiren at gmail.com Thu Jul 26 10:16:43 2007 From: nesiren at gmail.com (Armin Nesiren) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] maxExtent problem In-Reply-To: References: Message-ID: <46A8ACCB.8020605@gmail.com> Bart van den Eijnden (OSGIS) wrote: > Can you describe how you applied the patch and what the patch command output > was? > > http://trac.openlayers.org/attachment/ticket/340/map_maxextent.patch?format=raw > > Your app does not work at all, do you get javascript errors? Can you > describe more exactly what the problem is after applying the patch? > > On what version of OL did you apply the patch? 2.4? > > > Here is otput of patch: ../OpenLayers # patch < map_maxextent.patch patching file Map.js Hunk #1 succeeded at 813 with fuzz 2 (offset -1 lines). Problem is, as I said before, that I can get out of maxExtent when dragging. After patching, it seem that app work fine when I avoid all error message and complete zoom in, but when come to some 'border' between maxExtent app stop working and i have alot of errors. Javascript error that I get after patch evry time when I'm try to drag is lonLat has no properties: MousePosition.js 87: lonLat.lon.toFixed(digits) in news.txt first line is "OpenLayers 2.0 Release Notes" is that meen that version of OL is 2.0? :) From tylersticky at gmail.com Thu Jul 26 11:27:33 2007 From: tylersticky at gmail.com (Tyler Durden) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Resolutions problems In-Reply-To: References: <20070726113728.GC13812@metacarta.com> <20070726132754.GA14279@metacarta.com> Message-ID: Ok, I figured out. The resolutions is directly associated to the bounding box that I was defined. From erik.uzureau at metacarta.com Thu Jul 26 11:48:58 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Can't view a GeoRSS In-Reply-To: <20070720115635.GB17132@metacarta.com> References: <11649812.post@talk.nabble.com> <20070717134538.GA15579@metacarta.com> <11650163.post@talk.nabble.com> <20070719125332.GB12852@metacarta.com> <11704487.post@talk.nabble.com> <20070720115635.GB17132@metacarta.com> Message-ID: <6ae3fb590707260848x64673b20o8be1c08779683516@mail.gmail.com> done: http://trac.openlayers.org/ticket/865 On 7/20/07, Christopher Schmidt wrote: > On Fri, Jul 20, 2007 at 01:50:21AM -0700, Simo D wrote: > > > > Hi, > > I found wich is the problem. > > The parser can't parse the tags. > > If I remove theese tags from the code it works fine. > > Thanks. We'll put that into the bug report. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From grzemy at gmail.com Thu Jul 26 12:18:52 2007 From: grzemy at gmail.com (GregM) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Mapserver vs WMS projection Message-ID: <11813898.post@talk.nabble.com> I have Mapserver working with OpenLayers as WMS. Everything is working ok including overlaying on Google Maps. But I want to give my layers some parameters exclusive for Mapserver, so I switched to Layer.MapServer And now my layers are not projected (my data is shifted to GoogleMaps data, looks like unprojected, but layer has property 'reproject' switched on by default). Should I add any parameter to Mapserver layer init, if I change from WMS call? Greg -- View this message in context: http://www.nabble.com/Mapserver-vs-WMS-projection-tf4152651.html#a11813898 Sent from the OpenLayers Users mailing list archive at Nabble.com. From grzemy at gmail.com Fri Jul 27 04:41:02 2007 From: grzemy at gmail.com (GregM) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Virtual Earth and opacity in Firefox Message-ID: <11825153.post@talk.nabble.com> I have noticed that after attaching VE control to the html page, layers and controls on the map are not transparent if using Firefox. Is this VE or Firefox or OE fault ? Greg -- View this message in context: http://www.nabble.com/Virtual-Earth-and-opacity-in-Firefox-tf4156181.html#a11825153 Sent from the OpenLayers Users mailing list archive at Nabble.com. From grzemy at gmail.com Fri Jul 27 04:45:02 2007 From: grzemy at gmail.com (GregM) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <20070526120452.GA636@metacarta.com> References: <46570231.8050302@sfsltd.com> <20070525233557.GA29676@metacarta.com> <20070526120452.GA636@metacarta.com> Message-ID: <11763122.post@talk.nabble.com> I would add that tiles for invisible layers are downloaded from server not only on map/layer initialization, but also while layer goes beyond its minScale. Value of minScale is making layer not downloaded while initialization but after zooming to scale < minScale. Is this already filled as bug in tickets ? Because I cannot find it. Is there any workaround for this for OE 2.4 ? Greg Christopher Schmidt-4 wrote: > > On Sat, May 26, 2007 at 10:28:39AM +0200, Arnd Wippermann wrote: >> Hello Christopher, >> >> I have the same problem (therefor I'm still using Openlayers 1.0). > > Okay, thanks. I'd heard reports, but they were always vague in the > problems they were reporting. >> OpenLayers should only load tiles for the baselayer from gis.ibbeck.de >> and >> wms.jpl.nasa.gov for the world image. If you use firebug, you could see, >> that the tiles for the other servers are also loaded. > > Agreed. I'll file this as a bug against 2.5. Since it's been around since > the start of the 2.0 branch, it's not enough to delay 2.4. > >> After the first load of the map, pan and zoom loads only the tiles for >> the >> visible servers. >> >> http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= >> 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, >> 50.819 >> >> (If I load the newest version from >> http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says >> the >> html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still >> "$Revision: 2942 $". Miss I something or is this a bug). > > This is expected -- the VERSION_NUMBER is relevant to the last time that > file was updated. Part of the release process is to edit the > OpenLayers.js file (to change the license), so releases get a new > VERSION_NUMBER -- it's only useful on releases. Unfortunately, I don't > know of a better way to automate this. > >> Is it possible with the number of the revision also deliver a variable >> with >> the plain text for the OpenLayers Version(example: 2.4 RC4). > > There is no automatic way of doing this, and it's a step that I fear > would be missed if we made it a human intervention step, which is why > it's not done. If you're actually using RC4 -- that is, from the /tags/ > instead of the branch -- the VERSION_NUMBER represents that. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Delaying-Layer-Initialization-tf3816850.html#a11763122 Sent from the OpenLayers Users mailing list archive at Nabble.com. From grzemy at gmail.com Fri Jul 27 04:51:18 2007 From: grzemy at gmail.com (GregM) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <11763122.post@talk.nabble.com> References: <46570231.8050302@sfsltd.com> <20070525233557.GA29676@metacarta.com> <20070526120452.GA636@metacarta.com> <11763122.post@talk.nabble.com> Message-ID: <11797327.post@talk.nabble.com> I have corrected it in Map.js setCenter function with some additional lines inside 'for' code below: for (var i = 0; i < this.layers.length; i++) { var layer = this.layers[i]; if (!layer.isBaseLayer) { var moveLayer; var inRange = layer.calculateInRange(); if (layer.inRange != inRange) { // Layer property has changed. We are going // to call moveLayer so that the layer can be turned // off or on. layer.inRange = inRange; //do NOT download tiles if not in scale limit moveLayer = (layer.visibility && layer.inRange); // was ... = true; //switch off layer after going beyond scale limit if (layer.visibility && !layer.inRange) layer.setVisibility(false); this.events.triggerEvent("changelayer"); } else { // If nothing has changed, then we only move the layer // if it is visible and inrange. moveLayer = (layer.visibility && layer.inRange); //switch off layer after going beyond scale limit if (layer.visibility && !layer.inRange) layer.setVisibility(false); } if (moveLayer) { layer.moveTo(bounds, zoomChanged, dragging); } } } GregM wrote: > > I would add that tiles for invisible layers are downloaded from server not > only on map/layer initialization, but also while layer goes beyond its > minScale. > Value of minScale is making layer not downloaded while initialization but > after zooming to scale < minScale. > > Is this already filled as bug in tickets ? Because I cannot find it. > > Is there any workaround for this for OE 2.4 ? > > Greg > > > > Christopher Schmidt-4 wrote: >> >> On Sat, May 26, 2007 at 10:28:39AM +0200, Arnd Wippermann wrote: >>> Hello Christopher, >>> >>> I have the same problem (therefor I'm still using Openlayers 1.0). >> >> Okay, thanks. I'd heard reports, but they were always vague in the >> problems they were reporting. >>> OpenLayers should only load tiles for the baselayer from gis.ibbeck.de >>> and >>> wms.jpl.nasa.gov for the world image. If you use firebug, you could see, >>> that the tiles for the other servers are also loaded. >> >> Agreed. I'll file this as a bug against 2.5. Since it's been around since >> the start of the 2.0 branch, it's not enough to delay 2.4. >> >>> After the first load of the map, pan and zoom loads only the tiles for >>> the >>> visible servers. >>> >>> http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= >>> 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, >>> 50.819 >>> >>> (If I load the newest version from >>> http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says >>> the >>> html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still >>> "$Revision: 2942 $". Miss I something or is this a bug). >> >> This is expected -- the VERSION_NUMBER is relevant to the last time that >> file was updated. Part of the release process is to edit the >> OpenLayers.js file (to change the license), so releases get a new >> VERSION_NUMBER -- it's only useful on releases. Unfortunately, I don't >> know of a better way to automate this. >> >>> Is it possible with the number of the revision also deliver a variable >>> with >>> the plain text for the OpenLayers Version(example: 2.4 RC4). >> >> There is no automatic way of doing this, and it's a step that I fear >> would be missed if we made it a human intervention step, which is why >> it's not done. If you're actually using RC4 -- that is, from the /tags/ >> instead of the branch -- the VERSION_NUMBER represents that. >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- View this message in context: http://www.nabble.com/Delaying-Layer-Initialization-tf3816850.html#a11797327 Sent from the OpenLayers Users mailing list archive at Nabble.com. From crschmidt at metacarta.com Fri Jul 27 07:46:52 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Delaying Layer Initialization In-Reply-To: <11797327.post@talk.nabble.com> References: <46570231.8050302@sfsltd.com> <20070525233557.GA29676@metacarta.com> <20070526120452.GA636@metacarta.com> <11763122.post@talk.nabble.com> <11797327.post@talk.nabble.com> Message-ID: <20070727114652.GA18334@metacarta.com> On Fri, Jul 27, 2007 at 01:51:18AM -0700, GregM wrote: Erik, can you take a look at this when you get a chance? -- Chris > > I have corrected it in Map.js setCenter function > with some additional lines inside 'for' code below: > > for (var i = 0; i < this.layers.length; i++) { > var layer = this.layers[i]; > if (!layer.isBaseLayer) { > > var moveLayer; > var inRange = layer.calculateInRange(); > if (layer.inRange != inRange) { > // Layer property has changed. We are going > // to call moveLayer so that the layer can be turned > // off or on. > layer.inRange = inRange; > //do NOT download tiles if not in scale limit > moveLayer = (layer.visibility && layer.inRange); // > was ... = true; > //switch off layer after going beyond scale limit > if (layer.visibility && !layer.inRange) > layer.setVisibility(false); > this.events.triggerEvent("changelayer"); > } else { > // If nothing has changed, then we only move the > layer > // if it is visible and inrange. > moveLayer = (layer.visibility && layer.inRange); > //switch off layer after going beyond scale limit > if (layer.visibility && !layer.inRange) > layer.setVisibility(false); > } > if (moveLayer) { > layer.moveTo(bounds, zoomChanged, dragging); > } > } > } > > > > GregM wrote: > > > > I would add that tiles for invisible layers are downloaded from server not > > only on map/layer initialization, but also while layer goes beyond its > > minScale. > > Value of minScale is making layer not downloaded while initialization but > > after zooming to scale < minScale. > > > > Is this already filled as bug in tickets ? Because I cannot find it. > > > > Is there any workaround for this for OE 2.4 ? > > > > Greg > > > > > > > > Christopher Schmidt-4 wrote: > >> > >> On Sat, May 26, 2007 at 10:28:39AM +0200, Arnd Wippermann wrote: > >>> Hello Christopher, > >>> > >>> I have the same problem (therefor I'm still using Openlayers 1.0). > >> > >> Okay, thanks. I'd heard reports, but they were always vague in the > >> problems they were reporting. > >>> OpenLayers should only load tiles for the baselayer from gis.ibbeck.de > >>> and > >>> wms.jpl.nasa.gov for the world image. If you use firebug, you could see, > >>> that the tiles for the other servers are also loaded. > >> > >> Agreed. I'll file this as a bug against 2.5. Since it's been around since > >> the start of the 2.0 branch, it's not enough to delay 2.4. > >> > >>> After the first load of the map, pan and zoom loads only the tiles for > >>> the > >>> visible servers. > >>> > >>> http://gis.ibbeck.de/ginfo/ibbOLClient/OLC2.3%20RC1.html?MAPNR=10000&LAYERS= > >>> 11200,12700,11500,11500,10600,10700,10900,11000,10000&ZOOM=3&CENTER=10.1745, > >>> 50.819 > >>> > >>> (If I load the newest version from > >>> http://svn.openlayers.org/branches/openlayers/2.4/, Revision 3188 says > >>> the > >>> html-page and my svn-program, the OpenLayers.VERSION_NUMBER is still > >>> "$Revision: 2942 $". Miss I something or is this a bug). > >> > >> This is expected -- the VERSION_NUMBER is relevant to the last time that > >> file was updated. Part of the release process is to edit the > >> OpenLayers.js file (to change the license), so releases get a new > >> VERSION_NUMBER -- it's only useful on releases. Unfortunately, I don't > >> know of a better way to automate this. > >> > >>> Is it possible with the number of the revision also deliver a variable > >>> with > >>> the plain text for the OpenLayers Version(example: 2.4 RC4). > >> > >> There is no automatic way of doing this, and it's a step that I fear > >> would be missed if we made it a human intervention step, which is why > >> it's not done. If you're actually using RC4 -- that is, from the /tags/ > >> instead of the branch -- the VERSION_NUMBER represents that. > >> > >> Regards, > >> -- > >> Christopher Schmidt > >> MetaCarta > >> _______________________________________________ > >> Users mailing list > >> Users@openlayers.org > >> http://openlayers.org/mailman/listinfo/users > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/Delaying-Layer-Initialization-tf3816850.html#a11797327 > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jul 27 07:54:28 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Virtual Earth and opacity in Firefox In-Reply-To: <11825153.post@talk.nabble.com> References: <11825153.post@talk.nabble.com> Message-ID: <20070727115428.GB18334@metacarta.com> On Fri, Jul 27, 2007 at 01:41:02AM -0700, GregM wrote: > > I have noticed that after attaching VE control to the html page, layers and > controls on the map are not transparent if using Firefox. > Is this VE or Firefox or OE fault ? Virtual Earth does this in some way. I don't remember the specifics of when exactly it happens, but when you incle the script in your page, transparency goes bye bye. Regards, -- Christopher Schmidt MetaCarta From grzemy at gmail.com Fri Jul 27 10:06:53 2007 From: grzemy at gmail.com (GregM) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] problems with projection Message-ID: <11830039.post@talk.nabble.com> I have WMS layer overlayed on OL WMS, and it looks ok. After changing base layer to GoogleMaps it looks nearly ok. Very small shift is almost visible only (scale 1:28M). But after zooming in to scales < 14M all layers are aligned exactly already. Zooming out to scales > 14M makes layers unaligned more and more. Second case: After changing WMS layer to WMS.Untiled: behaviour is the same as in previous case but layers aligns under 1M scale. At scale 1:14M there is shift by whole country and overlay is stretched vertically very much. Additionaly, overlay do not show always. Sometimes dragging makes it show on map. Third case: After changing to Mapserver layer: -On OL WMS everything ok -On GoogleMaps overlay is not stretched (looks like unprojected data) and shifted north by 2 countries (scale 1:28M) -zooming in to scale <50K makes layers almost aligned -while zooming in, sometimes there are no tiles at the bottom of the map. Fourth case: Mapserver.Untiled: -On OL WMS everything ok -On GoogleMaps overlay is not stretched (looks like unprojected data) and shifted north by 1/2 countries (scale 1:28M) - zooming in has no effect on layers align How can I get OL 2.5 ? Link http://openlayers.org/download/OpenLayers-2.5-rc1.zip and others on 2.5 release page do not work. Fragment of my sources: ... var bifcountries = new OpenLayers.Layer.MapServer( "BIF-countries", "localhost://cgi-bin/mapserv?map=bifm-dev.map", {layers: "bifcountries", transparent: "true", format: "image/png"}, { visibility: true, isBaseLayer: false, buffer:0, opacity: 0.8}); ... Mapfile: LAYER NAME bifcountries TYPE polygon STATUS DEFAULT DATA 'bif_countries' TEMPLATE 'templates/pl_wgs84.html' HEADER 'templates/pl_wgs84_header.html' FOOTER 'templates/pl_wgs84_footer.html' LABELITEM 'NAME' CLASS STYLE OUTLINECOLOR 110 110 110 COLOR 210 243 207 END #STYLE LABEL SIZE medium OUTLINECOLOR 79 79 79 COLOR 220 220 220 ANGLE 0 BUFFER 1 PARTIALS OFF END END #CLASS END -- View this message in context: http://www.nabble.com/problems-with-projection-tf4158104.html#a11830039 Sent from the OpenLayers Users mailing list archive at Nabble.com. From fend0009 at umn.edu Fri Jul 27 11:28:35 2007 From: fend0009 at umn.edu (fend0009) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Lables for Polygons in OpenLayers Message-ID: <200707271528.l6RFSZI8020819@vendetta.software.umn.edu> Hi list: > > I am a newbie to OpenLayers and trying to develop an application that will > display names for economic development regions as in the example below. > > http://maps.socsci.umn.edu/~fend0009/2006/My2006/OpenLayers/OpenLayers.html > > I discovered that although I set the mindistance of labels to 200 pixels in > the mapfile I still get duplicate labels for bigger regions. Does anyone have > a strategy to cope with this problem??? Any pointer will be highly > appreciated. > > Jessica > > MAP > NAME 'OpenLayers' > EXTENT 125000 4785000 788000 5489000 > UNITS METERS > SIZE 300 400 > ......... > > LAYER > NAME 'county' > TYPE POLYGON > STATUS OFF > DATA '/home/fend0009/public_html/2006/My2006/OpenLayers/Data/county' > CLASS > NAME 'County Boundaries' > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > END > END > TOLERANCE 0 > METADATA > WMS_TITLE 'Minnesota County Boundaries' > WMS_SRS 'epsg:26915' > END > END > > LAYER > NAME 'regions' > TYPE POLYGON > STATUS OFF > DATA '/home/fend0009/public_html/2006/My2006/OpenLayers/Data/ED_Regions' > LABELITEM 'EDR_2' > CLASSITEM 'EDR' > CLASS > NAME 'Region 1' > EXPRESSION ('[EDR]' eq 'Region 1') > STYLE > COLOR 189 158 120 > OUTLINECOLOR 0 0 0 > END > LABEL > SIZE MEDIUM > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > MINDISTANCE 200 > PARTIALS FALSE > END > END > CLASS > NAME 'Region 2' > EXPRESSION ('[EDR]' eq 'Region 2') > STYLE > COLOR 203 201 226 > OUTLINECOLOR 0 0 0 > END > LABEL > SIZE MEDIUM > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > MINDISTANCE 200 > PARTIALS FALSE > END > END > ........... > METADATA > WMS_TITLE 'Economic Development' > WMS_SRS 'epsg:26915' > END > END From fend0009 at umn.edu Fri Jul 27 11:44:37 2007 From: fend0009 at umn.edu (fend0009) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] File Path to Retrieve OpenLayers Message-ID: <200707271544.l6RFibh2023761@vendetta.software.umn.edu> Hi list: I tried to move an OpenLayers project from the U of M school server (working fine) to my work server but am having problems retrieving the map layers. http://map.deed.state.mn.us/OpenLayers/OpenLayers.html The Structure of the site is d:/Sites/map_deed/apps /cgi-bin/mapserv.exe /temp /wwwroot Currently, the OpenLayers folder is under wwwroot. The piece in the html file is as follows: var county = new OpenLayers.Layer.WMS( "Minnesota Counties", "http://map.deed.state.mn.us/cgi-bin/mapserv.exe?map=/OpenLayers/OpenLayers.map&layers=county", {'isBaseLayer': false}); In OpenLayers.map mapfile: LAYER NAME 'county' TYPE POLYGON STATUS OFF DATA 'd:/Sites/map_deed/wwwroot/OpenLayers/Data/county' CLASS NAME 'County Boundaries' STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 END END TOLERANCE 0 METADATA WMS_TITLE 'Minnesota County Boundaries' WMS_SRS 'epsg:26915' END END I entered the URL in the html file and got an error message saying CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. Any idea why? Please advise. Thank you for your time. Jessica From crschmidt at metacarta.com Fri Jul 27 11:48:53 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Lables for Polygons in OpenLayers In-Reply-To: <200707271528.l6RFSZI8020819@vendetta.software.umn.edu> References: <200707271528.l6RFSZI8020819@vendetta.software.umn.edu> Message-ID: <20070727154853.GA18997@metacarta.com> On Fri, Jul 27, 2007 at 10:28:35AM -0500, fend0009 wrote: > Hi list: > > > > I am a newbie to OpenLayers and trying to develop an application that will > > display names for economic development regions as in the example below. > > > > http://maps.socsci.umn.edu/~fend0009/2006/My2006/OpenLayers/OpenLayers.html > > > > I discovered that although I set the mindistance of labels to 200 pixels in > > the mapfile I still get duplicate labels for bigger regions. Does anyone > have > > a strategy to cope with this problem??? Any pointer will be highly > > appreciated. TileCache: http://tilecache.org/ Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Fri Jul 27 11:50:55 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] problems with projection In-Reply-To: <11830039.post@talk.nabble.com> References: <11830039.post@talk.nabble.com> Message-ID: <20070727155055.GB18997@metacarta.com> On Fri, Jul 27, 2007 at 07:06:53AM -0700, GregM wrote: > > I have WMS layer overlayed on OL WMS, and it looks ok. > After changing base layer to GoogleMaps it looks nearly ok. Very small shift > is almost visible only (scale 1:28M). But after zooming in to scales < 14M > all layers are aligned exactly already. Zooming out to scales > 14M makes > layers unaligned more and more. Yes. This is expected behavior with the current version of OpenLayers. > Second case: > After changing WMS layer to WMS.Untiled: > behaviour is the same as in previous case but layers aligns under 1M scale. > At scale 1:14M there is shift by whole country and overlay is stretched > vertically very much. Same as above. > Additionaly, overlay do not show always. Sometimes dragging makes it show on > map. Yes, I've seen this, though not tracked it down. > Third case: > After changing to Mapserver layer: > -On OL WMS everything ok > -On GoogleMaps overlay is not stretched (looks like unprojected data) and > shifted north by 2 countries (scale 1:28M) > -zooming in to scale <50K makes layers almost aligned Yes, this is expected. > -while zooming in, sometimes there are no tiles at the bottom of the map. This isn't. Sounds like a bug. Can you provide an HTML page to reproduce it? > How can I get OL 2.5 ? > Link http://openlayers.org/download/OpenLayers-2.5-rc1.zip and others on > 2.5 release page do not work. 2.5 doesn't exist yet. Currently, it is: http://svn.openlayers.org/trunk/openlayers/ Which you can check out with an SVN Client. Regards, -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Fri Jul 27 11:51:18 2007 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] Lables for Polygons in OpenLayers In-Reply-To: <200707271528.l6RFSZI8020819@vendetta.software.umn.edu> References: <200707271528.l6RFSZI8020819@vendetta.software.umn.edu> Message-ID: <46A9CE25.5157.008F.0@dnr.state.mn.us> The MINDISTANCE parameter is only useful within a tile so that's why you continue to see duplicates. One labeling process doesn't know about the other. One solution would be to use a smarter tiling engine than simply WMS. I believe both TileCache and ka-map both support the concept of metatiles which can really help with this problem. Steve >>> On 7/27/2007 at 10:28 AM, in message <200707271528.l6RFSZI8020819@vendetta.software.umn.edu>, fend0009 wrote: > Hi list: >> >> I am a newbie to OpenLayers and trying to develop an application that will >> display names for economic development regions as in the example below. >> >> http://maps.socsci.umn.edu/~fend0009/2006/My2006/OpenLayers/OpenLayers.html >> >> I discovered that although I set the mindistance of labels to 200 pixels in >> the mapfile I still get duplicate labels for bigger regions. Does anyone > have >> a strategy to cope with this problem??? Any pointer will be highly >> appreciated. >> >> Jessica >> >> MAP >> NAME 'OpenLayers' >> EXTENT 125000 4785000 788000 5489000 >> UNITS METERS >> SIZE 300 400 >> ......... >> >> LAYER >> NAME 'county' >> TYPE POLYGON >> STATUS OFF >> DATA '/home/fend0009/public_html/2006/My2006/OpenLayers/Data/county' >> CLASS >> NAME 'County Boundaries' >> STYLE >> COLOR 255 255 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> TOLERANCE 0 >> METADATA >> WMS_TITLE 'Minnesota County Boundaries' >> WMS_SRS 'epsg:26915' >> END >> END >> >> LAYER >> NAME 'regions' >> TYPE POLYGON >> STATUS OFF >> DATA > '/home/fend0009/public_html/2006/My2006/OpenLayers/Data/ED_Regions' >> LABELITEM 'EDR_2' >> CLASSITEM 'EDR' >> CLASS >> NAME 'Region 1' >> EXPRESSION ('[EDR]' eq 'Region 1') >> STYLE >> COLOR 189 158 120 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> SIZE MEDIUM >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> MINDISTANCE 200 >> PARTIALS FALSE >> END >> END >> CLASS >> NAME 'Region 2' >> EXPRESSION ('[EDR]' eq 'Region 2') >> STYLE >> COLOR 203 201 226 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> SIZE MEDIUM >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> MINDISTANCE 200 >> PARTIALS FALSE >> END >> END >> ........... >> METADATA >> WMS_TITLE 'Economic Development' >> WMS_SRS 'epsg:26915' >> END >> END > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Fri Jul 27 11:58:06 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] File Path to Retrieve OpenLayers In-Reply-To: <200707271544.l6RFibh2023761@vendetta.software.umn.edu> References: <200707271544.l6RFibh2023761@vendetta.software.umn.edu> Message-ID: <20070727155806.GA19043@metacarta.com> On Fri, Jul 27, 2007 at 10:44:37AM -0500, fend0009 wrote: > Hi list: > > I tried to move an OpenLayers project from the U of M school server (working > fine) to my work server but am having problems retrieving the map layers. > http://map.deed.state.mn.us/OpenLayers/OpenLayers.html > I entered the URL in the html file and got an error message saying > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. This means "MapServer broke while trying to render the image." There could be a number of reasons. Investigate your MapServer setup. Check your mapfiles. Once you get a single working image out of MapServer, *then* work on making OpenLayers work. Regards, -- Christopher Schmidt MetaCarta From david.fawcett at gmail.com Fri Jul 27 12:03:57 2007 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] File Path to Retrieve OpenLayers In-Reply-To: <20070727155806.GA19043@metacarta.com> References: <200707271544.l6RFibh2023761@vendetta.software.umn.edu> <20070727155806.GA19043@metacarta.com> Message-ID: Jessica, For debugging the layer, one easy way is to just send a mode=map request through your browser. http://map.deed.state.mn.us/cgi-bin/mapserv.exe?map=/OpenLayers/OpenLayers.map&layers=county&mode=map David. On 7/27/07, Christopher Schmidt wrote: > > On Fri, Jul 27, 2007 at 10:44:37AM -0500, fend0009 wrote: > > Hi list: > > > > I tried to move an OpenLayers project from the U of M school server > (working > > fine) to my work server but am having problems retrieving the map > layers. > > http://map.deed.state.mn.us/OpenLayers/OpenLayers.html > > > I entered the URL in the html file and got an error message saying > > CGI Error > > The specified CGI application misbehaved by not returning a complete set > of > > HTTP headers. > > This means "MapServer broke while trying to render the image." There > could be a number of reasons. Investigate your MapServer setup. Check > your mapfiles. Once you get a single working image out of MapServer, > *then* work on making OpenLayers work. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070727/94d21ba4/attachment.html From rwburgholzer at deq.virginia.gov Fri Jul 27 14:30:33 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8CA@deqex01.deq.local> I am trying to adapt the wfs-t.html demo to write a feature to my own server. Is there a special setting that I need in my wfs definitions in my mapfile (using UMN mapserver as my wfs engine) to write the features? Thanks, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070727/76669f29/attachment.html From rwburgholzer at deq.virginia.gov Fri Jul 27 14:38:54 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8CC@deqex01.deq.local> Duh. I just noticed the "read-only" clause in the mapserver WFS docs. Presuming this is still true, I guess I will have to install geo-server... r.b. -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Burgholzer,Robert Sent: Friday, July 27, 2007 2:31 PM To: Users@openlayers.org Subject: [OpenLayers-Users] writing to my own wfs server I am trying to adapt the wfs-t.html demo to write a feature to my own server. Is there a special setting that I need in my wfs definitions in my mapfile (using UMN mapserver as my wfs engine) to write the features? Thanks, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070727/80a75ba0/attachment.html From crschmidt at metacarta.com Fri Jul 27 14:42:05 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF8CA@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A37025EF8CA@deqex01.deq.local> Message-ID: <20070727184205.GA19483@metacarta.com> On Fri, Jul 27, 2007 at 02:30:33PM -0400, Burgholzer,Robert wrote: > I am trying to adapt the wfs-t.html demo to write a feature to my own > server. Is there a special setting that I need in my wfs definitions in > my mapfile (using UMN mapserver as my wfs engine) to write the features? I don't think that MapServer supports WFS-T. Regards, -- Christopher Schmidt MetaCarta From rwburgholzer at deq.virginia.gov Fri Jul 27 14:46:50 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8CD@deqex01.deq.local> Ahh yes, double-drat! Don't suppose anyone has put together any PostGIS functions in openlayers that will permit writing a WKT feature directly to a PostGIS server? I am really dreading the prospect of another map-serving entity on my machine. Thanks, r.b. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Friday, July 27, 2007 2:42 PM To: Burgholzer,Robert Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:30:33PM -0400, Burgholzer,Robert wrote: > I am trying to adapt the wfs-t.html demo to write a feature to my own > server. Is there a special setting that I need in my wfs definitions in > my mapfile (using UMN mapserver as my wfs engine) to write the features? I don't think that MapServer supports WFS-T. Regards, -- Christopher Schmidt MetaCarta From david.fawcett at gmail.com Fri Jul 27 14:52:53 2007 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] WMS getFeatureInfo output format Message-ID: I am building a simple app following the getFeatureInfo example with the CIA FactBook. When I query a feature, I get the error: msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). I am using MapServer as the WMS server. I am assuming that I need to add some metadata entry to set the output format for getFeatureInfo requests. Any suggestions? Does anyone have any examples where they style the query output more? Thanks, David. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070727/dfa9b089/attachment.html From maciaktj at gvsu.edu Fri Jul 27 14:56:53 2007 From: maciaktj at gvsu.edu (TJ Maciak) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] WMS getFeatureInfo output format In-Reply-To: References: Message-ID: <46AA082F.318A.00A5.0@gvsu.edu> I ran into this problem too... make sure you have this in your .map file METADATA 'wms_feature_info_mime_type' "text/html" END along with your other wms_title etc. etc. TJ >>> "David Fawcett" 07/27/07 2:52 PM >>> I am building a simple app following the getFeatureInfo example with the CIA FactBook. When I query a feature, I get the error: msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). I am using MapServer as the WMS server. I am assuming that I need to add some metadata entry to set the output format for getFeatureInfo requests. Any suggestions? Does anyone have any examples where they style the query output more? Thanks, David. From crschmidt at metacarta.com Fri Jul 27 15:40:46 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF8CD@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A37025EF8CD@deqex01.deq.local> Message-ID: <20070727194046.GB19790@metacarta.com> On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta From rwburgholzer at deq.virginia.gov Fri Jul 27 15:44:04 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8CE@deqex01.deq.local> I am thinking perhaps to post the data from the openlayers, and intercept it with some php, that can then enter it into postgis via WKT (assuming that the openlayers wfs-t object produces point cords for the shapes, which I haven't verified, but assume that it must). I will look at the packages to see further. r.b. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Friday, July 27, 2007 3:41 PM To: Burgholzer,Robert Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta From barry at barryhunter.co.uk Sun Jul 29 15:18:11 2007 From: barry at barryhunter.co.uk (Barry Hunter) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] controlling number of off-edge tiles that loads In-Reply-To: <8adaa5bb0707291217w1b38c1edv2a1fe63c4af3b141@mail.gmail.com> References: <8adaa5bb0707291217w1b38c1edv2a1fe63c4af3b141@mail.gmail.com> Message-ID: <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> This is almost certainly a very simple question, and I sure I saw something mentioning this somewhere, but darned if can find it now... Anyway I have created a custom layer, which is based on the WMS layer - it all works great and displays fine. However many more tiles than are needed are fetched, this is understandable its 'precaching' tiles so that the user can drag in any direction quickly. For example only 24 tiles are needed to fill the whole screen (including part tiles) - however 52 tiles are retrieved, this is a bit overkill, I would be happy with the user having to wait a bit rather than download that many tiles unneeded. I guess there is simple setting to adjust this? Many thanks, Barry P.S. Cant show the map yet, needs to get approval from above first. But as soon as it available will post it :) -- Barry - www.nearby.org.uk - www.geograph.org.uk - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070729/d9f0264c/attachment.html From nick at hogweed.org Sun Jul 29 17:10:30 2007 From: nick at hogweed.org (Nick Whitelegg) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] controlling number of off-edge tiles that loads In-Reply-To: <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> References: <8adaa5bb0707291217w1b38c1edv2a1fe63c4af3b141@mail.gmail.com> <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> Message-ID: <200707292210.31104.nick@hogweed.org> On Sunday 29 Jul 2007 20:18, Barry Hunter wrote: > This is almost certainly a very simple question, and I sure I saw something > mentioning this somewhere, but darned if can find it now... > > Anyway I have created a custom layer, which is based on the WMS layer - it > all works great and displays fine. However many more tiles than are needed > are fetched, this is understandable its 'precaching' tiles so that the > user can drag in any direction quickly. > > For example only 24 tiles are needed to fill the whole screen (including > part tiles) - however 52 tiles are retrieved, this is a bit overkill, I > would be happy with the user having to wait a bit rather than download that > many tiles unneeded. I guess there is simple setting to adjust this? > > Many thanks, > > Barry > > P.S. Cant show the map yet, needs to get approval from above first. But as > soon as it available will post it :) Hello Barry, I think setting the 'buffer' parameter to 1 will do it. From the Freemap code: var mapnik = new OpenLayers.Layer.WMS( "Freemap/Mapnik", "http://www.free-map.org.uk/cgi-bin/render", {buffer:1} ); Nick From crschmidt at metacarta.com Sun Jul 29 17:10:58 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] controlling number of off-edge tiles that loads In-Reply-To: <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> References: <8adaa5bb0707291217w1b38c1edv2a1fe63c4af3b141@mail.gmail.com> <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> Message-ID: <20070729211058.GA3189@metacarta.com> On Sun, Jul 29, 2007 at 08:18:11PM +0100, Barry Hunter wrote: > This is almost certainly a very simple question, and I sure I saw something > mentioning this somewhere, but darned if can find it now... > > Anyway I have created a custom layer, which is based on the WMS layer - it > all works great and displays fine. However many more tiles than are needed > are fetched, this is understandable its 'precaching' tiles so that the user > can drag in any direction quickly. > > For example only 24 tiles are needed to fill the whole screen (including > part tiles) - however 52 tiles are retrieved, this is a bit overkill, I > would be happy with the user having to wait a bit rather than download that > many tiles unneeded. I guess there is simple setting to adjust this? http://dev.openlayers.org/docs/files/OpenLayers/Layer/Grid-js.html#OpenLayers.Layer.Grid.buffer WMS('a', 'url', {'params':'here'}, {buffer: 0}) -- Chris From barry at barryhunter.co.uk Sun Jul 29 17:19:26 2007 From: barry at barryhunter.co.uk (Barry Hunter) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] controlling number of off-edge tiles that loads In-Reply-To: <20070729211058.GA3189@metacarta.com> References: <8adaa5bb0707291217w1b38c1edv2a1fe63c4af3b141@mail.gmail.com> <8adaa5bb0707291218n2431593dt13e424f823df7f7c@mail.gmail.com> <20070729211058.GA3189@metacarta.com> Message-ID: <8adaa5bb0707291419n57f36abbi692e7b78d7849124@mail.gmail.com> Ah thanks to you both! I forgot that WMS layer is based on the grid one, just knew it had to be a simple setting somewhere. BTW the new documentation (I think its new in the past few days?) is a huge improvement :) (also sorry Chris for the duplicate email, another newbie error :( On 7/29/07, Christopher Schmidt wrote: > > On Sun, Jul 29, 2007 at 08:18:11PM +0100, Barry Hunter wrote: > > This is almost certainly a very simple question, and I sure I saw > something > > mentioning this somewhere, but darned if can find it now... > > > > Anyway I have created a custom layer, which is based on the WMS layer - > it > > all works great and displays fine. However many more tiles than are > needed > > are fetched, this is understandable its 'precaching' tiles so that the > user > > can drag in any direction quickly. > > > > For example only 24 tiles are needed to fill the whole screen (including > > part tiles) - however 52 tiles are retrieved, this is a bit overkill, I > > would be happy with the user having to wait a bit rather than download > that > > many tiles unneeded. I guess there is simple setting to adjust this? > > > http://dev.openlayers.org/docs/files/OpenLayers/Layer/Grid-js.html#OpenLayers.Layer.Grid.buffer > > WMS('a', 'url', {'params':'here'}, {buffer: 0}) > > -- Chris > -- Barry - www.nearby.org.uk - www.geograph.org.uk - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070729/df53a637/attachment.html From rwburgholzer at deq.virginia.gov Mon Jul 30 10:37:15 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:38 2010 Subject: [OpenLayers-Users] returning text from simple ajax request Message-ID: <6C097DA58429B743A67070F98BE73A37025DD64C@deqex01.deq.local> I am trying to do a simple request of data (just a dummy page as the target for now), but I am missing some crucial understanding, as this is not working for me. Any small guidance anyone could provide would be helpful, I am very new to working with Ajax. My goal at the time being is to simply initiate a request from a page, and then alert the data returned by that page. I assumed that an Ajax request would be the right way to go. I am initiating the request as follows: Var url = 'test.php' var responseObj = new OpenLayers.Ajax.Request(url, { method: 'post', postBody: data, onComplete: success, onFailure: failure } ); var responseData = responseObj.transport.responseText; alert(responseData); And the request IS being made, as verified by my httpd access log: 172.16.210.66 - - [30/Jul/2007:10:31:14 -0400] "POST /wms_maps/test.php HTTP/1.1" 200 154 However, I can't seem to find the text that is generated by test.php in my responseObj. I am attempting to access this text with the "responseText" property of my responseObj, but am getting only a blank (whereas the script itself returns several lines of text). Sorry if this is a dumb question, I have not been able to nabble any successful tutorials on this. TIA, 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/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070730/9669facd/attachment.html From rwburgholzer at deq.virginia.gov Mon Jul 30 10:49:13 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] returning text from simple ajax request Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8D2@deqex01.deq.local> Ahh, I came across the following (after claiming it could not be done): http://www.prototypejs.org/api/ajax/request This has helped me. I was failing to specify an "onComplete" method, so I was rushing to evaluate the response before it happened. r.b. -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Burgholzer,Robert Sent: Monday, July 30, 2007 10:37 AM To: Users@openlayers.org Subject: [OpenLayers-Users] returning text from simple ajax request I am trying to do a simple request of data (just a dummy page as the target for now), but I am missing some crucial understanding, as this is not working for me. Any small guidance anyone could provide would be helpful, I am very new to working with Ajax. My goal at the time being is to simply initiate a request from a page, and then alert the data returned by that page. I assumed that an Ajax request would be the right way to go. I am initiating the request as follows: Var url = 'test.php' var responseObj = new OpenLayers.Ajax.Request(url, { method: 'post', postBody: data, onComplete: success, onFailure: failure } ); var responseData = responseObj.transport.responseText; alert(responseData); And the request IS being made, as verified by my httpd access log: 172.16.210.66 - - [30/Jul/2007:10:31:14 -0400] "POST /wms_maps/test.php HTTP/1.1" 200 154 However, I can't seem to find the text that is generated by test.php in my responseObj. I am attempting to access this text with the "responseText" property of my responseObj, but am getting only a blank (whereas the script itself returns several lines of text). Sorry if this is a dumb question, I have not been able to nabble any successful tutorials on this. TIA, 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/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070730/0b791d86/attachment.html From rwburgholzer at deq.virginia.gov Mon Jul 30 11:09:29 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] returning text from simple ajax request Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8D3@deqex01.deq.local> OK, I am well along here, able to connect, getting output from my test.php script, however, my post data seems inaccessible to me. I am passing the coordinates of a user entered line-string to my script via post, (excerpted from WFS.js and wfs-t.html), and while the alert prior to sending shows the correct value of "data", I was assuming that I would be able to see that data in my $_POST variable in the php script. However, a print_r($_POST) yields an empty array. Anyone have an idea of what I am missing? Thanks, r.b. code: data = OpenLayers.Ajax.serializeXMLToString(data); alert(data); var responseObj = new OpenLayers.Ajax.Request(url, { method: 'post', postBody: data, onSuccess: function(transport) { alert('Successful Connection'); }, onComplete: function(transport) { alert(transport.responseText); } } ); -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Burgholzer,Robert Sent: Monday, July 30, 2007 10:49 AM To: Users@openlayers.org Subject: Re: [OpenLayers-Users] returning text from simple ajax request Ahh, I came across the following (after claiming it could not be done): http://www.prototypejs.org/api/ajax/request This has helped me. I was failing to specify an "onComplete" method, so I was rushing to evaluate the response before it happened. r.b. -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Burgholzer,Robert Sent: Monday, July 30, 2007 10:37 AM To: Users@openlayers.org Subject: [OpenLayers-Users] returning text from simple ajax request I am trying to do a simple request of data (just a dummy page as the target for now), but I am missing some crucial understanding, as this is not working for me. Any small guidance anyone could provide would be helpful, I am very new to working with Ajax. My goal at the time being is to simply initiate a request from a page, and then alert the data returned by that page. I assumed that an Ajax request would be the right way to go. I am initiating the request as follows: Var url = 'test.php' var responseObj = new OpenLayers.Ajax.Request(url, { method: 'post', postBody: data, onComplete: success, onFailure: failure } ); var responseData = responseObj.transport.responseText; alert(responseData); And the request IS being made, as verified by my httpd access log: 172.16.210.66 - - [30/Jul/2007:10:31:14 -0400] "POST /wms_maps/test.php HTTP/1.1" 200 154 However, I can't seem to find the text that is generated by test.php in my responseObj. I am attempting to access this text with the "responseText" property of my responseObj, but am getting only a blank (whereas the script itself returns several lines of text). Sorry if this is a dumb question, I have not been able to nabble any successful tutorials on this. TIA, 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/ Web-Based Water Supply Planning Demo: http://soulswimmer.dynalias.net/models/wsdemo/demo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070730/48800e0d/attachment.html From erik.uzureau at metacarta.com Mon Jul 30 11:33:05 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Virtual Earth and opacity in Firefox In-Reply-To: <20070727115428.GB18334@metacarta.com> References: <11825153.post@talk.nabble.com> <20070727115428.GB18334@metacarta.com> Message-ID: <6ae3fb590707300833l2400b3f1nf7e0ad121da1dd26@mail.gmail.com> I've opened: http://trac.openlayers.org/ticket/871 to track this.... though I'm not sure what can really be done. :-/ Erik On 7/27/07, Christopher Schmidt wrote: > On Fri, Jul 27, 2007 at 01:41:02AM -0700, GregM wrote: > > > > I have noticed that after attaching VE control to the html page, layers and > > controls on the map are not transparent if using Firefox. > > Is this VE or Firefox or OE fault ? > > Virtual Earth does this in some way. I don't remember the specifics of > when exactly it happens, but when you incle the script in your page, > transparency goes bye bye. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From arnd.wippermann at web.de Mon Jul 30 12:36:44 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] writing to my own wfs server In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF8CE@deqex01.deq.local> Message-ID: Hello Robert, I would think, you can talk to your postgis-db via odbc. I use the editing functions of openlayers to draw a feature, select that feature and use a serverside asp-script to insert the selected feature as WKT string via odbc into an access-db. With mapserver and ogr I can request the geometry and attributes from the access-db and show it in the map. It is also possible with a WMS GetFeatureRequest to select features from the db and delete the features in the db with odbc. When the great editing tools from openlayers get the possibility to update features (changing the geometry after drawing it), one can use an internet explorer and openlayers for drawing, updating and deleting geometry data. 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 Burgholzer,Robert Gesendet: Freitag, 27. Juli 2007 21:44 An: Users@openlayers.org Betreff: Re: [OpenLayers-Users] writing to my own wfs server I am thinking perhaps to post the data from the openlayers, and intercept it with some php, that can then enter it into postgis via WKT (assuming that the openlayers wfs-t object produces point cords for the shapes, which I haven't verified, but assume that it must). I will look at the packages to see further. r.b. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Friday, July 27, 2007 3:41 PM To: Burgholzer,Robert Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From rwburgholzer at deq.virginia.gov Mon Jul 30 13:15:26 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025DD64D@deqex01.deq.local> Arnd, Thanks much for your response. I am endeavoring to do what you suggest, although using PHP's native PostgreSQL connectors instead of ODBC. Currently, I am using the wfs-t.html scripts as my basis, and passing in the result of "OpenLayers.Ajax.serializeXMLToString(data);" to get the edited features into a form I can work with. Having done that, I realize I now have to contend with parsing this GML, and am wading through that. I would be interested in any code that you have put together that can handle the conversion from GML to WKT (if that is in fact what you are doing). Regards, r.b. -----Original Message----- From: arnd.wippermann@web.de [mailto:arnd.wippermann@web.de] Sent: Monday, July 30, 2007 12:37 PM To: Burgholzer,Robert Cc: users@openlayers.org Subject: AW: [OpenLayers-Users] writing to my own wfs server Hello Robert, I would think, you can talk to your postgis-db via odbc. I use the editing functions of openlayers to draw a feature, select that feature and use a serverside asp-script to insert the selected feature as WKT string via odbc into an access-db. With mapserver and ogr I can request the geometry and attributes from the access-db and show it in the map. It is also possible with a WMS GetFeatureRequest to select features from the db and delete the features in the db with odbc. When the great editing tools from openlayers get the possibility to update features (changing the geometry after drawing it), one can use an internet explorer and openlayers for drawing, updating and deleting geometry data. 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 Burgholzer,Robert Gesendet: Freitag, 27. Juli 2007 21:44 An: Users@openlayers.org Betreff: Re: [OpenLayers-Users] writing to my own wfs server I am thinking perhaps to post the data from the openlayers, and intercept it with some php, that can then enter it into postgis via WKT (assuming that the openlayers wfs-t object produces point cords for the shapes, which I haven't verified, but assume that it must). I will look at the packages to see further. r.b. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Friday, July 27, 2007 3:41 PM To: Burgholzer,Robert Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From crschmidt at metacarta.com Mon Jul 30 18:14:30 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Virtual Earth and opacity in Firefox In-Reply-To: <6ae3fb590707300833l2400b3f1nf7e0ad121da1dd26@mail.gmail.com> References: <11825153.post@talk.nabble.com> <20070727115428.GB18334@metacarta.com> <6ae3fb590707300833l2400b3f1nf7e0ad121da1dd26@mail.gmail.com> Message-ID: <20070730221430.GC7976@metacarta.com> On Mon, Jul 30, 2007 at 11:33:05AM -0400, Erik Uzureau wrote: > I've opened: > http://trac.openlayers.org/ticket/871 > > to track this.... though I'm not sure what can really be done. :-/ Made a wikipage for these and other similar issues: http://trac.openlayers.org/wiki/Known%20Issues Regards, -- Christopher Schmidt MetaCarta From rwburgholzer at deq.virginia.gov Tue Jul 31 09:00:17 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025DD650@deqex01.deq.local> Arnd, I managed to locate the following object "OpenLayers.Format.WKT" in the very comprehensive library. (I become more impressed with the openlayers core libraries every day - kudos to whoever deserves them). I followed your lead on this alternative format, and now it is working quite nicely. So, in my modified WFS.js, I have created a method that takes all created shapes and places them in a POST array, which is then read by a php script which has access to the PostGIS constructirs for setting the SRID(epsg), code follows: Javascript: --> var wktObj = new OpenLayers.Format.WKT; for(var i=0; i BEGIN php: $wkt = $_POST['WKTDATA']; #print_r($wkt); $i = 2; foreach ($wkt as $thiswkt) { $listobject->querystring = " insert into proj_features (gid, name, the_geom) "; $listobject->querystring .= " select $i, 'test shape', GeomFromText('$thiswkt', 4326) "; print("$listobject->querystring "); $listobject->performQuery(); $i++; } END php -----Original Message----- From: arnd.wippermann@web.de [mailto:arnd.wippermann@web.de] Sent: Monday, July 30, 2007 4:34 PM To: Burgholzer,Robert Subject: AW: [OpenLayers-Users] writing to my own wfs server Hello Robert, I have a look at the wfs-t.html and have seen, that the feature.geometry is a WKTString. Perhaps you can use this instead of the XMLserialization. After adding the EPSG-Code to the WKTString you can insert the string into the geometry column of your db. I myself didnt use GML, but perhaps there is something in Openlayers to convert GML to WKT (GML to feature -> feature.geometry = WKTString ?). The code snippets show how I use the drawing and saving of features. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ This is the way I use the editing tool, but I think I must have a closer look at wfs-t.html First : draw a point, line or polygon Second : select the feature Third : call Insertfunction (inserts the feature into db, deletes feature from vector-layer and refreshes the WMS-layer with the new feature 2. Part of the script to get the selected feature map.events.register('click', map, function (e) { ... if(QueryMode == false) { if(map.layers[3].selectedFeatures.length>0) { WKTString = map.layers[3].selectedFeatures[0].geometry; var derTyp = WKTString.CLASS_NAME.replace(/OpenLayers.Geometry./i,""); ... } else { //Query WMS DataLayer, GetFeatureRequest, Returnvalue : ID_GEOOBJEKT //Selection for deleting ... } ... 3. Part of the script to insert or delete a feature ... if(flag==1) { var derTyp = WKTString.CLASS_NAME.replace(/OpenLayers.Geometry./i,"").toUpperCase(); if(derTyp=="POINT") var db = "GEOPOINTS"; else if(derTyp=="LINESTRING") var db = "GEOLINES"; else if(derTyp=="POLYGON") var db = "GEOPOLYGONS"; else var db = ""; if(db=="") { alert("Der Typ " + derTyp + " wird nicht unterst?tzt!"); return false; } var GEOOBJEKT = document.getElementById("iGEOOBJEKT").value; if(GEOOBJEKT=="") { alert("GEOOBJEKT benennen!"); return false; } var POSITION = WKTString.toString(); //wird nicht gebraucht, sondern serverseitig erstellt var SQLString = "INSERT INTO [" + db + "] (GEOOBJEKT,POSITION,KATEGORIE) VALUES ('" + GEOOBJEKT + "'," + POSITION + ", 31466','" + KATEGORIE + "');"; alert(SQLString); var theUrl = aspfile; var theParams = "MODE=INSERT"; theParams += "&DB=" + db; theParams += "&GEOOBJEKT=" + GEOOBJEKT; theParams += "&POSITION=" + POSITION; theParams += "&KATEGORIE=" + KATEGORIE; } else if(flag==-1) { var theUrl = aspfile; var theParams = "MODE=DELETE"; theParams += "&DB=" + parDB; theParams += "&ID_GEOOBJEKT=" + parID; } var myAjax = new OpenLayers.Ajax.Request( theUrl, { method: 'get', parameters: theParams, onComplete: showResponseGEO, onFailure: showResponseFailureGEO }); ... ################# part of wfs-t.html df = new OpenLayers.Control.DrawFeature(rlayer, OpenLayers.Handler.Path, {handlerOptions: {'freehand': false}, 'displayClass': 'olControlDrawFeaturePath'}); df.featureAdded = function(feature) { feature.state = OpenLayers.State.INSERT; feature.style['strokeColor'] = "#0000ff"; feature.layer.drawFeature(feature); //################################################### //#### Openlayers use a WKTString for the feature //#### (but without the EPSG-Code for the projection) //################################################### WKTString = feature.geometry; alert(WKTString.CLASS_NAME + "\r\n" + WKTString); //################################################### } ################# -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Burgholzer,Robert Gesendet: Montag, 30. Juli 2007 19:15 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] writing to my own wfs server Arnd, Thanks much for your response. I am endeavoring to do what you suggest, although using PHP's native PostgreSQL connectors instead of ODBC. Currently, I am using the wfs-t.html scripts as my basis, and passing in the result of "OpenLayers.Ajax.serializeXMLToString(data);" to get the edited features into a form I can work with. Having done that, I realize I now have to contend with parsing this GML, and am wading through that. I would be interested in any code that you have put together that can handle the conversion from GML to WKT (if that is in fact what you are doing). Regards, r.b. -----Original Message----- From: arnd.wippermann@web.de [mailto:arnd.wippermann@web.de] Sent: Monday, July 30, 2007 12:37 PM To: Burgholzer,Robert Cc: users@openlayers.org Subject: AW: [OpenLayers-Users] writing to my own wfs server Hello Robert, I would think, you can talk to your postgis-db via odbc. I use the editing functions of openlayers to draw a feature, select that feature and use a serverside asp-script to insert the selected feature as WKT string via odbc into an access-db. With mapserver and ogr I can request the geometry and attributes from the access-db and show it in the map. It is also possible with a WMS GetFeatureRequest to select features from the db and delete the features in the db with odbc. When the great editing tools from openlayers get the possibility to update features (changing the geometry after drawing it), one can use an internet explorer and openlayers for drawing, updating and deleting geometry data. 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 Burgholzer,Robert Gesendet: Freitag, 27. Juli 2007 21:44 An: Users@openlayers.org Betreff: Re: [OpenLayers-Users] writing to my own wfs server I am thinking perhaps to post the data from the openlayers, and intercept it with some php, that can then enter it into postgis via WKT (assuming that the openlayers wfs-t object produces point cords for the shapes, which I haven't verified, but assume that it must). I will look at the packages to see further. r.b. -----Original Message----- From: Christopher Schmidt [mailto:crschmidt@metacarta.com] Sent: Friday, July 27, 2007 3:41 PM To: Burgholzer,Robert Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > Ahh yes, double-drat! > > Don't suppose anyone has put together any PostGIS functions in > openlayers that will permit writing a WKT feature directly to a PostGIS > server? I am really dreading the prospect of another map-serving entity > on my machine. If you mean something that allows you to talk to PostGIS directly from a web browser... I can't imagine how that would work. You're going to need some kind of layer inbetween that speaks a non-binary language. FeatureServer is a Python CGI that is designed to speak a variety of languages on the input side and output side, and is designed to be as little work as possible to install. However, it requires some level of configuration, and it is likely, or even possible, that you would be better off with GeoServer. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From erik.uzureau at metacarta.com Tue Jul 31 10:23:05 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Virtual Earth and opacity in Firefox In-Reply-To: <20070730221430.GC7976@metacarta.com> References: <11825153.post@talk.nabble.com> <20070727115428.GB18334@metacarta.com> <6ae3fb590707300833l2400b3f1nf7e0ad121da1dd26@mail.gmail.com> <20070730221430.GC7976@metacarta.com> Message-ID: <6ae3fb590707310723h237f198an4893cb9f4f1aff8b@mail.gmail.com> Note that for consistency, I've renamed this wiki to: http://trac.openlayers.org/wiki/KnownIssues ..and I've closed that ticket as "won't fix" with a link On 7/30/07, Christopher Schmidt wrote: > On Mon, Jul 30, 2007 at 11:33:05AM -0400, Erik Uzureau wrote: > > I've opened: > > http://trac.openlayers.org/ticket/871 > > > > to track this.... though I'm not sure what can really be done. :-/ > > Made a wikipage for these and other similar issues: > > http://trac.openlayers.org/wiki/Known%20Issues > > Regards, > -- > Christopher Schmidt > MetaCarta > From mollic503 at yahoo.com Tue Jul 31 11:47:39 2007 From: mollic503 at yahoo.com (mt) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Openlayers Image Overlay question Message-ID: <433155.26311.qm@web60018.mail.yahoo.com> Hi, I'm trying to overlay an image layer (jpg) over a base map layer (google, yahoo, or my own...) but I can't seem to get it to work. The best I can do is to load either my overlay, or my image...but not both on the screen at the same time. In other words...let's say I have an aerial photo of las vegas at high res, and a lower res image of Nevada (both orthorectified with relevant info). how do I place both images in an openlayers map at the same time, with the Las Vegas image on top of the Nevada image? Is that possible? Ideas? Suggestions? Thanks!! mike ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070731/e5a42e5c/attachment.html From conde at adinet.com.uy Tue Jul 31 11:56:20 2007 From: conde at adinet.com.uy (conde) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] =?iso-8859-1?q?Shape=B4s=3F?= Message-ID: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier> Hi all! I am a new on this. I want to use OpenLayer on a project and I want to use my own shape data files (.shp) how I can do this? Only with OpenLayer. Tks all! Best regards Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070731/3f66f16b/attachment.html From crschmidt at metacarta.com Tue Jul 31 12:00:23 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Openlayers Image Overlay question In-Reply-To: <433155.26311.qm@web60018.mail.yahoo.com> References: <433155.26311.qm@web60018.mail.yahoo.com> Message-ID: <20070731160023.GD11029@metacarta.com> On Tue, Jul 31, 2007 at 08:47:39AM -0700, mt wrote: > Hi, > I'm trying to overlay an image layer (jpg) over a base map layer > (google, yahoo, or my own...) but I can't seem to get it to work. The > best I can do is to load either my overlay, or my image...but not both > on the screen at the same time. > > In other words...let's say I > have an aerial photo of las vegas at high res, and a lower res image of > Nevada (both orthorectified with relevant info). how do I place both > images in an openlayers map at the same time, with the Las Vegas image > on top of the Nevada image? Is that possible? Sounds like what you want is: http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.isBaseLayer {'isBaseLayer':false} Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Tue Jul 31 12:01:08 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Shape?s? In-Reply-To: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier> References: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier> Message-ID: <20070731160108.GE11029@metacarta.com> On Tue, Jul 31, 2007 at 12:56:20PM -0300, conde wrote: > Hi all! > > I am a new on this. > > I want to use OpenLayer on a project and I want to use my own shape data > files (.shp) how I can do this? Only with OpenLayer. You can't. OpenLayers is a client side display application. You will need server side software to serve the data as vectors or render it into images -- most likely, you're looking for a WMS Server like MapServer or GeoServer. Regards, -- Christopher Schmidt MetaCarta From darb1 at bas.ac.uk Tue Jul 31 11:52:50 2007 From: darb1 at bas.ac.uk (David Herbert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Problems with OpenLayers overview map Message-ID: (Apologies for posting to both lists - not sure which one it belongs in!). I have Tilecache 1.9rc3 running as a CGI, and have had trouble getting my OpenLayers overview map to display anything since. If I look in Firefox at pageinfo->media, I find that the tiles which should have displayed my overview map are zero length, and if I type one such URL e.g: http://10.48.1.76:8084/?LAYERS=Coastline%20and%20bathymetry&STYLES=sggis_bathymetry_polygon%2Csggis_coastline&FORMAT=image%2Fpng&TRANSPARENT=off&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2007056&BBOX=-1616%2C61560%2C-1104%2C62072&WIDTH=256&HEIGHT=256 into the browser, I get the following error: An error occurred: can't find resolution index for 2.000000. Available resolutions are: [200.37037000000001, 100.185185, 50.092592500000002, 25.046296250000001, 12.523148125000001, 6.2615740625000003, 3.1307870312500001, 1.5653935156250001, 0.78269675781250003, 0.39134837890625002, 0.19567418945312501, 0.097837094726562504, 0.048918547363281252, 0.024459273681640626, 0.012229636840820313, 0.0061148184204101565, 0.0030574092102050783, 0.0015287046051025391, 0.00076435230255126956, 0.00038217615127563478] The overview map is given the following options: var sgOverviewOpts = { 'maxExtent' : new OpenLayers.Bounds(-82000,7800,80000,116000), 'maxResolution' : 200.370370, 'minResolution' : 0.5, 'units' : 'm', 'projection' : EPSG:2007056 }; var overview = new OpenLayers.Control.OverviewMap(sgOverviewOpts); map.addControl(overview); which are the same as I give my Coastline/bathymetry base layer. My tilecache.cfg contains the following for the same layer: [Coastline and bathymetry] type=WMSLayer url=http://10.48.1.76:8080/geoserver/wms?transparent=off layers=sggis:bathy_poly,sggis:coast_polygon extension=png bbox=-82000,7800,80000,116000 maxResolution=200.370370 srs=EPSG:2007056 Regular tiles for the map appear fine. It's just when tiles are fetched for the overview map that the problems arise. Any idea how I get round this? Thanks for any help, David Herbert British Antarctic Survey. -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From crschmidt at metacarta.com Tue Jul 31 12:09:36 2007 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] [Tilecache] Problems with OpenLayers overview map In-Reply-To: References: Message-ID: <20070731160936.GG11029@metacarta.com> On Tue, Jul 31, 2007 at 04:52:50PM +0100, David Herbert wrote: > (Apologies for posting to both lists - not sure which one it belongs > in!). > > I have Tilecache 1.9rc3 running as a CGI, and have had trouble getting > my OpenLayers overview map to display anything since. If I look in > Firefox at pageinfo->media, I find that the tiles which should have > displayed my overview map are zero length, and if I type one such URL > e.g: > > http://10.48.1.76:8084/?LAYERS=Coastline%20and%20bathymetry&STYLES=sggis_bathymetry_polygon%2Csggis_coastline&FORMAT=image%2Fpng&TRANSPARENT=off&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2007056&BBOX=-1616%2C61560%2C-1104%2C62072&WIDTH=256&HEIGHT=256 > > into the browser, I get the following error: > > An error occurred: can't find resolution index for 2.000000. Available > resolutions are: > [200.37037000000001, 100.185185, 50.092592500000002, > 25.046296250000001, 12.523148125000001, 6.2615740625000003, > 3.1307870312500001, 1.5653935156250001, 0.78269675781250003, > 0.39134837890625002, 0.19567418945312501, 0.097837094726562504, > 0.048918547363281252, 0.024459273681640626, 0.012229636840820313, > 0.0061148184204101565, 0.0030574092102050783, 0.0015287046051025391, > 0.00076435230255126956, 0.00038217615127563478] > > The overview map is given the following options: > > var sgOverviewOpts = { > 'maxExtent' : new OpenLayers.Bounds(-82000,7800,80000,116000), > > 'maxResolution' : 200.370370, > 'minResolution' : 0.5, > 'units' : 'm', > 'projection' : EPSG:2007056 > }; > > var overview = new OpenLayers.Control.OverviewMap(sgOverviewOpts); > map.addControl(overview); "The thing to keep in mind here is that the OverviewMap control is a control, not a map. This is an important distinction. The OverviewMap control has a map, but it is not a map itself. To set options on the control, use properties of the options object as you would with other controls. To set properties on the little map that the OverviewMap control controls, use the special mapOptions property of the options object." -- http://trac.openlayers.org/wiki/Control/OverviewMap#Custommapoptions-projectionsextentsetc. Regards, -- Christopher Schmidt MetaCarta From drspencer at hotmail.com Tue Jul 31 14:34:12 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Shape?s? In-Reply-To: <20070731160108.GE11029@metacarta.com> References: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier> <20070731160108.GE11029@metacarta.com> Message-ID: <11929965.post@talk.nabble.com> Well, if it is a small amount of data, you could convert it to GML and have OpenLayers display it. Magnus Christopher Schmidt-4 wrote: > > On Tue, Jul 31, 2007 at 12:56:20PM -0300, conde wrote: >> Hi all! >> >> I am a new on this. >> >> I want to use OpenLayer on a project and I want to use my own shape data >> files (.shp) how I can do this? Only with OpenLayer. > > You can't. OpenLayers is a client side display application. You will > need server side software to serve the data as vectors or render it into > images -- most likely, you're looking for a WMS Server like MapServer or > GeoServer. > > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Shape%C2%B4s--tf4193952.html#a11929965 Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Tue Jul 31 16:34:59 2007 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] writing to my own wfs server In-Reply-To: <1185858561.8137.3.camel@mellon> Message-ID: Hello Jachym, I'm impressed. It's a very nice example to show the possibilities of editing client side. I cancel my last sentence of my post. It's the first time, that I have seen this. With FF there are no problems to use all the functions, but with IE6 i get the error message "'console' is undefined". Is your javascript open source? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: jachym.cepicky@gmail.com [mailto:jachym.cepicky@gmail.com] Gesendet: Dienstag, 31. Juli 2007 07:09 An: Arnd Wippermann Betreff: Re: [OpenLayers-Users] writing to my own wfs server hi, Arnd Wippermann p??e v Po 30. 07. 2007 v 18:36 +0200: > Hello Robert, > > I would think, you can talk to your postgis-db via odbc. > > I use the editing functions of openlayers to draw a feature, select > that feature and use a serverside asp-script to insert the selected > feature as WKT string via odbc into an access-db. With mapserver and > ogr I can request the geometry and attributes from the access-db and show it in the map. > > It is also possible with a WMS GetFeatureRequest to select features > from the db and delete the features in the db with odbc. > > When the great editing tools from openlayers get the possibility to > update features (changing the geometry after drawing it), one can use > an internet explorer and openlayers for drawing, updating and deleting geometry data. just for inspiration: http://www.bnhelp.cz/mapserv/pokusy/openlayers/digitalizace/ currently, mainly client-side is working jachym > > 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 Burgholzer,Robert > Gesendet: Freitag, 27. Juli 2007 21:44 > An: Users@openlayers.org > Betreff: Re: [OpenLayers-Users] writing to my own wfs server > > I am thinking perhaps to post the data from the openlayers, and > intercept it with some php, that can then enter it into postgis via > WKT (assuming that the openlayers wfs-t object produces point cords > for the shapes, which I haven't verified, but assume that it must). > > I will look at the packages to see further. > > r.b. > > -----Original Message----- > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Sent: Friday, July 27, 2007 3:41 PM > To: Burgholzer,Robert > Cc: Users@openlayers.org > Subject: Re: [OpenLayers-Users] writing to my own wfs server > > On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > > Ahh yes, double-drat! > > > > Don't suppose anyone has put together any PostGIS functions in > > openlayers that will permit writing a WKT feature directly to a > PostGIS > > server? I am really dreading the prospect of another map-serving > entity > > on my machine. > > If you mean something that allows you to talk to PostGIS directly from > a web browser... I can't imagine how that would work. You're going to > need some kind of layer inbetween that speaks a non-binary language. > > FeatureServer is a Python CGI that is designed to speak a variety of > languages on the input side and output side, and is designed to be as > little work as possible to install. However, it requires some level of > configuration, and it is likely, or even possible, that you would be > better off with GeoServer. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub From rwburgholzer at deq.virginia.gov Tue Jul 31 16:46:23 2007 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] writing to my own wfs server Message-ID: <6C097DA58429B743A67070F98BE73A37025EF8DF@deqex01.deq.local> Arnd, This looks cool, but I can't get it to add any features? r.b. -----Original Message----- From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Arnd Wippermann Sent: Tuesday, July 31, 2007 4:35 PM To: jachym.cepicky@gmail.com Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] writing to my own wfs server Hello Jachym, I'm impressed. It's a very nice example to show the possibilities of editing client side. I cancel my last sentence of my post. It's the first time, that I have seen this. With FF there are no problems to use all the functions, but with IE6 i get the error message "'console' is undefined". Is your javascript open source? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: jachym.cepicky@gmail.com [mailto:jachym.cepicky@gmail.com] Gesendet: Dienstag, 31. Juli 2007 07:09 An: Arnd Wippermann Betreff: Re: [OpenLayers-Users] writing to my own wfs server hi, Arnd Wippermann p??e v Po 30. 07. 2007 v 18:36 +0200: > Hello Robert, > > I would think, you can talk to your postgis-db via odbc. > > I use the editing functions of openlayers to draw a feature, select > that feature and use a serverside asp-script to insert the selected > feature as WKT string via odbc into an access-db. With mapserver and > ogr I can request the geometry and attributes from the access-db and show it in the map. > > It is also possible with a WMS GetFeatureRequest to select features > from the db and delete the features in the db with odbc. > > When the great editing tools from openlayers get the possibility to > update features (changing the geometry after drawing it), one can use > an internet explorer and openlayers for drawing, updating and deleting geometry data. just for inspiration: http://www.bnhelp.cz/mapserv/pokusy/openlayers/digitalizace/ currently, mainly client-side is working jachym > > 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 Burgholzer,Robert > Gesendet: Freitag, 27. Juli 2007 21:44 > An: Users@openlayers.org > Betreff: Re: [OpenLayers-Users] writing to my own wfs server > > I am thinking perhaps to post the data from the openlayers, and > intercept it with some php, that can then enter it into postgis via > WKT (assuming that the openlayers wfs-t object produces point cords > for the shapes, which I haven't verified, but assume that it must). > > I will look at the packages to see further. > > r.b. > > -----Original Message----- > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] > Sent: Friday, July 27, 2007 3:41 PM > To: Burgholzer,Robert > Cc: Users@openlayers.org > Subject: Re: [OpenLayers-Users] writing to my own wfs server > > On Fri, Jul 27, 2007 at 02:46:50PM -0400, Burgholzer,Robert wrote: > > Ahh yes, double-drat! > > > > Don't suppose anyone has put together any PostGIS functions in > > openlayers that will permit writing a WKT feature directly to a > PostGIS > > server? I am really dreading the prospect of another map-serving > entity > > on my machine. > > If you mean something that allows you to talk to PostGIS directly from > a web browser... I can't imagine how that would work. You're going to > need some kind of layer inbetween that speaks a non-binary language. > > FeatureServer is a Python CGI that is designed to speak a variety of > languages on the input side and output side, and is designed to be as > little work as possible to install. However, it requires some level of > configuration, and it is likely, or even possible, that you would be > better off with GeoServer. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Jachym Cepicky e-mail: jachym.cepicky@gmail.com URL: http://les-ejk.cz GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From conde at adinet.com.uy Tue Jul 31 16:56:22 2007 From: conde at adinet.com.uy (conde) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Shape?s? In-Reply-To: <11929965.post@talk.nabble.com> References: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier><20070731160108.GE11029@metacarta.com> <11929965.post@talk.nabble.com> Message-ID: <0b5401c7d3b5$4174bf60$0501a8c0@LaptopJavier> GML? I am a new guy on this, waht and how? Tks -----Mensaje original----- De: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] En nombre de kaka Enviado el: Martes, 31 de Julio de 2007 03:34 p.m. Para: users@openlayers.org Asunto: Re: [OpenLayers-Users] Shape?s? Well, if it is a small amount of data, you could convert it to GML and have OpenLayers display it. Magnus Christopher Schmidt-4 wrote: > > On Tue, Jul 31, 2007 at 12:56:20PM -0300, conde wrote: >> Hi all! >> >> I am a new on this. >> >> I want to use OpenLayer on a project and I want to use my own shape data >> files (.shp) how I can do this? Only with OpenLayer. > > You can't. OpenLayers is a client side display application. You will > need server side software to serve the data as vectors or render it into > images -- most likely, you're looking for a WMS Server like MapServer or > GeoServer. > > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Shape%C2%B4s--tf4193952.html#a11929965 Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From jdege at korterra.com Tue Jul 31 17:38:51 2007 From: jdege at korterra.com (Jeff Dege) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Stopping map events Message-ID: <34E056CD4D475841B8C9ABCE956F92F6370AC7@mrburns.KorOffice.local> I have a div that is being drawn on top of the map. Clicks in this div are being interpreted as clicks on the map. Is there a way of either keeping clicks in this div from reaching the map, or of temporarily stopping event handling by the map, while the div is in place? From erik.uzureau at metacarta.com Tue Jul 31 18:47:45 2007 From: erik.uzureau at metacarta.com (Erik Uzureau) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Stopping map events In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370AC7@mrburns.KorOffice.local> References: <34E056CD4D475841B8C9ABCE956F92F6370AC7@mrburns.KorOffice.local> Message-ID: <6ae3fb590707311547r19642b67h5e7ff21920db5dc8@mail.gmail.com> If you search for and study the OpenLayers.Event.Stop() function, you should be able to do this no problem. e On 7/31/07, Jeff Dege wrote: > I have a div that is being drawn on top of the map. > > Clicks in this div are being interpreted as clicks on the map. > > Is there a way of either keeping clicks in this div from reaching the > map, or of temporarily stopping event handling by the map, while the div > is in place? > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From drspencer at hotmail.com Tue Jul 31 19:44:55 2007 From: drspencer at hotmail.com (kaka) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Shape?s? In-Reply-To: <0b5401c7d3b5$4174bf60$0501a8c0@LaptopJavier> References: <0ae001c7d38b$56ac5d40$0501a8c0@LaptopJavier> <20070731160108.GE11029@metacarta.com> <11929965.post@talk.nabble.com> <0b5401c7d3b5$4174bf60$0501a8c0@LaptopJavier> Message-ID: <11937212.post@talk.nabble.com> I used GDAL, http://www.gdal.org/ , to convert shp to GML. However, don?t forget to check out the ideas Christopher had for you. Hope this helps. Magnus conde wrote: > > GML? > > I am a new guy on this, waht and how? > > Tks > > > -----Mensaje original----- > De: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] En > nombre de kaka > Enviado el: Martes, 31 de Julio de 2007 03:34 p.m. > Para: users@openlayers.org > Asunto: Re: [OpenLayers-Users] Shape?s? > > > Well, if it is a small amount of data, you could convert it to GML and > have > OpenLayers display it. > > Magnus > > > > Christopher Schmidt-4 wrote: >> >> On Tue, Jul 31, 2007 at 12:56:20PM -0300, conde wrote: >>> Hi all! >>> >>> I am a new on this. >>> >>> I want to use OpenLayer on a project and I want to use my own shape data >>> files (.shp) how I can do this? Only with OpenLayer. >> >> You can't. OpenLayers is a client side display application. You will >> need server side software to serve the data as vectors or render it into >> images -- most likely, you're looking for a WMS Server like MapServer or >> GeoServer. >> >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- > View this message in context: > http://www.nabble.com/Shape%C2%B4s--tf4193952.html#a11929965 > 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/Shape%C2%B4s--tf4193952.html#a11937212 Sent from the OpenLayers Users mailing list archive at Nabble.com. From david.fawcett at gmail.com Tue Jul 31 21:56:19 2007 From: david.fawcett at gmail.com (David Fawcett) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Trying to get TileCache working with OpenLayers Message-ID: I have a simple OpenLayers app that I am trying to get working with TileCache. The layer is a MapServer served WMS layer. The image is 500x500. I am getting pink tiles, no images for the tilecache layer. Below is quite a bit of info, let me know any other info is needed to diagnose. The URL is: http://www.flatlandmaps.com/schooldistricts/dev2distinfo.html The data is in EPSG:26915 (meters) Here are the map and layer definitions from the html file: var map = new OpenLayers.Map('map', {'projection':'EPSG:26915', 'units':'meters', 'maxExtent': new OpenLayers.Bounds (485662,4775700,720470,4989969), 'maxResolution': 469.616 } ); var districts = new OpenLayers.Layer.WMS( "School Districts", " http://www.flatlandmaps.com/tc/tilecache-1.4/tilecache.cgi?", {layers: 'tcdistricts'}); Here is the layer entry from tilecache.cfg: [tcdistricts] type=WMSLayer url= http://www.flatlandmaps.com/cgi-bin/mapserv?map=/var/www/flatlandmaps.com/maps/schooldist/schooldist.map layers=districts extension=png metaTile=true maxResolution=469.616 srs=EPSG:26915 metaBuffer=10 bbox=485662,4775700,720470,4989969 >From FireBug, the tiles that are failing have a URL of: http://www.flatlandmaps.com/tc/tilecache-1.4/tilecache.cgi?LAYERS=tcdistricts&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=485662%2C4775700%2C605883.696%2C4895921.696&WIDTH=256&HEIGHT=256 Thanks, David. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070731/6a3c6f79/attachment.html From luguangxian at sohu.com Tue Jul 31 22:11:08 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Problem with Demis WMS Message-ID: <11938393.post@talk.nabble.com> the page: http://222.128.2.10:1080/openlayers/problemwithdemis.html problem is: when Zoom in/out at some levels, double-click twice for example, some images fails to show and need to right-click everyone of them to show. if switch between the two base layer, the problem continue, and the scope(top/bottom) of the map will change -- View this message in context: http://www.nabble.com/Problem-with-Demis-WMS-tf4197532.html#a11938393 Sent from the OpenLayers Users mailing list archive at Nabble.com. From luguangxian at sohu.com Tue Jul 31 22:18:34 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Problem with Demis WMS Message-ID: <11938393.post@talk.nabble.com> the page below use demis wms locally: http://222.128.2.10:1080/openlayers/problemwithdemis.html problem is: when Zoom in/out at some levels, double-click twice for example, some images fails to show and need to right-click everyone of them to show. if switch between the two base layer, the problem continue, and the scope(top/bottom) of the map will change ps: var gs=new OpenLayers.Layer.WMS( "Demis Map", "http://localhost:7080/wms/wms.asp?wms=ecwname&", {layers: 'namebathy',isBaseLayer:true}); map.addLayers([gs]); -- View this message in context: http://www.nabble.com/Problem-with-Demis-WMS-tf4197532.html#a11938393 Sent from the OpenLayers Users mailing list archive at Nabble.com. From luguangxian at sohu.com Tue Jul 31 23:16:11 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Problem with Demis WMS Message-ID: <11938393.post@talk.nabble.com> the page below use demis wms locally: http://222.128.2.10:1080/openlayers/problemwithdemis.html problem is: when Zoom in/out at some levels, double-click twice for example, some images fails to show and need to right-click everyone of them to show. if switch between the two base layer, the problem continue, and Positon of the map will change ps: var gs=new OpenLayers.Layer.WMS( "Demis Map", "http://localhost:7080/wms/wms.asp?wms=ecwname&", {layers: 'namebathy',isBaseLayer:true}); map.addLayers([gs]); -- View this message in context: http://www.nabble.com/Problem-with-Demis-WMS-tf4197532.html#a11938393 Sent from the OpenLayers Users mailing list archive at Nabble.com. From luguangxian at sohu.com Tue Jul 31 23:18:59 2007 From: luguangxian at sohu.com (RaymondLv) Date: Wed Sep 1 17:15:39 2010 Subject: [OpenLayers-Users] Problem with Demis WMS Message-ID: <11938393.post@talk.nabble.com> the page below use demis wms locally: http://222.128.2.10:1080/openlayers/problemwithdemis.html problem is: when Zoom in/out at some levels, double-click twice for example, some images fails to show and need to right-click everyone of them to show. if switch between the two base layer, the problem continue, and the verticle scale will change(Notice the yellow lines) ps: var gs=new OpenLayers.Layer.WMS( "Demis Map", "http://localhost:7080/wms/wms.asp?wms=ecwname&", {layers: 'namebathy',isBaseLayer:true}); map.addLayers([gs]); -- View this message in context: http://www.nabble.com/Problem-with-Demis-WMS-tf4197532.html#a11938393 Sent from the OpenLayers Users mailing list archive at Nabble.com.