From bpaulowitz at hisgis.net Thu Jul 1 00:18:58 2010 From: bpaulowitz at hisgis.net (Confimar) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] href in kml popup In-Reply-To: <1277932124918-5240747.post@n2.nabble.com> References: <1277927004727-5238243.post@n2.nabble.com> <1277932124918-5240747.post@n2.nabble.com> Message-ID: <1277957938002-5241921.post@n2.nabble.com> the map is at http://www.rivernet.org/bigjump/bigjumpmap.htm the href you quoted is the reference in the kml that the placemark should link to: Amsterdam <div class="markerLabel"><div class="address">Amsterdam, Pays-Bas</div><div><span class="l">Address:</span>&nbsp;Strand Blijburg</div><div><span class="l">Zipcode:</span>&nbsp;1000</div><div><span class="l">Nr:</span>&nbsp;25</div><div><span class="l">Keywords:</span>&nbsp;BIG JUMP EVENT</div><div><span class="l">Organiser:</span>&nbsp;Stichting Aquarius, Erik Van Loon en Isis Hella Nebbeling</div></div>

http://www.bigjump.eu/leiden/index.htm http://www.bigjump.eu/leiden/index.htm

4.8909347,52.3738007,0 #1
thanks, bernd -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/href-in-kml-popup-tp5238243p5241921.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From liste12A45q7 at gmx.de Thu Jul 1 02:46:35 2010 From: liste12A45q7 at gmx.de (Markus) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] OpenGastroMap.org Message-ID: <4C2C39CB.1000402@gmx.de> There is a new www.OpenGastroMap.org Shows resraurants concerning smoking=yes/no By editor you can add tag "smoking" in z=18 This is a cooperation with Wikimedia-Toolserver. Aim is to build a tool for making special maps. https://jira.toolserver.org/browse/ACCAPP-186 OpenGastroMap is a prototype. Markus From info at informatik-halle.de Thu Jul 1 03:05:40 2010 From: info at informatik-halle.de (info@informatik-halle.de) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] case insensitiv wfs filter Message-ID: <2139240857.71164.1277967940726.JavaMail.open-xchange@oxltgw04.schlund.de> Hi guys, sorry for cross-posting. I am using a geoserver(2.0.1) as a wfs-service with a postgresql database and openlayers to show the data. There is a possibility for the user to search data within this openlayers application. I am using the entered searchstring to form a getfeature request. I am using the filter-function for this: institutio *geographie* The problem is that when a user enters a string which is differs only a tiny bit to the string in the database (case sensitive), the entry cannot be found. For example: gEoGrApHiE, geographie, GEOGRAPHIE, Geographie. Can someone help me to create a case insensitiv application using openlayers, geoserver and postgresql. I already found the "matchCase"-option in openlayers, but this can only be used for EQUAL_TO filters which is not of any help for me. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100701/930530de/attachment.html From vito at vitotafuni.com Thu Jul 1 03:25:19 2010 From: vito at vitotafuni.com (Vito Tafuni) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Question on using multiple layers in different projections In-Reply-To: References: <4C2BCD08.4050202@swoodbridge.com> Message-ID: IMHP reprojecting the map is better than reprojecting each feature every time you switch beetween layers. so in my project i set map options to projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), maxResolution: "auto", maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), and then add gmap = new OpenLayers.Layer.Google("Google Terrain",{ type: G_PHYSICAL_MAP, sphericalMercator:true}); bing = new OpenLayers.Layer.VirtualEarth("Aerial", { type: VEMapStyle.Aerial, sphericalMercator:true}); vector = new OpenLayers.Layer.Vector("vectors"); more info on reprojecting and spherical marcator at http://docs.openlayers.org/library/spherical_mercator.html but i'm using ol since a month so may be i'm wrong!! -Vito- -- ----------- Tafuni Vito vito@vitotafuni.com --------------------------------------------- "Verba volant, scripta manent... data corrupted" 2010/7/1 > > On Jun 30, 2010, at 7:02 PM, ext Stephen Woodbridge wrote: > > > Hi all, > > > > I have an OL app setup the is using epsg4326 and everything it fine. > > It has a mapserver base layer and a vector overlay with markers and > > another with lines. > > > > I have been asked to add Google as an additional base layer. > > > > So my understanding is that the map object will take on the projection > > of the base layer when you switch between them. > > > > I have few questions: > > > > 1. I assume that the vector features are not transformed when the base > > layer is switched? Is this true? Which probably means I need to cycle > > through the features and transform them to the base layers projection > > something like: > > > > map.events.register('changebaselayer', map, function(evt, element) { > > var fromProj = map.getUnit()=='m'?epsg4326:epsg900913; > > for (var i=0, var len=layer.features.length; i > layer.features[i].geometry.transform(fromProj, > > map.getProjectionObject()); > > layer.redraw(); > > }); > > Yes. > > > > > 2. I have a WKT parser object. It need to reproject the features based > > on the current base layer. Can I change the internalProjection on base > > layer change like: > > > > parser.internalProjection = map.getProjectionObject(); > > That should work. > > -- Chris > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100701/4a12a660/attachment.html From rajjad at gmail.com Thu Jul 1 04:15:09 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] themes? Message-ID: Hi list, are there any custom themes available for open layers or do you have to modify the control images ? -- I.R From ahocevar at opengeo.org Thu Jul 1 04:51:04 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] =?iso-8859-1?q?OpenLayers=2ERequest=2EPOST_and?= =?iso-8859-1?q?_character_=D1_with_safari?= In-Reply-To: References: <1276765858516-5190077.post@n2.nabble.com> Message-ID: Also, you need to make sure that the JavaScript file is saved in UTF-8 encoding, and that your web server delivers the script with a content-type header that includes the charset. Regards, Andreas. On Jun 17, 2010, at 11:34 , JuKiM wrote: > Sorry..it was a false alarm.. It still returns a rare character.. exactly chr(63).. > > > 2010/6/17 JuKiM > Ok, It works! Thanks! > > 2010/6/17 Rossko > > > > headers: { > > "Content-Type": "text/xml", > > Try > "Content-Type": "text/xml; charset=utf-8" > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Request-POST-and-character-with-safari-tp5187202p5190077.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From iswaria.k at ifpindia.org Thu Jul 1 05:26:07 2010 From: iswaria.k at ifpindia.org (Iswaria) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Openlayers + jquery Message-ID: <1277976367194-5242680.post@n2.nabble.com> Hi, I am using jquery tabs and openlayers. In Firefox, the map is not loaded and in IE the map is loaded properly. It is showing centerpx is null or size is null, javascript errors. If i remove the jquery libraries, the map is loaded properly in firefox. Can anyone tell me, how to solve this conflict between jquery and openlayers or firefox. Browse http://www.ifpindia.org/jquerytest and click Map search, to view the problem Thanks, Iswaria -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5242680.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From diegorrborges at yahoo.com.br Thu Jul 1 06:54:25 2010 From: diegorrborges at yahoo.com.br (Diego Roberto) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Help on Routing Message-ID: <857363.88076.qm@web58008.mail.re3.yahoo.com> Hello everyone, I'm beginning their studies and subsequently the development of an application integration OL + GeoServer + PostGIS + PgRouting. If possible I indicate some study materials, links on the subject. I already have a TCC - "Prototype of a System of Urban integrating Routing PostgreSQL and Geoserver - Mauricio Reckziegel " Topics that will be working: - Integration with PgRouting - The shortest path algorithm - Cache in GeoServer - Calculation of average distance and time - From Route search filters - Styles for the portion of the route - Route Recalculation I appreciate everyone's attention. Grateful Diego Roberto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100701/56d9101d/attachment.html From rajjad at gmail.com Thu Jul 1 06:56:03 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] problem in change bgcolor of layer switcher Message-ID: Hi list, I`m trying to change the colors of open layers api according to my webpage theme. Now I`m trying to change the background color of layer switcher. I have changed the color inside the css class like this : .olControlLayerSwitcher .layersDiv { padding-top: 5px; padding-left: 10px; padding-bottom: 5px; padding-right: 75px; /*background-color: darkblue; ORIGNAL */ background-color: #556775; /*modified by Imran*/ <--------- CHANGED width: 100%; height: 100%; } but the problem is that there are dark blue bars on top and bottom of the layer switcher. On examining the div through FireBug it seems there are spans that do not have a class but some how there color is being set to dark blue! Any idea what can be done about this? regards, Imran -- I.R From rajjad at gmail.com Thu Jul 1 06:59:00 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Help on Routing In-Reply-To: <857363.88076.qm@web58008.mail.re3.yahoo.com> References: <857363.88076.qm@web58008.mail.re3.yahoo.com> Message-ID: For routing purpose you need to understand Dijkstra's_algorithm http://en.wikipedia.org/wiki/Dijkstra's_algorithm. As far as I remember postGIS databases do provide this functionality given the road network data does not have any topological errors. Regards, Imran On Thu, Jul 1, 2010 at 3:54 PM, Diego Roberto wrote: > Hello everyone, > > I'm beginning their studies and subsequently the development of an > application > integration OL + GeoServer + PostGIS + PgRouting. If possible I > indicate some study materials, links on the subject. > I already have a TCC - "Prototype of a System of Urban integrating Routing > PostgreSQL and Geoserver - Mauricio Reckziegel " > > Topics that will be working: > - Integration with PgRouting > - The shortest path algorithm > - Cache in GeoServer > - Calculation of average distance and time > - From Route search filters > - Styles for the portion of the route > - Route Recalculation > > I appreciate everyone's attention. > Grateful > Diego Roberto > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- I.R From richard.greenwood at gmail.com Thu Jul 1 07:33:47 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Openlayers + jquery In-Reply-To: <1277976367194-5242680.post@n2.nabble.com> References: <1277976367194-5242680.post@n2.nabble.com> Message-ID: Going directly to your map: http://www.ifpindia.org/herbarium/index.php?q=search#mapsearch it works. Clicking the "Map Search" tab from the link you provide below does not. So I wonder if it is an initialization problem rather than a jQuery-OpenLayers conflict. I use jQuery + OpenLayers in my applications without problems, but I am not using the jQuery tabs. Regards, Rich On Thu, Jul 1, 2010 at 3:26 AM, Iswaria wrote: > > Hi, > > ?I am using jquery tabs and openlayers. In Firefox, the map is not loaded > and in IE the map is loaded properly. It is showing centerpx is null or size > is null, javascript errors. > > If i remove the jquery libraries, the map is loaded properly in firefox. > > Can anyone tell me, how to solve this conflict between jquery and openlayers > or firefox. > > Browse http://www.ifpindia.org/jquerytest and click Map search, to view the > problem > > ?Thanks, > ?Iswaria > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5242680.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From iswaria.k at ifpindia.org Thu Jul 1 07:48:38 2010 From: iswaria.k at ifpindia.org (Iswaria) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Openlayers + jquery In-Reply-To: References: <1277976367194-5242680.post@n2.nabble.com> Message-ID: <4C2C8110.1080106@ifpindia.org> Hi Richard, As you said it was not a conflict.. Now it works!!! thanks, Iswaria Richard Greenwood [via OSGeo.org] wrote: Going directly to your map:     http://www.ifpindia.org/herbarium/index.php?q=search#mapsearch it works. Clicking the "Map Search" tab from the link you provide below does not. So I wonder if it is an initialization problem rather than a jQuery-OpenLayers conflict. I use jQuery + OpenLayers in my applications without problems, but I am not using the jQuery tabs. Regards, Rich On Thu, Jul 1, 2010 at 3:26 AM, Iswaria < [hidden email] > wrote: > > Hi, > >  I am using jquery tabs and openlayers. In Firefox, the map is not loaded > and in IE the map is loaded properly. It is showing centerpx is null or size > is null, javascript errors. > > If i remove the jquery libraries, the map is loaded properly in firefox. > > Can anyone tell me, how to solve this conflict between jquery and openlayers > or firefox. > > Browse http://www.ifpindia.org/jquerytest  and click Map search, to view the > problem > >  Thanks, >  Iswaria > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5242680.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [hidden email] > http://openlayers.org/mailman/listinfo/users > -- Richard Greenwood [hidden email] www.greenwoodmap.com _______________________________________________ Users mailing list [hidden email] http://openlayers.org/mailman/listinfo/users View message @ http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5243038.html To unsubscribe from Openlayers + jquery, click here . -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5243075.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100701/2e38e628/attachment.html From rossko at culzean.clara.co.uk Thu Jul 1 07:54:46 2010 From: rossko at culzean.clara.co.uk (Rossko) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] href in kml popup In-Reply-To: <1277957938002-5241921.post@n2.nabble.com> References: <1277927004727-5238243.post@n2.nabble.com> <1277932124918-5240747.post@n2.nabble.com> <1277957938002-5241921.post@n2.nabble.com> Message-ID: <1277985286263-5243093.post@n2.nabble.com> > the href you quoted is the reference in the kml that the placemark should link to: Silly me, of course! You just need to < > encode properly and consistently and not have any inside your description -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/href-in-kml-popup-tp5238243p5243093.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From christoph.ratke at gmx.net Thu Jul 1 07:58:09 2010 From: christoph.ratke at gmx.net (Christoph Ratke) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Openlayers + jquery In-Reply-To: References: <1277976367194-5242680.post@n2.nabble.com> Message-ID: <4C2C82D1.6020606@gmx.net> Hi Iswaria, Have you seen this thread: http://openlayers.org/pipermail/users/2010-January/015956.html If this is of no help, you could try not to use the jquery $() but the jquery noConflict instead. Regards, Christoph On 01.07.2010 13:33, Richard Greenwood wrote: > Going directly to your map: > http://www.ifpindia.org/herbarium/index.php?q=search#mapsearch > it works. Clicking the "Map Search" tab from the link you provide > below does not. So I wonder if it is an initialization problem rather > than a jQuery-OpenLayers conflict. > > I use jQuery + OpenLayers in my applications without problems, but I > am not using the jQuery tabs. > > Regards, > Rich > > > On Thu, Jul 1, 2010 at 3:26 AM, Iswaria wrote: > >> Hi, >> >> I am using jquery tabs and openlayers. In Firefox, the map is not loaded >> and in IE the map is loaded properly. It is showing centerpx is null or size >> is null, javascript errors. >> >> If i remove the jquery libraries, the map is loaded properly in firefox. >> >> Can anyone tell me, how to solve this conflict between jquery and openlayers >> or firefox. >> >> Browse http://www.ifpindia.org/jquerytest and click Map search, to view the >> problem >> >> Thanks, >> Iswaria >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-jquery-tp5242680p5242680.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > > From bmcbride at chacompanies.com Thu Jul 1 09:01:55 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] themes? In-Reply-To: References: Message-ID: <1277989315402-5243307.post@n2.nabble.com> http://mapbox.com/documentation/adding-tiles-your-site/openlayers-themes http://mapbox.com/documentation/adding-tiles-your-site/openlayers-themes ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/themes-tp5242468p5243307.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From atis at airdesignstudio.hu Thu Jul 1 10:27:46 2010 From: atis at airdesignstudio.hu (=?ISO-8859-1?Q?BER=C9NYI_Attila?=) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] [OpenLayers-Dev] WFS GetFeature - again In-Reply-To: References: <4C210290.2000300@airdesignstudio.hu> <4C2A1F82.6070402@airdesignstudio.hu> Message-ID: <4C2CA5E2.9060600@airdesignstudio.hu> Thanks, good to know, that this is so easy :) BR, Attila 2010.06.30. 15:30 keltez?ssel, Andreas Hocevar ?rta: > On Jun 29, 2010, at 18:29 , BER?NYI Attila wrote: > >> Hi, >> >> To answer my own question: the response is created in the gmgml namespace so OpenLayers cannot interpret it. It can be solved by turning on the Feature Collection Namespace in WFS option in Geomedia before publishing the WFS service. >> >> Probably it can be solved by implementing gmgml namespace in OpenLayers as well, does it worth a new feature ticket? > You can do this easily on the application level. Instantiate your GML format with the following option: > namespaces: OpenLayers.Util.extend({ > gmgml: "http://www.intergraph.com/geomedia/gml" > }, OpenLayers.Format.GML.Base.prototype.namespaces > > Regards, > Andreas. > >> BR, >> Attila >> >> 2010.06.22. 20:36 keltez?ssel, BER?NYI Attila ?rta: >>> Hi, >>> >>> I've facing a problem regarding the GetFeature function again, and I'm not quite sure whether it is an OpenLayers bug or the server application fails. >>> So, I've a WMS and a WFS service served by Geomedia WebMap: http://webmap.viamap.hu/ol/getFeatureTest.html >>> The GetFeature gets a correct response from the WFS service, e.g.: >>> >>> >>> 660000 236000666000 24000065-421>>> 19972676>> D>>> :exterior>660000 236000 660000 240000 666000 240000 666000 238000 666000 236000 660000 236000 >>> although the result cannot be processed, because of the following error: >>> obj.attributes is undefined >>> http://webmap.viamap.hu/ol/lib/OpenLayers-2.9.1/lib/OpenLayers/Format/GML/Base.js >>> Line 397 >>> Is it an OpenLayers bug? >>> >>> BR, >>> >>> Attila >>> >>> _______________________________________________ >>> Users mailing list >>> >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >> _______________________________________________ >> Dev mailing list >> Dev@openlayers.org >> http://openlayers.org/mailman/listinfo/dev From woodbri at swoodbridge.com Thu Jul 1 11:14:31 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Change Layers, but Layer does not show until zoom out/in performed Message-ID: <4C2CB0D7.7030406@swoodbridge.com> Hi Chris, Thank you for your feedback on changing layers. I got almost everything working. I think I ran into the remaining issue a long time ago, but I can not for the life of me find the old post or solution. And this might not be exactly the same problem. I have three base layers: 1. Tiger in EPSG:4326 2. Google in EPSG:900913 3. Streets in EPSG:4326 and a couple of vector overlays that are always on. Everything works fine when I switch between any of the base layers EXCEPT when I change from Google to Streets. When I change from Google to Streets nothing is drawn in the view port. No mapserver image, no vector data, just the map controls. If I zoom in or out everything displays properly. There are no broken images, not javascript errors reported. The NET panel shows that the image is requested and received. In FF console: map.baseLayer.redraw() returns true but nothing is displayed. Here is the app currently under development: http://imaptools.com:8080/routeloops/index4.php?zoom=11&lat=42.64057&lon=-71.36395&layers=B00TT&ll=-71.389033%2042.619456&len=10&rs=0.13877378737528812&av=1100%2C1200&u=E&cw=1# To reproduce the issue: 1. open the layerswitcher 2. select Google Map (click through alerts) 3. select Streets (click through alerts) - nothing displays 4. zoom in or out - everything displays ok Any pointers would be appreciated. Thanks, -Steve From woodbri at swoodbridge.com Thu Jul 1 11:18:03 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Change Layers, but Layer does not show until zoom out/in performed In-Reply-To: <4C2CB0D7.7030406@swoodbridge.com> References: <4C2CB0D7.7030406@swoodbridge.com> Message-ID: <4C2CB1AB.90305@swoodbridge.com> Stephen Woodbridge wrote: > Hi Chris, > > Thank you for your feedback on changing layers. I got almost everything > working. I think I ran into the remaining issue a long time ago, but I > can not for the life of me find the old post or solution. And this might > not be exactly the same problem. > > I have three base layers: > > 1. Tiger in EPSG:4326 > 2. Google in EPSG:900913 > 3. Streets in EPSG:4326 > > and a couple of vector overlays that are always on. > > Everything works fine when I switch between any of the base layers > EXCEPT when I change from Google to Streets. It looks like changing from Google to Tiger also fails to draw. I thought I had tried this before and it was working. But I guess it makes some sense for consistency sake, but Tiger and Streets are virtually identical definitions. -Steve > When I change from Google to Streets nothing is drawn in the view port. > No mapserver image, no vector data, just the map controls. If I zoom in > or out everything displays properly. > > There are no broken images, not javascript errors reported. > The NET panel shows that the image is requested and received. > In FF console: > > map.baseLayer.redraw() > > returns true but nothing is displayed. > > Here is the app currently under development: > http://imaptools.com:8080/routeloops/index4.php?zoom=11&lat=42.64057&lon=-71.36395&layers=B00TT&ll=-71.389033%2042.619456&len=10&rs=0.13877378737528812&av=1100%2C1200&u=E&cw=1# > > To reproduce the issue: > > 1. open the layerswitcher > 2. select Google Map (click through alerts) > 3. select Streets (click through alerts) - nothing displays > 4. zoom in or out - everything displays ok > > Any pointers would be appreciated. > > Thanks, > -Steve > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From bpaulowitz at hisgis.net Thu Jul 1 11:33:25 2010 From: bpaulowitz at hisgis.net (Confimar) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] href in kml popup In-Reply-To: <1277985286263-5243093.post@n2.nabble.com> References: <1277927004727-5238243.post@n2.nabble.com> <1277932124918-5240747.post@n2.nabble.com> <1277957938002-5241921.post@n2.nabble.com> <1277985286263-5243093.post@n2.nabble.com> Message-ID: <1277998405582-5243829.post@n2.nabble.com> thanks rossko, that worked. now this poses a problem of the batchgeo.com localizing tool that automatically adds this tags into the kml file. any other method at hand to do georeferencing of adresses? but I guess this is antoher forum. hope that I may help as well.. bernd -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/href-in-kml-popup-tp5238243p5243829.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jul 1 14:31:23 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Change Layers, but Layer does not show until zoom out/in performed In-Reply-To: <4C2CB1AB.90305@swoodbridge.com> References: <4C2CB0D7.7030406@swoodbridge.com> <4C2CB1AB.90305@swoodbridge.com> Message-ID: <4C2CDEFB.4090407@swoodbridge.com> OK, digging into this problem more I have found out why it is not displayed and how to hack it to cause it to display, but clearly I have no idea what I might be doing to cause this. When I switch from Google to one of the EPSG:4326 layers there are bad values for: map.layerContainerDiv.style.left map.layerContainerDiv.style.top When I catch the baseLayer changed event I added: if (map.baseLayer.name != 'Google Map') { map.layerContainerDiv.style.left = "0px"; map.layerContainerDiv.style.top = "0px"; } And this seems to fix the display problem. I'm sure this is not the intended way to fix this problem and I'm guessing that I am probably using part of the API in the wrong way. But I have not found who or what changes those values or why I'm getting numbers like -3e+10 Thanks, -Steve Stephen Woodbridge wrote: > Stephen Woodbridge wrote: >> Hi Chris, >> >> Thank you for your feedback on changing layers. I got almost everything >> working. I think I ran into the remaining issue a long time ago, but I >> can not for the life of me find the old post or solution. And this might >> not be exactly the same problem. >> >> I have three base layers: >> >> 1. Tiger in EPSG:4326 >> 2. Google in EPSG:900913 >> 3. Streets in EPSG:4326 >> >> and a couple of vector overlays that are always on. >> >> Everything works fine when I switch between any of the base layers >> EXCEPT when I change from Google to Streets. > > It looks like changing from Google to Tiger also fails to draw. I > thought I had tried this before and it was working. But I guess it makes > some sense for consistency sake, but Tiger and Streets are virtually > identical definitions. > > -Steve > >> When I change from Google to Streets nothing is drawn in the view port. >> No mapserver image, no vector data, just the map controls. If I zoom in >> or out everything displays properly. >> >> There are no broken images, not javascript errors reported. >> The NET panel shows that the image is requested and received. >> In FF console: >> >> map.baseLayer.redraw() >> >> returns true but nothing is displayed. >> >> Here is the app currently under development: >> http://imaptools.com:8080/routeloops/index4.php?zoom=11&lat=42.64057&lon=-71.36395&layers=B00TT&ll=-71.389033%2042.619456&len=10&rs=0.13877378737528812&av=1100%2C1200&u=E&cw=1# >> >> To reproduce the issue: >> >> 1. open the layerswitcher >> 2. select Google Map (click through alerts) >> 3. select Streets (click through alerts) - nothing displays >> 4. zoom in or out - everything displays ok >> >> Any pointers would be appreciated. >> >> Thanks, >> -Steve >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users From sdjbm17 at gmail.com Thu Jul 1 15:17:37 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Zoom to point given feature ID by GET In-Reply-To: <4730BF24C28548478BC8C8F97D15EAB6@pcawh2> References: <1277903718561-5237659.post@n2.nabble.com> <4730BF24C28548478BC8C8F97D15EAB6@pcawh2> Message-ID: <1278011857711-5244907.post@n2.nabble.com> Thank you very much!! =) Nice solution! I managed to do it this way: function gup(name){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ){ return ""; }else { return results[1]; } } var cliID = gup("cli"); function setNewCenter(event){ var fGotten = pdv_nuevo.features[0].geometry; map.setCenter(new OpenLayers.LonLat(fGotten.x, fGotten.y), 10, false,true); } pdv_nuevo = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:4326", url: "http://server:8080/geoserver/wfs", featureType: "clientes", outputFormat: "json", readFormat: new OpenLayers.Format.GeoJSON(), schema: "http://server:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=asdf:abcde", featureNS: "http://server:8080/geoserver/wfs", featurePrefix: "asdf" }) }); pdv_nuevo.events.register("loadend", this, setNewCenter); ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Zoom-to-point-given-feature-ID-by-GET-tp5237659p5244907.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Thu Jul 1 15:44:09 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] OpenLayers + GeoExt In-Reply-To: <784FAC631C0CB14CAE68764151D5DA41081D6908@CORRIOL.icc.local> References: <784FAC631C0CB14CAE68764151D5DA41081D6908@CORRIOL.icc.local> Message-ID: <1278013449654-5245033.post@n2.nabble.com> Try MapFish Client! It is very nice and free... =) http://mapfish.org/ http://mapfish.org/ ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-GeoExt-tp5239442p5245033.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jre_fletcher at yahoo.com.au Fri Jul 2 00:47:41 2010 From: jre_fletcher at yahoo.com.au (Johnathan Fletcher) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Get Length of Vector Polyline Message-ID: <678304.46720.qm@web46201.mail.sp1.yahoo.com> Hello, I have a polyline which I?have stored in an OpenLayers.Layer.Vector layer.? I can view this in the web interface with no problems. I would like to enquire if it is possible to get a length for this line.? What would be the code for?this.? To date I have been unable to find a method for doing this.? I know you can measure lines but this would be cumbersome and the results would not be accurate enough for my application Regards Johnathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100701/8bc93b48/attachment.html From derek at cmainfo.co.za Fri Jul 2 02:52:23 2010 From: derek at cmainfo.co.za (Derek Watling) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Get Length of Vector Polyline In-Reply-To: <678304.46720.qm@web46201.mail.sp1.yahoo.com> References: <678304.46720.qm@web46201.mail.sp1.yahoo.com> Message-ID: <1278053543127-5246587.post@n2.nabble.com> There are 2 functions: getLength and getGeodesicLength. eg. var length = vectorFeature.getGeodesicLength(new OpenLayers.Projection("EPSG:900913")); where vectorFeature references the polyline on the vector layer you want to measure. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-Length-of-Vector-Polyline-tp5246348p5246587.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From iswaria.k at ifpindia.org Fri Jul 2 04:58:04 2010 From: iswaria.k at ifpindia.org (Iswaria) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] draw rectangle over the map Message-ID: <1278061084805-5246929.post@n2.nabble.com> Hi all, In this link http://openlayers.org/dev/examples/custom-control.html, the rectangle we draw by pressing the shift key disappears, as soon as we complete drawing the rectangle. I want to display the rectangle, what user has drawn. What should be done to display the rectangle. Thanks, Iswaria -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/draw-rectangle-over-the-map-tp5246929p5246929.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Atle.Frenvik.Sveen at geomatikk.no Fri Jul 2 05:04:25 2010 From: Atle.Frenvik.Sveen at geomatikk.no (Sveen Atle Frenvik (Geomatikk IKT)) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] draw rectangle over the map In-Reply-To: <1278061084805-5246929.post@n2.nabble.com> References: <1278061084805-5246929.post@n2.nabble.com> Message-ID: <02656758FFFCDF4D9CC79BC33EBC55F880E5BB@TD-VIRT-EX-01.geomatikk.ad> On 07/02/2010 10:58 AM, Iswaria wrote: > Hi all, > > In this link http://openlayers.org/dev/examples/custom-control.html, the > rectangle we draw by pressing the shift key disappears, as soon as we > complete drawing the rectangle. > > I want to display the rectangle, what user has drawn. > > What should be done to display the rectangle. > > Thanks, > Iswaria > It seems to me like the box handler returns a set of pixels describing the box, and that the code added gets the coordinates for this. I guess a simlpe approach is the use the coordinates and construct a polygon geometry and then add this as a feature to a vector layer on the map, and then apply a style to make it look like the box. -atle -- Atle Frenvik Sveen Utvikler Geomatikk IKT AS tlf: 45 27 86 89 atle.frenvik.sveen@geomatikk.no -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100702/43f3e41b/attachment.html From iswaria.k at ifpindia.org Fri Jul 2 05:46:56 2010 From: iswaria.k at ifpindia.org (Iswaria) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] draw rectangle over the map In-Reply-To: <02656758FFFCDF4D9CC79BC33EBC55F880E5BB@TD-VIRT-EX-01.geomatikk.ad> References: <1278061084805-5246929.post@n2.nabble.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5BB@TD-VIRT-EX-01.geomatikk.ad> Message-ID: <4C2DB60C.5020404@ifpindia.org> Hi, Now I have drawn the rectangle.  One more query, Before drawing a rectangle, I want to clear/remove the rectangles, if any. How to do it? Thanks. Sveen Atle Frenvik (Geomatikk IKT) [via OSGeo.org] wrote: Re: [OpenLayers-Users] draw rectangle over the map On 07/02/2010 10:58 AM, Iswaria wrote: > Hi all, > > In this link http://openlayers.org/dev/examples/custom-control.html , the > rectangle we draw by pressing the shift key disappears, as soon as we > complete drawing the rectangle. > > I want to display the rectangle, what user has drawn. > > What should be done to display the rectangle. > > Thanks, > Iswaria >    It seems to me like the box handler returns a set of pixels describing the box, and that the code added gets the coordinates for this. I guess a simlpe approach is the use the coordinates  and construct a polygon geometry and then add this as a feature to a vector layer on the map, and then apply a style to make it look like the box. -atle -- Atle Frenvik Sveen Utvikler Geomatikk IKT AS tlf: 45 27 86 89 [hidden email] _______________________________________________ Users mailing list [hidden email] http://openlayers.org/mailman/listinfo/users View message @ http://osgeo-org.1803224.n2.nabble.com/draw-rectangle-over-the-map-tp5246929p5246953.html To unsubscribe from draw rectangle over the map, click here . -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/draw-rectangle-over-the-map-tp5246929p5247067.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100702/8784c89b/attachment.html From iswaria.k at ifpindia.org Fri Jul 2 06:13:18 2010 From: iswaria.k at ifpindia.org (Iswaria) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Remove rectangle from the map Message-ID: <1278065598212-5247142.post@n2.nabble.com> Hi, I have written the script to draw the rectangle. This is the link of my code: http://pastebin.com/HNyT9CJF But I want to remove the rectangle, (if any) before drawing the rectangle. As of now, I can draw any number of rectangles over the map. But My requirement is to draw only one rectangle and remove the rectangle drawn if any before. How to do it? Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Remove-rectangle-from-the-map-tp5247142p5247142.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Atle.Frenvik.Sveen at geomatikk.no Fri Jul 2 06:14:51 2010 From: Atle.Frenvik.Sveen at geomatikk.no (Sveen Atle Frenvik (Geomatikk IKT)) Date: Wed Sep 1 17:18:56 2010 Subject: [OpenLayers-Users] Remove rectangle from the map In-Reply-To: <1278065598212-5247142.post@n2.nabble.com> References: <1278065598212-5247142.post@n2.nabble.com> Message-ID: <02656758FFFCDF4D9CC79BC33EBC55F880E5BC@TD-VIRT-EX-01.geomatikk.ad> On 07/02/2010 12:13 PM, Iswaria wrote: > Hi, > > I have written the script to draw the rectangle. This is the link of my > code: http://pastebin.com/HNyT9CJF > > But I want to remove the rectangle, (if any) before drawing the rectangle. > > As of now, I can draw any number of rectangles over the map. But My > requirement is to draw only one rectangle and remove the rectangle drawn if > any before. > > How to do it? > > Thanks. > http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector.destroyFeatures -- Atle Frenvik Sveen Utvikler Geomatikk IKT AS tlf: 45 27 86 89 atle.frenvik.sveen@geomatikk.no -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100702/6eaafd7e/attachment.html From rifins at gmail.com Fri Jul 2 12:07:59 2010 From: rifins at gmail.com (JuKiM) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Loading a map into a hidden div in Safari Message-ID: Hi, I have a page where a user can select some diferent items, and when an item is selected, a div with a map is displayed showing where the item is.. The div that contains the map is: and the map css is: #map { height:100%; width:100%; position:absolute; top:0px; bottom:0px; left:0px; right:0px; cursor:pointer; } If I show the div with jQuery like this: In FireFox, IE and Chrome everuthing goes ok.. But if I try to do with Safari, the map is not shown.. Is there any problem with this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100702/12700d1c/attachment.html From robhyx at gmail.com Fri Jul 2 15:39:33 2010 From: robhyx at gmail.com (Robert Hicks) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Function to get visible layers on a map? Message-ID: Hey all, is there a function or some easy way to find which layers are set to visible on a map? -- web http://www.hyxspace.com aim hyx1138 From arnd.wippermann at web.de Fri Jul 2 17:44:11 2010 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Function to get visible layers on a map? In-Reply-To: References: Message-ID: Hi, Use the property 'visibility' of the layer var Msg = ""; for(var i=0;i References: <1278088029454-5248346.post@n2.nabble.com> Message-ID: <1278160966305-5250947.post@n2.nabble.com> > http://progressenergy.tech.officelive.com/Documents/OneLine.kmz "document not found" Is the case correct in your path? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-file-not-showing-with-open-layer-example-tp5248346p5250947.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From david.ing at gmail.com Mon Jul 5 01:57:51 2010 From: david.ing at gmail.com (David Ing) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Getting Started with TMS Message-ID: Hi List, New OpenLayers user here, so please bear with me. I've searched and spent many hours but am still stuck. I'm using the 2.9 release. I have a set of image tiles in z/x/y directory format, i.e.root/7/0/0.png and so on. I'm using gdal2tiles.py to take a png image of size 18432x18432 px to turn it into 8 zoom levels (0-7). Level 7 has 72 256x256 px tiles as expected. I just want a flat pixel by pixel projection. I have the files sat in an accessible web server i.e. no tilecache or mapserver etc, just plain GET /0/0/0.png My script is very simple and is copied from the TMS example (that is the right one to use rather than ZYX etc?) plus the HTML is from the TMS example: map = new OpenLayers.Map( 'map', { controls: [], maxResolution: 18432/256, maxExtent: new OpenLayers.Bounds( 0, 0, 18432, 18432 ), numZoomLevels:8, } ); layer = new OpenLayers.Layer.TMS( "TMS", " http://192.168.10.1/simpletest1/", {serviceVersion: '.', layername: '.', type:'png'} ); map.addLayer(layer); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.MouseDefaults()); map.addControl(new OpenLayers.Control.KeyboardDefaults()); if (!map.getCenter()) map.zoomToMaxExtent(); Problem 1: My projected coordinates seem incorrect, in that I move the mouse around and see my tiles correctly but not to the right transformation. The bottom left corner is 0,0, but the top right corner is just reading as 10368x10368. I was expecting 18432x18432? I have set up the maxExtent incorrectly? Note: I did try to use a set of manual resolutions too: resolutions: [ 1, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625, 0.0078125] ..but I get other issues, i.e. something like -80, 80? Problem 2: The code about asks for many extra tiles from about zoom level 2 onwards, i.e. An extra set of tiles above and to the right. Level 3 asks for a row of 3 extra, level 4 for 7 extra and so on. I expect this is related to (1) I'd appreciate any help. Apologies if it's something stupid. PS Thanks for OpenLayers - loving it... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100704/84497bb0/attachment.html From enrico.oemi at gmail.com Mon Jul 5 06:52:49 2010 From: enrico.oemi at gmail.com (Kiks) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google EPSG:900913 and Italian EPSG:3003 In-Reply-To: <1278083812068-5248120.post@n2.nabble.com> References: <1278083812068-5248120.post@n2.nabble.com> Message-ID: <1278327169296-5255606.post@n2.nabble.com> I'm making some progress.. but nothing appens I downloaded proj4js and added these references: I created the file the EPSG3003.js Proj4js.defs["EPSG:3003"] = "+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996+x_0=0 +y_0=0 +ellps=intl +a=6378388.0 +rf=297.0000000000601+units=m +no_defs"; but the google satellite map is not beeing reprojected... Kiks wrote: > > Hello to all, > I've got a layer in Epsg:3003 for the zone near Parma in Italy. > Coords in epsg: 3003 (Gauss Boaga projection, fuso ovest) are about E > 1545000 ; N 4935000 > I would like to overlay a google maps satellite layer that is in > epsg:900913 > > I tried this: > > ... > var Gsat = new OpenLayers.Layer.Google("Google Satellite", > { type: G_SATELLITE_MAP, > 'sphericalMercator': true, > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new > OpenLayers.Projection("EPSG:3003"), > units: "m", > numZoomLevels: 18, > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, > -20037508,20037508, 20037508.34), > isBaselayer: true, > 'reproject': true > }); > > var Vect = new OpenLayers.Layer.WMS("Catasto e PTCP", > "http://localhost/mapserverms4w/mapserv.exe", > { map: 'CG.map', > layers: > 'ptcp_poly,ptcp_line,CG_GEO_PARTICELLE,CG_GEO_STRADE,CG_GEO_ACQUE,CG_GEO_FABBRICATI,CG_GEO_TESTI,CG_GEO_PARTICELLE_LABEL', > format: 'aggpng24', > //format: 'image/jpeg', > transparent: 'off' > }, > { maxExtent: new OpenLayers.Bounds(1530500, 4905500, > 1575000, 4935000), > scales: [500, 1000, 2000, 5000, 10000, 15000, 20000], > units: 'm', > projection: new OpenLayers.Projection("EPSG:3003"), > displayProjection: new > OpenLayers.Projection("EPSG:3003"), > gutter: 0, > ratio: 1, > wrapDateLine: true, > isBaselayer: false, > singleTile: true, > transitionEffect: 'resize' > > }); > > ... > > the problem is that if I activate the google layer, coords seem to be > wrong: instead of 1545000; 4920000 for a point in Gauss Boaga, google > satellite show me the same point at coord 1070000; 5539000 > > I can't understand where I'm wrong, because I'm quite sure that my > mapserver layer is in EPSG:3003 > > Thanks to everybody, > Kiks > > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-EPSG-900913-and-Italian-EPSG-3003-tp5248120p5255606.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rifins at gmail.com Mon Jul 5 06:57:57 2010 From: rifins at gmail.com (JuKiM) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Loading a map into a hidden div in Safari In-Reply-To: References: Message-ID: I've seen in "http://trac.openlayers.org/ticket/2187" that this can be a bug? Thanks! 2010/7/2 JuKiM > Hi, > > I have a page where a user can select some diferent items, and when an item > is selected, a div with a map is displayed showing where the item is.. > The div that contains the map is: > > > > and the map css is: > > #map > { > height:100%; > width:100%; > position:absolute; > top:0px; > bottom:0px; > left:0px; > right:0px; > cursor:pointer; > } > > If I show the div with jQuery like this: > onclick="$('#pop').show(250);"/> > > In FireFox, IE and Chrome everuthing goes ok.. But if I try to do with > Safari, the map is not shown.. > > Is there any problem with this? > > Thanks! > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100705/cce9aac9/attachment.html From adrian_gh.popa at romtelecom.ro Mon Jul 5 08:27:41 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon Message-ID: <4C31CFBD.6090306@romtelecom.ro> Hello everyone, Long time no see :) I want to add a "save" button to my editingToolbar (which was customized) in order to manually save changes. I am using the following code: //overload the EditingToolbar initialize function: OpenLayers.Control.EditingToolbar.prototype.initialize = function(layer, options){ OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]); this.addControls( [ new OpenLayers.Control.Navigation() ] ); var controls = [ new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Point, {'displayClass': 'olControlDrawFeaturePoint'}), new OpenLayers.Control.Button({ title: "Save changes", trigger: function() { saveStrategy.save(); }, displayClass: "olControlSaveFeatures" }) ]; this.addControls(controls); }; editingToolbar = new OpenLayers.Control.EditingToolbar( editableLayer ) ; map.addControl( editingToolbar ); Everything works as expected, but there is only one problem. In the toolbar I get instead of the "save_features_off.png" icon the "move" icon. Playing with firebug I can see that the active CSS for the toolbar (.olControlEditingToolbar) overrides ".olControlSaveFeaturesItemInactive" and overrides the image. If I disable the background-image statement from .olControlEditingToolbar I can see the save icon. Most likely the move icon is on top of the save icon... Any ideas on how to fix this - even as a hack? Thanks. I attached some small screenshots to illustrate this. Regards, Adrian -------------- next part -------------- A non-text attachment was scrubbed... Name: 2010-07-05_15-24-56_160x47.png Type: image/png Size: 2449 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100705/9c97e602/2010-07-05_15-24-56_160x47.png -------------- next part -------------- A non-text attachment was scrubbed... Name: 2010-07-05_15-25-16_495x214.png Type: image/png Size: 18990 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100705/9c97e602/2010-07-05_15-25-16_495x214.png From strk at keybit.net Mon Jul 5 11:41:51 2010 From: strk at keybit.net (strk) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Style context as an object ? Message-ID: <20100705154150.GC26151@keybit.net> Did anyone ever tried using a "proper" object as a Style context ? What I'm trying to do is create a class of style contexts and pass instances of them (for parametrized styles) as a Style.context, but 'this', within the callbacks, seem to always evaluate to the top of DOM. Example code: MyContextClass = function(radius) { this.radius = radius; }; MyContextClass.prototype.getRadius() { alert(this.radius); }; myContext = new MyContextClass(4); myStyle = OpenLayers.Style( { pointRadius: '${getRadius)' }, { context: myContext } ); --strk; () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html From p.scadden at gns.cri.nz Mon Jul 5 17:08:01 2010 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google EPSG:900913 and Italian EPSG:3003 In-Reply-To: <1278327169296-5255606.post@n2.nabble.com> References: <1278083812068-5248120.post@n2.nabble.com> <1278327169296-5255606.post@n2.nabble.com> Message-ID: <4C3249B1.9070805@gns.cri.nz> > but the google satellite map is not beeing reprojected... > As far as I know, you can reproject your vector features on the fly (say from 3003 to 900913) but you cannot reproject imagery of any sort on the fly. If you use google imagery, you are stuck with getting everything else into that projection. -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 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 kalyan.kamepalli at gmail.com Mon Jul 5 21:00:33 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Open Layers Configuration Message-ID: Hi Group, There are few security concerns at my organization and due to that, I can not directly access openlayers.org for OpenLayers.js. So, I installed it and changed my script as below
Now the problem is that, It's not showing any controls on the map and also not sending any requests to my server. Everything comes out with no image tiles. If I use openlayers.org/api/openlayers.js on my local machine it works perfect. Am I missing something ? Is is not the way to configure OpenLayers ? Thanks, Kalyan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/48c648db/attachment.html From kalyan.kamepalli at gmail.com Mon Jul 5 21:57:32 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Open Layers Configuration In-Reply-To: <4C33304B.379F.0037.1@asurequality.com> References: <4C33304B.379F.0037.1@asurequality.com> Message-ID: Hi Robert, Thanks for the reply. I just placed my html file in the openLayers folder and it came out with the default zoom and pan controls on the map. But, the real problem is that, it's not sending any WMS requests to my Web server. I wonder, I may have done something wrong. But, couldn't find it. It worked when I used the openlayers.org/api/openlayers.js reference.But, now I can not use it as my network is under security control. But, it should normally be okay when I reference to the local openlayers.js right ? Any suggestions ?? Thanks, Kalyan On Tue, Jul 6, 2010 at 11:31 AM, Robert Sanson < Robert.Sanson@asurequality.com> wrote: > I believe the problem is with this line: > > > The browser won't be able to find that location. It needs to be on the Web > server. If you put it in the same location as your html file, then you can > just use: > > > Regards, > > Robert > > >>> Kalyan Kamepalli 6/07/2010 1:00 p.m. >>> > Hi Group, > There are few security concerns at my organization and due to that, I can > not directly access openlayers.org for OpenLayers.js. So, I installed it > and changed my script as below > > > >
> > Now the problem is that, It's not showing any controls on the map and > also not sending any requests to my server. Everything comes out with no > image tiles. > If I use openlayers.org/api/openlayers.js on my local machine it works > perfect. > Am I missing something ? Is is not the way to configure OpenLayers ? > Thanks, > Kalyan > > > Click here to > report this email as spam. > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/a69d813d/attachment.html From kalyan.kamepalli at gmail.com Mon Jul 5 22:09:38 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Open Layers Configuration In-Reply-To: References: <4C33304B.379F.0037.1@asurequality.com> Message-ID: Another problem with the configuration, I got heaps of the following xml files in my OGC resources folder * * *Validation failed for parameter [exception], value [application/vnd.ogc.se_inimage].* * * Is that because I have no access to www.opengis.net ? I have no access no any of the above pages. Is this the reason for all my problems ? On Tue, Jul 6, 2010 at 11:57 AM, Kalyan Kamepalli < kalyan.kamepalli@gmail.com> wrote: > Hi Robert, > > Thanks for the reply. I just placed my html file in the openLayers folder > and it came out with the default zoom and pan controls on the map. But, the > real problem is that, it's not sending any WMS requests to my Web server. I > wonder, I may have done something wrong. But, couldn't find it. > > It worked when I used the openlayers.org/api/openlayers.js reference.But, > now I can not use it as my network is under security control. > > But, it should normally be okay when I reference to the local openlayers.js > right ? Any suggestions ?? > > Thanks, > Kalyan > > On Tue, Jul 6, 2010 at 11:31 AM, Robert Sanson < > Robert.Sanson@asurequality.com> wrote: > >> I believe the problem is with this line: >> >> >> The browser won't be able to find that location. It needs to be on the Web >> server. If you put it in the same location as your html file, then you can >> just use: >> >> >> Regards, >> >> Robert >> >> >>> Kalyan Kamepalli 6/07/2010 1:00 p.m. >>> >> Hi Group, >> There are few security concerns at my organization and due to that, I >> can not directly access openlayers.org for OpenLayers.js. So, I installed >> it and changed my script as below >> >> >> >>
>> >> Now the problem is that, It's not showing any controls on the map and >> also not sending any requests to my server. Everything comes out with no >> image tiles. >> If I use openlayers.org/api/openlayers.js on my local machine it works >> perfect. >> Am I missing something ? Is is not the way to configure OpenLayers ? >> Thanks, >> Kalyan >> >> >> Click here to >> report this email as spam. >> >> >> This message has been scanned for malware by SurfControl plc. >> www.surfcontrol.com >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/c46ee03c/attachment.html From kalyan.kamepalli at gmail.com Mon Jul 5 22:32:17 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Open Layers Configuration In-Reply-To: <4C333C9B.379F.0037.1@asurequality.com> References: <4C33304B.379F.0037.1@asurequality.com> <4C333C9B.379F.0037.1@asurequality.com> Message-ID: Robert, Yes. I did get images with WMS service from my server. I have JBOSS running on my machine as a web server. I'll place my html and openlayers.jc in htdocs and give it a go. On Tue, Jul 6, 2010 at 12:24 PM, Robert Sanson < Robert.Sanson@asurequality.com> wrote: > Hi Kalyan > > Can you get images from your WMS service directly by typing in a URL > similar to the following in your browser: > > http://siasporapv01:8080/gss/ogc? > srs=EPSG:2193&exceptions=application/vnd.ogc.se_inimage&version=1.1.1&transparent=true&request=GetMap&service=WMS&styles=&format=image/png&width=512&bbox=1476886.4500139,5133384.9500139,1482121.5499862,5138620.0499862&layers=0,1,11&height=512 > > Do you have a local Web server on your machine - such as Apache? In which > case you would have your html file and the OpenLayer.js file in the htdocs > directory. Then you would launch it by typing: > > http://localhost/myolmap.html > > regards, > > Robert Sanson > > > > >>> Kalyan Kamepalli 6/07/2010 2:09 p.m. >>> > Another problem with the configuration, > I got heaps of the following xml files in my OGC resources folder > ="*http://www.w3.org/1999/xlink*" xmlns:xsi="* > http://www.w3.org/2001/XMLSchema-instance*" version="*1.3.0*"xsi:schemaLocation > ="*http://www.opengis.net/ogc > http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd*"> > ***Validation failed for parameter > [exception], value [application/vnd.ogc.se_inimage].* > ** > > Is that because I have no access to www.opengis.net ? I have no access no > any of the above pages. Is this the reason for all my problems ? > > > On Tue, Jul 6, 2010 at 11:57 AM, Kalyan Kamepalli < > kalyan.kamepalli@gmail.com> wrote: > >> Hi Robert, >> Thanks for the reply. I just placed my html file in the openLayers >> folder and it came out with the default zoom and pan controls on the map. >> But, the real problem is that, it's not sending any WMS requests to my Web >> server. I wonder, I may have done something wrong. But, couldn't find it. >> It worked when I used the openlayers.org/api/openlayers.jsreference.But, now I can not use it as my network is under security control. >> >> But, it should normally be okay when I reference to the local >> openlayers.js right ? Any suggestions ?? >> Thanks, >> Kalyan >> >> On Tue, Jul 6, 2010 at 11:31 AM, Robert Sanson < >> Robert.Sanson@asurequality.com> wrote: >> >>> I believe the problem is with this line: >>> >>> The browser won't be able to find that location. It needs to be on the >>> Web server. If you put it in the same location as your html file, then you >>> can just use: >>> >>> Regards, >>> Robert >>> >>> >>> Kalyan Kamepalli 6/07/2010 1:00 p.m. >>> >>> >>> Hi Group, >>> There are few security concerns at my organization and due to that, I >>> can not directly access openlayers.org for OpenLayers.js. So, I >>> installed it and changed my script as below >>> >>> >>> >>>
>>> >>> Now the problem is that, It's not showing any controls on the map and >>> also not sending any requests to my server. Everything comes out with no >>> image tiles. >>> If I use openlayers.org/api/openlayers.js on my local machine it works >>> perfect. >>> Am I missing something ? Is is not the way to configure OpenLayers ? >>> Thanks, >>> Kalyan >>> >>> >>> Click here to >>> report this email as spam. >>> >>> >>> This message has been scanned for malware by SurfControl plc. >>> www.surfcontrol.com >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/9953d6a5/attachment.html From p.scadden at gns.cri.nz Mon Jul 5 23:47:35 2010 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Open Layers Configuration In-Reply-To: References: <4C33304B.379F.0037.1@asurequality.com> Message-ID: <4C32A757.7040401@gns.cri.nz> > Thanks for the reply. I just placed my html file in the openLayers > folder and it came out with the default zoom and pan controls on the > map. But, the real problem is that, it's not sending any WMS requests > to my Web server. I wonder, I may have done something wrong. But, > couldn't find it. Local html sending ajax to remote wms server is the security issue I believe. Put a webserver on your machine, set up the proxy, access it from there. -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/fd762221/attachment.html From kalyan.kamepalli at gmail.com Mon Jul 5 23:48:13 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Problem with WMS Service call - Exception Parameter Message-ID: Hello Group, I am facing a validation problem with one of the parameters openlayers try to request along with WMS request. *Validation failed for parameter [exception], value [application/vnd.ogc.se_inimage].* I am getting the image/map response when I use the same URL at browser and getting the above problem when I embed that in openlayers request. Does the open layer include this exception parameter with every WMS request. If so, How to stop it from sending that parameter ? Regards, Kalyan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/33cb6f7e/attachment.html From kalyan.kamepalli at gmail.com Tue Jul 6 01:46:13 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] WMS Map request Message-ID: Hi Group, I am trying to configure my WMS service with OpenLayers. My script looks below It should actually send only one WMS request for the first time and then act according to uses operations like Pan , Zoom. But, that is not how it's working. Everytime when I open this html file, it's sending 48 WMS requests and creating 48 image files in the resources folder and none of these images are turned up on the browser. Also, surprisingly all those 48 images are empty with just white background. Does any one what the problem is ? Thanks, Kalyan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/6aa12481/attachment.html From bartvde at osgis.nl Tue Jul 6 02:02:54 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] WMS Map request In-Reply-To: References: Message-ID: <31359.145.50.39.11.1278396174.squirrel@webmail.hostingdiscounter.nl> Hi, use singleTile: true and ratio: 1 in your layer options. Best regards, Bart > Hi Group, > > I am trying to configure my WMS service with OpenLayers. My script looks > below > > > > > It should actually send only one WMS request for the first time and then > act > according to uses operations like Pan , Zoom. But, that is not how it's > working. Everytime when I open this html file, it's sending 48 WMS > requests > and creating 48 image files in the resources folder and none of these > images > are turned up on the browser. Also, surprisingly all those 48 images are > empty with just white background. > > Does any one what the problem is ? > > Thanks, > Kalyan > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From kalyan.kamepalli at gmail.com Tue Jul 6 03:06:39 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] WMS Map request In-Reply-To: <31359.145.50.39.11.1278396174.squirrel@webmail.hostingdiscounter.nl> References: <31359.145.50.39.11.1278396174.squirrel@webmail.hostingdiscounter.nl> Message-ID: I Solved it. It's the problem with resolution. I changed the resolution from 1000 to 8000000 and that solved my problem. Is there a start/begin document for Open Layers ? other than that example developments ?? On Tue, Jul 6, 2010 at 4:02 PM, Bart van den Eijnden (OSGIS) < bartvde@osgis.nl> wrote: > Hi, > > use singleTile: true and ratio: 1 in your layer options. > > Best regards, > Bart > > > Hi Group, > > > > I am trying to configure my WMS service with OpenLayers. My script looks > > below > > > > > > > > > > It should actually send only one WMS request for the first time and then > > act > > according to uses operations like Pan , Zoom. But, that is not how it's > > working. Everytime when I open this html file, it's sending 48 WMS > > requests > > and creating 48 image files in the resources folder and none of these > > images > > are turned up on the browser. Also, surprisingly all those 48 images are > > empty with just white background. > > > > Does any one what the problem is ? > > > > Thanks, > > Kalyan > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/02b4e2f0/attachment.html From adrian_gh.popa at romtelecom.ro Tue Jul 6 03:23:13 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon In-Reply-To: <4C31CFBD.6090306@romtelecom.ro> References: <4C31CFBD.6090306@romtelecom.ro> Message-ID: <4C32D9E1.6040107@romtelecom.ro> Any ideas? I thought of changing the icon for the button (as a hack), but the trouble is - I need to add two buttons and both of them display the same icon - so I can't use that approach. Is there another way I can build my toolbar and specify what items to show? Any existing examples? Regards, Adrian On 07/05/2010 03:27 PM, Adrian Popa wrote: > Hello everyone, > > Long time no see :) > > I want to add a "save" button to my editingToolbar (which was > customized) in order to manually save changes. I am using the > following code: > > //overload the EditingToolbar initialize function: > OpenLayers.Control.EditingToolbar.prototype.initialize = > function(layer, options){ > OpenLayers.Control.Panel.prototype.initialize.apply(this, > [options]); > > this.addControls( > [ new OpenLayers.Control.Navigation() ] > ); > var controls = [ > new OpenLayers.Control.DrawFeature(layer, > OpenLayers.Handler.Point, {'displayClass': 'olControlDrawFeaturePoint'}), > new OpenLayers.Control.Button({ title: "Save changes", > trigger: function() { > > saveStrategy.save(); > }, > displayClass: > "olControlSaveFeatures" > }) > ]; > this.addControls(controls); > > }; > editingToolbar = new OpenLayers.Control.EditingToolbar( > editableLayer ) ; > map.addControl( editingToolbar ); > > Everything works as expected, but there is only one problem. In the > toolbar I get instead of the "save_features_off.png" icon the "move" > icon. Playing with firebug I can see that the active CSS for the > toolbar (.olControlEditingToolbar) overrides > ".olControlSaveFeaturesItemInactive" and overrides the image. If I > disable the background-image statement from .olControlEditingToolbar I > can see the save icon. Most likely the move icon is on top of the save > icon... > > Any ideas on how to fix this - even as a hack? > > Thanks. > > I attached some small screenshots to illustrate this. > > Regards, > Adrian > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/615633f4/attachment.html From adrian_gh.popa at romtelecom.ro Tue Jul 6 04:54:54 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon In-Reply-To: <4C32D9E1.6040107@romtelecom.ro> References: <4C31CFBD.6090306@romtelecom.ro> <4C32D9E1.6040107@romtelecom.ro> Message-ID: <4C32EF5E.3020508@romtelecom.ro> Update - I've upgraded from OpenLayers 2.8 to 2.9.1 and the issue is fixed. :) The toolbar looks fine now. Should have tried to update sooner... Regards, Adrian From kalyan.kamepalli at gmail.com Tue Jul 6 07:40:33 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Select notifiers & Map Markers Message-ID: Hello group, I have a WMS base map on OpenLayers and I want to use my web servers select web service to know the feature information or get notified of the selected feature. How do I get notified when the user select or click on the map ? Is there any default select notifiers/listeners available in OpenLayers ? I also want to mark that place with a 'X' or some kind of representation. Is there any such default services or little configurable services available ? Thanks, Kalyan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/f7907b07/attachment.html From sandeep_deep at hotmail.com Tue Jul 6 07:45:06 2010 From: sandeep_deep at hotmail.com (SSA) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google-Maps with WMS layer from GeoServer, printing problem in IE In-Reply-To: <1278408311596-5259533.post@n2.nabble.com> References: <1278408311596-5259533.post@n2.nabble.com> Message-ID: <1278416706655-5259911.post@n2.nabble.com> Solved. I had to remove opacity:0.80 in the WMS call from openlayers. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-Maps-with-WMS-layer-from-GeoServer-printing-problem-in-IE-tp5259533p5259911.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Tue Jul 6 07:50:30 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon In-Reply-To: <4C32EF5E.3020508@romtelecom.ro> References: <4C31CFBD.6090306@romtelecom.ro> <4C32D9E1.6040107@romtelecom.ro> <4C32EF5E.3020508@romtelecom.ro> Message-ID: <4C331886.6000707@romtelecom.ro> Well, I ran into the same problem while adding a custom button (revert changes). Here's my code: //overload the EditingToolbar initialize function: OpenLayers.Control.EditingToolbar.prototype.initialize = function(layer, options){ OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]); this.addControls( [ new OpenLayers.Control.Navigation() ] ); var controls = [ new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Point, {'displayClass': 'olControlDrawFeaturePoint'}), new OpenLayers.Control.Button({ title: "Save changes", trigger: function() { saveStrategy.save(); //after saving clear the dynamic items displayed layer.destroyFeatures(); }, displayClass: "olControlSaveFeatures" }), new OpenLayers.Control.Button({ title: "Revert changes", trigger: function() { layer.destroyFeatures(); }, displayClass: "revertButton" // show a custom icon }), ]; this.addControls(controls); }; editingToolbar = new OpenLayers.Control.EditingToolbar( editableLayer ) ; map.addControl( editingToolbar ); This is the CSS that is loaded in the map: div.revertButtonItemInactive { background-image:url("symbols/revert.png"); background-position:0 1px; background-repeat:no-repeat; } div.revertButtonItemActive { background-image:url("symbols/revert.png"); background-position:0 1px; background-repeat:no-repeat; } When I inspect with firebug I can see that my icon is overriden by the EditingToolbar: .olControlEditingToolbar div { background-image:url("img/editing_tool_bar.png"); background-repeat:no-repeat; float:right; height:24px; margin:5px; width:24px; } div.revertButtonItemInactive { background-image:url("symbols/revert.png"); //striken in firebug background-position:0 1px; background-repeat:no-repeat; //striken in firebug } For a similar save button (which comes bundled in OL), the difference is that the order of the two CSS sections is reversed. How can I reverse them back/fix this issue? Regards, Adrian On 07/06/2010 11:54 AM, Adrian Popa wrote: > Update - I've upgraded from OpenLayers 2.8 to 2.9.1 and the issue is > fixed. :) > > The toolbar looks fine now. Should have tried to update sooner... > > Regards, > Adrian > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP& Metro Compartiment IP Core& Backbone Phone: +40 21 400 3099 From lxnyce at gmail.com Tue Jul 6 08:03:25 2010 From: lxnyce at gmail.com (Lennox Antoine) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Select notifiers & Map Markers In-Reply-To: References: Message-ID: You should check out the examples, I believe all those questions are covered there : http://openlayers.org/dev/examples/example-list.html Click Handler : http://openlayers.org/dev/examples/click.html WMS Feature Information : http://openlayers.org/dev/examples/getfeatureinfo-popup.html Lennox On Tue, Jul 6, 2010 at 7:40 AM, Kalyan Kamepalli wrote: > Hello group, > > I have a WMS base map on OpenLayers and I want to use my web servers select > web service to know the feature information or get notified of the selected > feature. How do I get notified when the user select or click on the map ? > Is there any default select notifiers/listeners available in OpenLayers ? I > also want to mark that place with a 'X' or some kind of representation. Is > there any such default services or little configurable services available ? > > Thanks, > Kalyan > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/46e3ab0b/attachment.html From adrian_gh.popa at romtelecom.ro Tue Jul 6 08:19:31 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Getting server output when using save strategy Message-ID: <4C331F53.6050303@romtelecom.ro> Hello everyone, I'm trying to create a callback function for the save strategy so that I can display a status message for the user in case there are problems with saving their changes (e.g. - session expired, etc). I want the serverside script to send back a JSON formatted string that would describe what the problem was - for instance: ({'failure':true,'error':'You do not have rights to make changes'}). I indend to eval this message and extract the error and show it to the user. I have created a trigger that fires on "success", but I can't find anywhere the response from the server (so that I can parse it): var saveStrategy = new OpenLayers.Strategy.Save(); saveStrategy.events.on({'success': function(event){ alert("On save success"); }}); The event parameter that gets passed to the function has a "Strategy.Save" object and a "Protocol.Response" object. By browsing both of them I still couldn't find the original message returned by the server. By the way, the server returns content-type text/html. I noticed that the failure event is triggered when the server returns a 500 error, but I wouldn't want to have to crash my server-side script on purpose in order to catch a problem on the client-side. Am I missing something or doing something wrong? Thanks, Adrian From gudmundur.jokulsson at ksat.no Tue Jul 6 08:37:38 2010 From: gudmundur.jokulsson at ksat.no (=?ISO-8859-1?Q?Gu=F0mundur_J=F6kulsson?=) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] hardcoded gml:featureMemeber of WFS layer in openlayers ? Message-ID: <4C332392.1050803@ksat.no> hi everyone, I have a problem adding a WFS request as overlay on the openlayers map. Is there a way to tell it to search for other featureProperty elements then the basic "gml:featureMember" ? Is it realy hard-coded into the parser source that the featureProperty name shall be "gml:featureMember" ? The WFS service is set up with a GML Application Profile which defines its "FeaturePropertyType" as a restriction of the generic gml:FeaturePropertyType (and similar for the FeatureCollectionType). This means that the structure of the GML returned from the WFS request is: ........ It seems that the featureCollection level is ignored (as well as the schema location - since the schema is not loaded), so that one is not the problem. I can set the name space prefix, and element name for the "feature" level and the geometry, but can't find any way to do this for the featureMember level! If I run this from a file, and change the wfsos:featureMember into gml:featureMember it works fine (even if it violates the schema). To repeat the question: Is there any way to instruct openlayers to look for wfsos:featureMember instead ? PS: Here is the code for the WFS request linkage: wfs_ksat = new OpenLayers.Layer.Vector(id, { strategies: [new OpenLayers.Strategy.BBOX()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS.v1_0_0({ url: ksatWFSuri, featureType: "feature", featureNS: "http://cweb.ksat.no/cweb/schema/geoweb/oil", featurePrefix: "wfsos", geometryName: "oilSpill", srsName: "EPSG:4326", readFormat: new OpenLayers.Format.GML(), outputFormat: "GML2" }), styleMap: styleMap }); From enrico.oemi at gmail.com Tue Jul 6 08:44:01 2010 From: enrico.oemi at gmail.com (Kiks) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google EPSG:900913 and Italian EPSG:3003 In-Reply-To: <4C3249B1.9070805@gns.cri.nz> References: <1278083812068-5248120.post@n2.nabble.com> <1278327169296-5255606.post@n2.nabble.com> <4C3249B1.9070805@gns.cri.nz> Message-ID: <1278420241335-5260095.post@n2.nabble.com> Ok, thanks, now I manage in overlapping layers, but I still have a little accurance problem: it seems that there are around 20 meters of distance between the same point in google and in my maps. Phil Scadden wrote: > > >> but the google satellite map is not beeing reprojected... >> > As far as I know, you can reproject your vector features on the fly (say > from 3003 to 900913) but you cannot > reproject imagery of any sort on the fly. If you use google imagery, you > are stuck with getting everything else > into that projection. > -- > Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, > Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 > 5232 > > 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@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-EPSG-900913-and-Italian-EPSG-3003-tp5248120p5260095.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Tue Jul 6 08:50:05 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] hardcoded gml:featureMemeber of WFS layer in openlayers ? In-Reply-To: <4C332392.1050803@ksat.no> References: <4C332392.1050803@ksat.no> Message-ID: <15094.145.50.39.11.1278420605.squirrel@webmail.hostingdiscounter.nl> Hi, basically this requires writing your own format, which can extend OpenLayers.Format.GML.v3. OpenLayers only supports the GML 3.1.1 Simple Features profile out of the box: http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd It should not be too hard to write the format. Make sure you add wfsos to the namespaces array and add a reader function where necessary. Btw, in your code below you are using the old GML parser. Best regards, Bart > hi everyone, > > I have a problem adding a WFS request as overlay on the openlayers map. > Is there a way to tell it to search for other featureProperty elements > then the basic "gml:featureMember" ? > Is it realy hard-coded into the parser source that the featureProperty > name shall be "gml:featureMember" ? > > The WFS service is set up with a GML Application Profile which defines > its "FeaturePropertyType" as a restriction of the generic > gml:FeaturePropertyType (and similar for the FeatureCollectionType). > This means that the structure of the GML returned from the WFS request is: > > xmlns:wfsos="http://cweb.ksat.no/cweb/schema/geoweb/oil" ... > schemaLocation="http://cweb.ksat.no/cweb/schema/geoweb/oil ...> > > > > ........ > > It seems that the featureCollection level is ignored (as well as the > schema location - since the schema is not loaded), so that one is not > the problem. > I can set the name space prefix, and element name for the "feature" > level and the geometry, but can't find any way to do this for the > featureMember level! > > If I run this from a file, and change the wfsos:featureMember into > gml:featureMember it works fine (even if it violates the schema). > > To repeat the question: Is there any way to instruct openlayers to look > for wfsos:featureMember instead ? > > PS: > Here is the code for the WFS request linkage: > > wfs_ksat = new OpenLayers.Layer.Vector(id, { > strategies: [new OpenLayers.Strategy.BBOX()], > projection: new OpenLayers.Projection("EPSG:4326"), > protocol: new OpenLayers.Protocol.WFS.v1_0_0({ > url: ksatWFSuri, > featureType: "feature", > featureNS: > "http://cweb.ksat.no/cweb/schema/geoweb/oil", > featurePrefix: "wfsos", > geometryName: "oilSpill", > srsName: "EPSG:4326", > readFormat: new OpenLayers.Format.GML(), > outputFormat: "GML2" > }), > styleMap: styleMap > }); > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From umberto.nicoletti at gmail.com Tue Jul 6 08:53:13 2010 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google EPSG:900913 and Italian EPSG:3003 In-Reply-To: <1278420241335-5260095.post@n2.nabble.com> References: <1278083812068-5248120.post@n2.nabble.com> <1278327169296-5255606.post@n2.nabble.com> <4C3249B1.9070805@gns.cri.nz> <1278420241335-5260095.post@n2.nabble.com> Message-ID: You're probably missing some params in the epsg definition of 3003. it should look like this: +proj=tmerc +lat_0=0 +lon_0=9 +k=0.999600 +x_0=1500000 +y_0=0 +ellps=intl +units=m +no_defs +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +to +proj=latlong +datum=WGS84 the important bits are +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 Cheers, Umberto On Tue, Jul 6, 2010 at 2:44 PM, Kiks wrote: > > Ok, thanks, now I manage in overlapping layers, but I still have a little > accurance problem: it seems that there are around 20 meters of distance > between the same point in google and in my maps. > > > Phil Scadden wrote: >> >> >>> but the google satellite map is not beeing reprojected... >>> >> As far as I know, you can reproject your vector features on the fly (say >> from 3003 to 900913) but you cannot >> reproject imagery of any sort on the fly. If you use google imagery, you >> are stuck with getting everything else >> into that projection. >> -- >> Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, >> Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 >> 5232 >> >> 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@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-EPSG-900913-and-Italian-EPSG-3003-tp5248120p5260095.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From g8a at email.com Tue Jul 6 08:55:36 2010 From: g8a at email.com (aznan) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Load GML layer from text field? Message-ID: <1278420936039-5260132.post@n2.nabble.com> Hi! I want to show a GML polygon that I get from a web service on the map. All the examples of showing GML makes me load an XML file as in the gml-layer.html example: map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml")); I don't know how to load GML on the fly without a prepared file. Is it possible to draw a GML string I put in a hidden text field or a hidden div on the page instead? Thanks! /Matti -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Load-GML-layer-from-text-field-tp5260132p5260132.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From enrico.oemi at gmail.com Tue Jul 6 08:57:37 2010 From: enrico.oemi at gmail.com (Kiks) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Google EPSG:900913 and Italian EPSG:3003 In-Reply-To: References: <1278083812068-5248120.post@n2.nabble.com> <1278327169296-5255606.post@n2.nabble.com> <4C3249B1.9070805@gns.cri.nz> <1278420241335-5260095.post@n2.nabble.com> Message-ID: <1278421057222-5260137.post@n2.nabble.com> Thanks Umberto, I think that is exactly what I'm missing -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-EPSG-900913-and-Italian-EPSG-3003-tp5248120p5260137.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Tue Jul 6 08:58:34 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Load GML layer from text field? In-Reply-To: <1278420936039-5260132.post@n2.nabble.com> References: <1278420936039-5260132.post@n2.nabble.com> Message-ID: <24463.145.50.39.11.1278421114.squirrel@webmail.hostingdiscounter.nl> Check out the vector-formats.html example. Best regards, Bart > > Hi! > I want to show a GML polygon that I get from a web service on the map. All > the examples of showing GML makes me load an XML file as in the > gml-layer.html example: > > map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml")); > > I don't know how to load GML on the fly without a prepared file. Is it > possible to draw a GML string I put in a hidden text field or a hidden div > on the page instead? > > Thanks! > /Matti > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Load-GML-layer-from-text-field-tp5260132p5260132.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From nolasco_gabriel at yahoo.com.br Wed Jul 7 05:22:10 2010 From: nolasco_gabriel at yahoo.com.br (Gabriel Nolasco) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Getting server output when using save In-Reply-To: Message-ID: <746338.2735.qm@web37105.mail.mud.yahoo.com> Adrian, Try something like this: var saveStrategy = new OpenLayers.Strategy.Save({ ? onCommit: function(response){ ??? if(response.success()) { ????? alert(response.priv.responseText); ??? } ? } }); Best regards, Gabriel Nolasco Message: 2 Date: Tue, 06 Jul 2010 15:19:31 +0300 From: Adrian Popa Subject: [OpenLayers-Users] Getting server output when using save ??? strategy To: users Message-ID: <4C331F53.6050303@romtelecom.ro> Content-Type: text/plain; charset=UTF-8; format=flowed Hello everyone, I'm trying to create a callback function for the save strategy so that I can display a status message for the user in case there are problems with saving their changes (e.g. - session expired, etc). I want the serverside script to send back a JSON formatted string that would describe what the problem was - for instance: ({'failure':true,'error':'You do not have rights to make changes'}). I indend to eval this message and extract the error and show it to the user. I have created a trigger that fires on "success", but I can't find anywhere the response from the server (so that I can parse it): var saveStrategy = new OpenLayers.Strategy.Save(); saveStrategy.events.on({'success': function(event){ ? ? ? ? alert("On save success"); }}); The event parameter that gets passed to the function has a "Strategy.Save" object and a "Protocol.Response" object. By browsing both of them I still couldn't find the original message returned by the server. By the way, the server returns content-type text/html. I noticed that the failure event is triggered when the server returns a 500 error, but I wouldn't want to have to crash my server-side script on purpose in order to catch a problem on the client-side. Am I missing something or doing something wrong? Thanks, Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100707/b407a5fa/attachment.html From eider at fh-bingen.de Wed Jul 7 07:42:09 2010 From: eider at fh-bingen.de (Carsten Eider) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Modifiy-Feature and Projection Message-ID: <4C346811.5030302@fh-bingen.de> Hi list, i am focussing a heavy bug being a hard showstopper in my project. Problem: We have developed a so called GeoEditor. It works fine if we stay in EPSG:31467. Now we switched to EPSG:900913 in order to be able to use GoogleMaps EPSG:900913 is our internalProjection, whereas data is saved in the backend as EPSG:31467. There are nearly no problems while joining, splitting and creating multipolygons. The trouble starts, whenever we modify a feature using a ModifyFeatureControl. After removing or moving a point data is send to the server in EPSG:31467 declared as EPSG:900913. Data is send via WFS-T to our GeoServer-Backend. Any suggestions where my problems come from? TIA Carsten From adrian_gh.popa at romtelecom.ro Wed Jul 7 08:22:14 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Getting server output when using save In-Reply-To: <746338.2735.qm@web37105.mail.mud.yahoo.com> References: <746338.2735.qm@web37105.mail.mud.yahoo.com> Message-ID: <4C347176.8020707@romtelecom.ro> Thank you Gabriel, I tried your suggestion, but I get an error saying that response.priv is null (and it exists, but is null when looking in firebug). Do I need to add something to the layer definition in order for this to work? Regards, Adrian On 07/07/2010 12:22 PM, Gabriel Nolasco wrote: > Adrian, > > Try something like this: > > var saveStrategy = new OpenLayers.Strategy.Save({ > onCommit: function(response){ > if(response.success()) { > alert(response.priv.responseText); > } > } > }); > > Best regards, > Gabriel Nolasco > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100707/cc26428f/attachment.html From adrian_gh.popa at romtelecom.ro Wed Jul 7 08:44:49 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels Message-ID: <4C3476C1.1070501@romtelecom.ro> Hello, I have a map that uses just 12 zoom levels by defining numZoomLevels: 12 and an array of allowed resolutions. All base layers (Google, Yahoo and Mapserver) have a similar configuration (e.g. for Google: MIN_ZOOM_LEVEL: 7, MAX_ZOOM_LEVEL:19, RESOLUTIONS: res) and work as expected. However, the OSM layer allows me to zoom beyond these resolutions if I define it like this: var osm = new OpenLayers.Layer.OSM.Osmarender('OpenStreetMaps', {numZoomLevels: 12, minZoomLevel: 7, maxZoomLevel: 19}); If I add the resolutions parameter something interesting happens: the zoom is restricted, but I loose the tiles, because they can no longer be found (404 errors): var osm = new OpenLayers.Layer.OSM.Osmarender('OpenStreetMaps', {numZoomLevels: 12, minZoomLevel: 7, maxZoomLevel: 19, resolutions: res}); My "res" array is: var res = [2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.597164283]; The tiles requested have the following URLs: "NetworkError: 404 Not Found - http://a.tah.openstreetmap.org/Tiles/tile/1/76/42.png" (this is for a zoom level 1, which coresponds to a normal zoom level of 7 (I think)) My question is - is this a bug, or is there a way to instruct the layer to "adjust" the value of zoom by a constant (6+x)? I've looked over the OpenLayers.Layer.OSM definition, and I should be able to adjust the url attribute, but I have no idea how to force it to do an addition, or if this is the right way to go: OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.XYZ, { name: "OpenStreetMap", attribution: "Data CC-By-SA by OpenStreetMap", sphericalMercator: true, url: 'http://tile.openstreetmap.org/${z}/${x}/${y}.png', CLASS_NAME: "OpenLayers.Layer.OSM" }); Regards, Adrian From christopher.schmidt at nokia.com Wed Jul 7 09:13:20 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels In-Reply-To: <4C3476C1.1070501@romtelecom.ro> References: <4C3476C1.1070501@romtelecom.ro> Message-ID: <08D6F177-C142-413A-A350-761D36A33558@nokia.com> On Jul 7, 2010, at 8:44 AM, ext Adrian Popa wrote: > The tiles requested have the following URLs: "NetworkError: 404 Not > Found - http://a.tah.openstreetmap.org/Tiles/tile/1/76/42.png" (this is > for a zoom level 1, which coresponds to a normal zoom level of 7 (I think)) > > My question is - is this a bug, or is there a way to instruct the layer > to "adjust" the value of zoom by a constant (6+x)? There is no way to do this with the current OSM layer. Regards, -- Christopher Schmidt Nokia From adrian_gh.popa at romtelecom.ro Wed Jul 7 09:17:27 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels In-Reply-To: <08D6F177-C142-413A-A350-761D36A33558@nokia.com> References: <4C3476C1.1070501@romtelecom.ro> <08D6F177-C142-413A-A350-761D36A33558@nokia.com> Message-ID: <4C347E67.1030601@romtelecom.ro> Thanks for the answer Christopher, Are there any known workarounds for this (or planned enhancements), or should I give up this idea and move on? Regards, Adrian On 07/07/2010 04:13 PM, christopher.schmidt@nokia.com wrote: > On Jul 7, 2010, at 8:44 AM, ext Adrian Popa wrote: > >> The tiles requested have the following URLs: "NetworkError: 404 Not >> Found - http://a.tah.openstreetmap.org/Tiles/tile/1/76/42.png" (this is >> for a zoom level 1, which coresponds to a normal zoom level of 7 (I think)) >> >> My question is - is this a bug, or is there a way to instruct the layer >> to "adjust" the value of zoom by a constant (6+x)? >> > There is no way to do this with the current OSM layer. > > Regards, > -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP& Metro Compartiment IP Core& Backbone Phone: +40 21 400 3099 From mark at geo-bit.de Wed Jul 7 09:37:52 2010 From: mark at geo-bit.de (stepp) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Severel KML-Files, AnchoredBubble to selected Layer Message-ID: <1278509872446-5265256.post@n2.nabble.com> Hello, I loaded several KML-Files into Openlayers and they are all showing Anchorbubbles with the info. (this is working greate). Now I want to add a control, where I can select a layer and only the selected layer is showing the Anchorbubble. I do n not know where to go now further. Any help would be nice. Regards Clemens -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Severel-KML-Files-AnchoredBubble-to-selected-Layer-tp5265256p5265256.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mark at geo-bit.de Wed Jul 7 09:42:31 2010 From: mark at geo-bit.de (stepp) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] KML file not showing with open layer example In-Reply-To: <1278420441980-5260106.post@n2.nabble.com> References: <1278088029454-5248346.post@n2.nabble.com> <1278160966305-5250947.post@n2.nabble.com> <1278420441980-5260106.post@n2.nabble.com> Message-ID: <1278510151512-5265290.post@n2.nabble.com> The file is not working. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-file-not-showing-with-open-layer-example-tp5248346p5265290.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From fdesbois at codelutin.com Wed Jul 7 10:48:10 2010 From: fdesbois at codelutin.com (fdesbois) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] KML doesn't display from Http response Message-ID: <20100707164810.0ddf066a@garfield> Hi, I've got a problem when loading a KML file. If I use an existing file in my webapp, the layer appears correctly, but if I use a Servlet returning a Kml as response, it doesn't work. Here is the KML initialization where title and url are parameters of initialize method put onLoad of the page : var kml = new OpenLayers.Layer.GML(title, url, { format: OpenLayers.Format.KML, formatOptions: { extractStyles: true, extractAttributes: true } }); In firebug, there is those results. The both contents are the same KML file. The KML is valid and generated using JavaApiForKml [1] KML file ------------------------------------------------ url = "temp.kml" Response Server Apache-Coyote/1.1 Accept-Ranges bytes Etag W/"46676-1278501078000" Last-Modified Wed, 07 Jul 2010 11:11:18 GMT Content-Length 46676 Date Wed, 07 Jul 2010 13:13:09 GMT Request Host localhost:8080 User-Agent Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6 Accept text/html, application/xhtml+xml, application/xml ;q=0.9,*/*;q=0.8 Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 KML stream ------------------------------------------------- url = "servletName" Response Server Apache-Coyote/1.1 Content-Type application/vnd.google-earth.kml+xml Transfer-Encoding chunked Date Wed, 07 Jul 2010 13:20:45 GMT The request is the same I have the same result with content-type = application/xml ------------------------------------------------------------- I use OpenLayers with Apache Tapestry [2] Java Framework. I have a simple page that returns a StreamResponse with content-type as specified above. If it's not possible, do you have any tips to display the KML without creating explicitely the file on server or how to create it easily directly in webapp and remove the file in javascript ? Thanks for your help [1] http://code.google.com/p/javaapiforkml/ [2] http://tapestry.apache.org/tapestry5.1/ -- Florian Desbois SSLL Code Lutin http://www.codelutin.com tel : 02 40 50 29 28 R?seau Libre-Entreprise From rossko at culzean.clara.co.uk Wed Jul 7 12:00:02 2010 From: rossko at culzean.clara.co.uk (Rossko) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] KML file not showing with open layer example In-Reply-To: <1278512659539-5265523.post@n2.nabble.com> References: <1278088029454-5248346.post@n2.nabble.com> <1278160966305-5250947.post@n2.nabble.com> <1278420441980-5260106.post@n2.nabble.com> <1278510151512-5265290.post@n2.nabble.com> <1278512659539-5265523.post@n2.nabble.com> Message-ID: <1278518402230-5265952.post@n2.nabble.com> Its a KMZ - zipped - file. OpenLayers can't unzip files in javascript. Try it as a KML. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-file-not-showing-with-open-layer-example-tp5248346p5265952.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tamer.gur at vodafone.com Thu Jul 8 03:52:01 2010 From: tamer.gur at vodafone.com (TAMER GUR) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Markers layer and onMapResize Message-ID: Hi, I have a map and some vector and markers layer on it. When I resize the map for expand or collapse like in Google maps.Although my vector layers elments like point,line are correctly relocating. but my markers layers markers couldn't. when resizing the map I am calling map.updateSize() function when I look the code this function calls every layers onMapResize function and I think markers layer is not implementing this function. Any idea to solve this. Best Regards, Tamer Yasal Uyar? : Bu elektronik posta i?bu linki kullanarak ula?abilece?iniz Ko?ul ve ?artlar dokuman?na tabidir http://www.vodafone.com.tr/VodafoneHakkinda/eposta-hukuki-sartlar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100708/6b9897bd/attachment.html From bartvde at osgis.nl Thu Jul 8 03:59:57 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Markers layer and onMapResize In-Reply-To: References: Message-ID: <60853F66-3323-4F40-A27E-75EF38713606@osgis.nl> Hi, your analysis is right. 2 options to solve it: 1) create a patch to add onMapResize to the Marker layer 2) use a Vector layer with an externalGraphic, will look the same as your marker layer, but will properly resize. Best regards, Bart On Jul 8, 2010, at 9:52 AM, TAMER GUR wrote: > Hi, > > I have a map and some vector and markers layer on it. > > When I resize the map for expand or collapse like in Google maps.Although my vector layers elments like point,line are correctly relocating. > but my markers layers markers couldn't. > > when resizing the map I am calling map.updateSize() function when I look the code this function calls every layers onMapResize function and I think markers layer is not implementing this function. > > Any idea to solve this. > > Best Regards, > Tamer > > > > > > > > > > > > Yasal Uyar? : > > > Bu elektronik posta i?bu linki kullanarak ula?abilece?iniz Ko?ul ve ?artlar dokuman?na tabidir > > > http://www.vodafone.com.tr/VodafoneHakkinda/eposta-hukuki-sartlar.php > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100708/41c58c78/attachment.html From eta at le34.dk Thu Jul 8 06:50:43 2010 From: eta at le34.dk (Esben Taudorf) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] OpenLayers.Control.GetFeature with diffrent layers (typenames) and different servers Message-ID: Hi everybody. I have been using the OpenLayers.Control.WMSGetFeatureInfo with a drill-down to get featureinfo from diffrent layers on different servers. The control which worked fine, was configured like this: var control = new OpenLayers.Control.WMSGetFeatureInfo( { url: 'server1', layerUrls: ['server2'], layers: [Layer1_on_server1, Layer2_on_server1, Layer1_on_server2, Layer2_on_server2], title: 'Get Feature Info', queryVisible: true, drillDown: true, infoFormat: 'application/vnd.ogc.gml', eventListeners: { getfeatureinfo: function(event) { handleGetFeatureInfo(event); } } }); But one of the services, that I am using, have suddenly stopped supporting WMS GetFeatureInfo request. So now I have to use their WFS service to get featureinfo. My question is then can I use the OpenLayers.Control.GetFeature to get featureinfo from diffrent layers (typenames) and different servers? Below is my code that works with two layers (typenames) on the same server: var WFScontrol = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS({ readFormat: new OpenLayers.Format.GML(), formatOptions: { outputFormat: "application/vnd.ogc.gml" }, featureType: ['pdk:theme_pdk_lokalplan_vedtaget_v', 'pdk:theme_pdk_lokalplandelomraade_vedtaget_v'], url: 'http://wfs.plansystem.dk/geoserver/wfs?', version: '1.0.0', geometryName: ['geometri'], srsName: 'EPSG:25832' }), click: true, box: true }); Is it possible to get the GetFeature control to work like the WMSGetFeatureInfo? Any help or comment would be appreciated. Regards Esben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100708/15080d27/attachment.html From bartvde at osgis.nl Thu Jul 8 06:55:26 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] OpenLayers.Control.GetFeature with diffrent layers (typenames) and different servers In-Reply-To: References: Message-ID: <530F6358-5D96-4480-932F-4F5C0782F3C7@osgis.nl> No sorry this is not possible. Maybe multiple controls will work as a work-around. Best regards, Bart On Jul 8, 2010, at 12:50 PM, Esben Taudorf wrote: > Hi everybody. > > I have been using the OpenLayers.Control.WMSGetFeatureInfo with a drill-down to get featureinfo from diffrent layers on different servers. > The control which worked fine, was configured like this: > > var control = new OpenLayers.Control.WMSGetFeatureInfo( > { > url: 'server1', > layerUrls: ['server2'], > layers: [Layer1_on_server1, Layer2_on_server1, Layer1_on_server2, Layer2_on_server2], > title: 'Get Feature Info', > queryVisible: true, > drillDown: true, > infoFormat: 'application/vnd.ogc.gml', > eventListeners: > { > getfeatureinfo: function(event) { handleGetFeatureInfo(event); } > } > }); > > > But one of the services, that I am using, have suddenly stopped supporting WMS GetFeatureInfo request. So now I have to use their WFS service to get featureinfo. > > My question is then can I use the OpenLayers.Control.GetFeature to get featureinfo from diffrent layers (typenames) and different servers? > > Below is my code that works with two layers (typenames) on the same server: > > var WFScontrol = new OpenLayers.Control.GetFeature({ > protocol: > OpenLayers.Protocol.WFS({ > readFormat: new OpenLayers.Format.GML(), > formatOptions: { > outputFormat: "application/vnd.ogc.gml" > }, > featureType: ['pdk:theme_pdk_lokalplan_vedtaget_v', 'pdk:theme_pdk_lokalplandelomraade_vedtaget_v'], > url: 'http://wfs.plansystem.dk/geoserver/wfs?', > version: '1.0.0', > geometryName: ['geometri'], > srsName: 'EPSG:25832' > }), > click: true, > box: true > }); > > Is it possible to get the GetFeature control to work like the WMSGetFeatureInfo? > > Any help or comment would be appreciated. > > Regards Esben > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100708/e9ee2375/attachment.html From fdesbois at codelutin.com Thu Jul 8 08:59:27 2010 From: fdesbois at codelutin.com (fdesbois) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] KML doesn't display from Http response In-Reply-To: <20100707164810.0ddf066a@garfield> References: <20100707164810.0ddf066a@garfield> Message-ID: <1278593967117-5269962.post@n2.nabble.com> fdesbois wrote: > > > KML stream ------------------------------------------------- > > url = "servletName" > > Response > > Server Apache-Coyote/1.1 > Content-Type application/vnd.google-earth.kml+xml > Transfer-Encoding chunked > Date Wed, 07 Jul 2010 13:20:45 GMT > > The problem comes from Transfer-Encoding chunked. OpenLayers doesn't support this encoding for KML file... Only a part of the KML is rendered. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-doesn-t-display-from-Http-response-tp5265634p5269962.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From fdesbois at codelutin.com Thu Jul 8 09:52:38 2010 From: fdesbois at codelutin.com (fdesbois) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] KML doesn't display from Http response In-Reply-To: <1278593967117-5269962.post@n2.nabble.com> References: <20100707164810.0ddf066a@garfield> <1278593967117-5269962.post@n2.nabble.com> Message-ID: <1278597158644-5270193.post@n2.nabble.com> It's ok I resolve my problem setting the Content-Length in response with stream length bytes, so Transfer-Encoding will be not used and Kml layer is displayed correctly ! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-doesn-t-display-from-Http-response-tp5265634p5270193.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Thu Jul 8 10:19:31 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Overview map control in a seperate Ext Panel In-Reply-To: <1278087463296-5248304.post@n2.nabble.com> References: <1278087463296-5248304.post@n2.nabble.com> Message-ID: <1278598771820-5270321.post@n2.nabble.com> You can nest panels using the items property. For example: var myPanel = new Ext.Panel({ title: 'Top level', layout: 'border', items: [{ xtype:'panel', title:'Sub1', html:'Contents of sub panel 1', region: 'east' },{ xtype:'panel', title: 'Sub2', html:'Contents of sub panel 2', region: 'center' }], width:300, height:200, renderTo:'panelDiv' }); The layout property on the outer container determines the position of the items within it. Here, we have set the layout to be a border layout, which requires that items be given a region property like ?center?, ?north?, ?south?, ?east?, or ?west?. Take a look at http://www.sencha.com/deploy/dev/examples/layout-browser/layout-browser.html Ext Layout Browser Cheers, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overview-map-control-in-a-seperate-Ext-Panel-tp5248304p5270321.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From olaiya at arcor.de Thu Jul 8 13:04:33 2010 From: olaiya at arcor.de (Sascha M.) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] MergeNewParams / redraw Message-ID: <1278608673006-5271050.post@n2.nabble.com> Hi all, I use: ==== - Openlayers 2.9.1 - GeoExt 0.7 - GeoServer 1.7.7 I want: ===== ... to use a new SLD for my WMS-Layer. The Layer is inside a LayerTree, a map and inside a Legend-Panel. Problem: ====== I use the below code to update the SLD. The Legend-Graphic inside the Legend-Panel accepts the new Style. The map doesn't accept the new style. There is still the old style for the layer. Code: ==== node.layer.mergeNewParams( { format : "image/png", transparent : "true", sld_body : sld }, { isBaseLayer : false, unsupportedBrowsers : [] } ); node.layer.redraw(true); I found a lot posts about this topic. But nothings helped. Now, I'm not sure to use mergeNewParams() the right way. Can I use this Method with OpenLayers.Layer.WMS? Is there anything else I have to consider? Thanks Sascha -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MergeNewParams-redraw-tp5271050p5271050.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bmcbride at chacompanies.com Thu Jul 8 13:53:48 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] MergeNewParams / redraw In-Reply-To: <1278608673006-5271050.post@n2.nabble.com> References: <1278608673006-5271050.post@n2.nabble.com> Message-ID: <1278611628731-5271258.post@n2.nabble.com> Try using styles: instead of sld_body:. ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MergeNewParams-redraw-tp5271050p5271258.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Thu Jul 8 18:51:31 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] MergeNewParams / redraw In-Reply-To: <1278611628731-5271258.post@n2.nabble.com> References: <1278608673006-5271050.post@n2.nabble.com> <1278611628731-5271258.post@n2.nabble.com> Message-ID: <6B5AC22E-DE7F-442B-BFFD-0CD7784D428C@opengeo.org> On Jul 8, 2010, at 19:53 , BMcBride wrote: > Try using styles: instead of sld_body:. No. sld_body is correct. But accompany it with styles: "" in the mergeNewParams object. Regards, Andreas. > > ----- > Bryan R. McBride, GISP > http://www.bryanmcbride.com bryanmcbride.com > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/MergeNewParams-redraw-tp5271050p5271258.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From kalyan.kamepalli at gmail.com Thu Jul 8 20:10:40 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Transparent Overlays Message-ID: Hello Group, I have a base layer and a couple of overlays. The base layer has some objects to display and both the overlays have nothing to display. But the total map shows nothing but just a white sceen. I suspect the overlays hiding the base layer. How do I set these overlays transparent so that I can see the base layer and on top of that these overlays ? My WMS layer definitions are as below var gisLayer = new OpenLayers.Layer.WMS( 'Gis Layer' , wmsURL , { layers: 'gis', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: false } ); var adminLayer = new OpenLayers.Layer.WMS( 'Admin Layer' , wmsURL , { layers: 'admin', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: false } ); var cadLayer = new OpenLayers.Layer.WMS( 'Cadastre Layer' , wmsURL , { layers: 'cadastre', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: true} ); I am sorry, I have a very little knowledge in Java Script and so I keep posting these little things. Thanks, Kalyan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100709/a1a1b6b2/attachment.html From ahocevar at opengeo.org Fri Jul 9 02:14:45 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Transparent Overlays In-Reply-To: References: Message-ID: <2D22B3F6-3E6B-418A-88DE-B58B445FD04A@opengeo.org> Hi, after "format: 'image/png'", add ", transparent: true". That's it. Regards, Andreas. On Jul 9, 2010, at 02:10 , Kalyan Kamepalli wrote: > Hello Group, > > I have a base layer and a couple of overlays. The base layer has some objects to display and both the overlays have nothing to display. But the total map shows nothing but just a white sceen. I suspect the overlays hiding the base layer. How do I set these overlays transparent so that I can see the base layer and on top of that these overlays ? > > My WMS layer definitions are as below > > var gisLayer = new OpenLayers.Layer.WMS( 'Gis Layer' , wmsURL , { layers: 'gis', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: false } ); > var adminLayer = new OpenLayers.Layer.WMS( 'Admin Layer' , wmsURL , { layers: 'admin', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: false } ); > var cadLayer = new OpenLayers.Layer.WMS( 'Cadastre Layer' , wmsURL , { layers: 'cadastre', styles: 'Default', format: 'image/png' } , { buffer: 1 , isBaseLayer: true} ); > > I am sorry, I have a very little knowledge in Java Script and so I keep posting these little things. > > Thanks, > Kalyan > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From olaiya at arcor.de Fri Jul 9 03:40:39 2010 From: olaiya at arcor.de (=?ISO-8859-1?Q?Sascha_M=FCller?=) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] MergeNewParams / redraw In-Reply-To: <6B5AC22E-DE7F-442B-BFFD-0CD7784D428C@opengeo.org> References: <1278608673006-5271050.post@n2.nabble.com> <1278611628731-5271258.post@n2.nabble.com> <6B5AC22E-DE7F-442B-BFFD-0CD7784D428C@opengeo.org> Message-ID: <4C36D277.60409@arcor.de> Hi Andreas, I tried your way. node.layer.mergeNewParams( { sld_body : sld, // sld is a var with the content SLD_BODY (see below in the table) 'styles' : "" } ); The result is still the same. The Legend gets the new Style. The map not. These are the Parameters Firebug gaves me, when I perform mergeNewParams(). EXCEPTIONS |application/vnd.ogc.se_xml| FORMAT |image/gif| LAYER |WL:Gewaesser| PROJECTION |EPSG:31256| REQUEST |GetLegendGraphic| SCALE |125000.1462402| SERVICE |WMS| SLD_BODY |||GewaesserGewaesser StyleRGB 204 224 255Polygon</Title||><PolygonSymbolizer><Fill><CssParameter name="fill">#000000</CssParameter></Fill></PolygonSymbolizer||></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>| TRANSPARENT |true| VERSION |1.1.1| The Request ist 'GetLegendGraphic'. Is this right? Is there a requirement, that the new Style has to be on the GeoServer? Regards, Sascha > On Jul 8, 2010, at 19:53 , BMcBride wrote: > > >> Try using styles: instead of sld_body:. >> > No. sld_body is correct. But accompany it with > styles: "" > in the mergeNewParams object. > > Regards, > Andreas. > > >> ----- >> Bryan R. McBride, GISP >> http://www.bryanmcbride.com bryanmcbride.com >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/MergeNewParams-redraw-tp5271050p5271258.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100709/7024f68b/attachment.html From olaiya at arcor.de Fri Jul 9 04:04:23 2010 From: olaiya at arcor.de (=?ISO-8859-1?Q?Sascha_M=FCller?=) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] MergeNewParams / redraw [SOLVED] In-Reply-To: <4C36D277.60409@arcor.de> References: <1278608673006-5271050.post@n2.nabble.com> <1278611628731-5271258.post@n2.nabble.com> <6B5AC22E-DE7F-442B-BFFD-0CD7784D428C@opengeo.org> <4C36D277.60409@arcor.de> Message-ID: <4C36D807.9080508@arcor.de> Hi Andreas, I changed the Name of the NamedLayer inside the sld. <NamedLayer> <Name>Gewaesser</Name> to <NamedLayer> <Name>WL:Gewaesser</Name> Now, it works. Thanks a lot! regards, Sascha > Hi Andreas, > > I tried your way. > > node.layer.mergeNewParams( > { > sld_body : sld, // sld is a var with the content SLD_BODY (see > below in the table) > 'styles' : "" > } > ); > > The result is still the same. The Legend gets the new Style. The map not. > These are the Parameters Firebug gaves me, when I perform > mergeNewParams(). > > EXCEPTIONS |application/vnd.ogc.se_xml| > FORMAT |image/gif| > LAYER |WL:Gewaesser| > PROJECTION |EPSG:31256| > REQUEST |GetLegendGraphic| > SCALE |125000.1462402| > SERVICE |WMS| > SLD_BODY |||<?xml version="1.0" > encoding="ISO-8859-1"?><StyledLayerDescriptor version="1.0.0" > xmlns="http://www.opengis||.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi||="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas||.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"><NamedLayer><Name>Gewaesser</Name><UserStyle><Title||>Gewaesser > StyleRGB 204 224 > 255Polygon</Title||><PolygonSymbolizer><Fill><CssParameter > name="fill">#000000</CssParameter></Fill></PolygonSymbolizer||></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>| > > TRANSPARENT |true| > VERSION |1.1.1| > > > The Request ist 'GetLegendGraphic'. Is this right? > > Is there a requirement, that the new Style has to be on the GeoServer? > > Regards, > Sascha > >> On Jul 8, 2010, at 19:53 , BMcBride wrote: >> >> >>> Try using styles: instead of sld_body:. >>> >> No. sld_body is correct. But accompany it with >> styles: "" >> in the mergeNewParams object. >> >> Regards, >> Andreas. >> >> >>> ----- >>> Bryan R. McBride, GISP >>> http://www.bryanmcbride.com bryanmcbride.com >>> -- >>> View this message in context:http://osgeo-org.1803224.n2.nabble.com/MergeNewParams-redraw-tp5271050p5271258.html >>> Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >> > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100709/cb518a49/attachment.html From bradspencer at ozemail.com.au Fri Jul 9 07:12:18 2010 From: bradspencer at ozemail.com.au (Brad Spencer) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] RegularPolygon as a search polygon Message-ID: <001301cb1f57$98372e00$c8a58a00$@com.au> Guys, I have been able to build a control to freehand digitize a polygon and then launch a function to use the polygon as a search polygon in a WFS request. This works for me: drawControls = new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.Polygon) ; // extend the drawcontrol with its behavior OpenLayers.Util.extend(drawControls, { draw: function (){ this.polygon = new OpenLayers.Handler.Polygon(drawControls,{"done": this.notice}); this.polygon.activate();}, notice: function (polygon) { // get vertices of polygon into and array of coordinate pairs var polyString = polygon.toString() ; // do whatever with polygon linestring here . } }); map.addControl(drawControls); I wanted to use the RegularPolygon feature to do the same but it does not launch the function in the same way after the vector geometry is successfully created. var polyType = 6; var rad = ''; polyOptions = {sides: polyType, radius: rad, angle: 0} shapeControl = new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); // extend the shapeControl with its behavior OpenLayers.Util.extend(shapeControl, { draw: function (){ this.polygon = new OpenLayers.Handler.RegularPolygon(shapeControl, {"done": this.notice}); this.polygon.activate();}, notice: function (polygon) { // get vertices of polygon into and array of coordinate pairs var polyString = polygon.toString() ; // do whatever with polygon linestring here . } }); In both cases the polygon is created and drawn to the vectorLayer. Can anyone see anything obviously wrong with the second piece of code? Cheers, Brad Spencer General Manager NuMaps "DemographicDrapes" www.numaps.com.au brad@numaps.com.au 0404 841 131 (02)9481 7024 "DemographicDrapes <http://www.numaps.com.au/numaps/index.cfm/resources/resources/apps4nsw-comp etition-winner/> wins NSW award" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100709/19f12ae0/attachment.html From sdjbm17 at gmail.com Fri Jul 9 12:05:37 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <1278618385777-5271709.post@n2.nabble.com> References: <1278618385777-5271709.post@n2.nabble.com> Message-ID: <1278691537031-5274925.post@n2.nabble.com> Hi there, You have a 3 MB javascript file for your map! that's HUGE! And the time to proccess all that file is pretty much and that's why the browser is warning you about it. You have to optimize your code somehow.. You should use a different datasource for such amount of information but not your javascript file..! Cheers, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5274925.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Fri Jul 9 14:31:04 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <1278694609012-5275168.post@n2.nabble.com> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> Message-ID: <1278700264079-5275518.post@n2.nabble.com> Well, despite I'm not a pro I tell you that you should read more about GIS.. what it means to do, how it works, etc. If you don't have the concepts clear you will take the very difficult way! So I suggest you to read about GIS basic until you have a clear panorama. And answering your question, take a look a this article http://www.ibm.com/developerworks/library/ar-gis1/ Building a geospatial information system, Part 1: Understanding the basics hope that helps you, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5275518.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rossko at culzean.clara.co.uk Fri Jul 9 15:21:35 2010 From: rossko at culzean.clara.co.uk (Rossko) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <1278694609012-5275168.post@n2.nabble.com> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> Message-ID: <1278703295117-5275679.post@n2.nabble.com> You could serve transparent image tiles to overlay on ordinary maps ; so that all the hard work is done server-side. For fixed data, like borders, you can produce the imagery ahead of time once only. This is what WMS is for in OpenLayers. There might well be other problems with your map ... I can't get past the enormous javascript to find out! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5275679.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rossko at culzean.clara.co.uk Sat Jul 10 17:32:26 2010 From: rossko at culzean.clara.co.uk (Rossko) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <1278768401408-5277664.post@n2.nabble.com> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> <1278703295117-5275679.post@n2.nabble.com> <1278768401408-5277664.post@n2.nabble.com> Message-ID: <1278797546947-5278670.post@n2.nabble.com> > example:http://www.myethiopia.org/KililisandWoredasandZones/Kilil/Kilil.html (shouldn't take more than 14 sec :)) Took three minutes and a "script running slow" prompt in IE ; in Firefox about the same time and eight prompts. Not all PCs or browsers are alike. The javascript file here is "only" 2Mb ... you've got to simplify. Just taking out whitespace would help. Do you really need both google and yahoo maps? Can you simplify the projections in use? Would another data format work quicker than WKT? Do your points really need to be specified to better than 1mm precision? Seperating the data from the script is good practice, and should allow you to at least show some kind of map while all the crunching is going on, instead of the nothingness that currently greets visitors to your page. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5278670.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ngerber999 at gmail.com Sat Jul 10 18:08:04 2010 From: ngerber999 at gmail.com (Nathan Gerber) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <1278797546947-5278670.post@n2.nabble.com> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> <1278703295117-5275679.post@n2.nabble.com> <1278768401408-5277664.post@n2.nabble.com> <1278797546947-5278670.post@n2.nabble.com> Message-ID: <AANLkTik2YMWzgMBflvwFIyK29Ey0e6E1iysP2rw1Z1fh@mail.gmail.com> As others have said you really should be doing the following: 1) Reproject the geometries on the server so that the web browser will not need to do this for each geometry. Your geometries range from around 10,000 points to nearly 14,000 points. 2) If at all possible run a simplification on the geometries so that you do not have so many points as that alone is an issue for most web browsers. It actually made even Google Chrome feel sluggish when dong the hover events. This can be done in PostgreSQL/PostGIS as well as a slew of desktop software packages. 3) Try rounding your decimal places to 5 or 6 instead of going to 9, this will at least help you on your download sizes so that the initial page load occurs quicker. -- Nathan Gerber On Sat, Jul 10, 2010 at 5:32 PM, Rossko <rossko@culzean.clara.co.uk> wrote: > > > > example: > http://www.myethiopia.org/KililisandWoredasandZones/Kilil/Kilil.html > (shouldn't take more than 14 sec :)) > > Took three minutes and a "script running slow" prompt in IE ; in Firefox > about the same time and eight prompts. Not all PCs or browsers are alike. > > The javascript file here is "only" 2Mb ... you've got to simplify. Just > taking out whitespace would help. Do you really need both google and yahoo > maps? Can you simplify the projections in use? Would another data format > work quicker than WKT? Do your points really need to be specified to > better > than 1mm precision? > > Seperating the data from the script is good practice, and should allow you > to at least show some kind of map while all the crunching is going on, > instead of the nothingness that currently greets visitors to your page. > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5278670.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100710/dfc65836/attachment.html From ashore3 at verizon.net Sat Jul 10 21:35:39 2010 From: ashore3 at verizon.net (Arnie Shore) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <AANLkTik2YMWzgMBflvwFIyK29Ey0e6E1iysP2rw1Z1fh@mail.gmail.com> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> <1278703295117-5275679.post@n2.nabble.com> <1278768401408-5277664.post@n2.nabble.com> <1278797546947-5278670.post@n2.nabble.com> <AANLkTik2YMWzgMBflvwFIyK29Ey0e6E1iysP2rw1Z1fh@mail.gmail.com> Message-ID: <4C391FEB.6080708@verizon.net> Have you considered using the Douglas Peucker point reduction algorithm as a way of, well, reducing the number of points? See http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm AS From jehanzeb_orakzai at yahoo.com Sun Jul 11 07:31:06 2010 From: jehanzeb_orakzai at yahoo.com (Jehanzeb Orakzai) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Overview map control not synchronized with the map control Message-ID: <92197.90289.qm@web24304.mail.ird.yahoo.com> Hi, ? I have setup the raster data in GeoServer and publish it. The raster data consist of?a geotiff image and?its size is 1.5 GB and?resolution is 2.5m color. Using openlayers map control?it is?displayed on the webpage. I have also added the overview map control. But the problem is, it is not sychronized with the map control i.e the overview map control does'nt show the area which is displayed in the map and it is also taking time to display it. Some body point me in a right direction how to sort it out. ? Any help is appreciated. ? Thank you, -- Jehanzeb -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100711/aa9660a8/attachment.html From zac.spitzer at gmail.com Sun Jul 11 07:42:53 2010 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Overview map control not synchronized with the map control In-Reply-To: <92197.90289.qm@web24304.mail.ird.yahoo.com> References: <92197.90289.qm@web24304.mail.ird.yahoo.com> Message-ID: <AANLkTilCs9GYt7w6Z4A26qU_irNLPejcYOuBSMgP3E8k@mail.gmail.com> Try downsampling your image and using that for your overview map 1.5gb to a tiny little map is a lot of processing... ie like for say a 5k image result On 11 Jul 2010 21:31, "Jehanzeb Orakzai" <jehanzeb_orakzai@yahoo.com> wrote: > Hi, > > I have setup the raster data in GeoServer and publish it. The raster data consist of a geotiff image and its size is 1.5 GB and resolution is 2.5m color. Using openlayers map control it is displayed on the webpage. I have also added the overview map control. But the problem is, it is not sychronized with the map control i.e the overview map control does'nt show the area which is displayed in the map and it is also taking time to display it. Some body point me in a right direction how to sort it out. > > Any help is appreciated. > > > Thank you, > -- > Jehanzeb > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100711/c8ecf311/attachment.html From rajjad at gmail.com Sun Jul 11 08:10:57 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Overview map control not synchronized with the map control In-Reply-To: <AANLkTilCs9GYt7w6Z4A26qU_irNLPejcYOuBSMgP3E8k@mail.gmail.com> References: <92197.90289.qm@web24304.mail.ird.yahoo.com> <AANLkTilCs9GYt7w6Z4A26qU_irNLPejcYOuBSMgP3E8k@mail.gmail.com> Message-ID: <AANLkTim4oWm-XEEzrjPPet1_LkSAmzVYvudyKDkST6fU@mail.gmail.com> you need to precahe your image, you GeoWebCache. Its embeded in Geoserver if you are using that regards, Imran On Sun, Jul 11, 2010 at 4:42 PM, Zac Spitzer <zac.spitzer@gmail.com> wrote: > Try downsampling your image and using that for your overview map > > 1.5gb to a tiny little map is a lot of processing... ie like for say a 5k > image result > > On 11 Jul 2010 21:31, "Jehanzeb Orakzai" <jehanzeb_orakzai@yahoo.com> wrote: >> Hi, >> >> I have setup the raster data in GeoServer and publish it. The raster data >> consist of?a geotiff image and?its size is 1.5 GB and?resolution is 2.5m >> color. Using openlayers map control?it is?displayed on the webpage. I have >> also added the overview map control. But the problem is, it is not >> sychronized with the map control i.e the overview map control does'nt show >> the area which is displayed in the map and it is also taking time to display >> it. Some body point me in a right direction how to sort it out. >> >> Any help is appreciated. >> >> >> Thank you, >> -- >> Jehanzeb >> >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- I.R From bradspencer at ozemail.com.au Sun Jul 11 09:23:00 2010 From: bradspencer at ozemail.com.au (Brad Spencer) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] RegularPolygon as a search polygon In-Reply-To: <001301cb1f57$98372e00$c8a58a00$@com.au> References: <001301cb1f57$98372e00$c8a58a00$@com.au> Message-ID: <002001cb20fc$2f5247c0$8df6d740$@com.au> Guys, Still need some help on this. I have taken the simple app from examples and edited it to see if I can make this work. It works but not the way I expect it to work? See : http://staging.demos.numaps.com.au/shape_tester.html I have extended the DrawFeature control to echo out the coordinates of the vector generated polygon. When the control is deactivated (controlled by the 'navigate' radio) the notice function is triggered - not sure why? I am trying to trigger this function only when the control is activated. Its just not doing what I would have expected so I must be doing something really stupid. Can someone have a quick look at this for me? Cheers. Brad.. From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Brad Spencer Sent: Friday, July 09, 2010 9:12 PM To: openlayers users Subject: [OpenLayers-Users] RegularPolygon as a search polygon Guys, I have been able to build a control to freehand digitize a polygon and then launch a function to use the polygon as a search polygon in a WFS request. This works for me: drawControls = new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.Polygon) ; // extend the drawcontrol with its behavior OpenLayers.Util.extend(drawControls, { draw: function (){ this.polygon = new OpenLayers.Handler.Polygon(drawControls,{"done": this.notice}); this.polygon.activate();}, notice: function (polygon) { // get vertices of polygon into and array of coordinate pairs var polyString = polygon.toString() ; // do whatever with polygon linestring here . } }); map.addControl(drawControls); I wanted to use the RegularPolygon feature to do the same but it does not launch the function in the same way after the vector geometry is successfully created. var polyType = 6; var rad = ''; polyOptions = {sides: polyType, radius: rad, angle: 0} shapeControl = new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); // extend the shapeControl with its behavior OpenLayers.Util.extend(shapeControl, { draw: function (){ this.polygon = new OpenLayers.Handler.RegularPolygon(shapeControl, {"done": this.notice}); this.polygon.activate();}, notice: function (polygon) { // get vertices of polygon into and array of coordinate pairs var polyString = polygon.toString() ; // do whatever with polygon linestring here . } }); In both cases the polygon is created and drawn to the vectorLayer. Can anyone see anything obviously wrong with the second piece of code? Cheers, Brad Spencer General Manager NuMaps "DemographicDrapes" www.numaps.com.au brad@numaps.com.au 0404 841 131 (02)9481 7024 "DemographicDrapes <http://www.numaps.com.au/numaps/index.cfm/resources/resources/apps4nsw-comp etition-winner/> wins NSW award" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100711/b09d8060/attachment.html From kalyan.kamepalli at gmail.com Sun Jul 11 20:17:30 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] Custom Map Service Message-ID: <AANLkTimsyvPHatvK9trGa6WoieEcE7P0rIUBGDBCZpBh@mail.gmail.com> Hi, I confiigured openLayers with WMS services to my server. Unfortunately, the map caching at my server is not supported with WMS requests and is only supported with my native map requests. So, I now have to develop/write a custom function in openlayes that reads my native map response and presents the map layer on openlayers. I am a novice in Java script and my timelines are too short. I need you people help to write it. My native map service response is as shown below <?xml version="1.0" encoding="UTF-8" ?> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <return xmlns:gml="*http://www.opengis.net/gml*" xmlns:xsi="* http://www.w3.org/2001/XMLSchema-instance*" xmlns:swgml="* http://www.gesmallworld.com/swgml*" xmlns:sw="* http://www.gesmallworld.com/sw*" xmlns:xsd="* http://www.w3.org/2001/XMLSchema*" xmlns:xlink="* http://www.w3.org/1999/xlink*"> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <service_response service="*map*" request="*map*" request_id="* 31717296E20A6A5E8962C96BEA90D507-1278893297942*" session_id="* 31717296E20A6A5E8962C96BEA90D507*"> * * <display_style_name>*OverView*</display_style_name> * * <crs>*nsw_trans_mercator_mm*</crs> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <centre> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <gml:Point> * * <gml:pos>*9.96427566202E7 3.96629324049E8*</gml:pos> * * </gml:Point> * * </centre> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <image_layers> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <hash> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <element key="*sw_map*"> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <map_layer_response> * * <layer_name>*sw_map*</layer_name> * * <ncols>*1*</ncols> * * <nrows>*1*</nrows> * * <tile_height>*200*</tile_height> * * <tile_width>*200*</tile_width> * * <viewport_offset_x>*0*</viewport_offset_x> * * <viewport_offset_y>*0*</viewport_offset_y> * * <image_format>*jpeg*</image_format> * * <dynamic>*true*</dynamic> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <urls> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <collection> * * <element>* http://siasporapv01:8080/gss/resource/map/map73962892604192559077.jpeg?token=-835661748 *</element> </collection> </urls> </map_layer_response> </element> </hash> </image_layers> * * <units>*mm*</units> * * <style_group>*default*</style_group> *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> <options> * * <hash /> * * </options> * * <view_scale>*7477726.710076923*</view_scale> * * <rotation>*0*</rotation> * * <map_element_key>*swrefVdisplay_styleVidZ3061622Q13*</map_element_key> * * <world>*swrefVworldVdatasetZgisVuniverseZ0VworldZ0*</world> * * <ace_name>*street_light*</ace_name> * * <name>*sw_default*</name> * * </service_response> * * </return> So, how difficult it is to write a custom function ( just like the WMS one ) that automatically sends the pan, zoom requests to my server. Thanks, Kalyan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/c4d12ba7/attachment.html From kalyan.kamepalli at gmail.com Sun Jul 11 22:42:39 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:57 2010 Subject: [OpenLayers-Users] New Layer Configurations Message-ID: <AANLkTikwdbXW28OUq49QXgSyDxr5g7qnfPXhBbB8SNCC@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: SW.js Type: application/x-javascript Size: 9601 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/43f94677/SW.js From kalyan.kamepalli at gmail.com Sun Jul 11 23:00:55 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] New Layer Configurations In-Reply-To: <AANLkTikwdbXW28OUq49QXgSyDxr5g7qnfPXhBbB8SNCC@mail.gmail.com> References: <AANLkTikwdbXW28OUq49QXgSyDxr5g7qnfPXhBbB8SNCC@mail.gmail.com> Message-ID: <AANLkTilBjn_AMBjOsRhiD7CzHOwfFiEE_e7xujyrJy07@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: SW.js Type: application/x-javascript Size: 9601 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/3f09cca9/SW.js From kalyan.kamepalli at gmail.com Mon Jul 12 00:08:56 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] New Layer Configurations In-Reply-To: <AANLkTikwdbXW28OUq49QXgSyDxr5g7qnfPXhBbB8SNCC@mail.gmail.com> References: <AANLkTikwdbXW28OUq49QXgSyDxr5g7qnfPXhBbB8SNCC@mail.gmail.com> Message-ID: <AANLkTik2jjkb7Vu9DHJlIvyFevISRKUrnqTW8KcTKv4V@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: SW.js Type: application/x-javascript Size: 9601 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/23bbee89/SW.js From kalyan.kamepalli at gmail.com Mon Jul 12 02:30:56 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Custom Map Service In-Reply-To: <AANLkTimsyvPHatvK9trGa6WoieEcE7P0rIUBGDBCZpBh@mail.gmail.com> References: <AANLkTimsyvPHatvK9trGa6WoieEcE7P0rIUBGDBCZpBh@mail.gmail.com> Message-ID: <AANLkTimPfm2D0zz-Q9_Cw68fEtP0-rGMQoQz08oTOSZP@mail.gmail.com> Hi, I managed to write a custom class that sends the native map requests to my server.But, the problem is, the response I get from my server is in XML format and I wanted to show the actual image files on the map. Could some one tell me where to get handle of map service reposne please ? so that I can parse XML response and display images. You can find the XML reponse down this mail . Thanks, Kalyan On Mon, Jul 12, 2010 at 10:17 AM, Kalyan Kamepalli < kalyan.kamepalli@gmail.com> wrote: > Hi, > > I confiigured openLayers with WMS services to my server. Unfortunately, the > map caching at my server is not supported with WMS requests and is only > supported with my native map requests. So, I now have to develop/write a > custom function in openlayes that reads my native map response and presents > the map layer on openlayers. I am a novice in Java script and my timelines > are too short. I need you people help to write it. > > My native map service response is as shown below > > <?xml version="1.0" encoding="UTF-8" ?> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <return xmlns:gml="*http://www.opengis.net/gml*" xmlns:xsi="* > http://www.w3.org/2001/XMLSchema-instance*" xmlns:swgml="* > http://www.gesmallworld.com/swgml*" xmlns:sw="* > http://www.gesmallworld.com/sw*" xmlns:xsd="* > http://www.w3.org/2001/XMLSchema*" xmlns:xlink="* > http://www.w3.org/1999/xlink*"> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <service_response service="*map*" request="*map*" request_id="* > 31717296E20A6A5E8962C96BEA90D507-1278893297942*" session_id="* > 31717296E20A6A5E8962C96BEA90D507*"> > * * <display_style_name>*OverView*</display_style_name> > * * <crs>*nsw_trans_mercator_mm*</crs> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <centre> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <gml:Point> > * * <gml:pos>*9.96427566202E7 3.96629324049E8*</gml:pos> > * * </gml:Point> > * * </centre> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <image_layers> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <hash> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <element key="*sw_map*"> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <map_layer_response> > * * <layer_name>*sw_map*</layer_name> > * * <ncols>*1*</ncols> > * * <nrows>*1*</nrows> > * * <tile_height>*200*</tile_height> > * * <tile_width>*200*</tile_width> > * * <viewport_offset_x>*0*</viewport_offset_x> > * * <viewport_offset_y>*0*</viewport_offset_y> > * * <image_format>*jpeg*</image_format> > * * <dynamic>*true*</dynamic> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <urls> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <collection> > * * <element>* > http://siasporapv01:8080/gss/resource/map/map73962892604192559077.jpeg?token=-835661748 > *</element> > </collection> > </urls> > </map_layer_response> > </element> > </hash> > </image_layers> > * * <units>*mm*</units> > * * <style_group>*default*</style_group> > *-*<http://siasporapv01.ce.countryenergy.com.au:8080/gss/native?service=map#> > <options> > * * <hash /> > * * </options> > * * <view_scale>*7477726.710076923*</view_scale> > * * <rotation>*0*</rotation> > * * <map_element_key>*swrefVdisplay_styleVidZ3061622Q13*</map_element_key > > > * * <world>*swrefVworldVdatasetZgisVuniverseZ0VworldZ0*</world> > * * <ace_name>*street_light*</ace_name> > * * <name>*sw_default*</name> > * * </service_response> > * * </return> > > > So, how difficult it is to write a custom function ( just like the WMS one > ) that automatically sends the pan, zoom requests to my server. > > Thanks, > Kalyan. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/2e4d120d/attachment.html From gstopar at gmail.com Mon Jul 12 03:09:17 2010 From: gstopar at gmail.com (_greg_) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Labels allways on top of everything else In-Reply-To: <53B3A4AEEC2D3842BDEE7ABAB93320EF026B87107087@SPOLSBEX04.sapo.corppt.com> References: <53B3A4AEEC2D3842BDEE7ABAB93320EF026B87107087@SPOLSBEX04.sapo.corppt.com> Message-ID: <1278918557431-5281857.post@n2.nabble.com> hi I have the same issue here. Any solutions yet ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Labels-allways-on-top-of-everything-else-tp3834678p5281857.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rajjad at gmail.com Mon Jul 12 07:50:00 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] assigning custom mouse cursor to StyleMap Message-ID: <AANLkTin4EUP1Uti-01ZvqtfIMaeJbddouqUMb7K0bG7e@mail.gmail.com> Hi, I`m trying to assign a custom mouse cursor to a styleMap. this is how im trying to do it var highlighted = new OpenLayers.Style({ 'strokeWidth': 1, 'strokeColor': '#ff0000', 'fillColor': '#ff0000', 'fillOpacity':0.4, 'cursor': 'url('openlayers/theme/default/img/pan.gif')' }); // style for vector layer to be highlighted but the cursor wont change, although it works for default built in cursors , regards, Imran-- I.R From Daniel.Langhans at infoterra-global.com Mon Jul 12 08:08:10 2010 From: Daniel.Langhans at infoterra-global.com (Langhans, Daniel) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] box coordinates of GetFeatures Message-ID: <B535B765341BB1448D510A0CCFB16ECD0226EFD7@FFWEXMC1.de.astrium.corp> Hi, Is there a way how to get the coordinates of the box or the box object itself drawn by a user with the GetFeature control? Final goal is to display this box to the user. Best regards, Daniel Infoterra GmbH Managing Director/Gesch?ftsf?hrer: Dr. Vark Helfritz Register Court/Amtsgericht Ulm (HRB 630970) VAT Identification Number/USt-IdNr: DE 197540174 This e-mail, the information it contains and any attachments are confidential and intended solely for the use of the addressee(s). If you are not the intended addressee you may not use, copy, or retain this message, disclose all or any part of its content to any other person, or take any action in reliance on it. If you have received this message in error, please delete it from your system and notify the sender immediately. The integrity and security of the e-mail transmission cannot be guaranteed on the internet. Therefore, the sender does not accept responsibility for any errors or omissions in the content of this message, which arise as a result of e-mail transmission. Opinions expressed in this e-mail may not be endorsed by the company and unless explicitly indicated, this e-mail shall not form part of any binding agreement. Thank you. For further information about Infoterra GmbH visit our website: www.infoterra.de -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/f65f8c40/attachment.html From sdjbm17 at gmail.com Mon Jul 12 08:52:47 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] openlayers and css error In-Reply-To: <4C391FEB.6080708@verizon.net> References: <1278618385777-5271709.post@n2.nabble.com> <1278691537031-5274925.post@n2.nabble.com> <1278694609012-5275168.post@n2.nabble.com> <1278703295117-5275679.post@n2.nabble.com> <1278768401408-5277664.post@n2.nabble.com> <1278797546947-5278670.post@n2.nabble.com> <AANLkTik2YMWzgMBflvwFIyK29Ey0e6E1iysP2rw1Z1fh@mail.gmail.com> <4C391FEB.6080708@verizon.net> Message-ID: <1278939167114-5282754.post@n2.nabble.com> Another thing very useful when you have a big javascript file is to minify the file... Use this online tool... http://fmarcia.info/jsmin/test.html Douglas Crockford JS Minifier selecting the "agressive" Level ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5282754.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Mon Jul 12 09:02:11 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] box coordinates of GetFeatures In-Reply-To: <B535B765341BB1448D510A0CCFB16ECD0226EFD7@FFWEXMC1.de.astrium.corp> References: <B535B765341BB1448D510A0CCFB16ECD0226EFD7@FFWEXMC1.de.astrium.corp> Message-ID: <1278939731985-5282792.post@n2.nabble.com> Maybe this post would be useful to you... http://openlayers.org/pipermail/users/2010-March/016734.html http://openlayers.org/pipermail/users/2010-March/016734.html Cheers, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/box-coordinates-of-GetFeatures-tp5282621p5282792.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tino.desjardins at arcor.de Mon Jul 12 09:07:14 2010 From: tino.desjardins at arcor.de (tino.desjardins@arcor.de) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] RegularPolygon as a search polygon Message-ID: <14429910.1278940034759.JavaMail.ngmail@webmail16.arcor-online.net> Hello Brad, I think the problem is your own separate EventHandler and the wrong handler "draw". The DrawFeature-Control has an eventhandler "featureAdded". Take this instead. e.g. OpenLayers.Control.NoticeControl = OpenLayers.Class(OpenLayers.Control.DrawFeature, { initialize: function(layer, handler, options) { OpenLayers.Control.DrawFeature.prototype.initialize.apply(this, [layer, handler, options]); }, setMap: function(map) { this.handler.setMap(map); OpenLayers.Control.prototype.setMap.apply(this, arguments); }, featureAdded: function(feature) { alert(feature.geometry.toString()); this.deleteFeature(feature); }, deleteFeature: function(feature) { feature.state = OpenLayers.State.DELETE; this.layer.events.triggerEvent("afterfeaturemodified", {feature: feature}); this.layer.drawFeature(feature); }, CLASS_NAME: "OpenLayers.Control.NoticeControl" }); how to use: var polyOptions = {sides: 4}; var noticeControl = new OpenLayers.Control.NoticeControl(polygonLayer, OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); map.addControl(noticeControl); hope that works Tino ----- Original Nachricht ---- Von: Brad Spencer <bradspencer@ozemail.com.au> An: brad@numaps.com.au, users@openlayers.org Datum: 11.07.2010 15:23 Betreff: Re: [OpenLayers-Users] RegularPolygon as a search polygon > Guys, > > > > Still need some help on this. > > > > I have taken the simple app from examples and edited it to see if I can > make > this work. It works but not the way I expect it to work? > > > > See : http://staging.demos.numaps.com.au/shape_tester.html > > > > I have extended the DrawFeature control to echo out the coordinates of the > vector generated polygon. When the control is deactivated (controlled by > the > 'navigate' radio) the notice function is triggered - not sure why? > > I am trying to trigger this function only when the control is activated. > > > > Its just not doing what I would have expected so I must be doing something > really stupid. > > > > Can someone have a quick look at this for me? > > > > Cheers. > > > > Brad.. > > > > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Brad Spencer > Sent: Friday, July 09, 2010 9:12 PM > To: openlayers users > Subject: [OpenLayers-Users] RegularPolygon as a search polygon > > > > Guys, > > > > I have been able to build a control to freehand digitize a polygon and then > launch a function to use the polygon as a search polygon in a WFS request. > > > > This works for me: > > > > drawControls = new OpenLayers.Control.DrawFeature(vectorLayer, > OpenLayers.Handler.Polygon) ; > > // extend the drawcontrol with its behavior > > OpenLayers.Util.extend(drawControls, > > { draw: function (){ > > this.polygon = new OpenLayers.Handler.Polygon(drawControls,{"done": > this.notice}); this.polygon.activate();}, > > notice: function (polygon) > > { > > // get vertices of polygon > into and array of coordinate pairs > > var polyString = > polygon.toString() ; > > > > // do whatever with polygon > linestring here > > . > > } > > }); > > map.addControl(drawControls); > > > > > > I wanted to use the RegularPolygon feature to do the same but it does not > launch the function in the same way after the vector geometry is > successfully created. > > > > var polyType = 6; > > var rad = ''; > > polyOptions = {sides: polyType, radius: rad, angle: 0} > > shapeControl = new OpenLayers.Control.DrawFeature(vectorLayer, > OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); > > // extend the shapeControl with its behavior > > OpenLayers.Util.extend(shapeControl, > > { draw: function (){ > > this.polygon = new > OpenLayers.Handler.RegularPolygon(shapeControl, {"done": this.notice}); > this.polygon.activate();}, > > notice: function (polygon) > > { > > // get vertices of polygon > into and array of coordinate pairs > > var polyString = > polygon.toString() ; > > // do whatever with polygon > linestring here > > . > > > } > > }); > > > > In both cases the polygon is created and drawn to the vectorLayer. > > > > Can anyone see anything obviously wrong with the second piece of code? > > > > Cheers, > > > > Brad Spencer > > General Manager > > NuMaps > > "DemographicDrapes" > > www.numaps.com.au > > brad@numaps.com.au > > 0404 841 131 > > (02)9481 7024 > > > > "DemographicDrapes > <http://www.numaps.com.au/numaps/index.cfm/resources/resources/apps4nsw-comp > > etition-winner/> wins NSW award" > > > > > > -------------------------------- > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Hotelbewertung: Blo? nicht die Katze im Sack kaufen bzw. den Floh auf der Matratze buchen - ob gesch?ftlich oder privat - erst das Hotel im Reise-Channel auf arcor.de checken! http://www.arcor.de/rd/footer.hotel From sdjbm17 at gmail.com Mon Jul 12 09:11:10 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Does OL support MapABC ? In-Reply-To: <1278576459571-5268964.post@n2.nabble.com> References: <1278576459571-5268964.post@n2.nabble.com> Message-ID: <1278940270054-5282818.post@n2.nabble.com> Hi there, Apparently not natively! But it doesn't mean it would be impossible.. You might want to take a look at the last http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers-js.html OL Class Documentation Cheers, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Does-OL-support-MapABC-tp5268964p5282818.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Mon Jul 12 09:40:21 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Limit total Vector Layer points to be drawn Message-ID: <1278942021620-5282918.post@n2.nabble.com> Hi people, I'm trying to limit the total Vector Layer's point to be drawn.. For example, after one point has been drawn prevent new points to be added.. I tried registering beforefeatureadded event as the definition for this event says: Triggered before a feature is added. Listeners will receive an object with a feature property referencing the feature to be added. To stop the feature from being added, a listener should return false. My code: vectorLayer.events.register('beforefeatureadded', this, function(feature){ if(vectorLayer.features.length = 1){ alert("false "+vectorLayer.features.length); return false; }else{ alert("true "+vectorLayer.features.length); return true; } }); But even if I return false, the feature is added to the layer! :S Any suggestion, please? Thanks in advance! Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-total-Vector-Layer-points-to-be-drawn-tp5282918p5282918.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Mon Jul 12 09:48:28 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Limit total Vector Layer points to be drawn In-Reply-To: <1278942021620-5282918.post@n2.nabble.com> References: <1278942021620-5282918.post@n2.nabble.com> Message-ID: <11D44F7D-D7E1-407D-9DB3-4850474714A1@opengeo.org> Hi, looks like your OpenLayers version is too old. This was fixed after the 2.9.1 release (http://trac.openlayers.org/changeset/10362), so you have to use a current development version. Regards, Andreas. On Jul 12, 2010, at 15:40 , giraam wrote: > > Hi people, > > I'm trying to limit the total Vector Layer's point to be drawn.. For > example, after one point has been drawn prevent new points to be added.. > > I tried registering beforefeatureadded event as the definition for this > event says: > > Triggered before a feature is added. Listeners will receive an object with > a feature property referencing the feature to be added. To stop the feature > from being added, a listener should return false. > > My code: > > vectorLayer.events.register('beforefeatureadded', this, > function(feature){ > if(vectorLayer.features.length = 1){ > alert("false "+vectorLayer.features.length); > return false; > }else{ > alert("true "+vectorLayer.features.length); > return true; > } > }); > > But even if I return false, the feature is added to the layer! :S > > Any suggestion, please? > > Thanks in advance! > > Gilberto Ramos > > ----- > just another web developer > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-total-Vector-Layer-points-to-be-drawn-tp5282918p5282918.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From sdjbm17 at gmail.com Mon Jul 12 11:20:02 2010 From: sdjbm17 at gmail.com (giraam) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Limit total Vector Layer points to be drawn In-Reply-To: <11D44F7D-D7E1-407D-9DB3-4850474714A1@opengeo.org> References: <1278942021620-5282918.post@n2.nabble.com> <11D44F7D-D7E1-407D-9DB3-4850474714A1@opengeo.org> Message-ID: <1278948002987-5283348.post@n2.nabble.com> Hi Andreas, I change my OL include (it was local) and I'm including OL from http://www.openlayers.org/api/OpenLayers.js http://www.openlayers.org/api/OpenLayers.js and still the same problem. I modified my code to something like this: vectorLayer.events.register('beforefeatureadded', this, function(evt){ return false; }); This event is registered just after the vectorLayer is defined. The DrawFeature Control is this: dibujarPunto = new OpenLayers.Control.DrawFeature( vectorLayer, OpenLayers.Handler.Point,{ title: "Dibujar", multi: false }); I got the same result! After I click the point is not shown on the map (but the feature is added because I check the vectorLayer.features.length with Firebug and in fact is there), if I zoom in or out the point appears. What else may I check! I really don't know if I'm doing something wrong or what..! Thanks again for your time, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-total-Vector-Layer-points-to-be-drawn-tp5282918p5283348.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From johnzhang06 at gmail.com Mon Jul 12 13:07:03 2010 From: johnzhang06 at gmail.com (Blue Sky) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Does OL support MapABC ? In-Reply-To: <1278940270054-5282818.post@n2.nabble.com> References: <1278576459571-5268964.post@n2.nabble.com> <1278940270054-5282818.post@n2.nabble.com> Message-ID: <1278954423135-5283832.post@n2.nabble.com> Thank you, Gilberto! I was wondering how I am able to use http://ditu.google.com/ http://ditu.google.com/ other than http://maps.google.com http://maps.google.com to provide chinese maps. Could anyone help? Thanks a lot. John -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Does-OL-support-MapABC-tp5268964p5283832.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Mon Jul 12 15:52:58 2010 From: sdjbm17 at gmail.com (Gilberto Ramos) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Limit total Vector Layer points to be drawn In-Reply-To: <1278942021620-5282918.post@n2.nabble.com> References: <1278942021620-5282918.post@n2.nabble.com> Message-ID: <1278964378043-5284592.post@n2.nabble.com> Well, I think this is still a bug.. I'm using the OL 2.9.1 and the solution I found for this is: vectorLayer.events.register('beforefeatureadded', this, function(evt){ if(vectorLayer.features.length > 1){ vectorLayer.destroyFeatures([vectorLayer.features[vectorLayer.features.length-1]]); return true; // could be false too, does not make any difference } }); Not the sexiest way to solve the problem but it works for me. Cheers, Gilberto Ramos ----- just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-total-Vector-Layer-points-to-be-drawn-tp5282918p5284592.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From MostlyBaldEagle at shaw.ca Mon Jul 12 20:01:39 2010 From: MostlyBaldEagle at shaw.ca (MostlyBaldEagle) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Calculating zoom level from an area Message-ID: <1278979299704-5285435.post@n2.nabble.com> I need to figure out what zoom level to use to be able to fully see a rectangular area bound by max latitude + longitude and min latitude + longitude. Anybody ever done this? Any hints would be appreciated Thanks Olaf -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calculating-zoom-level-from-an-area-tp5285435p5285435.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From lxnyce at gmail.com Mon Jul 12 20:06:34 2010 From: lxnyce at gmail.com (Lennox Antoine) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Calculating zoom level from an area In-Reply-To: <1278979299704-5285435.post@n2.nabble.com> References: <1278979299704-5285435.post@n2.nabble.com> Message-ID: <AANLkTilAuqV4M9WWXHHJDZBfSIrWwr0cA4r3276YOScQ@mail.gmail.com> You might want to look at : getZoomForExtent http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getZoomForExtent and zoomToExtent http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent Lennox On Mon, Jul 12, 2010 at 8:01 PM, MostlyBaldEagle <MostlyBaldEagle@shaw.ca>wrote: > > I need to figure out what zoom level to use to be able to fully see a > rectangular area bound by max latitude + longitude and min latitude + > longitude. > > Anybody ever done this? Any hints would be appreciated > > Thanks > Olaf > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Calculating-zoom-level-from-an-area-tp5285435p5285435.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/e2e711cb/attachment.html From christopher.schmidt at nokia.com Mon Jul 12 23:27:34 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Calculating zoom level from an area In-Reply-To: <1278979299704-5285435.post@n2.nabble.com> References: <1278979299704-5285435.post@n2.nabble.com> Message-ID: <7BD31A6C-1DD7-48AF-9755-831CB4B995D0@nokia.com> On Jul 12, 2010, at 8:01 PM, ext MostlyBaldEagle wrote: > > I need to figure out what zoom level to use to be able to fully see a > rectangular area bound by max latitude + longitude and min latitude + > longitude. > > Anybody ever done this? Any hints would be appreciated > map.getZoomForExtent(bounds); > Thanks > Olaf > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calculating-zoom-level-from-an-area-tp5285435p5285435.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users Regards, -- Christopher Schmidt Nokia From bradspencer at ozemail.com.au Tue Jul 13 02:11:20 2010 From: bradspencer at ozemail.com.au (Brad Spencer) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] RegularPolygon as a search polygon In-Reply-To: <14429910.1278940034759.JavaMail.ngmail@webmail16.arcor-online.net> References: <14429910.1278940034759.JavaMail.ngmail@webmail16.arcor-online.net> Message-ID: <009901cb2252$36f1f3c0$a4d5db40$@com.au> Tino, Thanks for that it really helped. This should be an example in OL as it could help people like me. Anyway, I have one small issue which is most likely associated with my application. I overlay a thematic WMS layer on top of my basemap and I use this control to create a polygon to do a getFeature request against the CubeWerx database. So I take the geometry returned in this control and turn it into my own vector polygon to which I bind a drag control so the user can drag it around and reuse it. I also make sure that the thematic map overlay is set to a ZIndex that makes sure its lower than markers, other layers, popups and this temporary vector layer etc. However, in the process of dragging the polygon out, the display polygon appears below my thematic overlay. Once I release the mouse it pops to the top. So is there a way of manipulating (resetting) a control's stretching graphic? Cheers, Brad.... -----Original Message----- From: tino.desjardins@arcor.de [mailto:tino.desjardins@arcor.de] Sent: Monday, July 12, 2010 11:07 PM To: bradspencer@ozemail.com.au; brad@numaps.com.au; users@openlayers.org Subject: Aw: Re: [OpenLayers-Users] RegularPolygon as a search polygon Hello Brad, I think the problem is your own separate EventHandler and the wrong handler "draw". The DrawFeature-Control has an eventhandler "featureAdded". Take this instead. e.g. OpenLayers.Control.NoticeControl = OpenLayers.Class(OpenLayers.Control.DrawFeature, { initialize: function(layer, handler, options) { OpenLayers.Control.DrawFeature.prototype.initialize.apply(this, [layer, handler, options]); }, setMap: function(map) { this.handler.setMap(map); OpenLayers.Control.prototype.setMap.apply(this, arguments); }, featureAdded: function(feature) { alert(feature.geometry.toString()); this.deleteFeature(feature); }, deleteFeature: function(feature) { feature.state = OpenLayers.State.DELETE; this.layer.events.triggerEvent("afterfeaturemodified", {feature: feature}); this.layer.drawFeature(feature); }, CLASS_NAME: "OpenLayers.Control.NoticeControl" }); how to use: var polyOptions = {sides: 4}; var noticeControl = new OpenLayers.Control.NoticeControl(polygonLayer, OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); map.addControl(noticeControl); hope that works Tino ----- Original Nachricht ---- Von: Brad Spencer <bradspencer@ozemail.com.au> An: brad@numaps.com.au, users@openlayers.org Datum: 11.07.2010 15:23 Betreff: Re: [OpenLayers-Users] RegularPolygon as a search polygon > Guys, > > > > Still need some help on this. > > > > I have taken the simple app from examples and edited it to see if I can > make > this work. It works but not the way I expect it to work? > > > > See : http://staging.demos.numaps.com.au/shape_tester.html > > > > I have extended the DrawFeature control to echo out the coordinates of the > vector generated polygon. When the control is deactivated (controlled by > the > 'navigate' radio) the notice function is triggered - not sure why? > > I am trying to trigger this function only when the control is activated. > > > > Its just not doing what I would have expected so I must be doing something > really stupid. > > > > Can someone have a quick look at this for me? > > > > Cheers. > > > > Brad.. > > > > From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On > Behalf Of Brad Spencer > Sent: Friday, July 09, 2010 9:12 PM > To: openlayers users > Subject: [OpenLayers-Users] RegularPolygon as a search polygon > > > > Guys, > > > > I have been able to build a control to freehand digitize a polygon and then > launch a function to use the polygon as a search polygon in a WFS request. > > > > This works for me: > > > > drawControls = new OpenLayers.Control.DrawFeature(vectorLayer, > OpenLayers.Handler.Polygon) ; > > // extend the drawcontrol with its behavior > > OpenLayers.Util.extend(drawControls, > > { draw: function (){ > > this.polygon = new OpenLayers.Handler.Polygon(drawControls,{"done": > this.notice}); this.polygon.activate();}, > > notice: function (polygon) > > { > > // get vertices of polygon > into and array of coordinate pairs > > var polyString = > polygon.toString() ; > > > > // do whatever with polygon > linestring here > > . > > } > > }); > > map.addControl(drawControls); > > > > > > I wanted to use the RegularPolygon feature to do the same but it does not > launch the function in the same way after the vector geometry is > successfully created. > > > > var polyType = 6; > > var rad = ''; > > polyOptions = {sides: polyType, radius: rad, angle: 0} > > shapeControl = new OpenLayers.Control.DrawFeature(vectorLayer, > OpenLayers.Handler.RegularPolygon, {handlerOptions: polyOptions}); > > // extend the shapeControl with its behavior > > OpenLayers.Util.extend(shapeControl, > > { draw: function (){ > > this.polygon = new > OpenLayers.Handler.RegularPolygon(shapeControl, {"done": this.notice}); > this.polygon.activate();}, > > notice: function (polygon) > > { > > // get vertices of polygon > into and array of coordinate pairs > > var polyString = > polygon.toString() ; > > // do whatever with polygon > linestring here > > . > > > } > > }); > > > > In both cases the polygon is created and drawn to the vectorLayer. > > > > Can anyone see anything obviously wrong with the second piece of code? > > > > Cheers, > > > > Brad Spencer > > General Manager > > NuMaps > > "DemographicDrapes" > > www.numaps.com.au > > brad@numaps.com.au > > 0404 841 131 > > (02)9481 7024 > > > > "DemographicDrapes > <http://www.numaps.com.au/numaps/index.cfm/resources/resources/apps4nsw-comp > > etition-winner/> wins NSW award" > > > > > > -------------------------------- > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Hotelbewertung: Blo? nicht die Katze im Sack kaufen bzw. den Floh auf der Matratze buchen - ob gesch?ftlich oder privat - erst das Hotel im Reise-Channel auf arcor.de checken! http://www.arcor.de/rd/footer.hotel From jimmy.aumard at gmail.com Tue Jul 13 07:07:11 2010 From: jimmy.aumard at gmail.com (Jimmy Aumard) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] 2.9 draw polygon problem Message-ID: <AANLkTikzbARpVT0gaq9Gie9_scCXhYWUjGsgZ4xCd-qU@mail.gmail.com> Hello, I try to use this : var drawP_create=new OpenLayers.Control.DrawFeature(polygon,OpenLayers.Handler.Polygon,{ title: "Draw Polygon", //displayClass: "olControlDrawFeaturePolygon", handlerOptions: { multi: false }}); But when I'm drawing a polygon the line was not under the mouse. How can I resolved this please. Cheers. -- Aumard Jimmy D?veloppeur KINAXIA c/o CICA / PacaEst 2229 Route des Cr?tes F-06560 Sophia Antipolis T?l.: +33 (0)4 8973 0242 Mob.: +33 (0)6 6017 2827 Fax : +33 (0)4 8307 6583 http://www.kinaxia.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/2664b33c/attachment.html From mike at uwmike.com Tue Jul 13 09:33:37 2010 From: mike at uwmike.com (Mike Purvis) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Is there a "LikeBing" layer out there? Message-ID: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> Hey, If I want to serve the Bing tiles directly, without using the VirtualEarth wrapper layer, has that already been coded up by anyone? I know it's just a matter of extending Openlayers.Layer.XYZ and plugging in the correct geturl function. It's just that Bing's tile urls are based on some quadtree nonsense that makes it slightly more of a pain that just dropping in the coordinates. Nevermind about whether it's a good idea or not?has it already been done, or should I just do it myself? Thanks! Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/787a5406/attachment.html From ahocevar at opengeo.org Tue Jul 13 10:13:32 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Is there a "LikeBing" layer out there? In-Reply-To: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> References: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> Message-ID: <BB86D5DE-8B48-4EF7-8FDB-33A8CCE37F05@opengeo.org> Mind that using Bing tiles directly is a violation of the Bing Maps terms of use. Regards, Andreas. On Jul 13, 2010, at 15:33 , Mike Purvis wrote: > Hey, > > If I want to serve the Bing tiles directly, without using the VirtualEarth wrapper layer, has that already been coded up by anyone? I know it's just a matter of extending Openlayers.Layer.XYZ and plugging in the correct geturl function. It's just that Bing's tile urls are based on some quadtree nonsense that makes it slightly more of a pain that just dropping in the coordinates. > > Nevermind about whether it's a good idea or not?has it already been done, or should I just do it myself? > > Thanks! > > Mike > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From woodbri at swoodbridge.com Tue Jul 13 10:57:44 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Is there a "LikeBing" layer out there? In-Reply-To: <BB86D5DE-8B48-4EF7-8FDB-33A8CCE37F05@opengeo.org> References: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> <BB86D5DE-8B48-4EF7-8FDB-33A8CCE37F05@opengeo.org> Message-ID: <4C3C7EE8.4020006@swoodbridge.com> Right! that is not the intent here. I have clients that are moving away from Bing but have apps that are built around this tile name scheme. They would like to create a cache using mapserver of tiles like this for their other apps. being about to browse the cache in OL makes it much easier to develop, review and build web apps all using the same cache. The big issue I see with this is determining an appropriate directory structure that maximizes tile storage in dirs so you don't have excessive directory overhead and that you do not have too many files in a directory or run out of inodes. -Steve Andreas Hocevar wrote: > Mind that using Bing tiles directly is a violation of the Bing Maps terms of use. > > Regards, > Andreas. > > On Jul 13, 2010, at 15:33 , Mike Purvis wrote: > >> Hey, >> >> If I want to serve the Bing tiles directly, without using the VirtualEarth wrapper layer, has that already been coded up by anyone? I know it's just a matter of extending Openlayers.Layer.XYZ and plugging in the correct geturl function. It's just that Bing's tile urls are based on some quadtree nonsense that makes it slightly more of a pain that just dropping in the coordinates. >> >> Nevermind about whether it's a good idea or not?has it already been done, or should I just do it myself? >> >> Thanks! >> >> Mike >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users > > > From mike at uwmike.com Tue Jul 13 11:11:14 2010 From: mike at uwmike.com (Mike Purvis) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Is there a "LikeBing" layer out there? In-Reply-To: <4C3C7EE8.4020006@swoodbridge.com> References: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> <BB86D5DE-8B48-4EF7-8FDB-33A8CCE37F05@opengeo.org> <4C3C7EE8.4020006@swoodbridge.com> Message-ID: <AANLkTinsrKNIxkqAk5YdsPQQHMth86piaB9Qxt9I7Bdg@mail.gmail.com> The quadtree structure is a little wacky, but it's nice for being able to selectively purge your cache based on regular expressions. Anyhow, here's the working class. Bit of a hack, but it does the trick: var VELayer = OpenLayers.Class(OpenLayers.Layer.XYZ, { name: "VirtualEarth", attribution: "Microsoft", sphericalMercator: true, url: '/tiles/a${n}.jpeg', CLASS_NAME: "VELayer", getURL: function (bounds) { var res = this.map.getResolution(); var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w)); var y = Math.round((this.maxExtent.top - bounds.top) / (res * this.tileSize.h)); var z = this.map.getZoom(); x = x.toString(2); y = y.toString(2); while(x.length < z) { x = "0" + x; } while(y.length < z) { y = "0" + y; } var n = []; for(var i = 0; i < z; i++) { n.push((parseInt(x[i]) + parseInt(y[i]) * 2).toString()); } var url = this.url; var path = OpenLayers.String.format(url, {'n': n.join('') }); return path; } }); On Tue, Jul 13, 2010 at 10:57 AM, Stephen Woodbridge < woodbri@swoodbridge.com> wrote: > Right! that is not the intent here. I have clients that are moving away > from Bing but have apps that are built around this tile name scheme. They > would like to create a cache using mapserver of tiles like this for their > other apps. being about to browse the cache in OL makes it much easier to > develop, review and build web apps all using the same cache. > > The big issue I see with this is determining an appropriate directory > structure that maximizes tile storage in dirs so you don't have excessive > directory overhead and that you do not have too many files in a directory or > run out of inodes. > > -Steve > > > Andreas Hocevar wrote: > >> Mind that using Bing tiles directly is a violation of the Bing Maps terms >> of use. >> >> Regards, >> Andreas. >> >> On Jul 13, 2010, at 15:33 , Mike Purvis wrote: >> >> Hey, >>> >>> If I want to serve the Bing tiles directly, without using the >>> VirtualEarth wrapper layer, has that already been coded up by anyone? I know >>> it's just a matter of extending Openlayers.Layer.XYZ and plugging in the >>> correct geturl function. It's just that Bing's tile urls are based on some >>> quadtree nonsense that makes it slightly more of a pain that just dropping >>> in the coordinates. >>> >>> Nevermind about whether it's a good idea or not?has it already been done, >>> or should I just do it myself? >>> >>> Thanks! >>> >>> Mike >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >> >> >> >> > -- http://uwmike.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/f05893b1/attachment.html From barbara.fiederer at web.de Tue Jul 13 11:17:24 2010 From: barbara.fiederer at web.de (Barbara Fiederer) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] geoserver 1.7.4 to 2.0.1. doesn#t show WFS any more Message-ID: <1279034244563-5287927.post@n2.nabble.com> Hi out there! I created a demo, where there are only objects that cause problems -> see here: http://dili-online.de/map/demo-BasisTest_gs100714.html when I use geoserver 1.7.4. with OL 2.8 with this patch to fix the error NS_ERROR_NOT_INITIALIZED - [nsIXMLHttpRequest.send] -> http://n2.nabble.com/attachment/3508031/1/xmlhttprequest.patch then every thing is fine (you cannot test ist): - I am able to use the select tool - I am able to use the fake tool which fakes a database application - I can see the vector layer named "vector" When I use the same link but send it to geoserver 2.0.1 as is now - I am still able to use the select tool - the fake tool causes an error - I cannot see the vector layer named "vector" though it exists in the DOM and is shown in the Layerswitcher Control I want to upgrade to geoserver 2.0.1. because it is more stable than the old version, but I need the WFS and the fake tool Any ideas? Thanks for answering Barbara -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/geoserver-1-7-4-to-2-0-1-doesn-t-show-WFS-any-more-tp5287927p5287927.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From MostlyBaldEagle at shaw.ca Tue Jul 13 13:43:26 2010 From: MostlyBaldEagle at shaw.ca (MostlyBaldEagle) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Calculating zoom level from an area In-Reply-To: <1278979299704-5285435.post@n2.nabble.com> References: <1278979299704-5285435.post@n2.nabble.com> Message-ID: <1279043006218-5288696.post@n2.nabble.com> Thanks, works great :-) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calculating-zoom-level-from-an-area-tp5285435p5288696.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mike at uwmike.com Tue Jul 13 14:16:42 2010 From: mike at uwmike.com (Mike Purvis) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Is there a "LikeBing" layer out there? In-Reply-To: <AANLkTinsrKNIxkqAk5YdsPQQHMth86piaB9Qxt9I7Bdg@mail.gmail.com> References: <AANLkTincG8tf4E2whWbs02jfF9P0UQKb3srwzMo4y3Us@mail.gmail.com> <BB86D5DE-8B48-4EF7-8FDB-33A8CCE37F05@opengeo.org> <4C3C7EE8.4020006@swoodbridge.com> <AANLkTinsrKNIxkqAk5YdsPQQHMth86piaB9Qxt9I7Bdg@mail.gmail.com> Message-ID: <AANLkTilRwoKrpdE7JkruLqCBK4s3Mxw-fTASHdMDytF4@mail.gmail.com> Oh, and just to clarify, if you want to be naughty and link it to the actual VE tileservers, change the url line to be: 'http://ecn.t0.tiles.virtualearth.net/tiles/a${n}.jpeg?g=0<http://ecn.t0.tiles.virtualearth.net/tiles/a03022311030202132.jpeg?g=0> ' An obvious reason to do this in the first place though, is so that you can use an offline cache and serve the tiles from your own machine. Again, naughty! But totally possible. <http://ecn.t0.tiles.virtualearth.net/tiles/a03022311030202132.jpeg?g=0> On Tue, Jul 13, 2010 at 11:11 AM, Mike Purvis <mike@uwmike.com> wrote: > The quadtree structure is a little wacky, but it's nice for being able to > selectively purge your cache based on regular expressions. > > Anyhow, here's the working class. Bit of a hack, but it does the trick: > > var VELayer = OpenLayers.Class(OpenLayers.Layer.XYZ, { > name: "VirtualEarth", > attribution: "Microsoft", > sphericalMercator: true, > url: '/tiles/a${n}.jpeg', > CLASS_NAME: "VELayer", > > getURL: function (bounds) { > var res = this.map.getResolution(); > var x = Math.round((bounds.left - this.maxExtent.left) / (res * > this.tileSize.w)); > var y = Math.round((this.maxExtent.top - bounds.top) / (res * > this.tileSize.h)); > var z = this.map.getZoom(); > x = x.toString(2); > y = y.toString(2); > while(x.length < z) { x = "0" + x; } > while(y.length < z) { y = "0" + y; } > var n = []; > for(var i = 0; i < z; i++) { > n.push((parseInt(x[i]) + parseInt(y[i]) * 2).toString()); > } > var url = this.url; > var path = OpenLayers.String.format(url, {'n': n.join('') }); > > return path; > } > }); > > > > On Tue, Jul 13, 2010 at 10:57 AM, Stephen Woodbridge < > woodbri@swoodbridge.com> wrote: > >> Right! that is not the intent here. I have clients that are moving away >> from Bing but have apps that are built around this tile name scheme. They >> would like to create a cache using mapserver of tiles like this for their >> other apps. being about to browse the cache in OL makes it much easier to >> develop, review and build web apps all using the same cache. >> >> The big issue I see with this is determining an appropriate directory >> structure that maximizes tile storage in dirs so you don't have excessive >> directory overhead and that you do not have too many files in a directory or >> run out of inodes. >> >> -Steve >> >> >> Andreas Hocevar wrote: >> >>> Mind that using Bing tiles directly is a violation of the Bing Maps terms >>> of use. >>> >>> Regards, >>> Andreas. >>> >>> On Jul 13, 2010, at 15:33 , Mike Purvis wrote: >>> >>> Hey, >>>> >>>> If I want to serve the Bing tiles directly, without using the >>>> VirtualEarth wrapper layer, has that already been coded up by anyone? I know >>>> it's just a matter of extending Openlayers.Layer.XYZ and plugging in the >>>> correct geturl function. It's just that Bing's tile urls are based on some >>>> quadtree nonsense that makes it slightly more of a pain that just dropping >>>> in the coordinates. >>>> >>>> Nevermind about whether it's a good idea or not?has it already been >>>> done, or should I just do it myself? >>>> >>>> Thanks! >>>> >>>> Mike >>>> _______________________________________________ >>>> Users mailing list >>>> Users@openlayers.org >>>> http://openlayers.org/mailman/listinfo/users >>>> >>> >>> >>> >>> >> > > > -- > http://uwmike.com > -- http://uwmike.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/d0843e42/attachment.html From gmduky at hotmail.com Tue Jul 13 15:49:14 2010 From: gmduky at hotmail.com (Zuhex) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] click link outside the map and popup will show Message-ID: <1279050554271-5289398.post@n2.nabble.com> Hello all, I was received only x and y values from the link outside. When I clicked the popup will create correctly right on point in the layer. So I am looking for a source code which how to show the values of the popup. this is my some source code function popup_s(ux,uy) { if (popup != null) { popup.destroy(); popup = null; } var ux,uy; popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(ux,uy), null, ***How can I make this code?? *** null, true); map.addPopup(popup); } Can anybody suggest me? best regards zuhex -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/click-link-outside-the-map-and-popup-will-show-tp5289398p5289398.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zimmermann at zimrob.de Tue Jul 13 15:49:55 2010 From: zimmermann at zimrob.de (Robert Zimmermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] WFS Error with XML Parsing Error Message-ID: <002201cb22c4$915cbee0$b4163ca0$@de> Hello OpenLayers Users . First . excused my bad English pls . L I try to initialize a WFS Layer from GeoServer with following OpenLayers Code: new OpenLayers.Layer.WFS( "Public Crime Data (WFS)", "http://zimrob.com:8080/geoserver/wfs", {typename: 'crimewebgis:pcd_incidents'}, { typename: 'pcd_incidents', featureNS: 'http://www.openplans.org/topp', extractAttributes: false, styleMap: new OpenLayers.StyleMap({ pointRadius: 8, fillColor: '#ee0000', fillOpacity: 0.5, strokeColor: '#ee0000', strokeOpacity: 1, strokeWidth: 3 }) } ) When I get the XML File manual via URL all is fine . http://zimrob.com:8080/geoserver/wfs?TYPENAME=crimewebgis%3Apcd_incidents <http://zimrob.com:8080/geoserver/wfs?TYPENAME=crimewebgis%3Apcd_incidents&S ERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A31467&BBOX=3051850,45 47700,4125450,6784500> &SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A31467&BBOX=3051850, 4547700,4125450,6784500 But the Firebug answer on German XML-Verarbeitungsfehler: Kein Element gefunden Adresse: moz-nullprincipal:{13a30aa5-65c8-4cbc-9d04-0624d95090de} Zeile Nr. 1, Spalte 1: The English Translation is maybe "XML Parsing Error: No Element found Location: : moz-nullprincipal:{13a30aa5-65c8-4cbc-9d04-0624d95090de} Line Nr. 1, Column 1:" I hope someone can help me. Nice regards, Robert Zimmermann -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/d970b9d4/attachment.html From swilliams7_99 at yahoo.com Tue Jul 13 21:58:15 2010 From: swilliams7_99 at yahoo.com (geotech) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Proportional Symbols from GML attributes/OpenLayers Message-ID: <1279072695020-5290622.post@n2.nabble.com> I know there is an easy solution to this problem just haven't found what I'm looking for. This is my situation, I'm using FeatureServer to load my overlay points from shapefiles to .gml . I'm using an OSM baselayer with a reprojection from UTM to lat/lon. What I want to do is display point symbols using a ratio to the attribute value aka proportional symbols.Is there an Openlayers.get.attribute or something along those lines that I can pull an attribute value from the gml or is this a matter of hacking JavaScript to get the results I'm looking for. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Proportional-Symbols-from-GML-attributes-OpenLayers-tp5290622p5290622.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From kalyan.kamepalli at gmail.com Tue Jul 13 22:33:01 2010 From: kalyan.kamepalli at gmail.com (SiamKC) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Adding forms to Layers Message-ID: <1279074781566-5290691.post@n2.nabble.com> Hi, I want to add a form to openLayers just like the layer switcher. Could some one guide me on where to define these forms ? Should they be defined on OpenLayers.Control ? Thanks, Kalyan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-forms-to-Layers-tp5290691p5290691.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/922d375a/attachment.html From deiojj at gmail.com Wed Jul 14 00:09:09 2010 From: deiojj at gmail.com (joi d) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] How to add OpenLayers to Sahana? Message-ID: <1279080549774-5290937.post@n2.nabble.com> Hello everyone. I am currently trying to customise Sahana as a school project. I am interested in using OpenLayers for GIS mapping because it has better features and appearance. I wonder now how to do add OpenLayers in Sahana. Btw, Sahana is a free and open source software for disaster management. Any help shall be highly appreciated. Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-add-OpenLayers-to-Sahana-tp5290937p5290937.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From kalyan.kamepalli at gmail.com Wed Jul 14 02:00:37 2010 From: kalyan.kamepalli at gmail.com (Kalyan Kamepalli) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Adding forms to Layers In-Reply-To: <1279074781566-5290691.post@n2.nabble.com> References: <1279074781566-5290691.post@n2.nabble.com> Message-ID: <AANLkTinlM79SM96M7xx7L2jV81-Bdw-rzqB1RqcZeMu2@mail.gmail.com> Hi, I want to add a new control like LayerSwitcher, OverviewMap on the map with a form in that control. This form enables the user to enter their search queries. Is there a control like LayerSwitcher available to embed my form ? Or any inputs to develop a new control ?? I find it very hard to read the OpenLayers.js as it is compressed to reduce the size. Is there a way to get it back to a readable format ? Thanks, Kalyan On Wed, Jul 14, 2010 at 12:33 PM, SiamKC <kalyan.kamepalli@gmail.com> wrote: > Hi, I want to add a form to openLayers just like the layer switcher. Could > some one guide me on where to define these forms ? Should they be defined on > OpenLayers.Control ? Thanks, Kalyan > ------------------------------ > View this message in context: Adding forms to Layers<http://osgeo-org.1803224.n2.nabble.com/Adding-forms-to-Layers-tp5290691p5290691.html> > Sent from the OpenLayers Users mailing list archive<http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html>at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/b239ab3e/attachment.html From emmexx at tiscalinet.it Wed Jul 14 02:16:04 2010 From: emmexx at tiscalinet.it (emmexx) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Adding forms to Layers In-Reply-To: <AANLkTinlM79SM96M7xx7L2jV81-Bdw-rzqB1RqcZeMu2@mail.gmail.com> References: <1279074781566-5290691.post@n2.nabble.com> <AANLkTinlM79SM96M7xx7L2jV81-Bdw-rzqB1RqcZeMu2@mail.gmail.com> Message-ID: <4C3D5624.8070703@tiscalinet.it> Il 14/07/2010 08:00, Kalyan Kamepalli scrisse: > > I find it very hard to read the OpenLayers.js as it is compressed to > reduce the size. Is there a way to get it back to a readable format ? The source is in the package in lib/OpenLayers. To debug your code you can link to lib/OpenLayers.js and use Firebug. bye maxx From barbara.fiederer at web.de Wed Jul 14 02:22:12 2010 From: barbara.fiederer at web.de (Barbara Fiederer) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] geoserver 1.7.4 to 2.0.1. doesn#t show WFS any more In-Reply-To: <1279034244563-5287927.post@n2.nabble.com> References: <1279034244563-5287927.post@n2.nabble.com> Message-ID: <1279088532267-5291194.post@n2.nabble.com> Sorry, its Geoserver 2.0.2. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/geoserver-1-7-4-to-2-0-1-doesn-t-show-WFS-any-more-tp5287927p5291194.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Wed Jul 14 02:47:01 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] geoserver 1.7.4 to 2.0.1. doesn#t show WFS any more In-Reply-To: <1279034244563-5287927.post@n2.nabble.com> References: <1279034244563-5287927.post@n2.nabble.com> Message-ID: <D8354439-A6F9-4E60-A900-F7B6B0520D4B@opengeo.org> Hi, your WFS configuration for 2.0.x seems to be different. You are using a wrong featureNS. Try http://www.dili-online.de:8090/geoserver/demo_kunde1 instead of http://www.dili-online.de/geoserver/demo_kunde1 Regards, Andreas. On Jul 13, 2010, at 17:17 , Barbara Fiederer wrote: > > Hi out there! > > I created a demo, where there are only objects that cause problems -> see > here: http://dili-online.de/map/demo-BasisTest_gs100714.html > > when I use geoserver 1.7.4. with OL 2.8 with this patch to fix the error > NS_ERROR_NOT_INITIALIZED - [nsIXMLHttpRequest.send] -> > http://n2.nabble.com/attachment/3508031/1/xmlhttprequest.patch then every > thing is fine (you cannot test ist): > - I am able to use the select tool > - I am able to use the fake tool which fakes a database application > - I can see the vector layer named "vector" > > When I use the same link but send it to geoserver 2.0.1 as is now > - I am still able to use the select tool > - the fake tool causes an error > - I cannot see the vector layer named "vector" though it exists in the DOM > and is shown in the Layerswitcher Control > > I want to upgrade to geoserver 2.0.1. because it is more stable than the old > version, but I need the WFS and the fake tool > > Any ideas? > > Thanks for answering > > Barbara > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/geoserver-1-7-4-to-2-0-1-doesn-t-show-WFS-any-more-tp5287927p5287927.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From barbara.fiederer at web.de Wed Jul 14 03:09:03 2010 From: barbara.fiederer at web.de (Barbara Fiederer) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] geoserver 1.7.4 to 2.0.1. doesn#t show WFS any more In-Reply-To: <D8354439-A6F9-4E60-A900-F7B6B0520D4B@opengeo.org> References: <1279034244563-5287927.post@n2.nabble.com> <D8354439-A6F9-4E60-A900-F7B6B0520D4B@opengeo.org> Message-ID: <1279091343304-5291307.post@n2.nabble.com> Hi Andreas, that's it. Thanks a lot. Barbara -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/geoserver-1-7-4-to-2-0-1-doesn-t-show-WFS-any-more-tp5287927p5291307.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sridhar.raman at gmail.com Wed Jul 14 03:29:11 2010 From: sridhar.raman at gmail.com (Sridhar Raman) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Google Map Directions possible? Message-ID: <AANLkTil8BGa5ZsLNOIOnRnKVf63GUXqwn4yaBYCyamtm@mail.gmail.com> Hi We are using OpenLayers in our application. We are adding a Google map layer to the map. Using Openlayers, is it possible to perform Google Map Directions as shown here: http://code.google.com/apis/maps/documentation/javascript/services.html#Directions If yes, which version of OpenLayers should we be using? We are currently using 2.8. Thanks, Sridhar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/3b774349/attachment.html From rajjad at gmail.com Wed Jul 14 03:35:21 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] unable to add geometries to geometry collection Message-ID: <AANLkTilPut0rw1DqwJe0Hre6XJKZo5sR4rAzUeGh5d0q@mail.gmail.com> Hi list, I`m tying to add a Geometry Collection which consists of a line feautre and a point, the point is a arrow head to be place at the end of line, however It seems the constructor is not taking a geometry object, which seems to be adding to a simple vector layer, I tried the code in FireBug, but it shows undefined. this is how I`m trying to do. pointList is an array of OpenLayer points and works if the line string is added to a feature.vector object, pointList.toString() returns "POINT(73.13187817700006 33.59365778950007),POINT(73.12991075150003 33.59738348500005)" var gc = new OpenLayers.Geometry.Collection([new OpenLayers.Geometry.LineString(pointList)]); what am i doing wrong here. regards, Imran -- I.R From tino.desjardins at arcor.de Wed Jul 14 04:58:09 2010 From: tino.desjardins at arcor.de (tino.desjardins@arcor.de) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Adding forms to Layers In-Reply-To: <4C3D5624.8070703@tiscalinet.it> References: <4C3D5624.8070703@tiscalinet.it> <1279074781566-5290691.post@n2.nabble.com> <AANLkTinlM79SM96M7xx7L2jV81-Bdw-rzqB1RqcZeMu2@mail.gmail.com> Message-ID: <36269.1279097889763.JavaMail.ngmail@webmail13.arcor-online.net> Hi, another method is to build an uncompressed file by using the python-script "buildUncompressed.py" in the Folder "build". regards Tino ----- Original Nachricht ---- Von: emmexx <emmexx@tiscalinet.it> An: Kalyan Kamepalli <kalyan.kamepalli@gmail.com> Datum: 14.07.2010 08:16 Betreff: Re: [OpenLayers-Users] Adding forms to Layers > Il 14/07/2010 08:00, Kalyan Kamepalli scrisse: > > > > I find it very hard to read the OpenLayers.js as it is compressed to > > reduce the size. Is there a way to get it back to a readable format ? > > The source is in the package in lib/OpenLayers. > To debug your code you can link to lib/OpenLayers.js and use Firebug. > > bye > maxx > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- E-Cards: Schon fertig f?r die ganz Eiligen oder individuell zum Selbstgestalten - f?r jeden Anlass gibt?s die richtige E-Card auf arcor.de. http://www.arcor.de/rd/footer.ecard From tino.desjardins at arcor.de Wed Jul 14 05:21:07 2010 From: tino.desjardins at arcor.de (tino.desjardins@arcor.de) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Adding forms to Layers In-Reply-To: <36269.1279097889763.JavaMail.ngmail@webmail13.arcor-online.net> References: <36269.1279097889763.JavaMail.ngmail@webmail13.arcor-online.net> <4C3D5624.8070703@tiscalinet.it> <1279074781566-5290691.post@n2.nabble.com> <AANLkTinlM79SM96M7xx7L2jV81-Bdw-rzqB1RqcZeMu2@mail.gmail.com> Message-ID: <31635616.1279099267198.JavaMail.ngmail@webmail13.arcor-online.net> If you want to create a new form, then create a new class which inherits from control: OpenLayers.Control.YourControl = OpenLayers.Class(OpenLayers.Control, { initialize: function(options) { OpenLayers.Control.prototype.initialize.apply(this, [options]); }, ..... CLASS_NAME: "OpenLayers.Control.YourControl" }); If you need a container for your control, use the class "Panel". hope that helps Tino ----- Original Nachricht ---- Von: tino.desjardins@arcor.de An: emmexx@tiscalinet.it, kalyan.kamepalli@gmail.com Datum: 14.07.2010 10:58 Betreff: Re: [OpenLayers-Users] Adding forms to Layers > Hi, > > another method is to build an uncompressed file by using the python-script > "buildUncompressed.py" in the Folder "build". > > regards > > Tino > > > ----- Original Nachricht ---- > Von: emmexx <emmexx@tiscalinet.it> > An: Kalyan Kamepalli <kalyan.kamepalli@gmail.com> > Datum: 14.07.2010 08:16 > Betreff: Re: [OpenLayers-Users] Adding forms to Layers > > > Il 14/07/2010 08:00, Kalyan Kamepalli scrisse: > > > > > > I find it very hard to read the OpenLayers.js as it is compressed to > > > reduce the size. Is there a way to get it back to a readable format ? > > > > The source is in the package in lib/OpenLayers. > > To debug your code you can link to lib/OpenLayers.js and use Firebug. > > > > bye > > maxx > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > -- > E-Cards: Schon fertig f?r die ganz Eiligen oder individuell zum > Selbstgestalten - f?r jeden Anlass gibt?s die richtige E-Card auf arcor.de. > http://www.arcor.de/rd/footer.ecard > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- E-Cards: Schon fertig f?r die ganz Eiligen oder individuell zum Selbstgestalten - f?r jeden Anlass gibt?s die richtige E-Card auf arcor.de. http://www.arcor.de/rd/footer.ecard From zimmermann at zimrob.de Wed Jul 14 05:33:28 2010 From: zimmermann at zimrob.de (Robert Zimmermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] WFS Error with XML Parsing Error Message-ID: <001d01cb2337$9dcdba30$d9692e90$@de> I think that must be a security problem, because I can open the wfs source with qgis and try some different openlayers codes. Maybe the Port 8080 is blocked?! I have seen that some people here use the 8090 port for catching the geoserver wfs source. Is here somebody had the same problem? Regards, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/d999fdcb/attachment.html From adrian_gh.popa at romtelecom.ro Wed Jul 14 07:20:19 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner Message-ID: <4C3D9D73.3000103@romtelecom.ro> Hello, I'm trying to move the layer switcher button from the top-right corner of the map to the bottom-left corner. I have done this before with 2.8, but I ended up making changes in the openlayers API, but I can see now that 2.9.1 seems to have made changes in the LayerSwitcher's definition. I'm trying to override just some CSS rules to move the button where I want it, and also, make changes to display the minimize button on the left side of the expanded div (instead of having it on the right side). Before I show you my hacked-up code, I'd like to ask: has anyone moved it and can I get some sample code? Thanks, Adrian From rajjad at gmail.com Wed Jul 14 08:25:11 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] add an arrow to line feature In-Reply-To: <02656758FFFCDF4D9CC79BC33EBC55F880E5A9@TD-VIRT-EX-01.geomatikk.ad> References: <AANLkTimOqVIIJzh5QF3KvgiRq0p7oBQlTknR04G42JOC@mail.gmail.com> <B1BF520D-ABCA-4659-B9FF-5279BE2C16CE@xebia.com> <AANLkTikp2ISJOyUZ1LegI3KQ0pl_Z9wXurT4rau8XC8o@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A8@TD-VIRT-EX-01.geomatikk.ad> <AANLkTim1UGMRoHgTP9eVGZEfPXrTrXd7qzNuulRdGEld@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A9@TD-VIRT-EX-01.geomatikk.ad> Message-ID: <AANLkTika8Zrg7Bpq3o3BloQhrB0Y3-_n8P-M7jBxxKHH@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2217 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/5830e3bf/attachment.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8056 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/5830e3bf/attachment.png From zimmermann at zimrob.de Wed Jul 14 09:17:31 2010 From: zimmermann at zimrob.de (Robert Zimmermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] GeoServer WFS Message-ID: <003301cb2356$eac1a530$c044ef90$@de> Hello, I want to get from a GeoServer WFS a Layer in OpenLayers A very simple problem, but nothing is working. Sorry. When I get the Data with WMS all is fine. I have try the following Code: new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:31467", // this is the default projection: "EPSG:31467", url: "http://zimrob.com:8080/geoserver/wfs", featureType: "pcd_incidents", featureNS: "http://www.zimrob.com/crimewebgis" }), projection: "EPSG:31467", // specified because it is different than the map styleMap: styleMap }) http://zimrob.com:8080/geoserver/wfs still working. My Map definition is this: var map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition()], projection : 'EPSG:31467', maxResolution: 800, units: 'm', fractionalZoom: true, maxExtent: new OpenLayers.Bounds(3146150, 5223600, 4031150, 6108600) }); I hope your can help me. Regards Robert. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/d4553ad4/attachment.html From tino.desjardins at arcor.de Wed Jul 14 09:50:42 2010 From: tino.desjardins at arcor.de (tino.desjardins@arcor.de) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] GeoServer WFS In-Reply-To: <003301cb2356$eac1a530$c044ef90$@de> References: <003301cb2356$eac1a530$c044ef90$@de> Message-ID: <33115060.1279115442910.JavaMail.ngmail@webmail13.arcor-online.net> Hey Robert, have you setup the OpenLayers-Proxy? regards Tino ----- Original Nachricht ---- Von: Robert Zimmermann <zimmermann@zimrob.de> An: users@openlayers.org Datum: 14.07.2010 15:17 Betreff: [OpenLayers-Users] GeoServer WFS > Hello, > > > > I want to get from a GeoServer WFS a Layer in OpenLayers > > A very simple problem, but nothing is working. Sorry. > > > > When I get the Data with WMS all is fine. > > > > I have try the following Code: > > > > new OpenLayers.Layer.Vector("WFS", { > > strategies: [new OpenLayers.Strategy.BBOX()], > > protocol: new OpenLayers.Protocol.WFS({ > > version: "1.1.0", > > srsName: "EPSG:31467", // this is the default > > projection: "EPSG:31467", > > url: "http://zimrob.com:8080/geoserver/wfs", > > featureType: "pcd_incidents", > > featureNS: "http://www.zimrob.com/crimewebgis" > > }), > > projection: "EPSG:31467", // specified because it > is > different than the map > > styleMap: styleMap > > }) > > > > http://zimrob.com:8080/geoserver/wfs still working. > > My Map definition is this: > > > > var map = new OpenLayers.Map('map', { > > controls: [ > > new > OpenLayers.Control.Attribution(), > > new > OpenLayers.Control.MouseDefaults(), > > new > OpenLayers.Control.PanZoomBar(), > > new > OpenLayers.Control.MousePosition()], > > projection : 'EPSG:31467', > > maxResolution: 800, > > units: 'm', > > fractionalZoom: true, > > maxExtent: new OpenLayers.Bounds(3146150, > 5223600, 4031150, 6108600) > > }); > > > > I hope your can help me. > > > > Regards Robert. > > > > > > -------------------------------- > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- E-Cards: Schon fertig f?r die ganz Eiligen oder individuell zum Selbstgestalten - f?r jeden Anlass gibt?s die richtige E-Card auf arcor.de. http://www.arcor.de/rd/footer.ecard From dheeraj at dheerajchand.com Wed Jul 14 10:40:26 2010 From: dheeraj at dheerajchand.com (Dheeraj Chand) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Creating styles based on the values of calculated variables. Message-ID: <A7DF91C2-ED7D-4A49-A4A1-915C0050A68A@dheerajchand.com> Hello, everyone! First time poster, here. I'm pretty new to JS, in general, and OpenLayers, particularly, but I'm really enjoying it so far. I am curious if anyone has done something like what I am trying to do. My goal is to allow a user to select any two variables by means of a form. These variables could be, say, the number of people in Texas, by county, from 1991 to 1999. The goal is then to create a new variable, Var3, where Var3 = (Var1 - Var2) and then style the entire map based on the value of Var3. (Each variable would obviously represent an attribute of the layer) I have got everything down except how to build a style based on the value of a derived variable. Any advice? Thanks! Dheeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/226285a9/attachment.html From mak.kolybabi at telenium.ca Wed Jul 14 10:54:08 2010 From: mak.kolybabi at telenium.ca (Mak Kolybabi) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Creating styles based on the values of calculated variables. In-Reply-To: <A7DF91C2-ED7D-4A49-A4A1-915C0050A68A@dheerajchand.com> References: <A7DF91C2-ED7D-4A49-A4A1-915C0050A68A@dheerajchand.com> Message-ID: <4C3DCF90.20603@telenium.ca> On 07/14/2010 09:40 AM, Dheeraj Chand wrote: > I am curious if anyone has done something like what I am trying to do. My goal is to allow a user to select any two variables by means of a form. These variables could be, say, the number of people in Texas, by county, from 1991 to 1999. The goal is then to create a new variable, Var3, where Var3 = (Var1 - Var2) and then style the entire map based on the value of Var3. (Each variable would obviously represent an attribute of the layer) I have got everything down except how to build a style based on the value of a derived variable. Any advice? Not sure if this is exactly what you're looking for, but it's possible to have a style that has function-backed portions: > style_park = new OpenLayers.Style( > { > display: "${display}", > externalGraphic: "/images/park/sk-park.png", > // Original is 97x97. > graphicWidth: 25, > graphicHeight: 25 > }, > { > context: { > display: function (feature) { > return (feature.data.url) ? "show" : "none"; > } > } > } > ); -- Mak Kolybabi Programmer Telenium Inc. 204-957-2821 From RDell at CatawbaCountyNC.gov Wed Jul 14 11:52:51 2010 From: RDell at CatawbaCountyNC.gov (Ralph Dell) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] GeoServer WFS References: <003301cb2356$eac1a530$c044ef90$@de> Message-ID: <C8E14DAE4E28C647A5DAB20B4F7CB6090487285B@COCATEX01.cocat.local> Not to state the obvious but are you adding the layer to the map? var layer = new OpenLayers.Layer.Vector ... map.addLayers([layer]); Ralph Dell From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Robert Zimmermann Sent: Wednesday, July 14, 2010 9:18 AM To: users@openlayers.org Subject: [OpenLayers-Users] GeoServer WFS Hello, I want to get from a GeoServer WFS a Layer in OpenLayers A very simple problem, but nothing is working. Sorry. When I get the Data with WMS all is fine. I have try the following Code: new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:31467", // this is the default projection: "EPSG:31467", url: "http://zimrob.com:8080/geoserver/wfs", featureType: "pcd_incidents", featureNS: "http://www.zimrob.com/crimewebgis" }), projection: "EPSG:31467", // specified because it is different than the map styleMap: styleMap }) http://zimrob.com:8080/geoserver/wfs still working. My Map definition is this: var map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition()], projection : 'EPSG:31467', maxResolution: 800, units: 'm', fractionalZoom: true, maxExtent: new OpenLayers.Bounds(3146150, 5223600, 4031150, 6108600) }); I hope your can help me. Regards Robert. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/060e9d01/attachment.html From pierm4ci at yahoo.it Wed Jul 14 16:18:20 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate Message-ID: <266547.96292.qm@web28607.mail.ukl.yahoo.com> Hi,I have a bounding box with this coordiate:- minx miny;- maxx maxy. So I would center my map on this coordinate.How I have to do it? I have seen:map.setCenter(); but I don't know what kind of parameters I have to use. How I can do it? Thanks a lot. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/82c6c3a5/attachment.html From bmcbride at chacompanies.com Wed Jul 14 16:24:46 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate In-Reply-To: <266547.96292.qm@web28607.mail.ukl.yahoo.com> References: <266547.96292.qm@web28607.mail.ukl.yahoo.com> Message-ID: <1279139086230-5294634.post@n2.nabble.com> Try map.zoomToExtent http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Center-map-to-minx-miny-maxx-maxy-coordinate-tp5294607p5294634.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/c047617b/attachment.html From pierm4ci at yahoo.it Wed Jul 14 16:40:06 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate In-Reply-To: <1279139086230-5294634.post@n2.nabble.com> Message-ID: <921958.11590.qm@web28604.mail.ukl.yahoo.com> Ok thanks, I have used:map.zoomToExtent(new OpenLayers.Bounds(parseFloat(coord[0]),parseFloat(coord[1]),parseFloat(coord[2]),parseFloat(coord[3]) ?)); And if I would draw a boundin box with these coordinate? How can I do? Sorry but I am not expert. Thanks again. --- Mer 14/7/10, BMcBride <bmcbride@chacompanies.com> ha scritto: Da: BMcBride <bmcbride@chacompanies.com> Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate A: users@openlayers.org Data: Mercoled? 14 luglio 2010, 22:24 Try map.zoomToExtent http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtentBryan R. McBride, GISP bryanmcbride.com View this message in context: Re: Center map to minx miny maxx maxy coordinate Sent from the OpenLayers Users mailing list archive at Nabble.com. -----Segue allegato----- _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/f543327e/attachment.html From pierm4ci at yahoo.it Wed Jul 14 16:50:32 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate In-Reply-To: <921958.11590.qm@web28604.mail.ukl.yahoo.com> Message-ID: <307195.30749.qm@web28606.mail.ukl.yahoo.com> Solved. selectionBox = new OpenLayers.Feature.Vector(bounds.toGeometry()); vectors.addFeatures( [ selectionBox ]); --- Mer 14/7/10, michele pierri <pierm4ci@yahoo.it> ha scritto: Da: michele pierri <pierm4ci@yahoo.it> Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate A: "BMcBride" <bmcbride@chacompanies.com>, users@openlayers.org Data: Mercoled? 14 luglio 2010, 22:40 Ok thanks, I have used:map.zoomToExtent(new OpenLayers.Bounds(parseFloat(coord[0]),parseFloat(coord[1]),parseFloat(coord[2]),parseFloat(coord[3]) ?)); And if I would draw a boundin box with these coordinate? How can I do? Sorry but I am not expert. Thanks again. --- Mer 14/7/10, BMcBride <bmcbride@chacompanies.com> ha scritto: Da: BMcBride <bmcbride@chacompanies.com> Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate A: users@openlayers.org Data: Mercoled? 14 luglio 2010, 22:24 Try map.zoomToExtent http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtentBryan R. McBride, GISP bryanmcbride.com View this message in context: Re: Center map to minx miny maxx maxy coordinate Sent from the OpenLayers Users mailing list archive at Nabble.com. -----Segue allegato----- _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -----Segue allegato----- _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/587e8429/attachment.html From arnd.wippermann at web.de Wed Jul 14 17:09:41 2010 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Proportional Symbols from GMLattributes/OpenLayers In-Reply-To: <1279072695020-5290622.post@n2.nabble.com> References: <1279072695020-5290622.post@n2.nabble.com> Message-ID: <D57C80CBF7034FC99C2A2C9B6B36907F@pcawh2> Hi, Use for your gml layer the option extractAttributes: true to get features with attributes. Use a styleMap for your layer, where your pointRadius is set by an attribute : var template = { strokeColor: "#0000FF", ... pointRadius: "${yourAttribute}" }; styleMapRotation = new OpenLayers.StyleMap(new OpenLayers.Style(template)); or you use a styleMap with context, if you want calculate the radius by other conditions : function set_styleMapRotation() { var context = { getPointRadius : function(ft){ var zoomOffset = map.projection == "EPSG:4326" ? 1 : 8; var fktr=1; var diffZ = map.getZoom() - zoomOffset; return diffZ > 0 ? 7 + 3*diffZ*fktr : 8; } }; var template = { strokeColor: "#0000FF", ... pointRadius: "${getPointRadius}" }; styleMapRotation = new OpenLayers.StyleMap(new OpenLayers.Style(template, {context:context}) ); } set_styleMapRotation(); Example with pointRadius set by the attribute for the population of cities and label size by zoomLevel http://gis.ibbeck.de/OLClient/OLClient.asp?KARTE=k10000 Arnd -----Urspr?ngliche Nachricht----- Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von geotech Gesendet: Mittwoch, 14. Juli 2010 03:58 An: users@openlayers.org Betreff: [OpenLayers-Users] Proportional Symbols from GMLattributes/OpenLayers I know there is an easy solution to this problem just haven't found what I'm looking for. This is my situation, I'm using FeatureServer to load my overlay points from shapefiles to .gml . I'm using an OSM baselayer with a reprojection from UTM to lat/lon. What I want to do is display point symbols using a ratio to the attribute value aka proportional symbols.Is there an Openlayers.get.attribute or something along those lines that I can pull an attribute value from the gml or is this a matter of hacking JavaScript to get the results I'm looking for. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Proportional-Symbols-from-GML-attribu tes-OpenLayers-tp5290622p5290622.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users From rossko at culzean.clara.co.uk Wed Jul 14 17:26:36 2010 From: rossko at culzean.clara.co.uk (Rossko) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] add an arrow to line feature In-Reply-To: <AANLkTika8Zrg7Bpq3o3BloQhrB0Y3-_n8P-M7jBxxKHH@mail.gmail.com> References: <AANLkTimOqVIIJzh5QF3KvgiRq0p7oBQlTknR04G42JOC@mail.gmail.com> <B1BF520D-ABCA-4659-B9FF-5279BE2C16CE@xebia.com> <AANLkTikp2ISJOyUZ1LegI3KQ0pl_Z9wXurT4rau8XC8o@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A8@TD-VIRT-EX-01.geomatikk.ad> <AANLkTim1UGMRoHgTP9eVGZEfPXrTrXd7qzNuulRdGEld@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A9@TD-VIRT-EX-01.geomatikk.ad> <AANLkTika8Zrg7Bpq3o3BloQhrB0Y3-_n8P-M7jBxxKHH@mail.gmail.com> Message-ID: <1279142796863-5294880.post@n2.nabble.com> > function setRadius(){ // this functions gets called everytime the map is panned or zoomed > try{ > radii= map.getZoom(); I wonder what the value of 'radii' would be before any pan/zoom takes place. > var lineFeature = new OpenLayers.Feature.Vector(gc,{datetime : "some > text",radius : radii },style_line); Once set here, the 'radius' attribute won't be updated on pan/zoom. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/add-an-arrow-to-line-feature-tp5234002p5294880.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mcpiper at rocketmail.com Wed Jul 14 21:37:14 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems Message-ID: <1279157834653-5295582.post@n2.nabble.com> Hi, I'm just putting together my first OL map and have run into a problem. The map is using Bing maps for the base and several WMS overlays. I'm trying to make a layer scale dependent with no success and have been through all the tips I could find in the forums. I'm obviously missing something and am questioning whether I've configured the resolutions and extents correctly also. Here is the relevant code: //Configure map var options = { projection: new OpenLayers.Projection("EPSG:900913"), units: "m", resolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135, 0.29858214169740677, 0.14929107084870338, 0.07464553542435169, 0.037322767712175846, 0.018661383856087923, 0.009330691928043961, 0.004665345964021981], maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), restrictedExtent: new OpenLayers.Bounds(-8903840, 5281647, -8788370, 5362210) }; ... var watercourses2 = new OpenLayers.Layer.WMS( "Watercourses", "http://gis.npca.ca/geoserver/gwc/service/wms?", { layers: 'floodmapping:watercourses_2k', transparent: 'true', resolutions: [0.07464553542435169, 0.037322767712175846, 0.018661383856087923, 0.009330691928043961, 0.004665345964021981], displayProjection: new OpenLayers.Projection("EPSG:4326"), isBaseLayer: false }); I appreciate any help I can get, and I'm a newb so be gentle! mcpiper -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5295582.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bmcbride at chacompanies.com Wed Jul 14 23:49:37 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279157834653-5295582.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> Message-ID: <1279165777757-5295843.post@n2.nabble.com> Try using 'minScale': 1000000 or 'maxScale': 1000000 ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5295843.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rajjad at gmail.com Thu Jul 15 01:10:32 2010 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] add an arrow to line feature In-Reply-To: <1279142796863-5294880.post@n2.nabble.com> References: <AANLkTimOqVIIJzh5QF3KvgiRq0p7oBQlTknR04G42JOC@mail.gmail.com> <B1BF520D-ABCA-4659-B9FF-5279BE2C16CE@xebia.com> <AANLkTikp2ISJOyUZ1LegI3KQ0pl_Z9wXurT4rau8XC8o@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A8@TD-VIRT-EX-01.geomatikk.ad> <AANLkTim1UGMRoHgTP9eVGZEfPXrTrXd7qzNuulRdGEld@mail.gmail.com> <02656758FFFCDF4D9CC79BC33EBC55F880E5A9@TD-VIRT-EX-01.geomatikk.ad> <AANLkTika8Zrg7Bpq3o3BloQhrB0Y3-_n8P-M7jBxxKHH@mail.gmail.com> <1279142796863-5294880.post@n2.nabble.com> Message-ID: <AANLkTinJSdVqRQ5XDVRf_1Qf-3zbp_7gb7-StbsZURgj@mail.gmail.com> Hi, thanks for the relpy, well I need this arrow to resize with the zoom in... radii will remain between 1 to 10.. ,. so I`m just trying to set to 10 when the map is zoomed in maximum. do I need to write an SLD and import it? but my geometry type is collection a collection of line and point feature, wonder how will sld react to that .. thanks anyway. regards, Imran On Thu, Jul 15, 2010 at 2:26 AM, Rossko <rossko@culzean.clara.co.uk> wrote: > >> ?function setRadius(){ // this functions gets called everytime the map is > panned or zoomed >> ? ? ? ? try{ >> ? ? ? ? ?radii= map.getZoom(); > > I wonder what the value of 'radii' would be before any pan/zoom takes place. > >> var lineFeature = new OpenLayers.Feature.Vector(gc,{datetime : "some >> text",radius : radii },style_line); > > Once set here, the 'radius' attribute won't be updated on pan/zoom. > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/add-an-arrow-to-line-feature-tp5234002p5294880.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- I.R From zimmermann at zimrob.de Thu Jul 15 07:41:40 2010 From: zimmermann at zimrob.de (Robert Zimmermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] GeoServer WFS In-Reply-To: <C8E14DAE4E28C647A5DAB20B4F7CB6090487285B@COCATEX01.cocat.local> References: <003301cb2356$eac1a530$c044ef90$@de> <C8E14DAE4E28C647A5DAB20B4F7CB6090487285B@COCATEX01.cocat.local> Message-ID: <001d01cb2412$b0f0bf50$12d23df0$@de> @ Ralph: yes I had add the layer to the map. The solution is to install a proxy.cgi. Thanks Tino! Von: Ralph Dell [mailto:RDell@CatawbaCountyNC.gov] Gesendet: Mittwoch, 14. Juli 2010 17:53 An: Robert Zimmermann; users@openlayers.org Betreff: RE: [OpenLayers-Users] GeoServer WFS Not to state the obvious but are you adding the layer to the map? var layer = new OpenLayers.Layer.Vector . map.addLayers([layer]); Ralph Dell From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Robert Zimmermann Sent: Wednesday, July 14, 2010 9:18 AM To: users@openlayers.org Subject: [OpenLayers-Users] GeoServer WFS Hello, I want to get from a GeoServer WFS a Layer in OpenLayers A very simple problem, but nothing is working. Sorry. When I get the Data with WMS all is fine. I have try the following Code: new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:31467", // this is the default projection: "EPSG:31467", url: "http://zimrob.com:8080/geoserver/wfs", featureType: "pcd_incidents", featureNS: "http://www.zimrob.com/crimewebgis" }), projection: "EPSG:31467", // specified because it is different than the map styleMap: styleMap }) http://zimrob.com:8080/geoserver/wfs still working. My Map definition is this: var map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition()], projection : 'EPSG:31467', maxResolution: 800, units: 'm', fractionalZoom: true, maxExtent: new OpenLayers.Bounds(3146150, 5223600, 4031150, 6108600) }); I hope your can help me. Regards Robert. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/9ee4a76a/attachment.html From mcpiper at rocketmail.com Thu Jul 15 08:59:01 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279165777757-5295843.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> Message-ID: <1279198741753-5297224.post@n2.nabble.com> Thanks for replying Bryan, min/maxScale isn't working either. It seems like a number of layer properties are being ignored. I've even tried just setting visibility: 'false' to see what happens and the layer still loads. I also tried to just do a work around using getResolution and an if statement, but getResolution always returns null. if (map.getResolution() < 1) {vis = 'false'} else {vis = 'true'} mcpiper -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297224.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From antoni.vidal at icc.cat Thu Jul 15 09:00:42 2010 From: antoni.vidal at icc.cat (Vidal, Antoni) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] MapFish vs OpenLayers Message-ID: <784FAC631C0CB14CAE68764151D5DA41081D696C@CORRIOL.icc.local> Hello list, We use OpenLayers since 4 years and the results are very satisfactory. Nowadays, We are planning to make a step foreward using MapFIsh. Somebody has experience with this framework? What's your opinion versus OL? In my first sight, I think MapFish too complex. What do you think? Thanks in advance. Antoni Vidal Unitat d'Aplicacions SIG-WEB Institut Cartogr?fic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> Parc de Montju?c, E-08038 Barcelona Tel. (+34) 93 567 15 00 (ext. 3228) www.icc.cat <http://www.icc.cat/> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/cda8ea9e/attachment.html From bartvde at osgis.nl Thu Jul 15 09:05:29 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] MapFish vs OpenLayers In-Reply-To: <784FAC631C0CB14CAE68764151D5DA41081D696C@CORRIOL.icc.local> References: <784FAC631C0CB14CAE68764151D5DA41081D696C@CORRIOL.icc.local> Message-ID: <944DA63D-B006-4D53-AAC0-0C21C506BC09@osgis.nl> Hi, I think you need to differentiate between MapFish and GeoExt. GeoExt adds a nice looking GUI to OpenLayers, it's all still javascript. GeoExt is also used by MapFish. What is complex in your opinion? MapFish is more than just a client webmapping package, it's a full web-mapping solution, so server-side + client-side. Also read: http://erilem.wordpress.com/2009/04/19/mapfish-and-geoext/ Best regards, Bart On Jul 15, 2010, at 3:00 PM, Vidal, Antoni wrote: > Hello list, > > We use OpenLayers since 4 years and the results are very satisfactory. Nowadays, We are planning to make a step foreward using MapFIsh. Somebody has experience with this framework? What?s your opinion versus OL? > > In my first sight, I think MapFish too complex. > > What do you think? > > Thanks in advance. > > Antoni Vidal > Unitat d'Aplicacions SIG-WEB > Institut Cartogr?fic de Catalunya > Parc de Montju?c, E-08038 Barcelona > Tel. (+34) 93 567 15 00 (ext. 3228) > www.icc.cat > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/27f9887d/attachment.html From bmcbride at chacompanies.com Thu Jul 15 09:28:31 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279198741753-5297224.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> <1279198741753-5297224.post@n2.nabble.com> Message-ID: <1279200511209-5297365.post@n2.nabble.com> Try something like this: var watercourses2 = new OpenLayers.Layer.WMS( "Watercourses", "http://gis.npca.ca/geoserver/gwc/service/wms?", { layers: 'floodmapping:watercourses_2k', transparent: true, format: 'image/png' }, { isBaseLayer: false, visibility: true, minScale: 1000000 } ); http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297365.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From S_K_U_N_X at yahoo.com Thu Jul 15 09:48:54 2010 From: S_K_U_N_X at yahoo.com (ulao) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Confused about items on a map. Message-ID: <1279201734672-5297445.post@n2.nabble.com> With most map API's a person can track an object. If not by an ID at least by a instance. So if I make a OpenLayers.Feature.Vector and need to update its lat and lon, color, or find this objects id/reference later when mouse overed or down, how is that done? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297445.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Thu Jul 15 09:56:30 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Confused about items on a map. In-Reply-To: <1279201734672-5297445.post@n2.nabble.com> References: <1279201734672-5297445.post@n2.nabble.com> Message-ID: <21568EF3-1FA0-4E59-83B6-30C4A55C52D1@osgis.nl> Use the SelectFeature control. Best regards, Bart On Jul 15, 2010, at 3:48 PM, ulao wrote: > > With most map API's a person can track an object. If not by an ID at least by > a instance. So if I make a OpenLayers.Feature.Vector and need to update its > lat and lon, color, or find this objects id/reference later when mouse > overed or down, how is that done? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297445.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > From armin.burger at gmx.net Thu Jul 15 10:10:00 2010 From: armin.burger at gmx.net (Armin Burger) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Problem with Google layers positioning after map resize Message-ID: <20100715141000.159350@gmx.net> Hello I stumbled over a problem with Google layers and a map resize that looks similar to the one described here: http://trac.openlayers.org/ticket/1797 The problem appears if I have a Google layer activated, then switch to another non-Google base layer, change the map size via a GUI functionality (after resize of the map DIV the map.updateSize() method is applied), and then switch back to the Google layer. The Google layer has then not been correctly updated to the new map size, it means that the layer tiles are not moved correctly. If I then use the pan tool the map tiles are very strangely moved and the map extent is completely messed up. You can find this affect on an application here: http://cidportal.jrc.ec.europa.eu/imagearchive/main/ resizing the map is done with the thin bars at the left/bottom of the map. The strange thing is that I noticed this behaviour only very recently, I mean in the last days. Before, neither me nor my colleague can remember having seen this behaviour. But our code and the OpenLayers library have not changed in the meantime. I tried the same now on a test server with the new OL 2.9 but still get the same strange effects. I don't have a clue what could have happened and causes this problem. I could only think of a change in the Google API since this is always downloaded for every new access. Any help or hint would be very appreciated. I can provide more details if required. Best regards Armin -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 From mcpiper at rocketmail.com Thu Jul 15 10:10:44 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279200511209-5297365.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> <1279198741753-5297224.post@n2.nabble.com> <1279200511209-5297365.post@n2.nabble.com> Message-ID: <1279203044409-5297558.post@n2.nabble.com> Thanks Bryan, that did it, though I had to use minResolution rather than minScale. Not to pester, but why did this work over setting all properties in one set? Thanks again, mcpiper -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297558.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bmcbride at chacompanies.com Thu Jul 15 10:17:15 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279203044409-5297558.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> <1279198741753-5297224.post@n2.nabble.com> <1279200511209-5297365.post@n2.nabble.com> <1279203044409-5297558.post@n2.nabble.com> Message-ID: <1279203435864-5297584.post@n2.nabble.com> Have a look at the OpenLayers.Layer.WMS Constructor documentation I referenced in my post above. OpenLayers.Layer.WMS Parameters: name {String} A name for the layer url {String} Base url for the WMS (e.g. http://wms.jpl.nasa.gov/wms.cgi) params {Object} An object with key/value pairs representing the GetMap query string parameters and parameter values. options {Ojbect} Hashtable of extra options to tag onto the layer The first set of params define the GetMap request while the second set of options are OL specific API properties. ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297584.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ijturton at gmail.com Thu Jul 15 10:21:23 2010 From: ijturton at gmail.com (Ian Turton) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279203044409-5297558.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> <1279198741753-5297224.post@n2.nabble.com> <1279200511209-5297365.post@n2.nabble.com> <1279203044409-5297558.post@n2.nabble.com> Message-ID: <AANLkTimDrL9FaX0TPSAgHq0gD_Jh0hl97YrnaRjlg64v@mail.gmail.com> On Thu, Jul 15, 2010 at 10:10 AM, mcpiper <mcpiper@rocketmail.com> wrote: > > Thanks Bryan, that did it, though I had to use minResolution rather than > minScale. Not to pester, but why did this work over setting all properties > in one set? Because the first group are parameters for the WMS server and the second set are options for OpenLayers. WMS knows nothing about minScale (or minResolution) and isBaseLayer etc so it ignores them. Ian -- Ian Turton From mcpiper at rocketmail.com Thu Jul 15 10:27:06 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Scale dependent layer problems In-Reply-To: <1279203435864-5297584.post@n2.nabble.com> References: <1279157834653-5295582.post@n2.nabble.com> <1279165777757-5295843.post@n2.nabble.com> <1279198741753-5297224.post@n2.nabble.com> <1279200511209-5297365.post@n2.nabble.com> <1279203044409-5297558.post@n2.nabble.com> <1279203435864-5297584.post@n2.nabble.com> Message-ID: <1279204026856-5297635.post@n2.nabble.com> Ah, I see now. I didn't find this particularly clear in the documentation but thanks enormously for setting me straight. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297635.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From S_K_U_N_X at yahoo.com Thu Jul 15 10:29:26 2010 From: S_K_U_N_X at yahoo.com (ulao) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Confused about items on a map. In-Reply-To: <21568EF3-1FA0-4E59-83B6-30C4A55C52D1@osgis.nl> References: <1279201734672-5297445.post@n2.nabble.com> <21568EF3-1FA0-4E59-83B6-30C4A55C52D1@osgis.nl> Message-ID: <1279204166202-5297646.post@n2.nabble.com> hey, thx. I think my bigger issue is this.. http://dev.openlayers.org/releases/OpenLayers-2.9/doc/apidocs/files/OpenLayers/Feature-js.html vs http://dev.openlayers.org/docs/files/OpenLayers/Feature-js.html the top is a stripped down no option version of the bottom, what am I missing here? The second link has what i would have expected. so what the first link all about? So SelectFeature will get me my reference, can I get it during construction. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297646.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From christopher.schmidt at nokia.com Thu Jul 15 10:32:52 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Confused about items on a map. In-Reply-To: <1279204166202-5297646.post@n2.nabble.com> References: <1279201734672-5297445.post@n2.nabble.com> <21568EF3-1FA0-4E59-83B6-30C4A55C52D1@osgis.nl> <1279204166202-5297646.post@n2.nabble.com> Message-ID: <D9A23A25-B673-4796-A653-E746697FE51D@nokia.com> On Jul 15, 2010, at 10:29 AM, ext ulao wrote: > > hey, thx. I think my bigger issue is this.. > > http://dev.openlayers.org/releases/OpenLayers-2.9/doc/apidocs/files/OpenLayers/Feature-js.html > > vs > > http://dev.openlayers.org/docs/files/OpenLayers/Feature-js.html > > the top is a stripped down no option version of the bottom, what am I > missing here? The second link has what i would have expected. so what the > first link all about? "There are two types of properties/methods in the OpenLayers code: One set is the set of API Methods and properties. There are also additional internal properties which are not exposed to the API. Javascript does not have private members, so there is no technical limitation to using these non-documented methods in Application code. However, while we make every effort not to change APIs between releases, methods and properties which are not explicitly declared as API Methods may change in minor releases. The documentation above only includes the API Methods. Full developer/internal library documentation is also available below, but methods which are not available in the API documentation above can not be depended upon to stay the same between releases. If you use methods included in these docs, you may have to make modifications in your application code to run between minor releases of OpenLayers." -- http://trac.openlayers.org/wiki/Documentation > So SelectFeature will get me my reference, can I get it during > construction. > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297646.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users Regards, -- Christopher Schmidt Nokia From adrian_gh.popa at romtelecom.ro Thu Jul 15 10:36:21 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Doing something when the layer's features get deleted Message-ID: <4C3F1CE5.1000108@romtelecom.ro> Hello everyone, I have a problem with popups and a vector layer - if I trigger a forced refresh on the vector layer while a popup for a feature is opening, the popup's div will freeze and I am unable to close it (most likely because the feature it was bound to gets deleted by the time the popup opens). Is there any way I can catch a signal/event for layer refresh (just before the layer's features get deleted) and abort/close the popup opening? Thanks, Adrian From S_K_U_N_X at yahoo.com Thu Jul 15 10:48:05 2010 From: S_K_U_N_X at yahoo.com (ulao) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Confused about items on a map. In-Reply-To: <D9A23A25-B673-4796-A653-E746697FE51D@nokia.com> References: <1279201734672-5297445.post@n2.nabble.com> <21568EF3-1FA0-4E59-83B6-30C4A55C52D1@osgis.nl> <1279204166202-5297646.post@n2.nabble.com> <D9A23A25-B673-4796-A653-E746697FE51D@nokia.com> Message-ID: <1279205285633-5297735.post@n2.nabble.com> ok very good. Still not getting the result I'd expect with this code. [code] var linearRing = new OpenLayers.Geometry.LinearRing(points); var obj = new OpenLayers.Geometry.Polygon([linearRing]); var polygonFeature = new OpenLayers.Feature.Vector( obj ); shapeLayer.addFeatures(polygonFeature) return polygonFeature; [/code] I know the object gets put on the map(shapeLayer), as I can see it but the returned value.fid is null? Also according to some of what I read "MapTools.shapeLayer.addFeatures(polygonFeature)" should return an array of what was added, but its always undefined. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297735.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnaud.sig at gmail.com Thu Jul 15 10:56:53 2010 From: arnaud.sig at gmail.com (Arnaud Vandecasteele) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Get the value of the element of an XML File Message-ID: <AANLkTinZBo-lm2GQjc5aEFXZfC3nTpGF46GG_ta_aybO@mail.gmail.com> Hi all, I'm trying to get the value of an XML file from an external server. Below are the steps I do. 1/ I download this XML file with a classic Ajax request : var getVesselsXML = new OpenLayers.Ajax.Request( urlVessels, { method: 'get' ,onSuccess : drawVessels ,extractAttributes: true } ); The result of the request is : "<POSITIONS> <V_POS LAT="42.35675" LON="4.2338452" N="RED COUGAR" T="9" H="43" S="53" F="ES" M="225350000" L="32" E="5" /> <V_POS LAT="42.532299" LON="4.35115" N="AQUAGLORY" T="7" H="217" S="157" F="GR" M="240119000" L="289" E="2" />... </POSITIONS>" 2/ In the drawVessels method I parse the result : var XmlFormat = new OpenLayers.Format.XML(); vessels = XmlFormat.read(XmlvesselsRequest.responseText); But I don't know how to get the attributes of a specific node. For example, how can i Get the LON and the LAT of each node ? I already tried somethings like that but it return me an empty string : vessel = XmlFormat.getElementsByTagNameNS(vessels,'*','V_POS'); for (i in vessel){ var LAT = XmlFormat.getAttributeNS(vessel[i],'*','LAT'); console.log(LAT); } Thanks for your help Best Regards Arnaud From jehanzeb_orakzai at yahoo.com Thu Jul 15 15:16:34 2010 From: jehanzeb_orakzai at yahoo.com (Jehanzeb Orakzai) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Change the background color of the WMS layer Message-ID: <913780.53434.qm@web24305.mail.ird.yahoo.com> Hi, I have a problem with my with WMS Layer: ? I have a raster image in tif format. When I overlay it in the map, A black background?builds at the null-value-area. Now in the map it is also shown as black and annoys the visual appearance. Is it possible to switch it into transparent? ? I have tried to change the opacity and transparent:true in the layer params, but it does'nt work. (I am using GeoServer and OpenLayers) Any help is appreciated. ? Thank you, -- Jehanzeb -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/672d6dbe/attachment.html From swilliams7_99 at yahoo.com Thu Jul 15 15:29:10 2010 From: swilliams7_99 at yahoo.com (geotech) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Proportional Symbols from GMLattributes/OpenLayers In-Reply-To: <D57C80CBF7034FC99C2A2C9B6B36907F@pcawh2> References: <1279072695020-5290622.post@n2.nabble.com> <D57C80CBF7034FC99C2A2C9B6B36907F@pcawh2> Message-ID: <1279222150208-5298942.post@n2.nabble.com> Thanks for the reply that was exactly the solution I was looking for. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Proportional-Symbols-from-GML-attributes-OpenLayers-tp5290622p5298942.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From dheeraj at dheerajchand.com Thu Jul 15 15:35:53 2010 From: dheeraj at dheerajchand.com (Dheeraj Chand) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Trying to troubleshoot a map: redrawing layer with SLD style Message-ID: <F8C1A631-56F2-4468-9C87-841BC6C0BF52@dheerajchand.com> Hi, everyone, I posted just the other day about a map that I'm building. The idea has been changed to a simpler one. Through a form, the user constructs a variable that represents the attribute to be considered, then a style is built and attached to the layer in question and the layer is redrawn. It should be fairly simple, but my newness to JS and OpenLayers is getting in the way. I seem to have all kinds of problems with this map,1) For some reason, battlegroundData is rendering as a base layer, not an overlay, 2) I think that something is wrong with the projection and 3) I'm not sure whether I read the documentation correctly for writing the style SLD and then attaching it. Mind helping a brother meet his deadline? http://gulfcoaststrategicservices.com/maps/lrp/index.html Thanks, Dheeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/781c1f30/attachment.html From bmcbride at chacompanies.com Thu Jul 15 15:45:03 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Trying to troubleshoot a map: redrawing layer with SLD style In-Reply-To: <F8C1A631-56F2-4468-9C87-841BC6C0BF52@dheerajchand.com> References: <F8C1A631-56F2-4468-9C87-841BC6C0BF52@dheerajchand.com> Message-ID: <1279223103519-5299018.post@n2.nabble.com> Dheeraj, Check this thread to fix your overlay/basemap issue: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-td5295582.html#a5297365 http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-td5295582.html#a5297365 . Once you switch this to an overlay, it should reproject to match up with your Google basemap layers. ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Trying-to-troubleshoot-a-map-redrawing-layer-with-SLD-style-tp5298979p5299018.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Thu Jul 15 17:29:25 2010 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Trying to troubleshoot a map: redrawing layerwith SLD style In-Reply-To: <F8C1A631-56F2-4468-9C87-841BC6C0BF52@dheerajchand.com> References: <F8C1A631-56F2-4468-9C87-841BC6C0BF52@dheerajchand.com> Message-ID: <7C3F57B4011B4C66889F762FCB441582@pcawh2> Hi, that's the way I write the SLD from a style: function SLDwrite(namedLayer) { var styleObj = map.layers[map.aktLayer]["styleMap"]["styles"]["default"]; var sld = {}; sld["namedLayers"] = {}; sld["namedLayers"][namedLayer] = {}; sld["namedLayers"][namedLayer]["userStyles"] = [styleObj]; sld["namedLayers"][namedLayer]["userStyles"][0].layerName = namedLayer; sld["namedLayers"][namedLayer]["namedStyles"] = []; sld["namedLayers"][namedLayer]["name"] = namedLayer; sld["version"] = "1.0.0"; var formatSLD = new OpenLayers.Format.SLD(); return(formatSLD.write(sld).replace(/\n/g,"")); } Arnd _____ Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im Auftrag von Dheeraj Chand Gesendet: Donnerstag, 15. Juli 2010 21:36 An: users@openlayers.org Betreff: [OpenLayers-Users] Trying to troubleshoot a map: redrawing layerwith SLD style Hi, everyone, I posted just the other day about a map that I'm building. The idea has been changed to a simpler one. Through a form, the user constructs a variable that represents the attribute to be considered, then a style is built and attached to the layer in question and the layer is redrawn. It should be fairly simple, but my newness to JS and OpenLayers is getting in the way. I seem to have all kinds of problems with this map,1) For some reason, battlegroundData is rendering as a base layer, not an overlay, 2) I think that something is wrong with the projection and 3) I'm not sure whether I read the documentation correctly for writing the style SLD and then attaching it. Mind helping a brother meet his deadline? http://gulfcoaststrategicservices.com/maps/lrp/index.html Thanks, Dheeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100715/4b0a6571/attachment.html From mcpiper at rocketmail.com Thu Jul 15 17:51:19 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Correct layerUrls syntax Message-ID: <1279230679128-5299551.post@n2.nabble.com> Hi, I'm using geowebcache and trying to get WMSgetFeatureInfo to work but haven't been able to find an example of the correct syntax to use for the layerUrls parameter. Can anyone set me on the right path? var infoControl = { click: new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://gis.npca.ca/geoserver/wms?', //layerUrls: [], title: 'Identify features by clicking', layers: [bederman, bedermanCX, cwelland, cwellandCX, towpath, towpathCX], queryVisible:true }) } Thanks, mcpiper -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Correct-layerUrls-syntax-tp5299551p5299551.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From adamdryan at gmail.com Thu Jul 15 20:19:48 2010 From: adamdryan at gmail.com (Adam Ryan) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] cluster strategy and selectFeature control Message-ID: <AANLkTilUJw1fSyYEtu80Ab9fY75osY1Mx0nVVt8O5Fdd@mail.gmail.com> Hi, I'm using the cluster strategy and selectFeature control on a vector layer, and the selection is not sticking when I zoom in and out. This makes sense: if two features, one selected and one unselected, are clustered the selection state is ambiguous. But I'd still like to come up with a solution. Is there a way to do this or could anyone suggest a direction to take. Thanks a lot, Adam From gavin.jackson at gmail.com Thu Jul 15 21:50:11 2010 From: gavin.jackson at gmail.com (gavz) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] multiple markers for a single coordinate In-Reply-To: <4BD4C8D7.7060202@gmail.com> References: <4BD481BB.6060606@strapontins.org> <r2zaa2b82fa1004251410yed77d269l631d6fa089d9b0c4@mail.gmail.com> <4BD4C8D7.7060202@gmail.com> Message-ID: <1279245011998-5300094.post@n2.nabble.com> Hi I'm having the same trouble - I'm overlaying georss layers, but I'm finding that if I have multiple markers at the same gps location, I am only seeing one marker. Is there a way of "exploding" the results when the on click event is fired (like google maps). Is this a bug in openlayers? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-markers-for-a-single-coordinate-tp4959243p5300094.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From p.scadden at gns.cri.nz Thu Jul 15 22:10:25 2010 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Calculating min/max resolution for an image layer. In-Reply-To: <1279245011998-5300094.post@n2.nabble.com> References: <4BD481BB.6060606@strapontins.org> <r2zaa2b82fa1004251410yed77d269l631d6fa089d9b0c4@mail.gmail.com> <4BD4C8D7.7060202@gmail.com> <1279245011998-5300094.post@n2.nabble.com> Message-ID: <4C3FBF91.5000106@gns.cri.nz> I am using some large images for baselayers. I want to calculate min/max resolution so that you can zoom out far enough to view the entire image and zoom in to the point where you have pixel for pixel match. I am finding this harder to calculate than I thought. Can someone give me some tips please? -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 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 christopher.schmidt at nokia.com Thu Jul 15 22:13:07 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] WFS reprojection help Message-ID: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> Hi, I have a map that I think should work at: http://crschmidt.net/mapping/mas/wfs-states.html This is a minimal modification of the wfs-states.html included in the examples. Specifically, I've added: * Proj4js lib * <script src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script> And modified the layer to be a simple layer that requires reprojection. var wfs = new OpenLayers.Layer.Vector("States", { strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], protocol: new OpenLayers.Protocol.WFS({ url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs", version: '1.0.0', featureType: "GISDATA.CENSUS2000BLOCKGROUPS_POLY", geometryName: 'SHAPE', featureNS: "http://massgis.state.ma.us/featuretype" }), projection: new OpenLayers.Projection("EPSG:26986") }); The layer in question is being requested from the server with an srsName that matches the projection, but the coordinates are wrong (EPSG:4326). I've looked at the wfs-reprojection example; I've tried adding srsName to the protocol with no additional luck. Help? Regards, -- Christopher Schmidt Nokia From Wendy.Cameron at justice.govt.nz Thu Jul 15 22:29:02 2010 From: Wendy.Cameron at justice.govt.nz (Wendy Cameron) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Newbie Question about releases Message-ID: <4C406CAC.921E.0047.0@justice.govt.nz> Hi All, Apologies for the Newbie question however I wanted to ask some questions about releases and checking openlayers out from subversion. When I use the command: svn checkout http://svn.openlayers.org/trunk/openlayers/ ( http://svn.openlayers.org/trunk/openlayers/ ) I get 405 access denied. So can anyone tell me how you check out the trunk of openlayers? Secondly I have read about 2 branches openlayers currently has going. What are the release time frames for the 2.x branch and for 3.0 branch I have managed to check out 3.0 trunk from http://github.com/openlayers/openlayers.git However I am unable to figure out how to check out 2.x from this source system anyone tell me how to do that? I tried http://github.com/openlayers/openlayers/tree/2.x this is obviously wrong. Regards Wendy ==================================================================================== This e-mail message and attachments do not necessarily reflect the views of the New Zealand Ministry of Justice and may contain information that is confidential and may be subject to legal privilege. If you are not the intended recipient, you are hereby notified that you must not use, disseminate, distribute or copy this e-mail message or its attachments. If you received this message in error, please notify the Ministry of Justice by telephone (call collect: 00-64-4-918-8800) or return the original message to us by e-mail, and destroy any copies. Thank you. ==================================================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/c0367a0c/attachment.html From christopher.schmidt at nokia.com Thu Jul 15 22:47:08 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] Newbie Question about releases In-Reply-To: <4C406CAC.921E.0047.0@justice.govt.nz> References: <4C406CAC.921E.0047.0@justice.govt.nz> Message-ID: <D13C91CF-4C8A-4D12-9391-32236D72D736@nokia.com> On Jul 15, 2010, at 10:29 PM, ext Wendy Cameron wrote: > Hi All, > > Apologies for the Newbie question however I wanted to ask some questions about releases and checking openlayers out from subversion. > > When I use the command: > svn checkout http://svn.openlayers.org/trunk/openlayers > / > > I get 405 access denied. So can anyone tell me how you check out the trunk of openlayers? Does SVN work for you at all? Usually this would mean your'e behind a proxy which blocks PROPFIND access, so you can't check out any SVN; have you tried on a different network, or using a different HTTP proxy or anything else? This works for me. > Secondly I have read about 2 branches openlayers currently has going. > What are the release time frames for the > 2.x branch > and for 3.0 branch "Whenever they're done." 2.x is likely "next 6 months", 3.x is likely "before the sun explodes", but those are rough estimates. > I have managed to check out 3.0 trunk from http://github.com/openlayers/openlayers.git > However I am unable to figure out how to check out 2.x from this source system anyone tell me how to do that? > I tried http://github.com/openlayers/openlayers/tree/2.x this is obviously wrong. OpenLayers core/trunk is not maintained in git, just our playground for 3.x. As such, the way to checkout the current 2.x work is via SVN. -- Chris > Regards Wendy > ======================================================== > > This e-mail message and attachments do not necessarily reflect the views of > the New Zealand Ministry of Justice and may contain > information that is confidential and may be subject to legal privilege. If you > are not the intended recipient, you are hereby notified that you must not use, > disseminate, distribute or copy this e-mail message or its attachments. If you > received this message in error, please notify the Ministry of Justice > by telephone (call collect: 00-64-4-918-8800) or return the > original message to us by e-mail, and destroy any copies. > Thank you. > > ================================================ > > <ATT00001..txt> Regards, -- Christopher Schmidt Nokia From zac.spitzer at gmail.com Fri Jul 16 01:22:37 2010 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Wed Sep 1 17:18:58 2010 Subject: [OpenLayers-Users] cluster strategy and selectFeature control In-Reply-To: <AANLkTilUJw1fSyYEtu80Ab9fY75osY1Mx0nVVt8O5Fdd@mail.gmail.com> References: <AANLkTilUJw1fSyYEtu80Ab9fY75osY1Mx0nVVt8O5Fdd@mail.gmail.com> Message-ID: <AANLkTil2QvHV8W7dwqnQUDrY2Yi3XTScOTW5ooRPX9b5@mail.gmail.com> attach to the zoom start and zoom end events and store the selection and reselect the selection respectively z On 16 July 2010 10:19, Adam Ryan <adamdryan@gmail.com> wrote: > Hi, > > I'm using the cluster strategy and selectFeature control on a vector > layer, and the selection is not sticking when I zoom in and out. ?This > makes sense: if two features, one selected and one unselected, are > clustered the selection state is ambiguous. ?But I'd still like to > come up with a solution. ?Is there a way to do this or could anyone > suggest a direction to take. > > Thanks a lot, > Adam > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From gmduky at hotmail.com Fri Jul 16 01:31:10 2010 From: gmduky at hotmail.com (Zuhex) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Need help with WMSGetFeatureInfo Message-ID: <1279258270605-5300515.post@n2.nabble.com> Hello all, How can the popup show the information if I give the value of ux and uy. If the function looks like this, function popup_s(ux,uy) { if (popup != null) { popup.destroy(); popup = null; } var ux,uy; popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(ux,uy), null, event.text, <<----How could it be? null, true ); map.addPopup(popup); map.setCenter(new OpenLayers.LonLat(ux, uy), 2); } Any suggestion? Thank you. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-help-with-WMSGetFeatureInfo-tp5300515p5300515.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Fri Jul 16 02:42:20 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner In-Reply-To: <4C3D9D73.3000103@romtelecom.ro> References: <4C3D9D73.3000103@romtelecom.ro> Message-ID: <4C3FFF4C.4020304@romtelecom.ro> No ideas on this one? Is it difficult to implement or nobody has tried it until now? On 07/14/2010 02:20 PM, Adrian Popa wrote: > Hello, > > I'm trying to move the layer switcher button from the top-right corner > of the map to the bottom-left corner. I have done this before with 2.8, > but I ended up making changes in the openlayers API, but I can see now > that 2.9.1 seems to have made changes in the LayerSwitcher's definition. > I'm trying to override just some CSS rules to move the button where I > want it, and also, make changes to display the minimize button on the > left side of the expanded div (instead of having it on the right side). > > Before I show you my hacked-up code, I'd like to ask: has anyone moved > it and can I get some sample code? > > Thanks, > Adrian > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > From antoni.vidal at icc.cat Fri Jul 16 02:44:38 2010 From: antoni.vidal at icc.cat (Vidal, Antoni) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] MapFish vs OpenLayers In-Reply-To: <944DA63D-B006-4D53-AAC0-0C21C506BC09@osgis.nl> References: <784FAC631C0CB14CAE68764151D5DA41081D696C@CORRIOL.icc.local> <944DA63D-B006-4D53-AAC0-0C21C506BC09@osgis.nl> Message-ID: <784FAC631C0CB14CAE68764151D5DA41081D696E@CORRIOL.icc.local> Hello Bart and Hugo, I'm new with MapFish, I've just installed and done some basic tests. First of all, I don't understand how it works pylons virtual environment. Anyway, I'm interested in client side of MapFish to build a Rich web mappinng application. Now We use OL over an apache server and it's a clear and tipical structure of files and data. When We need to create a new component, we extends OL classes creating new js files. Server side components are created using servlets or php and client comunicates with them using ajax. I don't understand how the same can be do it with MapFish. I think there are a great dependency with python server environment. Antoni Vidal www.icc.cat <http://www.icc.cat/> De: Bart van den Eijnden [mailto:bartvde@osgis.nl] Enviat: jueves, 15 de julio de 2010 15:05 Per a: Vidal, Antoni A/c: users@openlayers.org Tema: Re: [OpenLayers-Users] MapFish vs OpenLayers Hi, I think you need to differentiate between MapFish and GeoExt. GeoExt adds a nice looking GUI to OpenLayers, it's all still javascript. GeoExt is also used by MapFish. What is complex in your opinion? MapFish is more than just a client webmapping package, it's a full web-mapping solution, so server-side + client-side. Also read: http://erilem.wordpress.com/2009/04/19/mapfish-and-geoext/ Best regards, Bart On Jul 15, 2010, at 3:00 PM, Vidal, Antoni wrote: Hello list, We use OpenLayers since 4 years and the results are very satisfactory. Nowadays, We are planning to make a step foreward using MapFIsh. Somebody has experience with this framework? What's your opinion versus OL? In my first sight, I think MapFish too complex. What do you think? Thanks in advance. Antoni Vidal Unitat d'Aplicacions SIG-WEB Institut Cartogr?fic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> Parc de Montju?c, E-08038 Barcelona Tel. (+34) 93 567 15 00 (ext. 3228) www.icc.cat <http://www.icc.cat/> _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/a08a3635/attachment.html From bartvde at osgis.nl Fri Jul 16 02:45:03 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner In-Reply-To: <4C3FFF4C.4020304@romtelecom.ro> References: <4C3D9D73.3000103@romtelecom.ro> <4C3FFF4C.4020304@romtelecom.ro> Message-ID: <34577.145.50.39.11.1279262703.squirrel@webmail.hostingdiscounter.nl> Please read up on css. It is all controlled with css. Best regards, Bart > No ideas on this one? Is it difficult to implement or nobody has tried > it until now? > > On 07/14/2010 02:20 PM, Adrian Popa wrote: >> Hello, >> >> I'm trying to move the layer switcher button from the top-right corner >> of the map to the bottom-left corner. I have done this before with 2.8, >> but I ended up making changes in the openlayers API, but I can see now >> that 2.9.1 seems to have made changes in the LayerSwitcher's definition. >> I'm trying to override just some CSS rules to move the button where I >> want it, and also, make changes to display the minimize button on the >> left side of the expanded div (instead of having it on the right side). >> >> Before I show you my hacked-up code, I'd like to ask: has anyone moved >> it and can I get some sample code? >> >> Thanks, >> Adrian >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From bartvde at osgis.nl Fri Jul 16 02:47:12 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] MapFish vs OpenLayers In-Reply-To: <784FAC631C0CB14CAE68764151D5DA41081D696E@CORRIOL.icc.local> References: <784FAC631C0CB14CAE68764151D5DA41081D696C@CORRIOL.icc.local> <944DA63D-B006-4D53-AAC0-0C21C506BC09@osgis.nl> <784FAC631C0CB14CAE68764151D5DA41081D696E@CORRIOL.icc.local> Message-ID: <36826.145.50.39.11.1279262832.squirrel@webmail.hostingdiscounter.nl> If you are only interested in the client-side, I would suggest looking at GeoExt: http://www.geoext.org Best regards, Bart > Hello Bart and Hugo, > > > > I'm new with MapFish, I've just installed and done some basic tests. > > > > First of all, I don't understand how it works pylons virtual environment. > Anyway, I'm interested in client side of MapFish to build a Rich web > mappinng application. Now We use OL over an apache server and it's a clear > and tipical structure of files and data. When We need to create a new > component, we extends OL classes creating new js files. Server side > components are created using servlets or php and client comunicates with > them using ajax. > > > > I don't understand how the same can be do it with MapFish. I think there > are a great dependency with python server environment. > > > > Antoni Vidal > > www.icc.cat <http://www.icc.cat/> > > > > > > > > De: Bart van den Eijnden [mailto:bartvde@osgis.nl] > Enviat: jueves, 15 de julio de 2010 15:05 > Per a: Vidal, Antoni > A/c: users@openlayers.org > Tema: Re: [OpenLayers-Users] MapFish vs OpenLayers > > > > Hi, > > > > I think you need to differentiate between MapFish and GeoExt. > > > > GeoExt adds a nice looking GUI to OpenLayers, it's all still javascript. > GeoExt is also used by MapFish. > > > > What is complex in your opinion? > > > > MapFish is more than just a client webmapping package, it's a full > web-mapping solution, so server-side + client-side. > > > > Also read: > > > > http://erilem.wordpress.com/2009/04/19/mapfish-and-geoext/ > > > > Best regards, > > Bart > > > > On Jul 15, 2010, at 3:00 PM, Vidal, Antoni wrote: > > > > > > Hello list, > > > > We use OpenLayers since 4 years and the results are very satisfactory. > Nowadays, We are planning to make a step foreward using MapFIsh. Somebody > has experience with this framework? What's your opinion versus OL? > > > > In my first sight, I think MapFish too complex. > > > > What do you think? > > > > Thanks in advance. > > > > Antoni Vidal > > Unitat d'Aplicacions SIG-WEB > Institut Cartogr?fic de Catalunya > <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> > Parc de Montju?c, E-08038 Barcelona > Tel. (+34) 93 567 15 00 (ext. 3228) > www.icc.cat <http://www.icc.cat/> > > > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From ahocevar at opengeo.org Fri Jul 16 02:51:17 2010 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Correct layerUrls syntax In-Reply-To: <1279230679128-5299551.post@n2.nabble.com> References: <1279230679128-5299551.post@n2.nabble.com> Message-ID: <013BAD30-AC85-41F5-918A-54DF1CB913A5@opengeo.org> Hi, this thread should answer your question: http://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo Regards, Andreas. On Jul 15, 2010, at 23:51 , mcpiper wrote: > > Hi, > I'm using geowebcache and trying to get WMSgetFeatureInfo to work but > haven't been able to find an example of the correct syntax to use for the > layerUrls parameter. Can anyone set me on the right path? > > var infoControl = { > click: new OpenLayers.Control.WMSGetFeatureInfo({ > url: 'http://gis.npca.ca/geoserver/wms?', > //layerUrls: [], > title: 'Identify features by clicking', > layers: [bederman, bedermanCX, cwelland, cwellandCX, towpath, towpathCX], > queryVisible:true > }) > } > > Thanks, > mcpiper > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Correct-layerUrls-syntax-tp5299551p5299551.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From sarah_flip at yahoo.de Fri Jul 16 03:09:08 2010 From: sarah_flip at yahoo.de (Sarah Schuessler) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Change the background color of the WMS layer In-Reply-To: <913780.53434.qm@web24305.mail.ird.yahoo.com> References: <913780.53434.qm@web24305.mail.ird.yahoo.com> Message-ID: <825449.41582.qm@web26507.mail.ukl.yahoo.com> Hi, try using .png or .gif images. best regards Sarah ________________________________ Von: Jehanzeb Orakzai <jehanzeb_orakzai@yahoo.com> An: users@openlayers.org Gesendet: Donnerstag, den 15. Juli 2010, 21:16:34 Uhr Betreff: [OpenLayers-Users] Change the background color of the WMS layer Hi, I have a problem with my with WMS Layer: I have a raster image in tif format. When I overlay it in the map, A black background builds at the null-value-area. Now in the map it is also shown as black and annoys the visual appearance. Is it possible to switch it into transparent? I have tried to change the opacity and transparent:true in the layer params, but it does'nt work. (I am using GeoServer and OpenLayers) Any help is appreciated. Thank you, -- Jehanzeb -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/a225d506/attachment.html From sarah_flip at yahoo.de Fri Jul 16 03:13:22 2010 From: sarah_flip at yahoo.de (Sarah Schuessler) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Need help with WMSGetFeatureInfo In-Reply-To: <1279258270605-5300515.post@n2.nabble.com> References: <1279258270605-5300515.post@n2.nabble.com> Message-ID: <902006.5199.qm@web26506.mail.ukl.yahoo.com> Hi, do you want to show only ux and uy or do you want to do a wmsgetfeatureinforequest with that? best regards Sarah ________________________________ Von: Zuhex <gmduky@hotmail.com> An: users@openlayers.org Gesendet: Freitag, den 16. Juli 2010, 7:31:10 Uhr Betreff: [OpenLayers-Users] Need help with WMSGetFeatureInfo Hello all, How can the popup show the information if I give the value of ux and uy. If the function looks like this, function popup_s(ux,uy) { if (popup != null) { popup.destroy(); popup = null; } var ux,uy; popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(ux,uy), null, event.text, <<----How could it be? null, true ); map.addPopup(popup); map.setCenter(new OpenLayers.LonLat(ux, uy), 2); } Any suggestion? Thank you. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-help-with-WMSGetFeatureInfo-tp5300515p5300515.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/8417ce9a/attachment.html From gmduky at hotmail.com Fri Jul 16 03:26:57 2010 From: gmduky at hotmail.com (Zuhex) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Need help with WMSGetFeatureInfo In-Reply-To: <902006.5199.qm@web26506.mail.ukl.yahoo.com> References: <1279258270605-5300515.post@n2.nabble.com> <902006.5199.qm@web26506.mail.ukl.yahoo.com> Message-ID: <1279265217218-5300775.post@n2.nabble.com> Hi Sarah, Sorry for the question is not clear. I want to do a wmsgetfeatureinforequest. Do you have any suggestion? Thank you -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-help-with-WMSGetFeatureInfo-tp5300515p5300775.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sarah_flip at yahoo.de Fri Jul 16 03:34:59 2010 From: sarah_flip at yahoo.de (Sarah Schuessler) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Need help with WMSGetFeatureInfo In-Reply-To: <1279265217218-5300775.post@n2.nabble.com> References: <1279258270605-5300515.post@n2.nabble.com> <902006.5199.qm@web26506.mail.ukl.yahoo.com> <1279265217218-5300775.post@n2.nabble.com> Message-ID: <924296.41085.qm@web26502.mail.ukl.yahoo.com> Hi, did you see this (you can even look at examples pages of OL): var infoControls = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://xxxxx:8080/geoserver/wms?', title: 'Identify features', infoFormat: 'text/plain', queryVisible: true, eventListeners: { getfeatureinfo: function (event){ map.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", map.getLonLatFromPixel(event.xy), null, null, event.text, null, true)); } } }); HTH best regards Sarah ________________________________ Hi Sarah, Sorry for the question is not clear. I want to do a wmsgetfeatureinforequest. Do you have any suggestion? Thank you -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-help-with-WMSGetFeatureInfo-tp5300515p5300775.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/705dd8a3/attachment.html From piero.campa at gmail.com Fri Jul 16 05:56:13 2010 From: piero.campa at gmail.com (Piero Campa) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Set Bbox of WMS request In-Reply-To: <f4c7e92f0704200910u36770cb9g6ae55f27d1a11d3@mail.gmail.com> References: <f4c7e92f0704200910u36770cb9g6ae55f27d1a11d3@mail.gmail.com> Message-ID: <1279274173381-5301248.post@n2.nabble.com> Any clues about this? I'm trying with: myLayer = new OpenLayers.Layer.WMS('myLabel' WMSURL, {layers: myMap.geotiff, transparent: 'true', opaque: 1, format: 'image/png8', bbox: '1033428.6,5520587.9,1413779.3,5675907.9',//'9.22,43.8,12.7,45.15', srs: 'EPSG:900913'} ); myMap.geotiff is far larger than the defined bounding box, but still the entire map is returned. Any idea? Thanks. Piero -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Set-Bbox-of-WMS-request-tp1824068p5301248.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From piero.campa at gmail.com Fri Jul 16 06:43:21 2010 From: piero.campa at gmail.com (Piero Campa) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] How to get get the WMS-layer's parameters In-Reply-To: <467835E5.5070607@geocartic.com> References: <480614.2112661182265146686.JavaMail.coremail@bj163app58.163.com> <467835E5.5070607@geocartic.com> Message-ID: <1279277001888-5301378.post@n2.nabble.com> Hi Tim, ok so you can get the HTTP WMS request URL of a certain layer with that: var request = layer.getURL(map.getExtent()); where you input the BBOX. But whether I want to test which was the actual BBOX I requested when I did the HTTP request? How do I get the HTTP WMS GetMap request I did when I downloaded the layer? Firebug does not track it in the console. Any clue? Thank you guys. Piero -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-get-the-WMS-layer-s-parameters-tp1824749p5301378.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Fri Jul 16 06:45:10 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] How to get get the WMS-layer's parameters In-Reply-To: <1279277001888-5301378.post@n2.nabble.com> References: <480614.2112661182265146686.JavaMail.coremail@bj163app58.163.com> <467835E5.5070607@geocartic.com> <1279277001888-5301378.post@n2.nabble.com> Message-ID: <48176.145.50.39.11.1279277110.squirrel@webmail.hostingdiscounter.nl> Hi Piero, just check the Net tab of Firebug. Best regards, Bart > > Hi Tim, > ok so you can get the HTTP WMS request URL of a certain layer with that: > > var request = layer.getURL(map.getExtent()); > > where you input the BBOX. > > But whether I want to test which was the actual BBOX I requested when I > did > the HTTP request? > How do I get the HTTP WMS GetMap request I did when I downloaded the > layer? > > Firebug does not track it in the console. > > Any clue? > Thank you guys. > Piero > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/How-to-get-get-the-WMS-layer-s-parameters-tp1824749p5301378.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From falko at polymap.de Fri Jul 16 06:57:04 2010 From: falko at polymap.de (=?ISO-8859-15?Q?Falko_Br=E4utigam?=) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] OpenLayers in an Eclipse Workbench!? Message-ID: <4C403B00.8000705@polymap.de> Hello all, my name is Falko Br?utigam. I'm a core developer of the POLYMAP3 project. I would like to introduce this project here to see what other OpenLayers users think about the idea of bringing together the power of OpenLayers, Eclipse Workbench, OSGi and GeoTools. POLYMAP3 aims to provide a spatial data workbench and OGC server. We have been working on the project for 8 months now. It is a complete rewrite of an existing codebase. It is based on Eclipse/RAP, qooxdoo, OpenLayers, GeoTools, uDig, JGrass and a lot of other great open source software components. * uses OpenLayers as the map component * uses Eclipse Workbench UI * GeoTools core * extensible architecture based on Eclipse/OSGi framework * multi-user OpenLayers is a great software project. It is one of the core components of our project. Many thanks the all the developers. A lot of work has been done so far for the development of POLYMAP3. However, the project is in early stage and there are still a lot of things to do. Especially for advanced feature editing functions based on OpenLayers there are open issues. Any help with this or any other issue or feedback would be greatly appreciated. POLYMAP3 is an open effort to build a web-based spatial data workbench for each and everything and nothing in particular. The UI is much like uDig but multi-user and runs in the browser. Based on Eclipse the architecture is very open. Basically it can be extended in any way. Please check the project site at: http://www.polymap.org/wiki Thanks, Falko -- Falko Br?utigam http://polymap.org From AGilbert at korem.com Fri Jul 16 08:08:02 2010 From: AGilbert at korem.com (Gilbert, Antoine) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] customize PanZoomBar Message-ID: <B9E886E5DA17AE44BEB8E7B6E1BC634111512E493D@sqexc01> Hi list I'm trying to find info about how to customize the PanZoomBar First I would like to customize the height of the default one, my map is in fractionnedZoom mode and I would like the zoom bar having a defined height, how I do that, I have to play with css styles I guess ? How about changing the images making the zoombar? I tried to search the list using the Nabble search but it's broken, keep returning a java exception... Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/c8e35b7e/attachment.html From mcpiper at rocketmail.com Fri Jul 16 08:44:18 2010 From: mcpiper at rocketmail.com (mcpiper) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Correct layerUrls syntax In-Reply-To: <1279230679128-5299551.post@n2.nabble.com> References: <1279230679128-5299551.post@n2.nabble.com> Message-ID: <1279284258425-5301736.post@n2.nabble.com> Thanks Andreas, I had it backwards. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Correct-layerUrls-syntax-tp5299551p5301736.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bmcbride at chacompanies.com Fri Jul 16 09:01:57 2010 From: bmcbride at chacompanies.com (BMcBride) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] customize PanZoomBar In-Reply-To: <B9E886E5DA17AE44BEB8E7B6E1BC634111512E493D@sqexc01> References: <B9E886E5DA17AE44BEB8E7B6E1BC634111512E493D@sqexc01> Message-ID: <1279285317516-5301808.post@n2.nabble.com> Antoine, You may be interested in this: http://mapbox.com/documentation/adding-tiles-your-site/openlayers-themes http://mapbox.com/documentation/adding-tiles-your-site/openlayers-themes . You can replace the images in your openlayers img directory and modify the css in the theme\default directory. ----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/customize-PanZoomBar-tp5301608p5301808.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From S_K_U_N_X at yahoo.com Fri Jul 16 09:29:47 2010 From: S_K_U_N_X at yahoo.com (ulao) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] working with features Message-ID: <1279286987431-5301904.post@n2.nabble.com> Here is the code I'm using to create var linearRing = new OpenLayers.Geometry.LinearRing(points); var obj = new OpenLayers.Geometry.Polygon([linearRing]); var polygonFeature = new OpenLayers.Feature.Vector( obj ); shapeLayer.addFeatures(polygonFeature) return polygonFeature; All I really need is a way to get and set very common data. For example lat and lon position. If I try to use the Properties from JS I see most of them are null? So this must not actually be Properties. Secondly if I trace a function like createMarker the entire function is "return null;" So my guess is the API is not complete. Surly there is a way to get and set the position. Making a feature work like a marker would be ideal as it seems the marker class is complete. I have been able to modify the style property, but generally speaking this should be done via a function. The weird thing here is that I can create a red shape, change it to blue just fine. Create another but this time I can not change the color. It looks like the id property is working fine, is there a getById class that has access to object control? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/working-with-features-tp5301904p5301904.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ijturton at gmail.com Fri Jul 16 09:40:32 2010 From: ijturton at gmail.com (Ian Turton) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] WFS reprojection help In-Reply-To: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> References: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> Message-ID: <AANLkTikPBXj6J8U_j-LiWijj66zrgEF-WBqIT_fdAIN8@mail.gmail.com> On Thu, Jul 15, 2010 at 10:13 PM, <christopher.schmidt@nokia.com> wrote: > Hi, > > I have a map that I think should work at: > > ?http://crschmidt.net/mapping/mas/wfs-states.html > > This is a minimal modification of the wfs-states.html included in the examples. > > Specifically, I've added: > ?* Proj4js lib > ?* ? ? ? ? <script src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script> > > And modified the layer to be a simple layer that requires reprojection. > > ? ?var wfs = new OpenLayers.Layer.Vector("States", { > ? ? ? ?strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], > ? ? ? ?protocol: new OpenLayers.Protocol.WFS({ > ? ? ? ? ? ?url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs", > ? ? ? ? ? ?version: '1.0.0', I think you'll need to use version 1.1.0 of the WFS spec to get reprojection. 1.0 only supports 4326. Ian -- Ian Turton From eduardo.j.ramos at novabase.pt Fri Jul 16 09:51:07 2010 From: eduardo.j.ramos at novabase.pt (Eduardo Ramos) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS Message-ID: <1279288267673-5301971.post@n2.nabble.com> Hello I'm having a real hard time changing my OpenLayers.Layer.WFS request to the OpenLayers.Layer.Vector with OpenLayers.Protocol.WFS. I've been reading and experimenting all available examples that I was able to find and the API documentation (wich, by the way, didn't help very much) for 2 days now and couldn't get it to work. So, please, can someone tell why this old fashion request has a successfull response: var wfs = new OpenLayers.Layer.WFS("Guybrush Threepwood", "http://localhost:2006/GetFeature.ashx", { typename: "miwfs:MonkeyIsland" }, { 'projection': new OpenLayers.Projection("EPSG:4326") , 'displayProjection': new OpenLayers.Projection("EPSG:4326") , 'maxExtent': new OpenLayers.Bounds(-9.517034, 36.961718, -6.189968, 42.15434) , 'maxResolution': 156543.0339 , 'numZoomLevels': 21 , 'minZoomLevel': 1 , 'maxZoomLevel': 21 , 'units': "dd" , 'encodeBBOX': true , 'displayOutsideMaxExtent': true , 'styleMap': layerStyle , 'extractAttributes': true } ); map.addLayer(wfs); But this one, that I found somewhere in the examples or forums, doesn't: var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://localhost:2006/GetFeature.ashx", featureType: "miwfs:MonkeyIsland", featureNS: "http://www.mapinfo.com/wfs", geometryName: "VL_GMTR", srsName: "EPSG:4326" }), projection: new OpenLayers.Projection("EPSG:4326") }); map.addLayer(wfs); If helps, my map object is: var map = new OpenLayers.Map("map", { projection: new OpenLayers.Projection("EPSG:900913"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), numZoomLevels: 21 }); and my baseMap is: var myBaseLayer = new OpenLayers.Layer.Google("Google", { 'sphericalMercator': true , 'numZoomLevels': 21 , 'minZoomLevel': 1 , 'maxZoomLevel': 21 }); map.addLayer(myBaseLayer); Sorry for the long post. Edu -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5301971.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Fri Jul 16 09:56:05 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS In-Reply-To: <1279288267673-5301971.post@n2.nabble.com> References: <1279288267673-5301971.post@n2.nabble.com> Message-ID: <6532.145.50.39.11.1279288565.squirrel@webmail.hostingdiscounter.nl> Without seeing your actual WFS it is hard to help. But here it goes: 1) featureType should be MonkeyIsland 2) check if your featureNS does not end with / in the XML returned by your WFS, this would also break the parser. So maybe http://www.mapinfo.com/wfs/ instead of http://www.mapinfo.com/wfs Best regards, Bart > > Hello > > I'm having a real hard time changing my OpenLayers.Layer.WFS request to > the > OpenLayers.Layer.Vector with OpenLayers.Protocol.WFS. I've been reading > and > experimenting all available examples that I was able to find and the API > documentation (wich, by the way, didn't help very much) for 2 days now and > couldn't get it to work. > > So, please, can someone tell why this old fashion request has a > successfull > response: > > var wfs = new OpenLayers.Layer.WFS("Guybrush Threepwood", > > "http://localhost:2006/GetFeature.ashx", > { typename: > "miwfs:MonkeyIsland" > }, { 'projection': new > OpenLayers.Projection("EPSG:4326") > , 'displayProjection': new > OpenLayers.Projection("EPSG:4326") > , 'maxExtent': new > OpenLayers.Bounds(-9.517034, 36.961718, -6.189968, 42.15434) > , 'maxResolution': > 156543.0339 > , 'numZoomLevels': 21 > , 'minZoomLevel': 1 > , 'maxZoomLevel': 21 > , 'units': "dd" > , 'encodeBBOX': true > , 'displayOutsideMaxExtent': > true > , 'styleMap': layerStyle > , 'extractAttributes': true > } > ); > > map.addLayer(wfs); > > But this one, that I found somewhere in the examples or forums, doesn't: > > var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", { > strategies: [new OpenLayers.Strategy.BBOX()], > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > url: "http://localhost:2006/GetFeature.ashx", > featureType: "miwfs:MonkeyIsland", > featureNS: "http://www.mapinfo.com/wfs", > geometryName: "VL_GMTR", > srsName: "EPSG:4326" > }), > projection: new OpenLayers.Projection("EPSG:4326") > }); > > map.addLayer(wfs); > > If helps, my map object is: > > var map = new OpenLayers.Map("map", { > projection: new OpenLayers.Projection("EPSG:900913"), > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, > 20037508.34, 20037508.34), > numZoomLevels: 21 > }); > > and my baseMap is: > > var myBaseLayer = new OpenLayers.Layer.Google("Google", > { 'sphericalMercator': true > , 'numZoomLevels': 21 > , 'minZoomLevel': 1 > , 'maxZoomLevel': 21 > }); > > map.addLayer(myBaseLayer); > > Sorry for the long post. > > Edu > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5301971.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From christopher.schmidt at nokia.com Fri Jul 16 09:57:55 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] WFS reprojection help In-Reply-To: <AANLkTikPBXj6J8U_j-LiWijj66zrgEF-WBqIT_fdAIN8@mail.gmail.com> References: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> <AANLkTikPBXj6J8U_j-LiWijj66zrgEF-WBqIT_fdAIN8@mail.gmail.com> Message-ID: <CC8F8F75-4D1E-435F-A6B1-35318477CAE6@nokia.com> On Jul 16, 2010, at 9:40 AM, ext Ian Turton wrote: > On Thu, Jul 15, 2010 at 10:13 PM, <christopher.schmidt@nokia.com> wrote: >> Hi, >> >> I have a map that I think should work at: >> >> http://crschmidt.net/mapping/mas/wfs-states.html >> >> This is a minimal modification of the wfs-states.html included in the examples. >> >> Specifically, I've added: >> * Proj4js lib >> * <script src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script> >> >> And modified the layer to be a simple layer that requires reprojection. >> >> var wfs = new OpenLayers.Layer.Vector("States", { >> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], >> protocol: new OpenLayers.Protocol.WFS({ >> url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs", >> version: '1.0.0', > > I think you'll need to use version 1.1.0 of the WFS spec to get > reprojection. 1.0 only supports 4326. Reprojection should be working on the client side; there's an example of it in: http://openlayers.org/dev/examples/wfs-reprojection.html "In the case where the projection of a vector layer differs from the projection of the map, features are requested in the layer projection and transformed during parsing. It is assumed that the layer projection is "native" projection of the data (the coordinate reference system of the data on the server)." Additionally, though this map doesn't work in Safari when I first load it, when I zoom in or out, the map *does* load. (In Firefox, it doesn't at all.) So this seems like it's more complex than "ur doin it wrong", though maybe I'm still missing something obvious. Regards, -- Christopher Schmidt Nokia From zoran.jankovic at zisis.hr Fri Jul 16 10:02:14 2010 From: zoran.jankovic at zisis.hr (Zoran Jankovic) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] WFS reprojection help In-Reply-To: <CC8F8F75-4D1E-435F-A6B1-35318477CAE6@nokia.com> References: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> <AANLkTikPBXj6J8U_j-LiWijj66zrgEF-WBqIT_fdAIN8@mail.gmail.com> <CC8F8F75-4D1E-435F-A6B1-35318477CAE6@nokia.com> Message-ID: <AANLkTimeoYyCuk1dwdiJOvk15rRzZfx9GTOyuD0NnmT0@mail.gmail.com> Hi Christopher, Maybe this will help: try using proj4js-compressed.js, instead of proj4js. It worked for me, when I had trouble with compatibility (IE, FF, Chrome). BR, --- Zoran Jankovic ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and Consulting http://www.zisis.hr M: 00 385 98 682 902 T: 00 385 44 683 374 A. Senoe 4 44320 Kutina Croatia On Fri, Jul 16, 2010 at 3:57 PM, <christopher.schmidt@nokia.com> wrote: > > On Jul 16, 2010, at 9:40 AM, ext Ian Turton wrote: > > > On Thu, Jul 15, 2010 at 10:13 PM, <christopher.schmidt@nokia.com> > wrote: > >> Hi, > >> > >> I have a map that I think should work at: > >> > >> http://crschmidt.net/mapping/mas/wfs-states.html > >> > >> This is a minimal modification of the wfs-states.html included in the > examples. > >> > >> Specifically, I've added: > >> * Proj4js lib > >> * <script src=" > http://spatialreference.org/ref/epsg/26986/proj4js/"></script> > >> > >> And modified the layer to be a simple layer that requires reprojection. > >> > >> var wfs = new OpenLayers.Layer.Vector("States", { > >> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], > >> protocol: new OpenLayers.Protocol.WFS({ > >> url: " > http://giswebservices.massgis.state.ma.us/geoserver/wfs", > >> version: '1.0.0', > > > > I think you'll need to use version 1.1.0 of the WFS spec to get > > reprojection. 1.0 only supports 4326. > > Reprojection should be working on the client side; there's an example > of it in: > > http://openlayers.org/dev/examples/wfs-reprojection.html > > "In the case where the projection of a vector layer differs from the > projection of the map, features are requested in the layer projection and > transformed during parsing. It is assumed that the layer projection is > "native" projection of the data (the coordinate reference system of the data > on the server)." > > Additionally, though this map doesn't work in Safari when I first load > it, when I zoom in or out, the map *does* load. (In Firefox, it doesn't > at all.) So this seems like it's more complex than "ur doin it wrong", > though maybe I'm still missing something obvious. > > Regards, > -- > Christopher Schmidt > Nokia > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100716/000e37e8/attachment.html From christopher.schmidt at nokia.com Fri Jul 16 10:13:50 2010 From: christopher.schmidt at nokia.com (christopher.schmidt@nokia.com) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] WFS reprojection help In-Reply-To: <AANLkTimeoYyCuk1dwdiJOvk15rRzZfx9GTOyuD0NnmT0@mail.gmail.com> References: <CA7F7D9E-5009-42CA-868B-D8A245C66B0C@nokia.com> <AANLkTikPBXj6J8U_j-LiWijj66zrgEF-WBqIT_fdAIN8@mail.gmail.com> <CC8F8F75-4D1E-435F-A6B1-35318477CAE6@nokia.com> <AANLkTimeoYyCuk1dwdiJOvk15rRzZfx9GTOyuD0NnmT0@mail.gmail.com> Message-ID: <9CE3D403-2B18-4FA0-B49B-D8CE7CEDA1A7@nokia.com> On Jul 16, 2010, at 10:02 AM, ext Zoran Jankovic wrote: > Hi Christopher, > > Maybe this will help: try using proj4js-compressed.js, instead of proj4js. It worked for me, when I had trouble with compatibility (IE, FF, Chrome). Zoran: Perfect! That did what I needed. This is what I get for skipping setting up my own proj4js lib. I figured it was a loading issue, but couldn't figure out what it was. -- Chris > BR, > --- > Zoran Jankovic > ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and Consulting > > http://www.zisis.hr > > M: 00 385 98 682 902 > T: 00 385 44 683 374 > > A. Senoe 4 > 44320 Kutina > Croatia > > > On Fri, Jul 16, 2010 at 3:57 PM, <christopher.schmidt@nokia.com> wrote: > > On Jul 16, 2010, at 9:40 AM, ext Ian Turton wrote: > > > On Thu, Jul 15, 2010 at 10:13 PM, <christopher.schmidt@nokia.com> wrote: > >> Hi, > >> > >> I have a map that I think should work at: > >> > >> http://crschmidt.net/mapping/mas/wfs-states.html > >> > >> This is a minimal modification of the wfs-states.html included in the examples. > >> > >> Specifically, I've added: > >> * Proj4js lib > >> * <script src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script> > >> > >> And modified the layer to be a simple layer that requires reprojection. > >> > >> var wfs = new OpenLayers.Layer.Vector("States", { > >> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})], > >> protocol: new OpenLayers.Protocol.WFS({ > >> url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs", > >> version: '1.0.0', > > > > I think you'll need to use version 1.1.0 of the WFS spec to get > > reprojection. 1.0 only supports 4326. > > Reprojection should be working on the client side; there's an example > of it in: > > http://openlayers.org/dev/examples/wfs-reprojection.html > > "In the case where the projection of a vector layer differs from the projection of the map, features are requested in the layer projection and transformed during parsing. It is assumed that the layer projection is "native" projection of the data (the coordinate reference system of the data on the server)." > > Additionally, though this map doesn't work in Safari when I first load > it, when I zoom in or out, the map *does* load. (In Firefox, it doesn't > at all.) So this seems like it's more complex than "ur doin it wrong", > though maybe I'm still missing something obvious. > > Regards, > -- > Christopher Schmidt > Nokia > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > Regards, -- Christopher Schmidt Nokia From eduardo.j.ramos at novabase.pt Fri Jul 16 10:25:07 2010 From: eduardo.j.ramos at novabase.pt (Eduardo Ramos) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS In-Reply-To: <6532.145.50.39.11.1279288565.squirrel@webmail.hostingdiscounter.nl> References: <1279288267673-5301971.post@n2.nabble.com> <6532.145.50.39.11.1279288565.squirrel@webmail.hostingdiscounter.nl> Message-ID: <1279290307603-5302153.post@n2.nabble.com> Well, thanks for the quick response. The WFS response to 'http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=GetCapabilities' is: <WFS_Capabilities xsi:schemaLocation="http://www.opengis.net/wfs http://localhost:2006/GetFeature.ashx?service=MXP-WFS&request=GetSchema&schema=urn%3aopengis%3awfs%3a1.0.0%3aWFS-capabilities" version="1.0.0" updateSequence="0"> <Service> <Name>Sample WFS Server</Name> <Title>Sample WFS Server http://localhost:2006/GetFeature.ashx miwfs:MonkeyIsland MonkeyIsland Abstract for MonkeyIsland Keywords for MonkeyIsland epsg:4326 I've made some changes in the request, namely the version and featureNS, and now it looks like this: var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.0.0", url: "http://localhost:2006/GetFeature.ashx", featureType: "MonkeyIsland", featureNS: "http://www.opengis.net/wfs/", geometryName: "VL_GMTR", srsName: "EPSG:4326" }), projection: new OpenLayers.Projection("EPSG:4326") }); map.addLayer(layer); By the way, my WFS server has the following Features: http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=DescribeFeatureType Thank you Edu -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5302153.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From S_K_U_N_X at yahoo.com Fri Jul 16 10:25:46 2010 From: S_K_U_N_X at yahoo.com (ulao) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] working with features In-Reply-To: <1279286987431-5301904.post@n2.nabble.com> References: <1279286987431-5301904.post@n2.nabble.com> Message-ID: <1279290346684-5302158.post@n2.nabble.com> grrrr. LOL Ok half the trouble is that thing dont update untill I zoom in or out. Is there a reDraw or update function? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/working-with-features-tp5301904p5302158.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From sdjbm17 at gmail.com Fri Jul 16 10:26:33 2010 From: sdjbm17 at gmail.com (Gilberto Ramos) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] vector layers not shown with geoserver In-Reply-To: <1279282615674-5301640.post@n2.nabble.com> References: <1279282615674-5301640.post@n2.nabble.com> Message-ID: <1279290393437-5302162.post@n2.nabble.com> Hi there, Try something like this: var wfs = new OpenLayers.Layer.Vector("wfs", { strategies: [new OpenLayers.Strategy.BBOX()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:4326", url: "http://192.168.224.128:8080/geoserver/wfs", featureType: "khasra", featureNS: "http://192.168.224.128:8080/geoserver", schema: "http://192.168.224.128:8080/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=CHANGETHIS:khasra", featurePrefix: "CHANGETHIS" }) }); Obs.: The CHANGETHIS part you can look at the Preview Layers section in GeoServer Admin.. Cheers, Gilberto Ramos ----- "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. For God sent not his Son into the world to condemn the world; but that the world through him might be saved. He that believeth on him is not condemned: but he that believeth not is condemned already, because he hath not believed in the name of the only begotten Son of God." John 3:16-18 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/vector-layers-not-shown-with-geoserver-tp5301640p5302162.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at osgis.nl Fri Jul 16 10:29:53 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS In-Reply-To: <1279290307603-5302153.post@n2.nabble.com> References: <1279288267673-5301971.post@n2.nabble.com> <6532.145.50.39.11.1279288565.squirrel@webmail.hostingdiscounter.nl> <1279290307603-5302153.post@n2.nabble.com> Message-ID: <31713.145.50.39.11.1279290593.squirrel@webmail.hostingdiscounter.nl> Eduardo, featureNS should be http://www.mapinfo.com/wfs in your case. What do you see using Firebug? Does the request go off at all? Does the WFS respond with a proper FeatureCollection? Can you share a snippet of the response? Best regards, Bart > > Well, thanks for the quick response. > > The WFS response to > 'http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=GetCapabilities' > is: > > version="1.0.0" > updateSequence="0"> > > Sample WFS Server > Sample WFS Server > http://localhost:2006/GetFeature.ashx > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > miwfs:MonkeyIsland > MonkeyIsland > Abstract for MonkeyIsland > Keywords for MonkeyIsland > epsg:4326 > maxx="-6.189968" > maxy="42.15434"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > I've made some changes in the request, namely the version and featureNS, > and > now it looks like this: > > var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", { > strategies: [new OpenLayers.Strategy.BBOX()], > protocol: new OpenLayers.Protocol.WFS({ > version: "1.0.0", > url: "http://localhost:2006/GetFeature.ashx", > featureType: "MonkeyIsland", > featureNS: "http://www.opengis.net/wfs/", > geometryName: "VL_GMTR", > srsName: "EPSG:4326" > }), > projection: new OpenLayers.Projection("EPSG:4326") > }); > > map.addLayer(layer); > > > By the way, my WFS server has the following Features: > > http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=DescribeFeatureType > > elementFormDefault="qualified"> > schemaLocation="http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"/> > substitutionGroup="gml:_Feature"/> > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > Thank you > > Edu > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5302153.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From eduardo.j.ramos at novabase.pt Fri Jul 16 10:39:08 2010 From: eduardo.j.ramos at novabase.pt (=?iso-8859-1?Q?Eduardo_Jos=E9_Ramos?=) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS In-Reply-To: <31713.145.50.39.11.1279290593.squirrel@webmail.hostingdiscounter.nl> References: <1279288267673-5301971.post@n2.nabble.com> <6532.145.50.39.11.1279288565.squirrel@webmail.hostingdiscounter.nl> <1279290307603-5302153.post@n2.nabble.com> <31713.145.50.39.11.1279290593.squirrel@webmail.hostingdiscounter.nl> Message-ID: Bart, thanks for your time. The request doesn't go off at all... firebug console is empty. No javaScript errors or warnings... It adds the layer name to the layer control but nothing else happens. Edu -----Original Message----- From: Bart van den Eijnden (OSGIS) [mailto:bartvde@osgis.nl] Sent: sexta-feira, 16 de Julho de 2010 15:30 To: Eduardo Jos? Ramos Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS Eduardo, featureNS should be http://www.mapinfo.com/wfs in your case. What do you see using Firebug? Does the request go off at all? Does the WFS respond with a proper FeatureCollection? Can you share a snippet of the response? Best regards, Bart > > Well, thanks for the quick response. > > The WFS response to > 'http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=GetCapabilities' > is: > > version="1.0.0" > updateSequence="0"> > > Sample WFS Server > Sample WFS Server > http://localhost:2006/GetFeature.ashx > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > miwfs:MonkeyIsland > MonkeyIsland > Abstract for MonkeyIsland > Keywords for MonkeyIsland > epsg:4326 > maxx="-6.189968" > maxy="42.15434"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > I've made some changes in the request, namely the version and featureNS, > and > now it looks like this: > > var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", { > strategies: [new OpenLayers.Strategy.BBOX()], > protocol: new OpenLayers.Protocol.WFS({ > version: "1.0.0", > url: "http://localhost:2006/GetFeature.ashx", > featureType: "MonkeyIsland", > featureNS: "http://www.opengis.net/wfs/", > geometryName: "VL_GMTR", > srsName: "EPSG:4326" > }), > projection: new OpenLayers.Projection("EPSG:4326") > }); > > map.addLayer(layer); > > > By the way, my WFS server has the following Features: > > http://localhost:2006/GetFeature.ashx?service=WFS&version=1.0.0&request=DescribeFeatureType > > elementFormDefault="qualified"> > schemaLocation="http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"/> > substitutionGroup="gml:_Feature"/> > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > Thank you > > Edu > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5302153.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde@osgis.nl From adrian_gh.popa at romtelecom.ro Fri Jul 16 10:41:04 2010 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed Sep 1 17:18:59 2010 Subject: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner In-Reply-To: <34577.145.50.39.11.1279262703.squirrel@webmail.hostingdiscounter.nl> References: <4C3D9D73.3000103@romtelecom.ro> <4C3FFF4C.4020304@romtelecom.ro> <34577.145.50.39.11.1279262703.squirrel@webmail.hostingdiscounter.nl> Message-ID: <4C406F80.5020303@romtelecom.ro> I studied CSS extensively the past two days, and I sort of managed to move it, but I still have two problems: 1. I can't position the layer-switcher-maximize button if I want to add an offset measured from the bottom (bottom: 40px). I can only display it if I specify an offset from the top - but my map size is not fixed, and I would like to have it linked to the bottom of the map. The rest of the div and the minimize button are displayed as expected. Here is my CSS override code: