From matthew.foster at noaa.gov Fri Jun 1 07:01:20 2012 From: matthew.foster at noaa.gov (Matthew Foster) Date: Fri, 1 Jun 2012 09:01:20 -0500 Subject: [OpenLayers-Users] Query multiple features from one or more vector layers In-Reply-To: <4FB41AE9.2040802@gns.cri.nz> References: <4FB2C9EB.3010201@gns.cri.nz> <4FB41AE9.2040802@gns.cri.nz> Message-ID: The way I ended up handling this was to create my own click handler (based on the click-handler.html OL example). On click, I create a LonLat object from the clicked point. I then iterate through the features array for each layer, and test feature.geometry.atPoint(LonLat). If it's true, act on that feature. It seems to be working well. I suspect it could get slow if there were a lot of features in the layers, but that isn't the case here. Matt On Wed, May 16, 2012 at 4:23 PM, Phil Scadden wrote: > More detail: > > http://osgeo-org.1560.n6.nabble.com/Select-WFS-Features-using-intersect-of-polygon-td4467419.html#a4470543 > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Fri Jun 1 10:25:08 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Fri, 1 Jun 2012 12:25:08 -0500 Subject: [OpenLayers-Users] Layerswitcher problem Message-ID: <004501cd401b$84077bb0$8c167310$@com.mx> Hello I am having a problem with the layer switcher while using a Google maps layer. The layer switcher icon is drawn on the upper left side of the map window, in the same spot as the zoom controls. Why is this so and how can it be fixed? This is the code:  SECTOR FERRETERO EN PUEBLA
Thanks Alberto Najera From arnd.wippermann at web.de Fri Jun 1 11:11:57 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 1 Jun 2012 20:11:57 +0200 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <004501cd401b$84077bb0$8c167310$@com.mx> References: <004501cd401b$84077bb0$8c167310$@com.mx> Message-ID: <9E3C02C662F54F67B55D81DB2112081B@pcawh2> I encountered this behaviour, when I used OpenLayers with style.css from an older version Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Alberto Najera Gesendet: Freitag, 1. Juni 2012 19:25 An: openlayers-users at lists.osgeo.org Betreff: [OpenLayers-Users] Layerswitcher problem Hello I am having a problem with the layer switcher while using a Google maps layer. The layer switcher icon is drawn on the upper left side of the map window, in the same spot as the zoom controls. Why is this so and how can it be fixed? This is the code:  SECTOR FERRETERO EN PUEBLA
Thanks Alberto Najera _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From anajera at bicimapas.com.mx Fri Jun 1 11:38:54 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Fri, 1 Jun 2012 13:38:54 -0500 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <9E3C02C662F54F67B55D81DB2112081B@pcawh2> References: <004501cd401b$84077bb0$8c167310$@com.mx> <9E3C02C662F54F67B55D81DB2112081B@pcawh2> Message-ID: <005501cd4025$cda6f110$68f4d330$@com.mx> Thanks Arnd And how can this be fixed? Is there a css code that fixes this? Where can I get it? Alberto Najera -----Mensaje original----- De: Arnd Wippermann [mailto:arnd.wippermann at web.de] Enviado el: viernes, 01 de junio de 2012 01:12 p.m. Para: 'Alberto Najera' CC: users at openlayers.org Asunto: AW: [OpenLayers-Users] Layerswitcher problem I encountered this behaviour, when I used OpenLayers with style.css from an older version Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Alberto Najera Gesendet: Freitag, 1. Juni 2012 19:25 An: openlayers-users at lists.osgeo.org Betreff: [OpenLayers-Users] Layerswitcher problem Hello I am having a problem with the layer switcher while using a Google maps layer. The layer switcher icon is drawn on the upper left side of the map window, in the same spot as the zoom controls. Why is this so and how can it be fixed? This is the code: From gamejihou at hotmail.com Fri Jun 1 11:44:07 2012 From: gamejihou at hotmail.com (Gery .) Date: Fri, 1 Jun 2012 18:44:07 +0000 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <005501cd4025$cda6f110$68f4d330$@com.mx> References: <004501cd401b$84077bb0$8c167310$@com.mx>, <9E3C02C662F54F67B55D81DB2112081B@pcawh2>, <005501cd4025$cda6f110$68f4d330$@com.mx> Message-ID: Hello Alberto, why don't you use the current version? I'm using 2.11 and don't have such problem. Hope this helps, Gery > From: anajera at bicimapas.com.mx > To: openlayers-users at lists.osgeo.org > Date: Fri, 1 Jun 2012 13:38:54 -0500 > Subject: Re: [OpenLayers-Users] Layerswitcher problem > > Thanks Arnd > > And how can this be fixed? Is there a css code that fixes this? Where can I > get it? > > > Alberto Najera > > -----Mensaje original----- > De: Arnd Wippermann [mailto:arnd.wippermann at web.de] > Enviado el: viernes, 01 de junio de 2012 01:12 p.m. > Para: 'Alberto Najera' > CC: users at openlayers.org > Asunto: AW: [OpenLayers-Users] Layerswitcher problem > > I encountered this behaviour, when I used OpenLayers with style.css from an > older version > > Arnd > > > -----Urspr?ngliche Nachricht----- > Von: openlayers-users-bounces at lists.osgeo.org > [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Alberto > Najera > Gesendet: Freitag, 1. Juni 2012 19:25 > An: openlayers-users at lists.osgeo.org > Betreff: [OpenLayers-Users] Layerswitcher problem > > Hello > > I am having a problem with the layer switcher while using a Google maps > layer. The layer switcher icon is drawn on the upper left side of the map > window, in the same spot as the zoom controls. Why is this so and how can it > be fixed? This is the code: > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Juergen.Dankoweit at T-Online.de Fri Jun 1 12:09:51 2012 From: Juergen.Dankoweit at T-Online.de (=?ISO-8859-1?Q?J=FCrgen_Dankoweit?=) Date: Fri, 01 Jun 2012 21:09:51 +0200 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <005501cd4025$cda6f110$68f4d330$@com.mx> References: <004501cd401b$84077bb0$8c167310$@com.mx> <9E3C02C662F54F67B55D81DB2112081B@pcawh2> <005501cd4025$cda6f110$68f4d330$@com.mx> Message-ID: <4FC9137F.7090008@T-Online.de> Hello Alberto, Am 01.06.2012 20:38, schrieb Alberto Najera: > Thanks Arnd > > And how can this be fixed? Is there a css code that fixes this? Where can I > get it? Here are my CSS parameters for the layer switcher icon: .olControlLayerSwitcher .maximizeDiv { top: 2px; background-color:#FFFFFF; opacity: 1.0; padding: 4px; } I hope this will help you. Best regards Juergen -- Meine stets unfertige Homepage: www.dankoweit.de From anajera at bicimapas.com.mx Fri Jun 1 12:31:57 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Fri, 1 Jun 2012 14:31:57 -0500 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: References: <004501cd401b$84077bb0$8c167310$@com.mx>, <9E3C02C662F54F67B55D81DB2112081B@pcawh2>, <005501cd4025$cda6f110$68f4d330$@com.mx> Message-ID: <005f01cd402d$36742620$a35c7260$@com.mx> Thanks Gery I just linked to 2.11 and all work fine now. I appreciate your help Alberto Najera De: Gery . [mailto:gamejihou at hotmail.com] Enviado el: viernes, 01 de junio de 2012 01:44 p.m. Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org Asunto: RE: [OpenLayers-Users] Layerswitcher problem Hello Alberto, why don't you use the current version? I'm using 2.11 and don't have such problem. Hope this helps, Gery From smaran.harihar at gmail.com Fri Jun 1 12:49:39 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Fri, 1 Jun 2012 12:49:39 -0700 Subject: [OpenLayers-Users] Chicken in AddPopup Message-ID: Hi, I am using this code from the OpenLayers Examples code and I was bit confused about what exactly does "*chicken"* mean here? info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://localhost:8080/geoserver/iPlant/wms', title: 'Identify features by clicking', queryVisible: true, eventListeners: { getfeatureinfo: function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud( "*chicken*", map.getLonLatFromPixel(event.xy), null, event.text, null, true )); } } }); map.addControl(info); info.activate(); -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgalpin at lhsw.com Fri Jun 1 12:54:54 2012 From: cgalpin at lhsw.com (Charles Galpin) Date: Fri, 1 Jun 2012 15:54:54 -0400 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: References: Message-ID: <936D2B1B-94FD-4D36-9EB1-715D3404E6E7@lhsw.com> See the docs - it's the id of the popup. http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Popup/FramedCloud-js.html hth charles On Jun 1, 2012, at 3:49 PM, Smaran Harihar wrote: > Hi, > > I am using this code from the OpenLayers Examples code and I was bit confused about what exactly does "chicken" mean here? > > > info = new OpenLayers.Control.WMSGetFeatureInfo({ > > > url: 'http://localhost:8080/geoserver/iPlant/wms', > > > title: 'Identify features by clicking', > > > queryVisible: true, > > > eventListeners: { > > > getfeatureinfo: function(event) { > > > map.addPopup(new OpenLayers.Popup.FramedCloud( > > > "chicken", > > > map.getLonLatFromPixel(event.xy), > > > null, > > > event.text, > > > null, > > > true > > > )); > > > } > > > } > > > }); > > > map.addControl(info); > > > info.activate(); > > -- > Thanks & Regards > Smaran Harihar > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgalpin at lhsw.com Fri Jun 1 13:28:10 2012 From: cgalpin at lhsw.com (Charles Galpin) Date: Fri, 1 Jun 2012 16:28:10 -0400 Subject: [OpenLayers-Users] change WMS parameter on refresh Message-ID: This is probably really simple but I'm drawing a blank. I have a OpenLayers.Layer.WMS layer that I want to change a parameter each time it refreshes (on initial load, zoom, explicit refresh, whenever). In case you are curious ultimately I want to pass the map scale as part of a parameter called "viewparams" which allows one to pass parameters to geoserver sql views. I can send a static value just fine from the value provided for params during construction, but need to make it dynamic. So perhaps there is a pre-load event handler I can add to do the equivalent of mergeNewParams say? Thoughts? Thanks, charles From eric.lemoine at camptocamp.com Fri Jun 1 13:41:31 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Fri, 1 Jun 2012 22:41:31 +0200 Subject: [OpenLayers-Users] change WMS parameter on refresh In-Reply-To: References: Message-ID: On Friday, June 1, 2012, Charles Galpin wrote: > This is probably really simple but I'm drawing a blank. > > I have a OpenLayers.Layer.WMS layer that I want to change a parameter each > time it refreshes (on initial load, zoom, explicit refresh, whenever). In > case you are curious ultimately I want to pass the map scale as part of a > parameter called "viewparams" which allows one to pass parameters to > geoserver sql views. I can send a static value just fine from the value > provided for params during construction, but need to make it dynamic. > > So perhaps there is a pre-load event handler I can add to do the > equivalent of mergeNewParams say? Thoughts? > > Thanks, You can create a Layer.WMS subclass and overload getURL or getFullRequestString. Look at the OL code. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Fri Jun 1 14:00:53 2012 From: gamejihou at hotmail.com (Gery .) Date: Fri, 1 Jun 2012 21:00:53 +0000 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <005f01cd402d$36742620$a35c7260$@com.mx> References: <004501cd401b$84077bb0$8c167310$@com.mx>, , <9E3C02C662F54F67B55D81DB2112081B@pcawh2>, , <005501cd4025$cda6f110$68f4d330$@com.mx>, , <005f01cd402d$36742620$a35c7260$@com.mx> Message-ID: Glad to hear that it worked well! enjoy it! Cheers, Gery > From: anajera at bicimapas.com.mx > To: openlayers-users at lists.osgeo.org > Date: Fri, 1 Jun 2012 14:31:57 -0500 > Subject: Re: [OpenLayers-Users] Layerswitcher problem > > Thanks Gery > > I just linked to 2.11 and all work fine now. > > I appreciate your help > > Alberto Najera > > De: Gery . [mailto:gamejihou at hotmail.com] > Enviado el: viernes, 01 de junio de 2012 01:44 p.m. > Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org > Asunto: RE: [OpenLayers-Users] Layerswitcher problem > > > Hello Alberto, > > why don't you use the current version? I'm using 2.11 and don't have such > problem. > > Hope this helps, > > Gery > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Fri Jun 1 14:16:37 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Fri, 1 Jun 2012 16:16:37 -0500 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: References: <004501cd401b$84077bb0$8c167310$@com.mx>, , <9E3C02C662F54F67B55D81DB2112081B@pcawh2>, , <005501cd4025$cda6f110$68f4d330$@com.mx>, , <005f01cd402d$36742620$a35c7260$@com.mx> Message-ID: <008101cd403b$d59fa4f0$80deeed0$@com.mx> Mhhhh... Now I am getting a pop up window with copyright info every time there is interactivity with the maps. Can this be removed? Alberto Najera ? De: Gery . [mailto:gamejihou at hotmail.com] Enviado el: viernes, 01 de junio de 2012 04:01 p.m. Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org Asunto: RE: [OpenLayers-Users] Layerswitcher problem Glad to hear that it worked well! enjoy it! Cheers, Gery > From: anajera at bicimapas.com.mx > To: openlayers-users at lists.osgeo.org > Date: Fri, 1 Jun 2012 14:31:57 -0500 > Subject: Re: [OpenLayers-Users] Layerswitcher problem > > Thanks Gery > > I just linked to 2.11 and all work fine now. > > I appreciate your help > > Alberto Najera > > De: Gery . [mailto:gamejihou at hotmail.com] > Enviado el: viernes, 01 de junio de 2012 01:44 p.m. > Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org > Asunto: RE: [OpenLayers-Users] Layerswitcher problem > > > Hello Alberto, > > why don't you use the current version? I'm using 2.11 and don't have such > problem. > > Hope this helps, > > Gery > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From gamejihou at hotmail.com Fri Jun 1 14:16:54 2012 From: gamejihou at hotmail.com (Gery .) Date: Fri, 1 Jun 2012 21:16:54 +0000 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: References: Message-ID: Hello Smaran, I don't really know what that means, but it is part of the code, if you put for example "pig" or "dog", it won't work, trust me I did it and didn't work =) Cheers, Gery From: smaran.harihar at gmail.com Date: Fri, 1 Jun 2012 12:49:39 -0700 To: openlayers-users at lists.osgeo.org Subject: [OpenLayers-Users] Chicken in AddPopup Hi, I am using this code from the OpenLayers Examples code and I was bit confused about what exactly does "chicken" mean here? info = new OpenLayers.Control.WMSGetFeatureInfo({ ? ? ? ? ? ? url: 'http://localhost:8080/geoserver/iPlant/wms', ? ? ? ? ? ? title: 'Identify features by clicking', ? ? ? ? ? ? queryVisible: true, ? ? ? ? ? ? eventListeners: { ? ? ? ? ? ? ? ? getfeatureinfo: function(event) { ? ? ? ? ? ? ? ? ? ? map.addPopup(new OpenLayers.Popup.FramedCloud( ? ? ? ? ? ? ? ? ? ? ? ? "chicken", ? ? ? ? ? ? ? ? ? ? ? ? map.getLonLatFromPixel(event.xy), ? ? ? ? ? ? ? ? ? ? ? ? null, ? ? ? ? ? ? ? ? ? ? ? ? event.text, ? ? ? ? ? ? ? ? ? ? ? ? null, ? ? ? ? ? ? ? ? ? ? ? ? true ? ? ? ? ? ? ? ? ? ? )); ? ? ? ? ? ? ? ? } ? ? ? ? ? ? } ? ? ? ? }); ? ? ? ? map.addControl(info); ? ? ? ? info.activate(); -- Thanks & RegardsSmaran Harihar _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Fri Jun 1 14:20:06 2012 From: gamejihou at hotmail.com (Gery .) Date: Fri, 1 Jun 2012 21:20:06 +0000 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: <008101cd403b$d59fa4f0$80deeed0$@com.mx> References: <004501cd401b$84077bb0$8c167310$@com.mx>, ,,<9E3C02C662F54F67B55D81DB2112081B@pcawh2>, , , <005501cd4025$cda6f110$68f4d330$@com.mx>, , , , <005f01cd402d$36742620$a35c7260$@com.mx>, , <008101cd403b$d59fa4f0$80deeed0$@com.mx> Message-ID: Hello Alberto, I suspected that you'll ask about it, check this out: http://gis.stackexchange.com/questions/26030/sometimes-a-white-square-dialogue-appears-in-the-middle-of-the-screen-map-data There is another solution, here it is: http://osgeo-org.1560.n6.nabble.com/OpenLayers-2-11-and-Google-Maps-API-3-7-td4976929.html Hope this helps, Gery > From: anajera at bicimapas.com.mx > To: openlayers-users at lists.osgeo.org > Date: Fri, 1 Jun 2012 16:16:37 -0500 > Subject: Re: [OpenLayers-Users] Layerswitcher problem > > Mhhhh... Now I am getting a pop up window with copyright info every time > there is interactivity with the maps. Can this be removed? > > Alberto Najera > > > De: Gery . [mailto:gamejihou at hotmail.com] > Enviado el: viernes, 01 de junio de 2012 04:01 p.m. > Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org > Asunto: RE: [OpenLayers-Users] Layerswitcher problem > > > Glad to hear that it worked well! enjoy it! > > Cheers, > > Gery > > From: anajera at bicimapas.com.mx > > To: openlayers-users at lists.osgeo.org > > Date: Fri, 1 Jun 2012 14:31:57 -0500 > > Subject: Re: [OpenLayers-Users] Layerswitcher problem > > > > Thanks Gery > > > > I just linked to 2.11 and all work fine now. > > > > I appreciate your help > > > > Alberto Najera > > > > De: Gery . [mailto:gamejihou at hotmail.com] > > Enviado el: viernes, 01 de junio de 2012 01:44 p.m. > > Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org > > Asunto: RE: [OpenLayers-Users] Layerswitcher problem > > > > > > Hello Alberto, > > > > why don't you use the current version? I'm using 2.11 and don't have such > > problem. > > > > Hope this helps, > > > > Gery > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at greeninfo.org Fri Jun 1 14:32:03 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Fri, 01 Jun 2012 14:32:03 -0700 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: References: Message-ID: <4FC934D3.2000701@greeninfo.org> On 6/1/2012 2:16 PM, Gery . wrote: > Hello Smaran, > I don't really know what that means, but it is part of the code, if you > put for example "pig" or "dog", it won't work, trust me I did it and > didn't work =) > Cheers, Gery It's the ID of the created popup element, e.g. It works just fine to use other IDs in there. If yours didn't work when you used "pig" or 'dog" something else must have been broken when you changed it. :) This does mean that you can use CSS to style a specific popup. Give a different popups an id of "eventinfo" or "housingstats" and then: #eventinfo h1 { font-size:20pt; } #housingstats h1 { font-size:15pt; } It also means you can do DOM manipulations and jQuery stuff using that ID, e.g. $('#eventinfo table.tablesorter').tablesorter(); -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From anajera at bicimapas.com.mx Fri Jun 1 15:40:52 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Fri, 1 Jun 2012 17:40:52 -0500 Subject: [OpenLayers-Users] Layerswitcher problem In-Reply-To: References: <004501cd401b$84077bb0$8c167310$@com.mx>, , , <9E3C02C662F54F67B55D81DB2112081B@pcawh2>, , , <005501cd4025$cda6f110$68f4d330$@com.mx>, , , , <005f01cd402d$36742620$a35c7260$@com.mx>, , <008101cd403b$d59fa4f0$80deeed0$@com.mx> Message-ID: <009b01cd4047$9af62250$d0e266f0$@com.mx> Thanks for the information, I will give it a look. Meanwhile I will use Bing as base map. Greetings Alberto Najera De: Gery . [mailto:gamejihou at hotmail.com] Enviado el: viernes, 01 de junio de 2012 04:20 p.m. Para: anajera at bicimapas.com.mx; openlayers-users at lists.osgeo.org Asunto: RE: [OpenLayers-Users] Layerswitcher problem Hello Alberto, I suspected that you'll ask about it, check this out: http://gis.stackexchange.com/questions/26030/sometimes-a-white-square-dialog ue-appears-in-the-middle-of-the-screen-map-data There is another solution, here it is: http://osgeo-org.1560.n6.nabble.com/OpenLayers-2-11-and-Google-Maps-API-3-7- td4976929.html Hope this helps, Gery From simon.stefan at gmail.com Fri Jun 1 21:12:57 2012 From: simon.stefan at gmail.com (Stefan Simon) Date: Sat, 2 Jun 2012 07:12:57 +0300 (EEST) Subject: [OpenLayers-Users] ProxyHost problem In-Reply-To: <009b01cd4047$9af62250$d0e266f0$@com.mx> Message-ID: <8899550.54.1338610374090.JavaMail.simon.stefan@simonstefan-PC> Hello, I have set OpenLayers.ProxyHost = "proxy.php? Url ="; but a closer look it is not used at all. the request is still on the old url layer, ie no proxy. May have to set proxy somewhere? or sufficient line of code above? thank you Stefan. From gamejihou at hotmail.com Fri Jun 1 21:53:16 2012 From: gamejihou at hotmail.com (Gery .) Date: Sat, 2 Jun 2012 04:53:16 +0000 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: <4FC934D3.2000701@greeninfo.org> References: , <4FC934D3.2000701@greeninfo.org> Message-ID: Hello Greg, Thanks for the info, regarding to the popup style, time ago I was trying to modify my table style, for example adding color to borders. I'm using a MAP file (then templates) to do the popup. Where do I have to add the style? in my HTML template or in my main HTML web (where I have the popup code)? Cheers, Gery > Date: Fri, 1 Jun 2012 14:32:03 -0700 > From: gregor at greeninfo.org > To: gamejihou at hotmail.com > CC: smaran.harihar at gmail.com; openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] Chicken in AddPopup > > On 6/1/2012 2:16 PM, Gery . wrote: > > Hello Smaran, > > I don't really know what that means, but it is part of the code, if you > > put for example "pig" or "dog", it won't work, trust me I did it and > > didn't work =) > > Cheers, Gery > > It's the ID of the created popup element, e.g. > > > It works just fine to use other IDs in there. If yours didn't work when > you used "pig" or 'dog" something else must have been broken when you > changed it. :) > > This does mean that you can use CSS to style a specific popup. Give a > different popups an id of "eventinfo" or "housingstats" and then: > #eventinfo h1 { font-size:20pt; } > #housingstats h1 { font-size:15pt; } > > It also means you can do DOM manipulations and jQuery stuff using that > ID, e.g. $('#eventinfo table.tablesorter').tablesorter(); > > -- > Greg Allensworth, Web GIS Developer > BS A+ Network+ Security+ Linux+ Server+ > GreenInfo Network - Information and Mapping in the Public Interest > 564 Market Street, Suite 510 San Francisco CA 94104 > PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org > Web: www.GreenInfo.org www.MapsPortal.org > > Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at greeninfo.org Sat Jun 2 08:38:49 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Sat, 02 Jun 2012 08:38:49 -0700 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: References: , <4FC934D3.2000701@greeninfo.org> Message-ID: <4FCA3389.1070204@greeninfo.org> On 6/1/2012 9:53 PM, Gery . wrote: > Thanks for the info, regarding to the popup style, time ago I was trying > to modify my table style, for example adding color to borders. I'm using > a MAP file (then templates) to do the popup. Where do I have to add the > style? in my HTML template or in my main HTML web (where I have the > popup code)? Typically I would put them into my website's HTML code as I would with other elements. But either way could work; you may find it more organized to have the popup-specific CSS inside the popup-specific HTML. If there's a lot of CSS for your popup, there may be a small downside to putting the CSS in the query template: the CSS code would be transmitted to the client along with the HTML, adding extra download time. That may be trivial, though; in an era of 1 Mbps being slow, what's 500 extra bytes in a download? -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From francescoboccacci at libero.it Sat Jun 2 09:11:48 2012 From: francescoboccacci at libero.it (francescoboccacci at libero.it) Date: Sat, 2 Jun 2012 18:11:48 +0200 (CEST) Subject: [OpenLayers-Users] OpenLayers.Control.Button Message-ID: <3907830.4927411338653508436.JavaMail.defaultUser@defaultHost> Hi all, i have a question about OpenLayers.Control.Button. Is it possible to simulate click event as : document.getElementById('MyButton').click() in all buttons in javascript? My button is: my_Button = new OpenLayers.Control.Button({ id: 'olControlMyButton', displayClass: 'olControlMyButton', type: OpenLayers.Control.TYPE_TOGGLE, eventListeners: {'activate': function(){test1()}, 'deactivate': function(){test2()}} }); I would like to have the follow behavior : If a cookie value is True, click on my button. Thanks Francesco From gamejihou at hotmail.com Sat Jun 2 09:21:06 2012 From: gamejihou at hotmail.com (Gery .) Date: Sat, 2 Jun 2012 16:21:06 +0000 Subject: [OpenLayers-Users] Chicken in AddPopup In-Reply-To: <4FCA3389.1070204@greeninfo.org> References: , <4FC934D3.2000701@greeninfo.org> , <4FCA3389.1070204@greeninfo.org> Message-ID: Thanks Greg, now it is clear, by the way I'm having another problem, I want to put some code as the layer switcher or overview control, do you know how could I do that? > Date: Sat, 2 Jun 2012 08:38:49 -0700 > From: gregor at greeninfo.org > To: gamejihou at hotmail.com > CC: smaran.harihar at gmail.com; openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] Chicken in AddPopup > > On 6/1/2012 9:53 PM, Gery . wrote: > > Thanks for the info, regarding to the popup style, time ago I was trying > > to modify my table style, for example adding color to borders. I'm using > > a MAP file (then templates) to do the popup. Where do I have to add the > > style? in my HTML template or in my main HTML web (where I have the > > popup code)? > > Typically I would put them into my website's HTML code as I would with > other elements. But either way could work; you may find it more > organized to have the popup-specific CSS inside the popup-specific HTML. > > If there's a lot of CSS for your popup, there may be a small downside to > putting the CSS in the query template: the CSS code would be transmitted > to the client along with the HTML, adding extra download time. That may > be trivial, though; in an era of 1 Mbps being slow, what's 500 extra > bytes in a download? > > -- > Greg Allensworth, Web GIS Developer > BS A+ Network+ Security+ Linux+ Server+ > GreenInfo Network - Information and Mapping in the Public Interest > 564 Market Street, Suite 510 San Francisco CA 94104 > PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org > Web: www.GreenInfo.org www.MapsPortal.org > > Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Sat Jun 2 16:22:10 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Sat, 2 Jun 2012 16:22:10 -0700 Subject: [OpenLayers-Users] Unable to still get WFS info Message-ID: Hi guys, Despite having re-installed the complete open-geo suite, I am still not able to obtain the PopUp. I have added the cgi-script according to the FAQ of OpenLayers but without any success. What am I doing wrong? It seems that the XmlHttpRequest continues to persist (I think, because now that I am directly accessing it from the server, I am getting only warnings, like this, event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.) This is my entire code. You can access it as well by going to the following site , iPlant Map

iPlant Map

Position
-- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From imoveisnacionais at gmail.com Sat Jun 2 16:45:33 2012 From: imoveisnacionais at gmail.com (alexe100) Date: Sat, 2 Jun 2012 16:45:33 -0700 (PDT) Subject: [OpenLayers-Users] Changing styleMap of a OpenLayers.Layer.Vector after map initialization? Message-ID: <1338680733192-4978765.post@n6.nabble.com> Hi I have a map where user can draw polygons to represent geofences. I want that geofences where vehicles must be inside to be drawn in green and geofences where vehicles can not be inside to be drawn in red. I have the styleMapVermelho (red color) and styleMapVerde (green) OpenLayers.StyleMap variables. So, the application starts with the green color selected. I have a button to change the color to red and vice-versa. The question is, how to remove the current OpenLayers.StyleMap and set the other OpenLayers.StyleMap when the button is pressed? Please, see code below for init function: var map, drawControls; var polygonLayer; var styleMapVerde; var styleMapVermelho; function init() { map = new OpenLayers.Map('mapdiv'); var wmsLayer= new OpenLayers.Layer.OSM(); //This uses meters in X/Y!!! map.addLayer(wmsLayer); map.addControl(new OpenLayers.Control.MousePosition()); //cores para polygon layer styleMapVermelho = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults ( {fillColor: "red", fillOpacity: 0.25, strokeColor: "black"}, OpenLayers.Feature.Vector.style["default"]) ); styleMapVerde = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults ( {fillColor: "green", fillOpacity: 0.25, strokeColor: "black"}, OpenLayers.Feature.Vector.style["default"]) ); polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer",{styleMap: styleMapVerde}); map.addLayer(polygonLayer); document.getElementById('dentro').checked=true; drawControls = { polygon: new OpenLayers.Control.DrawFeature(polygonLayer,OpenLayers.Handler.Polygon) }; map.addControl(drawControls['polygon']); drawControls['polygon'].activate(); map.setCenter(new OpenLayers.LonLat(0, 0), 3); } -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Changing-styleMap-of-a-OpenLayers-Layer-Vector-after-map-initialization-tp4978765.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From baze985 at gmail.com Sat Jun 2 17:47:16 2012 From: baze985 at gmail.com (blaze) Date: Sat, 2 Jun 2012 17:47:16 -0700 (PDT) Subject: [OpenLayers-Users] feature with graphic and text Message-ID: <1338684436719-4978768.post@n6.nabble.com> Hi all, Im using a feature which is a point with external graphic and a label(text) When I add more of this features to the map the texts are not overlaping(when to features are close the external graphics are overlaped but the label always stay on the top of all) I tried playing around with the xIndexes but there is no zIndex for the label only for external and background graphics Anyone having idea on this?! Also one other question, is there a way to set a css class name for the label? I saw in the dom the label is represented by a normal text element hold in a vroot perent element which itself is a child from the vector holding the feature. Blaze p.s there is a image provided for the overlaping! http://osgeo-org.1560.n6.nabble.com/file/n4978768/exp.png -- View this message in context: http://osgeo-org.1560.n6.nabble.com/feature-with-graphic-and-text-tp4978768.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From imoveisnacionais at gmail.com Sun Jun 3 09:09:33 2012 From: imoveisnacionais at gmail.com (alexe100) Date: Sun, 3 Jun 2012 09:09:33 -0700 (PDT) Subject: [OpenLayers-Users] Polygon red and polygon gree Message-ID: <1338739773792-4978815.post@n6.nabble.com> Hi I aould like to let user draw polygons on map and using a optionbox define their fill color (green or red) Then, during runtime I would like to get all the drawn polygons vertices and their fill color. How can i do this? I tried with //cores para polygon layer styleMapRed = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults ( {fillColor: "red", fillOpacity: 0.25, strokeColor: "black"}, OpenLayers.Feature.Vector.style["RED"]) //OpenLayers.Feature.Vector.style["default"]) ); styleMapgreen = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults ( {fillColor: "green", fillOpacity: 0.25, strokeColor: "black"}, OpenLayers.Feature.Vector.style["VERDE"]) //OpenLayers.Feature.Vector.style["default"]) ); polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer",{styleMap: styleMapGreen}); but during runtime I can not get the fill color. var attribs=polygonLayer.features[i].attributes; var tot=attribs.length; Is it possible to apply a fill color per DrawFeature? How? drawControls = { polygon: new OpenLayers.Control.DrawFeature(polygonLayer,OpenLayers.Handler.Polygon) }; Thanks a lot Alex -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Polygon-red-and-polygon-gree-tp4978815.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From khurrum7533 at gmail.com Mon Jun 4 00:45:08 2012 From: khurrum7533 at gmail.com (KHURRUM) Date: Mon, 4 Jun 2012 00:45:08 -0700 (PDT) Subject: [OpenLayers-Users] Aptana as openLayers IDE (Problems in Autocompletion) Message-ID: <1338795908480-4978898.post@n6.nabble.com> Hi Everyone, I'm using Aptana for OpenLayers development. But could not find anyway in Aptana to include the OpenLayers Javascript library for auto completion and intellisense Has anyone else has tried including OpenLayers library in Aptana or anyother IDE? any hint will be of great help.... -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Aptana-as-openLayers-IDE-Problems-in-Autocompletion-tp4978898.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rlombaard at maxgeo.com Mon Jun 4 05:36:09 2012 From: rlombaard at maxgeo.com (Riaan Lombaard) Date: Mon, 4 Jun 2012 20:36:09 +0800 Subject: [OpenLayers-Users] OpenLayers.Control.SelectFeature Message-ID: <783EA335483BCC40B245D83AF3350B0A1D8E4CF761@au-fre-vmls03.max-geoservices.com.au> Hey Guys, Please assist. I have 2 layers. Layer 1. Vector Layer using only `OpenLayers.Geometry.Point` functionality. Layer2. Vector Layer using only `OpenLayers.Geometry.LinearRing` functionality. Now both of them have their own `OpenLayers.Control.SelectFeature` obviously adding, activating and registering the features on the map. The issue I am having is, when both layers are active only one of the layers selection functionality will work. For example if Layer1 and 2 are active, only Layer2 selection will work. Only when I disable Layer2 then Layer1 selection will work. Hope this make's sense. Please let me know if you need more information. Riaan -------------- next part -------------- An HTML attachment was scrubbed... URL: From rlombaard at maxgeo.com Mon Jun 4 06:12:30 2012 From: rlombaard at maxgeo.com (Riaan Lombaard) Date: Mon, 4 Jun 2012 21:12:30 +0800 Subject: [OpenLayers-Users] OpenLayers.Control.SelectFeature In-Reply-To: <004c01cd4251$911af6a0$b350e3e0$@o2.pl> References: <783EA335483BCC40B245D83AF3350B0A1D8E4CF761@au-fre-vmls03.max-geoservices.com.au> <004c01cd4251$911af6a0$b350e3e0$@o2.pl> Message-ID: <783EA335483BCC40B245D83AF3350B0A1D8E4CF765@au-fre-vmls03.max-geoservices.com.au> Ah thanks, Ok my select feature looks like this. //Create and add selectFeature control var select_feature_control = new OpenLayers.Control.SelectFeature( pointLayer, { multiple: false, toggle: true, toggleKey: 'ctrlKey', multipleKey: 'shiftKey' } ); var select_feature_control_ten = new OpenLayers.Control.SelectFeature( leaseLayer, { multiple: false, toggle: true, toggleKey: 'ctrlKey', multipleKey: 'shiftKey' } ); What you are saying is that I can combine these 2 in one? From: Dominik Mikiewicz [mailto:dominikmikiewicz at o2.pl] Sent: 04 June 2012 02:57 PM To: Riaan Lombaard Subject: RE: [OpenLayers-Users] OpenLayers.Control.SelectFeature Your top select control 'covers' the other control. You can use one select control for both layers. From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Riaan Lombaard Sent: Monday, June 04, 2012 2:36 PM To: openlayers-users at lists.osgeo.org Subject: [OpenLayers-Users] OpenLayers.Control.SelectFeature Hey Guys, Please assist. I have 2 layers. Layer 1. Vector Layer using only `OpenLayers.Geometry.Point` functionality. Layer2. Vector Layer using only `OpenLayers.Geometry.LinearRing` functionality. Now both of them have their own `OpenLayers.Control.SelectFeature` obviously adding, activating and registering the features on the map. The issue I am having is, when both layers are active only one of the layers selection functionality will work. For example if Layer1 and 2 are active, only Layer2 selection will work. Only when I disable Layer2 then Layer1 selection will work. Hope this make's sense. Please let me know if you need more information. Riaan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr at mry4n.net Mon Jun 4 09:20:42 2012 From: mr at mry4n.net (Michael Ryan) Date: Mon, 4 Jun 2012 12:20:42 -0400 Subject: [OpenLayers-Users] very large polygon disappears at very high zoom level Message-ID: I just wanted to confirm that very large polygons disappear at very high zoom levels (e.g. 17). For example, see the polygon example at http://dev.openlayers.org/releases/OpenLayers-2.11/examples/regular-polygons.html Choose "large" for the size, "circle" for the shape. Draw the polygon, then start zooming in. When you get to around the 2nd to last zoom level, the polygon disappears. For my purposes, I have workarounds, but before I implement them, I just want to make sure this is just a limitation of OL and not something else I'm doing wrong. -Mike From thomaschristian at gmail.com Mon Jun 4 09:55:10 2012 From: thomaschristian at gmail.com (cheesybiscuits) Date: Mon, 4 Jun 2012 09:55:10 -0700 (PDT) Subject: [OpenLayers-Users] Get mouse position over map *without* a click event In-Reply-To: <1338501162686-4978414.post@n6.nabble.com> References: <1338501162686-4978414.post@n6.nabble.com> Message-ID: <1338828910569-4979036.post@n6.nabble.com> So I solved this problem but not in quite the way I wanted. It seems it's simply not possible to get the current mouse position from the browser without it being passed with an event, so there must always be either a click, mousedown, mouseup, mousemove etc before you can query the mouse X and Y. The OpenLayers.Events class has a function called getMousePosition which requires a mouse event as its sole argument. As I'm using JQuery draggable / droppable functionality the drop function is passed a mouse event, so I pass this to the getMousePosition function and get an accurate Pixel location, which then gives an accurate Lat / Lon (I'm very happy about this as I would have been in a real jam if it didn't). >From my testing across a number of browsers this location is always up to date, even though the MousePosition control's text might not yet have been updated. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Get-mouse-position-over-map-without-a-click-event-tp4978414p4979036.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smaran.harihar at gmail.com Mon Jun 4 10:46:07 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Mon, 4 Jun 2012 10:46:07 -0700 Subject: [OpenLayers-Users] Unable to locate the cgi-bin/proxy Message-ID: Hi, I am trying to use the WFS feature in my OpenLayers using the cgi-bin/proxy. I am getting the following error, POST http://niles.iplantcollaborative.org/cgi-bin/proxy.cgi?url=http%3A%2F%2Fniles.iplantcollaborative.org%3A8080%2Fgeoserver%2FiPlant%2Fwfs404 (Not Found). My script is on the Ubuntu Server 11.04. This is my code of WFS, var QuebecSpecies = new OpenLayers.Layer.Vector("AllQuebecSpecies", { strategies : [new OpenLayers.Strategy.Fixed()], projection : new OpenLayers.Projection("EPSG:4326"), visibility : true, protocol : new OpenLayers.Protocol.WFS({ version : "1.1.0", url : "http://niles.iplantcollaborative.org:8080/geoserver/iPlant/wfs", featurePrefix : 'iPlant', //geoserver worspace name featureType : "AllQuebecSpecies", //geoserver Layer Name featureNS : "http://geoserver-iPlant", // Edit Workspace Namespace URI geometryName : "the_geom" // field in Feature Type details with type "Geometry" }) }); -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Mon Jun 4 11:01:18 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon, 4 Jun 2012 20:01:18 +0200 Subject: [OpenLayers-Users] very large polygon disappears at very high zoom level In-Reply-To: References: Message-ID: This sounds like a known issue with the SVG renderer. You shouldn't see this issue in IE8 or below, and also not if you configure the layer with a prioritized Canvas renderer (renderers: ["Canvas", "VML", "SVG"]). Andreas. On Mon, Jun 4, 2012 at 6:20 PM, Michael Ryan wrote: > I just wanted to confirm that very large polygons disappear at very > high zoom levels (e.g. 17). > > For example, see the polygon example at > http://dev.openlayers.org/releases/OpenLayers-2.11/examples/regular-polygons.html > > Choose "large" for the size, "circle" for the shape. Draw the polygon, > then start zooming in. When you get to around the 2nd to last zoom > level, the polygon disappears. > > For my purposes, I have workarounds, but before I implement them, I > just want to make sure this is just a limitation of OL and not > something else I'm doing wrong. > > -Mike > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Mon Jun 4 11:51:57 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon, 4 Jun 2012 20:51:57 +0200 Subject: [OpenLayers-Users] ProxyHost problem In-Reply-To: <8899550.54.1338610374090.JavaMail.simon.stefan@simonstefan-PC> References: <009b01cd4047$9af62250$d0e266f0$@com.mx> <8899550.54.1338610374090.JavaMail.simon.stefan@simonstefan-PC> Message-ID: Hi, image requests don't go through the proxy. Only AJAX requests. The puropose of such a proxy is to circumvent the browser's Same Origin Policy, which does not apply to loading images. Andreas. On Sat, Jun 2, 2012 at 6:12 AM, Stefan Simon wrote: > Hello, > > I have set OpenLayers.ProxyHost = "proxy.php? Url ="; > > but a closer look it is not used at all. > the request is still on the old url layer, ie no proxy. > > May have to set proxy somewhere? or sufficient line of code above? > > thank you > Stefan. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From smaran.harihar at gmail.com Mon Jun 4 13:28:16 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Mon, 4 Jun 2012 13:28:16 -0700 Subject: [OpenLayers-Users] unable to obtain popup Message-ID: Hi, I was finally able to get the proxy.cgi and the server configs right and now I am able to display the WFS, but now I am not able to create the PopUp. This is my code and not sure where I am going wrong. info = new OpenLayers.Control.WMSGetFeatureInfo({ url : 'http://niles.iplantcollaborative.org:8080/geoserver/iPlant/wms', title : 'Identify features by clicking', queryVisible : true, eventListeners : { getfeatureinfo : function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud("chicken", map.getLonLatFromPixel(event.xy), null, event.text, null, true)); } } }); map.addControl(info); info.activate(); Also, this popup will give me info for all the layers. I wish to have info of selected layers. How can I do that? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr at mry4n.net Mon Jun 4 14:01:40 2012 From: mr at mry4n.net (Michael Ryan) Date: Mon, 4 Jun 2012 17:01:40 -0400 Subject: [OpenLayers-Users] very large polygon disappears at very high zoom level In-Reply-To: References: Message-ID: That was it. Unfortunately, I'm using the graphic fill code to create polygons filled with external graphics: http://lists.osgeo.org/pipermail/openlayers-commits/2011-September/001578.html The polygon appears as it should at the high zoom level, but does not perform the graphic fill. I believe this is because ossipoff's code didn't alter Canvas.js. These were the js files modified: sandbox/ossipoff/openlayers/lib/OpenLayers/Format/SLD/v1.js sandbox/ossipoff/openlayers/lib/OpenLayers/Renderer/SVG.js sandbox/ossipoff/openlayers/lib/OpenLayers/Renderer/VML.js. I'll dig around in there and compare it to Canvas.js to see if I can figure out how to make canvas also perform the graphic fill. If anyone wants to throw me a bone here, I'm listening. -Mike On Mon, Jun 4, 2012 at 2:01 PM, Andreas Hocevar wrote: > This sounds like a known issue with the SVG renderer. You shouldn't > see this issue in IE8 or below, and also not if you configure the > layer with a prioritized Canvas renderer (renderers: ["Canvas", "VML", > "SVG"]). > > Andreas. > > On Mon, Jun 4, 2012 at 6:20 PM, Michael Ryan wrote: >> I just wanted to confirm that very large polygons disappear at very >> high zoom levels (e.g. 17). >> >> For example, see the polygon example at >> http://dev.openlayers.org/releases/OpenLayers-2.11/examples/regular-polygons.html >> >> Choose "large" for the size, "circle" for the shape. Draw the polygon, >> then start zooming in. When you get to around the 2nd to last zoom >> level, the polygon disappears. >> >> For my purposes, I have workarounds, but before I implement them, I >> just want to make sure this is just a limitation of OL and not >> something else I'm doing wrong. >> >> -Mike >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. From javiersdevmail at ymail.com Mon Jun 4 23:13:41 2012 From: javiersdevmail at ymail.com (Javier Mr) Date: Tue, 5 Jun 2012 07:13:41 +0100 (BST) Subject: [OpenLayers-Users] OpenLayers.Control.SelectFeature In-Reply-To: <783EA335483BCC40B245D83AF3350B0A1D8E4CF765@au-fre-vmls03.max-geoservices.com.au> References: <783EA335483BCC40B245D83AF3350B0A1D8E4CF761@au-fre-vmls03.max-geoservices.com.au> <004c01cd4251$911af6a0$b350e3e0$@o2.pl> <783EA335483BCC40B245D83AF3350B0A1D8E4CF765@au-fre-vmls03.max-geoservices.com.au> Message-ID: <1338876821.4835.YahooMailNeo@web132104.mail.ird.yahoo.com> Hi, yes, you can specify two or more layers in the same select feature control (in fact, i think this is the way things should be done, only have a one select control over the 'n' number of layers you want select from). Below is a link two the openlayers example showing this. The important part is this one: selectControl = new OpenLayers.Control.SelectFeature( [vectors1, vectors2], { clickout: true, toggle: false, multiple: false, hover: false, toggleKey: "ctrlKey", // ctrl key removes from selection multipleKey: "shiftKey" // shift key adds to selection } ); Where 'vectors1' and 'vectors2' are the layers. http://openlayers.org/dev/examples/select-feature-multilayer.html Regards. Javier. >________________________________ > De: Riaan Lombaard >Para: "openlayers-users at lists.osgeo.org" >Enviado: Lunes 4 de junio de 2012 15:12 >Asunto: Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature > > >Ah thanks, >? >Ok my select feature looks like this. >? >?????? //Create and add selectFeature control >?????? var select_feature_control = new OpenLayers.Control.SelectFeature( >????????????? pointLayer, >????????????? { >???????????????????? multiple: false, >???????????????????? toggle: true, >???????????????????? toggleKey: 'ctrlKey', >???????????????????? multipleKey: 'shiftKey'??? >????????????? } >?????? ); >?????? >?????? var select_feature_control_ten = new OpenLayers.Control.SelectFeature( >????????????? leaseLayer, >????????????? { >???????????????????? multiple: false, >???????????????????? toggle: true, >???????????????????? toggleKey: 'ctrlKey', >???????????????????? multipleKey: 'shiftKey'??? >????????????? } >?????? ); >? >What you are saying is that I can combine these 2 in one? >? >From:Dominik Mikiewicz [mailto:dominikmikiewicz at o2.pl] >Sent: 04 June 2012 02:57 PM >To: Riaan Lombaard >Subject: RE: [OpenLayers-Users] OpenLayers.Control.SelectFeature >? >Your top select control ?covers? the other control. >You can use one select control for both layers. >? >From:openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Riaan Lombaard >Sent: Monday, June 04, 2012 2:36 PM >To: openlayers-users at lists.osgeo.org >Subject: [OpenLayers-Users] OpenLayers.Control.SelectFeature >? >Hey Guys, >? >Please assist. >? >I have 2 layers. >Layer 1. Vector Layer using only `OpenLayers.Geometry.Point` functionality. >Layer2. Vector Layer using only `OpenLayers.Geometry.LinearRing` functionality. >? >Now both of them have their own `OpenLayers.Control.SelectFeature` obviously adding, activating and registering the features on the map. >? >The issue I am having is, when both layers are active only one of the layers selection functionality will work. >? >For example if Layer1 and 2 are active, only Layer2 selection will work. >Only when I disable Layer2 then Layer1 selection will work. >? >Hope this make's sense. Please let me know if you need more information. >? >Riaan >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Tue Jun 5 00:35:56 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 5 Jun 2012 09:35:56 +0200 Subject: [OpenLayers-Users] Changing styleMap of a OpenLayers.Layer.Vector after map initialization? In-Reply-To: <1338680733192-4978765.post@n6.nabble.com> References: <1338680733192-4978765.post@n6.nabble.com> Message-ID: A much nicer way than using two style maps would be to have a single style map which determines the fill(?)color by the state of your button: var context = { getColor: function(feature) { return myButton.active ? "green" : "red"; } }; var template = OpenLayers.Util.extend({ fillColor: "${getColor}" // using context.getColor(feature) }, OpenLayers.Feature.Vector.style["default"]); var style = new OpenLayers.Style(template, {context: context}); var styleMap = new OpenLayers.StyleMap(style); If you really want to switch style maps, you can do vectorLayer.styleMap = redStyleMap; vectorLayer.redraw(); Andreas. On Sun, Jun 3, 2012 at 1:45 AM, alexe100 wrote: > Hi > I have a map where user can draw polygons to represent geofences. I want > that geofences where vehicles must be inside to be drawn in green and > geofences where vehicles can not be inside to be drawn in red. > I have the styleMapVermelho (red color) and styleMapVerde (green) > OpenLayers.StyleMap variables. > So, the application starts with the green color selected. I have a button to > change the color to red and vice-versa. > > The question is, how to remove the current ?OpenLayers.StyleMap and set the > other OpenLayers.StyleMap ?when the button is pressed? > Please, see code below for init function: > > var map, drawControls; > ? ? ? ? ? ? ? ?var polygonLayer; > ? ? ? ? ? ? ? ?var styleMapVerde; > ? ? ? ? ? ? ? ?var styleMapVermelho; > ? ? ? ? ? ? ? ?function init() > ? ? ? ? ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ? ? ?map = new OpenLayers.Map('mapdiv'); > > ? ? ? ? ? ? ? ? ? ? ? ?var wmsLayer= new OpenLayers.Layer.OSM(); //This uses meters in X/Y!!! > ? ? ? ? ? ? ? ? ? ? ? ?map.addLayer(wmsLayer); > > ? ? ? ? ? ? ? ? ? ? ? ?map.addControl(new OpenLayers.Control.MousePosition()); > > > > ? ? ? ? ? ? ? ? ? ? ? ?//cores para polygon layer > ? ? ? ? ? ? ? ? ? ? ? ?styleMapVermelho = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults > ? ? ? ? ? ? ? ? ? ? ? ?( > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?{fillColor: "red", fillOpacity: 0.25, strokeColor: "black"}, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?OpenLayers.Feature.Vector.style["default"]) > ? ? ? ? ? ? ? ? ? ? ? ?); > > ? ? ? ? ? ? ? ? ? ? ? ?styleMapVerde = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults > ? ? ? ? ? ? ? ? ? ? ? ?( > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?{fillColor: "green", fillOpacity: 0.25, strokeColor: "black"}, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?OpenLayers.Feature.Vector.style["default"]) > ? ? ? ? ? ? ? ? ? ? ? ?); > ? ? ? ? ? ? ? ? ? ? ? ?polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer",{styleMap: > styleMapVerde}); > ? ? ? ? ? ? ? ? ? ? ? ?map.addLayer(polygonLayer); > ? ? ? ? ? ? ? ? ? ? ? ?document.getElementById('dentro').checked=true; > > > ? ? ? ? ? ? ? ? ? ? ? ?drawControls = > ? ? ? ? ? ? ? ? ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?polygon: new > OpenLayers.Control.DrawFeature(polygonLayer,OpenLayers.Handler.Polygon) > ? ? ? ? ? ? ? ? ? ? ? ?}; > ? ? ? ? ? ? ? ? ? ? ? ?map.addControl(drawControls['polygon']); > ? ? ? ? ? ? ? ? ? ? ? ?drawControls['polygon'].activate(); > > > ? ? ? ? ? ? ? ? ? ? ? ?map.setCenter(new OpenLayers.LonLat(0, 0), 3); > ? ? ? ? ? ? ? ?} > > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Changing-styleMap-of-a-OpenLayers-Layer-Vector-after-map-initialization-tp4978765.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jun 5 00:52:57 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 5 Jun 2012 09:52:57 +0200 Subject: [OpenLayers-Users] feature with graphic and text In-Reply-To: <1338684436719-4978768.post@n6.nabble.com> References: <1338684436719-4978768.post@n6.nabble.com> Message-ID: Currently labels in OpenLayers are always rendered on top of all features - there is no API way to control their order or to make them appear below features. You cannot set the css class of the text, but you can use the following properties to control the appearance of the labels: * fontColor - {String} The font color for the label, to be provided like CSS. * fontOpacity - {Number} Opacity (0-1) for the label * fontFamily - {String} The font family for the label, to be provided like in CSS. * fontSize - {String} The font size for the label, to be provided like in CSS. * fontStyle - {String} The font style for the label, to be provided like in CSS. * fontWeight - {String} The font weight for the label, to be provided like in CSS. Andreas. On Sun, Jun 3, 2012 at 2:47 AM, blaze wrote: > Hi all, > > Im using a feature which is a point with external graphic and a label(text) > > When I add more of this features to the map the texts are not > overlaping(when to features are close the external graphics are overlaped > but the label always stay on the top of all) > > I tried playing around with the xIndexes but there is no zIndex for the > label only for external and background graphics > > Anyone having idea on this?! > > > Also one other question, is there a way to set a css class name for the > label? > I saw in the dom the label is represented by a normal text element hold in a > vroot perent element which itself is a child from the vector holding the > feature. > > Blaze > > p.s there is a image provided for the overlaping! > http://osgeo-org.1560.n6.nabble.com/file/n4978768/exp.png > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/feature-with-graphic-and-text-tp4978768.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From baze985 at gmail.com Tue Jun 5 01:48:35 2012 From: baze985 at gmail.com (blaze) Date: Tue, 5 Jun 2012 01:48:35 -0700 (PDT) Subject: [OpenLayers-Users] feature with graphic and text In-Reply-To: References: <1338684436719-4978768.post@n6.nabble.com> Message-ID: <1338886115519-4979160.post@n6.nabble.com> Hi Andreas, First thank you for the answer! >From the tests I did and form the code produced in the DOM i wouldv say that this is the behavior! But I think this features with "fully" styled text and a zIndexed one is a good to have! Tnx again, Blaze -- View this message in context: http://osgeo-org.1560.n6.nabble.com/feature-with-graphic-and-text-tp4978768p4979160.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mbianchi at gfz-potsdam.de Tue Jun 5 01:30:01 2012 From: mbianchi at gfz-potsdam.de (Marcelo Bianchi) Date: Tue, 05 Jun 2012 10:30:01 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults Message-ID: <4FCDC389.70004@gfz-potsdam.de> Dear List, There looks like to be a issue with the release 2.12/rc5 when using the KeyboardDefaults control on the map. When I added this control to the map, I am unable to type any "-" or "+" on any form element of my page. Maybe this was triggered by the commits related to this improvement. https://github.com/openlayers/openlayers/pull/222 but the side effects are quite bad. The code I am using to trigger the problem is attached. I tested the code with opera/firefox/google-chrome and the result is the same. regards, Marcelo -- Deutsches GeoForschungsZentrum - GFZ Geofon ~ Sektion 2.4 ~ Seismologie Phone +49 331-288-28704 Telegrafenberg A3 14473 Potsdam -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemoine at camptocamp.com Tue Jun 5 02:09:43 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 5 Jun 2012 11:09:43 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: <4FCDC389.70004@gfz-potsdam.de> References: <4FCDC389.70004@gfz-potsdam.de> Message-ID: On Tue, Jun 5, 2012 at 10:30 AM, Marcelo Bianchi wrote: > Dear List, > > There looks like to be a issue with the release 2.12/rc5 when using the > KeyboardDefaults control on the map. > > When I added this control to the map, I am unable to type any "-" or "+" on > any form element of my page. > > Maybe this was triggered by the commits related to this improvement. > > https://github.com/openlayers/openlayers/pull/222 > > but the side effects are quite bad. > > The code I am using to trigger the problem is attached. > I tested the code with opera/firefox/google-chrome and the result is the > same. > > regards, Is the problem new with 2.12? -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From eric.lemoine at camptocamp.com Tue Jun 5 02:20:40 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 5 Jun 2012 11:20:40 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: References: <4FCDC389.70004@gfz-potsdam.de> Message-ID: On Tue, Jun 5, 2012 at 11:09 AM, Eric Lemoine wrote: > On Tue, Jun 5, 2012 at 10:30 AM, Marcelo Bianchi > wrote: >> Dear List, >> >> There looks like to be a issue with the release 2.12/rc5 when using the >> KeyboardDefaults control on the map. >> >> When I added this control to the map, I am unable to type any "-" or "+" on >> any form element of my page. >> >> Maybe this was triggered by the commits related to this improvement. >> >> https://github.com/openlayers/openlayers/pull/222 >> >> but the side effects are quite bad. >> >> The code I am using to trigger the problem is attached. >> I tested the code with opera/firefox/google-chrome and the result is the >> same. >> >> regards, > > > Is the problem new with 2.12? I just did some tests. With 2.11 pressing the plus key when the text field has the focus both zooms the map and adds "+" to the field. With 2.12 the map zooms but "+" is not added to the field. With 2.12 you can reach a behavior that is better than with 2.11. Use the following: new OpenLayers.Control.KeyboardDefaults({observeElement: 'map'})]} and
(note the tabindex attribute) With this the map will zoom/dezoom only when the map has the focus. See the accessible.html example for more information. I hope this addresses your problems. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From mbianchi at gfz-potsdam.de Tue Jun 5 02:43:27 2012 From: mbianchi at gfz-potsdam.de (Marcelo Bianchi) Date: Tue, 05 Jun 2012 11:43:27 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: References: <4FCDC389.70004@gfz-potsdam.de> Message-ID: <4FCDD4BF.2090802@gfz-potsdam.de> Hi Eric, Thanks for the quick reply and check ! Yes was exactly this issue. Okay, using the observeElement attribute the issue goes away and the results is much improved when compared to the 2.11. Maybe to avoid this issue the KeyboardDefaults control should by default be attached to the map div if nothing is specified on the class instantiation. with my best regards, Marcelo On 06/05/2012 11:20 AM, Eric Lemoine wrote: > On Tue, Jun 5, 2012 at 11:09 AM, Eric Lemoine > wrote: >> On Tue, Jun 5, 2012 at 10:30 AM, Marcelo Bianchi >> wrote: >>> Dear List, >>> >>> There looks like to be a issue with the release 2.12/rc5 when using the >>> KeyboardDefaults control on the map. >>> >>> When I added this control to the map, I am unable to type any "-" or "+" on >>> any form element of my page. >>> >>> Maybe this was triggered by the commits related to this improvement. >>> >>> https://github.com/openlayers/openlayers/pull/222 >>> >>> but the side effects are quite bad. >>> >>> The code I am using to trigger the problem is attached. >>> I tested the code with opera/firefox/google-chrome and the result is the >>> same. >>> >>> regards, >> >> >> Is the problem new with 2.12? > > I just did some tests. With 2.11 pressing the plus key when the text > field has the focus both zooms the map and adds "+" to the field. With > 2.12 the map zooms but "+" is not added to the field. > > With 2.12 you can reach a behavior that is better than with 2.11. Use > the following: > > new OpenLayers.Control.KeyboardDefaults({observeElement: 'map'})]} > > and > >
> > (note the tabindex attribute) > > With this the map will zoom/dezoom only when the map has the focus. > See the accessible.html example for more information. > > I hope this addresses your problems. -- Deutsches GeoForschungsZentrum - GFZ Geofon ~ Sektion 2.4 ~ Seismologie Phone +49 331-288-28704 Telegrafenberg A3 14473 Potsdam From eric.lemoine at camptocamp.com Tue Jun 5 02:48:16 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 5 Jun 2012 11:48:16 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: <4FCDD4BF.2090802@gfz-potsdam.de> References: <4FCDC389.70004@gfz-potsdam.de> <4FCDD4BF.2090802@gfz-potsdam.de> Message-ID: On Tue, Jun 5, 2012 at 11:43 AM, Marcelo Bianchi wrote: > Hi Eric, > > Thanks for the quick reply and check ! > > Yes was exactly this issue. Okay, using the observeElement attribute the > issue goes away and the results is much improved when compared to the 2.11. > > Maybe to avoid this issue the KeyboardDefaults control should by default be > attached to the map div if nothing is specified on the class instantiation. This would break backward compatibility. That's why the default value wasn't changed. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From cgalpin at lhsw.com Tue Jun 5 03:41:35 2012 From: cgalpin at lhsw.com (Charles Galpin) Date: Tue, 5 Jun 2012 06:41:35 -0400 Subject: [OpenLayers-Users] change WMS parameter on refresh In-Reply-To: References: Message-ID: On Jun 1, 2012, at 4:41 PM, Eric Lemoine wrote: > On Friday, June 1, 2012, Charles Galpin wrote: > This is probably really simple but I'm drawing a blank. > > I have a OpenLayers.Layer.WMS layer that I want to change a parameter each time it refreshes (on initial load, zoom, explicit refresh, whenever). In case you are curious ultimately I want to pass the map scale as part of a parameter called "viewparams" which allows one to pass parameters to geoserver sql views. I can send a static value just fine from the value provided for params during construction, but need to make it dynamic. > > So perhaps there is a pre-load event handler I can add to do the equivalent of mergeNewParams say? Thoughts? > > Thanks, > > > You can create a Layer.WMS subclass and overload getURL or getFullRequestString. Look at the OL code. Eric, I just wanted to say thanks for the suggestion. This was perfect - I ended up overriding getURL since I had access to the bounds there (used to calculate the scale) and could add my params before the call to getFullRequestString. Thanks again, charles -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Tue Jun 5 06:27:01 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 5 Jun 2012 15:27:01 +0200 Subject: [OpenLayers-Users] Unable to still get WFS info In-Reply-To: References: Message-ID: Hi, wrong control! You have loaded your features with WFS already, so use OpenLayers.Control.SelectFeature instead of OpenLayers.Control.WMSGetFeatureInfo. The warnings about event.layerX etc. don't do any harm. Andreas. On Sun, Jun 3, 2012 at 1:22 AM, Smaran Harihar wrote: > Hi guys, > > Despite having re-installed the complete open-geo suite, I am still not able > to obtain the PopUp. I have added the cgi-script according to the FAQ of > OpenLayers but without any success. > > What am I doing wrong? It seems that the XmlHttpRequest continues to persist > (I think, because now that I am directly accessing it from the server, I am > getting only warnings, like this, > event.layerX and event.layerY are broken and deprecated in WebKit. They will > be removed from the engine in the near future.) > > This is my entire code. You can access it as well by going to the following > site, > > > > > > iPlant Map > type="text/css"> > > > > > >

iPlant Map

>
> > ? ? ? ? ? ? ? ?
> Position >
> > > > -- > Thanks & Regards > Smaran Harihar > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From welchons at brsc.com Tue Jun 5 07:06:17 2012 From: welchons at brsc.com (Dave Welchons) Date: Tue, 5 Jun 2012 10:06:17 -0400 Subject: [OpenLayers-Users] basic WMST/TimeManager questions Message-ID: <002d01cd4324$60a174d0$21e45e70$@com> Hi All, I am new to OpenLayers, but I have read the intro book "OpenLayers Beginners Guide." This is a pretty wordy email, so sorry about any inconvenience to readers. But I have a number of questions. I am looking into the possibility of an application that displays time-tagged geo points on a map, and then stores the data for later playback. I saw an example which displayed map raster and vector data over a period of time at http://dev.openlayers.org/sandbox/mpriour/temporal_map/openlayers/examples/t ime-control.html This example seemed different from the examples in the "Beginner's Guide", since the vector data (layer storm_wms in the code shown below, which shows a graphical representation of the eye of the Hurricane and the winds around it) was not created in the client-side OpenLayers code, but rather obtained from a WMS (raster?) layer. Here are my questions: 1. This example uses the OpenLayers.Control.TimeManager capability to step all the data sources through time. But this TimeManager functionality does not seem to be in the OpenLayers version which I downloaded recently (2.11). I notice that the path for the time-control.html link above includes the word "sandbox". For software projects should one stay with the official OpenLayers download for applications rather than using code from a sandbox? 2. How does one convert vector data to raster data using OpenLayers? Can this be done in real time, for example if some point data was received at various times, and one wanted to save it for playback later? 3. How does one save the raster data with time tags, so that it can be accessed as it is done here for a specific time? In these examples the data is accessed via OpenLayers.Layer.WMS, but if one wanted to save ones own data, are there directions for how to save time-stamped data like this (would it be in some kind of dated directory structure, or in a database with time as key?). How is it done at these web sites? I looked at http://mesonet.agron.iastate.edu/docs/nexrad_composites/ and I found this info below, but I was hoping for more detailed step-by-step directions. Thanks, Dave Welchons Info from http://mesonet.agron.iastate.edu/docs/nexrad_composites/ : Web Map Service (WMS) A special way you can interface with this data archive is via the Web Map Service that also supports time based retrieval ( WMS-T). Point your WMS-T aware app at: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi? The nexrad-n0r-wmst layer is time aware! time-control.html : OpenLayers: WMS + Time

WMS Time Example - Hurricane Irene Aug 2011

wmst, wms-t

Shows the use of the TimeManager control with a single simple WMS-T (time) layer served from Geoserver
Click on the PLAY button to start.

 |   |   |   | 

Time Control example: hit PLAY, and the storm position will change along with the
time display. Uses the OpenLayers.Control.TimeManager to update the date
elements with the time of the animation. Starts at Aug 17, 2011 and continues until Aug 29, 2011 or until you stop it

-------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardo.bayley at gmail.com Tue Jun 5 07:36:26 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Tue, 5 Jun 2012 11:36:26 -0300 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: References: <4FCDC389.70004@gfz-potsdam.de> <4FCDD4BF.2090802@gfz-potsdam.de> Message-ID: Hi folks, Just been reading the release notes for OL 2.12, it seems it has some really nice enhancements. Do you know when it will get released ? BTW: I will start testing it this evening. Let you know if I ran into any bug. Thanks for the hard work ! Ricardo 2012/6/5 Eric Lemoine > On Tue, Jun 5, 2012 at 11:43 AM, Marcelo Bianchi > wrote: > > Hi Eric, > > > > Thanks for the quick reply and check ! > > > > Yes was exactly this issue. Okay, using the observeElement attribute the > > issue goes away and the results is much improved when compared to the > 2.11. > > > > Maybe to avoid this issue the KeyboardDefaults control should by default > be > > attached to the map div if nothing is specified on the class > instantiation. > > This would break backward compatibility. That's why the default value > wasn't changed. > > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemoine at camptocamp.com > http://www.camptocamp.com > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemoine at camptocamp.com Tue Jun 5 07:48:02 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 5 Jun 2012 16:48:02 +0200 Subject: [OpenLayers-Users] openlayers 2.12rc5 & KeyboardDefaults In-Reply-To: References: <4FCDC389.70004@gfz-potsdam.de> <4FCDD4BF.2090802@gfz-potsdam.de> Message-ID: On Tue, Jun 5, 2012 at 4:36 PM, Ricardo Bayley wrote: > Hi folks, > > Just been reading the release notes for OL 2.12, it seems it has some really > nice enhancements. > Do you know when it will get released ? It depends on how many bugs you'll find :) We have released 2.12 RC6 yesterday night. It will be the final release if no new regressions are found in the coming days. Otherwise 2.12 RC7 will be released, etc. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From mr at mry4n.net Tue Jun 5 10:26:02 2012 From: mr at mry4n.net (Michael Ryan) Date: Tue, 5 Jun 2012 13:26:02 -0400 Subject: [OpenLayers-Users] very large polygon disappears at very high zoom level In-Reply-To: References: Message-ID: To answer my own question, in order to have the graphic fill work for the Canvas renderer I added a few lines of code to setCanvasStyle in lib/OpenLayers/Renderer/Canvas.js that create the pattern and then override canvas' fillStyle attribute . So far it seems like I haven't broken anything. setCanvasStyle: function(type, style) { if (type === "fill") { this.canvas.globalAlpha = style['fillOpacity']; this.canvas.fillStyle = style['fillColor']; // NEW GRAPHIC FILL CODE HERE if (style.externalGraphic){ var imageObj = new Image(); imageObj.src = style.externalGraphic; this.canvas.fillStyle = this.canvas.createPattern(imageObj,"repeat"); } // END GRAPHIC FILL CODE } On Mon, Jun 4, 2012 at 5:01 PM, Michael Ryan wrote: > That was it. Unfortunately, I'm using the graphic fill code to create > polygons filled with external graphics: > > http://lists.osgeo.org/pipermail/openlayers-commits/2011-September/001578.html > > The polygon appears as it should at the high zoom level, but does not > perform the graphic fill. I believe this is because ossipoff's code > didn't alter Canvas.js. These were the js files modified: > > ? sandbox/ossipoff/openlayers/lib/OpenLayers/Format/SLD/v1.js > ? sandbox/ossipoff/openlayers/lib/OpenLayers/Renderer/SVG.js > ? sandbox/ossipoff/openlayers/lib/OpenLayers/Renderer/VML.js. > > I'll dig around in there and compare it to Canvas.js to see if I can > figure out how to make canvas also perform the graphic fill. > > If anyone wants to throw me a bone here, I'm listening. > > -Mike From depalow at gmail.com Tue Jun 5 11:03:27 2012 From: depalow at gmail.com (William DePalo) Date: Tue, 05 Jun 2012 14:03:27 -0400 Subject: [OpenLayers-Users] Feature Selected event doesn't fire in Chrome Message-ID: <4FCE49EF.90709@gmail.com> Hi, I have an OSM map with a "Select Feature" control and a vector layer which displays a KML document. The KML has two placemarks with icons and one with a line string. In any browser clicking the icons in the placemark fires the "feature selected" event. Using Firefox, IE, Safari or Opera clicking on the line string raises the "feature selected" event as well while no event is raised in Chrome. Is this a bug or am I forgetting to do something in Chrome? Thanks for any info. Regards, Will P.S. What I'm doing is a lot like the what is done in the "sundials" example. From smaran.harihar at gmail.com Tue Jun 5 11:09:53 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Tue, 5 Jun 2012 11:09:53 -0700 Subject: [OpenLayers-Users] Feature Selected event doesn't fire in Chrome In-Reply-To: <4FCE49EF.90709@gmail.com> References: <4FCE49EF.90709@gmail.com> Message-ID: Hi William, What is the error you are getting in your developer tool? Can you also paste your code. -Smaran On Tue, Jun 5, 2012 at 11:03 AM, William DePalo wrote: > Hi, > > I have an OSM map with a "Select Feature" control and a vector layer which > displays a KML document. The KML has two placemarks with icons and one with > a line string. > > In any browser clicking the icons in the placemark fires the "feature > selected" event. > > Using Firefox, IE, Safari or Opera clicking on the line string raises the > "feature selected" event as well while no event is raised in Chrome. > > Is this a bug or am I forgetting to do something in Chrome? > > Thanks for any info. > > Regards, > Will > > P.S. What I'm doing is a lot like the what is done in the "sundials" > example. > ______________________________**_________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/**mailman/listinfo/openlayers-**users > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From depalow at gmail.com Tue Jun 5 12:30:47 2012 From: depalow at gmail.com (William DePalo) Date: Tue, 05 Jun 2012 15:30:47 -0400 Subject: [OpenLayers-Users] Feature Selected event doesn't fire in Chrome In-Reply-To: References: <4FCE49EF.90709@gmail.com> Message-ID: <4FCE5E67.9070000@gmail.com> Hi Smaran, On 6/5/2012 2:09 PM, Smaran Harihar wrote: > What is the error you are getting in your developer tool? Can you also > paste your code. Sorry, I guess I should have looked at the console before, but just now the console in Chrome's debugger displays this message when I click on the line string drawn by the KML layer: "event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future." Thanks. Regards, Will From smaran.harihar at gmail.com Tue Jun 5 12:49:20 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Tue, 5 Jun 2012 12:49:20 -0700 Subject: [OpenLayers-Users] Feature Selected event doesn't fire in Chrome In-Reply-To: <4FCE5C6E.5040804@gmail.com> References: <4FCE49EF.90709@gmail.com> <4FCE5C6E.5040804@gmail.com> Message-ID: William, that is only a warning. That is no cause for the problem. There is probably some error within the code, which I cannot say for sure till I see it. On Tue, Jun 5, 2012 at 12:22 PM, William DePalo wrote: > Hi Smaran, > > > What is the error you are getting in your developer tool? Can you also >> paste your code. >> > > Sorry, I guess I should have looked at the console before, but just now > the console in Chrome's debugger displays this message when I click on the > line string drawn by the KML layer: > > "event.layerX and event.layerY are broken and deprecated in WebKit. They > will be removed from the engine in the near future." > > Thanks. > > Regards, > Will > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From ignacio.talavera at gmail.com Tue Jun 5 13:25:05 2012 From: ignacio.talavera at gmail.com (Ignacio Talavera) Date: Tue, 5 Jun 2012 17:25:05 -0300 Subject: [OpenLayers-Users] custom Editing toolBar problem selecting new Feautre Message-ID: Hi, I'm developing a custom Editing ToolBar as an OL Control (with Draw| ModifyFeature controls included. The custom behaviour I want to achive is: when a new feature is added select it and activate the modifyFeature Control of the toolBar. So I created a "featureAdded" Listener to achive this. The problem starts after activing ModifyControl (with defeault attributes selectControl.clickout =true and standalone=false), a click event is propagated throw ModifyControl.selectControl and *clickoutFeature* method is called on it. and the new Feature recently selected is unselected :(. Any workarround? Thanks Nacho -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Tue Jun 5 13:48:42 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Tue, 5 Jun 2012 13:48:42 -0700 Subject: [OpenLayers-Users] not able to get PopUp after creating a Vector Polygon Message-ID: Hi, I created a PopUp using the FramedCloud PopUp and it is working fine. Unfortunately, If i create a Polygon using the Edit Toolbar Control, I am not again able to create the PopUp. I am *NOT *clicking on the vector polygon I created or the WMS features which are under the Vector Polygon. I am clicking on the other WMS feature, which are no way close to the vector polygon. Once I refresh, the PopUp starts working fine. Does this mean that we cannot use PopUp for WMS features once we have created a Vector Layer? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From neelima.emmani at iictechnologies.com Tue Jun 5 21:49:28 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Wed, 6 Jun 2012 04:49:28 +0000 Subject: [OpenLayers-Users] layerswitcher minimize option Message-ID: Hi All, I have layer switcher working very well inside the map. But , i want the layer switcher to be adjacent to the map. Which is also displayed well. Here comes my problem, I can all the map layers in the switcher but cannot minimize the layer switcher. Can any one tell me why? and where to solve it. I found following piece of code in layerswitcher.js file // set mode to minimize if(!this.outsideViewport) { this.minimizeControl(); } And tried as below // set mode to minimize if(this.outsideViewport) { this.minimizeControl(); } Even then one didnot find any difference . Can you please help me in getting the right way to solve this. With Regards, Neelima Emmani -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Wed Jun 6 00:42:35 2012 From: gamejihou at hotmail.com (Gery .) Date: Wed, 6 Jun 2012 07:42:35 +0000 Subject: [OpenLayers-Users] layerswitcher minimize option In-Reply-To: References: Message-ID: Hello Neelima, Sorry but I didnt understand what you are trying to do, could you show 2 figures about that? perhaps one with what you have and the other about what you want. Nevertheless, check these links, perhaps this solves your problem: http://openlayers.org/dev/examples/fullScreen.html, http://openlayers.org/dev/examples/layerswitcher.html HTH, From: neelima.emmani at iictechnologies.com To: openlayers-users at lists.osgeo.org Date: Wed, 6 Jun 2012 04:49:28 +0000 Subject: [OpenLayers-Users] layerswitcher minimize option Hi All, I have layer switcher working very well inside the map. But , i want the layer switcher to be adjacent to the map. Which is also displayed well. Here comes my problem, I can all the map layers in the switcher but cannot minimize the layer switcher. Can any one tell me why? and where to solve it. I found following piece of code in layerswitcher.js file // set mode to minimize if(!this.outsideViewport) { this.minimizeControl(); } And tried as below // set mode to minimize if(this.outsideViewport) { this.minimizeControl(); } Even then one didnot find any difference . Can you please help me in getting the right way to solve this. With Regards, Neelima Emmani _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From riny at elydian.net Wed Jun 6 01:30:11 2012 From: riny at elydian.net ([Elydian] Riny Heijdendael) Date: Wed, 06 Jun 2012 10:30:11 +0200 Subject: [OpenLayers-Users] setting isBaseLayer to false cripples overlay. Message-ID: <4FCF1513.4020803@elydian.net> Hi there, I made a small map, that displays a WMS layer correct if it is a baselayer, but is crippled when baselayer is set to false. You can see example at http://jsfiddle.net/yhEBN/1/light/ Does anyone know why this fails? Thank you, Riny ------------ var map = new OpenLayers.Map("map"); var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); var sedac = new OpenLayers.Layer.WMS("Population Density", "http://sedac.ciesin.columbia.edu/geoserver/ows", { layers: 'gpw-v3:gpw-v3-population-density_2000', transparency : true },{ opacity: 0.5, _*isBaseLayer: false,*_ }); map.addLayer(osm); map.addLayer(sedac); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(new OpenLayers.LonLat(0, 0), 2); -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.behr at hzg.de Wed Jun 6 01:45:51 2012 From: daniel.behr at hzg.de (Daniel Behr) Date: Wed, 06 Jun 2012 10:45:51 +0200 Subject: [OpenLayers-Users] setting isBaseLayer to false cripples overlay. In-Reply-To: <4FCF1513.4020803@elydian.net> References: <4FCF1513.4020803@elydian.net> Message-ID: <4FCF18BF.8090500@hzg.de> and you should include 'transparent' instead of 'transparency' Am 06.06.2012 10:30, schrieb [Elydian] Riny Heijdendael: > Hi there, > > I made a small map, that displays a WMS layer correct if it is a > baselayer, but > is crippled when baselayer is set to false. > > You can see example at http://jsfiddle.net/yhEBN/1/light/ > > Does anyone know why this fails? > > Thank you, > > Riny > ------------ > var map = new OpenLayers.Map("map"); > var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); > > var sedac = new OpenLayers.Layer.WMS("Population Density", > "http://sedac.ciesin.columbia.edu/geoserver/ows", { > layers: 'gpw-v3:gpw-v3-population-density_2000', > transparency : true > },{ > opacity: 0.5, > _*isBaseLayer: false,*_ > }); > > map.addLayer(osm); > map.addLayer(sedac); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > map.setCenter(new OpenLayers.LonLat(0, 0), 2); > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register Court) Internet: http://www.hzg.de From daniel.behr at hzg.de Wed Jun 6 01:44:01 2012 From: daniel.behr at hzg.de (Daniel Behr) Date: Wed, 06 Jun 2012 10:44:01 +0200 Subject: [OpenLayers-Users] setting isBaseLayer to false cripples overlay. In-Reply-To: <4FCF1513.4020803@elydian.net> References: <4FCF1513.4020803@elydian.net> Message-ID: <4FCF1851.5060907@hzg.de> just replace isBaseLayer=false with allOverlays=true and it should work Am 06.06.2012 10:30, schrieb [Elydian] Riny Heijdendael: > Hi there, > > I made a small map, that displays a WMS layer correct if it is a > baselayer, but > is crippled when baselayer is set to false. > > You can see example at http://jsfiddle.net/yhEBN/1/light/ > > Does anyone know why this fails? > > Thank you, > > Riny > ------------ > var map = new OpenLayers.Map("map"); > var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); > > var sedac = new OpenLayers.Layer.WMS("Population Density", > "http://sedac.ciesin.columbia.edu/geoserver/ows", { > layers: 'gpw-v3:gpw-v3-population-density_2000', > transparency : true > },{ > opacity: 0.5, > _*isBaseLayer: false,*_ > }); > > map.addLayer(osm); > map.addLayer(sedac); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > map.setCenter(new OpenLayers.LonLat(0, 0), 2); > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register Court) Internet: http://www.hzg.de From daniel.behr at hzg.de Wed Jun 6 01:56:49 2012 From: daniel.behr at hzg.de (Daniel Behr) Date: Wed, 06 Jun 2012 10:56:49 +0200 Subject: [OpenLayers-Users] setting isBaseLayer to false cripples overlay. In-Reply-To: <4FCF18BF.8090500@hzg.de> References: <4FCF1513.4020803@elydian.net> <4FCF18BF.8090500@hzg.de> Message-ID: <4FCF1B51.6050909@hzg.de> I think you want the overlay on the whole map like this: http://jsfiddle.net/yhEBN/16/ Am 06.06.2012 10:45, schrieb Daniel Behr: > and you should include 'transparent' instead of 'transparency' > > Am 06.06.2012 10:30, schrieb [Elydian] Riny Heijdendael: >> Hi there, >> >> I made a small map, that displays a WMS layer correct if it is a >> baselayer, but >> is crippled when baselayer is set to false. >> >> You can see example at http://jsfiddle.net/yhEBN/1/light/ >> >> Does anyone know why this fails? >> >> Thank you, >> >> Riny >> ------------ >> var map = new OpenLayers.Map("map"); >> var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); >> >> var sedac = new OpenLayers.Layer.WMS("Population Density", >> "http://sedac.ciesin.columbia.edu/geoserver/ows", { >> layers: 'gpw-v3:gpw-v3-population-density_2000', >> transparency : true >> },{ >> opacity: 0.5, >> _*isBaseLayer: false,*_ >> }); >> >> map.addLayer(osm); >> map.addLayer(sedac); >> map.addControl(new OpenLayers.Control.LayerSwitcher()); >> map.setCenter(new OpenLayers.LonLat(0, 0), 2); >> >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung > GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany > Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, > Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the > Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE > (Register Court) Internet: http://www.hzg.de > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register Court) Internet: http://www.hzg.de From gamejihou at hotmail.com Wed Jun 6 02:52:02 2012 From: gamejihou at hotmail.com (Gery .) Date: Wed, 6 Jun 2012 09:52:02 +0000 Subject: [OpenLayers-Users] layerswitcher minimize option In-Reply-To: References: , , Message-ID: Hello Neelima, Thanks for the file!, now I understand, uhmmm I compare both style.css (sdiff -s file1 file2) files but they are the same, also the Openlayers.js in both html, so not sure what is the solution, perhaps it is something to do with this code: By the way, I have been the way to include code to measure as the layerswitcher, but without success so far, perhaps around there is the solution. Hope this helps, Gery From: neelima.emmani at iictechnologies.com To: gamejihou at hotmail.com CC: openlayers-users at lists.osgeo.org Subject: RE: [OpenLayers-Users] layerswitcher minimize option Date: Wed, 6 Jun 2012 09:40:06 +0000 Hi Gery, Please find the attached file , which describes my problem. The one i am trying to do is second image but with minimize and maximize options on layer switcher. With Regards, Neelima Emmani From: Gery . [gamejihou at hotmail.com] Sent: Wednesday, June 06, 2012 1:12 PM To: Neelima Emmani; openlayers-users at lists.osgeo.org Subject: RE: [OpenLayers-Users] layerswitcher minimize option Hello Neelima, Sorry but I didnt understand what you are trying to do, could you show 2 figures about that? perhaps one with what you have and the other about what you want. Nevertheless, check these links, perhaps this solves your problem: http://openlayers.org/dev/examples/fullScreen.html, http://openlayers.org/dev/examples/layerswitcher.html HTH, From: neelima.emmani at iictechnologies.com To: openlayers-users at lists.osgeo.org Date: Wed, 6 Jun 2012 04:49:28 +0000 Subject: [OpenLayers-Users] layerswitcher minimize option Hi All, I have layer switcher working very well inside the map. But , i want the layer switcher to be adjacent to the map. Which is also displayed well. Here comes my problem, I can all the map layers in the switcher but cannot minimize the layer switcher. Can any one tell me why? and where to solve it. I found following piece of code in layerswitcher.js file // set mode to minimize if(!this.outsideViewport) { this.minimizeControl(); } And tried as below // set mode to minimize if(this.outsideViewport) { this.minimizeControl(); } Even then one didnot find any difference . Can you please help me in getting the right way to solve this. With Regards, Neelima Emmani _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From digi_c at arcor.de Wed Jun 6 03:01:51 2012 From: digi_c at arcor.de (=?windows-1252?Q?Matthias_Mei=DFer?=) Date: Wed, 06 Jun 2012 12:01:51 +0200 Subject: [OpenLayers-Users] Popup troubles with GIT version In-Reply-To: References: <4FB8C315.2050207@arcor.de> Message-ID: <4FCF2A8F.2090709@arcor.de> Hi List, sorry, due to troubles in RL it took more time than expected to deploy my page as an example: http://www.on-i.de/map2 If you click on the nodes, there will come a popup, but with the current one it's XXL. If you patch the HTML to use "openlayers-2.11" instead, it worked fine. The trigger is nodeSelect() and the content is generated in getNodePopupContent(). Maybe it's just a very stupid mistake by myself, but I reviewed my code and didn?t find any anomalies. Would be great, if other experienced people could check this behaviour, please :) bye Matthias Am 20.05.2012 12:46, schrieb Eric Lemoine: > > > On Sunday, May 20, 2012, Matthias Mei?er wrote: > > Hi, > > to get tooltip support I updated my 2.11 to a fresh one from GIT. > Unfortunatly, there seems to be now a problem with popup size. > > With the following code, I get an XXL Popup that is as wide as my > screen: > > > ... > > function nodeSelect(feature) { > content=getNodePopupContent(__feature.data); > feature.popup = new OpenLayers.Popup.FramedCloud(__null, > feature.geometry.getBounds().__getCenterLonLat(), > null, > '
'+content+"
", > feature.marker, > true); > feature.popup.minSize=new OpenLayers.Size(250,400); > feature.popup.autoSize=true; > map.addPopup(feature.popup); > } > > Can anybody confirm this behaviour? on 2.12-rc4? As far as I > analysed, my design seems to be ok :/ > > > > Could you please create a complete example that works as expected with > 2.11 and not with 2.12? An HTML file that we can just drop in > OpenLayers' ?examples? dir would be ideal. Thanks. > > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemoine at camptocamp.com > http://www.camptocamp.com > From eric.lemoine at camptocamp.com Wed Jun 6 03:03:51 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed, 6 Jun 2012 12:03:51 +0200 Subject: [OpenLayers-Users] Popup troubles with GIT version In-Reply-To: <4FCF2A8F.2090709@arcor.de> References: <4FB8C315.2050207@arcor.de> <4FCF2A8F.2090709@arcor.de> Message-ID: On Wed, Jun 6, 2012 at 12:01 PM, Matthias Mei?er wrote: > Hi List, > > sorry, due to troubles in RL it took more time than expected to deploy my > page as an example: http://www.on-i.de/map2 > > If you click on the nodes, there will come a popup, but with the current one > it's XXL. If you patch the HTML to use "openlayers-2.11" instead, it worked > fine. The trigger is nodeSelect() and the content is generated in > getNodePopupContent(). > > Maybe it's just a very stupid mistake by myself, but I reviewed my code and > didn?t find any anomalies. Would be great, if other experienced people could > check this behaviour, please :) Could you please try 2.12 RC6? See -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From coffi at hotmail.co.uk Wed Jun 6 03:33:48 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Wed, 6 Jun 2012 03:33:48 -0700 (PDT) Subject: [OpenLayers-Users] WFS_T help Message-ID: <1338978828245-4979461.post@n6.nabble.com> I am new to OpenLayers and I am trying to create a map that allows a user to edit a WFS layer. It allows me to delete or save unmodifed, however, when I try to save a new feature I get the following error in Firebug. Error performing insert: Error inserting features The layer is serverd via PostGIS and Geoserver with a native and declared SRID of 27700 and the code is shown below Any help or tips would be greatly appreciated -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ramotswa at gmail.com Wed Jun 6 03:43:12 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Wed, 6 Jun 2012 11:43:12 +0100 Subject: [OpenLayers-Users] WFS_T help In-Reply-To: <1338978828245-4979461.post@n6.nabble.com> References: <1338978828245-4979461.post@n6.nabble.com> Message-ID: Hi Gary, It will help you immensely if you use firebug or google chrome dev tools to see what the actual request is that is being sent to your Geoserver. If you have a look at that you might be able to see a mismatch of what you are trying to write. Send it back to the list and we can have a look at it. Another good thing to check is to see if that request evaluates correctly in your "demo request" area in geoserver. http://gislidar.serveftp.com/geoserver/web --> "Demos" --> Demo requests --> WFS_transactionInsert.xml Change the text in that Body to what you are sending through the app and see what error you're getting there... Let us know how you get on. Toby On 6 June 2012 11:33, Gary Duckers wrote: > I am new to OpenLayers and I am trying to create a map that allows a user > to > edit a WFS layer. It allows me to delete or save unmodifed, however, when I > try to save a new feature I get the following error in Firebug. > > > xsi:schemaLocation="http://www.opengis.net/ows > > http://gislidar.serveftp.com:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd > " > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ows="http://www.opengis.net/ows"> > > Error performing insert: Error inserting > features > > > > The layer is serverd via PostGIS and Geoserver with a native and declared > SRID of 27700 and the code is shown below > > > > > Any help or tips would be greatly appreciated > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coffi at hotmail.co.uk Wed Jun 6 04:17:40 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Wed, 6 Jun 2012 04:17:40 -0700 (PDT) Subject: [OpenLayers-Users] WFS_T help In-Reply-To: References: <1338978828245-4979461.post@n6.nabble.com> Message-ID: <1338981460309-4979473.post@n6.nabble.com> Hi Toby, Thanks for the reply, the post in Firebug when trying to save is 355484.2103664953 369856.63346833916 355712.06900850113 369708.72281751595 355301.8537748518 369661.09916614735 355484.2103664953 369856.63346833916 and the response is Error performing insert: Error inserting features Gary -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461p4979473.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ricardo.bayley at gmail.com Wed Jun 6 06:17:07 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 10:17:07 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 Message-ID: Hi folks, I am testing ol 2.12 rc6 on my web app. I have a GWC wms layer, google hybrid + google sat. At start, GWC layer is not loading in the correct zoom layer. When zooming I get the blank image. When checking with GWC I get this message. 400: X,Y values for the tile index were calculated to be {81.13292818954577, 104.17067323102172} which had to be rounded to {81, 104} and exceeds the threshold of 10%. Perhaps the client is using the wrong origin ? My map is in south america, so both x and y should be negative, shouldnt they ? I think this maybe cause by the Projection & SphericalMercator changes. Is this so ? Thanks Ricardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 6 07:01:50 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 6 Jun 2012 16:01:50 +0200 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: Hi, Can you share a minimal example that shows the issue? Also, did this work with OpenLayers 2.11? Andreas. On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley wrote: > Hi folks, > > I am testing ol 2.12 rc6 on my web app. > I have a GWC wms layer, google hybrid + google sat. > > At start, GWC layer is not loading in the correct zoom layer. When zooming I > get the blank image. > When checking with GWC I get this message. > > 400: X,Y values for the tile index were calculated to be {81.13292818954577, > 104.17067323102172} which had to be rounded to {81, 104} and exceeds the > threshold of 10%. Perhaps the client is using the wrong origin ? > > My map is in south america, so both x and y should be negative, shouldnt > they ? > > I think this maybe cause by the Projection & SphericalMercator changes. > > Is this so ? > > > Thanks > > Ricardo > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ricardo.bayley at gmail.com Wed Jun 6 07:14:04 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 11:14:04 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: Do you mean screenshot or live example or just code ? All I am doing is pointing to a different Openlayer js. So, yes with ol 2.11 worked fine. 2012/6/6 Andreas Hocevar > Hi, > > Can you share a minimal example that shows the issue? Also, did this > work with OpenLayers 2.11? > > Andreas. > > On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley > wrote: > > Hi folks, > > > > I am testing ol 2.12 rc6 on my web app. > > I have a GWC wms layer, google hybrid + google sat. > > > > At start, GWC layer is not loading in the correct zoom layer. When > zooming I > > get the blank image. > > When checking with GWC I get this message. > > > > 400: X,Y values for the tile index were calculated to be > {81.13292818954577, > > 104.17067323102172} which had to be rounded to {81, 104} and exceeds the > > threshold of 10%. Perhaps the client is using the wrong origin ? > > > > My map is in south america, so both x and y should be negative, shouldnt > > they ? > > > > I think this maybe cause by the Projection & SphericalMercator changes. > > > > Is this so ? > > > > > > Thanks > > > > Ricardo > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 6 07:32:57 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 6 Jun 2012 16:32:57 +0200 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: Code would be great. Especially showing your map and layer options. Thanks, Andreas. On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley wrote: > Do you mean screenshot or live example or just code ? > > All I am doing is pointing to a different Openlayer js. So, yes with ol 2.11 > worked fine. > > > > 2012/6/6 Andreas Hocevar >> >> Hi, >> >> Can you share a minimal example that shows the issue? Also, did this >> work with OpenLayers 2.11? >> >> Andreas. >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley >> wrote: >> > Hi folks, >> > >> > I am testing ol 2.12 rc6 on my web app. >> > I have a GWC wms layer, google hybrid + google sat. >> > >> > At start, GWC layer is not loading in the correct zoom layer. When >> > zooming I >> > get the blank image. >> > When checking with GWC I get this message. >> > >> > 400: X,Y values for the tile index were calculated to be >> > {81.13292818954577, >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds the >> > threshold of 10%. Perhaps the client is using the wrong origin ? >> > >> > My map is in south america, so both x and y should be negative, shouldnt >> > they ? >> > >> > I think this maybe cause by the Projection & SphericalMercator changes. >> > >> > Is this so ? >> > >> > >> > Thanks >> > >> > Ricardo >> > >> > _______________________________________________ >> > Users mailing list >> > Users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From ricardo.bayley at gmail.com Wed Jun 6 07:41:42 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 11:41:42 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: this is my GWC layer var lyr = new OpenLayers.Layer.WMS( "street", ["http://myAddress:8080/geowebcache/service/wms"], { layers: "Argentina", format: 'image/png' }, { isBaseLayer: true, visibility: false, tileSize: new OpenLayers.Size(256,256), singleTile:false, tileLoadingDelay:0, buffer: 2, transitionEffect:'resize', minZoomLevel: 0, maxZoomLevel: 8 } ); * i change visibility later. var ghyb = new OpenLayers.Layer.Google( "H?brido", { type: G_HYBRID_MAP, sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 } ); If I dont load google layers, problem does not go away. 2012/6/6 Andreas Hocevar > Code would be great. Especially showing your map and layer options. > > Thanks, > Andreas. > > On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley > wrote: > > Do you mean screenshot or live example or just code ? > > > > All I am doing is pointing to a different Openlayer js. So, yes with ol > 2.11 > > worked fine. > > > > > > > > 2012/6/6 Andreas Hocevar > >> > >> Hi, > >> > >> Can you share a minimal example that shows the issue? Also, did this > >> work with OpenLayers 2.11? > >> > >> Andreas. > >> > >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley < > ricardo.bayley at gmail.com> > >> wrote: > >> > Hi folks, > >> > > >> > I am testing ol 2.12 rc6 on my web app. > >> > I have a GWC wms layer, google hybrid + google sat. > >> > > >> > At start, GWC layer is not loading in the correct zoom layer. When > >> > zooming I > >> > get the blank image. > >> > When checking with GWC I get this message. > >> > > >> > 400: X,Y values for the tile index were calculated to be > >> > {81.13292818954577, > >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds > the > >> > threshold of 10%. Perhaps the client is using the wrong origin ? > >> > > >> > My map is in south america, so both x and y should be negative, > shouldnt > >> > they ? > >> > > >> > I think this maybe cause by the Projection & SphericalMercator > changes. > >> > > >> > Is this so ? > >> > > >> > > >> > Thanks > >> > > >> > Ricardo > >> > > >> > _______________________________________________ > >> > Users mailing list > >> > Users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> > > >> > >> > >> > >> -- > >> Andreas Hocevar > >> OpenGeo - http://opengeo.org/ > >> Expert service straight from the developers. > > > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardo.bayley at gmail.com Wed Jun 6 07:47:14 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 11:47:14 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: sorry, this is my map. var map = new OpenLayers.Map({ allOverlays: false, theme: null, scales :[8735665,4367832,2183916,1091958,545979,272989,136494,68247,34123,17062,8531,4265], projection: new OpenLayers.Projection('EPSG:900913'), displayProjection: new OpenLayers.Projection('EPSG:4326'), restrictedExtent: new OpenLayers.Bounds(-9500000.0,-8200000.0,-4500000.0,-1600000.0), maxExtent: new OpenLayers.Bounds(-2.0E7,-2.0E7,2.0140799999999993E7,2.0140799999999993E7), units: "m", controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.KeyboardDefaults(), // new OpenLayers.Control.LayerSwitcher({'ascending':true}), new OpenLayers.Control.Navigation({ dragPanOptions:{enableKinetic: true,documentDrag: true}, zoomWheelEnabled:true} ), new OpenLayers.Control.PanZoomBar({zoomWorldIcon:true}) ] }); 2012/6/6 Ricardo Bayley > this is my GWC layer > > var lyr = new OpenLayers.Layer.WMS( > "street", ["http://myAddress:8080/geowebcache/service/wms"], > { > layers: "Argentina", > format: 'image/png' > }, > { > isBaseLayer: true, > visibility: false, > tileSize: new OpenLayers.Size(256,256), > singleTile:false, > tileLoadingDelay:0, > buffer: 2, > transitionEffect:'resize', > minZoomLevel: 0, > maxZoomLevel: 8 > } > ); > * i change visibility later. > > var ghyb = new OpenLayers.Layer.Google( > "H?brido", > { > type: G_HYBRID_MAP, > sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 > } > ); > > If I dont load google layers, problem does not go away. > > > > 2012/6/6 Andreas Hocevar > >> Code would be great. Especially showing your map and layer options. >> >> Thanks, >> Andreas. >> >> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley >> wrote: >> > Do you mean screenshot or live example or just code ? >> > >> > All I am doing is pointing to a different Openlayer js. So, yes with ol >> 2.11 >> > worked fine. >> > >> > >> > >> > 2012/6/6 Andreas Hocevar >> >> >> >> Hi, >> >> >> >> Can you share a minimal example that shows the issue? Also, did this >> >> work with OpenLayers 2.11? >> >> >> >> Andreas. >> >> >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley < >> ricardo.bayley at gmail.com> >> >> wrote: >> >> > Hi folks, >> >> > >> >> > I am testing ol 2.12 rc6 on my web app. >> >> > I have a GWC wms layer, google hybrid + google sat. >> >> > >> >> > At start, GWC layer is not loading in the correct zoom layer. When >> >> > zooming I >> >> > get the blank image. >> >> > When checking with GWC I get this message. >> >> > >> >> > 400: X,Y values for the tile index were calculated to be >> >> > {81.13292818954577, >> >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds >> the >> >> > threshold of 10%. Perhaps the client is using the wrong origin ? >> >> > >> >> > My map is in south america, so both x and y should be negative, >> shouldnt >> >> > they ? >> >> > >> >> > I think this maybe cause by the Projection & SphericalMercator >> changes. >> >> > >> >> > Is this so ? >> >> > >> >> > >> >> > Thanks >> >> > >> >> > Ricardo >> >> > >> >> > _______________________________________________ >> >> > Users mailing list >> >> > Users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > >> >> >> >> >> >> >> >> -- >> >> Andreas Hocevar >> >> OpenGeo - http://opengeo.org/ >> >> Expert service straight from the developers. >> > >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 6 07:49:49 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 6 Jun 2012 16:49:49 +0200 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: We also need your map configuration. Thanks, Andreas. On Wed, Jun 6, 2012 at 4:41 PM, Ricardo Bayley wrote: > this is my GWC layer > > var lyr = ?new OpenLayers.Layer.WMS( > "street", ["http://myAddress:8080/geowebcache/service/wms"], > { > layers: "Argentina", > format: 'image/png' > }, > { > isBaseLayer: true, > visibility: false, > tileSize: new OpenLayers.Size(256,256), > singleTile:false, > tileLoadingDelay:0, > buffer: 2, > transitionEffect:'resize', > minZoomLevel: 0, > maxZoomLevel: 8 > } > ); > * i change visibility later. > > var?ghyb = new OpenLayers.Layer.Google( > ? ? ? ? ? ?"H?brido", > ? ? ? ? ? ?{ > ? ? ? ? ? ? type: G_HYBRID_MAP, > ? ? ? ? ? ? sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 > ? ? ? ? ? ?} > ); > > If I dont load google layers, problem does not go away. > > > > 2012/6/6 Andreas Hocevar >> >> Code would be great. Especially showing your map and layer options. >> >> Thanks, >> Andreas. >> >> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley >> wrote: >> > Do you mean screenshot or live example or just code ? >> > >> > All I am doing is pointing to a different Openlayer js. So, yes with ol >> > 2.11 >> > worked fine. >> > >> > >> > >> > 2012/6/6 Andreas Hocevar >> >> >> >> Hi, >> >> >> >> Can you share a minimal example that shows the issue? Also, did this >> >> work with OpenLayers 2.11? >> >> >> >> Andreas. >> >> >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley >> >> >> >> wrote: >> >> > Hi folks, >> >> > >> >> > I am testing ol 2.12 rc6 on my web app. >> >> > I have a GWC wms layer, google hybrid + google sat. >> >> > >> >> > At start, GWC layer is not loading in the correct zoom layer. When >> >> > zooming I >> >> > get the blank image. >> >> > When checking with GWC I get this message. >> >> > >> >> > 400: X,Y values for the tile index were calculated to be >> >> > {81.13292818954577, >> >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds >> >> > the >> >> > threshold of 10%. Perhaps the client is using the wrong origin ? >> >> > >> >> > My map is in south america, so both x and y should be negative, >> >> > shouldnt >> >> > they ? >> >> > >> >> > I think this maybe cause by the Projection & SphericalMercator >> >> > changes. >> >> > >> >> > Is this so ? >> >> > >> >> > >> >> > Thanks >> >> > >> >> > Ricardo >> >> > >> >> > _______________________________________________ >> >> > Users mailing list >> >> > Users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > >> >> >> >> >> >> >> >> -- >> >> Andreas Hocevar >> >> OpenGeo - http://opengeo.org/ >> >> Expert service straight from the developers. >> > >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo -?http://opengeo.org/ >> Expert service straight from the developers. > > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From ricardo.bayley at gmail.com Wed Jun 6 07:53:36 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 11:53:36 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: I justtried this map config., and still not working. var map = new OpenLayers.Map({ allOverlays: false, theme: null, scales :[8735665,4367832,2183916,1091958,545979,272989,136494,68247,34123,17062,8531,4265], projection: "EPSG:900913", // displayProjection: "EPSG:4326", // projection: new OpenLayers.Projection('EPSG:900913'), // displayProjection: new OpenLayers.Projection('EPSG:4326'), restrictedExtent: new OpenLayers.Bounds(-9500000.0,-8200000.0,-4500000.0,-1600000.0), // maxExtent: new OpenLayers.Bounds(-2.0E7,-2.0E7,2.0140799999999993E7,2.0140799999999993E7), units: "m", controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.KeyboardDefaults(), // new OpenLayers.Control.LayerSwitcher({'ascending':true}), new OpenLayers.Control.Navigation({ dragPanOptions:{enableKinetic: true,documentDrag: true}, zoomWheelEnabled:true} ), new OpenLayers.Control.PanZoomBar({zoomWorldIcon:true}) ] }); 2012/6/6 Andreas Hocevar > We also need your map configuration. > > Thanks, > Andreas. > > On Wed, Jun 6, 2012 at 4:41 PM, Ricardo Bayley > wrote: > > this is my GWC layer > > > > var lyr = new OpenLayers.Layer.WMS( > > "street", ["http://myAddress:8080/geowebcache/service/wms"], > > { > > layers: "Argentina", > > format: 'image/png' > > }, > > { > > isBaseLayer: true, > > visibility: false, > > tileSize: new OpenLayers.Size(256,256), > > singleTile:false, > > tileLoadingDelay:0, > > buffer: 2, > > transitionEffect:'resize', > > minZoomLevel: 0, > > maxZoomLevel: 8 > > } > > ); > > * i change visibility later. > > > > var ghyb = new OpenLayers.Layer.Google( > > "H?brido", > > { > > type: G_HYBRID_MAP, > > sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 > > } > > ); > > > > If I dont load google layers, problem does not go away. > > > > > > > > 2012/6/6 Andreas Hocevar > >> > >> Code would be great. Especially showing your map and layer options. > >> > >> Thanks, > >> Andreas. > >> > >> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley < > ricardo.bayley at gmail.com> > >> wrote: > >> > Do you mean screenshot or live example or just code ? > >> > > >> > All I am doing is pointing to a different Openlayer js. So, yes with > ol > >> > 2.11 > >> > worked fine. > >> > > >> > > >> > > >> > 2012/6/6 Andreas Hocevar > >> >> > >> >> Hi, > >> >> > >> >> Can you share a minimal example that shows the issue? Also, did this > >> >> work with OpenLayers 2.11? > >> >> > >> >> Andreas. > >> >> > >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley > >> >> > >> >> wrote: > >> >> > Hi folks, > >> >> > > >> >> > I am testing ol 2.12 rc6 on my web app. > >> >> > I have a GWC wms layer, google hybrid + google sat. > >> >> > > >> >> > At start, GWC layer is not loading in the correct zoom layer. When > >> >> > zooming I > >> >> > get the blank image. > >> >> > When checking with GWC I get this message. > >> >> > > >> >> > 400: X,Y values for the tile index were calculated to be > >> >> > {81.13292818954577, > >> >> > 104.17067323102172} which had to be rounded to {81, 104} and > exceeds > >> >> > the > >> >> > threshold of 10%. Perhaps the client is using the wrong origin ? > >> >> > > >> >> > My map is in south america, so both x and y should be negative, > >> >> > shouldnt > >> >> > they ? > >> >> > > >> >> > I think this maybe cause by the Projection & SphericalMercator > >> >> > changes. > >> >> > > >> >> > Is this so ? > >> >> > > >> >> > > >> >> > Thanks > >> >> > > >> >> > Ricardo > >> >> > > >> >> > _______________________________________________ > >> >> > Users mailing list > >> >> > Users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Andreas Hocevar > >> >> OpenGeo - http://opengeo.org/ > >> >> Expert service straight from the developers. > >> > > >> > > >> > >> > >> > >> -- > >> Andreas Hocevar > >> OpenGeo - http://opengeo.org/ > >> Expert service straight from the developers. > > > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 6 08:25:19 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 6 Jun 2012 17:25:19 +0200 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: This is not a regression - your map configuration is incorrect. scales is not an API property of the map. Move the scales definition to the GWC layer, and you should be fine. Andreas. On Wed, Jun 6, 2012 at 4:49 PM, Andreas Hocevar wrote: > We also need your map configuration. > > Thanks, > Andreas. > > On Wed, Jun 6, 2012 at 4:41 PM, Ricardo Bayley wrote: >> this is my GWC layer >> >> var lyr = ?new OpenLayers.Layer.WMS( >> "street", ["http://myAddress:8080/geowebcache/service/wms"], >> { >> layers: "Argentina", >> format: 'image/png' >> }, >> { >> isBaseLayer: true, >> visibility: false, >> tileSize: new OpenLayers.Size(256,256), >> singleTile:false, >> tileLoadingDelay:0, >> buffer: 2, >> transitionEffect:'resize', >> minZoomLevel: 0, >> maxZoomLevel: 8 >> } >> ); >> * i change visibility later. >> >> var?ghyb = new OpenLayers.Layer.Google( >> ? ? ? ? ? ?"H?brido", >> ? ? ? ? ? ?{ >> ? ? ? ? ? ? type: G_HYBRID_MAP, >> ? ? ? ? ? ? sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 >> ? ? ? ? ? ?} >> ); >> >> If I dont load google layers, problem does not go away. >> >> >> >> 2012/6/6 Andreas Hocevar >>> >>> Code would be great. Especially showing your map and layer options. >>> >>> Thanks, >>> Andreas. >>> >>> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley >>> wrote: >>> > Do you mean screenshot or live example or just code ? >>> > >>> > All I am doing is pointing to a different Openlayer js. So, yes with ol >>> > 2.11 >>> > worked fine. >>> > >>> > >>> > >>> > 2012/6/6 Andreas Hocevar >>> >> >>> >> Hi, >>> >> >>> >> Can you share a minimal example that shows the issue? Also, did this >>> >> work with OpenLayers 2.11? >>> >> >>> >> Andreas. >>> >> >>> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley >>> >> >>> >> wrote: >>> >> > Hi folks, >>> >> > >>> >> > I am testing ol 2.12 rc6 on my web app. >>> >> > I have a GWC wms layer, google hybrid + google sat. >>> >> > >>> >> > At start, GWC layer is not loading in the correct zoom layer. When >>> >> > zooming I >>> >> > get the blank image. >>> >> > When checking with GWC I get this message. >>> >> > >>> >> > 400: X,Y values for the tile index were calculated to be >>> >> > {81.13292818954577, >>> >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds >>> >> > the >>> >> > threshold of 10%. Perhaps the client is using the wrong origin ? >>> >> > >>> >> > My map is in south america, so both x and y should be negative, >>> >> > shouldnt >>> >> > they ? >>> >> > >>> >> > I think this maybe cause by the Projection & SphericalMercator >>> >> > changes. >>> >> > >>> >> > Is this so ? >>> >> > >>> >> > >>> >> > Thanks >>> >> > >>> >> > Ricardo >>> >> > >>> >> > _______________________________________________ >>> >> > Users mailing list >>> >> > Users at lists.osgeo.org >>> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Andreas Hocevar >>> >> OpenGeo - http://opengeo.org/ >>> >> Expert service straight from the developers. >>> > >>> > >>> >>> >>> >>> -- >>> Andreas Hocevar >>> OpenGeo -?http://opengeo.org/ >>> Expert service straight from the developers. >> >> > > > > -- > Andreas Hocevar > OpenGeo -?http://opengeo.org/ > Expert service straight from the developers. -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From Juergen.Dankoweit at T-Online.de Wed Jun 6 08:41:05 2012 From: Juergen.Dankoweit at T-Online.de (=?ISO-8859-15?Q?J=FCrgen_Dankoweit?=) Date: Wed, 06 Jun 2012 17:41:05 +0200 Subject: [OpenLayers-Users] Includes in KML Files Message-ID: <4FCF7A11.9030203@T-Online.de> Hello to the list, is it possible to write an file with some global definitions and including this in an KML file? Something like: ./definition.kml: [...] ./kml-file.kml: [...] "definitions.kml" 1 #attribute_from_definition_file 0 clampToGround "lon","lat" [...] Thanks for the answers Best regards Juergen -- Meine stets unfertige Homepage: www.dankoweit.de From ricardo.bayley at gmail.com Wed Jun 6 08:47:53 2012 From: ricardo.bayley at gmail.com (Ricardo Bayley) Date: Wed, 6 Jun 2012 12:47:53 -0300 Subject: [OpenLayers-Users] Testing ol 2.12 rc6 In-Reply-To: References: Message-ID: You are absolutely right Andreas. shame on me ! don't know why i was setting scales there. It's working great now. I will keep testing. Hopefully if I run into any of my bugs, I will fixed them first. thanks ! 2012/6/6 Andreas Hocevar > and you should be fin -------------- next part -------------- An HTML attachment was scrubbed... URL: From digi_c at arcor.de Wed Jun 6 08:58:34 2012 From: digi_c at arcor.de (=?windows-1252?Q?Matthias_Mei=DFer?=) Date: Wed, 06 Jun 2012 17:58:34 +0200 Subject: [OpenLayers-Users] Popup troubles with GIT version In-Reply-To: References: <4FB8C315.2050207@arcor.de> <4FCF2A8F.2090709@arcor.de> Message-ID: <4FCF7E2A.2080409@arcor.de> Am 06.06.2012 12:03, schrieb Eric Lemoine: > On Wed, Jun 6, 2012 at 12:01 PM, Matthias Mei?er wrote: >> Hi List, >> >> sorry, due to troubles in RL it took more time than expected to deploy my >> page as an example: http://www.on-i.de/map2 >> >> If you click on the nodes, there will come a popup, but with the current one >> it's XXL. If you patch the HTML to use "openlayers-2.11" instead, it worked >> fine. The trigger is nodeSelect() and the content is generated in >> getNodePopupContent(). >> >> Maybe it's just a very stupid mistake by myself, but I reviewed my code and >> didn?t find any anomalies. Would be great, if other experienced people could >> check this behaviour, please :) > > Could you please try 2.12 RC6? See > > > > > Works fine with 2.12 RC6. Strange but might been an temporally bug in GIT version. Thank you Eric :) Matthias From eric.lemoine at camptocamp.com Wed Jun 6 09:04:31 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed, 6 Jun 2012 18:04:31 +0200 Subject: [OpenLayers-Users] Popup troubles with GIT version In-Reply-To: <4FCF7E2A.2080409@arcor.de> References: <4FB8C315.2050207@arcor.de> <4FCF2A8F.2090709@arcor.de> <4FCF7E2A.2080409@arcor.de> Message-ID: On Wednesday, June 6, 2012, Matthias Mei?er wrote: > Am 06.06.2012 12:03, schrieb Eric Lemoine: > >> On Wed, Jun 6, 2012 at 12:01 PM, Matthias Mei?er wrote: >> >>> Hi List, >>> >>> sorry, due to troubles in RL it took more time than expected to deploy my >>> page as an example: http://www.on-i.de/map2 >>> >>> If you click on the nodes, there will come a popup, but with the current >>> one >>> it's XXL. If you patch the HTML to use "openlayers-2.11" instead, it >>> worked >>> fine. The trigger is nodeSelect() and the content is generated in >>> getNodePopupContent(). >>> >>> Maybe it's just a very stupid mistake by myself, but I reviewed my code >>> and >>> didn?t find any anomalies. Would be great, if other experienced people >>> could >>> check this behaviour, please :) >>> >> >> Could you please try 2.12 RC6? See >> >> > >> >> >> >> >> > Works fine with 2.12 RC6. Strange but might been an temporally bug in GIT > version. The "Git version" you're using corresponds to 2.12 RC4. Search RELEASE_VERSION in the OpenLayers.js file to see that. And the bug you were referring to got fixed in 2.12 RC6. If you use the current "master branch" code it should be fixed as well. Hope this clarifies things. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jesse.griffis at nbtsolutions.com Wed Jun 6 09:43:44 2012 From: jesse.griffis at nbtsolutions.com (Jesse V. Griffis) Date: Wed, 06 Jun 2012 12:43:44 -0400 Subject: [OpenLayers-Users] LonLat to Geometry.Point and back? Message-ID: <1436666.0HVtdEKSc9@viking> Hey gang, Is there a convenience function somewhere to go from a LonLat object to Geometry.Point and/or the other way 'round? Seems to me like fromGeometry() and toGeometry() ought to be on the LonLat class. Jesse From horst at hike.de Wed Jun 6 11:09:44 2012 From: horst at hike.de (Horst Garstka) Date: Wed, 06 Jun 2012 20:09:44 +0200 Subject: [OpenLayers-Users] Offset for the display of icons Message-ID: <4FCF9CE8.5040406@hike.de> Hi, I've developed a map application with a vector layer in combination of a KML file. Everything is in general fine. But there is a smaller problem. The icon I'm using is the marker.png. Unfortunately this one is displayed over the place of interest. But I want that the lower pike should point to the defined coordinate. Is there a possibility to define via the style-definiton something like an vertical offset? I've already checked the KML 2.2 specification but could not find some hints. thx for your help hike39 From coreyalix at hotmail.com Wed Jun 6 11:40:46 2012 From: coreyalix at hotmail.com (corey alix) Date: Wed, 6 Jun 2012 11:40:46 -0700 (PDT) Subject: [OpenLayers-Users] Control/SelectFeature.js - selectBox Message-ID: <1339008046733-4979574.post@n6.nabble.com> This is a proposal for a code change to Control/SelectFeature.js. The selectBox method publishes both "boxselectionstart" and "boxselectionend" but probably not in a consistent way. Consider how the /select/(feature) method is handled: * onBeforeSelect(feature) * triggerEvent("beforefeatureselected", {feature: feature}) * processing logic * triggerEvent("featureselected", {feature: feature}) * onSelect(feature) Both onBeforeSelect and "beforefeatureselected" can terminate further processing. Now consider /selectBox(point)/: * calculate the bounds from the position * triggerEvent("boxselectionstart", {layers: layers}) * processing logic * triggerEvent("boxselectionend", {layers: layers}) Missing is an onBeforeSelectBox(position), "boxselectionstart" can not terminate further processing, no way of knowing the position and/or bounds of the box... I'd argue that (at a minimum of change) the intent of the following should be added to this method: >start of change var cont = this.events.triggerEvent("beforeboxselection", {position: position, bounds: bounds}); // maybe just position to remain consistent if(cont === false) return; >end of change // because we're using a box, we consider we want multiple selection var prevMultiple = this.multiple; this.multiple = true; var layers = this.layers || [this.layer]; this.events.triggerEvent("boxselectionstart", {layers: layers}); Such a change would both facilitate pre-processing of the bounds as well as all skipping the default behavior. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Control-SelectFeature-js-selectBox-tp4979574.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Wed Jun 6 13:31:06 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Jun 2012 16:31:06 -0400 Subject: [OpenLayers-Users] Google announces full offline mapping mode for Android smartphones Message-ID: <4FCFBE0A.7010201@swoodbridge.com> I thought this might be of interest to people here: http://www.zdnet.com/blog/cell-phones/google-announces-full-offline-mapping-mode-for-android-smartphones/7744?tag=nl.e550 -Steve Woodbridge From woodbri at swoodbridge.com Wed Jun 6 22:02:08 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Jun 2012 01:02:08 -0400 Subject: [OpenLayers-Users] [mapserver-users] Hi All In-Reply-To: References: Message-ID: <4FD035D0.5010905@swoodbridge.com> Hi ?zg?r, Sorry but this question is OpenLayers so you need to post it on that list. I have cc'd it there. -Steve On 6/6/2012 11:13 PM, ?zg?r Arslan wrote: > Hi everyone, > > > I am trying to put an icon on my map by using text marker. But it > doesn't work. There is one marker that is working very well from the > instructor. When I try to create my own it is not working or it is not > showing my icon it is showing red icon which is from open layers. Could > you please Help me about this issue? Also Thank you Stephen > Woodbridgefor your explanation of the mapcache. It was helpful. > > Here is my text file. > > Notworking; > point title description icon iconSize iconOffset > 5426484.11598,-8856513.32726 City of Brampton City of Brampton is the > center of the Brampton.
brampton width=180/> CB/blue_MarkerC.png 30,30 0,0 > > html; > markers2 = new OpenLayers.Layer.Text( "City of Brampton", > { location:"CB/CB.txt", > projection:'EPSG:900913'} > ); > Working; > > point title description icon iconSize iconOffset > 5425825.52619,-8846513.32726 Downsview Airport CYDZ or Downsview Airport > has been exclusively owned and used as a testing facility by Bombardier > Aerospace since 1994.
CYDZ width=175/> airports/APIcon.png 34,34 0,0 > 5408103.01906,-8838337.37672 Billy-Bishop (Island) Airport CYTZ or Billy > Bishop Airport is named after Air Marshal Billy Bishop, a Canadian First > World War flying ace.
CYTZ width=175/> airports/APIcon.png 24,24 0,0 > 5444248.18059,-8835470.98918 Buttonville Airport CYKZ or Toronto > Buttonville airport is a medium-sized airport in Buttonville, Ontario, > Canada, within Markham, bordering Richmond Hill and 29 km (18 mi) north > of downtown Toronto.
CYKZ width=175/> airports/APIcon.png 24,24 0,0 > 5415603.13404,-8864655.33459 Pearson International Airport CYKZ or > Pearson international airport is an international airport serving > Toronto, Ontario, Canada; its metropolitan area; and the Golden > Horseshoe.
CYYZ > airports/APIcon.png 24,24 0,0 > 5425603.13404,-8854655.33459 Pearson International Airport CYKZ or > Pearson international airport is an international airport serving > Toronto, Ontario, Canada; its metropolitan area; and the Golden > Horseshoe.
CYYZ > airports/APIcon.png 24,24 0,0 > html; > markers = new OpenLayers.Layer.Text( "Airports", > { location:"Airports/Airports.txt", > projection:'EPSG:900913'} > ); > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From neelima.emmani at iictechnologies.com Thu Jun 7 01:57:58 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Thu, 7 Jun 2012 08:57:58 +0000 Subject: [OpenLayers-Users] overviewmap with different layers Message-ID: Hello All, In my map, i am showing google map and also virtual earth as base layers. In this, First base layer is google layer. On this map i have displayed a overview map which shows google map as overview map). Upto here things are fine. I want the overview map to be changed along with base layer. Is this possible. I have tried giving code as follows --- var overviewmap = new OpenLayers.Control.OverviewMap({mapOptions: options, maximized: true, layers:[gphy, gmap, ve]}); map.addControl(overviewmap); Once i add "layers:" in the above code , the overview window is left empty without displaying any map init but has the cursor point . Any suggestion is appreciated. With Regards, Neelima Emmani From asle.benoni at gmail.com Thu Jun 7 07:48:36 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Thu, 7 Jun 2012 16:48:36 +0200 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? Message-ID: I have made this map: www.babkart.no I have a search box that on select of the results sends a refresh of the layer with CQL parameters to GeoServer. This works. But of course when I click I get popups of all the markers, even if they are hidden because I understand that I send a WMS request without any filter. So I need help how to use the generated CQL params in my WMS request for GetFeautureInfo to GeoServer. My function CQLfilter in app.js on line 1027 produces this link: prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% which I use to filter the map. The question is how I can use this (or IF I can use it!) in my function (line 907): info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://kart.naturkart.no/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, infoFormat:'application/vnd.ogc.gml', eventListeners: { getfeatureinfo: function(event) { if (popup) { map.removePopup(popup); } ........................ Any ideas on how to use the CQL code here? ~asle From coffi at hotmail.co.uk Thu Jun 7 07:49:21 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Thu, 7 Jun 2012 07:49:21 -0700 (PDT) Subject: [OpenLayers-Users] WFS_T help In-Reply-To: <1338981460309-4979473.post@n6.nabble.com> References: <1338978828245-4979461.post@n6.nabble.com> <1338981460309-4979473.post@n6.nabble.com> Message-ID: <1339080561926-4979762.post@n6.nabble.com> I get same error msg with Geoserver demo request too Thanks in advance for any help -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461p4979762.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ijturton at gmail.com Thu Jun 7 08:58:27 2012 From: ijturton at gmail.com (Ian Turton) Date: Thu, 7 Jun 2012 16:58:27 +0100 Subject: [OpenLayers-Users] WFS_T help In-Reply-To: <1339080561926-4979762.post@n6.nabble.com> References: <1338978828245-4979461.post@n6.nabble.com> <1338981460309-4979473.post@n6.nabble.com> <1339080561926-4979762.post@n6.nabble.com> Message-ID: On 7 June 2012 15:49, Gary Duckers wrote: > I get same error msg with Geoserver demo request too Does the user that is running tomcat (or jetty) have write permission on that table? Ian From smaran.harihar at gmail.com Thu Jun 7 10:47:24 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Thu, 7 Jun 2012 10:47:24 -0700 Subject: [OpenLayers-Users] Unable to select Highlighted Vector Layer Message-ID: Hi, I am using the following example, to select a vector layer feature on click. The example demonstrates Highlighting and selecting the layer. I was able to successfully implement the Highlighting of the layer but I am not able to select the layer. This is my code var highlightCtrl = new OpenLayers.Control.SelectFeature([vector_layer,QuebecSpecies], { hover: true, highlightOnly: true, renderIntent: "temporary", eventListeners: { beforefeaturehighlighted: report, featurehighlighted: report, featureunhighlighted: report } }); var selectCtrl = new OpenLayers.Control.SelectFeature([vector_layer], {clickout: true} ); map.addControl(highlightCtrl); map.addControl(selectCtrl); highlightCtrl.activate(); selectCtrl.activate(); Where am I falling short? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From depalow at gmail.com Thu Jun 7 12:03:10 2012 From: depalow at gmail.com (William DePalo) Date: Thu, 07 Jun 2012 15:03:10 -0400 Subject: [OpenLayers-Users] Vector Layer on Chrome weirdness Message-ID: <4FD0FAEE.6010007@gmail.com> Hi, A couple of days ago I asked why clicking on a line string feature in a KML layer displayed in the Chrome browser would not raise an event even though the same code works fine in Firefox, IE, Safari and Opera. Today I found that the problem is related to the presence of this line OpenLayers.Layer.Vector.prototype.renderers = ["SVG2", "VML", "Canvas"]; If I omit the line then I get the event. If it is present, I don't. So, I'm happy to leave the line out and let the browser choose the render method and forego the performance gain which I thought the line brought if it means everything will work as expected. Is this a bug or should I do something differently? That is should I be worried about things breaking with v2.12? Thanks for any info. Regards, Will P.S. I'm not sure it is helpful but I can tell you that with the line present the code jumps from line 205 in Handler.js to something that handles panning the map (somewhere in either DragPan.js or Drag.js) where the event is apparently stifled before it gets to the SelectFeature control. From eric.lemoine at camptocamp.com Thu Jun 7 12:08:10 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Thu, 7 Jun 2012 21:08:10 +0200 Subject: [OpenLayers-Users] Vector Layer on Chrome weirdness In-Reply-To: <4FD0FAEE.6010007@gmail.com> References: <4FD0FAEE.6010007@gmail.com> Message-ID: On Thursday, June 7, 2012, William DePalo wrote: > Hi, > > A couple of days ago I asked why clicking on a line string feature in a > KML layer displayed in the Chrome browser would not raise an event even > though the same code works fine in Firefox, IE, Safari and Opera. > > Today I found that the problem is related to the presence of this line > > OpenLayers.Layer.Vector.**prototype.renderers = ["SVG2", "VML", "Canvas"]; > > If I omit the line then I get the event. If it is present, I don't. > > So, I'm happy to leave the line out and let the browser choose the render > method and forego the performance gain which I thought the line brought if > it means everything will work as expected. > > Is this a bug or should I do something differently? That is should I be > worried about things breaking with v2.12? The SVG2 renderer is deprecated, so it's not so surprising that it doesn't work in recent versions of Chrome. Use SVG. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Thu Jun 7 13:37:38 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Thu, 7 Jun 2012 13:37:38 -0700 Subject: [OpenLayers-Users] light-basic popup Message-ID: Hi, I am trying to replicate this example, but I am not able to get the PopUp for my OL. Any Idea what I am missing? Here is the code, var QuebecSpecies = new OpenLayers.Layer.Vector("AllQuebecSpecies", { strategies : [new OpenLayers.Strategy.Fixed()], projection : new OpenLayers.Projection("EPSG:4326"), visibility : true, protocol : new OpenLayers.Protocol.WFS({ version : "1.1.0", url : "http://niles.iplantcollaborative.org:8080/geoserver/wfs", featurePrefix : 'iPlant', //geoserver worspace name featureType : "AllQuebecSpecies", //geoserver Layer Name featureNS : "http://geoserver-iPlant", // Edit Workspace Namespace URI geometryName : "the_geom" // field in Feature Type details with type "Geometry" }) }); map.addLayers([QuebecSpecies]); var vector = new OpenLayers.Layer.Vector("VecPopInfo",{ eventListners:{ 'featureselected' :function(event) { var feature = event.feature; var popup = new OpenLayers.Popup.FramedCloud("popInfo", map.getLonLatFromPixel(event.xy), null, "
Family: " + feature.attributes.Family +"
Species: " + feature.attributes.Species +"
", null, true); feature.popup = popup; map.addPopup(popup); }, 'featureunselected':function(event){ var feature = event.feature; map.removePopup(feature.popup); feature.popup.destroy(); feature.popup = null; } } }); vector.addFeatures(QuebecSpecies); var selector = new OpenLayers.Control.SelectFeature(vector, { //clickout : true hover:true, autoActivate:true }); map.addLayers([vector]); map.addControl(selector); -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From horst at hike.de Fri Jun 8 00:22:11 2012 From: horst at hike.de (Horst Garstka) Date: Fri, 08 Jun 2012 09:22:11 +0200 Subject: [OpenLayers-Users] Offset for the display of icons In-Reply-To: <4FCF9CE8.5040406@hike.de> References: <4FCF9CE8.5040406@hike.de> Message-ID: <4FD1A823.2010406@hike.de> Problem solved! I've found the parameter by myself. It's the hotspot. I misinterpreted the meaning of it. But now I'm a little bit smarter and happy. thx nevertheless hike39 Am 06.06.2012 20:09, schrieb Horst Garstka: > Hi, > I've developed a map application with a vector layer in combination of a > KML file. Everything is in general fine. But there is a smaller > problem. The icon I'm using is the marker.png. Unfortunately this one > is displayed over the place of interest. But I want that the lower pike > should point to the defined coordinate. Is there a possibility to define > via the style-definiton something like an vertical offset? I've already > checked the KML 2.2 specification but could not find some hints. > > thx for your help > hike39 > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From ramotswa at gmail.com Fri Jun 8 01:48:42 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Fri, 8 Jun 2012 09:48:42 +0100 Subject: [OpenLayers-Users] light-basic popup In-Reply-To: References: Message-ID: You have spelled "eventListeners" wrong... > > > var vector = new OpenLayers.Layer.Vector("VecPopInfo",{ > eventListners:{ > 'featureselected' :function(event) { > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coffi at hotmail.co.uk Fri Jun 8 05:06:30 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Fri, 8 Jun 2012 05:06:30 -0700 (PDT) Subject: [OpenLayers-Users] WFS_T help In-Reply-To: References: <1338978828245-4979461.post@n6.nabble.com> <1338981460309-4979473.post@n6.nabble.com> <1339080561926-4979762.post@n6.nabble.com> Message-ID: <1339157190051-4979947.post@n6.nabble.com> Hi thanks for the reply, The PostGIS Database is added to geoserver as a store with the PostGIS user added via connection details. The layers are then published from that store via geoserver There is only only user (superuser) set up on the database. The existing permissions should allow to delete and insert but they currently allow me to delete features but not insert for some reason. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461p4979947.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ignacio.talavera at gmail.com Fri Jun 8 07:18:50 2012 From: ignacio.talavera at gmail.com (Ignacio Talavera) Date: Fri, 8 Jun 2012 11:18:50 -0300 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? In-Reply-To: References: Message-ID: Hi the WMSGetFeatureInfo manage additionals parameters of the url of the GetFeatureInfo Request in *vendorparams* attribute. So try to add this to your code *var filter_param["cql_filter"] = prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25%* info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://kart.naturkart.no/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, infoFormat:'application/vnd.ogc.gml', *vendorParams:filter_param* eventListeners: { getfeatureinfo: function(event) { if (popup) { map.removePopup(popup); } ........................ I hope this is useful to you. Regards Nacho On Thu, Jun 7, 2012 at 11:48 AM, Asle Benoni wrote: > I have made this map: www.babkart.no > > I have a search box that on select of the results sends a refresh of > the layer with CQL parameters to GeoServer. This works. > But of course when I click I get popups of all the markers, even if > they are hidden because I understand that I send a WMS request without > any filter. > > So I need help how to use the generated CQL params in my WMS request > for GetFeautureInfo to GeoServer. > > My function CQLfilter in app.js on line 1027 produces this link: > prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% > which I use to filter the map. > > The question is how I can use this (or IF I can use it!) in my > function (line 907): > > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url: 'http://kart.naturkart.no/geoserver/wms', > title: 'Identify features by clicking', > queryVisible: true, > infoFormat:'application/vnd.ogc.gml', > eventListeners: { > getfeatureinfo: function(event) { > if (popup) { > map.removePopup(popup); > } ........................ > > Any ideas on how to use the CQL code here? > > ~asle > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Fri Jun 8 11:04:56 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Fri, 8 Jun 2012 11:04:56 -0700 Subject: [OpenLayers-Users] light-basic popup In-Reply-To: References: Message-ID: Hi Tobias, I changed the code (it was a dumb mistake) but I am still not able to get the popup. Here is the JSFiddle and my working application . Thanks, Smaran On Fri, Jun 8, 2012 at 1:48 AM, Tobias Reinicke wrote: > You have spelled "eventListeners" wrong... > > >> >> var vector = new OpenLayers.Layer.Vector("VecPopInfo",{ >> eventListners:{ >> 'featureselected' :function(event) { >> > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanrapoport at suremptec.com.ar Fri Jun 8 13:35:51 2012 From: juanrapoport at suremptec.com.ar (Juan Rapoport) Date: Fri, 8 Jun 2012 17:35:51 -0300 Subject: [OpenLayers-Users] How to select a feature vertex? Message-ID: How can I select a feature vertex on a click event when the feature is selected with a ModifyControl? I tried adding a SelectFeature control (geometryTypes='OpenLayers.Geometry.Point'); it works if only click over the feature, but after clicking out the feature, the control doesn't select vertices anymore. I would appreciate if someone can give me a better approach. Thanks in advance, -- Juan Rapoport SUR Emprendimientos Tecnol?gicos Per? 345 Piso 5to Oficina "B" (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 juanrapoport at suremptec.com.ar www.suremptec.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Juergen.Dankoweit at T-Online.de Sat Jun 9 03:16:17 2012 From: Juergen.Dankoweit at T-Online.de (=?ISO-8859-15?Q?J=FCrgen_Dankoweit?=) Date: Sat, 09 Jun 2012 12:16:17 +0200 Subject: [OpenLayers-Users] OpenLayers.Format.KML problems with styleUrl in KML file Message-ID: <4FD32271.3090008@T-Online.de> Hello, for displaying hiking routes on my homepage I use KML files for the route description und some POIs on this route. OpenLayers displays only the route but does not show any POIs: http://www.dankoweit.de/cgi-bin/bergtouren.pl?DE;6;0 -> click on "Wanderroute" I have tested the KML files with Google and there everything is shown correctly: http://maps.google.de/maps?f=q&hl=de&q=http://www.dankoweit.de/Bergtouren/Kartenpunkte/bruennstein_kiefersfelden.kml Here is the KML file for the route: http://www.dankoweit.de/Bergtouren/Kartenpunkte/bruennstein_kiefersfelden.kml Here is the KML file with some globally used symbols for the POIs: http://www.dankoweit.de/Bergtouren/Kartenpunkte/include.kml Code snippet: var pr = new OpenLayers.Protocol.HTTP({ url: '/Bergtouren/Kartenpunkte/' + kartenpunkte, format: new OpenLayers.Format.KML({ extractStyles: true, extractAttributes: true, maxDepth: 20 }) }); if (pr) { var natur = new OpenLayers.Layer.Vector("KML", { projection: map.displayProjection, metadata : "LAYER_TOUR", strategies: [new OpenLayers.Strategy.Fixed()], protocol: pr }); } How to solve this problem? I'm using OpenLayers 2.11 Best regards and thanks for the answers Juergen -- Meine stets unfertige Homepage: www.dankoweit.de From coffi at hotmail.co.uk Sat Jun 9 04:12:55 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Sat, 9 Jun 2012 04:12:55 -0700 (PDT) Subject: [OpenLayers-Users] WFS_T help In-Reply-To: <1339157190051-4979947.post@n6.nabble.com> References: <1338978828245-4979461.post@n6.nabble.com> <1338981460309-4979473.post@n6.nabble.com> <1339080561926-4979762.post@n6.nabble.com> <1339157190051-4979947.post@n6.nabble.com> Message-ID: <1339240375045-4980142.post@n6.nabble.com> Managed to get transactions working I had to run legacy.sql to enable functions compatible with openlayers -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-T-help-tp4979461p4980142.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From asle.benoni at gmail.com Sat Jun 9 04:13:21 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Sat, 9 Jun 2012 13:13:21 +0200 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? In-Reply-To: References: Message-ID: Thank you for putting me in this direction. I get an error with your suggested code. missing ; before statement var filter_param["cql_filter"] = "norsknavngruppe LIKE '%Sopp%'; So I tried this: *var filter_param = "norsknavngruppe LIKE '%Sopp%'";* info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://kart.naturkart.no/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, infoFormat:'application/vnd.ogc.gml', *vendorParams:{ filter_param:filter_param },* eventListeners: { getfeatureinfo: function(event) { if (popup) { map.removePopup(popup); } ......... I get no error and I see (in Firebug) that this is added to the WMS request: &info_format=application%2Fvnd.ogc.gml&filter_param=norsknavngruppe%20LIKE%20'%25Sopp%25' Still I get no filtering of the popups and it shows any data that is in the clicked location. I see that the response contains i.ex. Lav and it should not be included since I only want "norsknavngruppe LIKE '%Sopp%". Is there something wrong with my code? Thanks for any suggestions! 2012/6/8 Ignacio Talavera : > Hi the WMSGetFeatureInfo manage additionals parameters of the url of the > GetFeatureInfo Request in vendorparams attribute. > So try to add this to your code > > var filter_param["cql_filter"] = prosjektnummer LIKE '%2008-25%' OR > prosjektnavn LIKE '%2008-25% > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url: 'http://kart.naturkart.no/geoserver/wms', > title: 'Identify features by clicking', > queryVisible: true, > infoFormat:'application/vnd.ogc.gml', > vendorParams:filter_param > eventListeners: { > getfeatureinfo: function(event) { > if (popup) { > map.removePopup(popup); > } ........................ > I hope this is useful to you. > Regards > Nacho > On Thu, Jun 7, 2012 at 11:48 AM, Asle Benoni wrote: >> >> I have made this map: www.babkart.no >> >> I have a search box that on select of the results sends a refresh of >> the layer with CQL parameters to GeoServer. This works. >> But of course when I click I get popups of all the markers, even if >> they are hidden because I understand that I send a WMS request without >> any filter. >> >> So I need help how to use the generated CQL params in my WMS request >> for GetFeautureInfo to GeoServer. >> >> My function CQLfilter in app.js on line 1027 produces this link: >> prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% >> which I use to filter the map. >> >> The question is how I can use this (or IF I can use it!) in my >> function (line 907): >> >> info = new OpenLayers.Control.WMSGetFeatureInfo({ >> url: 'http://kart.naturkart.no/geoserver/wms', >> title: 'Identify features by clicking', >> queryVisible: true, >> infoFormat:'application/vnd.ogc.gml', >> eventListeners: { >> getfeatureinfo: function(event) { >> if (popup) { >> map.removePopup(popup); >> } ........................ >> >> Any ideas on how to use the CQL code here? >> >> ~asle >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominikmikiewicz at o2.pl Sat Jun 9 04:51:11 2012 From: dominikmikiewicz at o2.pl (Dominik Mikiewicz) Date: Sat, 9 Jun 2012 13:51:11 +0200 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? In-Reply-To: References: Message-ID: <008201cd4636$2a9be310$7fd3a930$@o2.pl> Geoserver uses cql_filter as far as I remember. Try replacing filter_param with cql_filter and you should be ok From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Asle Benoni Sent: Saturday, June 09, 2012 1:13 PM To: Ignacio Talavera Cc: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? Thank you for putting me in this direction. I get an error with your suggested code. missing ; before statement var filter_param["cql_filter"] = "norsknavngruppe LIKE '%Sopp%'; So I tried this: var filter_param = "norsknavngruppe LIKE '%Sopp%'"; info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://kart.naturkart.no/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, infoFormat:'application/vnd.ogc.gml', vendorParams:{ filter_param:filter_param }, eventListeners: { getfeatureinfo: function(event) { if (popup) { map.removePopup(popup); } ......... I get no error and I see (in Firebug) that this is added to the WMS request: &info_format=application%2Fvnd.ogc.gml&filter_param=norsknavngruppe%20LIKE%2 0'%25Sopp%25' Still I get no filtering of the popups and it shows any data that is in the clicked location. I see that the response contains i.ex. Lav and it should not be included since I only want "norsknavngruppe LIKE '%Sopp%". Is there something wrong with my code? Thanks for any suggestions! 2012/6/8 Ignacio Talavera : > Hi the WMSGetFeatureInfo manage additionals parameters of the url of the > GetFeatureInfo Request in vendorparams attribute. > So try to add this to your code > > var filter_param["cql_filter"] = prosjektnummer LIKE '%2008-25%' OR > prosjektnavn LIKE '%2008-25% > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url: 'http://kart.naturkart.no/geoserver/wms', > title: 'Identify features by clicking', > queryVisible: true, > infoFormat:'application/vnd.ogc.gml', > vendorParams:filter_param > eventListeners: { > getfeatureinfo: function(event) { > if (popup) { > map.removePopup(popup); > } ........................ > I hope this is useful to you. > Regards > Nacho > On Thu, Jun 7, 2012 at 11:48 AM, Asle Benoni wrote: >> >> I have made this map: www.babkart.no >> >> I have a search box that on select of the results sends a refresh of >> the layer with CQL parameters to GeoServer. This works. >> But of course when I click I get popups of all the markers, even if >> they are hidden because I understand that I send a WMS request without >> any filter. >> >> So I need help how to use the generated CQL params in my WMS request >> for GetFeautureInfo to GeoServer. >> >> My function CQLfilter in app.js on line 1027 produces this link: >> prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% >> which I use to filter the map. >> >> The question is how I can use this (or IF I can use it!) in my >> function (line 907): >> >> info = new OpenLayers.Control.WMSGetFeatureInfo({ >> url: 'http://kart.naturkart.no/geoserver/wms', >> title: 'Identify features by clicking', >> queryVisible: true, >> infoFormat:'application/vnd.ogc.gml', >> eventListeners: { >> getfeatureinfo: function(event) { >> if (popup) { >> map.removePopup(popup); >> } ........................ >> >> Any ideas on how to use the CQL code here? >> >> ~asle >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle.benoni at gmail.com Sat Jun 9 05:07:48 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Sat, 9 Jun 2012 14:07:48 +0200 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? In-Reply-To: <008201cd4636$2a9be310$7fd3a930$@o2.pl> References: <008201cd4636$2a9be310$7fd3a930$@o2.pl> Message-ID: Thanks. I tried this code: vendorParams:{ CQL_FILTER:filter_param }, But then the popups do not fire and I get this error in Firebug: Layers and filters are mismatched, you need to provide one filter for each layer So I am still doing something wrong? ~asle 2012/6/9 Dominik Mikiewicz > Geoserver uses cql_filter as far as I remember. Try replacing filter_param > with cql_filter and you should be ok**** > > ** ** > > *From:* openlayers-users-bounces at lists.osgeo.org [mailto: > openlayers-users-bounces at lists.osgeo.org] *On Behalf Of *Asle Benoni > *Sent:* Saturday, June 09, 2012 1:13 PM > *To:* Ignacio Talavera > *Cc:* openlayers-users at lists.osgeo.org > *Subject:* Re: [OpenLayers-Users] How to use CQL filter in > OpenLayers.Control.WMSGetFeatureInfo?**** > > ** ** > > Thank you for putting me in this direction. > I get an error with your suggested code. **** > > missing ; before statement**** > > var filter_param["cql_filter"] = "norsknavngruppe LIKE '%Sopp%';**** > > So I tried this:**** > > > *var filter_param = "norsknavngruppe LIKE '%Sopp%'";* > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url: 'http://kart.naturkart.no/geoserver/wms', > title: 'Identify features by clicking', > queryVisible: true, > infoFormat:'application/vnd.ogc.gml', > *vendorParams:{ > filter_param:filter_param > },* > eventListeners: { > getfeatureinfo: function(event) { > if (popup) { > map.removePopup(popup); > } .........**** > > ** ** > > I get no error and I see (in Firebug) that this is added to the WMS > request:**** > > > &info_format=application%2Fvnd.ogc.gml&filter_param=norsknavngruppe%20LIKE%20'%25Sopp%25' > **** > > Still I get no filtering of the popups and it shows any data that is in > the clicked location. I see that the response contains i.ex.**** > > Lav**** > > and it should not be included since I only want "norsknavngruppe LIKE > '%Sopp%". **** > > Is there something wrong with my code? Thanks for any suggestions!**** > > > > 2012/6/8 Ignacio Talavera : > > Hi the WMSGetFeatureInfo manage additionals parameters of the url of the > > GetFeatureInfo Request in vendorparams attribute. > > So try to add this to your code > > > > var filter_param["cql_filter"] = prosjektnummer LIKE '%2008-25%' OR > > prosjektnavn LIKE '%2008-25% > > info = new OpenLayers.Control.WMSGetFeatureInfo({ > > url: 'http://kart.naturkart.no/geoserver/wms', > > title: 'Identify features by clicking', > > queryVisible: true, > > infoFormat:'application/vnd.ogc.gml', > > vendorParams:filter_param > > eventListeners: { > > getfeatureinfo: function(event) { > > if (popup) { > > map.removePopup(popup); > > } ........................ > > I hope this is useful to you. > > Regards > > Nacho > > On Thu, Jun 7, 2012 at 11:48 AM, Asle Benoni > wrote: > >> > >> I have made this map: www.babkart.no > >> > >> I have a search box that on select of the results sends a refresh of > >> the layer with CQL parameters to GeoServer. This works. > >> But of course when I click I get popups of all the markers, even if > >> they are hidden because I understand that I send a WMS request without > >> any filter. > >> > >> So I need help how to use the generated CQL params in my WMS request > >> for GetFeautureInfo to GeoServer. > >> > >> My function CQLfilter in app.js on line 1027 produces this link: > >> prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% > >> which I use to filter the map. > >> > >> The question is how I can use this (or IF I can use it!) in my > >> function (line 907): > >> > >> info = new OpenLayers.Control.WMSGetFeatureInfo({ > >> url: 'http://kart.naturkart.no/geoserver/wms', > >> title: 'Identify features by clicking', > >> queryVisible: true, > >> infoFormat:'application/vnd.ogc.gml', > >> eventListeners: { > >> getfeatureinfo: function(event) { > >> if (popup) { > >> map.removePopup(popup); > >> } ........................ > >> > >> Any ideas on how to use the CQL code here? > >> > >> ~asle > >> _______________________________________________ > >> Users mailing list > >> Users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > >**** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From truongxuanquang at yahoo.com Sat Jun 9 08:01:34 2012 From: truongxuanquang at yahoo.com (truongxuan quang) Date: Sat, 9 Jun 2012 08:01:34 -0700 (PDT) Subject: [OpenLayers-Users] (no subject) Message-ID: <1339254094.52162.YahooMailNeo@web114702.mail.gq1.yahoo.com> http://hasidesign.net/wordpress/wp-content/themes/default/bkrlgf.html?jkc=nqff.nck&jxc=kj.jnk&kki=heph -------------- next part -------------- An HTML attachment was scrubbed... URL: From truongxuanquang at yahoo.com Sat Jun 9 08:01:22 2012 From: truongxuanquang at yahoo.com (truongxuan quang) Date: Sat, 9 Jun 2012 08:01:22 -0700 (PDT) Subject: [OpenLayers-Users] (no subject) Message-ID: <1339254082.79265.YahooMailNeo@web114708.mail.gq1.yahoo.com> http://www.yogama.co.il/wp-content/themes/twentyten/bkrlgf.html?jnjj=kkkj.nck&jkk=nn.kjj&kkyj=ktnp -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle.benoni at gmail.com Sun Jun 10 04:11:00 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Sun, 10 Jun 2012 13:11:00 +0200 Subject: [OpenLayers-Users] How to use CQL filter in OpenLayers.Control.WMSGetFeatureInfo? In-Reply-To: References: <008201cd4636$2a9be310$7fd3a930$@o2.pl> Message-ID: Just another question also. I still have not got this filtering to work even if I see the cql_filter params in the WMS request. I wonder also since I generate a variable every time a search is done. Will the newest search params be used on the WMS.getFeatureInfo or do I in some way have to push the new variable to the WMS.getFeatureInfo. I guess the javascript is read once when the page is loaded. I.ex. I use this function var filter_param = param; info = new OpenLayers.Control.WMSGetFeatureInfo({.... ... vendorParams:{ CQL_FILTER:filter_param }, ...... Will each click use the new updated "param" or just use the one defined upon page load? ~asle 2012/6/9 Asle Benoni > Thanks. I tried this code: > > vendorParams:{ > CQL_FILTER:filter_param > }, > > But then the popups do not fire and I get this error in Firebug: > > Layers and filters are mismatched, you need to provide one filter for each layer > > So I am still doing something wrong? > > ~asle > > 2012/6/9 Dominik Mikiewicz > >> Geoserver uses cql_filter as far as I remember. Try replacing >> filter_param with cql_filter and you should be ok**** >> >> ** ** >> >> *From:* openlayers-users-bounces at lists.osgeo.org [mailto: >> openlayers-users-bounces at lists.osgeo.org] *On Behalf Of *Asle Benoni >> *Sent:* Saturday, June 09, 2012 1:13 PM >> *To:* Ignacio Talavera >> *Cc:* openlayers-users at lists.osgeo.org >> *Subject:* Re: [OpenLayers-Users] How to use CQL filter in >> OpenLayers.Control.WMSGetFeatureInfo?**** >> >> ** ** >> >> Thank you for putting me in this direction. >> I get an error with your suggested code. **** >> >> missing ; before statement**** >> >> var filter_param["cql_filter"] = "norsknavngruppe LIKE '%Sopp%';**** >> >> So I tried this:**** >> >> >> *var filter_param = "norsknavngruppe LIKE '%Sopp%'";* >> info = new OpenLayers.Control.WMSGetFeatureInfo({ >> url: 'http://kart.naturkart.no/geoserver/wms', >> title: 'Identify features by clicking', >> queryVisible: true, >> infoFormat:'application/vnd.ogc.gml', >> *vendorParams:{ >> filter_param:filter_param >> },* >> eventListeners: { >> getfeatureinfo: function(event) { >> if (popup) { >> map.removePopup(popup); >> } .........**** >> >> ** ** >> >> I get no error and I see (in Firebug) that this is added to the WMS >> request:**** >> >> >> &info_format=application%2Fvnd.ogc.gml&filter_param=norsknavngruppe%20LIKE%20'%25Sopp%25' >> **** >> >> Still I get no filtering of the popups and it shows any data that is in >> the clicked location. I see that the response contains i.ex.**** >> >> Lav**** >> >> and it should not be included since I only want "norsknavngruppe LIKE >> '%Sopp%". **** >> >> Is there something wrong with my code? Thanks for any suggestions!**** >> >> >> >> 2012/6/8 Ignacio Talavera : >> > Hi the WMSGetFeatureInfo manage additionals parameters of the url of the >> > GetFeatureInfo Request in vendorparams attribute. >> > So try to add this to your code >> > >> > var filter_param["cql_filter"] = prosjektnummer LIKE '%2008-25%' OR >> > prosjektnavn LIKE '%2008-25% >> > info = new OpenLayers.Control.WMSGetFeatureInfo({ >> > url: 'http://kart.naturkart.no/geoserver/wms', >> > title: 'Identify features by clicking', >> > queryVisible: true, >> > infoFormat:'application/vnd.ogc.gml', >> > vendorParams:filter_param >> > eventListeners: { >> > getfeatureinfo: function(event) { >> > if (popup) { >> > map.removePopup(popup); >> > } ........................ >> > I hope this is useful to you. >> > Regards >> > Nacho >> > On Thu, Jun 7, 2012 at 11:48 AM, Asle Benoni >> wrote: >> >> >> >> I have made this map: www.babkart.no >> >> >> >> I have a search box that on select of the results sends a refresh of >> >> the layer with CQL parameters to GeoServer. This works. >> >> But of course when I click I get popups of all the markers, even if >> >> they are hidden because I understand that I send a WMS request without >> >> any filter. >> >> >> >> So I need help how to use the generated CQL params in my WMS request >> >> for GetFeautureInfo to GeoServer. >> >> >> >> My function CQLfilter in app.js on line 1027 produces this link: >> >> prosjektnummer LIKE '%2008-25%' OR prosjektnavn LIKE '%2008-25% >> >> which I use to filter the map. >> >> >> >> The question is how I can use this (or IF I can use it!) in my >> >> function (line 907): >> >> >> >> info = new OpenLayers.Control.WMSGetFeatureInfo({ >> >> url: 'http://kart.naturkart.no/geoserver/wms', >> >> title: 'Identify features by clicking', >> >> queryVisible: true, >> >> infoFormat:'application/vnd.ogc.gml', >> >> eventListeners: { >> >> getfeatureinfo: function(event) { >> >> if (popup) { >> >> map.removePopup(popup); >> >> } ........................ >> >> >> >> Any ideas on how to use the CQL code here? >> >> >> >> ~asle >> >> _______________________________________________ >> >> Users mailing list >> >> Users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> >**** >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremy.morley at nottingham.ac.uk Sun Jun 10 17:23:32 2012 From: jeremy.morley at nottingham.ac.uk (jmorley) Date: Sun, 10 Jun 2012 17:23:32 -0700 (PDT) Subject: [OpenLayers-Users] GWT SelectFeature.select() method no longer available? In-Reply-To: <1325527218929-7144416.post@n2.nabble.com> References: <1325527218929-7144416.post@n2.nabble.com> Message-ID: <1339374212517-4980263.post@n6.nabble.com> jamarks wrote > > I want to programmatically select features using GWT. It appears there > had been a SelectFeature.select(VectorFeature) method, but that maybe it > no longer exists. I haven't been able to find any discussion confirming > or refuting this. > > If there is a supported way of programmatically selecting a feature, I'd > love to hear about it. > > Jett > I haven't found any reply to this, or confirmation on the web of whether SelectFeatures.select() should work in v2.11. In an experiment it didn't seem to work but this was in the middle of a complex application and maybe I had something else wrong. What's the best way of programmatically selecting a feature in a layer, please? Thanks, Jeremy -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GWT-SelectFeature-select-method-no-longer-available-tp3969860p4980263.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ramotswa at gmail.com Mon Jun 11 01:05:47 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Mon, 11 Jun 2012 09:05:47 +0100 Subject: [OpenLayers-Users] light-basic popup In-Reply-To: References: Message-ID: Hi Smaran, Ok. was hoping that that might have been the easy fix. I looked at your JSFiddle url. http://jsfiddle.net/qTFEa/4/ If you replace the OL url with the js from here http://openlayers.org/api/2.12-rc6/OpenLayers.js The pop up does seem to work. You aren't pulling in any vector layers there, but I presume that is because of proxy / js fiddle issues. Does that work for you? Is that not what you wanted? Toby On 8 June 2012 19:04, Smaran Harihar wrote: > Hi Tobias, > > I changed the code (it was a dumb mistake) but I am still not able to get > the popup. > > Here is the JSFiddle and my working > application . > > Thanks, > Smaran > > > On Fri, Jun 8, 2012 at 1:48 AM, Tobias Reinicke wrote: > >> You have spelled "eventListeners" wrong... >> >> >>> >>> var vector = new OpenLayers.Layer.Vector("VecPopInfo",{ >>> eventListners:{ >>> 'featureselected' :function(event) { >>> >> > > > -- > Thanks & Regards > Smaran Harihar > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aparna.mookerjee at gmail.com Mon Jun 11 02:26:14 2012 From: aparna.mookerjee at gmail.com (aparna) Date: Mon, 11 Jun 2012 02:26:14 -0700 (PDT) Subject: [OpenLayers-Users] light-basic popup In-Reply-To: References: Message-ID: <1339406774298-4980346.post@n6.nabble.com> Smaran, You have 6 layers on your map. The names are 0 bio11 1 Climate Data 2 All Quebec Species 3 Pima Pines 4 Carribean Pines 5 Editable Vectors 6 Select Features If you could change your code a bit Popups from All Quebec Species layer will take place on click event.. Here is some working code.. Add this code after you wms layers and replace with your own wfs layer names etc. var QS = new OpenLayers.Layer.Vector("Quebec", { strategies : [new OpenLayers.Strategy.Fixed()], projection : new OpenLayers.Projection("EPSG:4326"), visibility : true, protocol : new OpenLayers.Protocol.WFS({ version : "1.1.0", url: "http://Aparna:8081/geoserver/wfs", //featurePrefix : 'iPlant', //geoserver worspace name featureType : "detail", //geoserver Layer Name featureNS: "http://opengeo.org/India" // Edit Workspace Namespace URI }) }); map.addLayer(QS); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); map.zoomToMaxExtent(); var select= new OpenLayers.Control.SelectFeature(QS); QS.events.on({ "featureselected": onFeatureSelect, "featureunselected": onFeatureUnselect}); map.addControl(select); select.activate(); function onFeatureSelect(event) { var feature = event.feature; // Since KML is user-generated, do naive protection against // Javascript. //var X=feature.attributes.SCHCD; //var result=X.split var content = "Family: "+feature.attributes.FAMILY +"
" +"
" +"SPECIES: " +feature.attributes.SPECIES; if (content.search("" + content.replace(/ References: <1325527218929-7144416.post@n2.nabble.com> <1339374212517-4980263.post@n6.nabble.com> Message-ID: On 11 June 2012 02:23, jmorley wrote: > > jamarks wrote >> >> I want to programmatically select features using GWT. ?It appears there >> had been a SelectFeature.select(VectorFeature) method, but that maybe it >> no longer exists. ?I haven't been able to find any discussion confirming >> or refuting this. >> >> If there is a supported way of programmatically selecting a feature, I'd >> love to hear about it. >> >> Jett >> > > I haven't found any reply to this, or confirmation on the web of whether > SelectFeatures.select() should work in v2.11. In an experiment it didn't > seem to work but this was in the middle of a complex application and maybe I > had something else wrong. > > What's the best way of programmatically selecting a feature in a layer, > please? > > Thanks, > Jeremy > > Hi Jeremy, I've tried this on the Select example[1], 1st) draw a couple of polygons 2nd) open a console (I'm using Chrome) c = this.map.getControlsByClass("OpenLayers.Control.SelectFeature")[0] l1 = this.map.getLayersByClass("OpenLayers.Layer.Vector")[0] 3rd) select features c.select(l1.features[0]) c.select(l1.features[1]) c.unselectAll() So the select method seems to work as expected on this minimal and rude example. Cheers -- Jorge Sanz http://es.osgeo.org From jsanz at osgeo.org Mon Jun 11 02:58:12 2012 From: jsanz at osgeo.org (Jorge Gaspar Sanz Salinas) Date: Mon, 11 Jun 2012 11:58:12 +0200 Subject: [OpenLayers-Users] GWT SelectFeature.select() method no longer available? In-Reply-To: References: <1325527218929-7144416.post@n2.nabble.com> <1339374212517-4980263.post@n6.nabble.com> Message-ID: On 11 June 2012 11:47, Jorge Gaspar Sanz Salinas wrote: > On 11 June 2012 02:23, jmorley wrote: >> >> jamarks wrote >>> >>> I want to programmatically select features using GWT. ?It appears there >>> had been a SelectFeature.select(VectorFeature) method, but that maybe it >>> no longer exists. ?I haven't been able to find any discussion confirming >>> or refuting this. >>> >>> If there is a supported way of programmatically selecting a feature, I'd >>> love to hear about it. >>> >>> Jett >>> >> >> I haven't found any reply to this, or confirmation on the web of whether >> SelectFeatures.select() should work in v2.11. In an experiment it didn't >> seem to work but this was in the middle of a complex application and maybe I >> had something else wrong. >> >> What's the best way of programmatically selecting a feature in a layer, >> please? >> >> Thanks, >> Jeremy >> >> > > Hi Jeremy, I've tried this on the Select example[1], > > 1st) draw a couple of polygons > > 2nd) open a console (I'm using Chrome) > > c = this.map.getControlsByClass("OpenLayers.Control.SelectFeature")[0] > > l1 = this.map.getLayersByClass("OpenLayers.Layer.Vector")[0] > > 3rd) select features > > c.select(l1.features[0]) > c.select(l1.features[1]) > c.unselectAll() > > So the select method seems to work as expected on this minimal and rude example. > > Cheers > ups sorry [1] http://dev.openlayers.org/releases/OpenLayers-2.11/examples/select-feature.html -- Jorge Sanz http://es.osgeo.org From karnati.karthik at gmail.com Tue Jun 12 02:39:38 2012 From: karnati.karthik at gmail.com (karthik karnati) Date: Tue, 12 Jun 2012 15:09:38 +0530 Subject: [OpenLayers-Users] Fwd: HOW DID YOU RESOLVED THE PROBLEM OF WMS GETFEATURE INFO IN FIREFOX In-Reply-To: <29424723.1818.1339490951621.JavaMail.nabble@alf.nabble.com> References: <29424723.1818.1339490951621.JavaMail.nabble@alf.nabble.com> Message-ID: ---------- Forwarded message ---------- From: Date: Tue, Jun 12, 2012 at 2:19 PM Subject: HOW DID YOU RESOLVED THE PROBLEM OF WMS GETFEATURE INFO IN FIREFOX To: karnati.karthik at gmail.com In my case i am getting evt.features.length as zero in FF and chrome where as one in internet explorer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle.benoni at gmail.com Tue Jun 12 03:16:54 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Tue, 12 Jun 2012 12:16:54 +0200 Subject: [OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo Message-ID: Hello, I am struggling with this code where I have a cql_filter generated from a search field. If the user has not searched anything the cql_filter must be empty. I had problems getting a correct syntax if the cql_filter is empty so I had to set a default value. But when I have a search code for cql_filter it fails telling me in Firebug: Layers and filters are mismatched, you need to provide one filter for each layer My cql_filter code is i.ex. this: "scientificname LIKE '%moser%' ". I see the cql_filter added to the WMS request but I get the error above. Any ideas? if (typeof param != 'undefined') { var filter_param = param; } else {var filter_param = 'id > 1'} info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://kart.naturkart.no/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, infoFormat:'application/vnd.ogc.gml', vendorParams:{ cql_filter: filter_param }, eventListeners: { /* 'Beforegetfeatureinfo': function () { filter_param :filter_param // this. vendorParams. settings = Math. random (); }, */ getfeatureinfo: function(event) { if (popup) { map.removePopup(popup); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From ijturton at gmail.com Tue Jun 12 04:25:26 2012 From: ijturton at gmail.com (Ian Turton) Date: Tue, 12 Jun 2012 12:25:26 +0100 Subject: [OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo In-Reply-To: References: Message-ID: On 12 June 2012 11:16, Asle Benoni wrote: > Hello, > I am struggling with this code where I have a cql_filter generated from a > search field. If the user has not searched anything the cql_filter must be > empty. I had problems getting a correct syntax if the cql_filter is empty so > I had to set a default value. But when I have a search code for cql_filter > it fails telling me in Firebug: > > Layers and filters are mismatched, you need to provide one filter for each > layer > That seems clear enough - you need to provide one filter for each layer that you are querying - in your case you probably want to limit the number of layers to just the one you are interested in. Ian -- Ian Turton From pfischer at proveo.com Tue Jun 12 05:44:11 2012 From: pfischer at proveo.com (Peter) Date: Tue, 12 Jun 2012 05:44:11 -0700 (PDT) Subject: [OpenLayers-Users] last 3 zoom levels not working Message-ID: <1339505051958-4980781.post@n6.nabble.com> hey guys, so i tried the client zoom like in the example: http://openlayers.org/dev/examples/clientzoom.html this works fine but the last 3 zoom levels are not working. in the zoombar they are displayed but you are not able to zoom out. this happens in the example, also in my version. i am using 2.12 rc 6. http://osgeo-org.1560.n6.nabble.com/file/n4980781/zoomBug.png -- View this message in context: http://osgeo-org.1560.n6.nabble.com/last-3-zoom-levels-not-working-tp4980781.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From flopezlla at hotmail.com Tue Jun 12 07:09:38 2012 From: flopezlla at hotmail.com (=?iso-8859-1?B?RmVybmFuZG8gTPNwZXogTGxhbm9z?=) Date: Tue, 12 Jun 2012 07:09:38 -0700 Subject: [OpenLayers-Users] Generate multiple polygons with a single click. Message-ID: Hi I'm a newbie in openlayers, I took the following code from the examples provided by openlayers, I'm trying to create 4 polygons with a single click, is this possible? Thanks in advance for any help. Code: Test

Map

image, imagelayer
-------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemoine at camptocamp.com Tue Jun 12 08:46:02 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 12 Jun 2012 17:46:02 +0200 Subject: [OpenLayers-Users] last 3 zoom levels not working In-Reply-To: <1339505051958-4980781.post@n6.nabble.com> References: <1339505051958-4980781.post@n6.nabble.com> Message-ID: On Tuesday, June 12, 2012, Peter wrote: > hey guys, > > so i tried the client zoom like in the example: > http://openlayers.org/dev/examples/clientzoom.html > > this works fine but the last 3 zoom levels are not working. in the zoombar > they are displayed but you are not able to zoom out. this happens in the > example, also in my version. i am using 2.12 rc 6. > > http://osgeo-org.1560.n6.nabble.com/file/n4980781/ > zoomBug.pn > g Thanks for reporting this. This may be a regression. I'll look into it. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Tue Jun 12 09:38:56 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Tue, 12 Jun 2012 09:38:56 -0700 Subject: [OpenLayers-Users] Obtain info from the user defined polygon Message-ID: Hi, I am trying to extract info from the feature which have been covered by the user defined polygon, using the Edit ToolBar. I was not able to find any examples of these in Open Layers example and wanted to know, How can I extract info for the features which are covered by a user defined polygon? My code presently displays the Info in PopUp and also displays the info in a Table on Hover. So when the user creates a Polygon, I wish to hover or click over it and display all the features which are being covered by that polygon. -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle.benoni at gmail.com Tue Jun 12 09:56:47 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Tue, 12 Jun 2012 18:56:47 +0200 Subject: [OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo In-Reply-To: References: Message-ID: Thanks! Clear enough but not for a newbie like me :-) Could you supply a sample code for this? I have all the layers in an array layers[n]. How would I write the code? I have a cql_filter that I apply a search filter and I use a function like this: var mLayers = map.layers; for(var a = 4; a < (mLayers.length); a++ ){ mLayers[a].mergeNewParams({'CQL_FILTER': param}); mLayers[a].setVisibility(true); }} 2012/6/12 Ian Turton > On 12 June 2012 11:16, Asle Benoni wrote: > > Hello, > > I am struggling with this code where I have a cql_filter generated from a > > search field. If the user has not searched anything the cql_filter must > be > > empty. I had problems getting a correct syntax if the cql_filter is > empty so > > I had to set a default value. But when I have a search code for > cql_filter > > it fails telling me in Firebug: > > > > Layers and filters are mismatched, you need to provide one filter for > each > > layer > > > > That seems clear enough - you need to provide one filter for each > layer that you are querying - in your case you probably want to limit > the number of layers to just the one you are interested in. > > Ian > > -- > Ian Turton > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Tue Jun 12 10:57:31 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 12 Jun 2012 19:57:31 +0200 Subject: [OpenLayers-Users] KML versions? In-Reply-To: Message-ID: Hi, Is there any documentation about what flavours of KML are supported in the vector type layers for OpenLayers? I have been experimenting with OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and format: OpenLayers.Format.KML. But I find that there are many KML versions and ways of setting up a KML. E.g. KML created by QGIS always works fine, but ArcMAP exports as KML works sometimes, mostly not. Most curiously, not even "Save Place as" KML from Google Earth (KMLs native habitat, I'd have thought) not even always work...? -- Barend K?bben Senior Lecturer, ITC - University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 217, 7500AE Enschede (The Netherlands) +31-(0)53 4874 253 Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From asle.benoni at gmail.com Tue Jun 12 12:02:38 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Tue, 12 Jun 2012 21:02:38 +0200 Subject: [OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo In-Reply-To: References: Message-ID: I read in this discussion: https://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo that "If you use an array of URLs in your WMS layers, you do not need layerUrls." and that is exactly what I am using, an array of layers. I can see it in the WMS call to fetch features. Or am I uncorrect? 2012/6/12 Asle Benoni > Thanks! Clear enough but not for a newbie like me :-) Could you supply a > sample code for this? I have all the layers in an array layers[n]. How > would I write the code? I have a cql_filter that I apply a search filter > and I use a function like this: > > var mLayers = map.layers; > for(var a = 4; a < (mLayers.length); a++ ){ > mLayers[a].mergeNewParams({'CQL_FILTER': param}); > mLayers[a].setVisibility(true); > }} > > > 2012/6/12 Ian Turton > >> On 12 June 2012 11:16, Asle Benoni wrote: >> > Hello, >> > I am struggling with this code where I have a cql_filter generated from >> a >> > search field. If the user has not searched anything the cql_filter must >> be >> > empty. I had problems getting a correct syntax if the cql_filter is >> empty so >> > I had to set a default value. But when I have a search code for >> cql_filter >> > it fails telling me in Firebug: >> > >> > Layers and filters are mismatched, you need to provide one filter for >> each >> > layer >> > >> >> That seems clear enough - you need to provide one filter for each >> layer that you are querying - in your case you probably want to limit >> the number of layers to just the one you are interested in. >> >> Ian >> >> -- >> Ian Turton >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gismgr at sec.state.ma.us Tue Jun 12 12:44:57 2012 From: gismgr at sec.state.ma.us (gismgr) Date: Tue, 12 Jun 2012 19:44:57 +0000 Subject: [OpenLayers-Users] event listener for protocol.read() -- trying to set a login flag .. Message-ID: <50ECFB69AB1EBD48821BFC29ABF2288350846F2C@SEC-DAG-002.prod.sec.local> Hello all, I need to show different layers in my map depending on whether the user is public/anonymous or has login credentials. I'm using geoserver. I can log in and out using forms with j_spring_security_check. The difficulty is in trying to sense whether the user is logged in or not. I've come up with a way to do it by attempting to query one of the secure layers, and setting the login flag to yes if it succeeds and no if it fails. The problem is that javascript just blows right on past my protocol.read() command without setting the flag, unless I force it to wait with an alert, which is pretty ugly and not ideal. Does OpenLayers have an event listener I can call for the script protocol so that the rest of the code won't fire until the login flag is set? From googling around, it looks like there may once have been plans for this, but no one has been discussing it much recently... Alternately, does anyone have a creative suggestion for nesting callback functions so this will work smoothly without recourse to alert()? I've tried a few different ways but nothing really works. Any suggestions greatly appreciated! Code: Ext.onReady(function init() { //Start with login = no login = "no"; //function to parse and test the response - are there any features? var test = function(resp) { if (resp.features) { login = "yes"; //change login to yes } else { login = "no"; //Do nothing. It never actually gets here - //if not logged in, it can't get a json response //and errors out trying to parse the xml fail response //But that's ok, that's why login defaults to no } } var filter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: 'ID', value: 'TESTAREA' }); protocol = new OpenLayers.Protocol.Script({ url:geoserver_url + '/wfs', callbackKey: 'format_options', callbackPrefix: 'callback:', params: { service: 'WFS', version: '1.1.0', srsName: 'EPSG:3857', request: 'GetFeature', typeName: 'Areas', outputFormat: 'json', cql_filter: filter }, callback: test, }); protocol.read(); //have to do an alert here so login=yes has a chance to catch up alert ("Checking login credentials ..."); //construct a logout button or a login form - reload the page after logging in or out, which will rerun the test protocol above and reset the login flag if (login == 'yes') { //only gets here if we wait with the alert document.getElementById('login').innerHTML='
'; } else { //always goes here without the alert, even if protocol succeeds document.getElementById('login').innerHTML='

'; } //..... all the rest of the map code, do it slightly differently if login = yes or login = no }); //end init Kathryn Catlin GIS Supervisor Massachusetts Historical Commission 220 Morrissey Blvd Boston, MA 02125 (617) 727-8470 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Tue Jun 12 15:20:55 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 13 Jun 2012 00:20:55 +0200 Subject: [OpenLayers-Users] last 3 zoom levels not working In-Reply-To: <1339505051958-4980781.post@n6.nabble.com> References: <1339505051958-4980781.post@n6.nabble.com> Message-ID: Hi, This is a bug. I ticketed it and attached a pull request: https://github.com/openlayers/openlayers/pull/524. The reason for this issue is that 2.12 restricts the map view to a maximum of one world when the base layer has wrapDateLine set to true. This is done because vector layers do not repeat when more than one world is visible. Other web mapping applications have the same restriction. The PanZoomBar control did not respect this restriction. This is fixed with the above pull request. The fix comes a bit too late for 2.12, unless a regression shows up that warrants another release candidate. However, the fix should be in master soon. Andreas. On Tue, Jun 12, 2012 at 2:44 PM, Peter wrote: > hey guys, > > so i tried the client zoom like in the example: > http://openlayers.org/dev/examples/clientzoom.html > > this works fine but the last 3 zoom levels are not working. in the zoombar > they are displayed but you are not able to zoom out. this happens in the > example, also in my version. i am using 2.12 rc 6. > > http://osgeo-org.1560.n6.nabble.com/file/n4980781/zoomBug.png > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/last-3-zoom-levels-not-working-tp4980781.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From p.scadden at gns.cri.nz Tue Jun 12 17:13:54 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Wed, 13 Jun 2012 12:13:54 +1200 Subject: [OpenLayers-Users] Obtain info from the user defined polygon In-Reply-To: References: Message-ID: <4FD7DB42.1030008@gns.cri.nz> Here is how I do it. Sorry, but there is a lot of application-specific stuff in it. (I have a structure that stores a lot of metadata about how a layer is to be displayed and queried). pySelCtrl = new OpenLayers.Control.DrawFeature(selectedLayer, OpenLayers.Handler.Polygon, { geodesic: true, handlerOptions: { citeCompliant: false } }); // selected layer is an empty vector layer that use for drawing selected feature on and for drawing control pySelCtrl.events.register("featureadded", this, function (e) { clearData(); // housekeeping (clean up previous queries, delete all vectors from selectedLayer) var pfilter = new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.INTERSECTS, value: e.feature.geometry }); // This next piece of code is using application logic to find out which fields to fetch back from the server. If you dont specify properynames, it will return all of them var propNames = []; var layerNode = getLayerNode(combo.value); // this returns application metadata about the layer to query var spatialQueryNode =layerNode.spatialQuery[0]; // get the list of fields to return from application metadata for (var i = 0; i < spatialQueryNode.fields.length; i++) { propNames.push(spatialQueryNode.fields[i].id); } // if (spatialQueryNode.highlightOnMap) propNames.push("SHAPE"); // fetch back geometryif I am going to draw the on the map // This read queries the server. wfsProtocol[combo.value].read({ filter: pfilter, propertyNames:propNames, callback: processSpatialQuery, scope: strategy }); }); The processSpatialQuery callback unpacks the returned GML to populate a popup, draws the selected features in selectedLayer etc. Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From marco at my-azur.de Tue Jun 12 22:17:28 2012 From: marco at my-azur.de (Marco Krage) Date: Wed, 13 Jun 2012 07:17:28 +0200 Subject: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon Message-ID: <20120613071728.18174wrej5se2u08@mail.your-server.de> Hallo, ich beginne gerade mit Openlayers und m?chte gerne meine GPX Tracks darstellen. Was ich nun nicht ganz verstehe ist, wieso Openlayers die Koordinaten nur im LonLat Format annimmt und ausgibt. Alle Quellen, sei es Google Maps oder GPX Tracks liefern die Koordinaten im LatLon Format. Google Maps (Dortmund City): 51.512161,7.465782 GPS Tracker (Dortmund City): 51.512161,7.465782 Openlayers (Dortmund City): 7.465782,51.512161 Wie soll ich damit umgehen, dass Openlayers die Koordinaten umgekehrt annimmt? Gru? Marco -- www.my-azur.de - einfach wunderbar From javiersdevmail at ymail.com Tue Jun 12 23:04:33 2012 From: javiersdevmail at ymail.com (Javier Mr) Date: Wed, 13 Jun 2012 07:04:33 +0100 (BST) Subject: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon In-Reply-To: <20120613071728.18174wrej5se2u08@mail.your-server.de> References: <20120613071728.18174wrej5se2u08@mail.your-server.de> Message-ID: <1339567473.59726.YahooMailNeo@web132101.mail.ird.yahoo.com> Hi marco, I have never used it but it looks like the GPX parser is what you are looking for (http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Format/GPX-js.html), but can't tell how to use it, here is an example of how to use another formater in this case for JSON (http://www.openlayers.org/dev/examples/geojson.html). About the order of the coordinates, i really dont see the problem, and object containing the coordinates should have a getLat and getLon methods, just like OpenLayers, how to show then to the user depends of the user/developer preference. But maybe i haven't understand your question deeply enough. Gru? Javi >________________________________ > De: Marco Krage >Para: openlayers-users at lists.osgeo.org >Enviado: Mi?rcoles 13 de junio de 2012 7:17 >Asunto: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon > >Hallo, >ich beginne gerade mit Openlayers und m?chte gerne meine GPX Tracks darstellen. >Was ich nun nicht ganz verstehe ist, wieso Openlayers die Koordinaten nur im LonLat Format annimmt und ausgibt. > >Alle Quellen, sei es Google Maps oder GPX Tracks liefern die Koordinaten im LatLon Format. > >Google Maps (Dortmund City): 51.512161,7.465782 >GPS Tracker (Dortmund City): 51.512161,7.465782 >Openlayers (Dortmund City): 7.465782,51.512161 > >Wie soll ich damit umgehen, dass Openlayers die Koordinaten umgekehrt annimmt? > >Gru? Marco > >--www.my-azur.de - einfach wunderbar > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco at my-azur.de Tue Jun 12 23:21:11 2012 From: marco at my-azur.de (Marco Krage) Date: Wed, 13 Jun 2012 08:21:11 +0200 Subject: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon In-Reply-To: <1339567473.59726.YahooMailNeo@web132101.mail.ird.yahoo.com> References: <20120613071728.18174wrej5se2u08@mail.your-server.de> <1339567473.59726.YahooMailNeo@web132101.mail.ird.yahoo.com> Message-ID: <20120613082111.922428w41kjjjxw7@mail.your-server.de> Hi, of course i can use the following to display the coords in LatLon order in UI. console.log(OpenLayers.LonLat.lat+","+OpenLayers.LonLat.lon); But for example map.addControl(new OpenLayers.Control.MousePosition()); Prints the coords in LonLat order. Not very usable for the User (me). Because it's the wrong order. if you use this coords in google maps, it will point you to a different position. I know there are custom methods to print the MousePosition. But i don't know any system that is using this order Openlayer uses. If you get the coords, 23.545,24.787 you dont know which is the lat wn what the lon. excuse me for that bad english ;-) Zitat von Javier Mr : > > > Hi marco, > > I have never used it but it looks like the GPX parser is what you > are looking for > (http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Format/GPX-js.html), but can't tell how to use it, here is an example of how to use another formater in this case for JSON > (http://www.openlayers.org/dev/examples/geojson.html). > > About the order of the coordinates, i really dont see the problem, > and object containing the coordinates should have a getLat and > getLon methods, just like OpenLayers, how to show then to the user > depends of the user/developer preference. > > But maybe i haven't understand your question deeply enough. > > Gru? > Javi > > > > >> ________________________________ >> De: Marco Krage >> Para: openlayers-users at lists.osgeo.org >> Enviado: Mi?rcoles 13 de junio de 2012 7:17 >> Asunto: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon >> >> Hallo, >> ich beginne gerade mit Openlayers und m?chte gerne meine GPX Tracks >> darstellen. >> Was ich nun nicht ganz verstehe ist, wieso Openlayers die >> Koordinaten nur im LonLat Format annimmt und ausgibt. >> >> Alle Quellen, sei es Google Maps oder GPX Tracks liefern die >> Koordinaten im LatLon Format. >> >> Google Maps (Dortmund City): 51.512161,7.465782 >> GPS Tracker (Dortmund City): 51.512161,7.465782 >> Openlayers (Dortmund City): 7.465782,51.512161 >> >> Wie soll ich damit umgehen, dass Openlayers die Koordinaten >> umgekehrt annimmt? >> >> Gru? Marco >> >> --www.my-azur.de - einfach wunderbar >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> -- www.my-azur.de - einfach wunderbar From pfischer at proveo.com Tue Jun 12 23:43:29 2012 From: pfischer at proveo.com (Peter) Date: Tue, 12 Jun 2012 23:43:29 -0700 (PDT) Subject: [OpenLayers-Users] last 3 zoom levels not working In-Reply-To: References: <1339505051958-4980781.post@n6.nabble.com> Message-ID: <1339569809965-4981020.post@n6.nabble.com> so thanks for the information greetings Peter -- View this message in context: http://osgeo-org.1560.n6.nabble.com/last-3-zoom-levels-not-working-tp4980781p4981020.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Wed Jun 13 00:31:14 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 13 Jun 2012 09:31:14 +0200 Subject: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon In-Reply-To: <20120613071728.18174wrej5se2u08@mail.your-server.de> References: <20120613071728.18174wrej5se2u08@mail.your-server.de> Message-ID: Your GPX tracks should work fine. The only thing is that OpenLayers has an unusual LonLat class, whereas other frameworks have LatLng or something similar. The tracks should get drawn correctly, and if you look at the properties of the LonLat object, you will see that latitude and longitude are assigned correctly. What exactly were you looking at when you saw the reversed coordinates? Andreas. On Wednesday, June 13, 2012, Marco Krage wrote: > Hallo, > ich beginne gerade mit Openlayers und m?chte gerne meine GPX Tracks darstellen. > Was ich nun nicht ganz verstehe ist, wieso Openlayers die Koordinaten nur im LonLat Format annimmt und ausgibt. > > Alle Quellen, sei es Google Maps oder GPX Tracks liefern die Koordinaten im LatLon Format. > > Google Maps (Dortmund City): 51.512161,7.465782 > GPS Tracker (Dortmund City): 51.512161,7.465782 > Openlayers (Dortmund City): 7.465782,51.512161 > > Wie soll ich damit umgehen, dass Openlayers die Koordinaten umgekehrt annimmt? > > Gru? Marco > > -- > www.my-azur.de - einfach wunderbar > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.ledermann at gmail.com Wed Jun 13 01:04:38 2012 From: christian.ledermann at gmail.com (Christian Ledermann) Date: Wed, 13 Jun 2012 11:04:38 +0300 Subject: [OpenLayers-Users] KML versions? In-Reply-To: References: Message-ID: If you could post examples of not working KML files we could have a look at them and tell you what is not working. I suspect that maybe the encoding is not valid utf but that is just a shot in the blue. On Tue, Jun 12, 2012 at 8:57 PM, Barend K?bben wrote: > Hi, > > Is there any documentation about what flavours of KML are supported in the > vector type layers for OpenLayers? I have been experimenting with > OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and > format: OpenLayers.Format.KML. > > But I find that there are many KML versions and ways of setting up a KML. > E.g. KML created by QGIS always works fine, but ArcMAP exports as KML > works sometimes, mostly not. Most curiously, not even "Save Place as" KML > from Google Earth (KMLs native habitat, I'd have thought) not even always > work...? > > -- > Barend K?bben > Senior Lecturer, ITC - University of Twente, > Faculty of Geo-Information Science and Earth Observation > PO Box 217, 7500AE Enschede (The Netherlands) > +31-(0)53 4874 253 > > > > > > > > Faculty of Geo-Information Science and Earth Observation (ITC) > University of Twente > Chamber of Commerce: 501305360000 > > E-mail disclaimer > The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Best Regards, Christian Ledermann Nairobi - Kenya Mobile : +254 702978914 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don?t drive species to extinction 2) Don?t destroy a habitat that species rely on. 3) Don?t change the climate in ways that will result in the above. }<(((*> From kobben at itc.nl Wed Jun 13 05:14:52 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 13 Jun 2012 14:14:52 +0200 Subject: [OpenLayers-Users] KML versions? In-Reply-To: Message-ID: Thanks for that, I have attached Map.html = the html + js loading A3+A4.kml A3.kml = non-working one (as exported directly from ESRI ArcMAP) A4.kml = the same one working (after I'm- and -export into/from QGIS) Both are OK when loading in Google Earth. All tests done on Mac OSX Lion + FireFox 12.0 + OpenLayers 2.10... My original question still stands in that I wonder if there is any documentation of what OpenLayers claims to support (KML versions/schemas) and what not...? Barend On 13-06-12 10:04, "Christian Ledermann" wrote: >If you could post examples of not working KML files we could have >a look at them and tell you what is not working. > >I suspect that maybe the encoding is not valid utf but that >is just a shot in the blue. > >On Tue, Jun 12, 2012 at 8:57 PM, Barend K?bben wrote: >> Hi, >> >> Is there any documentation about what flavours of KML are supported in >>the >> vector type layers for OpenLayers? I have been experimenting with >> OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and >> format: OpenLayers.Format.KML. >> >> But I find that there are many KML versions and ways of setting up a >>KML. >> E.g. KML created by QGIS always works fine, but ArcMAP exports as KML >> works sometimes, mostly not. Most curiously, not even "Save Place as" >>KML >> from Google Earth (KMLs native habitat, I'd have thought) not even >>always >> work...? >> >> -- >> Barend K?bben >> Senior Lecturer, ITC - University of Twente, >> Faculty of Geo-Information Science and Earth Observation >> PO Box 217, 7500AE Enschede (The Netherlands) >> +31-(0)53 4874 253 >> >> >> >> >> >> >> >> Faculty of Geo-Information Science and Earth Observation (ITC) >> University of Twente >> Chamber of Commerce: 501305360000 >> >> E-mail disclaimer >> The information in this e-mail, including any attachments, is intended >>for the addressee only. If you are not the intended recipient, you are >>hereby notified that any disclosure, copying, distribution or action in >>relation to the content of this information is strictly prohibited. If >>you have received this e-mail by mistake, please delete the message and >>any attachment and inform the sender by return e-mail. ITC accepts no >>liability for any error or omission in the message content or for damage >>of any kind that may arise as a result of e-mail transmission. >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > >-- >Best Regards, > >Christian Ledermann > >Nairobi - Kenya >Mobile : +254 702978914 > ><*)))>{ > >If you save the living environment, the biodiversity that we have left, >you will also automatically save the physical environment, too. But If >you only save the physical environment, you will ultimately lose both. > >1) Don?t drive species to extinction > >2) Don?t destroy a habitat that species rely on. > >3) Don?t change the climate in ways that will result in the above. > >}<(((*> >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From ramotswa at gmail.com Wed Jun 13 05:38:37 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Wed, 13 Jun 2012 13:38:37 +0100 Subject: [OpenLayers-Users] Click accuracy on maps Message-ID: Hello all, I am running into quite a marginal problem but it's rather annoying and was wondering if anyone else had run into this. Our open layers application is being used on large touch screen enabled devices. Specs in general are windows xp, ie6 with google chrome frame. The problem is clicking on the map. For instance there are wms features that have getfeatureinfo data behind it, and so when clicking on them the data comes through. The problem is that with the touch screen, the user most of the time can't manage an exact click on the screen, and moves the map by a pixel or two every time, which then does not fire the getfeaturerequest. The same sort of behaviour can be witnessed with a hyper sensitive mouse... Is there a way to get around this? I was thinking of putting the getfeatureinfo on the "mouseup", but then that would fire it every time a pan happens, and that wouldn't be right. Any help would be appreciated. Toby -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Wed Jun 13 05:43:24 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 13 Jun 2012 14:43:24 +0200 Subject: [OpenLayers-Users] KML versions? In-Reply-To: Message-ID: [Now with attachments, sorry..] Thanks for that, I have attached Map.html = the html + js loading A3+A4.kml A3.kml = non-working one (as exported directly from ESRI ArcMAP) A4.kml = the same one working (after I'm- and -export into/from QGIS) Both are OK when loading in Google Earth. All tests done on Mac OSX Lion + FireFox 12.0 + OpenLayers 2.10... My original question still stands in that I wonder if there is any documentation of what OpenLayers claims to support (KML versions/schemas) and what not...? Barend On 13-06-12 10:04, "Christian Ledermann" wrote: >If you could post examples of not working KML files we could have >a look at them and tell you what is not working. > >I suspect that maybe the encoding is not valid utf but that >is just a shot in the blue. > >On Tue, Jun 12, 2012 at 8:57 PM, Barend K?bben wrote: >> Hi, >> >> Is there any documentation about what flavours of KML are supported in >>the >> vector type layers for OpenLayers? I have been experimenting with >> OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and >> format: OpenLayers.Format.KML. >> >> But I find that there are many KML versions and ways of setting up a >>KML. >> E.g. KML created by QGIS always works fine, but ArcMAP exports as KML >> works sometimes, mostly not. Most curiously, not even "Save Place as" >>KML >> from Google Earth (KMLs native habitat, I'd have thought) not even >>always >> work...? >> >> -- >> Barend K?bben >> Senior Lecturer, ITC - University of Twente, >> Faculty of Geo-Information Science and Earth Observation >> PO Box 217, 7500AE Enschede (The Netherlands) >> +31-(0)53 4874 253 >> >> >> >> >> >> >> >> Faculty of Geo-Information Science and Earth Observation (ITC) >> University of Twente >> Chamber of Commerce: 501305360000 >> >> E-mail disclaimer >> The information in this e-mail, including any attachments, is intended >>for the addressee only. If you are not the intended recipient, you are >>hereby notified that any disclosure, copying, distribution or action in >>relation to the content of this information is strictly prohibited. If >>you have received this e-mail by mistake, please delete the message and >>any attachment and inform the sender by return e-mail. ITC accepts no >>liability for any error or omission in the message content or for damage >>of any kind that may arise as a result of e-mail transmission. >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > >-- >Best Regards, > >Christian Ledermann > >Nairobi - Kenya >Mobile : +254 702978914 > ><*)))>{ > >If you save the living environment, the biodiversity that we have left, >you will also automatically save the physical environment, too. But If >you only save the physical environment, you will ultimately lose both. > >1) Don?t drive species to extinction > >2) Don?t destroy a habitat that species rely on. > >3) Don?t change the climate in ways that will result in the above. > >}<(((*> >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -------------- next part -------------- A non-text attachment was scrubbed... Name: a3.kml Type: application/vnd.google-earth.kml+xml Size: 3023 bytes Desc: a3.kml URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a4.kml Type: application/vnd.google-earth.kml+xml Size: 4723 bytes Desc: a4.kml URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle.benoni at gmail.com Wed Jun 13 06:46:28 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Wed, 13 Jun 2012 15:46:28 +0200 Subject: [OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo In-Reply-To: References: Message-ID: Hi, I found a value for the WMSgetFeatureInfo() function and not sure how to put in my layers. Do I use this: layerUrls: or layers: Thanks for any help! ~asle 2012/6/12 J?rgen Sch?yen Nicolaysen > I only got a few ideas, hope they help. > > 1) If you are using several layers from geoserver for you WMS layer, the > cql_filter may need to be a comma seperated list matching the layers on the > WMS you are showing. (You are using several layers if the WMS call > parameter, as seen in FireBug, shows http://.../wms?...&layers=layer1,layer2,layer3&..). > BTW: From your original code for initializing WMSGetFeatureInfo I do not > see any arrayof urls. > > 2) You should init WMSGetFeatureInfo with the parameter 'layer', which is > your (openlayers) WMS layer. The 'url' parameter is only needed to pinpoint > exaclty which url to use if you set up this control parameter 'layer' with > an array, i think. However WMSGetFeature will try to pick an url from the > layer array if it is not provided. Why not try to read the > WMSGetFeatureInfo.js class to get the ide about how this works. > > 3) The code > if (typeof param != 'undefined') { > may be wrong. 'param' may be null or "", that is not an "undefined" value. > > 4) You may need an proxy? > http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost > > 5) You are also using CQL filter on your basemaps (according to some of > the code you have shown here). Are you sure this is correct. > > > On Tue, Jun 12, 2012 at 9:02 PM, Asle Benoni wrote: > >> I read in this discussion: >> https://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfothat "If >> you use an array of URLs in your WMS layers, you do not need layerUrls." >> and that is exactly what I am using, an array of layers. I can see it in >> the WMS call to fetch features. Or am I uncorrect? >> >> >> 2012/6/12 Asle Benoni >> >>> Thanks! Clear enough but not for a newbie like me :-) Could you supply a >>> sample code for this? I have all the layers in an array layers[n]. How >>> would I write the code? I have a cql_filter that I apply a search filter >>> and I use a function like this: >>> >>> var mLayers = map.layers; >>> for(var a = 4; a < (mLayers.length); a++ ){ >>> mLayers[a].mergeNewParams({'CQL_FILTER': param}); >>> mLayers[a].setVisibility(true); >>> }} >>> >>> >>> 2012/6/12 Ian Turton >>> >>>> On 12 June 2012 11:16, Asle Benoni wrote: >>>> > Hello, >>>> > I am struggling with this code where I have a cql_filter generated >>>> from a >>>> > search field. If the user has not searched anything the cql_filter >>>> must be >>>> > empty. I had problems getting a correct syntax if the cql_filter is >>>> empty so >>>> > I had to set a default value. But when I have a search code for >>>> cql_filter >>>> > it fails telling me in Firebug: >>>> > >>>> > Layers and filters are mismatched, you need to provide one filter for >>>> each >>>> > layer >>>> > >>>> >>>> That seems clear enough - you need to provide one filter for each >>>> layer that you are querying - in your case you probably want to limit >>>> the number of layers to just the one you are interested in. >>>> >>>> Ian >>>> >>>> -- >>>> Ian Turton >>>> >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vrbikdan at gmail.com Thu Jun 14 00:40:08 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Thu, 14 Jun 2012 00:40:08 -0700 (PDT) Subject: [OpenLayers-Users] tileStitchingPrinting problem Message-ID: <1339659608843-4981327.post@n6.nabble.com> Hi all, sorry, but I have stupid question. I'm trying to add print functionality in my map. I found this code http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting but I am not able to use it. As I understand, what I need is download Control version, adding it to OpenLayers.js and than what? I'm not able to figure out, how to implement it. Let suppose I have button "Print" and function printMap(){new OpenLayers.Control.TileStitchPrinter();} on click. But this do nothing. What I should write in this function? Should I download something else? I tried to find some example, but without succes :( Thanks for help, Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tileStitchingPrinting-problem-tp4981327.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From p.meems at topx-group.nl Thu Jun 14 05:15:53 2012 From: p.meems at topx-group.nl (Paul Meems (Top-X)) Date: Thu, 14 Jun 2012 14:15:53 +0200 Subject: [OpenLayers-Users] Export features as json Message-ID: Hi, I have a website with a map showing a few vectors using WFS and the properties of those vectors in a table. I want give the user to opportunity to save the table as a PDF. To do this I want to convert the features to a json string and put that in a hidden form element and submit that form to a PHP file that will create the PDF. Of course I can loop through the features and create the json string manually, but I wonder if I can automatically export to features using something like: feature.toJSON(). Of course I've used Google but the answers found talked about the other way round: JSON to features. Please advice. Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From wallyatkins at gmail.com Thu Jun 14 05:24:47 2012 From: wallyatkins at gmail.com (Wally Atkins) Date: Thu, 14 Jun 2012 08:24:47 -0400 Subject: [OpenLayers-Users] Export features as json In-Reply-To: References: Message-ID: <-4716170413150512776@unknownmsgid> Try this openlayers json to write out your object ... That might get you what you need: http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Format/JSON-js.html On Jun 14, 2012, at 8:16 AM, "Paul Meems (Top-X)" wrote: > Hi, > > I have a website with a map showing a few vectors using WFS and the properties of those vectors in a table. > I want give the user to opportunity to save the table as a PDF. > To do this I want to convert the features to a json string and put that in a hidden form element and submit that form to a PHP file that will create the PDF. > > Of course I can loop through the features and create the json string manually, but I wonder if I can automatically export to features using something like: > feature.toJSON(). > > Of course I've used Google but the answers found talked about the other way round: JSON to features. > > Please advice. > > Thanks, > > Paul > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From p.meems at topx-group.nl Thu Jun 14 05:49:15 2012 From: p.meems at topx-group.nl (Paul Meems (Top-X)) Date: Thu, 14 Jun 2012 14:49:15 +0200 Subject: [OpenLayers-Users] Export features as json In-Reply-To: <-4716170413150512776@unknownmsgid> References: <-4716170413150512776@unknownmsgid> Message-ID: Thanks Wally, That helped a lot. I can get geoJson to work: new OpenLayers.Format.GeoJSON().write(myLayer.features) but the plain JSON. I'm not interested in the geometries: new OpenLayers.Format.JSON().write(myLayer.features) It returns null -- Paul 2012/6/14 Wally Atkins > Try this openlayers json to write out your object ... That might get > you what you need: > > > http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Format/JSON-js.html > > > On Jun 14, 2012, at 8:16 AM, "Paul Meems (Top-X)" > wrote: > > > Hi, > > > > I have a website with a map showing a few vectors using WFS and the > properties of those vectors in a table. > > I want give the user to opportunity to save the table as a PDF. > > To do this I want to convert the features to a json string and put that > in a hidden form element and submit that form to a PHP file that will > create the PDF. > > > > Of course I can loop through the features and create the json string > manually, but I wonder if I can automatically export to features using > something like: > > feature.toJSON(). > > > > Of course I've used Google but the answers found talked about the other > way round: JSON to features. > > > > Please advice. > > > > Thanks, > > > > Paul > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.a.de.sousa at gmail.com Thu Jun 14 06:20:39 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Thu, 14 Jun 2012 06:20:39 -0700 (PDT) Subject: [OpenLayers-Users] Google map v3 popup again? In-Reply-To: References: <4d23e6a1242977809f4b1f216b524cb7.squirrel@webmail.utlchart.com> Message-ID: <1339680039110-4981414.post@n6.nabble.com> Andreas Hocevar-2 wrote > > This hack definitely violates the Terms of Use. > > Until somebody provides a fix in OpenLayers, my advice is to use a > different base map. > Hello everyone, is a fix for this already available? I've been using Google Maps as base layer for several years and this issue always comes up at some point in every single project. What are the feelings of other webGIS developers out there? Should we simply quit Google Maps as a reliable source of base information? Thanks for answering and regards, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Google-map-v3-popup-again-tp4975258p4981414.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Thu Jun 14 06:34:11 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 14 Jun 2012 15:34:11 +0200 Subject: [OpenLayers-Users] Google map v3 popup again? In-Reply-To: <1339680039110-4981414.post@n6.nabble.com> References: <4d23e6a1242977809f4b1f216b524cb7.squirrel@webmail.utlchart.com> <1339680039110-4981414.post@n6.nabble.com> Message-ID: Hi, yes, this is fixed in current master and 2.12-rc7. And here is an explanation on how to apply a hotfix to applications that use 2.11: http://trac.osgeo.org/openlayers/wiki/Release/2.11/GoogleMaps37 Andreas. On Thu, Jun 14, 2012 at 3:20 PM, Lu?s de Sousa wrote: > > Andreas Hocevar-2 wrote >> >> This hack definitely violates the Terms of Use. >> >> Until somebody provides a fix in OpenLayers, my advice is to use a >> different base map. >> > > Hello everyone, is a fix for this already available? > > I've been using Google Maps as base layer for several years and this issue > always comes up at some point in every single project. What are the feelings > of other webGIS developers out there? Should we simply quit Google Maps as a > reliable source of base information? > > Thanks for answering and regards, > > Lu?s > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Google-map-v3-popup-again-tp4975258p4981414.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From luis.a.de.sousa at gmail.com Thu Jun 14 07:11:06 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Thu, 14 Jun 2012 07:11:06 -0700 (PDT) Subject: [OpenLayers-Users] Google map v3 popup again? In-Reply-To: References: <4d23e6a1242977809f4b1f216b524cb7.squirrel@webmail.utlchart.com> <1339680039110-4981414.post@n6.nabble.com> Message-ID: <1339683066097-4981430.post@n6.nabble.com> Thank you Andreas, it worked like a charm. I still would like to hear the thoughts of peer developers on the usage of Google Maps. Reliable or not? Thank you and regards, Lu?s Andreas Hocevar-2 wrote > > Hi, > > yes, this is fixed in current master and 2.12-rc7. And here is an > explanation on how to apply a hotfix to applications that use 2.11: > http://trac.osgeo.org/openlayers/wiki/Release/2.11/GoogleMaps37 > > Andreas. > -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Google-map-v3-popup-again-tp4975258p4981430.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From n.e.kendall at gmail.com Thu Jun 14 07:29:11 2012 From: n.e.kendall at gmail.com (Nick Kendall) Date: Thu, 14 Jun 2012 09:29:11 -0500 Subject: [OpenLayers-Users] Google map v3 popup again? In-Reply-To: <1339683066097-4981430.post@n6.nabble.com> References: <4d23e6a1242977809f4b1f216b524cb7.squirrel@webmail.utlchart.com> <1339680039110-4981414.post@n6.nabble.com> <1339683066097-4981430.post@n6.nabble.com> Message-ID: <33BAC3E7-A910-49F2-875E-D5A0588444C4@gmail.com> The issue as I see it is that Google is a double edged sword. They provide a high quality data source, which as developers we have little control over; i.e. we're at google's mercy for what they provide and when. This is obviously the case with all major third party data sources. So as I see it, we are faced with the choice of taking what's free, or undertaking the task of providing our own base layers which adds additional programming and data requirements. Ultimately, I'd have to say it's application specific. Sent from my mobile device On Jun 14, 2012, at 9:11 AM, Lu?s de Sousa wrote: > Thank you Andreas, it worked like a charm. > > I still would like to hear the thoughts of peer developers on the usage of > Google Maps. Reliable or not? > > Thank you and regards, > > Lu?s > > > Andreas Hocevar-2 wrote >> >> Hi, >> >> yes, this is fixed in current master and 2.12-rc7. And here is an >> explanation on how to apply a hotfix to applications that use 2.11: >> http://trac.osgeo.org/openlayers/wiki/Release/2.11/GoogleMaps37 >> >> Andreas. >> > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Google-map-v3-popup-again-tp4975258p4981430.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From gregor at greeninfo.org Thu Jun 14 08:14:11 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Thu, 14 Jun 2012 08:14:11 -0700 Subject: [OpenLayers-Users] tileStitchingPrinting problem In-Reply-To: <1339659608843-4981327.post@n6.nabble.com> References: <1339659608843-4981327.post@n6.nabble.com> Message-ID: <4FD9FFC3.2070503@greeninfo.org> On 6/14/2012 12:40 AM, vrbikdan wrote: > Hi all, > sorry, but I have stupid question. I'm trying to add print functionality in > my map. I found this code > http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting but I am not > able to use it. As I understand, what I need is download Control version, > adding it to OpenLayers.js and than what? I'm not able to figure out, how to > implement it. Let suppose I have button "Print" and function printMap(){new > OpenLayers.Control.TileStitchPrinter();} on click. But this do nothing. What > I should write in this function? Should I download something else? I tried > to find some example, but without succes :( 1. Download the OL Control from mapsportal.org and add it to your map as usual. Be sure to set its options as documented at the top of its source code; mostly you'll want printUrl So like this: var PRINTER = new OpenLayers.Control.TileStitchPrinter({ printUrl:'print.php' }); map.addControl(PRINTER); 2. At some time later, when you have your map looking good, call: PRINTER.print(); This part, you would usually do via an attached onClick event on some hyperlink or button. You can find a working example here: http://www.mapsportal.org/olprint/ And thanks for pointing out, that I didn't include sufficient documentation. I'll go in there and flesh it out right now. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From lochnguyen at gmail.com Thu Jun 14 11:01:56 2012 From: lochnguyen at gmail.com (Loc Nguyen) Date: Thu, 14 Jun 2012 11:01:56 -0700 Subject: [OpenLayers-Users] Overylay with different resolutions Message-ID: <000510E9-2F70-457B-812E-6835D7C08320@gmail.com> Hello, Still new to OL so any help is appreciated. I want to overlay a regional map on top of my base map in this jsfiddle: http://jsfiddle.net/lochnguyen/ufgL7/7/ When I change my map object to use the overlay's resolutions the regional map shows but not the base (and vice versa). Can I accomplish what I want when the resolutions are different? Cheers, -- Loc -------------- next part -------------- An HTML attachment was scrubbed... URL: From karnati.karthik at gmail.com Fri Jun 15 03:50:18 2012 From: karnati.karthik at gmail.com (karthik) Date: Fri, 15 Jun 2012 03:50:18 -0700 (PDT) Subject: [OpenLayers-Users] WMS GETFEATUREINFO evt.text is not working in firefox and chrome Message-ID: <1339757418586-4981664.post@n6.nabble.com> i modified wmsgetfeatureinfo example according to my need as i want individual attribute feature to perform some analysis but i m not getting evt object along with features but event object is not null and type also getting as feature info.geoserver is located in localhost only so it might not be proxy problem. thanks for response in advance. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-GETFEATUREINFO-evt-text-is-not-working-in-firefox-and-chrome-tp4981664.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From asle.benoni at gmail.com Fri Jun 15 10:14:39 2012 From: asle.benoni at gmail.com (Asle Benoni) Date: Fri, 15 Jun 2012 19:14:39 +0200 Subject: [OpenLayers-Users] How to put custom icons in layertree Message-ID: Hello, I am using Openlayers 2.8, Mapfish and Geoext and have a layertree. I may be asking on the wrong list but what is the best way to put different icons on the layertree. I use this approach now when creating the layer: var createWmsLayer = function(name, url, params, options) { var layer = new OpenLayers.Layer.WMS(name, url, params, options); map.addLayer(layer); return layer; }; // Then the layer: createWmsLayer( "Kritisk truet", " http://mydomain.com/geoserver/wms", {layers: 'gbif_ns:kritisk_truet',format: 'image/png', transparent: 'true'}, {singleTile: true, ratio: 1, isBaseLayer:false, visibility: true} ); // The css span.cr {background: url(../images/CR.png) top left no-repeat;padding-left:20px !important} So now I can use a background icon on this layer in the layertree. Problem is that the layername now is "Kritisk truet" and not so easy to refer to later. I would like the layername to be only "Kritisk truet" but then i don't have any way to style it. Is there a better way so I can remove all the code around the name? Thanks for any help! ~asle benoni -------------- next part -------------- An HTML attachment was scrubbed... URL: From digi_c at arcor.de Sat Jun 16 11:15:01 2012 From: digi_c at arcor.de (=?ISO-8859-15?Q?Matthias_Mei=DFer?=) Date: Sat, 16 Jun 2012 20:15:01 +0200 Subject: [OpenLayers-Users] Feature Title (tooltiptext) broken on FF 13.0? Message-ID: <4FDCCD25.5060002@arcor.de> Hi, I noticed, that http://openlayers.org/dev/examples/vector-features.html doesn't have working support for the mouse hover hints (tooltiptexts) on the current Firefox 13. On IE the example works fine :( Matthias From jeremy.morley at nottingham.ac.uk Sat Jun 16 15:41:31 2012 From: jeremy.morley at nottingham.ac.uk (jmorley) Date: Sat, 16 Jun 2012 15:41:31 -0700 (PDT) Subject: [OpenLayers-Users] GWT SelectFeature.select() method no longer available? In-Reply-To: References: <1325527218929-7144416.post@n2.nabble.com> <1339374212517-4980263.post@n6.nabble.com> Message-ID: <1339886491272-4981911.post@n6.nabble.com> Thanks Jorge. The example you give works fine for me, but it doesn't translate onto the site I'm working on. As far as I can see, when I do the programmatic selection, the feature in the layer becomes selected (it appears in the selected property for the layer). However the feature itself doesn't seem to be redrawn with the "selected" style. This style is definitely defined as manual selection with a mouse click on a feature toggles the style between the "default" and "selected" styles. I've tried adding a layer redraw but this doesn't help. It's quite a complex site so it's difficult to extract example code. Does it matter that my vector layer is from WFS rather than sketched vectors? I'll try putting a test app together to share but any ideas in the meantime would be welcome. Jeremy -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GWT-SelectFeature-select-method-no-longer-available-tp3969860p4981911.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jeremy.morley at nottingham.ac.uk Sat Jun 16 16:54:35 2012 From: jeremy.morley at nottingham.ac.uk (jmorley) Date: Sat, 16 Jun 2012 16:54:35 -0700 (PDT) Subject: [OpenLayers-Users] GWT SelectFeature.select() method no longer available? In-Reply-To: <1339886491272-4981911.post@n6.nabble.com> References: <1325527218929-7144416.post@n2.nabble.com> <1339374212517-4980263.post@n6.nabble.com> <1339886491272-4981911.post@n6.nabble.com> Message-ID: <1339890875489-4981915.post@n6.nabble.com> Got it - it was my problem. The features were being selected but all of them were buried under other features and so the selection couldn't be seen until I turned down the opacity of the stack of features. On a separate question though: when I have multiple overlapping features in a layer with an associated selectfeature control and I click on a point, only one feature seems to be selected (even when the "multiple" option has been set for the control) rather than all the features in the layer overlapping the point of the click. Can this behaviour be easily changed to select -all- the features at the point? Thanks. Jeremy Morley -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GWT-SelectFeature-select-method-no-longer-available-tp3969860p4981915.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From coffi at hotmail.co.uk Sun Jun 17 16:39:27 2012 From: coffi at hotmail.co.uk (Gary Duckers) Date: Sun, 17 Jun 2012 23:39:27 +0000 Subject: [OpenLayers-Users] (no subject) Message-ID: http://www.fakeventurefund.com/wp-content/themes/365Pro/googles.html?sua=gsy.hsm&sg=mgh.hhj&sgb=sccy -------------- next part -------------- An HTML attachment was scrubbed... URL: From vrbikdan at gmail.com Sun Jun 17 23:26:52 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Sun, 17 Jun 2012 23:26:52 -0700 (PDT) Subject: [OpenLayers-Users] tileStitchingPrinting problem In-Reply-To: <4FD9FFC3.2070503@greeninfo.org> References: <1339659608843-4981327.post@n6.nabble.com> <4FD9FFC3.2070503@greeninfo.org> Message-ID: <1340000812034-4981997.post@n6.nabble.com> Hi, thanks for fast response. Living example is for me really good way to learn ;) But problem is, that it doesn't work for me. I'll try explain my workflow. I downloaded code for tileStitchingPrinting, added to openlayers control and to OpenLayers.js. Than I copied print.php from website written in my first post. But If I press print button, I have for calling printer.print();, in a while it writes Printing failed: /tmp//dfcef252ed7cd49c83118ac1521b8ef2.jpg. I suppose it has something to do with $TEMP_DIR = '/var/www/htdocs/tmp/'; $TEMP_URL = '/tmp/'; but I'm not able to figure out where is a problem. I thing it is not problem with printing and openlayers and so on but with way to temp dir in my server, isn't it? Thanks for help Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tileStitchingPrinting-problem-tp4981327p4981997.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gismage at gmail.com Mon Jun 18 01:27:32 2012 From: gismage at gmail.com (Gis Mage) Date: Mon, 18 Jun 2012 12:27:32 +0400 Subject: [OpenLayers-Users] Incorrect tile order when sending GetMap requests with cookies Message-ID: Hi list, I'm having an issue when trying to GetMap from geoserver, which is a partner app for JOSSO auth system. I get the response from server, but tiles are shown on the map in the wrong order. Here's the example: http://77.37.206.10/josso/ Here's the example for 2.12 (master): http://77.37.206.10/josso212/ The most strangest thing is that when I inspect div elements of the map in firebug, I can see the right tiles in the position, where they should be drawn. Is this a bug? How can it be fixed? From mc.prins at gmail.com Mon Jun 18 05:16:14 2012 From: mc.prins at gmail.com (Mark Prins) Date: Mon, 18 Jun 2012 14:16:14 +0200 Subject: [OpenLayers-Users] Incorrect tile order when sending GetMap requests with cookies In-Reply-To: References: Message-ID: 2012/6/18 Gis Mage : > Hi list, > > I'm having an issue when trying to GetMap from geoserver, which is a > partner app for JOSSO auth system. > I get the response from server, but tiles are shown on the map in the > wrong order. > > Here's the example: > http://77.37.206.10/josso/ > Here's the example for 2.12 (master): > http://77.37.206.10/josso212/ > > The most strangest thing is that when I inspect div elements of the > map in firebug, I can see the right tiles in the position, where they > should be drawn. > Is this a bug? Not in OpenLayers, I think your security system is messing things up, it is sending a 302 redirect and the next response (that contains the image) has a header Content-Disposition:inline; filename=ru_hydrometcentre_42-ru_hydrometcentre_42_10_p0001_00_sf.png but all succesful WMS requests that have an image have the same Content-Disposition disposition header so the browser is led to believe that it's all the same image (for a request thread) so display is from cache. Firebug will actually do a new request for the image which is by then the correct image, when you use the dev. console on chrome you can see the behaviour displayed. > How can it be fixed? You should correct/modify (or remove) the Content-Disposition header at the server because it contains bogus information (maybe append the bbox coordinates?). Also you may be able to get openlayers to only fire one request (untiled WMS, ie. singleTile: true) or a bigger tile size (tileSize:new OpenLayers.Size(512,512)) Mark -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand. From Robert.Sanson at asurequality.com Mon Jun 18 14:25:39 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 19 Jun 2012 09:25:39 +1200 Subject: [OpenLayers-Users] this.div.style error In-Reply-To: <4FD7DB42.1030008@gns.cri.nz> References: <4FD7DB42.1030008@gns.cri.nz> Message-ID: <4FE04593020000370000BE82@gate1.asurequality.com> I have a Web site built using GeoExt + OpenLayers, and I quite often get the following Javascript error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Timestamp: Mon, 18 Jun 2012 21:22:51 UTC Message: 'this.div.style' is null or not an object Line: 1256 Char: 9 Code: 0 URI: http://myserver/lib/OpenLayers/Layer.js It comes from the getZIndex function: /** * Method: getZIndex * * Returns: * {Integer} the z-index of this layer */ getZIndex: function () { return this.div.style.zIndex; }, I t happens when I reload some layers from a WKT source. Can anyone suggest how to avoid this error? Many thanks Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From Steve.Way at infotech-enterprises.com Mon Jun 18 19:35:58 2012 From: Steve.Way at infotech-enterprises.com (Steve Way) Date: Tue, 19 Jun 2012 02:35:58 +0000 Subject: [OpenLayers-Users] GetFeature.Control and Oracle View Message-ID: Hi Everyone, It seems that when working with an Oracle database view, even if there is an FID column defined which has an underlying Id which points to a Primary Key, the toggle does not work with the select tool. Features will keep getting added as openlayers generates an auto FID instead of using the FID column. Is there a way around this? I am working with a fairly complex data model, and views are the only way of achieving the end result correctly. Many Thanks, Steve ________________________________ DISCLAIMER: This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech or Mail.Admin at infotech-enterprises.com and delete the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vrbikdan at gmail.com Tue Jun 19 03:24:37 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Tue, 19 Jun 2012 03:24:37 -0700 (PDT) Subject: [OpenLayers-Users] which feature is from wich layer in WMSGFI Message-ID: <1340101477125-4982353.post@n6.nabble.com> Hi all, I'm using WMSGetFeatureInfo for writting information about feature. But now I need to know, which feature in response is from which layer. Problem is, that I'm using infoFormat: 'application/vnd.ogc.gml'. My code is here: infoPropVar = new OpenLayers.Control.WMSGetFeatureInfo( { url: "http://192.168.1.92:8080/geoserver/zk/wms", title: '', queryVisible: true, infoFormat: 'application/vnd.ogc.gml', eventListeners: { getfeatureinfo: function(event) { for (i=0; i Hi, i'm just trying to use OL and I meet a problem with map.getZoom http://www.pofableau.com/openlayer/multicouche2.html// here's url of my test. for adapt an size of an OpenLayers.Layer.Vector and an externalGraphic I call a var zoom with map.getZoom line: 159 I call var z= map.getZoom(); for change the size of an image But they don't work "Error: Invalid value for attribute height="Infinity" If I try to see the z'value Firebug give me "0" ..... Thank a lot if you have the solution I search it since two days. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at geomatic.ch Tue Jun 19 07:52:15 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Tue, 19 Jun 2012 16:52:15 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <1340111157169-4982396.post@n6.nabble.com> References: <1340111157169-4982396.post@n6.nabble.com> Message-ID: Hi Christian, You're doing a getZoom() just after created the map and before a zooming function, so the zoom property of the map is logically 0. Anyway, I think you use a wrong way of managing scale dependent size. Your problem seems similar to this example: http://dev.openlayers.org/releases/OpenLayers-2.11/examples/label-scale.html . Hope this helps. Tschuuss Le 19 juin 2012 ? 15:05, christian bleau a ?crit : > Hi, i'm just trying to use OL and I meet a problem with map.getZoom here's url of my test. for adapt an size of an OpenLayers.Layer.Vector and an externalGraphic I call a var zoom with map.getZoom line: 159 I call var z= map.getZoom(); for change the size of an image But they don't work "Error: Invalid value for attribute height="Infinity" If I try to see the z'value Firebug give me "0" ..... Thank a lot if you have the solution I search it since two days. > View this message in context: pb with map.getZoom > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From christian.bleau at gmail.com Tue Jun 19 10:52:32 2012 From: christian.bleau at gmail.com (christian bleau) Date: Tue, 19 Jun 2012 10:52:32 -0700 (PDT) Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: References: <1340111157169-4982396.post@n6.nabble.com> Message-ID: <1340128352291-4982481.post@n6.nabble.com> HI Olivier, yes I saw a lot of example like this one http://www.geotribu.net/applications/tutoriaux/openlayers/style/style-attribut.html they use OpenLayers.Style but are you sure than it's work with a external graphic ? I was thinking it's work just for an elementary symbol like circle polygon and so on.... Best Regards Christian -- View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982481.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From richard.greenwood at gmail.com Tue Jun 19 15:51:46 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 19 Jun 2012 16:51:46 -0600 Subject: [OpenLayers-Users] 2.12-rc IE8 zoom rectangle causes map to disappear briefly Message-ID: In my own OpenLayer-based application with IE8 and OL 2.12-rc7 (and rc1) when I initiate a zoom rectangle the map image goes blank briefly (approx 1/2 second). I don't see the problem in the OpenLayers examples nor do I see the problem in my application under IE9 or with other browsers. I'm using panel controls for the zoom in/out but otherwise nothing special. I've pruned my new OpenLayers.Map() declaration down to the bare minimum. I'm using cursor styles, but removing them didn't have any effect: .olControlZoomBoxActive { cursor: url('/mapserver/common/rwg/img/zoomInRWG.cur'), auto; } I can't think where else to look. Has anybody seen similar behavior or have any suggestions on things to look at? Here's a link to my problem app: http://mapserver.parkcounty.us/map6.html Thanks -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at gmail.com Tue Jun 19 18:00:50 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 19 Jun 2012 19:00:50 -0600 Subject: [OpenLayers-Users] 2.12-rc IE8 zoom rectangle causes map to disappear briefly In-Reply-To: References: Message-ID: On Tue, Jun 19, 2012 at 4:51 PM, Richard Greenwood wrote: > In my own OpenLayer-based application with IE8 and OL 2.12-rc7 (and > rc1) when I initiate a zoom rectangle the map image goes blank briefly > (approx 1/2 second). I don't see the problem in the OpenLayers > examples nor do I see the problem in my application under IE9 or with > other browsers. I'm using panel controls for the zoom in/out but > otherwise nothing special. I've pruned my new OpenLayers.Map() > declaration down to the bare minimum. I'm using cursor styles, but > removing them didn't have any effect: > .olControlZoomBoxActive { > ?cursor: url('/mapserver/common/rwg/img/zoomInRWG.cur'), auto; > } > > I can't think where else to look. Has anybody seen similar behavior or > have any suggestions on things to look at? Here's a link to my problem > app: > ? http://mapserver.parkcounty.us/map6.html > Thanks Narrowing this down slightly, the issue is present only when layer's singleTile: true, I've experimented with buffer, gutter and ratio with not positive effect on the problem. Thanks -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From julius.sempio at gmail.com Tue Jun 19 22:07:14 2012 From: julius.sempio at gmail.com (Julius Sempio) Date: Wed, 20 Jun 2012 13:07:14 +0800 Subject: [OpenLayers-Users] "Trimming" attribute table output in .csv Message-ID: Good day sires. We're trying to play around with Geoserver's GetFeature function to save a .csv file of a feature's attribute fields. The function below does exactly that: function generateFeatureTable(feature){ var featureTableURL = " http://localhost:8080/geoserver/prism/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.1.0&TYPENAME=prism:" + feature + "&OUTPUTFORMAT=csv&SRSNAME=epsg:4326"; window.open(featureTableURL); } The problem is that the .csv file is also including "the_geom" as one of its fields. If we make use of the PROPERTYNAME argument to specify the fields we like to include in the table, we would have to specify each and every field name excluding that of "the_geom". Any ideas on how to specify the ones you would NOT want to include in the output file? We will highly appreciate the insights you can provide us. Julius Sempio Department of Geodetic Engineering University of the Philippines -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at geomatic.ch Wed Jun 20 00:00:09 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 09:00:09 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <1340128352291-4982481.post@n6.nabble.com> References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> Message-ID: <5051A983-906D-46A7-94DB-F8196AC7451F@geomatic.ch> ExternalGraphic is a style property of a Point Symbolizer like the others, if you defined 2 rules depends on the scale it should work : A little bit like this: new OpenLayers.Rule({ maxScaleDenominator: 200000000, minScaleDenominator: 100000000, symbolizer: { externalGraphic: 'a_img/travauxorange.png', graphicHeight: 60*18/10 , graphicWidth: 65*18/10}); }), new OpenLayers.Rule({ maxScaleDenominator: 100000000, symbolizer: { externalGraphic: 'a_img/travauxorange.png', graphicHeight: 60*18/5 , graphicWidth: 65*18/5 } }) Le 19 juin 2012 ? 19:52, christian bleau a ?crit : > HI Olivier, > > yes I saw a lot of example like this one > > http://www.geotribu.net/applications/tutoriaux/openlayers/style/style-attribut.html > > they use OpenLayers.Style but are you sure than it's work with a external > graphic ? > > I was thinking it's work just for an elementary symbol like circle polygon > and so on.... > > Best Regards > > Christian > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982481.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From olivier at geomatic.ch Wed Jun 20 00:12:14 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 09:12:14 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <1340128352291-4982481.post@n6.nabble.com> References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> Message-ID: > > > http://www.geotribu.net/applications/tutoriaux/openlayers/style/style-attribut.html > The method uses in the example you pointed out is probably the better way to achieve what you want than defines one rule by scale. Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From olivier at geomatic.ch Wed Jun 20 01:38:03 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 10:38:03 +0200 Subject: [OpenLayers-Users] "Trimming" attribute table output in .csv In-Reply-To: References: Message-ID: Hi Julius, It's related to geoserver not openlayers. You should post your question on geoserver userslist: http://geoserver.org/display/GEOS/Mailing+Lists Or ask on their IRC channel #geoserver Tschuss Le 20 juin 2012 ? 07:07, Julius Sempio a ?crit : > Good day sires. > > We're trying to play around with Geoserver's GetFeature function to save a .csv file of a feature's attribute fields. The function below does exactly that: > > function generateFeatureTable(feature){ > var featureTableURL = "http://localhost:8080/geoserver/prism/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.1.0&TYPENAME=prism:" + feature + "&OUTPUTFORMAT=csv&SRSNAME=epsg:4326"; > window.open(featureTableURL); > } > > The problem is that the .csv file is also including "the_geom" as one of its fields. If we make use of the PROPERTYNAME argument to specify the fields we like to include in the table, we would have to specify each and every field name excluding that of "the_geom". > > Any ideas on how to specify the ones you would NOT want to include in the output file? > > We will highly appreciate the insights you can provide us. > > Julius Sempio > Department of Geodetic Engineering > University of the Philippines _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From olivier at geomatic.ch Wed Jun 20 02:10:17 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 11:10:17 +0200 Subject: [OpenLayers-Users] which feature is from wich layer in WMSGFI In-Reply-To: <1340101477125-4982353.post@n6.nabble.com> References: <1340101477125-4982353.post@n6.nabble.com> Message-ID: <47B2CA86-8D3D-4A25-AF63-FD071DB26C8E@geomatic.ch> Hi Dan, When you receive the result of a GetFeatureInfo, the features are not added to a layer yet so the property layer should be null. You should have a look on others properties of your feature like event.features[i].attributes or event.features[i].type. If the name of the layer isn't in these properties try look directly in the code how the class OpenLayers.Format.WMSGetFeatureInfo parse the result of the request Regards Le 19 juin 2012 ? 12:24, vrbikdan a ?crit : > Hi all, > I'm using WMSGetFeatureInfo for writting information about feature. But now > I need to know, which feature in response is from which layer. Problem is, > that I'm using infoFormat: 'application/vnd.ogc.gml'. My code is here: > > infoPropVar = new OpenLayers.Control.WMSGetFeatureInfo( > { > url: "http://192.168.1.92:8080/geoserver/zk/wms", > title: '', > queryVisible: true, > infoFormat: 'application/vnd.ogc.gml', > eventListeners: > { > getfeatureinfo: function(event) > { > for (i=0; i { > alert(); > } > } > } > }); > map.addControl(infoPropVar); > infoPropVar.activate(); > > I tried write event.features[i].layer/name/layerName and so on but nothing. > Do you have any tip how I can extract which feature in response is from > which layer? > > Thanks a lot > Dan > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/which-feature-is-from-wich-layer-in-WMSGFI-tp4982353.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From olivier at geomatic.ch Wed Jun 20 02:18:32 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 11:18:32 +0200 Subject: [OpenLayers-Users] this.div.style error In-Reply-To: <4FE04593020000370000BE82@gate1.asurequality.com> References: <4FD7DB42.1030008@gns.cri.nz> <4FE04593020000370000BE82@gate1.asurequality.com> Message-ID: Hi Robert, Try to send us a small example ( a simple html page or an accessible Url ) about how we can reproduce the bug with OpenLayers only. If you facilitate the testing of a bug, you'll have more chances to have good and quick answers to your problem. Regards Le 18 juin 2012 ? 23:25, Robert Sanson a ?crit : > I have a Web site built using GeoExt + OpenLayers, and I quite often get the following Javascript error: > > Webpage error details > > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) > Timestamp: Mon, 18 Jun 2012 21:22:51 UTC > > > Message: 'this.div.style' is null or not an object > Line: 1256 > Char: 9 > Code: 0 > URI: http://myserver/lib/OpenLayers/Layer.js > > > It comes from the getZIndex function: > > /** > * Method: getZIndex > * > * Returns: > * {Integer} the z-index of this layer > */ > getZIndex: function () { > return this.div.style.zIndex; > }, > > I t happens when I reload some layers from a WKT source. > > Can anyone suggest how to avoid this error? > > Many thanks > > Robert Sanson > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From vrbikdan at gmail.com Wed Jun 20 05:20:30 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Wed, 20 Jun 2012 05:20:30 -0700 (PDT) Subject: [OpenLayers-Users] which feature is from wich layer in WMSGFI In-Reply-To: <47B2CA86-8D3D-4A25-AF63-FD071DB26C8E@geomatic.ch> References: <1340101477125-4982353.post@n6.nabble.com> <47B2CA86-8D3D-4A25-AF63-FD071DB26C8E@geomatic.ch> Message-ID: <1340194830409-4982659.post@n6.nabble.com> Hi, thanks, I tried yours suggestions but with no success. BUT! I can use event.features[i].fid where are name of layer and some number. With split function I can take out layer name. So maybe solution is not exactly correct, but works and this is important for me :) Thanks Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/which-feature-is-from-wich-layer-in-WMSGFI-tp4982353p4982659.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From vrbikdan at gmail.com Wed Jun 20 05:51:08 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Wed, 20 Jun 2012 05:51:08 -0700 (PDT) Subject: [OpenLayers-Users] tileStitchingPrinting problem In-Reply-To: <1340000812034-4981997.post@n6.nabble.com> References: <1339659608843-4981327.post@n6.nabble.com> <4FD9FFC3.2070503@greeninfo.org> <1340000812034-4981997.post@n6.nabble.com> Message-ID: <1340196668599-4982669.post@n6.nabble.com> Hi, finally it works, but I'm not sure, but I thing I found few mistakes in this code http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting#Serverside:PHP http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting#Serverside:PHP 1) between lines 9 and 10 I wrote this part of code: imagecopy($cut, $src_im, 0, 0, $src_x, $src_y, $src_w, $src_h); 2) line 42 in variable TEMP_DIR missing $ Maybe somewhere is this code corrected or maybe I'm using wrong code, so if its true, my appologize :) Next problem in my implementation was wrong path in TEMP_DIR and TEMP_URL, but this I susspected :) Thanks for help and thanks for great piece of code ;) Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tileStitchingPrinting-problem-tp4981327p4982669.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From christian.bleau at gmail.com Wed Jun 20 06:01:37 2012 From: christian.bleau at gmail.com (christian bleau) Date: Wed, 20 Jun 2012 06:01:37 -0700 (PDT) Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> Message-ID: <1340197297006-4982672.post@n6.nabble.com> Hi Olivier and Steve, I try to follow your way but it din't work It's sure I have forgot something ... http://pofableau.com/openlayer/multicouche.html the overlay code is ok for *depart* and *calque *but without possibility to scaling with panZoom. It's the pb exposed in the beginning of this topic. the overlay *d?part2* who use your recommandation isn't visible on the map I use this code : ** Steve I wrote the following code for *depart* and *calque* but there is no change for scale the Image as you can see. May be It's necessary to have a time out for the script ? * * Thank a lot for your help. Christian -- View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982672.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ebuford at uvm.edu Wed Jun 20 06:49:37 2012 From: ebuford at uvm.edu (Ernie Buford) Date: Wed, 20 Jun 2012 09:49:37 -0400 Subject: [OpenLayers-Users] why no overlay on Virtual Earth basemaps? In-Reply-To: <4FB5253B.5020508@uvm.edu> References: <4FB5253B.5020508@uvm.edu> Message-ID: <4FE1D4F1.7080407@uvm.edu> I only received one response to my question, and it was from someone who came up with their own patch. I have not yet tried it myself. Would love to hear from the dev team or expert programmers about this fix. My original post is below, followed by the response. On 5/17/2012 12:20 PM, Ernie Buford wrote: > Having fun getting started with OpenLayers, but I've hit a curious > snag.... > > I have a set of map tiles created using Arc2Earth, and they overlay > nicely on Google, Yahoo, and OSM basemap data.... but no luck with > Bing/Virtual Earth. Is this not currently possible, or (more likely) > am I missing some critical detail? > > I have modified several OL examples (e.g., > OL_spherical-mercator-example.html and some from the 2.10 Beginner's > Guide) by adding an XYZ layer like this: > > // create slope overlay layer > var slope = new OpenLayers.Layer.XYZ( > "VT Slope", > "http://myserver/slope/${z}/${x}/${y}.png", > { > 'opacity': 0.6, visibility: false, > 'isBaseLayer': false,'wrapDateLine': true > } > ); > > At times I've added the 'sphericalMercator: true' option, but it does > not seem to matter. > > I've added this exact chunk of code to several working examples. The > slope layer shows up over any of the aforementioned basemaps except > Bing (which I've tried accessing via OpenLayers.Layer.VirtualEarth as > well as directly with the newer OpenLayers.Layer.Bing). > > Why won't this work with the Bing/VE basemap? > > Should I be using a different method for using this type of tile cache > as an overlay in OL? > > Ernie > Ernie, > > I had the exact problem that you described - my XYZ overlay layer > displays splendidly with a Google or OSM base layer, but nothing when > using Bing or VirtualEarth. I have a suspicion as to the cause of the > problem, and have tried a patch that seems to correct it, but I am not > an expert in the OpenLayers code, and cannot guarantee that my theory > & fix are truly valid. > > But here's what I have found. > > I ran my test case in Internet Explorer, and used its "F12 developer > tools" to look at the tile requests being sent from the browser to the > XYZ tile server. The important difference that I saw when using Bing > instead of the other base layers was that the Z/zoom component of the > request to the server was off by one with Bing relative to the other > base layers. So I might see a tile request with a "Z" component of 9 > for Google or OSM, and after switching to Bing, that "Z" component > became an 8. > > Bing/VirtualEarth layers differ from many of the other base layers in > how they designate the zoom level. The other layers start with zoom > level 0, while Bing starts with zoom level 1. I poked around in the > OpenLayers library code, and found that map layers can have a > "zoomOffset" data member which I believe accounts for this difference > - for Google & OSM, the zoomOffset is set to 0, while for Bing it is > set to 1. > > After some experimentation, I found a patch that corrected the problem > for me (disclaimer: by no means does this mean it is an appropriate > fix!). In the OpenLayers.Layer.XYZ class, there is a function called > 'getXYZ', and it includes this statement which calculates the "Z" value: > > var z = this.serverResolutions != null ? > OpenLayers.Util.indexOf(this.serverResolutions, res) : > this.map.getZoom() + this.zoomOffset; > > Note that "this.zoomOffset" represents the zoomOffset value of the XYZ > layer which is not displaying for us. For my layer, it is set to > zero, which matches the Google/OSM base layers, but doesn't match the > Bing value. I replaced that line with this code: > > var zOff; > > if (this.map.baseLayer.zoomOffset) { > > zOff = this.map.baseLayer.zoomOffset; > > } else { > > zOff = this.zoomOffset; > > } > > var z = this.serverResolutions != null ? > OpenLayers.Util.indexOf(this.serverResolutions, res) : > this.map.getZoom() + zOff; > > The replacement code checks the zoomOffset value of the base map layer > (if it exists) and uses it if it's present; otherwise, it uses the > zoomOffset of the overlay layer. With this code in place, I find that > my overlay layer now displays properly for all my base map layers. > > Again, I make no guarantees about the validity of this change, and > would like to have someone on the OpenLayers development team review it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.williamson at gladiator-innovations.com Tue Jun 19 15:46:48 2012 From: joel.williamson at gladiator-innovations.com (Joel Williamson) Date: Tue, 19 Jun 2012 22:46:48 +0000 (UTC) Subject: [OpenLayers-Users] why no overlay on Virtual Earth basemaps? References: <4FB5253B.5020508@uvm.edu> Message-ID: Ernie Buford writes: > > Having fun getting started with OpenLayers, but I've hit a curious snag.... > > I have a set of map tiles created using Arc2Earth, and they overlay > nicely on Google, Yahoo, and OSM basemap data.... but no luck with > Bing/Virtual Earth. Is this not currently possible, or (more likely) am > I missing some critical detail? > > I have modified several OL examples (e.g., > OL_spherical-mercator-example.html and some from the 2.10 Beginner's > Guide) by adding an XYZ layer like this: > > // create slope overlay layer > var slope = new OpenLayers.Layer.XYZ( > "VT Slope", > "http://myserver/slope/${z}/${x}/${y}.png", > { > 'opacity': 0.6, visibility: false, > 'isBaseLayer': false,'wrapDateLine': true > } > ); > > At times I've added the 'sphericalMercator: true' option, but it does > not seem to matter. > > I've added this exact chunk of code to several working examples. The > slope layer shows up over any of the aforementioned basemaps except Bing > (which I've tried accessing via OpenLayers.Layer.VirtualEarth as well as > directly with the newer OpenLayers.Layer.Bing). > > Why won't this work with the Bing/VE basemap? > > Should I be using a different method for using this type of tile cache > as an overlay in OL? > > Ernie > Ernie, I had the exact problem that you described - my XYZ overlay layer displays splendidly with a Google or OSM base layer, but nothing shows when using Bing or VirtualEarth. I have a suspicion as to the cause of the problem, and have tried a patch that seems to correct it, but I am not an expert in the OpenLayers code, and cannot guarantee that my theory & fix are truly valid. But here's what I have found. I ran my test case in Internet Explorer, and used its "F12 developer tools" to look at the tile requests being sent from the browser to the XYZ tile server. The important difference that I saw when using Bing instead of the other base layers was that the Z/zoom component of the request to the server was off by one with Bing relative to the other base layers. So I might see a tile request with a "Z" component of 9 for Google or OSM, and after switching to Bing, that "Z" component became an 8, despite the fact that my map extents had not changed. Bing/VirtualEarth layers differ from many of the other base layers in how they designate the zoom level. The other layers start with zoom level 0, while Bing starts with zoom level 1. I poked around in the OpenLayers library code, and found that map layers can have a "zoomOffset" data member which I believe accounts for this difference - for Google & OSM, the zoomOffset is set to 0, while for Bing it is set to 1. After some experimentation, I found a patch that corrected the problem for me (disclaimer: by no means does this mean it is an appropriate fix!). In the OpenLayers.Layer.XYZ class, there is a function called 'getXYZ', and it includes this statement which calculates the "Z" value: var z = this.serverResolutions != null ? OpenLayers.Util.indexOf (this.serverResolutions, res) : this.map.getZoom() + this.zoomOffset; Note that "this.zoomOffset" represents the zoomOffset value of the overlay XYZ layer which is not displaying for us. For my layer, it is set to zero, which matches the Google/OSM base layers, but doesn't match the Bing value. I replaced that line with this code: var zOff; if (this.map.baseLayer.zoomOffset) { zOff = this.map.baseLayer.zoomOffset; } else { zOff = this.zoomOffset; } var z = this.serverResolutions != null ? OpenLayers.Util.indexOf (this.serverResolutions, res) : this.map.getZoom() + zOff; The replacement code checks the zoomOffset value of the base map layer (if it exists) and uses it if it's present; otherwise, it uses the zoomOffset of the overlay layer. With this code in place, I find that my overlay layer now displays properly for all my base map layers, and I get the same Z component regardless of which base layer I am using. Again, I make no guarantees about the validity of this change, and would like to have someone on the OpenLayers development team review it. Joel From olivier at geomatic.ch Wed Jun 20 09:10:35 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 20 Jun 2012 18:10:35 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <1340197297006-4982672.post@n6.nabble.com> References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> <1340197297006-4982672.post@n6.nabble.com> Message-ID: <053F82BF-140A-4568-825E-D2D2762E5789@geomatic.ch> Define your style variable like this: var style = new OpenLayers.Style({ externalGraphic: 'http://pofableau.com/openlayer/a_img/travauxorange.png', graphicHeight: "${size}", graphicWidth: "${size}" }, { context: { size: function() { return 60*18/map.getZoom(); } } } ); Le 20 juin 2012 ? 15:01, christian bleau a ?crit : > Hi Olivier and Steve, I try to follow your way but it din't work It's sure I have forgot something ... http://pofableau.com/openlayer/multicouche.html the overlay code is ok for depart and calque but without possibility to scaling with panZoom. It's the pb exposed in the beginning of this topic. the overlay d?part2 who use your recommandation isn't visible on the map I use this code : > > var style = new OpenLayers.Style( > OpenLayers.Util.applyDefaults( > {fillColor: "green", fillOpacity: 1, strokeColor: "black"}, > { > rules: [ > new OpenLayers.Rule({ > maxScaleDenominator: 200000000, > minScaleDenominator: 100000000, > symbolizer: { > externalGraphic: 'a_img/travauxorange.png', > graphicHeight: 60*18/10 , > graphicWidth: 65*18/10 > } > }), > new OpenLayers.Rule({ > maxScaleDenominator: 100000000, > symbolizer: { > externalGraphic: 'a_img/travauxorange.png', > graphicHeight: 60*18/5, > graphicWidth: 65*18/5 > } > }) > ] > })); > > var depart = new OpenLayers.Layer.Vector("Depart", { > styleMap: new OpenLayers.StyleMap(style) }); > > map.addLayer(depart); > Steve I wrote the following code for depart and calque but there is no change for scale the Image as you can see. May be It's necessary to have a time out for the script ? > var z= map.getScale(); > > var graphicWidth = 55; > var graphicHeight = 50; > > var scaleFactorWidth = graphicWidth * z; > var scaleFactorHeight = graphicHeight * z; > > var depart2 = new OpenLayers.Layer.Vector("D?part2"); > var feature = new OpenLayers.Feature.Vector( > new OpenLayers.Geometry.Point(2.534000,48.387000).transform( > new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 > new OpenLayers.Projection("EPSG:900913") // to Spherical Mercator Projection > ), > {some:'data'}, > {externalGraphic: 'a_img/travauxorange.png', graphicHeight: graphicHeight, graphicWidth: scaleFactorWidth}); > depart2.addFeatures(feature); > > Thank a lot for your help. Christian > View this message in context: Re: pb with map.getZoom > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From christian.bleau at gmail.com Wed Jun 20 09:25:37 2012 From: christian.bleau at gmail.com (christian bleau) Date: Wed, 20 Jun 2012 09:25:37 -0700 (PDT) Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <053F82BF-140A-4568-825E-D2D2762E5789@geomatic.ch> References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> <1340197297006-4982672.post@n6.nabble.com> <053F82BF-140A-4568-825E-D2D2762E5789@geomatic.ch> Message-ID: <772F622A-619B-4747-B242-13929620B35B@gmail.com> no change ..... ((((((((((((( Le 20 juin 2012 ? 18:11, Olivier Terral-3 [via OSGeo.org] a ?crit : > Define your style variable like this: > > var style = new OpenLayers.Style({ > externalGraphic: 'http://pofableau.com/openlayer/a_img/travauxorange.png', > graphicHeight: "${size}", > graphicWidth: "${size}" > }, { > context: { > size: function() { > return 60*18/map.getZoom(); > } > } > } > ); > > > Le 20 juin 2012 ? 15:01, christian bleau a ?crit : > >> Hi Olivier and Steve, I try to follow your way but it din't work It's sure I have forgot something ... http://pofableau.com/openlayer/multicouche.html the overlay code is ok for depart and calque but without possibility to scaling with panZoom. It's the pb exposed in the beginning of this topic. the overlay d?part2 who use your recommandation isn't visible on the map I use this code : >> >> var style = new OpenLayers.Style( >> OpenLayers.Util.applyDefaults( >> {fillColor: "green", fillOpacity: 1, strokeColor: "black"}, >> { >> rules: [ >> new OpenLayers.Rule({ >> maxScaleDenominator: 200000000, >> minScaleDenominator: 100000000, >> symbolizer: { >> externalGraphic: 'a_img/travauxorange.png', >> graphicHeight: 60*18/10 , >> graphicWidth: 65*18/10 >> } >> }), >> new OpenLayers.Rule({ >> maxScaleDenominator: 100000000, >> symbolizer: { >> externalGraphic: 'a_img/travauxorange.png', >> graphicHeight: 60*18/5, >> graphicWidth: 65*18/5 >> } >> }) >> ] >> })); >> >> var depart = new OpenLayers.Layer.Vector("Depart", { >> styleMap: new OpenLayers.StyleMap(style) }); >> >> map.addLayer(depart); >> Steve I wrote the following code for depart and calque but there is no change for scale the Image as you can see. May be It's necessary to have a time out for the script ? >> var z= map.getScale(); >> >> var graphicWidth = 55; >> var graphicHeight = 50; >> >> var scaleFactorWidth = graphicWidth * z; >> var scaleFactorHeight = graphicHeight * z; >> >> var depart2 = new OpenLayers.Layer.Vector("D?part2"); >> var feature = new OpenLayers.Feature.Vector( >> new OpenLayers.Geometry.Point(2.534000,48.387000).transform( >> new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 >> new OpenLayers.Projection("EPSG:900913") // to Spherical Mercator Projection >> ), >> {some:'data'}, >> {externalGraphic: 'a_img/travauxorange.png', graphicHeight: graphicHeight, graphicWidth: scaleFactorWidth}); >> depart2.addFeatures(feature); >> >> Thank a lot for your help. Christian >> View this message in context: Re: pb with map.getZoom >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > Olivier Terral > > > > GEOMATIC Ing?nierie SA > Soci?t? du groupe Ringier > Chemin des Croisettes 26 > 1066 Epalinges > www.geomatic.ch > www.thevirtualcity.ch > T?l:: +41 (21) 651 30 00 > Fax: +41 (21) 651 30 09 > > > > > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982774.html > To unsubscribe from pb with map.getZoom, click here. > NAML Christian Pof at Bleau -- View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982777.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at geomatic.ch Thu Jun 21 01:46:43 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Thu, 21 Jun 2012 10:46:43 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: <772F622A-619B-4747-B242-13929620B35B@gmail.com> References: <1340111157169-4982396.post@n6.nabble.com> <1340128352291-4982481.post@n6.nabble.com> <1340197297006-4982672.post@n6.nabble.com> <053F82BF-140A-4568-825E-D2D2762E5789@geomatic.ch> <772F622A-619B-4747-B242-13929620B35B@gmail.com> Message-ID: Are you sure ? Try my test page, if you zoom out you can see the image to become bigger Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.bleau at gmail.com Thu Jun 21 05:01:25 2012 From: christian.bleau at gmail.com (Christian Bleau) Date: Thu, 21 Jun 2012 14:01:25 +0200 Subject: [OpenLayers-Users] pb with map.getZoom In-Reply-To: References: <1340111157169-4982396.post@n6.nabble.com> Message-ID: Hi the pb is solved with this code. variables map.getScale ( ); or getZoom send a good information if it's inside a function ..... style = new OpenLayers.Style({ externalGraphic: 'http://pofableau.com/openlayer/calque.png', graphicHeight: "${H1}", graphicWidth: "${W1}" }, { context: { H1: function() { return 272/map.getScale()*2000;}, W1: function() { return 200/map.getScale()*2000;} } } ); var couche_calque = new OpenLayers.Layer.Vector("Calque", { styleMap: new OpenLayers.StyleMap(style) } ); var feature = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(2.534904,48.387375).transform( new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 new OpenLayers.Projection("EPSG:900913") // to Spherical Mercator Projection ), {some:'data'} ); couche_calque.addFeatures(feature); http://pofableau.com/openlayer/multicouche.html Many thanks for the help. Christian Le 19 juin 2012 ? 16:52, Olivier Terral a ?crit : > Hi Christian, > > You're doing a getZoom() just after created the map and before a zooming function, so the zoom property of the map is logically 0. > > Anyway, I think you use a wrong way of managing scale dependent size. > > Your problem seems similar to this example: http://dev.openlayers.org/releases/OpenLayers-2.11/examples/label-scale.html . > > Hope this helps. > > Tschuuss > > Le 19 juin 2012 ? 15:05, christian bleau a ?crit : > >> Hi, i'm just trying to use OL and I meet a problem with map.getZoom here's url of my test. for adapt an size of an OpenLayers.Layer.Vector and an externalGraphic I call a var zoom with map.getZoom line: 159 I call var z= map.getZoom(); for change the size of an image But they don't work "Error: Invalid value for attribute height="Infinity" If I try to see the z'value Firebug give me "0" ..... Thank a lot if you have the solution I search it since two days. >> View this message in context: pb with map.getZoom >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > Olivier Terral > > > > GEOMATIC Ing?nierie SA > Soci?t? du groupe Ringier > Chemin des Croisettes 26 > 1066 Epalinges > www.geomatic.ch > www.thevirtualcity.ch > T?l:: +41 (21) 651 30 00 > Fax: +41 (21) 651 30 09 > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Christian Pof at Bleau -------------- next part -------------- An HTML attachment was scrubbed... URL: From RDell at CatawbaCountyNC.gov Thu Jun 21 14:01:19 2012 From: RDell at CatawbaCountyNC.gov (Ralph Dell) Date: Thu, 21 Jun 2012 17:01:19 -0400 Subject: [OpenLayers-Users] tileStitchingPrinting problem References: <1339659608843-4981327.post@n6.nabble.com><4FD9FFC3.2070503@greeninfo.org><1340000812034-4981997.post@n6.nabble.com> <1340196668599-4982669.post@n6.nabble.com> Message-ID: This is just a piggyback on the tile stitching thread. I would like to give a big thank you to the developers. Being able to generate a image solved a big problem for me. Any implementation problems I had I caused myself. Setting TEMP_DIR incorrectly caused some angst and I had to change simplejson to json. Thank you, Ralph Dell Catawba County, NC -----Original Message----- From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of vrbikdan Sent: Wednesday, June 20, 2012 8:51 AM To: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] tileStitchingPrinting problem Hi, finally it works, but I'm not sure, but I thing I found few mistakes in this code http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting#Serverside:P HP http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting#Serverside:P HP 1) between lines 9 and 10 I wrote this part of code: imagecopy($cut, $src_im, 0, 0, $src_x, $src_y, $src_w, $src_h); 2) line 42 in variable TEMP_DIR missing $ Maybe somewhere is this code corrected or maybe I'm using wrong code, so if its true, my appologize :) Next problem in my implementation was wrong path in TEMP_DIR and TEMP_URL, but this I susspected :) Thanks for help and thanks for great piece of code ;) Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tileStitchingPrinting-problem-tp4981 327p4982669.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From laurent.baey at free.fr Fri Jun 22 03:31:00 2012 From: laurent.baey at free.fr (Laurent BAEY) Date: Fri, 22 Jun 2012 12:31:00 +0200 (CEST) Subject: [OpenLayers-Users] Applying filters to WMS-C images In-Reply-To: <1940552394.267852737.1340360908045.JavaMail.root@spooler2-g27.priv.proxad.net> Message-ID: <1222863813.267862448.1340361060772.JavaMail.root@spooler2-g27.priv.proxad.net> Hi, I want to be able to use filters on images from a WMS-C layer (e.g. grayscale filter) and I want it cross browser. For now, I use this css properties, with a class I add on the tileloaded event : /* Chrome 19+ */ -webkit-filter: grayscale(1); /* IE */ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" filter: 'progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)'; filter: gray(); /* FF 3.5+ */ filter: url("./resources.svg#desaturate"); with resources.svg as follow : This svg filter doen't work on images with chrome < 19 and safari, it needs to be an svg element to work. Has anybody managed to display a WMS layer in a svg element ? Or maybe grayscale images with any other method ? Note that I can't use the canvas method with the OL 2.11 version I have to use. (tile.getCanvasContext() doesn't exist) Thanks Laurent From olivier at geomatic.ch Fri Jun 22 06:06:46 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Fri, 22 Jun 2012 15:06:46 +0200 Subject: [OpenLayers-Users] Applying filters to WMS-C images In-Reply-To: <1222863813.267862448.1340361060772.JavaMail.root@spooler2-g27.priv.proxad.net> References: <1222863813.267862448.1340361060772.JavaMail.root@spooler2-g27.priv.proxad.net> Message-ID: <616B03A4-9414-4BEB-98CB-B436AB3A6101@geomatic.ch> Hi Laurent , I don't know what is your constraints in this project but if you use WMS and a Raster layer may be you should have look to SLD spec. I know you can do that with geoserver : http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html and probably with all others WMS server that manages RatserSymbolizer and ColorMap. Le 22 juin 2012 ? 12:31, Laurent BAEY a ?crit : > Hi, > > I want to be able to use filters on images from a WMS-C layer (e.g. > grayscale filter) and I want it cross browser. > > For now, I use this css properties, with a class I add on the tileloaded > event : > > /* Chrome 19+ */ > -webkit-filter: grayscale(1); > /* IE */ > -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" > filter: 'progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)'; > filter: gray(); > /* FF 3.5+ */ > filter: url("./resources.svg#desaturate"); > > with resources.svg as follow : > > > baseProfile="full" > xmlns="http://www.w3.org/2000/svg"> > > > > > > This svg filter doen't work on images with chrome < 19 and safari, it > needs to be an svg element to work. > > Has anybody managed to display a WMS layer in a svg element ? Or > maybe grayscale images with any other method ? > > Note that I can't use the canvas method with the OL 2.11 version I have to > use. (tile.getCanvasContext() doesn't exist) > > Thanks > > Laurent > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From modala.raghuveer at gmail.com Fri Jun 22 11:02:56 2012 From: modala.raghuveer at gmail.com (modala) Date: Fri, 22 Jun 2012 11:02:56 -0700 (PDT) Subject: [OpenLayers-Users] How to read a kml file into Open Layers - issue Message-ID: <1340388176744-4983286.post@n6.nabble.com> Hi, I am new to Open Layers and even Java. I am trying to read a kml file (have some locations) onto a map . I am unable to read the file.. Can any one help me to solve this issue I am pasting the code OpenLayers Example
After reading few online material i came to know that i have to use a relative path name for the kml file. But i am not sure how to do that. Can anyone help me on this ? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-read-a-kml-file-into-Open-Layers-issue-tp4983286.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From n.e.kendall at gmail.com Fri Jun 22 15:07:25 2012 From: n.e.kendall at gmail.com (Nick Kendall) Date: Fri, 22 Jun 2012 18:07:25 -0400 Subject: [OpenLayers-Users] How to read a kml file into Open Layers - issue In-Reply-To: <1340388176744-4983286.post@n6.nabble.com> References: <1340388176744-4983286.post@n6.nabble.com> Message-ID: <4F89750D-DB29-4D2D-9EEB-C85E74C89F2B@gmail.com> There's not much code here. Sent from my mobile device On Jun 22, 2012, at 2:02 PM, modala wrote: > Hi, > I am new to Open Layers and even Java. I am trying to read a kml file > (have some locations) onto a map . I am unable to read the file.. Can any > one help me to solve this issue > > I am pasting the code > > > > OpenLayers Example > > > >
> > > > > > After reading few online material i came to know that i have to use a > relative path name for the kml file. But i am not sure how to do that. Can > anyone help me on this ? > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-read-a-kml-file-into-Open-Layers-issue-tp4983286.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From smockmakker at gmail.com Sat Jun 23 08:46:04 2012 From: smockmakker at gmail.com (=?UTF-8?Q?J=C3=B8rgen_S=2E_Nicolaysen?=) Date: Sat, 23 Jun 2012 08:46:04 -0700 (PDT) Subject: [OpenLayers-Users] Feature Title (tooltiptext) broken on FF 13.0? In-Reply-To: <4FDCCD25.5060002@arcor.de> References: <4FDCCD25.5060002@arcor.de> Message-ID: <1340466364421-4983340.post@n6.nabble.com> Verified this and the tooltip works in Chromium web browser, as well,and in FF 13 on linux. I did not work where I have features on top of each other, eg. where we have the yellow area and the blue star. This is probably a FF problem, not openlayers. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Feature-Title-tooltiptext-broken-on-FF-13-0-tp4981890p4983340.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smockmakker at gmail.com Sat Jun 23 08:51:24 2012 From: smockmakker at gmail.com (=?UTF-8?Q?J=C3=B8rgen_S=2E_Nicolaysen?=) Date: Sat, 23 Jun 2012 08:51:24 -0700 (PDT) Subject: [OpenLayers-Users] GetFeature.Control and Oracle View In-Reply-To: References: Message-ID: <1340466684088-4983341.post@n6.nabble.com> I can only provide you my experience with geoserver (and postgresql/postgis) in this case. If I do not tell geoserver which column is my primary key/identifier, it will not set any fid value. It does not matter if I call it id,fid or serialid. Hope this helps. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetFeature-Control-and-Oracle-View-tp4982254p4983341.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smockmakker at gmail.com Sat Jun 23 08:59:38 2012 From: smockmakker at gmail.com (=?UTF-8?Q?J=C3=B8rgen_S=2E_Nicolaysen?=) Date: Sat, 23 Jun 2012 08:59:38 -0700 (PDT) Subject: [OpenLayers-Users] calculate zoom-level in PostGres ?? In-Reply-To: <1340265303718-4982898.post@n6.nabble.com> References: <1340265303718-4982898.post@n6.nabble.com> Message-ID: <1340467178076-4983343.post@n6.nabble.com> Hi Try this: add the OpenLayers.Control.Permalink() to you map. map.addControl(new OpenLayers.Control.Permalink()); The link produced has the centerpoint and zoomlevel you need. or, by using the command line in firebug (firefox). map.getZoom(); map.getCenter(); Hope this helps. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/calculate-zoom-level-in-PostGres-tp4982898p4983343.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From digi_c at arcor.de Sat Jun 23 11:33:08 2012 From: digi_c at arcor.de (=?ISO-8859-15?Q?Matthias_Mei=DFer?=) Date: Sat, 23 Jun 2012 20:33:08 +0200 Subject: [OpenLayers-Users] Problem to get tooltiptext/hints working Message-ID: <4FE60BE4.7080602@arcor.de> Hi, sorry for spamming the list again with my personal problems. Unfortunatly I need external help as I spotted my own code for over an hour and couldn't fix my problem. I like to get the usual tooltiptext or small native 'hint' windows, when hovering over a vector feature, as it's working right here: http://openlayers.org/dev/examples/vector-features.html AFAIK this feature was broken a few weeks ago, so I updated to OL 2.12 RC7 and added the explicit renderer inits, but without any improvements: http://www.on-i.de/map2 Sorry my code is a bit blewn up, but if you search for "title", you will find the style snippets, that return the hint strings. Has anybody an idea, what I did wrong? Matthias From gamejihou at hotmail.com Sat Jun 23 13:51:52 2012 From: gamejihou at hotmail.com (Gery .) Date: Sat, 23 Jun 2012 20:51:52 +0000 Subject: [OpenLayers-Users] insert code into an icon In-Reply-To: References: Message-ID: Hello good people, I have a question about Openlayers and a bit about geoext. I have this script: [CODE] action = new GeoExt.Action( ??????? { ??????????????? control: new OpenLayers.Control.ZoomBox(),??????? // I think I must replace this control with the js code below, but no sure ??????????????? map: map1, ??????????????? //text: "print", ??????? //-> button options ??????????????? allowDepress: false, ??????????????? tooltip: "print", ??????? //-> check item options ??????????????? iconCls: "print" ??????? } ??????? ); ??????? actions["print_icon"] = action; ??????? toolbarItems.push(action); ??????? toolbarItems.push("-"); [/CODE] and would like to add this script (in "control" in the example above??): http://api.geoext.org/1.1/examples/print-form.js. Is that enough or what should I do to press the "print" (iconCls) and get the print-form.js? Any help is appreciated, thanks in advance. Best regards, Gery From ahocevar at opengeo.org Sun Jun 24 01:56:50 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sun, 24 Jun 2012 10:56:50 +0200 Subject: [OpenLayers-Users] Problem to get tooltiptext/hints working In-Reply-To: <4FE60BE4.7080602@arcor.de> References: <4FE60BE4.7080602@arcor.de> Message-ID: You have to use the latest OpenLayers from master. This feature was added during the 2.12 release cycle and is not in 2.12. Andreas. On Jun 23, 2012 8:34 PM, "Matthias Mei?er" wrote: > Hi, > > sorry for spamming the list again with my personal problems. Unfortunatly > I need external help as I spotted my own code for over an hour and couldn't > fix my problem. > > I like to get the usual tooltiptext or small native 'hint' windows, when > hovering over a vector feature, as it's working right here: > http://openlayers.org/dev/**examples/vector-features.html > > AFAIK this feature was broken a few weeks ago, so I updated to OL 2.12 RC7 > and added the explicit renderer inits, but without any improvements: > http://www.on-i.de/map2 > > Sorry my code is a bit blewn up, but if you search for "title", you will > find the style snippets, that return the hint strings. > Has anybody an idea, what I did wrong? > > Matthias > ______________________________**_________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/**mailman/listinfo/openlayers-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Sun Jun 24 02:00:58 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sun, 24 Jun 2012 11:00:58 +0200 Subject: [OpenLayers-Users] GetFeature.Control and Oracle View In-Reply-To: References: Message-ID: Hi, is this with GeoServer? I think it is possible to configure view layers to get a real fid. You may want to ask this question on the geoserver-users list. OpenLayers relies on the fid for wfs transactions. Andreas. On Jun 19, 2012 4:48 AM, "Steve Way" wrote: > Hi Everyone, > > > > It seems that when working with an Oracle database view, even if there is > an FID column defined which has an underlying Id which points to a Primary > Key, the toggle does not work with the select tool. Features will keep > getting added as openlayers generates an auto FID instead of using the FID > column. > > > > Is there a way around this? I am working with a fairly complex data > model, and views are the only way of achieving the end result correctly. > > > > Many Thanks, > > Steve > > ------------------------------ > > DISCLAIMER: > > This email may contain confidential information and is intended only for > the use of the specific individual(s) to which it is addressed. If you are > not the intended recipient of this email, you are hereby notified that any > unauthorized use, dissemination or copying of this email or the information > contained in it or attached to it is strictly prohibited. If you received > this message in error, please immediately notify the sender at Infotech or > Mail.Admin at infotech-enterprises.com and delete the original message. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Sun Jun 24 02:15:31 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sun, 24 Jun 2012 11:15:31 +0200 Subject: [OpenLayers-Users] Feature Title (tooltiptext) broken on FF 13.0? In-Reply-To: <1340466364421-4983340.post@n6.nabble.com> References: <4FDCCD25.5060002@arcor.de> <1340466364421-4983340.post@n6.nabble.com> Message-ID: As far as I remember, the vector-features.html example does not have tooltips for the orange polygon and the blue star. Andreas. On Jun 23, 2012 5:46 PM, "J?rgen S. Nicolaysen" wrote: > Verified this and the tooltip works in Chromium web browser, as well,and in > FF 13 on linux. > > I did not work where I have features on top of each other, eg. where we > have > the yellow area and the blue star. This is probably a FF problem, not > openlayers. > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Feature-Title-tooltiptext-broken-on-FF-13-0-tp4981890p4983340.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From digi_c at arcor.de Sun Jun 24 06:13:13 2012 From: digi_c at arcor.de (=?ISO-8859-1?Q?Matthias_Mei=DFer?=) Date: Sun, 24 Jun 2012 15:13:13 +0200 Subject: [OpenLayers-Users] Problem to get tooltiptext/hints working In-Reply-To: References: <4FE60BE4.7080602@arcor.de> Message-ID: <4FE71269.7010706@arcor.de> Thanks Andreas, I updated to 2.12-rc7-221 (g533e5), but not improvements :( Hmm.... Matthias Am 24.06.2012 10:56, schrieb Andreas Hocevar: > You have to use the latest OpenLayers from master. This feature was > added during the 2.12 release cycle and is not in 2.12. > > Andreas. > > On Jun 23, 2012 8:34 PM, "Matthias Mei?er" > wrote: > > Hi, > > sorry for spamming the list again with my personal problems. > Unfortunatly I need external help as I spotted my own code for over > an hour and couldn't fix my problem. > > I like to get the usual tooltiptext or small native 'hint' windows, > when hovering over a vector feature, as it's working right here: > http://openlayers.org/dev/__examples/vector-features.html > > > AFAIK this feature was broken a few weeks ago, so I updated to OL > 2.12 RC7 and added the explicit renderer inits, but without any > improvements: > http://www.on-i.de/map2 > > Sorry my code is a bit blewn up, but if you search for "title", you > will find the style snippets, that return the hint strings. > Has anybody an idea, what I did wrong? > > Matthias > _________________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/__mailman/listinfo/openlayers-__users > > From francescogeri at yahoo.it Sun Jun 24 09:29:25 2012 From: francescogeri at yahoo.it (Francesco Geri) Date: Sun, 24 Jun 2012 17:29:25 +0100 (BST) Subject: [OpenLayers-Users] gml as base layer Message-ID: <1340555365.5986.YahooMailNeo@web29305.mail.ird.yahoo.com> Hello everybody, I would try to use a GML layer like base layer but I always obtain errors. I used this code to load a gml file: ? ? mapx=new OpenLayers.Map('lmap', ? ? {projection: new OpenLayers.Projection('EPSG:900913'), ? ? displayProjection:new OpenLayers.Projection('EPSG:4326'), ? ? controls: [] ? ? } ? ? ); ? ? ? ? ? ? var layer = new OpenLayers.Layer.Vector("GML", { ? ? ? ? strategies: [new OpenLayers.Strategy.Fixed()], ? ? ? ??projection: new OpenLayers.Projection('EPSG:900913') isBaseLayer:true, ? ? ? ? protocol: new OpenLayers.Protocol.HTTP({ ? ? ? ? ? ? url: "dati/catasto_ok.gml", ? ? ? ? ? ? format: new OpenLayers.Format.GML() ? ? ? ? }) ? ? });? If I put the layer without the base layer option the layer is loaded perfectly (with a OSM base layer), but when I try to put the GML file like base layer this disappear. Someone can help me? Thanks a lot! Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Sun Jun 24 14:41:33 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 25 Jun 2012 09:41:33 +1200 Subject: [OpenLayers-Users] How to read a kml file into Open Layers - issue In-Reply-To: <1340388176744-4983286.post@n6.nabble.com> References: <1340388176744-4983286.post@n6.nabble.com> Message-ID: <4FE7898D.4010201@gns.cri.nz> You need a lot more code!!! Try hacking this code: http://openlayers.org/dev/examples/kml-layer.html Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From phil at patient-radio.de Mon Jun 25 01:02:45 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 01:02:45 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers Mobile on Android In-Reply-To: <1328016545360-4353210.post@n6.nabble.com> References: <1328016545360-4353210.post@n6.nabble.com> Message-ID: <1340611365482-4983505.post@n6.nabble.com> As a fallback you could offer an app-container with https://github.com/Philzen/webview-multitouch-polyfill as download for all 2.x devices. I have tested that example page with WMP and it pinch zooms fine. Cheers - Phil -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Mobile-on-Android-tp4353210p4983505.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 01:09:38 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 01:09:38 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers in Android In-Reply-To: <005501cc0651$26667bf0$733373d0$@pl> References: <1304015894910-6314389.post@n2.nabble.com> <005501cc0651$26667bf0$733373d0$@pl> Message-ID: <1340611778187-4983509.post@n6.nabble.com> If you are creating your own app (or want to deliver an app container for download) you can get pinch-zoom on htc desire and all other devices working with this: https://github.com/Philzen/webview-multitouch-polyfill -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-in-Android-tp3917561p4983509.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jumpinjackie at gmail.com Mon Jun 25 01:20:03 2012 From: jumpinjackie at gmail.com (Jackie Ng) Date: Mon, 25 Jun 2012 01:20:03 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers in Android In-Reply-To: <1340611778187-4983509.post@n6.nabble.com> References: <1304015894910-6314389.post@n2.nabble.com> <005501cc0651$26667bf0$733373d0$@pl> <1340611778187-4983509.post@n6.nabble.com> Message-ID: <1340612403090-4983513.post@n6.nabble.com> Interesting! Can this be used in conjunction with PhoneGap (namely our derived subclass of DroidGap, which is the entry point activity for a PhoneGap android application) ? - Jackie -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-in-Android-tp3917561p4983513.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 01:53:04 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 01:53:04 -0700 (PDT) Subject: [OpenLayers-Users] pinch zoom on Droid In-Reply-To: <01d801cbdcd8$763bd370$62b37a50$@pl> References: <017101cbdcce$6e89f620$4b9de260$@pl> <9A89C2D8-384C-469E-912A-4B1B2B3D6255@nokia.com> <01d801cbdcd8$763bd370$62b37a50$@pl> Message-ID: <1340614384149-4983529.post@n6.nabble.com> If you are creating your own app (or want to deliver an app container for download) you can get pinch-zoom on 2.x devices working with this: https://github.com/Philzen/webview-multitouch-polyfill -- View this message in context: http://osgeo-org.1560.n6.nabble.com/pinch-zoom-on-Droid-tp3919014p4983529.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 01:58:00 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 01:58:00 -0700 (PDT) Subject: [OpenLayers-Users] Zoom out on Android In-Reply-To: References: <76e0286fd517704906b57a637f15df51.squirrel@mail.peterse-uithuizen.com> Message-ID: <1340614680502-4983530.post@n6.nabble.com> If you are creating your own HTML5 app (or want to deliver an app container for download as an alternative for those phones) there's now a polyfill that can re-enable pinch-zoom on 2.x devices : https://github.com/Philzen/webview-multitouch-polyfill If any users and developers out there have a 1.x to 2.x device facing this limitation, pls help populating the tested device chart and / or issue list at the github site. Cheers - Phil -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Zoom-out-on-Android-tp3912942p4983530.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 02:03:18 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 02:03:18 -0700 (PDT) Subject: [OpenLayers-Users] multitouch browser events in Cyanogenmod 7.1 In-Reply-To: References: Message-ID: <1340614998783-4983534.post@n6.nabble.com> If you are creating your own app (or want to deliver an app container for download as an alternative) you can re-enable the multitouches on 2.x devices with this: https://github.com/Philzen/webview-multitouch-polyfill It's basically a polyfill enhancing the browser to send the events for the other fingers as well - no matter what built - as long as the device itself is multitouch. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/multitouch-browser-events-in-Cyanogenmod-7-1-tp3913095p4983534.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 02:06:56 2012 From: phil at patient-radio.de (Philzen) Date: Mon, 25 Jun 2012 02:06:56 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers and Geoserver support on Anroid In-Reply-To: References: <1300550877436-6187657.post@n2.nabble.com> <1300553185470-6187747.post@n2.nabble.com> Message-ID: <1340615216961-4983537.post@n6.nabble.com> Actually only pre 3.x androids have that pinch-zoom limitation in the browser, and not even all of that. If you are creating your own HTML app for installation (or want to deliver an app container for download as an alternative) you can get pinch-zoom on those devices working with this: https://github.com/Philzen/webview-multitouch-polyfill -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-and-Geoserver-support-on-Anroid-tp3918585p4983537.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From phil at patient-radio.de Mon Jun 25 01:48:28 2012 From: phil at patient-radio.de (Philipp Austermann) Date: Mon, 25 Jun 2012 10:48:28 +0200 Subject: [OpenLayers-Users] OpenLayers in Android In-Reply-To: <1340612403090-4983513.post@n6.nabble.com> References: <1304015894910-6314389.post@n2.nabble.com> <005501cc0651$26667bf0$733373d0$@pl> <1340611778187-4983509.post@n6.nabble.com> <1340612403090-4983513.post@n6.nabble.com> Message-ID: <4FE825DC.3000703@patient-radio.de> Yes it can, just tonight i have successfully made a version that extends from CordovaWebViewClient instead of WebViewClient, and that apparently seamlessly integrates with Phonegap. Pls have a go at the current application with your device and help filling the device test chart (or issues list if you encounter one) - i'll try to push a version for phonegap (incl. inclusion instruction) tonight. Cheers - Phil Am 25.06.2012 10:20, schrieb Jackie Ng: > Interesting! Can this be used in conjunction with PhoneGap (namely our > derived subclass of DroidGap, which is the entry point activity for a > PhoneGap android application) ? > > - Jackie > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-in-Android-tp3917561p4983513.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From ahocevar at opengeo.org Mon Jun 25 08:39:36 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon, 25 Jun 2012 17:39:36 +0200 Subject: [OpenLayers-Users] Koordinaten Format LonLat vs. LatLon In-Reply-To: <20120613101937.67743vrx9qdw4cnt@mail.your-server.de> References: <20120613071728.18174wrej5se2u08@mail.your-server.de> <20120613101937.67743vrx9qdw4cnt@mail.your-server.de> Message-ID: You can customize the output of the MousePosition control: var control = new OpenLayers.Control.MousePosition(); control.formatOutput = function(lonlat) { return [lonlat.lat, lonlat.lon].join(", "); }; Andreas. On Wed, Jun 13, 2012 at 10:19 AM, Marco Krage wrote: > Hello, > for example i use map.addControl(new OpenLayers.Control.MousePosition()); > The User takes the coord shown by MousePosition() on the Map an use it on > maps.google.de > > It would point him to an diffrent place. Because google maps need > 51.512161,7.465782 not 7.465782,51.512161 to show "Dortmund City" > > > Zitat von Andreas Hocevar : > >> Your GPX tracks should work fine. The only thing is that OpenLayers has an >> unusual LonLat class, whereas other frameworks have LatLng or something >> similar. The tracks should get drawn correctly, and if you look at the >> properties of the LonLat object, you will see that latitude and longitude >> are assigned correctly. >> >> What exactly were you looking at when you saw the reversed coordinates? >> >> Andreas. >> >> On Wednesday, June 13, 2012, Marco Krage wrote: >>> >>> Hallo, >>> ich beginne gerade mit Openlayers und m?chte gerne meine GPX Tracks >> >> darstellen. >>> >>> Was ich nun nicht ganz verstehe ist, wieso Openlayers die Koordinaten nur >> >> im LonLat Format annimmt und ausgibt. >>> >>> >>> Alle Quellen, sei es Google Maps oder GPX Tracks liefern die Koordinaten >> >> im LatLon Format. >>> >>> >>> Google Maps (Dortmund City): 51.512161,7.465782 >>> GPS Tracker (Dortmund City): 51.512161,7.465782 >>> Openlayers (Dortmund City): 7.465782,51.512161 >>> >>> Wie soll ich damit umgehen, dass Openlayers die Koordinaten umgekehrt >> >> annimmt? >>> >>> >>> Gru? Marco >>> >>> -- >>> www.my-azur.de - einfach wunderbar >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> > > > -- > www.my-azur.de - einfach wunderbar > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From christian.bleau at gmail.com Mon Jun 25 09:36:22 2012 From: christian.bleau at gmail.com (christian bleau) Date: Mon, 25 Jun 2012 09:36:22 -0700 (PDT) Subject: [OpenLayers-Users] How to read a kml file into Open Layers - issue In-Reply-To: <1340388176744-4983286.post@n6.nabble.com> References: <1340388176744-4983286.post@n6.nabble.com> Message-ID: <1340642182065-4983692.post@n6.nabble.com> Hi, I use the following code get from kml openlayer example. It work very well http://pofableau.com/openlayer/kml2.html here but not with your kml file http://students.cse.tamu.edu/jsc6064/projects/temp/georeferences.kml :(((((((( If I compare the head of the files *georeferences.kml* *and this of openlayer example*: Is there somebody whose can give us an explanation? Thanks Christian // code ---- kml ----- var kml = new OpenLayers.Layer.Vector("KML", { projection: map.displayProjection, strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: "sundials.kml", format: new OpenLayers.Format.KML({ extractStyles: true, extractAttributes: true }) }) }); select = new OpenLayers.Control.SelectFeature(kml); kml.events.on({ "featureselected": onFeatureSelect, "featureunselected": onFeatureUnselect }); map.addControl(select); select.activate(); function onPopupClose(evt) { select.unselectAll(); } function onFeatureSelect(event) { var feature = event.feature; // Since KML is user-generated, do naive protection against // Javascript. var content = " "+feature.attributes.name + " " + feature.attributes.description; if (content.search("" + content.replace(/ http://acebharathiar.com/tjgey.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.e.kendall at gmail.com Mon Jun 25 10:56:31 2012 From: n.e.kendall at gmail.com (Nick Kendall) Date: Mon, 25 Jun 2012 13:56:31 -0400 Subject: [OpenLayers-Users] (no subject) In-Reply-To: <1340644808.78189.YahooMailNeo@web171204.mail.ir2.yahoo.com> References: <1340644808.78189.YahooMailNeo@web171204.mail.ir2.yahoo.com> Message-ID: Spam Sent from my mobile device On Jun 25, 2012, at 1:20 PM, ali diaby wrote: > http://acebharathiar.com/tjgey.html > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From francescoboccacci at libero.it Mon Jun 25 13:02:06 2012 From: francescoboccacci at libero.it (francescoboccacci at libero.it) Date: Mon, 25 Jun 2012 22:02:06 +0200 (CEST) Subject: [OpenLayers-Users] KML Message-ID: <29324564.2280321340654526474.JavaMail.defaultUser@defaultHost> Hi all, i have a question about how load a kml file into OpenLayers. I have a kmz file (file kml + photo). I extract it and i tried to load the kml file into my test web page. I can see only a but not all the photos and marker: #MarkerPhotoStyle Test
]]>
-74.1, 40.1, 0
Is there a way to load both photos and track? Thanks Francesco From donald.kerr at dkerr.co.uk Mon Jun 25 13:27:19 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 25 Jun 2012 21:27:19 +0100 Subject: [OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML without Drawing In-Reply-To: Message-ID: <1BBC6C5555FB49AA9C7C53BF5FFC6758@DELLM4500> Is it possible to combine multiple WFS requests using OpenLayers.Protocol.WFS and output that as a single GML file without rendering a map i.e. use OpenLayers.Protocol.WFS for the combining part, make the request then directing that request to some output - no actual drawing a map, just manipulation of the data? To explain what I'm trying to do: I want to output several WFS layers as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. I'm using Mapserver as the WFS server and I don't think I can combine WFS layers at the server level (similar question asked at mapserver-users). Many thanks. Regards, Donald From nicodietrich at gmail.com Mon Jun 25 14:43:14 2012 From: nicodietrich at gmail.com (Nicolas Dietrich) Date: Mon, 25 Jun 2012 23:43:14 +0200 Subject: [OpenLayers-Users] Restrict effective viewport Message-ID: Hi all, we have a need to define a secondary `effective viewport` in addition to the current full map viewport. This `effective viewport` shall come into effect when calling - zoomToExtent - getCenter - zoomIn, zoomOut and similar functions. The reason to want such a thing is that putting overlay elements on top of the map, such as a search box, the map key, etc. shall not impair the visibility of objects after calling `zoomToExtent`. Similarly, the conceived map center is in the center of this `effective viewport`, and `zoomIn` should center at that point. Quick: Has anybody been doing something like that? Do you have a hackish proposal? Correct: Is this a good idea? Do you think it is worth including this as a new feature in OpenLayers? Or are there even plans to do so? What would be `the right way` to implement this? Are there any caveats? Shall I open a ticket? Thanks and cheers, Nicolas From vesa.meskanen at logica.com Tue Jun 26 00:58:09 2012 From: vesa.meskanen at logica.com (Meskanen, Vesa) Date: Tue, 26 Jun 2012 07:58:09 +0000 Subject: [OpenLayers-Users] double buffered refresh of WMS layers Message-ID: <1DE3CF1F36C65E4698346A28743D61CDF247@SE-EX021.groupinfra.com> Hi, I am developing an application which includes two WMS layers, one baselayer and another translucent heatmap layer on top of the base layer. In the usual setup, layers seem to get drawn one by one. My problem is that the heatmap layer modifies the color of the base layer quite much. When the update speed gets high (about 0.1 seconds/layer), the result is annoying flickering while modifying heatmap parameters interactively. Is there a way to draw both layers at the same time (i.e draw both layers in a hidden back buffer and show the result when it is ready)? All help is greatly appreciated! Best regards, Vesa Meskanen Think green - keep it on the screen. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From horst at hike.de Tue Jun 26 02:31:55 2012 From: horst at hike.de (Horst Garstka) Date: Tue, 26 Jun 2012 11:31:55 +0200 Subject: [OpenLayers-Users] Highlighting problems Message-ID: <4FE9818B.3010206@hike.de> Hi, I've a created an openlayers application with popups. The base of it was the example http://www.openlayers.org/dev/examples/sundials-spherical-mercator.html Everthing is fine. But now I want that the single feature is hightlighted when the mouse only hovers over it and the popup opens when ite is clicked on. In the KML file the section StyleMap is defined for the keys "normal" and "hightlight". But the highlighting does not function at all. I've rechecked with the example but there it does not work either. Has someone an idea where the reason for the problem could be? hike39 From dregade at viewsurf.com Tue Jun 26 06:12:42 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Tue, 26 Jun 2012 15:12:42 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom Message-ID: <4FE9B54A.1090201@viewsurf.com> Hi, We use openlayers to display large panoramas. We use ZoomifyImage to split original image in tiles and Zoomify layer to display these tiles. I would like to use fractionalZoom with Zoomify layer but this layer doesn't support this feature. The main goal is to able to resize displayed tiles for zoom level 3 from 2.5 to 3.4. Does anyone knows how to do that ? Thanks in advance -- David REGADE From ahocevar at opengeo.org Tue Jun 26 07:32:51 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 26 Jun 2012 16:32:51 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FE9B54A.1090201@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> Message-ID: This is supported in OpenLayers master and the upcoming 2.12 release. Andreas. On Tue, Jun 26, 2012 at 3:12 PM, David R?gade wrote: > Hi, > We use openlayers to display large panoramas. We use ZoomifyImage to split > original image in tiles and Zoomify layer to display these tiles. > I would like to use fractionalZoom with Zoomify layer but this layer doesn't > support this feature. The main goal is to able to resize displayed tiles for > zoom level 3 from 2.5 to 3.4. > > Does anyone knows how to do that ? > > Thanks in advance > -- > David REGADE > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jun 26 08:52:29 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 26 Jun 2012 17:52:29 +0200 Subject: [OpenLayers-Users] Problem to get tooltiptext/hints working In-Reply-To: <4FE71269.7010706@arcor.de> References: <4FE60BE4.7080602@arcor.de> <4FE71269.7010706@arcor.de> Message-ID: Hi, as I said, this feature is not in the 2.12 branch. So you need to grab master, not 2.12-rc*. Andreas. On Sun, Jun 24, 2012 at 3:13 PM, Matthias Mei?er wrote: > Thanks Andreas, > > I updated to 2.12-rc7-221 (g533e5), but not improvements :( > Hmm.... > > Matthias > > Am 24.06.2012 10:56, schrieb Andreas Hocevar: >> >> You have to use the latest OpenLayers from master. This feature was >> added during the 2.12 release cycle and is not in 2.12. >> >> Andreas. >> >> On Jun 23, 2012 8:34 PM, "Matthias Mei?er" > > wrote: >> >> ? ?Hi, >> >> ? ?sorry for spamming the list again with my personal problems. >> ? ?Unfortunatly I need external help as I spotted my own code for over >> ? ?an hour and couldn't fix my problem. >> >> ? ?I like to get the usual tooltiptext or small native 'hint' windows, >> ? ?when hovering over a vector feature, as it's working right here: >> ? ?http://openlayers.org/dev/__examples/vector-features.html >> >> ? ? >> >> ? ?AFAIK this feature was broken a few weeks ago, so I updated to OL >> ? ?2.12 RC7 and added the explicit renderer inits, but without any >> ? ?improvements: >> ? ?http://www.on-i.de/map2 >> >> ? ?Sorry my code is a bit blewn up, but if you search for "title", you >> ? ?will find the style snippets, that return the hint strings. >> ? ?Has anybody an idea, what I did wrong? >> >> ? ?Matthias >> ? ?_________________________________________________ >> ? ?Users mailing list >> ? ?Users at lists.osgeo.org >> ? ?http://lists.osgeo.org/__mailman/listinfo/openlayers-__users >> ? ? >> > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jun 26 08:57:42 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue, 26 Jun 2012 17:57:42 +0200 Subject: [OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML without Drawing In-Reply-To: <1BBC6C5555FB49AA9C7C53BF5FFC6758@DELLM4500> References: <1BBC6C5555FB49AA9C7C53BF5FFC6758@DELLM4500> Message-ID: Hi, the easiest is to create a plain WFS request. WFS supports multiple type names in one request, and so does e.g. GeoServer: http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=layer1,layer2 You can provide this as download link directly, without OpenLayers involved. Andreas. On Mon, Jun 25, 2012 at 10:27 PM, Donald Kerr wrote: > Is it possible to combine multiple WFS requests using > OpenLayers.Protocol.WFS and output that as a single GML file without > rendering a map i.e. use OpenLayers.Protocol.WFS for the combining part, > make the request then directing that request to some output - no actual > drawing a map, just manipulation of the data? > > To explain what I'm trying to do: I want to output several WFS layers as GML > so that they can be imported to another program as a single GML file. I > would like to make this file available as a url, i.e. right click - save as, > so that the user could then import the lot as a single file. I'm using > Mapserver as the WFS server and I don't think I can combine WFS layers at > the server level (similar question asked at mapserver-users). > > Many thanks. > > Regards, > > Donald > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From donald.kerr at dkerr.co.uk Tue Jun 26 09:07:23 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 26 Jun 2012 17:07:23 +0100 Subject: [OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML without Drawing In-Reply-To: Message-ID: Andreas, I thinks that's the direction I'm going to take. I've been getting some assistance on the mapserver users list. I originally hit some issues with filter BBOX but I have that resolved now. Many thanks. Regards, Donald -----Original Message----- From: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] On Behalf Of Andreas Hocevar Sent: 26 June 2012 16:58 To: Donald Kerr Cc: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML without Drawing Hi, the easiest is to create a plain WFS request. WFS supports multiple type names in one request, and so does e.g. GeoServer: http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFea ture&TYPENAME=layer1,layer2 You can provide this as download link directly, without OpenLayers involved. Andreas. On Mon, Jun 25, 2012 at 10:27 PM, Donald Kerr wrote: > Is it possible to combine multiple WFS requests using > OpenLayers.Protocol.WFS and output that as a single GML file without > rendering a map i.e. use OpenLayers.Protocol.WFS for the combining > part, make the request then directing that request to some output - no > actual drawing a map, just manipulation of the data? > > To explain what I'm trying to do: I want to output several WFS layers > as GML so that they can be imported to another program as a single GML > file. I would like to make this file available as a url, i.e. right > click - save as, so that the user could then import the lot as a > single file. I'm using Mapserver as the WFS server and I don't think I > can combine WFS layers at the server level (similar question asked at > mapserver-users). > > Many thanks. > > Regards, > > Donald > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From mr at mry4n.net Tue Jun 26 10:42:52 2012 From: mr at mry4n.net (Mike Ryan) Date: Tue, 26 Jun 2012 13:42:52 -0400 Subject: [OpenLayers-Users] Vector Layer w/ Canvas Renderer Not Respecting Other Layers Message-ID: <4FE9F49C.7040102@mry4n.net> When I add a Vector layer using a Canvas renderer two bad things happen: 1. Other Vector layers with points that have click events attached and are within the area covered by the Canvas layer are no longer clickable. The Canvas layers is blocking the click event. If a click event was added to the Canvas layer, the Canvas click event is fired rather than the point's in the other layer. Points in the other layer that are not within the Canvas layer area work properly. 2. Even when I switch off the Canvas layer with the layerswitcher, the Canvas layer still behaves the same way -- even though the canvas layer can no longer be seen. Who's got an idea of what might be going on here? -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr at mry4n.net Tue Jun 26 11:37:42 2012 From: mr at mry4n.net (Mike Ryan) Date: Tue, 26 Jun 2012 14:37:42 -0400 Subject: [OpenLayers-Users] IE trick-or-treat Message-ID: <4FEA0176.2000908@mry4n.net> I'm using OpenLayers within Drupal (in a Zen subtheme), so this may be more Drupal-y than OL. But for anyone banging their head against IE 9 after they have successfully set things up in Chrome/Firefox the problem could be that IE isn't even looking at the default styles in theme/default/style.css. My specific problem was that all of my Control divs (layerswitcher, etc.) were crammed up in the top left hand corner of my map. In Firefox/Chrome the divs were receiving the styles that put them in the correct corners, but not in IE. I assume those styles get included somewhere in the OL js files, because I don't see a path to style.css in the header. Maybe this is a case of IE js not behaving well? In any case, I manually included the style.css file so a link shows up to it in the header and that fixed the layout. -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From dregade at viewsurf.com Tue Jun 26 14:33:58 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Tue, 26 Jun 2012 23:33:58 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: References: <4FE9B54A.1090201@viewsurf.com> Message-ID: <4FEA2AC6.7030007@viewsurf.com> I get the last OpenLayers master and this feature doesn't work with the following example: http://david.regade.free.fr/openlayers/ Is there something I'm doing wrong ? When setting up a fractional zoom (by clicking on the button for example) Firebug catches an error. Layer is resized but the tiles are not set correctly. David On 26/06/2012 16:32, Andreas Hocevar wrote: > This is supported in OpenLayers master and the upcoming 2.12 release. > > Andreas. > > On Tue, Jun 26, 2012 at 3:12 PM, David R?gade wrote: >> Hi, >> We use openlayers to display large panoramas. We use ZoomifyImage to split >> original image in tiles and Zoomify layer to display these tiles. >> I would like to use fractionalZoom with Zoomify layer but this layer doesn't >> support this feature. The main goal is to able to resize displayed tiles for >> zoom level 3 from 2.5 to 3.4. >> >> Does anyone knows how to do that ? >> >> Thanks in advance >> -- >> David REGADE >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > From neelima.emmani at iictechnologies.com Tue Jun 26 19:33:52 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Wed, 27 Jun 2012 02:33:52 +0000 Subject: [OpenLayers-Users] Highlighting feature Message-ID: Hi Horst, Please add the below piece of code to highlight hovered feature. var hoverControl = new OpenLayers.Control.SelectFeature([layername], { box: true, hover: true, highlightOnly: true, renderIntent: "temporary" } ); map.addControl(hoverControl); hoverControl.activate(); "layername" --- Please replace with ur layer name . "temporary" --- This is the style of feature which will appear on hover. Below is the code related to this. var user_style_tmp= new OpenLayers.Style({strokeColor: "#09DEF2", strokeOpacity: 0.7, strokeWidth: 3, fillColor: '#09DEF2', pointRadius: 2 }); userstyleMap = new OpenLayers.StyleMap({'default':user_style_def, 'temporary': user_style_tmp, 'select': user_style_sel}); With Regards, Neelima Emmani -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil at patient-radio.de Tue Jun 26 21:39:57 2012 From: phil at patient-radio.de (Philipp Austermann) Date: Wed, 27 Jun 2012 06:39:57 +0200 Subject: [OpenLayers-Users] OpenLayers in Android In-Reply-To: <4FE825DC.3000703@patient-radio.de> References: <1304015894910-6314389.post@n2.nabble.com> <005501cc0651$26667bf0$733373d0$@pl> <1340611778187-4983509.post@n6.nabble.com> <1340612403090-4983513.post@n6.nabble.com> <4FE825DC.3000703@patient-radio.de> Message-ID: <4FEA8E9D.20808@patient-radio.de> Hi Jackie, quick update: Though bit later than promised, phonegap-compatible wrapper and usage instructions are online now (as i noticed you're watching the repository you may have already seen it) By any means please, please add your phone here if the polyfill works for you: https://github.com/Philzen/WebView-MultiTouch-Polyfill/wiki/Device-Chart (or file a bug if it doesn't) It's still very new, i only own one android device myself and therefore need any test feedback i can get. Cheers! Phil Am 25.06.2012 10:48, schrieb Philipp Austermann: > Yes it can, just tonight i have successfully made a version that > extends from CordovaWebViewClient instead of WebViewClient, and that > apparently seamlessly integrates with Phonegap. > > Pls have a go at the current application with your device and help > filling the device test chart (or issues list if you encounter one) - > i'll try to push a version for phonegap (incl. inclusion instruction) > tonight. > > Cheers - Phil > > Am 25.06.2012 10:20, schrieb Jackie Ng: >> Interesting! Can this be used in conjunction with PhoneGap (namely our >> derived subclass of DroidGap, which is the entry point activity for a >> PhoneGap android application) ? >> >> - Jackie >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/OpenLayers-in-Android-tp3917561p4983513.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From ahocevar at opengeo.org Tue Jun 26 23:05:34 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 27 Jun 2012 08:05:34 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FEA2AC6.7030007@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> Message-ID: I just see that there is a bug in Zoomify.js, line 225: var z = this.map.getZoom(); We need the integer of getZoom() here instead. Maybe you want to send a pull request with a fix? Andreas. On Tue, Jun 26, 2012 at 11:33 PM, David R?gade wrote: > I get the last OpenLayers master and this feature doesn't work with the > following example: > > http://david.regade.free.fr/openlayers/ > > Is there something I'm doing wrong ? > > When setting up a fractional zoom (by clicking on the button for example) > Firebug catches an error. > Layer is resized but the tiles are not set correctly. > > David > > > On 26/06/2012 16:32, Andreas Hocevar wrote: >> >> This is supported in OpenLayers master and the upcoming 2.12 release. >> >> Andreas. >> >> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >> ?wrote: >>> >>> Hi, >>> We use openlayers to display large panoramas. We use ZoomifyImage to >>> split >>> original image in tiles and Zoomify layer to display these tiles. >>> I would like to use fractionalZoom with Zoomify layer but this layer >>> doesn't >>> support this feature. The main goal is to able to resize displayed tiles >>> for >>> zoom level 3 from 2.5 to 3.4. >>> >>> Does anyone knows how to do that ? >>> >>> Thanks in advance >>> -- >>> David REGADE >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> >> > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From shoppen at bananenhand.de Wed Jun 27 01:42:46 2012 From: shoppen at bananenhand.de (dalori) Date: Wed, 27 Jun 2012 01:42:46 -0700 (PDT) Subject: [OpenLayers-Users] Own map layer in different projection Message-ID: <1340786566385-4984150.post@n6.nabble.com> Hi there, I need some help because I am stupid when it comes to projections. :-( I would like to use OpenLayers with an own tile layer. That's fine so far. There are loads of examples in the web. BUT my tiles aren't in a Spherical Mercator projection, but ? as my GIS colleague says ? in a WGS84 / rectangular projection. The tiles are even bigger with 512x512px. I have found some projection examples, but I have no clue. I used the OpenLayers.Layer.TMS feature which at least showed up with some tiles, but - it was not displaying all of them and - markers for position testing are not positioned correctly. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Own-map-layer-in-different-projection-tp4984150.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gamejihou at hotmail.com Wed Jun 27 01:45:23 2012 From: gamejihou at hotmail.com (Gery .) Date: Wed, 27 Jun 2012 08:45:23 +0000 Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <1340786566385-4984150.post@n6.nabble.com> References: <1340786566385-4984150.post@n6.nabble.com> Message-ID: Hello, and do you have some code about this problem? __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. > Date: Wed, 27 Jun 2012 01:42:46 -0700 > From: shoppen at bananenhand.de > To: openlayers-users at lists.osgeo.org > Subject: [OpenLayers-Users] Own map layer in different projection > > Hi there, I need some help because I am stupid when it comes to projections. > :-( > > I would like to use OpenLayers with an own tile layer. That's fine so far. > There are loads of examples in the web. > BUT my tiles aren't in a Spherical Mercator projection, but ? as my GIS > colleague says ? in a WGS84 / rectangular projection. The tiles are even > bigger with 512x512px. > > I have found some projection examples, but I have no clue. I used the > OpenLayers.Layer.TMS feature which at least showed up with some tiles, but > - it was not displaying all of them and > - markers for position testing are not positioned correctly. > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Own-map-layer-in-different-projection-tp4984150.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From shoppen at bananenhand.de Wed Jun 27 02:18:34 2012 From: shoppen at bananenhand.de (dalori) Date: Wed, 27 Jun 2012 02:18:34 -0700 (PDT) Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: References: <1340786566385-4984150.post@n6.nabble.com> Message-ID: <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> Yes I have. :-) Rectangular tiles
-- View this message in context: http://osgeo-org.1560.n6.nabble.com/Own-map-layer-in-different-projection-tp4984150p4984159.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 27 02:41:04 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 27 Jun 2012 11:41:04 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FEAC9AF.3080805@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> Message-ID: Try Math.floor instead of Math.round - currently the client zoom implementation only supports oversampling, so you need the next smallest zoom level. Andreas. On Wed, Jun 27, 2012 at 10:51 AM, David R?gade wrote: > Hi, > > It can't be so easy. I fixed line 225 with: > ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); > > And another bug appeared line 201, same fix: > ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); > > However on this example, http://david.regade.free.fr/openlayers/, setting > zoom to 3.4 doesn't generate javascript errors anymore but the result isn't > correct. A tile is tried to be drawn and it shouldn't. > > I tried to trace where and why this tile is drawn but I'm to new to > openlayers to find where the problem comes from. > > Regards > David > > On 27/06/2012 08:05, Andreas Hocevar wrote: >> >> I just see that there is a bug in Zoomify.js, line 225: >> >> ? ? ? ? ? ? var z = this.map.getZoom(); >> >> We need the integer of getZoom() here instead. >> >> Maybe you want to send a pull request with a fix? >> >> Andreas. >> >> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >> ?wrote: >>> >>> I get the last OpenLayers master and this feature doesn't work with the >>> following example: >>> >>> http://david.regade.free.fr/openlayers/ >>> >>> Is there something I'm doing wrong ? >>> >>> When setting up a fractional zoom (by clicking on the button for example) >>> Firebug catches an error. >>> Layer is resized but the tiles are not set correctly. >>> >>> David >>> >>> >>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>> >>>> >>>> This is supported in OpenLayers master and the upcoming 2.12 release. >>>> >>>> Andreas. >>>> >>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>> ?wrote: >>>>> >>>>> >>>>> Hi, >>>>> We use openlayers to display large panoramas. We use ZoomifyImage to >>>>> split >>>>> original image in tiles and Zoomify layer to display these tiles. >>>>> I would like to use fractionalZoom with Zoomify layer but this layer >>>>> doesn't >>>>> support this feature. The main goal is to able to resize displayed >>>>> tiles >>>>> for >>>>> zoom level 3 from 2.5 to 3.4. >>>>> >>>>> Does anyone knows how to do that ? >>>>> >>>>> Thanks in advance >>>>> -- >>>>> David REGADE >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> >> > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From dregade at viewsurf.com Wed Jun 27 03:04:26 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Wed, 27 Jun 2012 12:04:26 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> Message-ID: <4FEADAAA.8050805@viewsurf.com> I tried Math.floor and the problem is the same. I'm not sure the problem comes from Math.round/floor because with my example, for an integer zoom value (3 for example), top left displayed tile is 256px width (thanks firebug). For a 3.4 zoom value should the top left tile image width be greater than 256px ? So if the displayed tile images are 256px for 3.4 zoom level, you need more tile to cover the layer extent in resolution associated to this zoom level. That's why on my axample, when you click on the button the displayed tile images are not centered as is it should be and another image tile (that doesn't exist) is required and tried to be drawn. Am I wrong ? Here is a screenshot of what I observed: http://david.regade.free.fr/openlayers/z3.4.jpg Regards David On 27/06/2012 11:41, Andreas Hocevar wrote: > Try Math.floor instead of Math.round - currently the client zoom > implementation only supports oversampling, so you need the next > smallest zoom level. > > Andreas. > > On Wed, Jun 27, 2012 at 10:51 AM, David R?gade wrote: >> Hi, >> >> It can't be so easy. I fixed line 225 with: >> var z = Math.round(this.map.getZoom()); >> >> And another bug appeared line 201, same fix: >> var z = Math.round(this.map.getZoom()); >> >> However on this example, http://david.regade.free.fr/openlayers/, setting >> zoom to 3.4 doesn't generate javascript errors anymore but the result isn't >> correct. A tile is tried to be drawn and it shouldn't. >> >> I tried to trace where and why this tile is drawn but I'm to new to >> openlayers to find where the problem comes from. >> >> Regards >> David >> >> On 27/06/2012 08:05, Andreas Hocevar wrote: >>> >>> I just see that there is a bug in Zoomify.js, line 225: >>> >>> var z = this.map.getZoom(); >>> >>> We need the integer of getZoom() here instead. >>> >>> Maybe you want to send a pull request with a fix? >>> >>> Andreas. >>> >>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>> wrote: >>>> >>>> I get the last OpenLayers master and this feature doesn't work with the >>>> following example: >>>> >>>> http://david.regade.free.fr/openlayers/ >>>> >>>> Is there something I'm doing wrong ? >>>> >>>> When setting up a fractional zoom (by clicking on the button for example) >>>> Firebug catches an error. >>>> Layer is resized but the tiles are not set correctly. >>>> >>>> David >>>> >>>> >>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>> >>>>> >>>>> This is supported in OpenLayers master and the upcoming 2.12 release. >>>>> >>>>> Andreas. >>>>> >>>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>>> wrote: >>>>>> >>>>>> >>>>>> Hi, >>>>>> We use openlayers to display large panoramas. We use ZoomifyImage to >>>>>> split >>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>> I would like to use fractionalZoom with Zoomify layer but this layer >>>>>> doesn't >>>>>> support this feature. The main goal is to able to resize displayed >>>>>> tiles >>>>>> for >>>>>> zoom level 3 from 2.5 to 3.4. >>>>>> >>>>>> Does anyone knows how to do that ? >>>>>> >>>>>> Thanks in advance >>>>>> -- >>>>>> David REGADE >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >>> >>> >> > > > From ahocevar at opengeo.org Wed Jun 27 03:12:51 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 27 Jun 2012 12:12:51 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FEADAAA.8050805@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> <4FEADAAA.8050805@viewsurf.com> Message-ID: I see. So maybe you need to leave the original z assignement as-is (without Math.round or Math.floor), and only change the lines that say this.tierSizeInTiles[z] to something like this.tierSizeInTiles[z|0] (z|0 being a more efficient way of saying Math.floor(z)). Andreas. On Wed, Jun 27, 2012 at 12:04 PM, David R?gade wrote: > I tried Math.floor and the problem is the same. I'm not sure the problem > comes from Math.round/floor because with my example, for an integer zoom > value (3 for example), top left displayed tile is 256px width (thanks > firebug). For a 3.4 zoom value should the top left tile image width be > greater than 256px ? > > So if the displayed tile images are 256px for 3.4 zoom level, you need more > tile to cover the layer extent in resolution associated to this zoom level. > That's why on my axample, when you click on the button the displayed tile > images are not centered as is it should be and another image tile (that > doesn't exist) is required and tried to be drawn. Am I wrong ? > > Here is a screenshot of what I observed: > http://david.regade.free.fr/openlayers/z3.4.jpg > > Regards > David > > > On 27/06/2012 11:41, Andreas Hocevar wrote: >> >> Try Math.floor instead of Math.round - currently the client zoom >> implementation only supports oversampling, so you need the next >> smallest zoom level. >> >> Andreas. >> >> On Wed, Jun 27, 2012 at 10:51 AM, David R?gade >> ?wrote: >>> >>> Hi, >>> >>> It can't be so easy. I fixed line 225 with: >>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>> >>> And another bug appeared line 201, same fix: >>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>> >>> However on this example, http://david.regade.free.fr/openlayers/, setting >>> zoom to 3.4 doesn't generate javascript errors anymore but the result >>> isn't >>> correct. A tile is tried to be drawn and it shouldn't. >>> >>> I tried to trace where and why this tile is drawn but I'm to new to >>> openlayers to find where the problem comes from. >>> >>> Regards >>> David >>> >>> On 27/06/2012 08:05, Andreas Hocevar wrote: >>>> >>>> >>>> I just see that there is a bug in Zoomify.js, line 225: >>>> >>>> ? ? ? ? ? ? var z = this.map.getZoom(); >>>> >>>> We need the integer of getZoom() here instead. >>>> >>>> Maybe you want to send a pull request with a fix? >>>> >>>> Andreas. >>>> >>>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>>> ?wrote: >>>>> >>>>> >>>>> I get the last OpenLayers master and this feature doesn't work with the >>>>> following example: >>>>> >>>>> http://david.regade.free.fr/openlayers/ >>>>> >>>>> Is there something I'm doing wrong ? >>>>> >>>>> When setting up a fractional zoom (by clicking on the button for >>>>> example) >>>>> Firebug catches an error. >>>>> Layer is resized but the tiles are not set correctly. >>>>> >>>>> David >>>>> >>>>> >>>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>>> >>>>>> >>>>>> >>>>>> This is supported in OpenLayers master and the upcoming 2.12 release. >>>>>> >>>>>> Andreas. >>>>>> >>>>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>>>> ?wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>> We use openlayers to display large panoramas. We use ZoomifyImage to >>>>>>> split >>>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>>> I would like to use fractionalZoom with Zoomify layer but this layer >>>>>>> doesn't >>>>>>> support this feature. The main goal is to able to resize displayed >>>>>>> tiles >>>>>>> for >>>>>>> zoom level 3 from 2.5 to 3.4. >>>>>>> >>>>>>> Does anyone knows how to do that ? >>>>>>> >>>>>>> Thanks in advance >>>>>>> -- >>>>>>> David REGADE >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>>> >>>> >>>> >>> >> >> >> > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From vesa.meskanen at logica.com Wed Jun 27 03:04:48 2012 From: vesa.meskanen at logica.com (Meskanen, Vesa) Date: Wed, 27 Jun 2012 10:04:48 +0000 Subject: [OpenLayers-Users] control event processing conflicts? Message-ID: <1DE3CF1F36C65E4698346A28743D61CDF358@SE-EX021.groupinfra.com> Hi, I use the following setup of controls, registered in this order: - dragFeature to move vectors around - selectFeature to activate vectors - the usual mouse Navigation control - custom Click hander for creating vectors with a single click Everything works fine, but as soon as I pan the map with a mouse drag, selectFeature stops working. It's onSelect callback still gets called, but the clicked vector does not get selected (no highlighting, selectedFeatures array remains empty). Any ideas what is causing this? Kind regards, Vesa Think green - keep it on the screen. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.bleau at gmail.com Wed Jun 27 04:12:03 2012 From: christian.bleau at gmail.com (christian bleau) Date: Wed, 27 Jun 2012 04:12:03 -0700 (PDT) Subject: [OpenLayers-Users] How get gpx label? Message-ID: <1340795523508-4984193.post@n6.nabble.com> Hi, Is there someone who can help me to understand how can I get the label "name" or "others" from gpx's file? I try this code without succes ;( var context = { pointLabel: function(feature) { return feature.attributes['name'] + " (" + feature.attributes['name'] + ")"; }}; var lgpx = new OpenLayers.Layer.GML("GPX", "http:// ****** test_gpx.gpx", { format: OpenLayers.Format.GPX, style: { strokeColor: "green", fillColor: "orange", graphicName: "triangle", label: "${name}", pointRadius: 6, strokeWidth: 2, strokeOpacity: 0.5, fillOpacity: 0.5}, context: context, projection: new OpenLayers.Projection("EPSG:4326") }); map.addLayer(lgpx); If you have any examples or ways. Thank a lot. Christian -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From dregade at viewsurf.com Wed Jun 27 01:51:59 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Wed, 27 Jun 2012 10:51:59 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> Message-ID: <4FEAC9AF.3080805@viewsurf.com> Hi, It can't be so easy. I fixed line 225 with: var z = Math.round(this.map.getZoom()); And another bug appeared line 201, same fix: var z = Math.round(this.map.getZoom()); However on this example, http://david.regade.free.fr/openlayers/, setting zoom to 3.4 doesn't generate javascript errors anymore but the result isn't correct. A tile is tried to be drawn and it shouldn't. I tried to trace where and why this tile is drawn but I'm to new to openlayers to find where the problem comes from. Regards David On 27/06/2012 08:05, Andreas Hocevar wrote: > I just see that there is a bug in Zoomify.js, line 225: > > var z = this.map.getZoom(); > > We need the integer of getZoom() here instead. > > Maybe you want to send a pull request with a fix? > > Andreas. > > On Tue, Jun 26, 2012 at 11:33 PM, David R?gade wrote: >> I get the last OpenLayers master and this feature doesn't work with the >> following example: >> >> http://david.regade.free.fr/openlayers/ >> >> Is there something I'm doing wrong ? >> >> When setting up a fractional zoom (by clicking on the button for example) >> Firebug catches an error. >> Layer is resized but the tiles are not set correctly. >> >> David >> >> >> On 26/06/2012 16:32, Andreas Hocevar wrote: >>> >>> This is supported in OpenLayers master and the upcoming 2.12 release. >>> >>> Andreas. >>> >>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>> wrote: >>>> >>>> Hi, >>>> We use openlayers to display large panoramas. We use ZoomifyImage to >>>> split >>>> original image in tiles and Zoomify layer to display these tiles. >>>> I would like to use fractionalZoom with Zoomify layer but this layer >>>> doesn't >>>> support this feature. The main goal is to able to resize displayed tiles >>>> for >>>> zoom level 3 from 2.5 to 3.4. >>>> >>>> Does anyone knows how to do that ? >>>> >>>> Thanks in advance >>>> -- >>>> David REGADE >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >>> >>> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > From francescogeri at yahoo.it Wed Jun 27 05:00:41 2012 From: francescogeri at yahoo.it (Francesco Geri) Date: Wed, 27 Jun 2012 13:00:41 +0100 (BST) Subject: [OpenLayers-Users] select by id or fid Message-ID: <1340798441.75726.YahooMailNeo@web29306.mail.ird.yahoo.com> Hello, I try to automatically select a feature in a vector layer based on its fid (is a gml vector layer). An apparently simple task. I try with: ??????????????????????? feature = layer.getFeatureByFid(fidselect); select_feature.select(feature); but firebug report "feature is null). Where am I going wrong? Thanks! Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From dregade at viewsurf.com Wed Jun 27 05:46:11 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Wed, 27 Jun 2012 14:46:11 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> <4FEADAAA.8050805@viewsurf.com> Message-ID: <4FEB0093.8050404@viewsurf.com> I tried this solution too and it didn't work. I had a look to this example: http://openlayers.org/dev/examples/fractional-zoom.html In this example tile size is allways 256x256 whatever the zoom level. But with zoomify it can't be allways 256x256 because tiles have to be streched or shrinked according to zoom level. zoomify relies on direct tile image url , not a mapserver like the example above. These direct images urls have fixed dimensions and represent allways the same "world region". That's why I can't figure out fractionalZoom can work with Zoomify layer if the displayed tile have allways the same size. A solution could be to setup the integer zoom for the layer and scale the layer (like transformDiv() does) to obtain the good result. Regards David On 27/06/2012 12:12, Andreas Hocevar wrote: > I see. So maybe you need to leave the original z assignement as-is > (without Math.round or Math.floor), and only change the lines that say > > this.tierSizeInTiles[z] > > to something like > > this.tierSizeInTiles[z|0] > > (z|0 being a more efficient way of saying Math.floor(z)). > > Andreas. > > On Wed, Jun 27, 2012 at 12:04 PM, David R?gade wrote: >> I tried Math.floor and the problem is the same. I'm not sure the problem >> comes from Math.round/floor because with my example, for an integer zoom >> value (3 for example), top left displayed tile is 256px width (thanks >> firebug). For a 3.4 zoom value should the top left tile image width be >> greater than 256px ? >> >> So if the displayed tile images are 256px for 3.4 zoom level, you need more >> tile to cover the layer extent in resolution associated to this zoom level. >> That's why on my axample, when you click on the button the displayed tile >> images are not centered as is it should be and another image tile (that >> doesn't exist) is required and tried to be drawn. Am I wrong ? >> >> Here is a screenshot of what I observed: >> http://david.regade.free.fr/openlayers/z3.4.jpg >> >> Regards >> David >> >> >> On 27/06/2012 11:41, Andreas Hocevar wrote: >>> >>> Try Math.floor instead of Math.round - currently the client zoom >>> implementation only supports oversampling, so you need the next >>> smallest zoom level. >>> >>> Andreas. >>> >>> On Wed, Jun 27, 2012 at 10:51 AM, David R?gade >>> wrote: >>>> >>>> Hi, >>>> >>>> It can't be so easy. I fixed line 225 with: >>>> var z = Math.round(this.map.getZoom()); >>>> >>>> And another bug appeared line 201, same fix: >>>> var z = Math.round(this.map.getZoom()); >>>> >>>> However on this example, http://david.regade.free.fr/openlayers/, setting >>>> zoom to 3.4 doesn't generate javascript errors anymore but the result >>>> isn't >>>> correct. A tile is tried to be drawn and it shouldn't. >>>> >>>> I tried to trace where and why this tile is drawn but I'm to new to >>>> openlayers to find where the problem comes from. >>>> >>>> Regards >>>> David >>>> >>>> On 27/06/2012 08:05, Andreas Hocevar wrote: >>>>> >>>>> >>>>> I just see that there is a bug in Zoomify.js, line 225: >>>>> >>>>> var z = this.map.getZoom(); >>>>> >>>>> We need the integer of getZoom() here instead. >>>>> >>>>> Maybe you want to send a pull request with a fix? >>>>> >>>>> Andreas. >>>>> >>>>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>>>> wrote: >>>>>> >>>>>> >>>>>> I get the last OpenLayers master and this feature doesn't work with the >>>>>> following example: >>>>>> >>>>>> http://david.regade.free.fr/openlayers/ >>>>>> >>>>>> Is there something I'm doing wrong ? >>>>>> >>>>>> When setting up a fractional zoom (by clicking on the button for >>>>>> example) >>>>>> Firebug catches an error. >>>>>> Layer is resized but the tiles are not set correctly. >>>>>> >>>>>> David >>>>>> >>>>>> >>>>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> This is supported in OpenLayers master and the upcoming 2.12 release. >>>>>>> >>>>>>> Andreas. >>>>>>> >>>>>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>>>>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Hi, >>>>>>>> We use openlayers to display large panoramas. We use ZoomifyImage to >>>>>>>> split >>>>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>>>> I would like to use fractionalZoom with Zoomify layer but this layer >>>>>>>> doesn't >>>>>>>> support this feature. The main goal is to able to resize displayed >>>>>>>> tiles >>>>>>>> for >>>>>>>> zoom level 3 from 2.5 to 3.4. >>>>>>>> >>>>>>>> Does anyone knows how to do that ? >>>>>>>> >>>>>>>> Thanks in advance >>>>>>>> -- >>>>>>>> David REGADE >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list >>>>>>>> Users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >>> >> > > > From ahocevar at opengeo.org Wed Jun 27 06:00:14 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 27 Jun 2012 15:00:14 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FEB0093.8050404@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> <4FEADAAA.8050805@viewsurf.com> <4FEB0093.8050404@viewsurf.com> Message-ID: To achieve this, it should be enough to configure your layer's serverResolutions with the same array that you have set for resolutions. Andreas. On Wed, Jun 27, 2012 at 2:46 PM, David R?gade wrote: > I tried this solution too and it didn't work. I had a look to this example: > > http://openlayers.org/dev/examples/fractional-zoom.html > > In this example tile size is allways 256x256 whatever the zoom level. But > with zoomify it can't be allways 256x256 because tiles have to be streched > or shrinked according to zoom level. zoomify relies on direct tile image url > , not a mapserver like the example above. These direct images urls have > fixed dimensions and represent allways the same "world region". > That's why I can't figure out fractionalZoom can work with Zoomify layer if > the displayed tile have allways the same size. > > A solution could be to setup the integer zoom for the layer and scale the > layer (like transformDiv() does) to obtain the good result. > > Regards > David > > > On 27/06/2012 12:12, Andreas Hocevar wrote: >> >> I see. So maybe you need to leave the original z assignement as-is >> (without Math.round or Math.floor), and only change the lines that say >> >> this.tierSizeInTiles[z] >> >> to something like >> >> this.tierSizeInTiles[z|0] >> >> (z|0 being a more efficient way of saying Math.floor(z)). >> >> Andreas. >> >> On Wed, Jun 27, 2012 at 12:04 PM, David R?gade >> ?wrote: >>> >>> I tried Math.floor and the problem is the same. I'm not sure the problem >>> comes from Math.round/floor because with my example, for an integer zoom >>> value (3 for example), top left displayed tile is 256px width (thanks >>> firebug). For a 3.4 zoom value should the top left tile image width be >>> greater than 256px ? >>> >>> So if the displayed tile images are 256px for 3.4 zoom level, you need >>> more >>> tile to cover the layer extent in resolution associated to this zoom >>> level. >>> That's why on my axample, when you click on the button the displayed tile >>> images are not centered as is it should be and another image tile (that >>> doesn't exist) is required and tried to be drawn. Am I wrong ? >>> >>> Here is a screenshot of what I observed: >>> http://david.regade.free.fr/openlayers/z3.4.jpg >>> >>> Regards >>> David >>> >>> >>> On 27/06/2012 11:41, Andreas Hocevar wrote: >>>> >>>> >>>> Try Math.floor instead of Math.round - currently the client zoom >>>> implementation only supports oversampling, so you need the next >>>> smallest zoom level. >>>> >>>> Andreas. >>>> >>>> On Wed, Jun 27, 2012 at 10:51 AM, David R?gade >>>> ?wrote: >>>>> >>>>> >>>>> Hi, >>>>> >>>>> It can't be so easy. I fixed line 225 with: >>>>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>>>> >>>>> And another bug appeared line 201, same fix: >>>>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>>>> >>>>> However on this example, http://david.regade.free.fr/openlayers/, >>>>> setting >>>>> zoom to 3.4 doesn't generate javascript errors anymore but the result >>>>> isn't >>>>> correct. A tile is tried to be drawn and it shouldn't. >>>>> >>>>> I tried to trace where and why this tile is drawn but I'm to new to >>>>> openlayers to find where the problem comes from. >>>>> >>>>> Regards >>>>> David >>>>> >>>>> On 27/06/2012 08:05, Andreas Hocevar wrote: >>>>>> >>>>>> >>>>>> >>>>>> I just see that there is a bug in Zoomify.js, line 225: >>>>>> >>>>>> ? ? ? ? ? ? var z = this.map.getZoom(); >>>>>> >>>>>> We need the integer of getZoom() here instead. >>>>>> >>>>>> Maybe you want to send a pull request with a fix? >>>>>> >>>>>> Andreas. >>>>>> >>>>>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>>>>> ?wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> I get the last OpenLayers master and this feature doesn't work with >>>>>>> the >>>>>>> following example: >>>>>>> >>>>>>> http://david.regade.free.fr/openlayers/ >>>>>>> >>>>>>> Is there something I'm doing wrong ? >>>>>>> >>>>>>> When setting up a fractional zoom (by clicking on the button for >>>>>>> example) >>>>>>> Firebug catches an error. >>>>>>> Layer is resized but the tiles are not set correctly. >>>>>>> >>>>>>> David >>>>>>> >>>>>>> >>>>>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> This is supported in OpenLayers master and the upcoming 2.12 >>>>>>>> release. >>>>>>>> >>>>>>>> Andreas. >>>>>>>> >>>>>>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>>>>>> ?wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> We use openlayers to display large panoramas. We use ZoomifyImage >>>>>>>>> to >>>>>>>>> split >>>>>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>>>>> I would like to use fractionalZoom with Zoomify layer but this >>>>>>>>> layer >>>>>>>>> doesn't >>>>>>>>> support this feature. The main goal is to able to resize displayed >>>>>>>>> tiles >>>>>>>>> for >>>>>>>>> zoom level 3 from 2.5 to 3.4. >>>>>>>>> >>>>>>>>> Does anyone knows how to do that ? >>>>>>>>> >>>>>>>>> Thanks in advance >>>>>>>>> -- >>>>>>>>> David REGADE >>>>>>>>> _______________________________________________ >>>>>>>>> Users mailing list >>>>>>>>> Users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> >>> >> >> >> > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From simon.stefan at gmail.com Wed Jun 27 06:00:29 2012 From: simon.stefan at gmail.com (Stefan Simon) Date: Wed, 27 Jun 2012 16:00:29 +0300 Subject: [OpenLayers-Users] How get gpx label? In-Reply-To: <1340795523508-4984193.post@n6.nabble.com> References: <1340795523508-4984193.post@n6.nabble.com> Message-ID: Hello. This is my code: var gpxStyles = new OpenLayers.StyleMap({ "default": new OpenLayers.Style({ pointRadius: "5", // sized according to type attribute label: "${name}", labelAlign: 'cb', fontSize: 9, fontFamily: "Arial", fontColor: "red", labelYOffset: 6, fillColor: "brown", strokeColor: "yellow", strokeWidth: 2, strokeOpacity: 1 }), "select": new OpenLayers.Style({ fillColor: "#66ccff", strokeColor: "#3399ff", graphicZIndex: 2 }) }); var __gpx_layer = new OpenLayers.Layer.Vector("gpx_layer", { protocol: new OpenLayers.Protocol.HTTP({ url: "path_to_gpx/gpx_file.gpx", format: new OpenLayers.Format.GPX({extractWaypoints: true, extractRoutes: false, extractAttributes: true}) }), strategies: [new OpenLayers.Strategy.Fixed()], visibility: false, styleMap: gpxStyles, projection: new OpenLayers.Projection("EPSG:4326") }); On Wed, Jun 27, 2012 at 2:12 PM, christian bleau wrote: > Hi, > > Is there someone who can help me to understand how can I get the label > "name" or "others" from gpx's file? > > I try this code without succes ;( > > var context = { > pointLabel: function(feature) { > return feature.attributes['name'] + " (" + > feature.attributes['name'] + ")"; > }}; > > var lgpx = new OpenLayers.Layer.GML("GPX", "http:// ****** test_gpx.gpx", > { > format: OpenLayers.Format.GPX, > style: { > strokeColor: "green", > fillColor: "orange", > graphicName: "triangle", > label: "${name}", > pointRadius: 6, > strokeWidth: 2, > strokeOpacity: 0.5, > fillOpacity: 0.5}, > context: context, > projection: new OpenLayers.Projection("EPSG:4326") > }); > map.addLayer(lgpx); > > If you have any examples or ways. > > Thank a lot. > > Christian > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- ______________ Simon Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dregade at viewsurf.com Wed Jun 27 07:15:17 2012 From: dregade at viewsurf.com (=?ISO-8859-1?Q?David_R=E9gade?=) Date: Wed, 27 Jun 2012 16:15:17 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> <4FEADAAA.8050805@viewsurf.com> <4FEB0093.8050404@viewsurf.com> Message-ID: <4FEB1575.1040705@viewsurf.com> Ok, it works now. To do that I configured my layer's serverResolutions with the same array I set up for resolutions. Only with this trick tiles are not correctly displayed because Zoomify functions getURL and getImageSize use: var res = this.map.getResolution(); ... var z = this.map.getZoom(); instead of: var res = this.getServerResolution(); ... var z = this.getZoomForResolution( res ); With this patch and layer correct configuration, fractionalZoom works for me with Zoomify layer. Do you think this patch is correct or should I take care of some specials cases ? Regards David On 27/06/2012 15:00, Andreas Hocevar wrote: > To achieve this, it should be enough to configure your layer's > serverResolutions with the same array that you have set for > resolutions. > > Andreas. > > On Wed, Jun 27, 2012 at 2:46 PM, David R?gade wrote: >> I tried this solution too and it didn't work. I had a look to this example: >> >> http://openlayers.org/dev/examples/fractional-zoom.html >> >> In this example tile size is allways 256x256 whatever the zoom level. But >> with zoomify it can't be allways 256x256 because tiles have to be streched >> or shrinked according to zoom level. zoomify relies on direct tile image url >> , not a mapserver like the example above. These direct images urls have >> fixed dimensions and represent allways the same "world region". >> That's why I can't figure out fractionalZoom can work with Zoomify layer if >> the displayed tile have allways the same size. >> >> A solution could be to setup the integer zoom for the layer and scale the >> layer (like transformDiv() does) to obtain the good result. >> >> Regards >> David >> >> >> On 27/06/2012 12:12, Andreas Hocevar wrote: >>> >>> I see. So maybe you need to leave the original z assignement as-is >>> (without Math.round or Math.floor), and only change the lines that say >>> >>> this.tierSizeInTiles[z] >>> >>> to something like >>> >>> this.tierSizeInTiles[z|0] >>> >>> (z|0 being a more efficient way of saying Math.floor(z)). >>> >>> Andreas. >>> >>> On Wed, Jun 27, 2012 at 12:04 PM, David R?gade >>> wrote: >>>> >>>> I tried Math.floor and the problem is the same. I'm not sure the problem >>>> comes from Math.round/floor because with my example, for an integer zoom >>>> value (3 for example), top left displayed tile is 256px width (thanks >>>> firebug). For a 3.4 zoom value should the top left tile image width be >>>> greater than 256px ? >>>> >>>> So if the displayed tile images are 256px for 3.4 zoom level, you need >>>> more >>>> tile to cover the layer extent in resolution associated to this zoom >>>> level. >>>> That's why on my axample, when you click on the button the displayed tile >>>> images are not centered as is it should be and another image tile (that >>>> doesn't exist) is required and tried to be drawn. Am I wrong ? >>>> >>>> Here is a screenshot of what I observed: >>>> http://david.regade.free.fr/openlayers/z3.4.jpg >>>> >>>> Regards >>>> David >>>> >>>> >>>> On 27/06/2012 11:41, Andreas Hocevar wrote: >>>>> >>>>> >>>>> Try Math.floor instead of Math.round - currently the client zoom >>>>> implementation only supports oversampling, so you need the next >>>>> smallest zoom level. >>>>> >>>>> Andreas. >>>>> >>>>> On Wed, Jun 27, 2012 at 10:51 AM, David R?gade >>>>> wrote: >>>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> It can't be so easy. I fixed line 225 with: >>>>>> var z = Math.round(this.map.getZoom()); >>>>>> >>>>>> And another bug appeared line 201, same fix: >>>>>> var z = Math.round(this.map.getZoom()); >>>>>> >>>>>> However on this example, http://david.regade.free.fr/openlayers/, >>>>>> setting >>>>>> zoom to 3.4 doesn't generate javascript errors anymore but the result >>>>>> isn't >>>>>> correct. A tile is tried to be drawn and it shouldn't. >>>>>> >>>>>> I tried to trace where and why this tile is drawn but I'm to new to >>>>>> openlayers to find where the problem comes from. >>>>>> >>>>>> Regards >>>>>> David >>>>>> >>>>>> On 27/06/2012 08:05, Andreas Hocevar wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> I just see that there is a bug in Zoomify.js, line 225: >>>>>>> >>>>>>> var z = this.map.getZoom(); >>>>>>> >>>>>>> We need the integer of getZoom() here instead. >>>>>>> >>>>>>> Maybe you want to send a pull request with a fix? >>>>>>> >>>>>>> Andreas. >>>>>>> >>>>>>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>>>>>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> I get the last OpenLayers master and this feature doesn't work with >>>>>>>> the >>>>>>>> following example: >>>>>>>> >>>>>>>> http://david.regade.free.fr/openlayers/ >>>>>>>> >>>>>>>> Is there something I'm doing wrong ? >>>>>>>> >>>>>>>> When setting up a fractional zoom (by clicking on the button for >>>>>>>> example) >>>>>>>> Firebug catches an error. >>>>>>>> Layer is resized but the tiles are not set correctly. >>>>>>>> >>>>>>>> David >>>>>>>> >>>>>>>> >>>>>>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> This is supported in OpenLayers master and the upcoming 2.12 >>>>>>>>> release. >>>>>>>>> >>>>>>>>> Andreas. >>>>>>>>> >>>>>>>>> On Tue, Jun 26, 2012 at 3:12 PM, David R?gade >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> We use openlayers to display large panoramas. We use ZoomifyImage >>>>>>>>>> to >>>>>>>>>> split >>>>>>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>>>>>> I would like to use fractionalZoom with Zoomify layer but this >>>>>>>>>> layer >>>>>>>>>> doesn't >>>>>>>>>> support this feature. The main goal is to able to resize displayed >>>>>>>>>> tiles >>>>>>>>>> for >>>>>>>>>> zoom level 3 from 2.5 to 3.4. >>>>>>>>>> >>>>>>>>>> Does anyone knows how to do that ? >>>>>>>>>> >>>>>>>>>> Thanks in advance >>>>>>>>>> -- >>>>>>>>>> David REGADE >>>>>>>>>> _______________________________________________ >>>>>>>>>> Users mailing list >>>>>>>>>> Users at lists.osgeo.org >>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list >>>>>>>> Users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >>> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > From olivier at geomatic.ch Wed Jun 27 07:23:23 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Wed, 27 Jun 2012 16:23:23 +0200 Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> References: <1340786566385-4984150.post@n6.nabble.com> <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> Message-ID: <733475EB-2D77-42CA-9EB8-5FCD3A2F66BE@geomatic.ch> Hi dalori, For your cache I don't know what is the problem but for your marker I think you just inverted the lon/lat value. Le 27 juin 2012 ? 11:18, dalori a ?crit : > Yes I have. :-) > > > > > Rectangular tiles > > > > > >
> > > > View this message in context: Re: Own map layer in different projection > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From ahocevar at opengeo.org Wed Jun 27 07:25:07 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 27 Jun 2012 16:25:07 +0200 Subject: [OpenLayers-Users] Zoomify and fractional zoom In-Reply-To: <4FEB1575.1040705@viewsurf.com> References: <4FE9B54A.1090201@viewsurf.com> <4FEA2AC6.7030007@viewsurf.com> <4FEAC9AF.3080805@viewsurf.com> <4FEADAAA.8050805@viewsurf.com> <4FEB0093.8050404@viewsurf.com> <4FEB1575.1040705@viewsurf.com> Message-ID: This sounds sane at first glance. If you can send a pull request with this patch, it will be easier to verify if tests still pass and examples still work. Thanks, Andreas. On Wed, Jun 27, 2012 at 4:15 PM, David R?gade wrote: > Ok, it works now. > > To do that I configured my layer's serverResolutions with the same array I > set up for resolutions. > Only with this trick tiles are not correctly displayed because Zoomify > functions getURL and getImageSize use: > > var res = this.map.getResolution(); > ... > var z = this.map.getZoom(); > > instead of: > > var res = this.getServerResolution(); > ... > var z = this.getZoomForResolution( res ); > > > With this patch and layer correct configuration, fractionalZoom works for me > with Zoomify layer. > > Do you think this patch is correct or should I take care of some specials > cases ? > > Regards > David > > > On 27/06/2012 15:00, Andreas Hocevar wrote: >> >> To achieve this, it should be enough to configure your layer's >> serverResolutions with the same array that you have set for >> resolutions. >> >> Andreas. >> >> On Wed, Jun 27, 2012 at 2:46 PM, David R?gade >> ?wrote: >>> >>> I tried this solution too and it didn't work. I had a look to this >>> example: >>> >>> http://openlayers.org/dev/examples/fractional-zoom.html >>> >>> In this example tile size is allways 256x256 whatever the zoom level. But >>> with zoomify it can't be allways 256x256 because tiles have to be >>> streched >>> or shrinked according to zoom level. zoomify relies on direct tile image >>> url >>> , not a mapserver like the example above. These direct images urls have >>> fixed dimensions and represent allways the same "world region". >>> That's why I can't figure out fractionalZoom can work with Zoomify layer >>> if >>> the displayed tile have allways the same size. >>> >>> A solution could be to setup the integer zoom for the layer and scale the >>> layer (like transformDiv() does) to obtain the good result. >>> >>> Regards >>> David >>> >>> >>> On 27/06/2012 12:12, Andreas Hocevar wrote: >>>> >>>> >>>> I see. So maybe you need to leave the original z assignement as-is >>>> (without Math.round or Math.floor), and only change the lines that say >>>> >>>> this.tierSizeInTiles[z] >>>> >>>> to something like >>>> >>>> this.tierSizeInTiles[z|0] >>>> >>>> (z|0 being a more efficient way of saying Math.floor(z)). >>>> >>>> Andreas. >>>> >>>> On Wed, Jun 27, 2012 at 12:04 PM, David R?gade >>>> ?wrote: >>>>> >>>>> >>>>> I tried Math.floor and the problem is the same. I'm not sure the >>>>> problem >>>>> comes from Math.round/floor because with my example, for an integer >>>>> zoom >>>>> value (3 for example), top left displayed tile is 256px width (thanks >>>>> firebug). For a 3.4 zoom value should the top left tile image width be >>>>> greater than 256px ? >>>>> >>>>> So if the displayed tile images are 256px for 3.4 zoom level, you need >>>>> more >>>>> tile to cover the layer extent in resolution associated to this zoom >>>>> level. >>>>> That's why on my axample, when you click on the button the displayed >>>>> tile >>>>> images are not centered as is it should be and another image tile (that >>>>> doesn't exist) is required and tried to be drawn. Am I wrong ? >>>>> >>>>> Here is a screenshot of what I observed: >>>>> http://david.regade.free.fr/openlayers/z3.4.jpg >>>>> >>>>> Regards >>>>> David >>>>> >>>>> >>>>> On 27/06/2012 11:41, Andreas Hocevar wrote: >>>>>> >>>>>> >>>>>> >>>>>> Try Math.floor instead of Math.round - currently the client zoom >>>>>> implementation only supports oversampling, so you need the next >>>>>> smallest zoom level. >>>>>> >>>>>> Andreas. >>>>>> >>>>>> On Wed, Jun 27, 2012 at 10:51 AM, David R?gade >>>>>> ?wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> It can't be so easy. I fixed line 225 with: >>>>>>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>>>>>> >>>>>>> And another bug appeared line 201, same fix: >>>>>>> ? ? ? ? ? ? var z = Math.round(this.map.getZoom()); >>>>>>> >>>>>>> However on this example, http://david.regade.free.fr/openlayers/, >>>>>>> setting >>>>>>> zoom to 3.4 doesn't generate javascript errors anymore but the result >>>>>>> isn't >>>>>>> correct. A tile is tried to be drawn and it shouldn't. >>>>>>> >>>>>>> I tried to trace where and why this tile is drawn but I'm to new to >>>>>>> openlayers to find where the problem comes from. >>>>>>> >>>>>>> Regards >>>>>>> David >>>>>>> >>>>>>> On 27/06/2012 08:05, Andreas Hocevar wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> I just see that there is a bug in Zoomify.js, line 225: >>>>>>>> >>>>>>>> ? ? ? ? ? ? var z = this.map.getZoom(); >>>>>>>> >>>>>>>> We need the integer of getZoom() here instead. >>>>>>>> >>>>>>>> Maybe you want to send a pull request with a fix? >>>>>>>> >>>>>>>> Andreas. >>>>>>>> >>>>>>>> On Tue, Jun 26, 2012 at 11:33 PM, David R?gade >>>>>>>> ?wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> I get the last OpenLayers master and this feature doesn't work with >>>>>>>>> the >>>>>>>>> following example: >>>>>>>>> >>>>>>>>> http://david.regade.free.fr/openlayers/ >>>>>>>>> >>>>>>>>> Is there something I'm doing wrong ? >>>>>>>>> >>>>>>>>> When setting up a fractional zoom (by clicking on the button for >>>>>>>>> example) >>>>>>>>> Firebug catches an error. >>>>>>>>> Layer is resized but the tiles are not set correctly. >>>>>>>>> >>>>>>>>> David >>>>>>>>> >>>>>>>>> >>>>>>>>> On 26/06/2012 16:32, Andreas Hocevar wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> This is supported in OpenLayers master and the upcoming 2.12 >>>>>>>>>> release. >>>>>>>>>> >>>>>>>>>> Andreas. >>>>>>>>>> >>>>>>>>>> On Tue, Jun 26, 2012 at 3:12 PM, David >>>>>>>>>> R?gade >>>>>>>>>> ?wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> We use openlayers to display large panoramas. We use ZoomifyImage >>>>>>>>>>> to >>>>>>>>>>> split >>>>>>>>>>> original image in tiles and Zoomify layer to display these tiles. >>>>>>>>>>> I would like to use fractionalZoom with Zoomify layer but this >>>>>>>>>>> layer >>>>>>>>>>> doesn't >>>>>>>>>>> support this feature. The main goal is to able to resize >>>>>>>>>>> displayed >>>>>>>>>>> tiles >>>>>>>>>>> for >>>>>>>>>>> zoom level 3 from 2.5 to 3.4. >>>>>>>>>>> >>>>>>>>>>> Does anyone knows how to do that ? >>>>>>>>>>> >>>>>>>>>>> Thanks in advance >>>>>>>>>>> -- >>>>>>>>>>> David REGADE >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Users mailing list >>>>>>>>>>> Users at lists.osgeo.org >>>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Users mailing list >>>>>>>>> Users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> >> > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From saikouni at yahoo.com Wed Jun 27 09:35:39 2012 From: saikouni at yahoo.com (pov) Date: Wed, 27 Jun 2012 09:35:39 -0700 (PDT) Subject: [OpenLayers-Users] Vector layer polygon doesn't move in-synch with Google V3 baselayers Message-ID: <1340814939314-4984281.post@n6.nabble.com> When a polygon is drawn on the map and the map is dragged, the position of the polygon relative to the GM V3 base changes. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Vector-layer-polygon-doesn-t-move-in-synch-with-Google-V3-baselayers-tp4984281.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From christian.bleau at gmail.com Wed Jun 27 11:28:55 2012 From: christian.bleau at gmail.com (Christian Bleau) Date: Wed, 27 Jun 2012 20:28:55 +0200 Subject: [OpenLayers-Users] How get gpx label? In-Reply-To: References: <1340795523508-4984193.post@n6.nabble.com> Message-ID: <58A153C2-CA62-4AA9-89B7-D72A839623CE@gmail.com> Hi Stefan, It's work very well :-)))))) I'm glad, I'm so glad. Many Thanks. Christian Le 27 juin 2012 ? 15:00, Stefan Simon a ?crit : > Hello. > > This is my code: > var gpxStyles = new OpenLayers.StyleMap({ > "default": new OpenLayers.Style({ > pointRadius: "5", // sized according to type attribute > label: "${name}", > labelAlign: 'cb', > fontSize: 9, > fontFamily: "Arial", > fontColor: "red", > labelYOffset: 6, > fillColor: "brown", > strokeColor: "yellow", > strokeWidth: 2, > strokeOpacity: 1 > }), > "select": new OpenLayers.Style({ > fillColor: "#66ccff", > strokeColor: "#3399ff", > graphicZIndex: 2 > }) > }); > var __gpx_layer = new OpenLayers.Layer.Vector("gpx_layer", { > protocol: new OpenLayers.Protocol.HTTP({ > url: "path_to_gpx/gpx_file.gpx", > format: new OpenLayers.Format.GPX({extractWaypoints: true, extractRoutes: false, extractAttributes: true}) > }), > strategies: [new OpenLayers.Strategy.Fixed()], > visibility: false, > styleMap: gpxStyles, > projection: new OpenLayers.Projection("EPSG:4326") > }); > > > On Wed, Jun 27, 2012 at 2:12 PM, christian bleau wrote: > Hi, > > Is there someone who can help me to understand how can I get the label > "name" or "others" from gpx's file? > > I try this code without succes ;( > > var context = { > pointLabel: function(feature) { > return feature.attributes['name'] + " (" + > feature.attributes['name'] + ")"; > }}; > > var lgpx = new OpenLayers.Layer.GML("GPX", "http:// ****** test_gpx.gpx", { > format: OpenLayers.Format.GPX, > style: { > strokeColor: "green", > fillColor: "orange", > graphicName: "triangle", > label: "${name}", > pointRadius: 6, > strokeWidth: 2, > strokeOpacity: 0.5, > fillOpacity: 0.5}, > context: context, > projection: new OpenLayers.Projection("EPSG:4326") > }); > map.addLayer(lgpx); > > If you have any examples or ways. > > Thank a lot. > > Christian > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > ______________ > Simon Stefan Christian Pof at Bleau -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.bleau at gmail.com Wed Jun 27 11:29:24 2012 From: christian.bleau at gmail.com (christian bleau) Date: Wed, 27 Jun 2012 11:29:24 -0700 (PDT) Subject: [OpenLayers-Users] How get gpx label? In-Reply-To: References: <1340795523508-4984193.post@n6.nabble.com> Message-ID: Hi Stefan, It's work very well :-)))))) I'm glad, I'm so glad. Many Thanks. Christian Le 27 juin 2012 ? 15:00, Stefan Simon [via OSGeo.org] a ?crit : > Hello. > > This is my code: > var gpxStyles = new OpenLayers.StyleMap({ > "default": new OpenLayers.Style({ > pointRadius: "5", // sized according to type attribute > label: "${name}", > labelAlign: 'cb', > fontSize: 9, > fontFamily: "Arial", > fontColor: "red", > labelYOffset: 6, > fillColor: "brown", > strokeColor: "yellow", > strokeWidth: 2, > strokeOpacity: 1 > }), > "select": new OpenLayers.Style({ > fillColor: "#66ccff", > strokeColor: "#3399ff", > graphicZIndex: 2 > }) > }); > var __gpx_layer = new OpenLayers.Layer.Vector("gpx_layer", { > protocol: new OpenLayers.Protocol.HTTP({ > url: "path_to_gpx/gpx_file.gpx", > format: new OpenLayers.Format.GPX({extractWaypoints: true, extractRoutes: false, extractAttributes: true}) > }), > strategies: [new OpenLayers.Strategy.Fixed()], > visibility: false, > styleMap: gpxStyles, > projection: new OpenLayers.Projection("EPSG:4326") > }); > > > On Wed, Jun 27, 2012 at 2:12 PM, christian bleau <[hidden email]> wrote: > Hi, > > Is there someone who can help me to understand how can I get the label > "name" or "others" from gpx's file? > > I try this code without succes ;( > > var context = { > pointLabel: function(feature) { > return feature.attributes['name'] + " (" + > feature.attributes['name'] + ")"; > }}; > > var lgpx = new OpenLayers.Layer.GML("GPX", "http:// ****** test_gpx.gpx", { > format: OpenLayers.Format.GPX, > style: { > strokeColor: "green", > fillColor: "orange", > graphicName: "triangle", > label: "${name}", > pointRadius: 6, > strokeWidth: 2, > strokeOpacity: 0.5, > fillOpacity: 0.5}, > context: context, > projection: new OpenLayers.Projection("EPSG:4326") > }); > map.addLayer(lgpx); > > If you have any examples or ways. > > Thank a lot. > > Christian > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > ______________ > Simon Stefan > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193p4984219.html > To unsubscribe from How get gpx label?, click here. > NAML Christian Pof at Bleau -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-get-gpx-label-tp4984193p4984332.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr at mry4n.net Wed Jun 27 11:49:08 2012 From: mr at mry4n.net (Mike Ryan) Date: Wed, 27 Jun 2012 14:49:08 -0400 Subject: [OpenLayers-Users] Vector Layer w/ Canvas Renderer Not Respecting Other Layers In-Reply-To: <4FE9F49C.7040102@mry4n.net> References: <4FE9F49C.7040102@mry4n.net> Message-ID: <4FEB55A4.70304@mry4n.net> Following up on this, since I haven't heard anything. I've played around with the canvas hit detection example here: http://dev.openlayers.org/releases/OpenLayers-2.11/examples/canvas-hit-detection.html and did the following: - made an overlay layer with some of features so that I could turn the layer on/off - added the LayerSwitcher control to the map - added onFeatureSelect and onFeatureUnselect events to the layers so a popup appears when you click on the features - the popups appear when clicking on the visible features - AND the popups appear when clicking on the "invisible" features in the overlay when it is TURNED OFF So, is this an issue with the HTML5 Canvas element itself or the way OL uses it to render Vector layers? Does turning a Canvas layer "off" via LayerSwitcher require some extra code? -Mike On 6/26/2012 1:42 PM, Mike Ryan wrote: > When I add a Vector layer using a Canvas renderer two bad things happen: > > 1. Other Vector layers with points that have click events attached and > are within the area covered by the Canvas layer are no longer > clickable. The Canvas layers is blocking the click event. > > If a click event was added to the Canvas layer, the Canvas click event > is fired rather than the point's in the other layer. > > Points in the other layer that are not within the Canvas layer area > work properly. > > 2. Even when I switch off the Canvas layer with the layerswitcher, the > Canvas layer still behaves the same way -- even though the canvas > layer can no longer be seen. > > Who's got an idea of what might be going on here? > > -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr at mry4n.net Wed Jun 27 13:33:37 2012 From: mr at mry4n.net (Mike Ryan) Date: Wed, 27 Jun 2012 16:33:37 -0400 Subject: [OpenLayers-Users] Canvas Vector Layer Turns Off After Panning In-Reply-To: References: Message-ID: <4FEB6E21.4010707@mry4n.net> A new piece of the puzzle: If I turn off the layer, and click in the spot where the feature used to be, the popup appears. If I turn off the layer, pan the map, and then click the spot where the feature should be (in its new position) the popup does not appear and allows click events to layers underneath the Canvas layer. Any idea why the Canvas layer somehow stays on the map unless I pan the map? I'm looking at the LayerSwitcher code to see how exactly it turns a layer off to see if something can be added there to completely wipe away the canvas. -Mike Message: 1 Date: Wed, 27 Jun 2012 14:49:08 -0400 From: Mike Ryan To:openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] Vector Layer w/ Canvas Renderer Not Respecting Other Layers Message-ID:<4FEB55A4.70304 at mry4n.net> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Following up on this, since I haven't heard anything. I've played around with the canvas hit detection example here: http://dev.openlayers.org/releases/OpenLayers-2.11/examples/canvas-hit-detection.html and did the following: - made an overlay layer with some of features so that I could turn the layer on/off - added the LayerSwitcher control to the map - added onFeatureSelect and onFeatureUnselect events to the layers so a popup appears when you click on the features - the popups appear when clicking on the visible features - AND the popups appear when clicking on the "invisible" features in the overlay when it is TURNED OFF So, is this an issue with the HTML5 Canvas element itself or the way OL uses it to render Vector layers? Does turning a Canvas layer "off" via LayerSwitcher require some extra code? -Mike On 6/26/2012 1:42 PM, Mike Ryan wrote: > When I add a Vector layer using a Canvas renderer two bad things happen: > > 1. Other Vector layers with points that have click events attached and > are within the area covered by the Canvas layer are no longer > clickable. The Canvas layers is blocking the click event. > > If a click event was added to the Canvas layer, the Canvas click event > is fired rather than the point's in the other layer. > > Points in the other layer that are not within the Canvas layer area > work properly. > > 2. Even when I switch off the Canvas layer with the layerswitcher, the > Canvas layer still behaves the same way -- even though the canvas > layer can no longer be seen. > > Who's got an idea of what might be going on here? > > -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Wed Jun 27 13:57:57 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 28 Jun 2012 08:57:57 +1200 Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> References: <1340786566385-4984150.post@n6.nabble.com> <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> Message-ID: <4FEB73D5.1050106@gns.cri.nz> I dont see where you have told openlayers what projection the map is in. EPSG:3857 layers dont need this, but for other projections, you should specify the projection in the layer options (and also maxExtent and either maxResolution or resolutions - I would set resolutions for a TMS). Might also be good idea to set baselayer true for the TMS. Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From eric.lemoine at camptocamp.com Wed Jun 27 14:49:39 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed, 27 Jun 2012 23:49:39 +0200 Subject: [OpenLayers-Users] OpenLayers 2.12 Final Release Message-ID: The OpenLayers Development Team is proud to announce the final release of OpenLayers 2.12! OpenLayers 2.12 can be downloaded from . OpenLayers 2.12 offers great new features and improvements in various areas: - A new CSS-customizable zoom control. - Sensible projection defaults to ease the creation and configuration of maps. - Tile caching for offline use. - CSS-based tile animation. - UTFGrid support. - Improved image request management (tile queue). - Fractional zooming for tiled layers (a.k.a. client zoom). OpenLayers 2.12 deprecates a number of properties, methods and constructors, and the deprecated objects have been moved to a separate deprecated.js file. Please look at the release notes for more information: < https://github.com/openlayers/openlayers/blob/master/notes/2.12.md>. Many thanks to all who contributed! -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From ozgurarslan81 at hotmail.com Wed Jun 27 21:25:53 2012 From: ozgurarslan81 at hotmail.com (Osguraslan) Date: Wed, 27 Jun 2012 21:25:53 -0700 (PDT) Subject: [OpenLayers-Users] My Maps are not working anymore Message-ID: <1340857553379-4984424.post@n6.nabble.com> Hi all, I created a map with wms and openlayers and it was working well before, but now it is not working. I don't know what happened. I think openleyers chenged some stuff. But I don't really know what they changed. Can someone tell me what I have to change on my html? My map is this;
Mining Divisions
-- View this message in context: http://osgeo-org.1560.n6.nabble.com/My-Maps-are-not-working-anymore-tp4984424.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zac.spitzer at gmail.com Wed Jun 27 21:26:55 2012 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Thu, 28 Jun 2012 14:26:55 +1000 Subject: [OpenLayers-Users] My Maps are not working anymore In-Reply-To: <1340857553379-4984424.post@n6.nabble.com> References: <1340857553379-4984424.post@n6.nabble.com> Message-ID: hard to tell from that code, any network errors or javascript errors in firebug? On Thu, Jun 28, 2012 at 2:25 PM, Osguraslan wrote: > Hi all, > I created a map with wms and openlayers and it was working well before, but > now it is not working. I don't know what happened. I think openleyers > chenged some stuff. But I don't really know what they changed. Can someone > tell me what I have to change on my html? > My map is this; > > > ? ? ? ? > > ? ? ? ?
border=1 bgcolor="White">
> > ? ? ? ?
> ? ? ? ?
> > > ? ? ? ? ? ? ? ? type="text/css" /> > > > > > > > > > > > > Mining Divisions > >
> > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/My-Maps-are-not-working-anymore-tp4984424.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From ozgurarslan81 at hotmail.com Wed Jun 27 21:27:45 2012 From: ozgurarslan81 at hotmail.com (Osguraslan) Date: Wed, 27 Jun 2012 21:27:45 -0700 (PDT) Subject: [OpenLayers-Users] Openlayers map is not working anymore!!! Message-ID: <1340857665125-4984426.post@n6.nabble.com> Hi all, I created a map with wms and openlayers and it was working well before, but now it is not working. I don't know what happened. I think openleyers chenged some stuff. But I don't really know what they changed. Can someone tell me what I have to change on my html? My map is this; Mining Divisions -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Openlayers-map-is-not-working-anymore-tp4984426.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Wed Jun 27 23:39:09 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 08:39:09 +0200 Subject: [OpenLayers-Users] OpenLayers 2.12 Final Release In-Reply-To: References: Message-ID: Thanks a lot Eric for managing this long release process. And thanks everybody for making 2.12 happen! Andreas. On Wed, Jun 27, 2012 at 11:49 PM, Eric Lemoine wrote: > The OpenLayers Development Team is proud to announce the final release > of OpenLayers 2.12! > > OpenLayers 2.12 can be downloaded from . > > OpenLayers 2.12 offers great new features and improvements in various areas: > > - A new CSS-customizable zoom control. > - Sensible projection defaults to ease the creation and configuration of maps. > - Tile caching for offline use. > - CSS-based tile animation. > - UTFGrid support. > - Improved image request management (tile queue). > - Fractional zooming for tiled layers (a.k.a. client zoom). > > OpenLayers 2.12 deprecates a number of properties, methods and > constructors, and the deprecated objects have been moved to a separate > deprecated.js file. > > Please look at the release notes for more information: < > https://github.com/openlayers/openlayers/blob/master/notes/2.12.md>. > > Many thanks to all who contributed! > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemoine at camptocamp.com > http://www.camptocamp.com > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Wed Jun 27 23:42:41 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 08:42:41 +0200 Subject: [OpenLayers-Users] My Maps are not working anymore In-Reply-To: <1340857553379-4984424.post@n6.nabble.com> References: <1340857553379-4984424.post@n6.nabble.com> Message-ID: Maybe you should use your div elements from the head to the body of the html. Andreas. On Thu, Jun 28, 2012 at 6:25 AM, Osguraslan wrote: > Hi all, > I created a map with wms and openlayers and it was working well before, but > now it is not working. I don't know what happened. I think openleyers > chenged some stuff. But I don't really know what they changed. Can someone > tell me what I have to change on my html? > My map is this; > > > ? ? ? ? > > ? ? ? ?
border=1 bgcolor="White">
> > ? ? ? ?
> ? ? ? ?
> > > ? ? ? ? ? ? ? ? type="text/css" /> > > > > > > > > > > > > Mining Divisions > >
> > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/My-Maps-are-not-working-anymore-tp4984424.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From adams at terrestris.de Thu Jun 28 00:00:23 2012 From: adams at terrestris.de (Till Adams) Date: Thu, 28 Jun 2012 09:00:23 +0200 Subject: [OpenLayers-Users] My Maps are not working anymore In-Reply-To: <1340857553379-4984424.post@n6.nabble.com> References: <1340857553379-4984424.post@n6.nabble.com> Message-ID: <4FEC0107.1090108@terrestris.de> Dear, your code looks like that your Javascript-Code and OpenLayers-Lib is missing completely ...? Regards, Till On 28.06.2012 06:25, Osguraslan wrote: > Hi all, > I created a map with wms and openlayers and it was working well before, but > now it is not working. I don't know what happened. I think openleyers > chenged some stuff. But I don't really know what they changed. Can someone > tell me what I have to change on my html? > My map is this; > > > > >
border=1 bgcolor="White">
> >
>
> > > type="text/css" /> > > > > > > > > > > > > Mining Divisions > >
> > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/My-Maps-are-not-working-anymore-tp4984424.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- --> GO Mobile - jetzt WebGIS auch auf Smartphones <-- ! Achtung - terrestris hat eine neue Adresse ! --------------------------------------------------------- terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From ahocevar at opengeo.org Thu Jun 28 00:14:59 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 09:14:59 +0200 Subject: [OpenLayers-Users] Vector layer polygon doesn't move in-synch with Google V3 baselayers In-Reply-To: <1340814939314-4984281.post@n6.nabble.com> References: <1340814939314-4984281.post@n6.nabble.com> Message-ID: This is a known issue. We cannot control how Google Maps drags, so there is no fix for it. Andreas. On Wed, Jun 27, 2012 at 6:35 PM, pov wrote: > When a polygon is drawn on the map and the map is dragged, the position of > the polygon relative to the GM V3 base changes. > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Vector-layer-polygon-doesn-t-move-in-synch-with-Google-V3-baselayers-tp4984281.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From shoppen at bananenhand.de Thu Jun 28 01:48:57 2012 From: shoppen at bananenhand.de (dalori) Date: Thu, 28 Jun 2012 01:48:57 -0700 (PDT) Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <4FEB73D5.1050106@gns.cri.nz> References: <1340786566385-4984150.post@n6.nabble.com> <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> <4FEB73D5.1050106@gns.cri.nz> Message-ID: <1340873337503-4984486.post@n6.nabble.com> Well yes, I guess this is the thing I mentioned with being stupid. I have added the bounds, but I don't know if there is a name for the projection. It is just a rectangular projection with no adjustments covering the whole world. The example init function would now look like this, but this still does not work: function init() { point = new OpenLayers.LonLat(-131.662903, 54.167258); bounds = new OpenLayers.Bounds(); bounds.extend(new OpenLayers.LonLat(-180, -90)); bounds.extend(new OpenLayers.LonLat(180, 90)); map = new OpenLayers.Map("map", { tileSize : new OpenLayers.Size(512, 512), maxExtent: bounds }); map.addLayer(new OpenLayers.Layer.TMS("Name", "http://www.bananenhand.de/background/level", { 'type' : 'jpg', 'getURL' : get_my_url, isBaseLayer: true })); map.setCenter(point, 2); markers = new OpenLayers.Layer.Markers("Markers"); map.addLayer(markers); markers.addMarker(new OpenLayers.Marker(point)); } @Olivier Terral: Thanks for the lon/lat issue. I was too used to Google which does it the wrong way with y/x. ;-) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Own-map-layer-in-different-projection-tp4984150p4984486.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From shoppen at bananenhand.de Thu Jun 28 01:57:51 2012 From: shoppen at bananenhand.de (dalori) Date: Thu, 28 Jun 2012 01:57:51 -0700 (PDT) Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <1340873337503-4984486.post@n6.nabble.com> References: <1340786566385-4984150.post@n6.nabble.com> <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> <4FEB73D5.1050106@gns.cri.nz> <1340873337503-4984486.post@n6.nabble.com> Message-ID: <50f758d820ee25a790e6b285c3ae1e82@wp245.webpack.hosteurope.de> I found a solution which works at least for the first 3-4 zoom levels. My tiles had the wrong z. I had to decrease it by 1. After that, the right part of the map tiles are not selected correctly which - I am pretty sure - has to do with my tiles or tile url getter. So, thanks a lot for giving me the hints. :-) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Own-map-layer-in-different-projection-tp4984150p4984490.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sacprasanna at gmail.com Thu Jun 28 03:02:43 2012 From: sacprasanna at gmail.com (sacprasanna) Date: Thu, 28 Jun 2012 03:02:43 -0700 (PDT) Subject: [OpenLayers-Users] Prevent layer from WMSGetFeatureInfo request on openlayers web map Message-ID: <1340877763892-4984512.post@n6.nabble.com> I use http://openlayers.org/dev/examples/getfeatureinfo-control.html this example code get feature info from my openlayers web map.I add 4 layers to map including raster image as base map. But i don't need feature info from that raster layer.But when clicking on the map to get information It gives information of all layers. How I modify above mentioned example code to prevent information from raster layer? Pls help me,Any idea welcome.Thanks -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Prevent-layer-from-WMSGetFeatureInfo-request-on-openlayers-web-map-tp4984512.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From olivier at geomatic.ch Thu Jun 28 04:35:37 2012 From: olivier at geomatic.ch (Olivier Terral) Date: Thu, 28 Jun 2012 13:35:37 +0200 Subject: [OpenLayers-Users] Prevent layer from WMSGetFeatureInfo request on openlayers web map In-Reply-To: <1340877763892-4984512.post@n6.nabble.com> References: <1340877763892-4984512.post@n6.nabble.com> Message-ID: Hi, Defines the "layers" property of your WMSGetFeatureInfo control. This property takes an array of layers to query. Le 28 juin 2012 ? 12:02, sacprasanna a ?crit : > I use http://openlayers.org/dev/examples/getfeatureinfo-control.html this > example code get feature info from my openlayers web map.I add 4 layers to > map including raster image as base map. But i don't need feature info from > that raster layer.But when clicking on the map to get information It gives > information of all layers. > > How I modify above mentioned example code to prevent information from raster > layer? > > Pls help me,Any idea welcome.Thanks > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Prevent-layer-from-WMSGetFeatureInfo-request-on-openlayers-web-map-tp4984512.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users Olivier Terral GEOMATIC Ing?nierie SA Soci?t? du groupe Ringier Chemin des Croisettes 26 1066 Epalinges www.geomatic.ch www.thevirtualcity.ch T?l:: +41 (21) 651 30 00 Fax: +41 (21) 651 30 09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.gif Type: image/gif Size: 5116 bytes Desc: not available URL: From xkadidas at gmail.com Thu Jun 28 05:20:39 2012 From: xkadidas at gmail.com (adidas) Date: Thu, 28 Jun 2012 15:20:39 +0300 Subject: [OpenLayers-Users] Problems with labels Message-ID: <4FEC4C17.7010005@gmail.com> Hi! Need to display a small title above the markers. The markers are drawn using poi (php generates text file for poi). Adding the point this way: function addPoint(lon,lat,title,ident,layr){ var ttt = new OpenLayers.LonLat(parseFloat(lon), parseFloat(lat)); ttt.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); for (var k = 0; k < layr.features.length; k++) { if(layr.features[k].attributes.PointId==ident) { layr.features[k].move(ttt); layr.features[k].attributes.label=title; return false; } } var point0 = new OpenLayers.Geometry.Point(parseFloat(lon), parseFloat(lat)); point0.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); layr.addFeatures(new OpenLayers.Feature.Vector(point0, { label: title, name: title, PointId: ident })); } var stylePoint = new OpenLayers.Style( { pointRadius: 5, strokeColor: "red", strokeWidth: 2, fillColor: "lime", labelYOffset: -16, label: "ee ${label}", fontSize: 16 }); var vectorPoint = new OpenLayers.Layer.Vector("?????", { styleMap: new OpenLayers.StyleMap( { "default": stylePoint, "select": { pointRadius: 20} }) }); map.addLayer(vectorPoint ); addPoint(32.24,48.5,'jjhhn','1',map.layers[6]); I geting this: http://ge.tt/5vp8jlJ/v/0?c As can be seen, there is no title (except the standard "ee"). Help me resolve that problem. Thanks. From robhyx at gmail.com Thu Jun 28 06:39:07 2012 From: robhyx at gmail.com (Rob Hyx) Date: Thu, 28 Jun 2012 09:39:07 -0400 Subject: [OpenLayers-Users] Toggle zoom box controls? Message-ID: Hey all, how do you toggle the zoom box control? In other words I have a new OpenLayers.Control.Navigation(); object and I want to know the function call to switch between panning and zooming with the box. I tried OpenLayers.Control.Navigation.enableZoomBox and disableZoomBox, but that didn't work. Thanks in advance! -- HYX http://hyx-music.com From schroeter at netgis.de Thu Jun 28 06:45:23 2012 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 28 Jun 2012 15:45:23 +0200 Subject: [OpenLayers-Users] read wms parameter Message-ID: <001001cd5534$44c42ce0$ce4c86a0$@de> Hi, I change the layers-Parameter of a WMS-Layer (mywms) using the mergeNewParams function: mywms.mergeNewParams({'layers': newlayers}); mywms.redraw(); This works fine, but how can I get(read) the current value of the parameter 'layers'? Thanks Sven From ahocevar at opengeo.org Thu Jun 28 08:17:03 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 17:17:03 +0200 Subject: [OpenLayers-Users] read wms parameter In-Reply-To: <001001cd5534$44c42ce0$ce4c86a0$@de> References: <001001cd5534$44c42ce0$ce4c86a0$@de> Message-ID: All WMS params are UPPERCASEd as soon as they are merged. So the answer is mywms.params.LAYERS Andreas. On Thu, Jun 28, 2012 at 3:45 PM, Sven Schroeter wrote: > Hi, > I change the layers-Parameter of a WMS-Layer (mywms) using the > mergeNewParams function: > > ? ? ? ? ? ? ? ?mywms.mergeNewParams({'layers': newlayers}); > ? ? ? ? ? ? ? ?mywms.redraw(); > > This works fine, but how can I get(read) the current value of the parameter > 'layers'? > Thanks > Sven > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From mr at mry4n.net Thu Jun 28 09:43:55 2012 From: mr at mry4n.net (Mike Ryan) Date: Thu, 28 Jun 2012 12:43:55 -0400 Subject: [OpenLayers-Users] OL 2.12 Fixes Part of Canvas Problem Message-ID: <4FEC89CB.7060007@mry4n.net> For those following my epic Canvas adventure, OpenLayers 2.12 has fixed part of my problem. So, bless all of you who made that new version happen. Now when I turn off the Canvas layer it is all the way off. I can access the layers that were above it (yes, above it), which I should have been able to access in the first place. Previously I discovered panning the map after shutting off the layer also made the layer completely disappear. That still leaves the issue of the Canvas layer ignoring its place in the stack of layers. Does anyone know why a Vector layer rendered as a Canvas would block events to overlapping layers that are ABOVE it? -Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Thu Jun 28 10:25:19 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 19:25:19 +0200 Subject: [OpenLayers-Users] Vector layer polygon doesn't move in-synch with Google V3 baselayers In-Reply-To: <1340898805.95825.YahooMailClassic@web110012.mail.gq1.yahoo.com> References: <1340898805.95825.YahooMailClassic@web110012.mail.gq1.yahoo.com> Message-ID: The issues are all ticketed, so you should get an overview by looking at https://github.com/openlayers/openlayers/issues/search?q=google&state=open&assignee= and http://trac.osgeo.org/openlayers/query?status=assigned&status=new&status=reopened&component=Layer.Google.v3&order=priority If you can come up with fixes, please issue pull requests at http://github.com/openlayers/openlayers. Andreas. On Thu, Jun 28, 2012 at 5:53 PM, saiko wrote: > > Andreas, > > Thanks for responding. To me it wouldn't seem that the issue has to do > with controlling anything about GM. It seems that the thing would be to > ascertain the parameters being used in GM and making the available in OL. > > Apart from that it would be a helpful thing if there was a section that > documented known issues with the implementation of GM > > Thanks > Saiko > > --- On Thu, 28/6/12, Andreas Hocevar wrote: > > > From: Andreas Hocevar > Subject: Re: [OpenLayers-Users] Vector layer polygon doesn't move in-synch > with Google V3 baselayers > To: "pov" > Cc: openlayers-users at lists.osgeo.org > Date: Thursday, 28 June, 2012, 3:14 AM > > This is a known issue. We cannot control how Google Maps drags, so > there is no fix for it. > > Andreas. > > On Wed, Jun 27, 2012 at 6:35 PM, pov wrote: > > When a polygon is drawn on the map and the map is dragged, the position > > of > > the polygon relative to the GM V3 base changes. > > > > > > > > -- > > View this message in context: > > http://osgeo-org.1560.n6.nabble.com/Vector-layer-polygon-doesn-t-move-in-synch-with-Google-V3-baselayers-tp4984281.html > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From benjaminpreisig at gmx.at Thu Jun 28 10:50:28 2012 From: benjaminpreisig at gmx.at (Bennos) Date: Thu, 28 Jun 2012 10:50:28 -0700 (PDT) Subject: [OpenLayers-Users] Adding multiple Image Layers Message-ID: <1340905827933-4984653.post@n6.nabble.com> Hi, I am trying to add two OpenLayers.Layer.Image() layers to my map but if I am adding both at the same time, they will not appear. When I am trying to add just one layer, with the code for the other one commented everything works fine. But if I just create the .Image() Object for the second image without adding it to the map, no image is shown. After some research with Firebug I found that the aspectRatio for the second image is set to "NaN", altough I am defining it. Furthermore the images are not even loaded. The images have the exact same size and should be visible at the exact same place. When adding only one Layer and changing the URL manually with layer.setUrl("image.png"); everything works fine. Below I am posting my code, help is much appreciated. Cheers, b function init(){ // increase reload attempts OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; var spherical = new OpenLayers.Projection("EPSG:900913"); var geographical = new OpenLayers.Projection("EPSG:4326"); var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508), restrictedExtent = maxExtent.clone(), maxResolution = 156543.0339; var boundaries = new OpenLayers.Bounds(8.098224, 45.772682, 17.74378, 49.478924); var options = { projection: spherical, displayProjection: geographical, units: "m", numZoomLevels: 21, maxResolution: maxResolution, maxExtent: maxExtent, restrictedExtent: restrictedExtent, }; var map = new OpenLayers.Map('map', options); var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); map.addLayer(osm); var theme = new OpenLayers.Layer.Image( "Data", "data/prec1h/GOOGLE.RR_15min.20120612.1215.15.png", boundaries.transform(geographical,spherical), new OpenLayers.Size(598, 378), { isBaseLayer: false, resolutions:map.layers[0].resolutions, maxResolution : map.layers[0].resolutions[0], aspectRatio: 0.9024712214132586 // visibility: false } ); map.addLayer(theme); var meme= new OpenLayers.Layer.Image( "otherData", "data/prec1h/GOOGLE.RR_15min.20120612.1230.15.png", boundaries.transform(geographical,spherical), new OpenLayers.Size(598, 378), { isBaseLayer: false, resolutions:map.layers[0].resolutions, maxResolution : map.layers[0].resolutions[0], aspectRatio: 0.9024712214132586 // visibility: false } ); map.addLayer(meme); console.log(theme); console.log(meme); var lat=47.5; var lon=13.3333; var zoom = 7; var center=new OpenLayers.LonLat(); center.lon=lon; center.lat=lat; map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(center.transform(geographical,spherical),zoom); } -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Adding-multiple-Image-Layers-tp4984653.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From christian.bleau at gmail.com Thu Jun 28 11:48:44 2012 From: christian.bleau at gmail.com (christian bleau) Date: Thu, 28 Jun 2012 11:48:44 -0700 (PDT) Subject: [OpenLayers-Users] PB V 2.12 and Layer.GML Message-ID: <1340909324227-4984663.post@n6.nabble.com> Hi, I meet a pb with the 2.12 version. In this URL :http://www.pofableau.com/OpenLayers/villages.html If I use the V 2.11 OpenLayers.js you can see the layers. If I use the V 2.12 that doesn't work .......... :(( I forgot something ? regards. Christian the code: -- View this message in context: http://osgeo-org.1560.n6.nabble.com/PB-V-2-12-and-Layer-GML-tp4984663.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From simon.stefan at gmail.com Thu Jun 28 12:47:19 2012 From: simon.stefan at gmail.com (Stefan Simon) Date: Thu, 28 Jun 2012 22:47:19 +0300 Subject: [OpenLayers-Users] PB V 2.12 and Layer.GML In-Reply-To: <1340909324227-4984663.post@n6.nabble.com> References: <1340909324227-4984663.post@n6.nabble.com> Message-ID: Hi. Can you duplicate the file using OL 2.12 ? Stefan On Thu, Jun 28, 2012 at 9:48 PM, christian bleau wrote: > Hi, > > I meet a pb with the 2.12 version. > > In this URL :http://www.pofableau.com/OpenLayers/villages.html > > If I use the V 2.11 OpenLayers.js you can see the layers. > > If I use the V 2.12 that doesn't work .......... :(( > > I forgot something ? > > regards. > > Christian > > > the code: > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/PB-V-2-12-and-Layer-GML-tp4984663.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- ______________ Simon Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.bleau at gmail.com Thu Jun 28 12:57:40 2012 From: christian.bleau at gmail.com (Christian Bleau) Date: Thu, 28 Jun 2012 21:57:40 +0200 Subject: [OpenLayers-Users] PB V 2.12 and Layer.GML In-Reply-To: References: <1340909324227-4984663.post@n6.nabble.com> Message-ID: <6B3E68ED-1846-47FF-9133-3F776C9566EA@gmail.com> Hi Stefan, Is the same file. I just replace line: OpenLayers_2_11.js by the OpenLayers.js from V2.12. Christian Le 28 juin 2012 ? 21:47, Stefan Simon a ?crit : > Hi. > > Can you duplicate the file using OL 2.12 ? > > Stefan > > On Thu, Jun 28, 2012 at 9:48 PM, christian bleau wrote: > Hi, > > I meet a pb with the 2.12 version. > > In this URL :http://www.pofableau.com/OpenLayers/villages.html > > If I use the V 2.11 OpenLayers.js you can see the layers. > > If I use the V 2.12 that doesn't work .......... :(( > > I forgot something ? > > regards. > > Christian > > > the code: > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/PB-V-2-12-and-Layer-GML-tp4984663.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > ______________ > Simon Stefan Christian Pof at Bleau -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Thu Jun 28 13:15:27 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 28 Jun 2012 22:15:27 +0200 Subject: [OpenLayers-Users] PB V 2.12 and Layer.GML In-Reply-To: <1340909324227-4984663.post@n6.nabble.com> References: <1340909324227-4984663.post@n6.nabble.com> Message-ID: My guess is that the reason for 2.12 not working with your code is that you are using the deprecated Layer.GML, which is not included in OpenLayers 2.12 by default. If you still want to use it, you have to include deprecated.js in your build. Andreas. On Thu, Jun 28, 2012 at 8:48 PM, christian bleau wrote: > Hi, > > I meet a pb with the 2.12 version. > > In this URL :http://www.pofableau.com/OpenLayers/villages.html > > If I use the V 2.11 OpenLayers.js ?you can see the layers. > > If I use the V 2.12 that doesn't work .......... :(( > > I forgot something ? > > regards. > > Christian > > > the code: > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/PB-V-2-12-and-Layer-GML-tp4984663.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From christian.bleau at gmail.com Thu Jun 28 14:00:42 2012 From: christian.bleau at gmail.com (Christian Bleau) Date: Thu, 28 Jun 2012 23:00:42 +0200 Subject: [OpenLayers-Users] PB V 2.12 and Layer.GML In-Reply-To: References: <1340909324227-4984663.post@n6.nabble.com> Message-ID: <06754CCA-0E3C-4713-8CA3-ABC44C116FB8@gmail.com> Exactly, If I call "./lib/deprecated.js" the code is working. Sorry to ask for a pb false. Christian Le 28 juin 2012 ? 22:15, Andreas Hocevar a ?crit : > My guess is that the reason for 2.12 not working with your code is > that you are using the deprecated Layer.GML, which is not included in > OpenLayers 2.12 by default. If you still want to use it, you have to > include deprecated.js in your build. > > Andreas. > > On Thu, Jun 28, 2012 at 8:48 PM, christian bleau > wrote: >> Hi, >> >> I meet a pb with the 2.12 version. >> >> In this URL :http://www.pofableau.com/OpenLayers/villages.html >> >> If I use the V 2.11 OpenLayers.js you can see the layers. >> >> If I use the V 2.12 that doesn't work .......... :(( >> >> I forgot something ? >> >> regards. >> >> Christian >> >> >> the code: >> >> >> >> >> -- >> View this message in context: http://osgeo-org.1560.n6.nabble.com/PB-V-2-12-and-Layer-GML-tp4984663.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. Christian Pof at Bleau -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Thu Jun 28 14:01:16 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 29 Jun 2012 09:01:16 +1200 Subject: [OpenLayers-Users] Own map layer in different projection In-Reply-To: <1340873337503-4984486.post@n6.nabble.com> References: <1340786566385-4984150.post@n6.nabble.com> <8220820b9b153e0c1d6ab410f3bf9d3f@wp245.webpack.hosteurope.de> <4FEB73D5.1050106@gns.cri.nz> <1340873337503-4984486.post@n6.nabble.com> Message-ID: <4FECC61C.4080407@gns.cri.nz> That is projection EPSG:4326 Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From osgeo.mailinglist at gmail.com Thu Jun 28 15:16:26 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Fri, 29 Jun 2012 00:16:26 +0200 Subject: [OpenLayers-Users] A new book on OpenLayers available Message-ID: Hello list, Following my twitter timeline, I've seen that a new book called "OpenLayers Cookbook" is out. See the author blog for more informations http://acuriousanimal.com/blog/2012/06/28/openlayers-cookbook/ Time to update also the openlayers.org list of books I think :) Regards ThomasG77 -------------- next part -------------- An HTML attachment was scrubbed... URL: From neelima.emmani at iictechnologies.com Thu Jun 28 20:14:56 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Fri, 29 Jun 2012 03:14:56 +0000 Subject: [OpenLayers-Users] WFS Layer shift Message-ID: Hi all, I have WFS layer whcih i am overlaying on a google/bingmap . But when i overlay this layer onto google/bing I can see shift . Can anyone tell me why this is happening. With Regards, Neelima Emmani -------------- next part -------------- An HTML attachment was scrubbed... URL: From sacprasanna at gmail.com Fri Jun 29 00:46:46 2012 From: sacprasanna at gmail.com (sacprasanna) Date: Fri, 29 Jun 2012 00:46:46 -0700 (PDT) Subject: [OpenLayers-Users] custom Layer Switcher style in openlayers Message-ID: <1340956006810-4984746.post@n6.nabble.com> How all you, I use http://openlayers.org/dev/examples/layerswitcher.html this example to customized my layer switcher in openlayers.But I want to change the position,width and height of layer switcher.I know it relates to CSS.But I can't figure out how to do it. Pls give me some tips.Thanks -- View this message in context: http://osgeo-org.1560.n6.nabble.com/custom-Layer-Switcher-style-in-openlayers-tp4984746.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sacprasanna at gmail.com Fri Jun 29 00:51:16 2012 From: sacprasanna at gmail.com (sacprasanna) Date: Fri, 29 Jun 2012 00:51:16 -0700 (PDT) Subject: [OpenLayers-Users] Prevent layer from WMSGetFeatureInfo request on openlayers web map In-Reply-To: References: <1340877763892-4984512.post@n6.nabble.com> Message-ID: <1340956276987-4984747.post@n6.nabble.com> Thanks Olivier,It works. Further is there any method remove some fields on WMSGetFeatureInfo answer.I don't need to show all the attribute fields of shape file. Any way Thanks again for your reply -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Prevent-layer-from-WMSGetFeatureInfo-request-on-openlayers-web-map-tp4984512p4984747.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sacprasanna at gmail.com Fri Jun 29 01:14:02 2012 From: sacprasanna at gmail.com (sacprasanna) Date: Fri, 29 Jun 2012 01:14:02 -0700 (PDT) Subject: [OpenLayers-Users] How show some fields only when using WMSGetFeatureInfo? Message-ID: <1340957642996-4984749.post@n6.nabble.com> Hii all How to show some important field only when using WMSGetFeatureInfo.I use this example. When I click on maps it show all the fields of attribute table. What part should I modify in above mentioned code. Or give some sample code Pls help me? Any idea wellcome -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-show-some-fields-only-when-using-WMSGetFeatureInfo-tp4984749.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sacprasanna at gmail.com Fri Jun 29 02:28:29 2012 From: sacprasanna at gmail.com (sacprasanna) Date: Fri, 29 Jun 2012 02:28:29 -0700 (PDT) Subject: [OpenLayers-Users] here is the link of example? In-Reply-To: <1340957642996-4984749.post@n6.nabble.com> References: <1340957642996-4984749.post@n6.nabble.com> Message-ID: <1340962109189-4984789.post@n6.nabble.com> I mean this example http://openlayers.org/dev/examples/getfeatureinfo-control.html -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-show-some-fields-only-when-using-WMSGetFeatureInfo-tp4984749p4984789.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From robhyx at gmail.com Fri Jun 29 05:49:43 2012 From: robhyx at gmail.com (Rob Hyx) Date: Fri, 29 Jun 2012 08:49:43 -0400 Subject: [OpenLayers-Users] OpenLayers Select Feature event not registering Message-ID: Hi all, I am having trouble trying to get an event to register with my SelectFeature object. I am trying to catch the 'boxselectionend' (or start) and it just won't fire. Here is my code: selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { box: true, onSelect:function(feature) { ...// This code works fine... } } ); selectControl.events.on( { 'boxselectionstart':function(evt) { alert('Works!'); } } ); map.addControl(selectControl); It says in the API that this event is supported: http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events Thanks in advance for any and all help! -- HYX http://hyx-music.com From robhyx at gmail.com Fri Jun 29 05:49:43 2012 From: robhyx at gmail.com (Rob Hyx) Date: Fri, 29 Jun 2012 08:49:43 -0400 Subject: [OpenLayers-Users] OpenLayers Select Feature event not registering Message-ID: Hi all, I am having trouble trying to get an event to register with my SelectFeature object. I am trying to catch the 'boxselectionend' (or start) and it just won't fire. Here is my code: selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { box: true, onSelect:function(feature) { ...// This code works fine... } } ); selectControl.events.on( { 'boxselectionstart':function(evt) { alert('Works!'); } } ); map.addControl(selectControl); It says in the API that this event is supported: http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events Thanks in advance for any and all help! -- HYX http://hyx-music.com From slawomir.messner at staff.uni-marburg.de Fri Jun 29 07:01:44 2012 From: slawomir.messner at staff.uni-marburg.de (Slawomir Messner) Date: Fri, 29 Jun 2012 16:01:44 +0200 Subject: [OpenLayers-Users] OpenLayers Select Feature event not registering In-Reply-To: References: Message-ID: <4FEDB548.3050505@staff.uni-marburg.de> Hi, but box selection works? Do you have the newest OL version? The events are pretty new. Regards Slawomir Am 29.06.2012 14:49, schrieb Rob Hyx: > Hi all, I am having trouble trying to get an event to register with my > SelectFeature object. I am trying to catch the 'boxselectionend' (or > start) and it just won't fire. Here is my code: > > selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { > box: true, onSelect:function(feature) { ...// This code works fine... > } } ); > selectControl.events.on( { 'boxselectionstart':function(evt) { > alert('Works!'); } } ); > map.addControl(selectControl); > > It says in the API that this event is supported: > http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events > > Thanks in advance for any and all help! > From teknocreator at gmail.com Fri Jun 29 07:28:06 2012 From: teknocreator at gmail.com (teknocreator) Date: Fri, 29 Jun 2012 07:28:06 -0700 (PDT) Subject: [OpenLayers-Users] OL 2.12 and Image layer flicker Message-ID: <1340980086335-4984910.post@n6.nabble.com> Good day list! Our application has an Image layer which is fed different png images via the setUrl function. However, when the new image was loaded into the layer, there was a flicker due to the previous image being hidden before the next image was loaded. So, there was a work around when this topic was previously discussed to just comment out that part in Tile/Image.js which hid the previous image (it was in the clear function). This has worked fairly well for our app and there's a smooth transition when images are loaded with no flicker, especially in Firefox. However, as the Tile/Image.js code has been radically changed with OL 2.12, this issue is back. I can see going through the debugger what's happening, but my attempts to comment out sections of the code causing this have not worked. I saw where there are tile transitions using CSS but the Release notes indicate that it's turned off for single tile by default. Not sure if that can be applied to an Image layer or not. Suggestions for a work around? Thanks Dave Miller -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OL-2-12-and-Image-layer-flicker-tp4984910.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From robhyx at gmail.com Fri Jun 29 07:38:49 2012 From: robhyx at gmail.com (Rob Hyx) Date: Fri, 29 Jun 2012 10:38:49 -0400 Subject: [OpenLayers-Users] OpenLayers Select Feature event not registering In-Reply-To: <4FEDB548.3050505@staff.uni-marburg.de> References: <4FEDB548.3050505@staff.uni-marburg.de> Message-ID: Yeah, that's what it is. I'm using 2.11 and those events are in 2.12. Thanks, I'll try upgrading and hope it doesn't break anything :) On Fri, Jun 29, 2012 at 10:01 AM, Slawomir Messner wrote: > Hi, > but box selection works? Do you have the newest OL version? The events are > pretty new. > Regards > Slawomir > > Am 29.06.2012 14:49, schrieb Rob Hyx: > >> Hi all, I am having trouble trying to get an event to register with my >> SelectFeature object. I am trying to catch the 'boxselectionend' (or >> start) and it just won't fire. Here is my code: >> >> selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { >> box: true, onSelect:function(feature) { ...// This code works fine... >> } } ); >> selectControl.events.on( { 'boxselectionstart':function(evt) { >> alert('Works!'); } } ); >> map.addControl(selectControl); >> >> It says in the API that this event is supported: >> >> http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events >> >> Thanks in advance for any and all help! >> > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- HYX http://hyx-music.com From robhyx at gmail.com Fri Jun 29 09:21:37 2012 From: robhyx at gmail.com (Rob Hyx) Date: Fri, 29 Jun 2012 12:21:37 -0400 Subject: [OpenLayers-Users] OpenLayers Select Feature event not registering In-Reply-To: References: <4FEDB548.3050505@staff.uni-marburg.de> Message-ID: Okay so that fixed the issue of the event not being captured, but when I toggle the control.activate / deactivate on and off the layer toggles visibility as well. This was not the case in 2.11. Does that make sense, and is there another way to allow me to switch between select feature and navigation? On Fri, Jun 29, 2012 at 10:38 AM, Rob Hyx wrote: > Yeah, that's what it is. I'm using 2.11 and those events are in 2.12. > Thanks, I'll try upgrading and hope it doesn't break anything :) > > On Fri, Jun 29, 2012 at 10:01 AM, Slawomir Messner > wrote: >> Hi, >> but box selection works? Do you have the newest OL version? The events are >> pretty new. >> Regards >> Slawomir >> >> Am 29.06.2012 14:49, schrieb Rob Hyx: >> >>> Hi all, I am having trouble trying to get an event to register with my >>> SelectFeature object. I am trying to catch the 'boxselectionend' (or >>> start) and it just won't fire. Here is my code: >>> >>> selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { >>> box: true, onSelect:function(feature) { ...// This code works fine... >>> } } ); >>> selectControl.events.on( { 'boxselectionstart':function(evt) { >>> alert('Works!'); } } ); >>> map.addControl(selectControl); >>> >>> It says in the API that this event is supported: >>> >>> http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.events >>> >>> Thanks in advance for any and all help! >>> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > HYX > http://hyx-music.com -- HYX http://hyx-music.com From list at rdewit.net Fri Jun 29 18:55:50 2012 From: list at rdewit.net (Roald de Wit) Date: Sat, 30 Jun 2012 11:55:50 +1000 Subject: [OpenLayers-Users] OL 2.12 and Image layer flicker In-Reply-To: <1340980086335-4984910.post@n6.nabble.com> References: <1340980086335-4984910.post@n6.nabble.com> Message-ID: <4FEE5CA6.7090904@rdewit.net> Hi, The image flickering should be gone when you enable transitionEffect: "resize" in your layer options with OL 2.12. It least, that works for me. Regards, Roald On 30/06/12 00:28, teknocreator wrote: > Good day list! > > Our application has an Image layer which is fed different png images via the > setUrl function. However, when the new image was loaded into the layer, > there was a flicker due to the previous image being hidden before the next > image was loaded. So, there was a work around when this topic was > previously discussed to just comment out that part in Tile/Image.js which > hid the previous image (it was in the clear function). This has worked > fairly well for our app and there's a smooth transition when images are > loaded with no flicker, especially in Firefox. > > However, as the Tile/Image.js code has been radically changed with OL 2.12, > this issue is back. I can see going through the debugger what's happening, > but my attempts to comment out sections of the code causing this have not > worked. > > I saw where there are tile transitions using CSS but the Release notes > indicate that it's turned off for single tile by default. Not sure if that > can be applied to an Image layer or not. > > Suggestions for a work around? > > Thanks > > Dave Miller > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/OL-2-12-and-Image-layer-flicker-tp4984910.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From ahocevar at opengeo.org Sat Jun 30 00:36:00 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat, 30 Jun 2012 09:36:00 +0200 Subject: [OpenLayers-Users] Adding multiple Image Layers In-Reply-To: <1340905827933-4984653.post@n6.nabble.com> References: <1340905827933-4984653.post@n6.nabble.com> Message-ID: You are using several non-API options to configure your Image layer. See http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Layer/Image-js.html#OpenLayers.Layer.Image.OpenLayers.Layer.Image for the correct constructor options. It looks like what's missing in your constructor is the size, and this is why your layers cannot calculate the aspect ratio. See http://openlayers.org/dev/examples/image-layer.html for an example. Andreas. On Thu, Jun 28, 2012 at 7:50 PM, Bennos wrote: > Hi, > > I am trying to add two OpenLayers.Layer.Image() layers to my map but if I am > adding both at the same time, they will not appear. > > When I am trying to add just one layer, with the code for the other one > commented everything works fine. But if I just create the .Image() Object > for the second image without adding it to the map, no image is shown. After > some research with Firebug I found that the aspectRatio for the second image > is set to "NaN", altough I am defining it. Furthermore the images are not > even loaded. > The images have the exact same size and should be visible at the exact same > place. When adding only one Layer and changing the URL manually with > layer.setUrl("image.png"); everything works fine. > Below I am posting my code, help is much appreciated. > > Cheers, > b > > > function init(){ > ? ? ? ?// increase reload attempts > ? ?OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; > ? ? ? ?var spherical = new OpenLayers.Projection("EPSG:900913"); > ? ? ? ?var geographical = new OpenLayers.Projection("EPSG:4326"); > ? ? ? ?var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, > 20037508), > ? ? ? ?restrictedExtent = maxExtent.clone(), > ? ? ? ?maxResolution = 156543.0339; > ? ?var boundaries = new OpenLayers.Bounds(8.098224, 45.772682, 17.74378, > 49.478924); > ? ?var options = { > ? ? ? ?projection: spherical, > ? ? ? ?displayProjection: geographical, > ? ? ? ?units: "m", > ? ? ? ?numZoomLevels: 21, > ? ? ? ?maxResolution: maxResolution, > ? ? ? ?maxExtent: maxExtent, > ? ? ? ?restrictedExtent: restrictedExtent, > ? ?}; > ? ?var map = new OpenLayers.Map('map', options); > > ? ?var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); > ? ? ? ?map.addLayer(osm); > > ? ? ? ?var theme = new OpenLayers.Layer.Image( > ? ? ? ? ? ? ? ?"Data", > ? ? ? ?"data/prec1h/GOOGLE.RR_15min.20120612.1215.15.png", > ? ? ? ?boundaries.transform(geographical,spherical), > ? ? ? ?new OpenLayers.Size(598, 378), > ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ? ? ?isBaseLayer: false, > ? ? ? ? ? ? ? ? ? ? ? ?resolutions:map.layers[0].resolutions, > ? ? ? ? ? ? ? ? ? ? ? ?maxResolution : map.layers[0].resolutions[0], > ? ? ? ? ? ? ? ? ? ? ? ?aspectRatio: 0.9024712214132586 > ? ? ? ? ? ? ? ? ? ? ? ?// visibility: false > ? ? ? ? ? ? ? ?} > ? ? ? ?); > ? ? ? ?map.addLayer(theme); > ? ? ? ? var meme= new OpenLayers.Layer.Image( > ? ? ? ? ? ? ? ?"otherData", > ? ? ? ?"data/prec1h/GOOGLE.RR_15min.20120612.1230.15.png", > ? ? ? ?boundaries.transform(geographical,spherical), > ? ? ? ?new OpenLayers.Size(598, 378), > ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ? ? ?isBaseLayer: false, > ? ? ? ? ? ? ? ? ? ? ? ?resolutions:map.layers[0].resolutions, > ? ? ? ? ? ? ? ? ? ? ? ?maxResolution : map.layers[0].resolutions[0], > ? ? ? ? ? ? ? ? ? ? ? ?aspectRatio: 0.9024712214132586 > ? ? ? ? ? ? ? ? ? ? ? ?// visibility: false > ? ? ? ? ? ? ? ?} > ? ? ? ?); > ? ? ? ?map.addLayer(meme); > ? ? ? ?console.log(theme); > ? ? ? ?console.log(meme); > > ? ? ? ?var lat=47.5; > ? ? ? ?var lon=13.3333; > ? ? ? ?var zoom = 7; > ? ? ? ?var center=new OpenLayers.LonLat(); > ? ? ? ?center.lon=lon; > ? ? ? ?center.lat=lat; > ? ? ? ?map.addControl(new OpenLayers.Control.LayerSwitcher()); > ? ?map.setCenter(center.transform(geographical,spherical),zoom); > > } > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Adding-multiple-Image-Layers-tp4984653.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From christian.bleau at gmail.com Sat Jun 30 05:22:38 2012 From: christian.bleau at gmail.com (christian bleau) Date: Sat, 30 Jun 2012 05:22:38 -0700 (PDT) Subject: [OpenLayers-Users] ToolTips Message-ID: <1341058958658-4985037.post@n6.nabble.com> Hi, In this example http://pofableau.com/OpenLayers/tooltip.html I use a script working with openlayers.js V 2.11. With openlayer.js V 2.12 and the deprecated.js it doesn't work Is there someone who can indicate to me the right way ( v2.12 ) with the good constructor or show me an example a little like the over one? Thanks. Christian -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ToolTips-tp4985037.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rossko at culzean.clara.co.uk Sat Jun 30 08:13:21 2012 From: rossko at culzean.clara.co.uk (Rossko) Date: Sat, 30 Jun 2012 08:13:21 -0700 (PDT) Subject: [OpenLayers-Users] My Maps are not working anymore In-Reply-To: <1340857553379-4984424.post@n6.nabble.com> References: <1340857553379-4984424.post@n6.nabble.com> Message-ID: <1341069201299-4985046.post@n6.nabble.com>