From Manuel.Spam at nurfuerspam.de Sun Jan 1 17:15:00 2012 From: Manuel.Spam at nurfuerspam.de (Manuel Reimer) Date: Sun Jan 1 17:20:10 2012 Subject: [OpenLayers-Users] How to select WMS layers on one OpenLayer.Layer.WMS layer dynamically? Message-ID: Hello, is there some kind of "layer switcher" which allows me to select the WMS layers for one WMS layer? Of course it would be possible to create one WMS layer for each of the layers, offered by the WMS server, I want to use, but IMHO it would be more elegant to just need *one* request to the WMS server and let the WMS server do the work. Yours Manuel From diegoguidi at gmail.com Mon Jan 2 02:23:12 2012 From: diegoguidi at gmail.com (Diego Guidi) Date: Mon Jan 2 02:23:38 2012 Subject: [OpenLayers-Users] How to select WMS layers on one OpenLayer.Layer.WMS layer dynamically? In-Reply-To: References: Message-ID: > is there some kind of "layer switcher" which allows me to select the WMS > layers for one WMS layer? AFAIK there isn't any specific control, i.e. layer switcher, but it's easy to do the task you need. Create a graphic list of your layers, as example using checkboxes (or a treeview using extjs, or...) and anytime a checkbox is checked/unchecked, simply call wmsLayer.mergeNewParams(...); passing it an object with only the selected layers { layers: 'myLayer1, mylayer2 '}. http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.mergeNewParams then call wmsLayer.redwaw(true); From volzmark at yahoo.com Mon Jan 2 14:17:49 2012 From: volzmark at yahoo.com (Mark Volz) Date: Mon Jan 2 14:20:34 2012 Subject: [OpenLayers-Users] Jquery Mobile - WMSGetFeatureInfo crashes Message-ID: <1325531869.50192.YahooMailNeo@web121305.mail.ne1.yahoo.com> Hello, I have been trying to get the Mobile Jquery Demo to work with my own data.? Currently, I am trying to configure the application so that when a user clicks, the application will identify using WMSGetFeatureInfo as opposed to getting information from the sprinters layer.? Openlayers is crashing when I try to display the results of WMSGetFeatureInfo.? Has anyone had any luck configuring WMSGetFeatureInfo with the Mobile JQuery?? If someone could help me, I would appreciate it.? Thank You! With help I have thus far: * The click event to call WMSGetFeatureInfo * Openlayers calls GeoServer to get WMSGetFeatureInfo * The click event is registered to call a function named ShowWMSInfo Unfortunately Openlayers crashes in the ShowWMSInfo, which is where I am trying to display the results from geoserver Here is the code that I have thus far changed in mobile-base.js #1? Changed the select control to use WMSGetFeatureInfo ??? //var selectControl = new OpenLayers.Control.SelectFeature(sprintersLayer, { ??? //??? autoActivate:true, ??? //??? onSelect: onSelectFeatureFunction}); // ** updated selectControl code** ??? var selectControl = new OpenLayers.Control.WMSGetFeatureInfo({ ??? ??? url: 'http://demo.opengeo.org/geoserver/wms', ??????? title: 'Identify features by clicking', ??????? layers: [water], ??????? queryVisible: true, ??? ??? autoActivate:true ??? ??? //onSelect: onSelectFeatureFunction ??? }); #2? Registered the recoded select control from #1 to call a function called ShowWMSInfo. selectControl.events.register("getfeatureinfo", this, ShowWMSInfo); #3? NOT WORKING - ? On each click the ShowWMSInfo function is called. According to firebug, GeoServer is returning a result for WMSGetFeatureInfo.? However, I cannot figure out how to display the results in openlayers. function ShowWMSInfo(e) { ??? ??? var html = ''; ??? ??? var html += '" ??? ??? if (e.features && e.features.length) { ??? ??????? var val = e.features[0].attributes.id; ??? ??????? document.getElementById('WATER_TYPE').value = val; ??? ??? } ??? ??? return html += '''; ??? ??? return html; ??? } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120102/2723db58/attachment.html From jsni at uglandit.com Tue Jan 3 04:10:03 2012 From: jsni at uglandit.com (=?UTF-8?Q?J=C3=B8rgen_S=2E_Nicolaysen?=) Date: Tue Jan 3 04:10:26 2012 Subject: [OpenLayers-Users] Re: Problem on select In-Reply-To: References: Message-ID: <1325581803376-7146128.post@n2.nabble.com> Add vectorLayer to map perhaps? map.addLayer(vectorLayer); Other causes may be that other default controls is activated on your map. These may be blocking for you select feature control. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-on-select-tp7135139p7146128.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Tue Jan 3 05:51:31 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 3 05:52:27 2012 Subject: [OpenLayers-Users] CORS In-Reply-To: References: Message-ID: If cross origin resource sharing is supported is only determined by your browser, not OpenLayers. If you can control what your server provides, you can either set the appropriate Access-Control-Allow-Origin header and live with the fact that some browsers don't support it, or use JSONP and OpenLayers.Protocol.Script to make things work in all browsers. See http://openlayers.org/dev/examples/cross-origin.html for an example. Andreas. On Fri, Dec 30, 2011 at 7:51 AM, Tomas Straupis wrote: > Hello > > ?There is a php file serving a geoJSON (poi's) on a server A. > ?Html file with openLayers trying to use geoJSON info (Vector) is on server B. > ?Server B does not support curl/fopen, so I cannot have a working > proxy.php there (or I do not know how). > > ?I would not need a proxy.php on B if OpenLayers supports something > like CORS, right? In that case I would just need to arrange/ask for > CORS support on server A (probably something like this: > http://remysharp.com/2011/04/21/getting-cors-working/). > > ?Question: does OpenLayers support CORS? Google gives me different answers... > > ?Thank you > > -- > Tomas Straupis > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From aparna.mookerjee at gmail.com Tue Jan 3 05:51:43 2012 From: aparna.mookerjee at gmail.com (Aparna) Date: Tue Jan 3 05:52:37 2012 Subject: [OpenLayers-Users] Filtering a GeoJSON layer In-Reply-To: <43FE4CE50A504044B26CB2F604EAE509@pcawh2> References: <43FE4CE50A504044B26CB2F604EAE509@pcawh2> Message-ID: This does not seem to be working either. var state = new OpenLayers.Layer.Vector("K", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://localhost:8085/geoserver/wfs", params: {CQL_FILTER: 'SCHCAT = 3'}, featureType: "karf", featureNS: "http://opengeo.org/India" }) }); map.addLayer(state); On Wed, Dec 28, 2011 at 12:07 AM, Arnd Wippermann wrote: > ** > Hi, > > i think, you cannot use filter to load static data. OpenLayers have to > load the whole file and doesnot use the filter to serialize only parts of > the file and add them as features. > > If you request the data from a provider, which evaluates the filter like > WFS, filter does work. > > Instead you can use a styleMap to display only a set of features. > > Arnd > > ------------------------------ > *Von:* openlayers-users-bounces@lists.osgeo.org [mailto: > openlayers-users-bounces@lists.osgeo.org] *Im Auftrag von *Aparna > *Gesendet:* Montag, 26. Dezember 2011 12:15 > *An:* users@openlayers.org > *Betreff:* [OpenLayers-Users] Filtering a GeoJSON layer > > filtering either after projection or in the protocol->format->filter does > not seem to be working at all. > > var state = new OpenLayers.Layer.Vector("State", { > projection: map.displayProjection, > filter: new OpenLayers.Filter.Comparison({ > type: OpenLayers.Filter.Comparison.EQUAL_TO, > property: 'SCHMGT', > value: 2 > }), > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: > "klm/GIS.json", > format: new OpenLayers.Format.GeoJSON({ > > extractAttributes: true > > }) > }) > }); > > How does one implement a filter?? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120103/967dd9c3/attachment.html From christoph.ratke at gmx.net Tue Jan 3 09:39:56 2012 From: christoph.ratke at gmx.net (Christoph Ratke) Date: Tue Jan 3 09:40:21 2012 Subject: [OpenLayers-Users] Filtering a GeoJSON layer In-Reply-To: References: <43FE4CE50A504044B26CB2F604EAE509@pcawh2> Message-ID: <4F03133C.2090001@gmx.net> Hi Aparna, what Arnd wrote is that you can create an OGC filter for your WFS as in var ogcFilter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: "id", value: someId }); and then use it in your protocol: var state = new OpenLayers.Layer.Vector("K", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://localhost:8085/geoserver/wfs", params: {CQL_FILTER: 'SCHCAT = 3'}, featureType: "karf", featureNS: "http://opengeo.org/India", defaultFilter: ogcFilter }) }); Or have a look here: http://openlayers.org/dev/examples/wfs-filter.js Christoph On 03.01.2012 11:51, Aparna wrote: > This does not seem to be working either. > > var state = new OpenLayers.Layer.Vector("K", { > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > url: "http://localhost:8085/geoserver/wfs", > params: {CQL_FILTER: 'SCHCAT = 3'}, > featureType: "karf", > featureNS: "http://opengeo.org/India" > > }) > }); > map.addLayer(state); > > > > On Wed, Dec 28, 2011 at 12:07 AM, Arnd Wippermann > > wrote: > > Hi, > i think, you cannot use filter to load static data. OpenLayers > have to load the whole file and doesnot use the filter to > serialize only parts of the file and add them as features. > If you request the data from a provider, which evaluates the > filter like WFS, filter does work. > Instead you can use a styleMap to display only a set of features. > Arnd > ------------------------------------------------------------------------ > *Von:* openlayers-users-bounces@lists.osgeo.org > > [mailto:openlayers-users-bounces@lists.osgeo.org > ] *Im Auftrag von > *Aparna > *Gesendet:* Montag, 26. Dezember 2011 12:15 > *An:* users@openlayers.org > *Betreff:* [OpenLayers-Users] Filtering a GeoJSON layer > > filtering either after projection or in the > protocol->format->filter does not seem to be working at all. > > var state = new OpenLayers.Layer.Vector("State", { > projection: map.displayProjection, > filter: new OpenLayers.Filter.Comparison({ > type: OpenLayers.Filter.Comparison.EQUAL_TO, > property: 'SCHMGT', > value: 2 > }), > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: "klm/GIS.json", > format: new OpenLayers.Format.GeoJSON({ > extractAttributes: true > > }) > }) > }); > > How does one implement a filter?? > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120103/e3856346/attachment-0001.html From tomasstraupis at gmail.com Tue Jan 3 16:40:10 2012 From: tomasstraupis at gmail.com (Tomas Straupis) Date: Tue Jan 3 16:40:40 2012 Subject: [OpenLayers-Users] CORS In-Reply-To: References: Message-ID: Thank you for your answers. Unfortunately it does not work yet... I've added this to the php providing data: if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { // return only the headers and not the content // only allow CORS if we're doing a GET - i.e. no saving for now. if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) && $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'] == 'GET') { header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Headers: X-Requested-With'); } exit; } Otherwise the php code is the same (fetching data and creating a geoJSON output). JS code for vector layer looks like this (MyVector is only overloading drawFeature from Vector): var poi = new OpenLayers.Layer.MyVector("Istoriniai", { strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})], protocol: new OpenLayers.Protocol.HTTP({ url: "someserver.lt/poi.php?type=monument", format: new OpenLayers.Format.GeoJSON({ignoreExtraDims: true}), }) }); poi.setVisibility(false); map.addLayer(poi); Browser used is firefox 9.0.1 on f16/f15. Everything works just fine if I'm using a proxy or placing poi.php on the same domain (which is only possible in development environment). I will check http://openlayers.org/dev/examples/cross-origin.html to see if I can use the code/ideas there. Thank you -- Tomas Straupis From aparna.mookerjee at gmail.com Wed Jan 4 03:33:28 2012 From: aparna.mookerjee at gmail.com (aparna) Date: Wed Jan 4 03:33:57 2012 Subject: [OpenLayers-Users] Re: Filtering a GeoJSON layer In-Reply-To: <4F03133C.2090001@gmx.net> References: <43FE4CE50A504044B26CB2F604EAE509@pcawh2> <4F03133C.2090001@gmx.net> Message-ID: <1325666008311-7149638.post@n2.nabble.com> Thanks Christoph, OGC filter is working with the vector layer (WFS, didnot work with the geojson). Though with more complex filter combinations one has to convert to CQL and then refresh the map. layer.refresh({force:true}); was needed. Thanks to all for your help. Aparna -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Filtering-a-GeoJSON-layer-tp7127763p7149638.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From relicary at gmail.com Wed Jan 4 07:22:05 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Wed Jan 4 07:22:19 2012 Subject: [OpenLayers-Users] Recovery information from a SHP file Message-ID: Hi, I've created an application where there is the next code: featureInfo=new OpenLayers.Control({title: 'Informaci?n: Select one layer and click in the map', type: OpenLayers.Control.TYPE_TOOL}); My Mapfile is this: MAP NAME map_generated_by_gvsig EXTENT -179.99999999999997 -89.99999999998201 180.00000000010002 90.0 SYMBOLSET "mapamundi.sym" FONTSET "fonts.txt" LEGEND IMAGECOLOR -1 -1 -1 LABEL FONT "vera" ANGLE FOLLOW COLOR 0 0 0 ENCODING "UTF-8" TYPE truetype SIZE 8 END STATUS ON TRANSPARENT ON END WEB METADATA "ows_enable_request" "*" "wms_encoding" "UTF-8" "wms_title" "Mapserver WMS" "wms_abstract" "" "wms_srs" " EPSG:4326" "wms_onlineresource" " http://localhost:9000/cgi-bin/mapserv.exe?map=E%3A%5Cms4w%5Capps%5Cmapserv-demo%5Cmapamundi.map " END END PROJECTION "init=epsg:4326" END LAYER NAME "HYP_50M_SR_W.tif" STATUS ON TYPE RASTER DATA "c:\Documents and Settings\...\HYP_50M_SR_W\HYP_50M_SR_W.tif" MAXSCALE -1.0 MINSCALE -1.0 TRANSPARENCY 100 PROJECTION "init=epsg:4326" END METADATA "wms_title" "HYP_50M_SR_W.tif" "wms_abstract" "Phisic Map" "wms_extent" "-179.99999999999997 -89.99999999998201 179.99999999996405 90.0" "gml_include_items" "all" END END # Layer LAYER NAME "ne_10m_populated_places_simple.shp" STATUS ON TYPE POINT DATA "C:\Documents and Settings\...\ne_10m_populated_places_simple.shp" MAXSCALE -1.0 MINSCALE -1.0 TRANSPARENCY 100 SIZEUNITS pixels PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 102 51 SIZE 2 END SYMBOL "square" NAME "default" END METADATA "wms_title" "ne_10m_populated_places_simple.shp" "wms_abstract" "Ciudades importantes" "wms_extent" "-179.58997888396897 -89.98289386134616 179.38330358817018 82.48332318035943" "gml_include_items" "all" END END # Layer END # Map File In the ne_10m_populated_places_simple.shp I have a lot of points which indicate a city and its name is into the SHP file. Now, I want when some user click's in one of this poins, he can read a message with the name of the city. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120104/5d483417/attachment.html From gregor at greeninfo.org Wed Jan 4 10:42:04 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Wed Jan 4 10:52:05 2012 Subject: [OpenLayers-Users] Recovery information from a SHP file In-Reply-To: References: Message-ID: <4F04734C.7060700@greeninfo.org> On 1/4/2012 4:22 AM, Juan Jes?s Cremades Monserrat wrote: > I've created an application where there is the next code: > Now, I want when some user click's in one of this poins, he > can read a message with the name of the city. I would use the Control.WMSGetFeatureInfo, rather than your own custom click handler. It should do exactly what you want, and save you a fair amount of typing. http://openlayers.org/dev/examples/getfeatureinfo-control.html http://openlayers.org/dev/examples/getfeatureinfo-popup.html -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor@greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From listensammler at patzi.de Wed Jan 4 11:32:01 2012 From: listensammler at patzi.de (Fabian Patzke 2) Date: Wed Jan 4 11:32:45 2012 Subject: [OpenLayers-Users] Re: Markers in an overview map? In-Reply-To: <4EFF5413.9090504@gmail.com> References: <4EFF5413.9090504@gmail.com> Message-ID: <1325694721299-7151049.post@n2.nabble.com> The overviemap is a special map created by the overview control. But it is still a normal map that can have layers and so also vectors on top. To acces the map of the overview control you have to use the ovmap property of your ov-control i.e. var map = new OpenLayers.Map('map'); var overview = new OpenLayers.Control.OverviewMap(); map.addControl(overview); //this is the overview map var ovMap = overview.ovmap; also see: http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html http://openlayers.org/dev/examples/overviewmap.html -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Markers-in-an-overview-map-tp7139023p7151049.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From leene_85 at yahoo.de Thu Jan 5 04:12:10 2012 From: leene_85 at yahoo.de (leene) Date: Thu Jan 5 04:12:58 2012 Subject: [OpenLayers-Users] Use single OL file with rotated labels in IE8 Message-ID: <1325754730.15469.YahooMailNeo@web29702.mail.ird.yahoo.com> Hello list, I use Openlayers 2.11 and applied a modification to rotate labels (from http://osgeo-org.1803224.n2.nabble.com/How-to-rotate-a-label-in-IE-td4834932.html). Everything works fine (multifile in chrome, firefox, IE8; single file in chrome, firefox), but if I use the Openlayers.js single file in IE8 no labels are displayed. There is no error message. While debugging I detected one difference: With multi file the label object is created after ??? ??? ??? this.textRoot.appendChild(label); ??? ??? ??? label.appendChild(textbox);?? ??? ??? ??? label.appendChild(path); So label has fields like 'stroke' and 'coordorigin'. E.g. 'coordorigin' has the attributes 'x' and 'y'. With single file these label fields are not created. Later on the 'coordorigin' will be set. But instead of label.coordorigin.x=100; labelcoordorigin.y=200; there is only an entry label.coordorigin="100 200"; - so if I call label.coordorigin.y I get 'undefined'. I think this could be the reason for the missing label. But why is the label object not created correctly? I found out that there was a similar problem with labels and single file in IE8 (http://trac.osgeo.org/openlayers/ticket/1910), but this patch is already included. Has someone another idea? Thanks, leene -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120105/83a70e31/attachment.html From aparna.mookerjee at gmail.com Thu Jan 5 06:41:56 2012 From: aparna.mookerjee at gmail.com (Aparna) Date: Thu Jan 5 06:42:41 2012 Subject: [OpenLayers-Users] Filtering a vector Layer Message-ID: Finally, was able to filter the vector layer,. The biggest problem was to use multiple values and/or multiple filter options and could not create permulation combination of OGC filters(logical, comparison, ..). This seemed rather difficult at first. Eventually created CQL filters which were converted. This is the layer var state = new OpenLayers.Layer.Vector("Karnataka", { strategies: [new OpenLayers.Strategy.BBOX()], filter:"", protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://localhost:8085/geoserver/wfs", featureType: "karf", featureNS: "http://opengeo.org/India" }), }); and then logical OR or Logical AND was wrapped with comparison Filters and converted to OGC. On Wed, Jan 4, 2012 at 2:03 PM, aparna wrote: > Thanks Christoph, > > OGC filter is working with the vector layer (WFS, didnot work with the > geojson). Though with more complex filter combinations one has to convert > to > CQL and then refresh the map. > > layer.refresh({force:true}); > > was needed. Thanks to all for your help. > > Aparna > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120105/67801f1f/attachment.html From tomasstraupis at gmail.com Fri Jan 6 01:06:48 2012 From: tomasstraupis at gmail.com (Tomas Straupis) Date: Fri Jan 6 01:07:20 2012 Subject: [OpenLayers-Users] CORS In-Reply-To: References: Message-ID: Hello The only missing part in php code was handling of non preflight, so the final code in php should be like this (note the "else" part): if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { // return only the headers and not the content // only allow CORS if we're doing a GET - i.e. no saving for now. if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) && $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'] == 'GET') { header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Headers: X-Requested-With'); } exit; } else { header('Access-Control-Allow-Origin: *'); } And now it works. Thank you for help! -- Tomas Straupis From rykovd at gmail.com Fri Jan 6 01:59:25 2012 From: rykovd at gmail.com (Denis Rykov) Date: Fri Jan 6 01:59:56 2012 Subject: [OpenLayers-Users] Google Maps tiles issue Message-ID: Hi! There are two base layers in my project - Google (v 3) and OSM. OSM layer is visible by default, but in firebug I can see that OSM tiles and GM tiles are loading. It is not clear for me about GM tiles. Is it correct behaviour or no? Could I disable GM tiles downloading if layer is not visible? From ashore3 at verizon.net Fri Jan 6 03:32:27 2012 From: ashore3 at verizon.net (Arnie Shore) Date: Fri Jan 6 04:33:41 2012 Subject: [OpenLayers-Users] Noob Needs Help with setCenter() call In-Reply-To: <1325694721299-7151049.post@n2.nabble.com> References: <4EFF5413.9090504@gmail.com> <1325694721299-7151049.post@n2.nabble.com> Message-ID: <4F06B19B.5040809@verizon.net> Folks, my map is not centering on the bounds center point returned from the foll'g: var proj = new OpenLayers.Projection("EPSG:4326"); var point = new OpenLayers.LonLat(bounds.getCenterLonLat()); // returns lon=-77.50959,lat=39.011702, which is correct map_Obj.setCenter(point.transform(proj, map_Obj.getProjectionObject())); I'll appreciate any help in that setCenter() call working. AS From m.j.gale at gmail.com Fri Jan 6 05:55:43 2012 From: m.j.gale at gmail.com (mike_de_funk) Date: Fri Jan 6 05:55:55 2012 Subject: [OpenLayers-Users] WMSGetFeatureInfo request error: "this.size is null" Message-ID: <1325847343996-7157998.post@n2.nabble.com> Hi List I am trying to initiate popups for point features rendered via MapServer / PostGIS. The code is based on the openlayers example: http://openlayers.org/dev/examples/getfeatureinfo-popup.html Initially using firebug the "map" parameter was not being passed to the request and I have managed a work around by adding the vendorParams variable. This now produces a getfeatureinfo request that when entered manually works perfectly and returns the requested information. I Am now however getting the Firebug error: "this.size is null" followed by the line: if((origTL.x+this.size.w)>(mapSize.w-t....paddingForPopups.right-this.size.w;} My Code is listed below: info = new OpenLayers.Control.WMSGetFeatureInfo({ url: '*HOST*/cgi-mapserv/mapserv?', vendorParams: { map: 'mapfiles/fhf_test/booth_points.map' } , title: 'Identify features by clicking', queryVisible: true, eventListeners: { getfeatureinfo: function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", map.getLonLatFromPixel(event.xy), null, event.text, null, true )); } } }); map.addControl(info); info.activate(); Any help much appreciated. Mike -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMSGetFeatureInfo-request-error-this-size-is-null-tp7157998p7157998.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jerome.gasperi at gmail.com Fri Jan 6 08:01:18 2012 From: jerome.gasperi at gmail.com (jrom) Date: Fri Jan 6 08:02:06 2012 Subject: [OpenLayers-Users] Introducing mapshup Message-ID: Dear OpenLayers users, Last year i presented jeobrowser application. As of today, this application is no more and it is replaced by the mapshup application framework. This application is released under the opensource CeCILL-B license (basically a kind of BSD licence) and source are immediately available at http://code.google.com/p/mapshup/ A running demo is available at http://engine.mapshup.info (hidden functionality : try to drag&drop a valid file or layer url (wms, wfs, csw, etc.) on top of the map and the application will try to automatically add it to the map :) Best regards Jerome -- http://jrom.info From punk.kish at gmail.com Fri Jan 6 11:50:50 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 6 11:51:24 2012 Subject: [OpenLayers-Users] strange behavior with wrong click event coordinates and drag pan Message-ID: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> I am experiencing a strange behavior that perhaps someone can help me troubleshoot. I am trying to make some custom mods to OpenLayers 2.11 -- nothing fancy, nothing in the JavaScript, only some of the buttons and images. So, I made a copy of my OL installation, and called it OpenLayers-copy, and replaced my OL script line in my web page like so - + var map = new OpenLayers.Map("map", { "controls": [ - new OpenLayers.Control.LayerSwitcher(), - new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoom(), + new OpenLayers.Control.LayerSwitcher({ + "roundedCornerColor": "rgba(0,0,0,0.8)" + }), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.MousePosition({ "div": document.getElementById("coords"), "numDigits": 2 }) ], "projection": new OpenLayers.Projection("EPSG:900913"), "displayProjection": new OpenLayers.Projection("EPSG:4326"), "units": "m", "maxResolution": 156543.0339, "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) }); map.events.register("click", map, collections); "collections": function(e) { var lonlat = map.getLonLatFromViewPortPx(e.xy).transform( new OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection("EPSG:4326") ); .. do something with lng/lat .. } That is the extent of my OL changes. I am now seeing the following two behaviors that are foxing me -- 1. The mouse display shows the correct mouse position in lng lat, however, the actual point clicked on (for further querying is off by several tens of degrees. For example, if I click at [-78.71, 43.33], the actual point calculated by the click event listener is [-61.45, 61.61]. Why? 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? Many thanks, -- Puneet Kishor From punk.kish at gmail.com Fri Jan 6 12:13:53 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 6 12:14:03 2012 Subject: [OpenLayers-Users] Re: strange behavior with wrong click event coordinates and drag pan In-Reply-To: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> References: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> Message-ID: <17EA0AAD-135B-40EA-B238-ABE10D5CB86C@gmail.com> a little more investigation, more revelation (see below) On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: > I am experiencing a strange behavior that perhaps someone can help me troubleshoot. I am trying to make some custom mods to OpenLayers 2.11 -- nothing fancy, nothing in the JavaScript, only some of the buttons and images. So, I made a copy of my OL installation, and called it OpenLayers-copy, and replaced my OL script line in my web page like so > > - > + > > var map = new OpenLayers.Map("map", { > "controls": [ > - new OpenLayers.Control.LayerSwitcher(), > - new OpenLayers.Control.Navigation(), > - new OpenLayers.Control.PanZoom(), > + new OpenLayers.Control.LayerSwitcher({ > + "roundedCornerColor": "rgba(0,0,0,0.8)" > + }), > + new OpenLayers.Control.ZoomPanel(), > new OpenLayers.Control.MousePosition({ > "div": document.getElementById("coords"), > "numDigits": 2 > }) > ], > "projection": new OpenLayers.Projection("EPSG:900913"), > "displayProjection": new OpenLayers.Projection("EPSG:4326"), > "units": "m", > "maxResolution": 156543.0339, > "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) > }); > > map.events.register("click", map, collections); > > "collections": function(e) { > var lonlat = map.getLonLatFromViewPortPx(e.xy).transform( > new OpenLayers.Projection("EPSG:900913"), > new OpenLayers.Projection("EPSG:4326") > ); > > .. do something with lng/lat .. > } > > > That is the extent of my OL changes. I am now seeing the following two behaviors that are foxing me -- > > 1. The mouse display shows the correct mouse position in lng lat, however, the actual point clicked on (for further querying is off by several tens of degrees. For example, if I click at [-78.71, 43.33], the actual point calculated by the click event listener is [-61.45, 61.61]. Why? > I changed the OL library to the original, as downloaded from OL servers. The click reported by the mouse position display is off from the click reported by the map listener even with the original OL library, albeit, by a smaller amount. For example, I clicked on [-78.35, 43.45] as shown in the mouse position display. The click event reported [-77.97, 49.61]. A very small lng shift but a fairly large lat shift. This is quite perplexing, and definitely very erroneous. > 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? > > Many thanks, > > > -- > Puneet Kishor > > From chris at windsorsolutions.com Fri Jan 6 12:20:30 2012 From: chris at windsorsolutions.com (crb) Date: Fri Jan 6 12:21:03 2012 Subject: [OpenLayers-Users] OL maps showing tile borders in Chrome Message-ID: <1325870430983-7159120.post@n2.nabble.com> Greetings. I ran across this starting yesterday and was wondering if anyone else has seen the same or similar... OL maps are being displayed with white grid lines around map tiles in groups of 2x3, 3x3 and 4x3 tiles (depending on scale) in Google Chrome only -- at least the same issue does not exist in FireFox or IE. It looks like Chrome was updated to v16.0.912.75 yesterday at 15:00 EST, but this issue occurred earlier in the day than that for me (also occurred on v16.0.912.63). It occurs for Bing base maps, Google, etc. and does not occur in Chrome when hitting maps.google.com or www.bing.com/maps directly. My map was created w/ default options, i.e. a simple "var map = new OpenLayers.Map('map');" and then added Bing/Google layers. http://osgeo-org.1803224.n2.nabble.com/file/n7159120/olmap_grid.png Has anyone else experienced this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-maps-showing-tile-borders-in-Chrome-tp7159120p7159120.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rykovd at gmail.com Fri Jan 6 12:23:14 2012 From: rykovd at gmail.com (dr) Date: Fri Jan 6 12:23:58 2012 Subject: [OpenLayers-Users] Re: Introducing mapshup In-Reply-To: References: Message-ID: <1325870594254-7159131.post@n2.nabble.com> Hi. Big thanks for application! But my colleague reported me application not works. See screenshot: http://gis-lab.info/images/screenshots/20120106-2bn-42kb.jpg ----- Denis Rykov NextGIS http://www.nextgis.org/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Introducing-mapshup-tp7158339p7159131.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jerome.gasperi at gmail.com Fri Jan 6 13:11:13 2012 From: jerome.gasperi at gmail.com (jrom) Date: Fri Jan 6 13:12:25 2012 Subject: [OpenLayers-Users] Re: Introducing mapshup In-Reply-To: <1325870594254-7159131.post@n2.nabble.com> References: <1325870594254-7159131.post@n2.nabble.com> Message-ID: Hi Denis, Thank you for your feedback. Application automatically detects the browser lang. I completely forget to put the russian translation on the server that's why your friend get an error. It's corrected now (everything should be displayed in english). Regards Jerome 2012/1/6 dr : > Hi. > > Big thanks for application! But my colleague reported me application not > works. See screenshot: > http://gis-lab.info/images/screenshots/20120106-2bn-42kb.jpg > > ----- > Denis Rykov > NextGIS > http://www.nextgis.org/ > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Introducing-mapshup-tp7158339p7159131.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- http://jrom.info From ahocevar at opengeo.org Fri Jan 6 13:24:20 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Fri Jan 6 13:25:06 2012 Subject: [OpenLayers-Users] OL maps showing tile borders in Chrome In-Reply-To: <1325870430983-7159120.post@n2.nabble.com> References: <1325870430983-7159120.post@n2.nabble.com> Message-ID: Hi, are you using fractional zoom values? What does map.getZoom() return? If it's an integer, you should not be seeing these gaps. Andreas. On Fri, Jan 6, 2012 at 6:20 PM, crb wrote: > Greetings. > > I ran across this starting yesterday and was wondering if anyone else has > seen the same or similar... > > OL maps are being displayed with white grid lines around map tiles in groups > of 2x3, 3x3 and 4x3 tiles (depending on scale) in Google Chrome only -- at > least the same issue does not exist in FireFox or IE. ?It looks like Chrome > was updated to v16.0.912.75 yesterday at 15:00 EST, but this issue occurred > earlier in the day than that for me (also occurred on v16.0.912.63). ?It > occurs for Bing base maps, Google, etc. and does not occur in Chrome when > hitting maps.google.com or www.bing.com/maps directly. ?My map was created > w/ default options, i.e. a simple "var map = new OpenLayers.Map('map');" and > then added Bing/Google layers. > > http://osgeo-org.1803224.n2.nabble.com/file/n7159120/olmap_grid.png > > Has anyone else experienced this? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-maps-showing-tile-borders-in-Chrome-tp7159120p7159120.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From tallentn at gmail.com Fri Jan 6 15:15:02 2012 From: tallentn at gmail.com (Neil T) Date: Fri Jan 6 15:15:51 2012 Subject: [OpenLayers-Users] OL vector/wfs trouble with GeoServer Message-ID: <1325880902572-7159749.post@n2.nabble.com> Hello, my first post on an online forum, so I appoligize if I fail at the info! My setup: Tomcat 7.0.22, localhost:8082 GeoServer 2.1.3, hosted via Tomcat (also :8082) Oracle XE/Apex 4.1, running via embedded XDB gateway on :8080 Openlayers 2.10 (tried 2.11, not sure if that was the issue, currently back on 2.10) Python 2.7 (for my proxy script) Using Firefox/Firebug for review I'm attempting to offer a layer of point geometries from my XE DB as a Vector layer on my map. The layer displays fine in Geoserver (workspace:BETA_ORCL, layer:CC_COUNTRIES); I can preview in all formats. I had first attempted the GeoServer Proxy (proxy-2.1-SNAPSHOP), but was unsuccessful and deleted the .jar from my web-inf/lib. Next, I tried the proxy.cgi provided by Openlayers - it was origionally unsuccessful as well (the section that rendered the 'qs' "QUERY_STRING" as an array set was truncating my url request at the first &...I replaced with an lstrip('url=') to clean my url instead), and I can successfully pass a getFeature request using the proxy by manually inserting the url (proxy and getFeatures call) into a browser; it returns what seems to be a valid xml of my feature set. All this leads me to believe my Geoserver can offer this layer as a wfs layer (wfs is enabled, getCapabilities checks out, etc.) through the proxy. Here's my layer call from javascript: var countryLayer = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.Fixed()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8082/geoserver/wfs", featurePrefix:"BETA_ORCL", featureType: "CC_COUNTRIES", geometryName: "CENT_GEOM", featureNS: "http://betaora.org", schema: "http://localhost:8082/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=BETA_ORCL:CC_COUNTRIES", srsName: "EPSG:4326", version: "1.1.0" }) }); When the page renders, the only activity I see in the GeoServer logs is the request for WMS tiles (my base map, which displays fine). Nothing at all for WFS layer, no errors...nothing. In FireBug, I get two warnings on the console (regarding the xml.js and v1.js for openlayers) about null objects, but no errors. On the Net panel, the activity reads: URL: OPTIONS cust.cgi?url=.... (on mouseover, changes to full http://localhost:8082) STATUS: 200 OK DOMAIN: localhost:8082 SIZE: 0 Remote IP: localhost:8082 The response is completely empty. I'm concerned because the net activity in Firebug for WMS layers starts with POST/GET (vice OPTIONS); does this indicate the problem? Also unsure of the paramater calls for Protocol.WFS - I've seen SOOO many combos that all claim to work (using/not using featureNS, schema, etc.)...do I have it right? Finally; my Vector layer does create. It is added to the layer selector, and is under the dom objects. However, there are no features; nothing displayed, nothing in the feature array, and the final two elements (vroot and troot) have no children. If I manually add a feature (using the markup controls), they are successfully added to the map and dom. Which makes me think the layer IS working...just not getting data from Geoserver. Any help is SERIOUSLY appreciated...I'm red-eyed from scouring forums, and would love to get on with my life. Thanks! Neil -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-vector-wfs-trouble-with-GeoServer-tp7159749p7159749.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From osm at tappenbeck.net Fri Jan 6 15:20:44 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Fri Jan 6 15:21:03 2012 Subject: [OpenLayers-Users] update text-file-data every call Message-ID: <4F07579C.1090206@tappenbeck.net> hi ! i have some maps [1] with using text-layers and import the data by csv-files. but when i update the data on the server they will not show soon. Shift+F5 (reload) will them not show soon. it takes some times. can anybody tell me a possiblity to show intime the update-data ? regards Jan :-) [1] http://www.tappenbeck.net/osm/maps/deu/index.php?id=1044&zoom=12&lat=53.87886&lon=10.25897&layers=BFTTTTT&lang=de From punk.kish at gmail.com Fri Jan 6 15:28:59 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 6 15:29:42 2012 Subject: [OpenLayers-Users] Re: strange behavior with wrong click event coordinates and drag pan In-Reply-To: <17EA0AAD-135B-40EA-B238-ABE10D5CB86C@gmail.com> References: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> <17EA0AAD-135B-40EA-B238-ABE10D5CB86C@gmail.com> Message-ID: <566F364A-62BF-4190-B14C-6280F8396448@gmail.com> Phew.... solved this one. It was user error (a faulty call in the html5 location sensing routine). On Jan 6, 2012, at 11:13 AM, Puneet Kishor wrote: > a little more investigation, more revelation (see below) > > On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: > >> I am experiencing a strange behavior that perhaps someone can help me troubleshoot. I am trying to make some custom mods to OpenLayers 2.11 -- nothing fancy, nothing in the JavaScript, only some of the buttons and images. So, I made a copy of my OL installation, and called it OpenLayers-copy, and replaced my OL script line in my web page like so >> >> - >> + >> >> var map = new OpenLayers.Map("map", { >> "controls": [ >> - new OpenLayers.Control.LayerSwitcher(), >> - new OpenLayers.Control.Navigation(), >> - new OpenLayers.Control.PanZoom(), >> + new OpenLayers.Control.LayerSwitcher({ >> + "roundedCornerColor": "rgba(0,0,0,0.8)" >> + }), >> + new OpenLayers.Control.ZoomPanel(), >> new OpenLayers.Control.MousePosition({ >> "div": document.getElementById("coords"), >> "numDigits": 2 >> }) >> ], >> "projection": new OpenLayers.Projection("EPSG:900913"), >> "displayProjection": new OpenLayers.Projection("EPSG:4326"), >> "units": "m", >> "maxResolution": 156543.0339, >> "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) >> }); >> >> map.events.register("click", map, collections); >> >> "collections": function(e) { >> var lonlat = map.getLonLatFromViewPortPx(e.xy).transform( >> new OpenLayers.Projection("EPSG:900913"), >> new OpenLayers.Projection("EPSG:4326") >> ); >> >> .. do something with lng/lat .. >> } >> >> >> That is the extent of my OL changes. I am now seeing the following two behaviors that are foxing me -- >> >> 1. The mouse display shows the correct mouse position in lng lat, however, the actual point clicked on (for further querying is off by several tens of degrees. For example, if I click at [-78.71, 43.33], the actual point calculated by the click event listener is [-61.45, 61.61]. Why? >> > > I changed the OL library to the original, as downloaded from OL servers. The click reported by the mouse position display is off from the click reported by the map listener even with the original OL library, albeit, by a smaller amount. For example, I clicked on [-78.35, 43.45] as shown in the mouse position display. The click event reported [-77.97, 49.61]. A very small lng shift but a fairly large lat shift. > > This is quite perplexing, and definitely very erroneous. > >> 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? >> >> Many thanks, >> >> >> -- >> Puneet Kishor >> >> > From wallyatkins at gmail.com Fri Jan 6 15:30:17 2012 From: wallyatkins at gmail.com (Wally Atkins) Date: Fri Jan 6 15:31:06 2012 Subject: [OpenLayers-Users] OL vector/wfs trouble with GeoServer In-Reply-To: <1325880902572-7159749.post@n2.nabble.com> References: <1325880902572-7159749.post@n2.nabble.com> Message-ID: I think the problem is that you are using Oracle APEX ;) On Friday, January 6, 2012, Neil T wrote: > Hello, my first post on an online forum, so I appoligize if I fail at the > info! > > My setup: > > Tomcat 7.0.22, localhost:8082 > GeoServer 2.1.3, hosted via Tomcat (also :8082) > Oracle XE/Apex 4.1, running via embedded XDB gateway on :8080 > Openlayers 2.10 (tried 2.11, not sure if that was the issue, currently back > on 2.10) > Python 2.7 (for my proxy script) > Using Firefox/Firebug for review > > I'm attempting to offer a layer of point geometries from my XE DB as a > Vector layer on my map. The layer displays fine in Geoserver > (workspace:BETA_ORCL, layer:CC_COUNTRIES); I can preview in all formats. I > had first attempted the GeoServer Proxy (proxy-2.1-SNAPSHOP), but was > unsuccessful and deleted the .jar from my web-inf/lib. Next, I tried the > proxy.cgi provided by Openlayers - it was origionally unsuccessful as well > (the section that rendered the 'qs' "QUERY_STRING" as an array set was > truncating my url request at the first &...I replaced with an lstrip('url=') > to clean my url instead), and I can successfully pass a getFeature request > using the proxy by manually inserting the url (proxy and getFeatures call) > into a browser; it returns what seems to be a valid xml of my feature set. > > All this leads me to believe my Geoserver can offer this layer as a wfs > layer (wfs is enabled, getCapabilities checks out, etc.) through the proxy. > Here's my layer call from javascript: > > var countryLayer = new OpenLayers.Layer.Vector("WFS", { > strategies: [new OpenLayers.Strategy.Fixed()], > projection: new OpenLayers.Projection("EPSG:4326"), > protocol: new OpenLayers.Protocol.WFS({ > url: "http://localhost:8082/geoserver/wfs", > featurePrefix:"BETA_ORCL", > featureType: "CC_COUNTRIES", > geometryName: "CENT_GEOM", > featureNS: "http://betaora.org", > schema: > " http://localhost:8082/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=BETA_ORCL:CC_COUNTRIES ", > srsName: "EPSG:4326", > version: "1.1.0" > }) > }); > > When the page renders, the only activity I see in the GeoServer logs is the > request for WMS tiles (my base map, which displays fine). Nothing at all > for WFS layer, no errors...nothing. In FireBug, I get two warnings on the > console (regarding the xml.js and v1.js for openlayers) about null objects, > but no errors. On the Net panel, the activity reads: > > URL: OPTIONS cust.cgi?url=.... (on mouseover, changes to full > http://localhost:8082) > STATUS: 200 OK > DOMAIN: localhost:8082 > SIZE: 0 > Remote IP: localhost:8082 > > The response is completely empty. > > I'm concerned because the net activity in Firebug for WMS layers starts with > POST/GET (vice OPTIONS); does this indicate the problem? > > Also unsure of the paramater calls for Protocol.WFS - I've seen SOOO many > combos that all claim to work (using/not using featureNS, schema, etc.)...do > I have it right? > > Finally; my Vector layer does create. It is added to the layer selector, > and is under the dom objects. However, there are no features; nothing > displayed, nothing in the feature array, and the final two elements > (vroot and troot) have no children. If I manually add a feature (using the > markup controls), they are successfully added to the map and dom. Which > makes me think the layer IS working...just not getting data from Geoserver. > > Any help is SERIOUSLY appreciated...I'm red-eyed from scouring forums, and > would love to get on with my life. Thanks! > > Neil > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-vector-wfs-trouble-with-GeoServer-tp7159749p7159749.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120106/c4284cb0/attachment.html From jason.woolard at noaa.gov Fri Jan 6 15:38:26 2012 From: jason.woolard at noaa.gov (Jason Woolard) Date: Fri Jan 6 15:46:55 2012 Subject: [OpenLayers-Users] OL maps showing tile borders in Chrome In-Reply-To: <20120106202943.72033E00E0F@lists.osgeo.org> References: <20120106202943.72033E00E0F@lists.osgeo.org> Message-ID: <4F075BC2.6060806@noaa.gov> I get the same thing but only when viewing from localhost. Once I uploaded to the server the tile borders went away. On 1/6/2012 3:29 PM, openlayers-users-request@lists.osgeo.org wrote: > Send Users mailing list submissions to > openlayers-users@lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/openlayers-users > or, via email, send a message with subject or body 'help' to > openlayers-users-request@lists.osgeo.org > > You can reach the person managing the list at > openlayers-users-owner@lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. Re: strange behavior with wrong click event coordinates and > drag pan (Puneet Kishor) > 2. OL maps showing tile borders in Chrome (crb) > 3. Re: Introducing mapshup (dr) > 4. Re: Re: Introducing mapshup (jrom) > 5. Re: OL maps showing tile borders in Chrome (Andreas Hocevar) > 6. OL vector/wfs trouble with GeoServer (Neil T) > 7. update text-file-data every call (Jan Tappenbeck) > 8. Re: strange behavior with wrong click event coordinates and > drag pan (Puneet Kishor) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 6 Jan 2012 11:13:53 -0600 > From: Puneet Kishor > Subject: [OpenLayers-Users] Re: strange behavior with wrong click > event coordinates and drag pan > To: openlayers-users@lists.osgeo.org > Message-ID:<17EA0AAD-135B-40EA-B238-ABE10D5CB86C@gmail.com> > Content-Type: text/plain; charset=us-ascii > > a little more investigation, more revelation (see below) > > On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: > >> I am experiencing a strange behavior that perhaps someone can help me troubleshoot. I am trying to make some custom mods to OpenLayers 2.11 -- nothing fancy, nothing in the JavaScript, only some of the buttons and images. So, I made a copy of my OL installation, and called it OpenLayers-copy, and replaced my OL script line in my web page like so >> >> - >> + >> >> var map = new OpenLayers.Map("map", { >> "controls": [ >> - new OpenLayers.Control.LayerSwitcher(), >> - new OpenLayers.Control.Navigation(), >> - new OpenLayers.Control.PanZoom(), >> + new OpenLayers.Control.LayerSwitcher({ >> + "roundedCornerColor": "rgba(0,0,0,0.8)" >> + }), >> + new OpenLayers.Control.ZoomPanel(), >> new OpenLayers.Control.MousePosition({ >> "div": document.getElementById("coords"), >> "numDigits": 2 >> }) >> ], >> "projection": new OpenLayers.Projection("EPSG:900913"), >> "displayProjection": new OpenLayers.Projection("EPSG:4326"), >> "units": "m", >> "maxResolution": 156543.0339, >> "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) >> }); >> >> map.events.register("click", map, collections); >> >> "collections": function(e) { >> var lonlat = map.getLonLatFromViewPortPx(e.xy).transform( >> new OpenLayers.Projection("EPSG:900913"), >> new OpenLayers.Projection("EPSG:4326") >> ); >> >> .. do something with lng/lat .. >> } >> >> >> That is the extent of my OL changes. I am now seeing the following two behaviors that are foxing me -- >> >> 1. The mouse display shows the correct mouse position in lng lat, however, the actual point clicked on (for further querying is off by several tens of degrees. For example, if I click at [-78.71, 43.33], the actual point calculated by the click event listener is [-61.45, 61.61]. Why? >> > I changed the OL library to the original, as downloaded from OL servers. The click reported by the mouse position display is off from the click reported by the map listener even with the original OL library, albeit, by a smaller amount. For example, I clicked on [-78.35, 43.45] as shown in the mouse position display. The click event reported [-77.97, 49.61]. A very small lng shift but a fairly large lat shift. > > This is quite perplexing, and definitely very erroneous. > >> 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? >> >> Many thanks, >> >> >> -- >> Puneet Kishor >> >> > > > ------------------------------ > > Message: 2 > Date: Fri, 6 Jan 2012 09:20:30 -0800 (PST) > From: crb > Subject: [OpenLayers-Users] OL maps showing tile borders in Chrome > To: users@openlayers.org > Message-ID:<1325870430983-7159120.post@n2.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Greetings. > > I ran across this starting yesterday and was wondering if anyone else has > seen the same or similar... > > OL maps are being displayed with white grid lines around map tiles in groups > of 2x3, 3x3 and 4x3 tiles (depending on scale) in Google Chrome only -- at > least the same issue does not exist in FireFox or IE. It looks like Chrome > was updated to v16.0.912.75 yesterday at 15:00 EST, but this issue occurred > earlier in the day than that for me (also occurred on v16.0.912.63). It > occurs for Bing base maps, Google, etc. and does not occur in Chrome when > hitting maps.google.com or www.bing.com/maps directly. My map was created > w/ default options, i.e. a simple "var map = new OpenLayers.Map('map');" and > then added Bing/Google layers. > > http://osgeo-org.1803224.n2.nabble.com/file/n7159120/olmap_grid.png > > Has anyone else experienced this? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-maps-showing-tile-borders-in-Chrome-tp7159120p7159120.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 3 > Date: Fri, 6 Jan 2012 09:23:14 -0800 (PST) > From: dr > Subject: [OpenLayers-Users] Re: Introducing mapshup > To: users@openlayers.org > Message-ID:<1325870594254-7159131.post@n2.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Hi. > > Big thanks for application! But my colleague reported me application not > works. See screenshot: > http://gis-lab.info/images/screenshots/20120106-2bn-42kb.jpg > > ----- > Denis Rykov > NextGIS > http://www.nextgis.org/ > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Introducing-mapshup-tp7158339p7159131.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 4 > Date: Fri, 6 Jan 2012 19:11:13 +0100 > From: jrom > Subject: Re: [OpenLayers-Users] Re: Introducing mapshup > To: dr > Cc: users@openlayers.org > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Denis, > > Thank you for your feedback. Application automatically detects the > browser lang. I completely forget to put the russian translation on > the server that's why your friend get an error. It's corrected now > (everything should be displayed in english). > > Regards > > Jerome > > 2012/1/6 dr: >> Hi. >> >> Big thanks for application! But my colleague reported me application not >> works. See screenshot: >> http://gis-lab.info/images/screenshots/20120106-2bn-42kb.jpg >> >> ----- >> Denis Rykov >> NextGIS >> http://www.nextgis.org/ >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Introducing-mapshup-tp7158339p7159131.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > From jjquispev at hotmail.com Fri Jan 6 15:57:42 2012 From: jjquispev at hotmail.com (Javier Jose Quispe Varillas) Date: Fri Jan 6 15:58:13 2012 Subject: [OpenLayers-Users] Encode a WFS service by ArcGIS Server 9.3.1 in Openlayers In-Reply-To: References: , Message-ID: Dear Friends I support the right way to encode a WFS service generated by the ArcGIS Server 9.3.1 to test intersection. I tried several ways but I do not visualize the polygons of the WFS service. I managed to do so with Geoserver WFS and Mapserver, but I lack of ArcGIS Server. I am using Protocol.WFS class (as well as OpenLayers.Layer.Vector) but I think I'm the missing options for proper charging. The route url is: http://192.168.1.98:8087/ArcGIS/services/SERNANPWFS/MapServer/WFSServer. The layer is called "ANPNacional", is composed of objects from a shapefile polygons, I have also: The route url is: http://192.168.1.98:8087/ArcGIS/services/SERNANPWFSFGB/GeoDataServer/WFSServer With Feature class: ANPNacional from File Geodatabase . If you're in a SDE geodatabase as well as serious. I say goodbye to waiting for your help. Javier Quispe Lima-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120106/9b66484d/attachment.html From ahocevar at opengeo.org Fri Jan 6 16:00:54 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Fri Jan 6 16:01:35 2012 Subject: [OpenLayers-Users] OL maps showing tile borders in Chrome In-Reply-To: References: <1325870430983-7159120.post@n2.nabble.com> Message-ID: Then maybe your browser view is zoomed? Try pressing Ctrl+0 (or Cmd+0 if it's on a Mac) to set the zoom to 100%. Andreas. On Fri, Jan 6, 2012 at 7:54 PM, Chris Beaudette wrote: > Thanks for the response. > > Yes, am getting integer values: > > map.getZoom(); > 5 > map.getZoom(); > 6 > > > > On Fri, Jan 6, 2012 at 10:24 AM, Andreas Hocevar > wrote: >> >> Hi, >> >> are you using fractional zoom values? What does map.getZoom() return? >> If it's an integer, you should not be seeing these gaps. >> >> Andreas. >> >> On Fri, Jan 6, 2012 at 6:20 PM, crb wrote: >> > Greetings. >> > >> > I ran across this starting yesterday and was wondering if anyone else >> > has >> > seen the same or similar... >> > >> > OL maps are being displayed with white grid lines around map tiles in >> > groups >> > of 2x3, 3x3 and 4x3 tiles (depending on scale) in Google Chrome only -- >> > at >> > least the same issue does not exist in FireFox or IE. ?It looks like >> > Chrome >> > was updated to v16.0.912.75 yesterday at 15:00 EST, but this issue >> > occurred >> > earlier in the day than that for me (also occurred on v16.0.912.63). ?It >> > occurs for Bing base maps, Google, etc. and does not occur in Chrome >> > when >> > hitting maps.google.com or www.bing.com/maps directly. ?My map was >> > created >> > w/ default options, i.e. a simple "var map = new OpenLayers.Map('map');" >> > and >> > then added Bing/Google layers. >> > >> > http://osgeo-org.1803224.n2.nabble.com/file/n7159120/olmap_grid.png >> > >> > Has anyone else experienced this? >> > >> > -- >> > View this message in context: >> > http://osgeo-org.1803224.n2.nabble.com/OL-maps-showing-tile-borders-in-Chrome-tp7159120p7159120.html >> > Sent from the OpenLayers Users mailing list archive at Nabble.com. >> > _______________________________________________ >> > Users mailing list >> > Users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > > > > -- > Chris Beaudette > Windsor Solutions, Inc. > www.windsorsolutions.com > N 45 ? 25' 0.0", W 122 ? 42' 52.7" > 503.675.7833 x232 -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From punk.kish at gmail.com Fri Jan 6 17:53:36 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 6 17:53:45 2012 Subject: [OpenLayers-Users] Re: strange behavior with wrong click event coordinates and drag pan In-Reply-To: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> References: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> Message-ID: The following behavior still continues... On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: > > var map = new OpenLayers.Map("map", { > "controls": [ > - new OpenLayers.Control.LayerSwitcher(), > - new OpenLayers.Control.Navigation(), > - new OpenLayers.Control.PanZoom(), > + new OpenLayers.Control.LayerSwitcher({ > + "roundedCornerColor": "rgba(0,0,0,0.8)" > + }), > + new OpenLayers.Control.ZoomPanel(), > new OpenLayers.Control.MousePosition({ > "div": document.getElementById("coords"), > "numDigits": 2 > }) > ], > "projection": new OpenLayers.Projection("EPSG:900913"), > "displayProjection": new OpenLayers.Projection("EPSG:4326"), > "units": "m", > "maxResolution": 156543.0339, > "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) > }); > ... > > 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? I can simply not drag the map around. I want to be able to drag the map without showing the pan controls on the top left. How can I do that? Many tia, -- Puneet Kishor From jerome.gasperi at gmail.com Sat Jan 7 03:13:25 2012 From: jerome.gasperi at gmail.com (jrom) Date: Sat Jan 7 03:14:29 2012 Subject: [OpenLayers-Users] Introducing mapshup In-Reply-To: References: Message-ID: Dear OpenLayers users, Last year i presented jeobrowser application. As of today, this application is no more and it is replaced by the mapshup application framework. This application is released under the opensource CeCILL-B license (basically a kind of BSD licence) and source are immediately available at http://code.google.com/p/mapshup/ A running demo is available at http://engine.mapshup.info (hidden functionality : try to drag&drop a valid file or layer url (wms, wfs, csw, etc.) on top of the map and the application will try to automatically add it to the map :) Best regards Jerome -- http://jrom.info From ahocevar at opengeo.org Sat Jan 7 04:26:15 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 7 04:26:53 2012 Subject: [OpenLayers-Users] Re: strange behavior with wrong click event coordinates and drag pan In-Reply-To: References: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> Message-ID: Don't remove the Navigation control, and everything will be fine. Andreas. On Fri, Jan 6, 2012 at 11:53 PM, Puneet Kishor wrote: > The following behavior still continues... > > > On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: > >> >> ? ?var map = new OpenLayers.Map("map", { >> ? ? ? ?"controls": [ >> ? ? ? ? ?- new OpenLayers.Control.LayerSwitcher(), >> ? ? ? ? ?- new OpenLayers.Control.Navigation(), >> ? ? ? ? ?- new OpenLayers.Control.PanZoom(), >> ? ? ? ? ?+ new OpenLayers.Control.LayerSwitcher({ >> ? ? ? ? ?+ ? ? "roundedCornerColor": "rgba(0,0,0,0.8)" >> ? ? ? ? ?+ }), >> ? ? ? ? ?+ new OpenLayers.Control.ZoomPanel(), >> ? ? ? ? ? ?new OpenLayers.Control.MousePosition({ >> ? ? ? ? ? ? ? ? ?"div": document.getElementById("coords"), >> ? ? ? ? ? ? ? ? ?"numDigits": 2 >> ? ? ? ? ? ?}) >> ? ? ? ?], >> ? ? ? ?"projection": new OpenLayers.Projection("EPSG:900913"), >> ? ? ? ?"displayProjection": new OpenLayers.Projection("EPSG:4326"), >> ? ? ? ?"units": "m", >> ? ? ? ?"maxResolution": 156543.0339, >> ? ? ? ?"maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) >> ? ?}); >> ... >> >> 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? > > > I can simply not drag the map around. I want to be able to drag the map without showing the pan controls on the top left. How can I do that? > > Many tia, > > -- > Puneet Kishor_______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 7 04:28:39 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 7 04:29:29 2012 Subject: [OpenLayers-Users] Noob Needs Help with setCenter() call In-Reply-To: <4F06B19B.5040809@verizon.net> References: <4EFF5413.9090504@gmail.com> <1325694721299-7151049.post@n2.nabble.com> <4F06B19B.5040809@verizon.net> Message-ID: If your map's projection is not EPSG:4326 and not EPSG:900913 or one of its aliases (like EPSG:3587), you'll have to include proj4js and a projection definition file for your map projection to make this transformation work. Andreas. On Fri, Jan 6, 2012 at 9:32 AM, Arnie Shore wrote: > Folks, my map is not centering on the bounds center point returned from the > foll'g: > > ?var proj = new OpenLayers.Projection("EPSG:4326"); > ?var point = new OpenLayers.LonLat(bounds.getCenterLonLat()); > // ?returns lon=-77.50959,lat=39.011702, which is correct > ?map_Obj.setCenter(point.transform(proj, map_Obj.getProjectionObject())); > > > I'll appreciate any help in that setCenter() call working. > > AS > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 7 04:52:26 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 7 04:52:53 2012 Subject: [OpenLayers-Users] update text-file-data every call In-Reply-To: <4F07579C.1090206@tappenbeck.net> References: <4F07579C.1090206@tappenbeck.net> Message-ID: Make sure your csv.phtml sends proper cache control headers (or maybe an ETag header in your case), and things will be fine. Andreas. On Fri, Jan 6, 2012 at 9:20 PM, Jan Tappenbeck wrote: > hi ! > > i have some maps [1] with using text-layers and import the data by > csv-files. > > but when i update the data on the server they will not show soon. Shift+F5 > (reload) will them not show soon. it takes some times. > > can anybody tell me a possiblity to show intime the update-data ? > > regards Jan :-) > > > [1] > http://www.tappenbeck.net/osm/maps/deu/index.php?id=1044&zoom=12&lat=53.87886&lon=10.25897&layers=BFTTTTT&lang=de > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From chris at windsorsolutions.com Sun Jan 8 14:41:01 2012 From: chris at windsorsolutions.com (crb) Date: Sun Jan 8 14:41:28 2012 Subject: [OpenLayers-Users] Custom icons Web site Message-ID: <1326051661549-7165585.post@n2.nabble.com> FYI, found a great site for generating somewhat customizable map icons (color, etc.) covered under the Creative Commons license: http://mapicons.nicolasmollet.com/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Custom-icons-Web-site-tp7165585p7165585.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From noreply+O28277937 at netlogmail.com Mon Jan 9 03:56:17 2012 From: noreply+O28277937 at netlogmail.com (Christian Ledermann) Date: Mon Jan 9 04:17:07 2012 Subject: [OpenLayers-Users] Get access to my pictures and more Message-ID: Hey, I have created a Netlog profile with my pictures, videos, blogs and events and I want to add you as a friend so you can see it. You first need to register on Netlog! When you log in, you can create your own profile. Take a look: http://en.netlog.com/go/mailurl/-bT0yNjc5MDQ3NTA0Jmw9MSZnbT0xMiZ1PSUyRmdvJTJGcmVnaXN0ZXIlMkZpZCUzRC1iM0JsYm14aGVXVnljeTExYzJWeWMwQnNhWE4wY3k1dmMyZGxieTV2Y21jXyUyNnVpZCUzRDE4MDMwNjUwOA__ Cheers, Christian ---------------------------------------------------------------- Don't want to receive invitations from your friends anymore? http://en.netlog.com/go/mailurl/-bT0yNjc5MDQ3NTA0Jmw9MiZnbT0xMiZ1PSUyRmdvJTJGbm9tYWlscyUyRmludml0ZSUyRmVtYWlsJTNELWIzQmxibXhoZVdWeWN5MTFjMlZ5YzBCc2FYTjBjeTV2YzJkbGJ5NXZjbWNfJTI2Y29kZSUzRDAzODc1MDY1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120109/9b40df1f/attachment.html From arunas.noreika at ruptela.lt Mon Jan 9 08:05:48 2012 From: arunas.noreika at ruptela.lt (Arunas Noreika) Date: Mon Jan 9 08:38:24 2012 Subject: [OpenLayers-Users] Drawing overlays problem on Chrome and Win7 Message-ID: <4F0AE62C.4010007@ruptela.lt> Hi, we are encountering drawing problem with overlays: strange artefacts are drawn on the map. Looks like something like fill shape function is broken and instead of filling required shape it fills big part of the screen. Screenshot here: http://oi40.tinypic.com/2lo5440.jpg It happens occasionally only on Windows 7 and Chrome browser (maybe specific to hardware too?). Never on Firefox, or Linux or Windows XP. Not easy to reproduce, but it happens constantly, it's not a once in a lifetime occurrence. Google did not help, or I don't know what to look for. Has anyone else experienced something similar? Should I provide more info, what exactly? Any ideas or suggestions? Thanks in advance, Arunas Noreika From ramotswa at gmail.com Mon Jan 9 10:05:51 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Mon Jan 9 10:06:27 2012 Subject: [OpenLayers-Users] Drawing overlays problem on Chrome and Win7 In-Reply-To: <4F0AE62C.4010007@ruptela.lt> References: <4F0AE62C.4010007@ruptela.lt> Message-ID: Hi there, I have had the exact same problem. I do think it's an issue with Chrome, as when I tried the nightly "Canary" build I don't get those problems. Have a go at that (http://tools.google.com/dlpage/chromesxs) and see what happens. If you're in luck then the next chrome update should fix it. Toby On 9 January 2012 13:05, Arunas Noreika wrote: > Hi, we are encountering drawing problem with overlays: strange artefacts are > drawn on the map. Looks like something like fill shape function is broken > and instead of filling required shape it fills big part of the screen. > Screenshot here: http://oi40.tinypic.com/2lo5440.jpg > It happens occasionally only on Windows 7 and Chrome browser (maybe specific > to hardware too?). Never on Firefox, or Linux or Windows XP. Not easy to > reproduce, but it happens constantly, it's not a once in a lifetime > occurrence. > > Google did not help, or I don't know what to look for. Has anyone else > experienced something similar? Should I provide more info, what exactly? Any > ideas or suggestions? > > Thanks in advance, > Arunas Noreika > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From arnd.wippermann at web.de Mon Jan 9 13:24:21 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon Jan 9 13:25:01 2012 Subject: AW: [OpenLayers-Users] JSTS 0.11.0 released (port of geometry lib JTS Topology Suite, works with OpenLayers out of the box) In-Reply-To: References: Message-ID: Hi, Cool stuff. Very interesting extension for OpenLayers. I have created a more complex example to test some functions (Boundary, Buffer, Centroid, ConvexHull, Union, Intersection, SymDifference) of the jsts topology suite. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/JSTS_Example/jsts_example.a sp JSTS is easy to integrate to OpenLayers and the results are very impressive. The page is based on the new release JSTS 0.11.1. Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Bj?rn Harrtell Gesendet: Samstag, 24. Dezember 2011 23:28 An: users@openlayers.org Betreff: [OpenLayers-Users] JSTS 0.11.0 released (port of geometry lib JTS Topology Suite, works with OpenLayers out of the box) Hey OpenLayers folks! JSTS 0.11.0 was just released: https://github.com/bjornharrtell/jsts JSTS is now a relatively complete port of JTS Topology Suite and is quite stable, at least according to the 497 passing tests. Some live examples of buffer,?overlay?and?triangulation operations: http://bjornharrtell.github.com/jsts/examples/buffer.html http://bjornharrtell.github.com/jsts/examples/overlay.html http://bjornharrtell.github.com/jsts/examples/triangulation.html Regards and happy X-mas, Bj?rn Harrtell _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From punk.kish at gmail.com Mon Jan 9 14:54:58 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon Jan 9 14:55:45 2012 Subject: [OpenLayers-Users] the right way to get lon/lat from pixel Message-ID: <2C67DAD3-DF41-4995-8B29-ED710203B850@gmail.com> I was using the following code without any errors [A] var lonlat = map .getLonLatFromViewPortPx(e.xy) .transform(proj.google, proj.latlng); however, I can't find any reference to the above methods anymore in the API docs. On the other hand, I found the following commands, so I changed my code accordingly [B] var lonlat = map .getLonLatFromPixel( this.events.getMousePosition(e) ). .transform(proj.google, proj.latlng); The above works well too, but I just want to confirm if [B] is indeed the way to do it, and if the method in [A] is deprecated. -- Puneet Kishor From punk.kish at gmail.com Mon Jan 9 15:02:07 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon Jan 9 15:02:22 2012 Subject: [OpenLayers-Users] strange behavior with wrong click event coordinates and drag pan In-Reply-To: References: <695DB8FA-ABBB-40DC-AC17-085D9B314F96@gmail.com> Message-ID: On Jan 7, 2012, at 3:26 AM, Andreas Hocevar wrote: > Don't remove the Navigation control, and everything will be fine. > > Thanks Andreas. That was it. All is fine now. > > On Fri, Jan 6, 2012 at 11:53 PM, Puneet Kishor wrote: >> The following behavior still continues... >> >> >> On Jan 6, 2012, at 10:50 AM, Puneet Kishor wrote: >> >>> >>> var map = new OpenLayers.Map("map", { >>> "controls": [ >>> - new OpenLayers.Control.LayerSwitcher(), >>> - new OpenLayers.Control.Navigation(), >>> - new OpenLayers.Control.PanZoom(), >>> + new OpenLayers.Control.LayerSwitcher({ >>> + "roundedCornerColor": "rgba(0,0,0,0.8)" >>> + }), >>> + new OpenLayers.Control.ZoomPanel(), >>> new OpenLayers.Control.MousePosition({ >>> "div": document.getElementById("coords"), >>> "numDigits": 2 >>> }) >>> ], >>> "projection": new OpenLayers.Projection("EPSG:900913"), >>> "displayProjection": new OpenLayers.Projection("EPSG:4326"), >>> "units": "m", >>> "maxResolution": 156543.0339, >>> "maxExtent": new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) >>> }); >>> ... >>> >>> 2. I am unable to drag and pan the map. On the other hand, if I bring back Control.Navigation and Control.PanZoom then I am able to drag pan the map. I want to be able to drag pan the map, but I don't want to show the PanZoom controls. How can I achieve that? >> >> >> I can simply not drag the map around. I want to be able to drag the map without showing the pan controls on the top left. How can I do that? >> >> Many tia, >> From valemunoz at gmail.com Mon Jan 9 15:42:17 2012 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon Jan 9 15:43:10 2012 Subject: [OpenLayers-Users] mouseover marker delay Message-ID: HI! I show a popup when mouse over a marker but i need add a delay to that... almost 1 second my code: marker.events.register('mouseover', marker, function(evt) {addPopUp(json.LATITUD,json.LONGITUD,"  "+json.NOMBRE+""); OpenLayers.Event.stop(evt); }); RG Valeria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120109/4b8005a6/attachment.html From Robert.Sanson at asurequality.com Mon Jan 9 15:58:51 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Mon Jan 9 15:59:41 2012 Subject: [OpenLayers-Users] Complex symbology for lines? In-Reply-To: References: Message-ID: <4F0C0BDB0200003700011CB7@gate1.asurequality.com> Dear OpenLayers Users Just wondering if it is possible to use complex symbology for line vector features, such as double-lines? Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From ahocevar at opengeo.org Tue Jan 10 05:10:57 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 10 05:11:05 2012 Subject: [OpenLayers-Users] the right way to get lon/lat from pixel In-Reply-To: <2C67DAD3-DF41-4995-8B29-ED710203B850@gmail.com> References: <2C67DAD3-DF41-4995-8B29-ED710203B850@gmail.com> Message-ID: [B] is the right way to do it - it uses an API function, whereas [A] uses an internal function. On Mon, Jan 9, 2012 at 8:54 PM, Puneet Kishor wrote: > I was using the following code without any errors > > ? ?[A] > > ? ?var lonlat = map > ? ? ? ?.getLonLatFromViewPortPx(e.xy) > ? ? ? ?.transform(proj.google, proj.latlng); > > however, I can't find any reference to the above methods anymore in the API docs. On the other hand, I found the following commands, so I changed my code accordingly > > ? ?[B] > > ? ?var lonlat = map > ? ? ? ?.getLonLatFromPixel( this.events.getMousePosition(e) ). > ? ? ? ?.transform(proj.google, proj.latlng); > > The above works well too, but I just want to confirm if [B] is indeed the way to do it, and if the method in [A] is deprecated. > > -- > Puneet Kishor_______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From luis.a.de.sousa at gmail.com Tue Jan 10 05:11:02 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue Jan 10 05:11:11 2012 Subject: [OpenLayers-Users] Overlay WMS layer on OSM Message-ID: <1326190262614-7171504.post@n2.nabble.com> Dear all, Below is the code of a very simple map that pretends to overlay a WMS layer on OSM. I have a local MapServer instance from which I add the same layer in two different ways: as a base layer and as an overlay. As a base layer the WMS data is shown without trouble. As an overlay nothing is shown, just the pink void tiles with the missing image icon. Using Firebug I can verify that when I turn the overlay on no HTTP request is being sent, thus it must be something wrong with the code. This is going on with OpenLayers 2.11, btw. Any help appreciated, thank you, Lu?s -------------------------------------------------------- function initMap(){ map = new OpenLayers.Map("MiniMap",{ projection: new OpenLayers.Projection("EPSG:3785"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", numZoomLevels: 18, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34) }); map.addLayer(new OpenLayers.Layer.OSM()); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(new OpenLayers.LonLat(1022500, 6256500), 13); var builds = new OpenLayers.Layer.WMS( "Buildings", "http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Ludwigsburg01.map", {layers: "LudwigTest", format: "image/png", srsName: "EPSG:3785", srs: "EPSG:3785"} ); var buildsOver = new OpenLayers.Layer.WMS( "Buildings overlay", "http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Ludwigsburg01.map", {layers: "LudwigTest", format: "image/png", srsName: "EPSG:3785", srs: "EPSG:3785", transparent: "true"}, {isBaseLayer: false} ); map.addLayers([builds, buildsOver]); } -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overlay-WMS-layer-on-OSM-tp7171504p7171504.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jerome.gasperi at gmail.com Tue Jan 10 07:38:12 2012 From: jerome.gasperi at gmail.com (jrom) Date: Tue Jan 10 07:39:29 2012 Subject: [OpenLayers-Users] Overlay WMS layer on OSM In-Reply-To: <1326190262614-7171504.post@n2.nabble.com> References: <1326190262614-7171504.post@n2.nabble.com> Message-ID: Hi Luis, I think EPSG:3785 is deprecated. You should use EPSG:3857 instead Regards Jerome -- http://mapshup.info 2012/1/10 Lu?s de Sousa : > Dear all, > > Below is the code of a very simple map that pretends to overlay a WMS layer > on OSM. I have a local MapServer instance from which I add the same layer in > two different ways: as a base layer and as an overlay. As a base layer the > WMS data is shown without trouble. As an overlay nothing is shown, just the > pink void tiles with the missing image icon. Using Firebug I can verify that > when I turn the overlay on no HTTP request is being sent, thus it must be > something wrong with the code. > > This is going on with OpenLayers 2.11, btw. Any help appreciated, thank you, > > Lu?s > > -------------------------------------------------------- > > function initMap(){ > > ? ? ? ?map = new OpenLayers.Map("MiniMap",{ > ? ? ? ? ? ? ? ?projection: new OpenLayers.Projection("EPSG:3785"), > ? ? ? ? ? ? ? ?displayProjection: new OpenLayers.Projection("EPSG:4326"), > ? ? ? ? ? ? ? ?units: "m", > ? ? ? ? ? ? ? ?numZoomLevels: 18, > ? ? ? ? ? ? ? ?maxResolution: 156543.0339, > ? ? ? ? ? ? ? ?maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, > 20037508.34) > ? ? ? ?}); > > ? ? ? ?map.addLayer(new OpenLayers.Layer.OSM()); > ? ? ? ?map.addControl(new OpenLayers.Control.MousePosition()); > ? ? ? ?map.addControl(new OpenLayers.Control.LayerSwitcher()); > ? ? ? ?map.setCenter(new OpenLayers.LonLat(1022500, 6256500), 13); > > ? ? ? ?var builds = new OpenLayers.Layer.WMS( > ? ? ? ? ? ? ? ?"Buildings", > ? ? ? ? ? ? ? ?"http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Ludwigsburg01.map", > ? ? ? ? ? ? ? ?{layers: "LudwigTest", > ? ? ? ? ? ? ? ?format: "image/png", > ? ? ? ? ? ? ? ?srsName: "EPSG:3785", > ? ? ? ? ? ? ? ?srs: "EPSG:3785"} > ? ? ? ?); > > ? ? ? ?var buildsOver = new OpenLayers.Layer.WMS( > ? ? ? ? ? ? ? ?"Buildings overlay", > ? ? ? ? ? ? ? ?"http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Ludwigsburg01.map", > ? ? ? ? ? ? ? ?{layers: "LudwigTest", > ? ? ? ? ? ? ? ?format: "image/png", > ? ? ? ? ? ? ? ?srsName: "EPSG:3785", > ? ? ? ? ? ? ? ?srs: "EPSG:3785", > ? ? ? ? ? ? ? ?transparent: "true"}, > ? ? ? ? ? ? ? ?{isBaseLayer: false} > ? ? ? ?); > > ? ? ? ?map.addLayers([builds, buildsOver]); > ?} > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overlay-WMS-layer-on-OSM-tp7171504p7171504.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From luis.a.de.sousa at gmail.com Tue Jan 10 07:58:59 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue Jan 10 07:59:19 2012 Subject: [OpenLayers-Users] Re: Overlay WMS layer on OSM In-Reply-To: References: <1326190262614-7171504.post@n2.nabble.com> Message-ID: <1326200339873-7171953.post@n2.nabble.com> Thank you very much J?r?me, that did it. Lu?s -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overlay-WMS-layer-on-OSM-tp7171504p7171953.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ramotswa at gmail.com Tue Jan 10 08:42:12 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Tue Jan 10 08:42:24 2012 Subject: [OpenLayers-Users] Add layers to Select control Message-ID: Hello All, Is there a way I can add a layer to the select control without overriding any existing layer (as selectControl.setLayer() would do?) Thanks Toby From ahocevar at opengeo.org Tue Jan 10 09:17:12 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 10 09:17:38 2012 Subject: [OpenLayers-Users] Add layers to Select control In-Reply-To: References: Message-ID: Try selectControl.setLayer((selectControl.layers||selectControl.layer).concat(newLayer)); where newLayer is the layer you want to add. Andreas. On Tue, Jan 10, 2012 at 2:42 PM, Tobias Reinicke wrote: > Hello All, > > Is there a way I can add a layer to the select control without > overriding any existing layer (as selectControl.setLayer() would do?) > > Thanks > > Toby > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From frederick.loebig at live.de Tue Jan 10 09:18:04 2012 From: frederick.loebig at live.de (=?iso-8859-1?B?RnJlZGVyaWNrIEz2Ymln?=) Date: Tue Jan 10 09:19:35 2012 Subject: [OpenLayers-Users] Problem with WMSGetFeatureInfo Message-ID: Hi all, I have a problem identifying Objects on my OpenLayers map. I have added the control-definition for the WMSGetFeatureInfo 'control' and activated it, but somehow, nothing happens when I click on anything. For debugging, I have implemented an alert() call, but no popup shows up so I know it's not a problem with coordinates or something, but a fundamental problem. Please find the relevent parts of the code attached: ... // Some code creating the map (it's working fine). layer definitions etc.. ... info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://10.49.5.80:8080/geoserver/wms', title: 'Identify features by clicking', queryVisible: false, eventListeners: { getfeatureinfo: function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud( "mypopup", map.getLonLatFromPixel(event.xy), null, event.text, null, true )); } } }); map.addControl(info); ... // other control definitions ... info.activate(); ... // rest of the init() code such as zoomToMaxExtent and so on... ... Any ideas? Cheers, Freddy B.Eng. Frederick L?big R?derichstra?e 59 60489 Frankfurt am Main --- E:: Frederick.Loebig@grunsnid.de P: +49 (0) 69 - 78 99 52 41 M: +49 (0) 174 - 70 89 296 --- Office: euNetworks GmbH Ludwig-Landmann-Stra?e 40560486 Frankfurt am MainP: +49 (0) 69 - 90 554 - 534 E: Frederick.Loebig@eunetworks.com S: floebig This email and any attachments may contain confidential and/or legally privileged information. If you are not the intended recipient, please delete the email without reading it and notify the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120110/664ab36a/attachment.html From dominik.acc at web.de Tue Jan 10 10:32:54 2012 From: dominik.acc at web.de (dominik) Date: Tue Jan 10 10:33:18 2012 Subject: [OpenLayers-Users] moving features symbolizer Message-ID: <1326209574646-7172557.post@n2.nabble.com> If i change a features symbolizer angel, and position. How do i make the changes visible on the layer? If i just call drawFeature, or redraw layer, the old icons stay on the map..... it's getting a mess. Do i really have to remove and than add the features every time i edit its attributes? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/moving-features-symbolizer-tp7172557p7172557.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From florenta.poasca at gmail.com Tue Jan 10 10:58:57 2012 From: florenta.poasca at gmail.com (hessyana) Date: Tue Jan 10 10:59:11 2012 Subject: [OpenLayers-Users] Re: How to access mouse modifier during "featureselected" In-Reply-To: <4B72DE21.3030902@marcelruff.info> References: <4B61DA60.1000501@marcelruff.info> <4B6324EB.1040206@marcelruff.info> <4B6F3783.7010101@marcelruff.info> <1265611569753-4532622.post@n2.nabble.com> <4B729412.1000403@marcelruff.info> <20100210130449.GJ24279@metacarta.com> <4B72C535.9040101@marcelruff.info> <4B72DE21.3030902@marcelruff.info> Message-ID: <1326211137483-7172654.post@n2.nabble.com> Hi, You can access the mouse modifier through /window.event/ object. Example: myLayer.events.on({ //... "featureselected": function(evt) { if (window.event.shiftKey) alert("shift pressed"); if (window.event.altKey) alert("alt pressed"); if (window.event.ctrlKey) alert("ctrl pressed"); }, //... }); Good luck, Florenta Poasca ----- Florenta Poasca -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-access-mouse-modifier-during-featureselected-tp4475175p7172654.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/20120110/acc9bbc9/attachment.html From ramotswa at gmail.com Tue Jan 10 11:19:16 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Tue Jan 10 11:19:41 2012 Subject: [OpenLayers-Users] Add layers to Select control In-Reply-To: References: Message-ID: Works great. Thanks. On 10 January 2012 14:17, Andreas Hocevar wrote: > Try > > selectControl.setLayer((selectControl.layers||selectControl.layer).concat(newLayer)); > > where newLayer is the layer you want to add. > > Andreas. > > On Tue, Jan 10, 2012 at 2:42 PM, Tobias Reinicke wrote: >> Hello All, >> >> Is there a way I can add a layer to the select control without >> overriding any existing layer (as selectControl.setLayer() would do?) >> >> Thanks >> >> Toby >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. From ahocevar at opengeo.org Tue Jan 10 11:38:52 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 10 11:39:33 2012 Subject: [OpenLayers-Users] moving features symbolizer In-Reply-To: <1326209574646-7172557.post@n2.nabble.com> References: <1326209574646-7172557.post@n2.nabble.com> Message-ID: If I remember correctly, this was fixed a while ago. Which version of OpenLayers are you using, and on which browser? Andreas. On Tue, Jan 10, 2012 at 4:32 PM, dominik wrote: > If i change a features symbolizer angel, and position. > How do i make the changes visible on the layer? > > If i just call drawFeature, or redraw layer, the old icons stay on the > map..... it's getting a mess. > > Do i really have to remove and than add the features every time i edit its > attributes? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/moving-features-symbolizer-tp7172557p7172557.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From awmlamp at yahoo.com Tue Jan 10 16:32:17 2012 From: awmlamp at yahoo.com (GeoGEOrge) Date: Tue Jan 10 16:32:28 2012 Subject: [OpenLayers-Users] cant select vector feature under label in IE8 Message-ID: <1326231137567-7173892.post@n2.nabble.com> I have a WFS vector layer with a style/stylemap that defines a label. If I try and select a feature that is under a label in IE8, nothing happens. When I do the same in Firefox 9, the feature gets selected. I am using OpenLayers 2.11 and GeoServer 2.1.2 Anyone else run into this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/cant-select-vector-feature-under-label-in-IE8-tp7173892p7173892.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From chris at windsorsolutions.com Tue Jan 10 19:44:05 2012 From: chris at windsorsolutions.com (crb) Date: Tue Jan 10 19:44:49 2012 Subject: [OpenLayers-Users] markers in vector layer not displaying Message-ID: <1326242645639-7174448.post@n2.nabble.com> I'm having a problem displaying markers in a vector layer. If I change my styleMap to be default OL graphics (and not markers) then it works fine. When my styleMap is the marker styleMap, if I view the properties for my map.layers.layer.styleMap.styles.default.rules.0.symbolizer, the value of 'externalGraphic' is correct. And in fact, as a troubleshooting option I used the fully-qualified URL to the graphic file and that same URL displays fine in a browser. The features in my layer are all using a renderIntent of 'default'. I've also set the graphicZIndex on my styleMap to 100, but still no markers (in IE, FF and Chrome). Here is the code in the order executed: -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/markers-in-vector-layer-not-displaying-tp7174448p7174448.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Behrmann at fastgmbh.de Wed Jan 11 04:55:30 2012 From: Behrmann at fastgmbh.de (Tilo Behrmann) Date: Wed Jan 11 05:08:36 2012 Subject: [OpenLayers-Users] left click Lost Message-ID: <000d01ccd047$27c8aca0$775a05e0$@de> Hi @ all, Mit freundlichen Gr??en, Tilo Behrmann Dipl.-Inform.(FH) -------------------------------------------- F.A.S.T. GmbH B?ssingerstr. 36 D-74243 Langenbrettach -------------------------------------------- Tel.: 07946-92100-25 Fax.: 07946-92100-7153 E-Mail: Behrmann@Fastgmbh.de Handelsregister: Stuttgart, HRB 104629 Gesch?ftsf?hrer: R.Riehle, H.-P. Karle ***************************************************************** "This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently." From Behrmann at fastgmbh.de Wed Jan 11 05:10:59 2012 From: Behrmann at fastgmbh.de (Tilo Behrmann) Date: Wed Jan 11 05:11:39 2012 Subject: [OpenLayers-Users] Left click lost Message-ID: <000e01ccd049$517ba730$f472f590$@de> Hi @ all, I'm new on this list and the developing with openlayer. I hope, that list is the right way to get a solution for my problem. I have take a look on many other list, for this theme, but i hope the fastes way for a solution is, to get the information from the developers. Ok, i use the version 2.11 of OpenLayer on windows XP in a MS Internetexplorer version 8. My problem is, after i use the "OpenLayers.Control.DragFeature" in my map, to move my POI, the left click get lost and the "OpenLayers.Control.SelectFeature" can't catch them. Exactly the "clickFeature" in the "OpenLayers.Control.SelectFeature" is not called and i get a square as mouse pointer? Has anyone a idea where is the error?? Thanking you in anticipation, Tilo From ramotswa at gmail.com Wed Jan 11 05:34:06 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Wed Jan 11 05:34:36 2012 Subject: [OpenLayers-Users] KML Caching Message-ID: Hello All, I know this topic has been thoroughly discussed, but bear with me. I have a kml layer with the url appended with a ?random="+Math.random(); The kml also has a refresh strategy. The kml file is on the web server and is updated periodically by another process, but the name always renames the same. What I'm seeing is that the random number isn't changing. Should the refresh strategy do this? Do I need to destroy the layer and recreate it in another way to flush it out? Regards, Toby From relicary at gmail.com Wed Jan 11 06:48:12 2012 From: relicary at gmail.com (Tremal) Date: Wed Jan 11 06:48:30 2012 Subject: [OpenLayers-Users] RE: WMS getFeatureInfo not throwing query requests In-Reply-To: <000301cb9c42$fcec4bb0$f6c4e310$@es> References: <001101cb9bb3$c6b87620$54296260$@es> <000301cb9c42$fcec4bb0$f6c4e310$@es> Message-ID: <1326282492965-7175898.post@n2.nabble.com> Hi manu, I have the same problem but I can't resolve. Finally do you achieve to solve it? Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-getFeatureInfo-not-throwing-query-requests-tp5836204p7175898.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From dominik.acc at web.de Wed Jan 11 07:15:04 2012 From: dominik.acc at web.de (dominik) Date: Wed Jan 11 07:16:00 2012 Subject: [OpenLayers-Users] Re: moving features symbolizer In-Reply-To: References: <1326209574646-7172557.post@n2.nabble.com> Message-ID: <1326284104652-7175962.post@n2.nabble.com> OL 2.11 and FF 9.0.1 or Chrome16 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/moving-features-symbolizer-tp7172557p7175962.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From relicary at gmail.com Wed Jan 11 07:34:31 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Wed Jan 11 07:34:53 2012 Subject: [OpenLayers-Users] RE: WMS getFeatureInfo not throwing query requests In-Reply-To: <1326282492965-7175898.post@n2.nabble.com> References: <001101cb9bb3$c6b87620$54296260$@es> <000301cb9c42$fcec4bb0$f6c4e310$@es> <1326282492965-7175898.post@n2.nabble.com> Message-ID: Hi solve it! To avoid this error it's important add the 'vendorParams' like this example: info = new OpenLayers.Control.WMSGetFeatureInfo( {url: 'http://localhost:9000/cgi-bin/mapserv.exe', title: 'Identify features by clicking', layers: [Layer1, Layer2], queryVisible: true, *vendorParams: {map: '/ms4w/apps/mapserv-demo/mapfile.map'}*, eventListeners: {'getfeatureinfo': function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud("chiken", map.getLonLatFromPixel(event.xy), null, event.text, null, true));}}); map.addControl(info); info.activate(); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120111/0522a480/attachment.html From rajjad at gmail.com Wed Jan 11 07:35:38 2012 From: rajjad at gmail.com (Imran Rajjad) Date: Wed Jan 11 07:36:00 2012 Subject: [OpenLayers-Users] wfs json layer from geoserver Message-ID: hi list, I am trying to load a WFS layer with json format var wfs = new OpenLayers.Layer.WFS("wfs_layer", "http://server:port/geoserver/wfs", {typename: 'topp:test_layer', maxfeatures: 200, outputformat: "json"}, { featureClass: OpenLayers.Feature.WFS, format: "GeoJSON", extractAttributes:true, styleMap:style } ); and the geoserver log shows the below request, but there are no results as per FireBug 11 Jan 17:31:35 INFO [geoserver.wfs] - Request: getFeature handle = null service = WFS version = 1.0.0 baseUrl = http://host:port/geoserver/ providedVersion = 1.0.0 query = [net.opengis.wfs.impl.QueryTypeImpl@b0df53 (group: null, propertyName: null, function: null, filter: [ bbox POLYGON ((68.849301577111 30.391413707024, 68.849301577111 30.5524350196, 69.048093321031 30.5524350196, 69.048093321031 30.391413707024, 68.849301577111 30.391413707024)) ], sortBy: null, featureVersion: null, handle: null, srsName: null, typeName: [{ http://www.openplans.org/topp}test_layer])] maxFeatures = 200 outputFormat = json resultType = results traverseXlinkDepth = null traverseXlinkExpiry = null formatOptions = {} I am not using the Proxy because I think you do not need it incase of JSON. but it seems I am missing something regards,-- I.R -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120111/8b1e38e4/attachment.html From jjquispev at hotmail.com Wed Jan 11 11:27:04 2012 From: jjquispev at hotmail.com (Javier Jose Quispe Varillas) Date: Wed Jan 11 11:27:25 2012 Subject: [OpenLayers-Users] Problems Openlayers with Firefox 9 In-Reply-To: References: Message-ID: Dear Friends I have a problem that can not be due. I have an application that loads fine in IE 8 with WMS layers and WFS Internet and created mine. The problem is that when I try to do with Firefox 9 and Firebug 1.9 displayed none of the WFS layers. Only WMS layer. May be due to this? I say goodbye to waiting for your prompt help. regards Javier Quispe Lima-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120111/3571bfbf/attachment-0001.html From chris at windsorsolutions.com Wed Jan 11 13:52:59 2012 From: chris at windsorsolutions.com (crb) Date: Wed Jan 11 13:53:45 2012 Subject: [OpenLayers-Users] Re: markers in vector layer not displaying In-Reply-To: <1326242645639-7174448.post@n2.nabble.com> References: <1326242645639-7174448.post@n2.nabble.com> Message-ID: <1326307979070-7177362.post@n2.nabble.com> Figured this out. It was the way I was creating my vector features (which I just noticed was the only part of my code that I didn't include in my original post). Basically the feature properties were applied directly to the feature object instead of to the feature.attributes object, and the styleMap rules look at feature.attributes.property. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/markers-in-vector-layer-not-displaying-tp7174448p7177362.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From vbokin at gmail.com Wed Jan 11 14:42:40 2012 From: vbokin at gmail.com (Vadim Bokin) Date: Wed Jan 11 14:42:54 2012 Subject: [OpenLayers-Users] OpenLayers polygon fill on IE has black shading after setting opacity Message-ID: <1326310960520-7177631.post@n2.nabble.com> I apologize up front, but this is a cross-post from gis.stackexchange. I asked the question there, w/o much response, so I think this may be an OL bug rather than a "how do I use it" question. I'm going to duplicate the post here and also available at http://gis.stackexchange.com/questions/18677/openlayers-polygon-fill-on-ie-has-black-shading ---- I have an odd problem on with OpenLayers on IE6, IE7 and IE8. A newly drawn polygon has odd black shading. In fact, even the line (stroke) has the same black outline. Works great in Firefox, Chrome, Safari and even IE9. I've tried everything from creating my own stylemap and symbolizers, to removing all styles and using default layer, and it still has a problem. And to add to the puzzle, if you draw a second feature and intersect with the first, the intersected area has *perfect* colorization/rendering. I've tried changing the basic style to have a different color (say blue) but then the color is again the base blue plus the black shading/fill attached to it. http://osgeo-org.1803224.n2.nabble.com/file/n7177631/Uk1KH.png Have run the basic drawing example, http://www.openlayers.org/dev/examples/draw-feature.html and it works just fine on all browsers. http://osgeo-org.1803224.n2.nabble.com/file/n7177631/w5HLA.png --- Edit 1/10 5p PST I was finally able to create a stripped-down sample that reproduce the error. I wrote a page that accepts a URL param to enable the bug, and it'll be broken in IE8,7,and 6. All you have to do is draw a polygon, and you'll see that it comes out black http://dl.dropbox.com/u/47684/nc4/debug/RenderTest.html?break=1 And here's the source: As you can see, just setting the layer OPACITY will break it. And this actually breaks on IE6 and 7. It works on 8, but I have compatibility mode set to 7, so yes that makes it break on 8. Why setting opacity is breaking? I've traced the code down to `Util.js` and the `modifyDOMElement` function, and it *looks* to be ok. But... ? Thank you. -Vadim -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-polygon-fill-on-IE-has-black-shading-after-setting-opacity-tp7177631p7177631.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Thu Jan 12 05:12:42 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 12 05:13:43 2012 Subject: [OpenLayers-Users] OpenLayers polygon fill on IE has black shading after setting opacity In-Reply-To: <1326310960520-7177631.post@n2.nabble.com> References: <1326310960520-7177631.post@n2.nabble.com> Message-ID: Hi, this is a bug in IE, and there doesn't seem to be a known workaround: http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/c2cc8d05-cffd-4454-900f-785e5ce78919 Andreas. On Wed, Jan 11, 2012 at 8:42 PM, Vadim Bokin wrote: > I apologize up front, but this is a cross-post from gis.stackexchange. ?I > asked the question there, w/o much response, so I think this may be an OL > bug rather than a "how do I use it" question. ?I'm going to duplicate the > post here and also available at > http://gis.stackexchange.com/questions/18677/openlayers-polygon-fill-on-ie-has-black-shading > > ---- > > I have an odd problem on with OpenLayers on IE6, IE7 and IE8. ?A newly drawn > polygon has odd black shading. ?In fact, even the line (stroke) has the same > black outline. > > Works great in Firefox, Chrome, Safari and even IE9. > > I've tried everything from creating my own stylemap and symbolizers, to > removing all styles and using default layer, and it still has a problem. > > And to add to the puzzle, if you draw a second feature and intersect with > the first, the intersected area has *perfect* colorization/rendering. > > I've tried changing the basic style to have a different color (say blue) but > then the color is again the base blue plus the black shading/fill attached > to it. > > http://osgeo-org.1803224.n2.nabble.com/file/n7177631/Uk1KH.png > > Have run the basic drawing example, > http://www.openlayers.org/dev/examples/draw-feature.html and it works just > fine on all browsers. > > http://osgeo-org.1803224.n2.nabble.com/file/n7177631/w5HLA.png > > --- > > Edit 1/10 5p PST > > I was finally able to create a stripped-down sample that reproduce the > error. > > I wrote a page that accepts a URL param to enable the bug, and it'll be > broken in IE8,7,and 6. ?All you have to do is draw a polygon, and you'll see > that it comes out black > > http://dl.dropbox.com/u/47684/nc4/debug/RenderTest.html?break=1 > > And here's the source: > > > > As you can see, just setting the layer OPACITY will break it. And this > actually breaks on IE6 and 7. It works on 8, but I have compatibility mode > set to 7, so yes that makes it break on 8. > > Why setting opacity is breaking? ?I've traced the code down to `Util.js` and > the `modifyDOMElement` function, and it *looks* to be ok. ?But... ? > > Thank you. > > -Vadim > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-polygon-fill-on-IE-has-black-shading-after-setting-opacity-tp7177631p7177631.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From vbokin at gmail.com Thu Jan 12 11:46:47 2012 From: vbokin at gmail.com (Vadim Bokin) Date: Thu Jan 12 11:46:53 2012 Subject: [OpenLayers-Users] Re: OpenLayers polygon fill on IE has black shading after setting opacity In-Reply-To: References: <1326310960520-7177631.post@n2.nabble.com> Message-ID: <1326386807483-7180875.post@n2.nabble.com> I found a similar ticket in OL's stack as well. I'm guessing it's the same issue. http://trac.osgeo.org/openlayers/ticket/2810 And it'll probably be left unresolved if it's in the guts of IE and not OL. Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Polygon-fill-on-IE-has-black-shading-after-setting-opacity-tp7177631p7180875.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From list at rdewit.net Thu Jan 12 19:18:09 2012 From: list at rdewit.net (Roald de Wit) Date: Thu Jan 12 19:24:31 2012 Subject: [OpenLayers-Users] mouseover marker delay In-Reply-To: References: Message-ID: <4F0F7841.90804@rdewit.net> Hi, This example may help you: http://openlayers.org/dev/examples/hover-handler.html BTW, it's recommended not to use Markers but to use a Vector layer with your features styled with an externalGraphic. Example here: http://openlayers.org/dev/examples/marker-shadow.html Cheers, Roald On 10/01/12 07:42, Valeria Mu?oz wrote: > HI! > > I show a popup when mouse over a marker but i need add a delay to > that... almost 1 second > > my code: > > marker.events.register('mouseover', marker, function(evt) > {addPopUp(json.LATITUD,json.LONGITUD,"  "+json.NOMBRE+""); > OpenLayers.Event.stop(evt); }); > > RG > Valeria > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/67d42c00/attachment.html From heezen at covadis.nl Fri Jan 13 05:34:29 2012 From: heezen at covadis.nl (Lucas Heezen - Covadis) Date: Fri Jan 13 05:35:15 2012 Subject: [OpenLayers-Users] Openlayers WMS / WMTS 28992 offset Message-ID: <3A78B12FA8F4284B8DAEF0F28623D26D108590@ELAN.covadis.local> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 2140 bytes Desc: image002.gif Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/38e07934/image002-0001.gif From vrbikdan at gmail.com Fri Jan 13 06:00:09 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Fri Jan 13 06:00:29 2012 Subject: [OpenLayers-Users] openRouteService and openlayers Message-ID: <1326452409079-7183673.post@n2.nabble.com> Hi, I'm trying to create map with simple route planner. I need only to draw route between two places (which coordinates I know) without text information or anything. I find openrouteservice.org so I would like to use it in my map. My idea was XMLHttpRequest, but openRouteService doesn't generate XML. Do you have any idea how to use this service in my map? Is it evan possible? Or any other idea how to create route planner in OL? :) Thanks a lot Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openRouteService-and-openlayers-tp7183673p7183673.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gerome.bracquemont at gmail.com Fri Jan 13 08:02:27 2012 From: gerome.bracquemont at gmail.com (Gerome Bracquemont) Date: Fri Jan 13 08:02:50 2012 Subject: [OpenLayers-Users] ol4jsf proxy Message-ID: Hy all, I've tried to install the ol4jsf proxy but i got some issues Geoserver port : 176.31.233.151:8080 ol4jsf-proxy.xml: Development Environment. http://176.31.233.151:8080/geoserver/wms admin geoserver Geoserver strats correctly. When I try the get capabilties : http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities Geoserver returns me an error 400. I would like to know what is the url to use the proxy ? thanks a lot in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/b098bcf5/attachment.html From ranomail at gmail.com Fri Jan 13 08:09:38 2012 From: ranomail at gmail.com (Robert Anderson) Date: Fri Jan 13 08:10:29 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: Hi, Are you using a JEE 6 server? otherwise, you have to add the servlet mapping in web.xml: OL4JSFProxy org.ol4jsf.proxy.servlet.OL4JSFProxy 0 Best regards, Robert On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < gerome.bracquemont@gmail.com> wrote: > Hy all, > > I've tried to install the ol4jsf proxy but i got some issues > > Geoserver port : 176.31.233.151:8080 > > ol4jsf-proxy.xml: > > > > > Development Environment. > > > http://176.31.233.151:8080/geoserver/wms > > admin > geoserver > > > > > > > Geoserver strats correctly. > > When I try the get capabilties : > http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities > > Geoserver returns me an error 400. > I would like to know what is the url to use the proxy ? > > thanks a lot in advance > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/2433017b/attachment.html From gerome.bracquemont at gmail.com Fri Jan 13 08:16:16 2012 From: gerome.bracquemont at gmail.com (Gerome Bracquemont) Date: Fri Jan 13 08:16:33 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: I'm using geoserver, i've alredy added OL4JSFProxy org.ol4jsf.proxy.servlet.OL4JSFProxy 0 OL4JSFProxy /OL4JSFProxy/* in my web.xml I can see it starting in the console. but Geoserver returns me an error 400 for the getcapabilities request 2012/1/13 Robert Anderson > Hi, > > Are you using a JEE 6 server? otherwise, you have to add the servlet > mapping in web.xml: > > > OL4JSFProxy > org.ol4jsf.proxy.servlet.OL4JSFProxy > 0 > > > Best regards, > > Robert > > On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < > gerome.bracquemont@gmail.com> wrote: > >> Hy all, >> >> I've tried to install the ol4jsf proxy but i got some issues >> >> Geoserver port : 176.31.233.151:8080 >> >> ol4jsf-proxy.xml: >> >> >> >> >> Development Environment. >> >> >> http://176.31.233.151:8080/geoserver/wms >> >> admin >> geoserver >> >> >> >> >> >> >> Geoserver strats correctly. >> >> When I try the get capabilties : >> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >> >> Geoserver returns me an error 400. >> I would like to know what is the url to use the proxy ? >> >> thanks a lot in advance >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/2a7d3d66/attachment-0001.html From ranomail at gmail.com Fri Jan 13 08:26:42 2012 From: ranomail at gmail.com (Robert Anderson) Date: Fri Jan 13 08:26:50 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: Ok, Which ol4jsf version are you using? On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < gerome.bracquemont@gmail.com> wrote: > I'm using geoserver, > i've alredy added > > > OL4JSFProxy > org.ol4jsf.proxy.servlet.OL4JSFProxy > 0 > > > > OL4JSFProxy > /OL4JSFProxy/* > > > in my web.xml > > I can see it starting in the console. but Geoserver returns me an error > 400 for the getcapabilities request > > 2012/1/13 Robert Anderson > >> Hi, >> >> Are you using a JEE 6 server? otherwise, you have to add the servlet >> mapping in web.xml: >> >> >> OL4JSFProxy >> >> org.ol4jsf.proxy.servlet.OL4JSFProxy >> 0 >> >> >> Best regards, >> >> Robert >> >> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >> gerome.bracquemont@gmail.com> wrote: >> >>> Hy all, >>> >>> I've tried to install the ol4jsf proxy but i got some issues >>> >>> Geoserver port : 176.31.233.151:8080 >>> >>> ol4jsf-proxy.xml: >>> >>> >>> >>> >>> Development Environment. >>> >>> >>> http://176.31.233.151:8080/geoserver/wms >>> >>> admin >>> geoserver >>> >>> >>> >>> >>> >>> >>> Geoserver strats correctly. >>> >>> When I try the get capabilties : >>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>> >>> Geoserver returns me an error 400. >>> I would like to know what is the url to use the proxy ? >>> >>> thanks a lot in advance >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/7b1757eb/attachment.html From gerome.bracquemont at gmail.com Fri Jan 13 08:30:20 2012 From: gerome.bracquemont at gmail.com (Gerome Bracquemont) Date: Fri Jan 13 08:30:41 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: I use this one : ol4jsf-core-2.2.jar 2012/1/13 Robert Anderson > Ok, > > Which ol4jsf version are you using? > > > > > On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < > gerome.bracquemont@gmail.com> wrote: > >> I'm using geoserver, >> i've alredy added >> >> >> OL4JSFProxy >> >> org.ol4jsf.proxy.servlet.OL4JSFProxy >> 0 >> >> >> >> OL4JSFProxy >> /OL4JSFProxy/* >> >> >> in my web.xml >> >> I can see it starting in the console. but Geoserver returns me an error >> 400 for the getcapabilities request >> >> 2012/1/13 Robert Anderson >> >>> Hi, >>> >>> Are you using a JEE 6 server? otherwise, you have to add the servlet >>> mapping in web.xml: >>> >>> >>> OL4JSFProxy >>> >>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>> 0 >>> >>> >>> Best regards, >>> >>> Robert >>> >>> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >>> gerome.bracquemont@gmail.com> wrote: >>> >>>> Hy all, >>>> >>>> I've tried to install the ol4jsf proxy but i got some issues >>>> >>>> Geoserver port : 176.31.233.151:8080 >>>> >>>> ol4jsf-proxy.xml: >>>> >>>> >>>> >>>> >>>> Development Environment. >>>> >>>> >>>> http://176.31.233.151:8080/geoserver/wms >>>> >>>> admin >>>> geoserver >>>> >>>> >>>> >>>> >>>> >>>> >>>> Geoserver strats correctly. >>>> >>>> When I try the get capabilties : >>>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>>> >>>> Geoserver returns me an error 400. >>>> I would like to know what is the url to use the proxy ? >>>> >>>> thanks a lot in advance >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/f467337a/attachment-0001.html From David at itbeyond.com.au Fri Jan 13 08:32:41 2012 From: David at itbeyond.com.au (David Martin) Date: Fri Jan 13 08:33:12 2012 Subject: [OpenLayers-Users] IE 8/9 Click Handler Single Only triggered by Double Message-ID: <9C37154DC7C8074FBC34214363755B7C6593E4@ITB-SVR-01.itbeyond.local> I have been bashing my head against the wall and I think the problem is in the Click Handler. I am using 2.11 but the problem also is visible in http://openlayers.org/dev/examples/click-handler.html - using IE if you select single only you get a double click event showing as a click - I think this is wrong and it was not the way it used to be in versions past. Has an issue resurfaced or do I need to do something else to get double click not triggering a single click in IE. I am using single to run an AJAX query to return features at the click and I also use the Navigation control to handle double (left & right ) zoom in/out. I would have thought this typical so I am not sure why my double click in IE is triggering a DB query. Any help would be appreciated. David Martin This message may contain privileged or confidential information and is intended only for the individual named. If you are not the named addressee you should not disclose, disseminate, distribute or copy this e-mail. If you have received this e-mail by mistake please notify the sender immediately by e-mail and delete this e-mail from your system. You should rely on your own virus checking programs and procedures for checking any attachments. Please advise us if you wish your name and e-mail address to be removed from our database. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/5c17a28d/attachment.html From ranomail at gmail.com Fri Jan 13 08:34:27 2012 From: ranomail at gmail.com (Robert Anderson) Date: Fri Jan 13 08:35:00 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: I'll test and give a feedback soon. On Fri, Jan 13, 2012 at 10:30 AM, Gerome Bracquemont < gerome.bracquemont@gmail.com> wrote: > I use this one : > ol4jsf-core-2.2.jar > > > 2012/1/13 Robert Anderson > >> Ok, >> >> Which ol4jsf version are you using? >> >> >> >> >> On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < >> gerome.bracquemont@gmail.com> wrote: >> >>> I'm using geoserver, >>> i've alredy added >>> >>> >>> OL4JSFProxy >>> >>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>> 0 >>> >>> >>> >>> OL4JSFProxy >>> /OL4JSFProxy/* >>> >>> >>> in my web.xml >>> >>> I can see it starting in the console. but Geoserver returns me an error >>> 400 for the getcapabilities request >>> >>> 2012/1/13 Robert Anderson >>> >>>> Hi, >>>> >>>> Are you using a JEE 6 server? otherwise, you have to add the servlet >>>> mapping in web.xml: >>>> >>>> >>>> OL4JSFProxy >>>> >>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>> 0 >>>> >>>> >>>> Best regards, >>>> >>>> Robert >>>> >>>> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >>>> gerome.bracquemont@gmail.com> wrote: >>>> >>>>> Hy all, >>>>> >>>>> I've tried to install the ol4jsf proxy but i got some issues >>>>> >>>>> Geoserver port : 176.31.233.151:8080 >>>>> >>>>> ol4jsf-proxy.xml: >>>>> >>>>> >>>>> >>>>> >>>>> Development Environment. >>>>> >>>>> >>>>> http://176.31.233.151:8080/geoserver/wms >>>>> >>>>> admin >>>>> geoserver >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Geoserver strats correctly. >>>>> >>>>> When I try the get capabilties : >>>>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>>>> >>>>> Geoserver returns me an error 400. >>>>> I would like to know what is the url to use the proxy ? >>>>> >>>>> thanks a lot in advance >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/4ae3e00a/attachment.html From gerome.bracquemont at gmail.com Fri Jan 13 08:36:07 2012 From: gerome.bracquemont at gmail.com (Gerome Bracquemont) Date: Fri Jan 13 08:36:46 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: ok thanks a lot I'm waiting for earing from you soon 2012/1/13 Robert Anderson > I'll test and give a feedback soon. > > > On Fri, Jan 13, 2012 at 10:30 AM, Gerome Bracquemont < > gerome.bracquemont@gmail.com> wrote: > >> I use this one : >> ol4jsf-core-2.2.jar >> >> >> 2012/1/13 Robert Anderson >> >>> Ok, >>> >>> Which ol4jsf version are you using? >>> >>> >>> >>> >>> On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < >>> gerome.bracquemont@gmail.com> wrote: >>> >>>> I'm using geoserver, >>>> i've alredy added >>>> >>>> >>>> OL4JSFProxy >>>> >>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>> 0 >>>> >>>> >>>> >>>> OL4JSFProxy >>>> /OL4JSFProxy/* >>>> >>>> >>>> in my web.xml >>>> >>>> I can see it starting in the console. but Geoserver returns me an >>>> error 400 for the getcapabilities request >>>> >>>> 2012/1/13 Robert Anderson >>>> >>>>> Hi, >>>>> >>>>> Are you using a JEE 6 server? otherwise, you have to add the servlet >>>>> mapping in web.xml: >>>>> >>>>> >>>>> OL4JSFProxy >>>>> >>>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>>> 0 >>>>> >>>>> >>>>> Best regards, >>>>> >>>>> Robert >>>>> >>>>> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >>>>> gerome.bracquemont@gmail.com> wrote: >>>>> >>>>>> Hy all, >>>>>> >>>>>> I've tried to install the ol4jsf proxy but i got some issues >>>>>> >>>>>> Geoserver port : 176.31.233.151:8080 >>>>>> >>>>>> ol4jsf-proxy.xml: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Development Environment. >>>>>> >>>>>> >>>>>> http://176.31.233.151:8080/geoserver/wms >>>>>> >>>>>> admin >>>>>> geoserver >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Geoserver strats correctly. >>>>>> >>>>>> When I try the get capabilties : >>>>>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>>>>> >>>>>> Geoserver returns me an error 400. >>>>>> I would like to know what is the url to use the proxy ? >>>>>> >>>>>> thanks a lot in advance >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/b2f89e88/attachment-0001.html From ranomail at gmail.com Fri Jan 13 10:17:22 2012 From: ranomail at gmail.com (Robert Anderson) Date: Fri Jan 13 10:17:44 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: Please, Try with this version: http://java.net/projects/ol4jsf/downloads/download/ol4jsf-core-2.2.1.jar Thanks, Robert On Fri, Jan 13, 2012 at 10:36 AM, Gerome Bracquemont < gerome.bracquemont@gmail.com> wrote: > ok thanks a lot > I'm waiting for earing from you soon > > > 2012/1/13 Robert Anderson > >> I'll test and give a feedback soon. >> >> >> On Fri, Jan 13, 2012 at 10:30 AM, Gerome Bracquemont < >> gerome.bracquemont@gmail.com> wrote: >> >>> I use this one : >>> ol4jsf-core-2.2.jar >>> >>> >>> 2012/1/13 Robert Anderson >>> >>>> Ok, >>>> >>>> Which ol4jsf version are you using? >>>> >>>> >>>> >>>> >>>> On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < >>>> gerome.bracquemont@gmail.com> wrote: >>>> >>>>> I'm using geoserver, >>>>> i've alredy added >>>>> >>>>> >>>>> OL4JSFProxy >>>>> >>>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>>> 0 >>>>> >>>>> >>>>> >>>>> OL4JSFProxy >>>>> /OL4JSFProxy/* >>>>> >>>>> >>>>> in my web.xml >>>>> >>>>> I can see it starting in the console. but Geoserver returns me an >>>>> error 400 for the getcapabilities request >>>>> >>>>> 2012/1/13 Robert Anderson >>>>> >>>>>> Hi, >>>>>> >>>>>> Are you using a JEE 6 server? otherwise, you have to add the servlet >>>>>> mapping in web.xml: >>>>>> >>>>>> >>>>>> OL4JSFProxy >>>>>> >>>>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>>>> 0 >>>>>> >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Robert >>>>>> >>>>>> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >>>>>> gerome.bracquemont@gmail.com> wrote: >>>>>> >>>>>>> Hy all, >>>>>>> >>>>>>> I've tried to install the ol4jsf proxy but i got some issues >>>>>>> >>>>>>> Geoserver port : 176.31.233.151:8080 >>>>>>> >>>>>>> ol4jsf-proxy.xml: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Development Environment. >>>>>>> >>>>>>> >>>>>>> http://176.31.233.151:8080/geoserver/wms >>>>>>> >>>>>>> admin >>>>>>> geoserver >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Geoserver strats correctly. >>>>>>> >>>>>>> When I try the get capabilties : >>>>>>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>>>>>> >>>>>>> Geoserver returns me an error 400. >>>>>>> I would like to know what is the url to use the proxy ? >>>>>>> >>>>>>> thanks a lot in advance >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users@lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/2e8719af/attachment.html From pfischer at proveo.com Fri Jan 13 10:19:07 2012 From: pfischer at proveo.com (Peter) Date: Fri Jan 13 10:19:34 2012 Subject: [OpenLayers-Users] Drawfeature with multiple vector layers Message-ID: <1326467947520-7184326.post@n2.nabble.com> hey guys, i like to draw polygons on a map, but it is important that i have several levels. So my idea was to add a vector layer for each level. to change between the layers i use the " map.removeControl(controls[key]);" function to remove all controls needed for drawing and re-add the controls with the new selected layer. So my problem is now, that all works fine with the initalized layer, but when i change to annother layer it the drawing feature behaves strange and it is not possible to draw new polygons. So please help me how i can use the drawfeature Control with multiple layers. My pseudo Code: //create multiple layers: one for each level var styleMapL1 = new OpenLayers.StyleMap({fillColor: "green"}); vlayer1 = new OpenLayers.Layer.Vector("Layer 1", {styleMap: styleMapL1}); layerArray[1] = vlayer1; var styleMapL2 = new OpenLayers.StyleMap({fillColor: "red"}); vlayer2 = new OpenLayers.Layer.Vector("Layer 2", {styleMap: styleMapL2}); layerArray[2] = vlayer2; var styleMapL3 = new OpenLayers.StyleMap({fillColor: "blue"}); vlayer3 = new OpenLayers.Layer.Vector("Layer 3", {styleMap: styleMapL3}); layerArray[3] = vlayer3; map.addLayers([vlayer1, vlayer2, vlayer3]); this.addControls(3); //this method is called when i want to change the layers function switchControls(layerIndex) { this.removeControls(); this.addControls(layerIndex); } function addControls(layerIndex) { if(layerIndex != null) { var layer = layerArray[layerIndex]; controls = { polygon: new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Polygon) }; for(var key in controls) { map.addControl(controls[key]); controls[key].activate(); } } } function removeControls() { for(var key in controls) { map.removeControl(controls[key]); } } Greetings Peter -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-layers-tp7184326p7184326.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Fri Jan 13 10:46:35 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri Jan 13 10:46:54 2012 Subject: [OpenLayers-Users] Cartographic coordinates with Google Maps Message-ID: <1326469595628-7184427.post@n2.nabble.com> Dear all, Bellow is the code of a simple map using a Google layer with the MousePosition control. Even though I'm passing the 900913 projection for the map projection and the map displayProjection properties the coordinates shown in the MousePosition are Geodetical (lat,lon in degrees) instead of Cartographic (x,y in meters). What am I missing? Thank you, Lu?s function initMap(){ map = new OpenLayers.Map("myMap",{ projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:900913"), units: "m" }); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.LayerSwitcher()); var gphy = new OpenLayers.Layer.Google( "Google Physical", {type: G_PHYSICAL_MAP} ); map.addLayers([gphy]); } -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Cartographic-coordinates-with-Google-Maps-tp7184427p7184427.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gerome.bracquemont at gmail.com Fri Jan 13 11:02:20 2012 From: gerome.bracquemont at gmail.com (Gerome Bracquemont) Date: Fri Jan 13 11:02:38 2012 Subject: [OpenLayers-Users] ol4jsf proxy In-Reply-To: References: Message-ID: I just went to try. It looks to be ok know. Thanks a lot for your responsiveness 2012/1/13 Robert Anderson > Please, > > Try with this version: > http://java.net/projects/ol4jsf/downloads/download/ol4jsf-core-2.2.1.jar > > Thanks, > > Robert > > > On Fri, Jan 13, 2012 at 10:36 AM, Gerome Bracquemont < > gerome.bracquemont@gmail.com> wrote: > >> ok thanks a lot >> I'm waiting for earing from you soon >> >> >> 2012/1/13 Robert Anderson >> >>> I'll test and give a feedback soon. >>> >>> >>> On Fri, Jan 13, 2012 at 10:30 AM, Gerome Bracquemont < >>> gerome.bracquemont@gmail.com> wrote: >>> >>>> I use this one : >>>> ol4jsf-core-2.2.jar >>>> >>>> >>>> 2012/1/13 Robert Anderson >>>> >>>>> Ok, >>>>> >>>>> Which ol4jsf version are you using? >>>>> >>>>> >>>>> >>>>> >>>>> On Fri, Jan 13, 2012 at 10:16 AM, Gerome Bracquemont < >>>>> gerome.bracquemont@gmail.com> wrote: >>>>> >>>>>> I'm using geoserver, >>>>>> i've alredy added >>>>>> >>>>>> >>>>>> OL4JSFProxy >>>>>> >>>>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>>>> 0 >>>>>> >>>>>> >>>>>> >>>>>> OL4JSFProxy >>>>>> /OL4JSFProxy/* >>>>>> >>>>>> >>>>>> in my web.xml >>>>>> >>>>>> I can see it starting in the console. but Geoserver returns me an >>>>>> error 400 for the getcapabilities request >>>>>> >>>>>> 2012/1/13 Robert Anderson >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Are you using a JEE 6 server? otherwise, you have to add the servlet >>>>>>> mapping in web.xml: >>>>>>> >>>>>>> >>>>>>> OL4JSFProxy >>>>>>> >>>>>>> org.ol4jsf.proxy.servlet.OL4JSFProxy >>>>>>> 0 >>>>>>> >>>>>>> >>>>>>> Best regards, >>>>>>> >>>>>>> Robert >>>>>>> >>>>>>> On Fri, Jan 13, 2012 at 10:02 AM, Gerome Bracquemont < >>>>>>> gerome.bracquemont@gmail.com> wrote: >>>>>>> >>>>>>>> Hy all, >>>>>>>> >>>>>>>> I've tried to install the ol4jsf proxy but i got some issues >>>>>>>> >>>>>>>> Geoserver port : 176.31.233.151:8080 >>>>>>>> >>>>>>>> ol4jsf-proxy.xml: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Development Environment. >>>>>>>> >>>>>>>> >>>>>>>> http://176.31.233.151:8080/geoserver/wms >>>>>>>> >>>>>>>> admin >>>>>>>> geoserver >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Geoserver strats correctly. >>>>>>>> >>>>>>>> When I try the get capabilties : >>>>>>>> http://176.31.233.151:8080/geoserver/OL4JSFProxy/wms?service=WMS&request=GetCapabilities >>>>>>>> >>>>>>>> Geoserver returns me an error 400. >>>>>>>> I would like to know what is the url to use the proxy ? >>>>>>>> >>>>>>>> thanks a lot in advance >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list >>>>>>>> Users@lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Users mailing list >>>>>>> Users@lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/786ff6fd/attachment-0001.html From David at itbeyond.com.au Thu Jan 12 23:58:51 2012 From: David at itbeyond.com.au (David Martin) Date: Fri Jan 13 13:13:25 2012 Subject: [OpenLayers-Users] IE 8/9 Click Handler Single Only triggered by Double Message-ID: <9C37154DC7C8074FBC34214363755B7C6593DA@ITB-SVR-01.itbeyond.local> I have been bashing my head against the wall and I think the problem is in the Click Handler. I am using 2.11 but the problem also is visible in http://openlayers.org/dev/examples/click-handler.html - using IE if you select single only you get a double click event showing as a click - I think this is wrong and it was not the way it used to be in versions past. Has an issue resurfaced or do I need to do something else to get double click not triggering a single click in IE. I am using single to run an AJAX query to return features at the click and I also use the Navigation control to handle double (left & right ) zoom in/out. I would have thought this typical so I am not sure why my double click in IE is triggering a DB query. Any help would be appreciated. David Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120113/602f7d90/attachment.html From arnd.wippermann at web.de Fri Jan 13 13:38:24 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri Jan 13 13:39:12 2012 Subject: AW: [OpenLayers-Users] Drawfeature with multiple vector layers In-Reply-To: <1326467947520-7184326.post@n2.nabble.com> References: <1326467947520-7184326.post@n2.nabble.com> Message-ID: <824DFDC29B084223AFC924725729523E@pcawh2> Hi, I use controls[i].destroy() to get rid of the controls and add them to another layer. Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Peter Gesendet: Freitag, 13. Januar 2012 16:19 An: users@openlayers.org Betreff: [OpenLayers-Users] Drawfeature with multiple vector layers hey guys, i like to draw polygons on a map, but it is important that i have several levels. So my idea was to add a vector layer for each level. to change between the layers i use the " map.removeControl(controls[key]);" function to remove all controls needed for drawing and re-add the controls with the new selected layer. So my problem is now, that all works fine with the initalized layer, but when i change to annother layer it the drawing feature behaves strange and it is not possible to draw new polygons. So please help me how i can use the drawfeature Control with multiple layers. My pseudo Code: //create multiple layers: one for each level var styleMapL1 = new OpenLayers.StyleMap({fillColor: "green"}); vlayer1 = new OpenLayers.Layer.Vector("Layer 1", {styleMap: styleMapL1}); layerArray[1] = vlayer1; var styleMapL2 = new OpenLayers.StyleMap({fillColor: "red"}); vlayer2 = new OpenLayers.Layer.Vector("Layer 2", {styleMap: styleMapL2}); layerArray[2] = vlayer2; var styleMapL3 = new OpenLayers.StyleMap({fillColor: "blue"}); vlayer3 = new OpenLayers.Layer.Vector("Layer 3", {styleMap: styleMapL3}); layerArray[3] = vlayer3; map.addLayers([vlayer1, vlayer2, vlayer3]); this.addControls(3); //this method is called when i want to change the layers function switchControls(layerIndex) { this.removeControls(); this.addControls(layerIndex); } function addControls(layerIndex) { if(layerIndex != null) { var layer = layerArray[layerIndex]; controls = { polygon: new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Polygon) }; for(var key in controls) { map.addControl(controls[key]); controls[key].activate(); } } } function removeControls() { for(var key in controls) { map.removeControl(controls[key]); } } Greetings Peter -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-laye rs-tp7184326p7184326.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From punk.kish at gmail.com Fri Jan 13 15:02:34 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 13 15:02:53 2012 Subject: [OpenLayers-Users] steps to zoom and center on the selected polygon Message-ID: <0C3DFBD9-3168-435C-9C7A-528D870069D2@gmail.com> I am trying to accomplish the following, and would appreciate advice on how to go about doing it -- 1. the user click,click,click... double-clicks to create a polygon; 2. the map zooms to the polygon so that the polygon occupies the left half of the browser window. Here is my attempt to draw the interface -- +----------------------------------+ | . | | . | | . | | . | | . | | A . B | | . | | . | | . | | . | +----------------------------------+ so, once a polygon is drawn, the map zooms so the drawn polygon is centered to its full extent within A above. Suggestions welcome. Many thanks, -- Puneet Kishor From csabbey at gmail.com Fri Jan 13 17:11:58 2012 From: csabbey at gmail.com (geoman) Date: Fri Jan 13 17:12:48 2012 Subject: [OpenLayers-Users] SelectFeature onUnselect called for nested IE elements Message-ID: <1326492718309-7185898.post@n2.nabble.com> Hello, I have a custom popup I'm creating that has some buttons on it - I want the user to be able to hover over my popup and push a button. This works great in Chrome, but nested elements in this popup in IE cause the unSelect function to be called, closing the popup. I tried to check if the mouse is within the popup with some additional event handling, but in addition to being a messy solution, this wasn't working (the events weren't firing and/or unSelect wasn't being called after the mouse really left the popup). What is the correct way to handle this? Thanks in advance, Craig -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SelectFeature-onUnselect-called-for-nested-IE-elements-tp7185898p7185898.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Fri Jan 13 17:48:57 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri Jan 13 17:49:25 2012 Subject: AW: [OpenLayers-Users] steps to zoom and center on the selected polygon In-Reply-To: <0C3DFBD9-3168-435C-9C7A-528D870069D2@gmail.com> References: <0C3DFBD9-3168-435C-9C7A-528D870069D2@gmail.com> Message-ID: <22534AB9E7DE4CA98F6218D135B2DCA7@pcawh2> Hi, register "featureadded" for the layer and create a zoom function function zoomToLeftHalf(evt) { var arrB = evt.feature.geometry.getBounds().toArray(); var dx = arrB[2]-arrB[0]; var bounds = new OpenLayers.Bounds(arrB[0], arrB[1], arrB[2]+dx, arrB[3]); map.zoomToExtent(bounds); } map.layers[2].events.register("featureadded", map.layers[2], zoomToLeftHalf); Regards, Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Puneet Kishor Gesendet: Freitag, 13. Januar 2012 21:03 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] steps to zoom and center on the selected polygon I am trying to accomplish the following, and would appreciate advice on how to go about doing it -- 1. the user click,click,click... double-clicks to create a polygon; 2. the map zooms to the polygon so that the polygon occupies the left half of the browser window. Here is my attempt to draw the interface -- +----------------------------------+ | . | | . | | . | | . | | . | | A . B | | . | | . | | . | | . | +----------------------------------+ so, once a polygon is drawn, the map zooms so the drawn polygon is centered to its full extent within A above. Suggestions welcome. Many thanks, -- Puneet Kishor_______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From chris.student at web.de Fri Jan 13 20:10:52 2012 From: chris.student at web.de (chris.student) Date: Fri Jan 13 20:11:30 2012 Subject: [OpenLayers-Users] integrate WMTS to jQuery Mobile Message-ID: <1326503452592-7186379.post@n2.nabble.com> -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/integrate-WMTS-to-jQuery-Mobile-tp7186379p7186379.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From punk.kish at gmail.com Fri Jan 13 23:12:45 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Fri Jan 13 23:13:29 2012 Subject: [OpenLayers-Users] steps to zoom and center on the selected polygon In-Reply-To: <22534AB9E7DE4CA98F6218D135B2DCA7@pcawh2> References: <0C3DFBD9-3168-435C-9C7A-528D870069D2@gmail.com> <22534AB9E7DE4CA98F6218D135B2DCA7@pcawh2> Message-ID: <0BDC2F42-834C-47B9-9F49-BF4E5418F23E@gmail.com> On Jan 13, 2012, at 4:48 PM, Arnd Wippermann wrote: > Hi, > > register "featureadded" for the layer and create a zoom function > > function zoomToLeftHalf(evt) > { > var arrB = evt.feature.geometry.getBounds().toArray(); > var dx = arrB[2]-arrB[0]; > var bounds = new OpenLayers.Bounds(arrB[0], arrB[1], arrB[2]+dx, > arrB[3]); > map.zoomToExtent(bounds); > } > map.layers[2].events.register("featureadded", map.layers[2], > zoomToLeftHalf); > Thanks Arnd. This works brilliantly. > > Regards, > Arnd > > -----Urspr?ngliche Nachricht----- > Von: openlayers-users-bounces@lists.osgeo.org > [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Puneet > Kishor > Gesendet: Freitag, 13. Januar 2012 21:03 > An: openlayers-users@lists.osgeo.org > Betreff: [OpenLayers-Users] steps to zoom and center on the selected polygon > > I am trying to accomplish the following, and would appreciate advice on how > to go about doing it -- > > 1. the user click,click,click... double-clicks to create a polygon; > > 2. the map zooms to the polygon so that the polygon occupies the left half > of the browser window. > > Here is my attempt to draw the interface -- > > > +----------------------------------+ > | . | > | . | > | . | > | . | > | . | > | A . B | > | . | > | . | > | . | > | . | > +----------------------------------+ > > so, once a polygon is drawn, the map zooms so the drawn polygon is centered > to its full extent within A above. > > Suggestions welcome. Many thanks, > > -- > Puneet Kishor_______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From charlton at 2creek.com Sat Jan 14 00:01:41 2012 From: charlton at 2creek.com (Charlton Galvarino) Date: Sat Jan 14 00:12:10 2012 Subject: [OpenLayers-Users] with no OpenLayers.Util.onImageLoadError, TileCache wrapDateLine has pink tiles Message-ID: <97FDCEA6D905154D94E20D02312C8A310D92F37869@mse18be1.mse18.exchange.ms> Hi, all. I just grabbed the latest and greatest OL from github and see that OpenLayers.Util.onImageLoadError is no more. One thing I noticed off the bat is that my TileCache layers (wrapDateLine : true) show pink tiles outside of the usual -180,-90,180,90 bounds. That used to be handled by the onImageLoadError, but I'm not sure where to look now. I can reproduce this behavior in the tilecache.html example by commenting out the map's resolutions (so you can zoom way out) and adding wrapDateLine : true to the layer's config. Not having the wrapDateLine works as advertised . . . no pink tiles. But having it seems to break something. Am I missing something obvious? TIA. Charlton Galvarino 1 (803) 233-6205 : voice 1 (803) 223-9579 : fax charlton@2creek.com P.O. Box 50960 Columbia, SC 29250 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120114/113dcc2c/attachment-0001.html From fatzopilot at gmx.net Sat Jan 14 10:22:27 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Sat Jan 14 10:22:54 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: References: <1322754379099-7050997.post@n2.nabble.com> Message-ID: <1326554547980-7187723.post@n2.nabble.com> Hey, Thanks for the info, it seems to work quite well (a minor problem are different output sizes in each browser if size is not expicitly specified) except for IE9 where the icon just does not show up. I modified the GwtOpenLayersShowcase Labeled Features showcase for testing (it uses a vector layer). Since IE9 normally supports at least the most important subset of SVG (tested it by rendering a simple SVG file in IE9), I wonder what might be the issue with it. Is it maybe because openlayers assumes SVG is not supported in IE and just takes a detour via VML for rendering (which seems to fail in case of single SVG files)? Regards, fatzopilot -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7187723.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Sat Jan 14 16:04:51 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 16:05:41 2012 Subject: [OpenLayers-Users] with no OpenLayers.Util.onImageLoadError, TileCache wrapDateLine has pink tiles In-Reply-To: <97FDCEA6D905154D94E20D02312C8A310D92F37869@mse18be1.mse18.exchange.ms> References: <97FDCEA6D905154D94E20D02312C8A310D92F37869@mse18be1.mse18.exchange.ms> Message-ID: Hi, to style the way tiles with unavailable images look, modify the .olImageLoadError css class, e.g. like this: .olImageLoadError { display: none; } Now for the correct usage of wrapDateLine: true - it only works correctly if set on the base layer, and if the base layer's maxExtent's left and right bounds equal the world extent's. With other words: don't use it for tile caches that only cover a subset of the world in longitudinal direction. Andreas. On Sat, Jan 14, 2012 at 6:01 AM, Charlton Galvarino wrote: > Hi, all.? I just grabbed the latest and greatest OL from github and see that > OpenLayers.Util.onImageLoadError is no more.? One thing I noticed off the > bat is that my TileCache layers (wrapDateLine : true) show pink tiles > outside of the usual -180,-90,180,90 bounds.? That used to be handled by the > onImageLoadError, but I?m not sure where to look now. > > > > I can reproduce this behavior in the tilecache.html example by commenting > out the map?s resolutions (so you can zoom way out) and adding wrapDateLine > : true to the layer?s config.? Not having the wrapDateLine works as > advertised . . . no pink tiles.? But having it seems to break something. > > > > Am I missing something obvious? > > > > TIA. > > > > > > > > > > > > Charlton Galvarino > > 1 (803) 233-6205 : voice > > 1 (803) 223-9579 :?? fax > > charlton@2creek.com > > > > P.O. Box 50960 > > Columbia, SC 29250 > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 14 16:15:34 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 16:16:13 2012 Subject: [OpenLayers-Users] Cartographic coordinates with Google Maps In-Reply-To: <1326469595628-7184427.post@n2.nabble.com> References: <1326469595628-7184427.post@n2.nabble.com> Message-ID: Hi, this is because you are using the GMaps v2 API, where the map uses EPSG:4326 as projection. Please see http://openlayers.org/dev/examples/google-v3.html for the correct script resource to include GMaps v3, or configure the layer with the "sphericalMercator: true" option and the map with maxExtent: new OpenLayers.Bounds( -128 * 156543.03390625, -128 * 156543.03390625, 128 * 156543.03390625, 128 * 156543.03390625 ), sphericalMercator: true, maxResolution: 156543.03390625, units: "m", projection: "EPSG:900913" Andreas. 2012/1/13 Lu?s de Sousa : > Dear all, > > Bellow is the code of a simple map using a Google layer with the > MousePosition control. Even though I'm passing the 900913 projection for the > map projection and the map displayProjection properties the coordinates > shown in the MousePosition are Geodetical (lat,lon in degrees) instead of > Cartographic (x,y in meters). What am I missing? > > Thank you, > > Lu?s > > function initMap(){ > > ? ?map = new OpenLayers.Map("myMap",{ > ? ? ? ? ? ? ? ?projection: new OpenLayers.Projection("EPSG:900913"), > ? ? ? ? ? ? ? ?displayProjection: new OpenLayers.Projection("EPSG:900913"), > ? ? ? ? ? ? ? ?units: "m" > ? ? ? ?}); > > ? ? ? ?map.addControl(new OpenLayers.Control.MousePosition()); > ? ? ? ?map.addControl(new OpenLayers.Control.LayerSwitcher()); > > ? ? ? ?var gphy = new OpenLayers.Layer.Google( > ? ? ? ?"Google Physical", > ? ? ? ?{type: G_PHYSICAL_MAP} > ? ?); > > ? ?map.addLayers([gphy]); > > } > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Cartographic-coordinates-with-Google-Maps-tp7184427p7184427.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 14 16:29:30 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 16:30:08 2012 Subject: [OpenLayers-Users] openRouteService and openlayers In-Reply-To: <1326452409079-7183673.post@n2.nabble.com> References: <1326452409079-7183673.post@n2.nabble.com> Message-ID: Hi, the terms of use of openrouteservice.org say: "OpenRouteService.org can be used freely and without charge by any individuals through the website www.openrouteservice.org If you intend to use OpenRouteService in your own applications please contact us." So you should do that first. Andreas. On Fri, Jan 13, 2012 at 12:00 PM, vrbikdan wrote: > Hi, > I'm trying to create map with simple route planner. I need only to draw > route between two places (which coordinates I know) without text information > or anything. I find openrouteservice.org so I would like to use it in my > map. My idea was XMLHttpRequest, but openRouteService doesn't generate XML. > Do you have any idea how to use this service in my map? Is it evan possible? > Or any other idea how to create route planner in OL? :) > > Thanks a lot > Dan > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/openRouteService-and-openlayers-tp7183673p7183673.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 14 16:47:29 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 16:48:19 2012 Subject: [OpenLayers-Users] wfs json layer from geoserver In-Reply-To: References: Message-ID: Hi, OpenLayers.Layer.WFS is deprecated, and what you tried will only work f you have a proxy configured. My suggestion would be to use OpenLayers.Layer with a Protocol.Script to get the layer contents. See http://openlayers.org/dev/examples/cross-origin.html. Andreas. On Wed, Jan 11, 2012 at 1:35 PM, Imran Rajjad wrote: > hi list, > > I am trying to load a WFS layer with json format > > var wfs = new OpenLayers.Layer.WFS("wfs_layer", > ??????????????? "http://server:port/geoserver/wfs", > ??????????????? {typename: 'topp:test_layer', maxfeatures: 200, > outputformat: "json"}, > ??????????????? { > ?????featureClass: OpenLayers.Feature.WFS, > ?????format: "GeoJSON", > ?????extractAttributes:true, > ?????styleMap:style > ????} > ???); > > and the geoserver log shows the below request, but there are no results as > per FireBug > > > 11 Jan 17:31:35 INFO [geoserver.wfs] - > Request: getFeature > ??????? handle = null > ??????? service = WFS > ??????? version = 1.0.0 > ??????? baseUrl = http://host:port/geoserver/ > ??????? providedVersion = 1.0.0 > ??????? query = [net.opengis.wfs.impl.QueryTypeImpl@b0df53 (group: null, > propertyName: null, function: null, filter: [? bbox POLYGON > ((68.849301577111 30.391413707024, 68.849301577111 30.5524350196, > 69.048093321031 30.5524350196, 69.048093321031 30.391413707024, > 68.849301577111 30.391413707024)) ], sortBy: null, featureVersion: null, > handle: null, srsName: null, typeName: > [{http://www.openplans.org/topp}test_layer])] > ??????? maxFeatures = 200 > ??????? outputFormat = json > ??????? resultType = results > ??????? traverseXlinkDepth = null > ??????? traverseXlinkExpiry = null > ??????? formatOptions = {} > > > I am not using the Proxy because I think you do not need it incase of JSON. > but it seems? I am missing something > > regards,-- > I.R > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 14 16:53:46 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 16:54:01 2012 Subject: [OpenLayers-Users] Re: moving features symbolizer In-Reply-To: <1326284104652-7175962.post@n2.nabble.com> References: <1326209574646-7172557.post@n2.nabble.com> <1326284104652-7175962.post@n2.nabble.com> Message-ID: I cannot reproduce this in OL 2.11 with the vector-features.html example. Can you try with latest OL from github, and if the problem persists provide a minimal example that shows the issue? Thanks, Andreas. On Wed, Jan 11, 2012 at 1:15 PM, dominik wrote: > OL 2.11 and FF 9.0.1 or Chrome16 > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/moving-features-symbolizer-tp7172557p7175962.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Sat Jan 14 17:45:56 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 14 17:46:34 2012 Subject: [OpenLayers-Users] styling the controls In-Reply-To: <07FEFC2F-9E73-4259-BCB2-E884612EFDBD@gmail.com> References: <07FEFC2F-9E73-4259-BCB2-E884612EFDBD@gmail.com> Message-ID: Hi, Use OpenLayers.Control.ZoomPanel and OpenLayers.Control.PanPanel instead of OpenLayers.Control.PanZoom. Andreas. On Thu, Dec 29, 2011 at 9:34 PM, Puneet Kishor wrote: > I am trying to make the zoom in and out buttons bigger, however, seems like their styles are set programmatically rather than via CSS. My DOM inspector shows > >
> >
> > > How can I change the above to be larger? I am assuming the OpenLayers.Control.PanZoom_3_zoomin id is generated programmatically and can't be relied upon. > > Many thanks, > > -- > Puneet Kishor_______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From jbw2003 at earthlink.net Sun Jan 15 13:31:07 2012 From: jbw2003 at earthlink.net (Jim White) Date: Sun Jan 15 13:39:36 2012 Subject: [OpenLayers-Users] area enclosed by linestring Message-ID: <4F131B6B.6070203@earthlink.net> Hi, I use this to calculate the number of acres enclosed by a linestring: ring = new OpenLayers.Geometry.LinearRing(geometry.getVertices()); area = ring.getGeodesicArea(new OpenLayers.Projection("EPSG:900913")); area = Math.floor(Math.abs(area*0.000247105381)); The calculated area consistently produces results that are 2-3% too small. Is this an error in my code or is my data the problem? Thanks, Jim White From gpktondo at gmail.com Sun Jan 15 13:42:56 2012 From: gpktondo at gmail.com (Tondo) Date: Sun Jan 15 13:43:36 2012 Subject: [OpenLayers-Users] Transition effect as a parameter Message-ID: <1326652976338-7190368.post@n2.nabble.com> Hi Here's code for a button, that adds selected layer from app.capabilitiesPanel to app.mapPanel.map (instance of OpenLayers.map), but effect does not seems to work. /bbar: [{ text: "Add Layer", handler: function() { app.capsGrid.getSelectionModel().each(function(record) { var capabilitiesLayer = record.clone(); capabilitiesLayer.getLayer().mergeNewParams({ format: "image/png", transparent: true, transitionEffect = "resize" }); app.mapPanel.layers.add(capabilitiesLayer); app.mapPanel.map.zoomToExtent( OpenLayers.Bounds.fromArray(capabilitiesLayer.get("llbbox")) ); }); } }]/ Any suggestions? Many thanks. Regards, Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Transition-effect-as-a-parameter-tp7190368p7190368.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From eric.lemoine at camptocamp.com Sun Jan 15 14:05:06 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Sun Jan 15 14:05:22 2012 Subject: [OpenLayers-Users] Transition effect as a parameter In-Reply-To: <1326652976338-7190368.post@n2.nabble.com> References: <1326652976338-7190368.post@n2.nabble.com> Message-ID: On Sunday, January 15, 2012, Tondo wrote: > Hi > > Here's code for a button, that adds selected layer from > app.capabilitiesPanel to app.mapPanel.map (instance of OpenLayers.map), but > effect does not seems to work. > > /bbar: [{ > text: "Add Layer", > handler: function() { > app.capsGrid.getSelectionModel().each(function(record) { > var capabilitiesLayer = record.clone(); > capabilitiesLayer.getLayer().mergeNewParams({ > format: "image/png", > transparent: true, > transitionEffect = "resize" > }); The above syntax is wrong. And transitionEffect is not a WMS parameter, it is an option of the layer instance. Try: getLayer().transitionEffect = 'resize'; -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120115/00fdb3d1/attachment.html From vrbikdan at gmail.com Sun Jan 15 14:05:10 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Sun Jan 15 14:05:25 2012 Subject: [OpenLayers-Users] Re: openRouteService and openlayers In-Reply-To: References: <1326452409079-7183673.post@n2.nabble.com> Message-ID: <1326654310654-7190417.post@n2.nabble.com> hi, most problems I have are between PC and my chair and I see that this is the same ... thanks ;) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/openRouteService-and-openlayers-tp7183673p7190417.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gpktondo at gmail.com Sun Jan 15 14:05:16 2012 From: gpktondo at gmail.com (Tondo) Date: Sun Jan 15 14:05:32 2012 Subject: [OpenLayers-Users] Re: Transition effect as a parameter In-Reply-To: <1326652976338-7190368.post@n2.nabble.com> References: <1326652976338-7190368.post@n2.nabble.com> Message-ID: <1326654316063-7190418.post@n2.nabble.com> Solved! It's optional, so I did it this... litle bit ugly way. /bbar: [{ text: "Pridaj vrstvu", handler: function() { app.capabilitiesPanel.getSelectionModel().each(function(record) { var capabilitiesLayer = record.clone(); capabilitiesLayer.getLayer().mergeNewParams({ format: "image/png", transparent: true }); app.mapPanel.layers.add(capabilitiesLayer); *var mapLayers = []; mapLayers = app.mapPanel.map.layers; mapLayers[mapLayers.length-1].transitionEffect = 'resize';* app.mapPanel.map.zoomToExtent( OpenLayers.Bounds.fromArray(capabilitiesLayer.get("llbbox")) ); }); } }]/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Transition-effect-as-a-parameter-tp7190368p7190418.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From milo at dogodigi.net Sun Jan 15 14:13:46 2012 From: milo at dogodigi.net (Milo van der Linden) Date: Sun Jan 15 14:14:30 2012 Subject: [OpenLayers-Users] Re: openRouteService and openlayers In-Reply-To: <1326654310654-7190417.post@n2.nabble.com> References: <1326452409079-7183673.post@n2.nabble.com> <1326654310654-7190417.post@n2.nabble.com> Message-ID: "most problems I have are between PC and my chair" lol! Great quote, I am going to use it! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120115/71a163f3/attachment.html From ramotswa at gmail.com Sun Jan 15 15:24:26 2012 From: ramotswa at gmail.com (Toby Reinicke) Date: Sun Jan 15 15:24:57 2012 Subject: [OpenLayers-Users] area enclosed by linestring In-Reply-To: <4F131B6B.6070203@earthlink.net> References: <4F131B6B.6070203@earthlink.net> Message-ID: Do you have the same issue if you just use ring.getArea() function? On 15 Jan 2012, at 18:31, Jim White wrote: > Hi, > > I use this to calculate the number of acres enclosed by a linestring: > > ring = new OpenLayers.Geometry.LinearRing(geometry.getVertices()); > area = ring.getGeodesicArea(new OpenLayers.Projection("EPSG:900913")); > area = Math.floor(Math.abs(area*0.000247105381)); > > The calculated area consistently produces results that are 2-3% too small. Is this an error in my code or is my data the problem? > > Thanks, > Jim White > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From jbw2003 at earthlink.net Sun Jan 15 16:23:03 2012 From: jbw2003 at earthlink.net (Jim White) Date: Sun Jan 15 16:23:24 2012 Subject: [OpenLayers-Users] area enclosed by linestring In-Reply-To: References: <4F131B6B.6070203@earthlink.net> Message-ID: <4F1343B7.8060001@earthlink.net> I tried that first. It was way off. I think by a factor of cos(lat)**2. On 01/15/2012 03:24 PM, Toby Reinicke wrote: > Do you have the same issue if you just use ring.getArea() function? > > On 15 Jan 2012, at 18:31, Jim White wrote: > >> Hi, >> >> I use this to calculate the number of acres enclosed by a linestring: >> >> ring = new OpenLayers.Geometry.LinearRing(geometry.getVertices()); >> area = ring.getGeodesicArea(new OpenLayers.Projection("EPSG:900913")); >> area = Math.floor(Math.abs(area*0.000247105381)); >> >> The calculated area consistently produces results that are 2-3% too small. Is this an error in my code or is my data the problem? >> >> Thanks, >> Jim White >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users From ramotswa at gmail.com Sun Jan 15 16:42:16 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Sun Jan 15 16:42:48 2012 Subject: [OpenLayers-Users] area enclosed by linestring In-Reply-To: <4F1343B7.8060001@earthlink.net> References: <4F131B6B.6070203@earthlink.net> <4F1343B7.8060001@earthlink.net> Message-ID: Fair enough. I presume you aren't drawing the linestring by hand yes? and that there are no obvious rounding errors? Toby On 15 January 2012 21:23, Jim White wrote: > I tried that first. It was way off. I think by a factor of cos(lat)**2. > > > > > On 01/15/2012 03:24 PM, Toby Reinicke wrote: >> >> Do you have the same issue if you just use ring.getArea() function? >> >> On 15 Jan 2012, at 18:31, Jim White ?wrote: >> >>> Hi, >>> >>> I use this to calculate the number of acres enclosed by a linestring: >>> >>> ring = new OpenLayers.Geometry.LinearRing(geometry.getVertices()); >>> area = ring.getGeodesicArea(new OpenLayers.Projection("EPSG:900913")); >>> area = Math.floor(Math.abs(area*0.000247105381)); >>> >>> The calculated area consistently produces results that are 2-3% too >>> small. Is this an error in my code or is my data the problem? >>> >>> Thanks, >>> Jim White >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > From jbw2003 at earthlink.net Sun Jan 15 21:04:24 2012 From: jbw2003 at earthlink.net (Jim White) Date: Sun Jan 15 21:05:00 2012 Subject: [OpenLayers-Users] area enclosed by linestring In-Reply-To: References: <4F131B6B.6070203@earthlink.net> <4F1343B7.8060001@earthlink.net> Message-ID: <4F1385A8.3090302@earthlink.net> I looked up some Mercator formula on Wolfram and I think my equation in not the correct one. That being said, the data is lat/lon from a third party program that was imported into PostGIS and then served by GeoServer. On 01/15/2012 04:42 PM, Tobias Reinicke wrote: > Fair enough. I presume you aren't drawing the linestring by hand yes? > and that there are no obvious rounding errors? > > Toby > > On 15 January 2012 21:23, Jim White wrote: >> I tried that first. It was way off. I think by a factor of cos(lat)**2. >> >> >> >> >> On 01/15/2012 03:24 PM, Toby Reinicke wrote: >>> Do you have the same issue if you just use ring.getArea() function? >>> >>> On 15 Jan 2012, at 18:31, Jim White wrote: >>> >>>> Hi, >>>> >>>> I use this to calculate the number of acres enclosed by a linestring: >>>> >>>> ring = new OpenLayers.Geometry.LinearRing(geometry.getVertices()); >>>> area = ring.getGeodesicArea(new OpenLayers.Projection("EPSG:900913")); >>>> area = Math.floor(Math.abs(area*0.000247105381)); >>>> >>>> The calculated area consistently produces results that are 2-3% too >>>> small. Is this an error in my code or is my data the problem? >>>> >>>> Thanks, >>>> Jim White >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> From a.jean-charles at valabre.com Mon Jan 16 03:35:55 2012 From: a.jean-charles at valabre.com (Arnaud JEAN-CHARLES) Date: Mon Jan 16 07:07:34 2012 Subject: [OpenLayers-Users] Read a wmc without destroy the map Message-ID: <4F13E16B.9070304@valabre.com> Hi, I would like to read a Web Map Context to modify the options of my map : ZoomLevel, BoudingBox, layers visibility... I followed the OpenLayers WMC example. First I tried: map = format.read(text, {map: map}); // the merge solution But it creates new layers and doesn't refresh the map. So I tried : map.destroy(); map = format.read(text, {map: mapOptions}); But I have an error in my MapPanel and M. Matt Prior answered me that map.destroy() is the worse solution : "NO! Never destroy the map unless you want it really and truly gone for good." Do you know another solutions to load a WMC or do I have to parse the data to extract parameters ? Thanks in advance Regards Arno From luis.a.de.sousa at gmail.com Mon Jan 16 09:49:29 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon Jan 16 09:50:16 2012 Subject: [OpenLayers-Users] Re: Cartographic coordinates with Google Maps In-Reply-To: References: <1326469595628-7184427.post@n2.nabble.com> Message-ID: <1326725369120-7192730.post@n2.nabble.com> Thank you Andreas that did it. Lu?s -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Cartographic-coordinates-with-Google-Maps-tp7184427p7192730.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From charlton at 2creek.com Mon Jan 16 09:49:38 2012 From: charlton at 2creek.com (Charlton Galvarino) Date: Mon Jan 16 09:50:25 2012 Subject: [OpenLayers-Users] with no OpenLayers.Util.onImageLoadError, TileCache wrapDateLine has pink tiles In-Reply-To: References: <97FDCEA6D905154D94E20D02312C8A310D92F37869@mse18be1.mse18.exchange.ms> Message-ID: <97FDCEA6D905154D94E20D02312C8A310D92F37968@mse18be1.mse18.exchange.ms> Thanks, Andreas. I appreciate the pointers. >-----Original Message----- >From: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] On >Behalf Of Andreas Hocevar >Sent: Saturday, January 14, 2012 4:05 PM >To: Charlton Galvarino >Cc: openlayers-users@lists.osgeo.org >Subject: Re: [OpenLayers-Users] with no OpenLayers.Util.onImageLoadError, >TileCache wrapDateLine has pink tiles > >Hi, > >to style the way tiles with unavailable images look, modify the >.olImageLoadError css class, e.g. like this: > >.olImageLoadError { display: none; } > >Now for the correct usage of wrapDateLine: true - it only works correctly if set >on the base layer, and if the base layer's maxExtent's left and right bounds >equal the world extent's. With other >words: don't use it for tile caches that only cover a subset of the world in >longitudinal direction. > >Andreas. > >On Sat, Jan 14, 2012 at 6:01 AM, Charlton Galvarino >wrote: >> Hi, all.? I just grabbed the latest and greatest OL from github and >> see that OpenLayers.Util.onImageLoadError is no more.? One thing I >> noticed off the bat is that my TileCache layers (wrapDateLine : true) >> show pink tiles outside of the usual -180,-90,180,90 bounds.? That >> used to be handled by the onImageLoadError, but I'm not sure where to >look now. >> >> >> >> I can reproduce this behavior in the tilecache.html example by >> commenting out the map's resolutions (so you can zoom way out) and >> adding wrapDateLine >> : true to the layer's config.? Not having the wrapDateLine works as >> advertised . . . no pink tiles.? But having it seems to break something. >> >> >> >> Am I missing something obvious? >> >> >> >> TIA. >> >> >> >> >> >> >> >> >> >> >> >> Charlton Galvarino >> >> 1 (803) 233-6205 : voice >> >> 1 (803) 223-9579 :?? fax >> >> charlton@2creek.com >> >> >> >> P.O. Box 50960 >> >> Columbia, SC 29250 >> >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > >-- >Andreas Hocevar >OpenGeo - http://opengeo.org/ >Expert service straight from the developers. From ashley_c_mort at raytheon.com Tue Jan 17 10:20:32 2012 From: ashley_c_mort at raytheon.com (mortac8) Date: Tue Jan 17 10:21:11 2012 Subject: [OpenLayers-Users] Printing options for map w/ styled vector layers? Message-ID: <1326813632729-7196710.post@n2.nabble.com> Guys, If I have a map with a WMS background layer and a several styled Vector layers, is it possible to print server-side and still maintain all of my vector stylings? If so, approximately how much effort is this and is MapFish the way to go? I'm trying to decide if it's worth the effort to deal with styled vectors server-side or just use the browser/javascript print() function and deal with its issues. I have read through the archives and read the wiki but I didn't see much about maintaining styling when printing server-side. Thanks!!! Ashley -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Printing-options-for-map-w-styled-vector-layers-tp7196710p7196710.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Robert.Sanson at asurequality.com Tue Jan 17 15:36:56 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue Jan 17 15:37:35 2012 Subject: [OpenLayers-Users] Printing options for map w/ styled vector layers? In-Reply-To: <1326813632729-7196710.post@n2.nabble.com> References: <1326813632729-7196710.post@n2.nabble.com> Message-ID: <4F1692B80200003700011D82@gate1.asurequality.com> Hi Ashley You have to be able to replicate the styled vectors in OpenLayers within your WMS server, and then write some Javascript code to capture the map extent from OpenLayers plus a list of all the layers displayed and then submit a GetMap request to the WMS to generate a composite map. I use a Python script in my cgi-bin directory that sits between OpenLayers and Mapserver to request the WMS image and embed it in a PDF file. Regards, Robert >>> mortac8 18/01/2012 4:20 a.m. >>> Guys, If I have a map with a WMS background layer and a several styled Vector layers, is it possible to print server-side and still maintain all of my vector stylings? If so, approximately how much effort is this and is MapFish the way to go? I'm trying to decide if it's worth the effort to deal with styled vectors server-side or just use the browser/javascript print() function and deal with its issues. I have read through the archives and read the wiki but I didn't see much about maintaining styling when printing server-side. Thanks!!! Ashley -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Printing-options-for-map-w-styled-vector-layers-tp7196710p7196710.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From punk.kish at gmail.com Tue Jan 17 16:10:10 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Tue Jan 17 16:10:52 2012 Subject: [OpenLayers-Users] creating a custom permalink Message-ID: <8C734EB5-8B4B-482C-8BEC-4DAD7EC699E4@gmail.com> I am looking for ideas on how to accomplish the following with the permalink control... I have a map view constructed with the usual turn a couple of three layers on and zoom to a specific location. To this, I want to add a vector polygon constructed on the map which has, in turn, triggered an ajax call to the server and returned with the prescribed features within that polygon and the results of the call have done something in the map. For example, say I have a div called "results" which displays the records from a "points" layer of the features within a polgyon. So, how would I go about extending the permalink control output to add all this? Eventually I would just want to save all the gobbledegook on the server side and generate a custom URI that can be emailed to other users. Suggestion? -- Puneet Kishor From umberto.nicoletti at gmail.com Tue Jan 17 16:22:17 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue Jan 17 16:22:55 2012 Subject: [OpenLayers-Users] Printing options for map w/ styled vector layers? In-Reply-To: <1326813632729-7196710.post@n2.nabble.com> References: <1326813632729-7196710.post@n2.nabble.com> Message-ID: On Tue, Jan 17, 2012 at 4:20 PM, mortac8 wrote: > Guys, > > If I have a map with a WMS background layer and a several styled Vector > layers, is it possible to print server-side and still maintain all of my > vector stylings? If so, approximately how much effort is this and is > MapFish the way to go? > > I'm trying to decide if it's worth the effort to deal with styled vectors > server-side or just use the browser/javascript print() function and deal > with its issues. I have read through the archives and read the wiki but I > didn't see much about maintaining styling when printing server-side. > > If you can bear with something browser-side I've made a Chrome extension that screenshots the current tab, crops out the ol div and draws it in a canvas for printing. It's Chrome only and it's not exactly what you asked for but it occurred to me somebody could use the idea. It's on github: https://github.com/unicolet/chrome_print_ext HTH, Umberto Thanks!!! > Ashley > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Printing-options-for-map-w-styled-vector-layers-tp7196710p7196710.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120117/1a450ab7/attachment.html From p.m.g.mendes at gmail.com Tue Jan 17 16:59:39 2012 From: p.m.g.mendes at gmail.com (Pedro Mendes) Date: Tue Jan 17 17:00:06 2012 Subject: [OpenLayers-Users] Printing options for map w/ styled vector layers? In-Reply-To: <1326813632729-7196710.post@n2.nabble.com> References: <1326813632729-7196710.post@n2.nabble.com> Message-ID: > > If I have a map with a WMS background layer and a several styled Vector > layers, is it possible to print server-side and still maintain all of my > vector stylings? If so, approximately how much effort is this and is > MapFish the way to go? > Mapfish can print the features in a vector layer out-of-the-box keeping all the styles. Mendes. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120117/f205d95d/attachment.html From pfischer at proveo.com Wed Jan 18 05:31:11 2012 From: pfischer at proveo.com (Peter) Date: Wed Jan 18 05:31:45 2012 Subject: [OpenLayers-Users] delete controls withiut removing drawn features In-Reply-To: <824DFDC29B084223AFC924725729523E@pcawh2> References: <1326467947520-7184326.post@n2.nabble.com> <824DFDC29B084223AFC924725729523E@pcawh2> Message-ID: <1326882671481-7199558.post@n2.nabble.com> Thanks this works. but my problem now is, that all the polygons i have drawn are deleted when i destroy the control and i get an Error with: this.rendererRoot is null ...nts.triggerEvent("beforefeaturesadded",d)===!1)return;a=d.features}for(var d=[],... OpenLayers.js (Zeile 795) so i any ideas how i can solve this? Thans and Greetings Peter -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-layers-tp7184326p7199558.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From relicary at gmail.com Wed Jan 18 11:18:59 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Wed Jan 18 11:19:12 2012 Subject: [OpenLayers-Users] Optimize the load time at the web client Message-ID: Hi, I've implementad a client with maxExtend (-1.53544921875, 37.81, 0.0000, 40.84) using MS4W. When I work with the result, the layers are showed correctly, but qhen I try load five layers (for example) the time is increase. For each layer, over 9 DIV areas are called, so the total request are 9x5 = 30!! How can I reduce the number of request and reduce the responde time? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120118/70d61b9a/attachment.html From jcole at solidearth.com Wed Jan 18 11:36:21 2012 From: jcole at solidearth.com (John Cole) Date: Wed Jan 18 11:36:41 2012 Subject: [OpenLayers-Users] Styling a GeoJson vector layer with a stylemap by value Message-ID: Hey guys, I'm trying to use a stylemap on a GeoJson datasource, and want to change the color of the symbol based off of a field in the data. My data looks like: { "type" : "GeometryCollection", "geometries" : [{ "type" : "Point", "_id" : { "code" : "123", "version" : 0 }, "coordinates" : [-86.586502, 34.731189], "Status" : "W" }, { "type" : "Point", "_id" : { "code" : "234", "version" : 0 }, "coordinates" : [-86.57294326, 34.73563314], "Status" : "W" }, { "type" : "Point", "_id" : { "code" : "456", "version" : 0 }, "coordinates" : [-86.45717254, 34.82754903], "Status" : "A" } ] } and my style stylemap: var styleMap = new OpenLayers.StyleMap({ "default": new OpenLayers.Style({ fillOpacity: 0.5, pointRadius: 5, fillColor: "#ee9900" }) }); var lookup = { "S": {fillColor: "red"}, "A": {fillColor: "green"}, "X": {fillColor: "blue"} }; styleMap.addUniqueValueRules("default", "Status", lookup); However, when I apply the addUniqueValueRules, no features are drawn. Tracing through the draw cycle, line 117 of Comparison.js which is getting the value of "Status" from the context returns undefined. What do I need to do to get the "Status" into the correct context? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120118/91ad94c7/attachment-0001.html From arnd.wippermann at web.de Wed Jan 18 13:11:57 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Jan 18 13:12:35 2012 Subject: AW: [OpenLayers-Users] delete controls withiut removing drawn features In-Reply-To: <1326882671481-7199558.post@n2.nabble.com> References: <1326467947520-7184326.post@n2.nabble.com><824DFDC29B084223AFC924725729523E@pcawh2> <1326882671481-7199558.post@n2.nabble.com> Message-ID: <1F3C21B08AB448928CC26D1086E2895C@pcawh2> It seems, that your features are only drawn on a temporary layer. And deleting the control or deactivating it, deletes also this layer and causes the error. Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Peter Gesendet: Mittwoch, 18. Januar 2012 11:31 An: users@openlayers.org Betreff: [OpenLayers-Users] delete controls withiut removing drawn features Thanks this works. but my problem now is, that all the polygons i have drawn are deleted when i destroy the control and i get an Error with: this.rendererRoot is null ...nts.triggerEvent("beforefeaturesadded",d)===!1)return;a=d.features}for(va r d=[],... OpenLayers.js (Zeile 795) so i any ideas how i can solve this? Thans and Greetings Peter -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-laye rs-tp7184326p7199558.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From arnd.wippermann at web.de Wed Jan 18 13:11:57 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Jan 18 13:12:36 2012 Subject: AW: [OpenLayers-Users] Styling a GeoJson vector layer with a stylemapby value In-Reply-To: References: Message-ID: <20B797E4354841D09DFCEBF4AFCA28EE@pcawh2> it's nothing wrong with your code. But your GeoJSON object describes a MultiPoint instead of three single points. And the properties should not attached to the geometry. Try something like this to create single points: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "_id" : { "code" : "123", "version" : 0 }, "Status" : "W" }, "geometry": { "type": "Point", "coordinates": [ -86.586502, 34.731189 ] } }, { "type": "Feature", ... by the way Status="W" is not declared in your styleMap. Arnd _____ Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von John Cole Gesendet: Mittwoch, 18. Januar 2012 17:36 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] Styling a GeoJson vector layer with a stylemapby value Hey guys, I'm trying to use a stylemap on a GeoJson datasource, and want to change the color of the symbol based off of a field in the data. My data looks like: { "type" : "GeometryCollection", "geometries" : [{ "type" : "Point", "_id" : { "code" : "123", "version" : 0 }, "coordinates" : [-86.586502, 34.731189], "Status" : "W" }, { "type" : "Point", "_id" : { "code" : "234", "version" : 0 }, "coordinates" : [-86.57294326, 34.73563314], "Status" : "W" }, { "type" : "Point", "_id" : { "code" : "456", "version" : 0 }, "coordinates" : [-86.45717254, 34.82754903], "Status" : "A" } ] } and my style stylemap: var styleMap = new OpenLayers.StyleMap({ "default": new OpenLayers.Style({ fillOpacity: 0.5, pointRadius: 5, fillColor: "#ee9900" }) }); var lookup = { "S": {fillColor: "red"}, "A": {fillColor: "green"}, "X": {fillColor: "blue"} }; styleMap.addUniqueValueRules("default", "Status", lookup); However, when I apply the addUniqueValueRules, no features are drawn. Tracing through the draw cycle, line 117 of Comparison.js which is getting the value of "Status" from the context returns undefined. What do I need to do to get the "Status" into the correct context? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120118/8d6a5f2c/attachment.html From eric.lemoine at camptocamp.com Wed Jan 18 13:14:40 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed Jan 18 13:15:23 2012 Subject: [OpenLayers-Users] Styling a GeoJson vector layer with a stylemap by value In-Reply-To: References: Message-ID: On Wednesday, January 18, 2012, John Cole wrote: > Hey guys, > I'm trying to use a stylemap on a GeoJson datasource, and want to change the color of the symbol based off of a field in the data. > My data looks like: > { > "type" : "GeometryCollection", > "geometries" : [{ > "type" : "Point", > "_id" : { > "code" : "123", > "version" : 0 > }, > "coordinates" : [-86.586502, 34.731189], > "Status" : "W" > }, { > "type" : "Point", > "_id" : { > "code" : "234", > "version" : 0 > }, > "coordinates" : [-86.57294326, 34.73563314], > "Status" : "W" > }, { > "type" : "Point", > "_id" : { > "code" : "456", > "version" : 0 > }, > "coordinates" : [-86.45717254, 34.82754903], > "Status" : "A" > } > ] > } I don't think OpenLayers's GeoJSON format can produce OpenLayers.Feature.Vector objects from such a JSON doc. To produce features the GeoJSON format should receive a doc whose root object is of type FeatureCollection. > > and my style stylemap: > var styleMap = new OpenLayers.StyleMap({ > "default": new OpenLayers.Style({ > fillOpacity: 0.5, > pointRadius: 5, > fillColor: "#ee9900" > }) > }); > > var lookup = { > "S": {fillColor: "red"}, > "A": {fillColor: "green"}, > "X": {fillColor: "blue"} > }; > styleMap.addUniqueValueRules("default", "Status", lookup); > However, when I apply the addUniqueValueRules, no features are drawn. Tracing through the draw cycle, > line 117 of Comparison.js which is getting the value of "Status" from the context returns undefined. What do I need to do to get the "Status" into the correct context? For your rules to work "Status" must be a property of the "properties" object in each "feature" object of the GeoJSON doc. So make sure you have correctly formed feature objects in your layer. Each feature object should a "Status" property in its "attributes" object. Hope this helps. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120118/44bb1807/attachment.html From jcole at solidearth.com Wed Jan 18 13:44:54 2012 From: jcole at solidearth.com (John Cole) Date: Wed Jan 18 13:45:34 2012 Subject: [OpenLayers-Users] Styling a GeoJson vector layer with a stylemap by value In-Reply-To: References: Message-ID: Arnd and Eric, Thanks for the quick help. I was thinking that it was looking for the properties off of the vector feature object, and was hoping passing in a different context would allow me to keep the fields on the same level as the coordinates. The current json document indeed does draw, but not not with the addUniqueValueRules set. Perhaps the formatter is creating a vector feature good enough to draw, but not filter. The source is from a C# web service call to a MongoDB collection (table in mongo parlance). And performance is impressive, the 3 points was a sample from the original 1800 points (hence a W status thrown in there), which draw faster than the OSM basemap. In fact performance doesn't start to drop off until 30K points, far more than I expected. Converting the source from a GeometryCollection to a FeatureCollection ins't a problem, but I have to figure out how to create an object from the MongoDB document that has the properties object inside the feature object. Like I said, I was hoping the context would allow me to fake that :-) Let me see what I can come up with. On Wed, Jan 18, 2012 at 12:14 PM, Eric Lemoine wrote: > > > On Wednesday, January 18, 2012, John Cole wrote: > > Hey guys, > > I'm trying to use a stylemap on a GeoJson datasource, and want to > change the color of the symbol based off of a field in the data. > > My data looks like: > > { > > "type" : "GeometryCollection", > > "geometries" : [{ > > "type" : "Point", > > "_id" : { > > "code" : "123", > > "version" : 0 > > }, > > "coordinates" : [-86.586502, 34.731189], > > "Status" : "W" > > }, { > > "type" : "Point", > > "_id" : { > > "code" : "234", > > "version" : 0 > > }, > > "coordinates" : [-86.57294326, 34.73563314], > > "Status" : "W" > > }, { > > "type" : "Point", > > "_id" : { > > "code" : "456", > > "version" : 0 > > }, > > "coordinates" : [-86.45717254, 34.82754903], > > "Status" : "A" > > } > > ] > > } > > I don't think OpenLayers's GeoJSON format can produce > OpenLayers.Feature.Vector objects from such a JSON doc. To produce features > the GeoJSON format should receive a doc whose root object is of type > FeatureCollection. > > > > > and my style stylemap: > > var styleMap = new OpenLayers.StyleMap({ > > "default": new OpenLayers.Style({ > > fillOpacity: 0.5, > > pointRadius: 5, > > fillColor: "#ee9900" > > }) > > }); > > > > var lookup = { > > "S": {fillColor: "red"}, > > "A": {fillColor: "green"}, > > "X": {fillColor: "blue"} > > }; > > styleMap.addUniqueValueRules("default", "Status", lookup); > > However, when I apply the addUniqueValueRules, no features are drawn. > Tracing through the draw cycle, > > line 117 of Comparison.js which is getting the value of "Status" from > the context returns undefined. What do I need to do to get the "Status" > into the correct context? > > > For your rules to work "Status" must be a property of the "properties" > object in each "feature" object of the GeoJSON doc. > > So make sure you have correctly formed feature objects in your layer. Each > feature object should a "Status" property in its "attributes" object. > > Hope this helps. > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemoine@camptocamp.com > http://www.camptocamp.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120118/994aff33/attachment-0001.html From w_ward_W at hotmail.com Wed Jan 18 14:43:33 2012 From: w_ward_W at hotmail.com (Shadin) Date: Wed Jan 18 14:44:04 2012 Subject: [OpenLayers-Users] Customize Features Message-ID: <1326915813580-7201367.post@n2.nabble.com> * Hello all I'm not sure where I should post this Q I'm using a WFS protocol on Vector layer to display my vector features ( Cars ) on the map. Now I need to customize every feature ( car in my case ) depending on its type (e.g:small ) and direction (e.g: north ). So, Which way is better to do that ? I have found this but still am not sure http://workshops.opengeo.org/openlayers-intro/vector/style.html * -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Customize-Features-tp7201367p7201367.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rscxdev at gmx.de Wed Jan 18 16:15:42 2012 From: rscxdev at gmx.de (rscxdev) Date: Wed Jan 18 16:16:19 2012 Subject: [OpenLayers-Users] OpenStreetMap: wrong tile http address Message-ID: <1326921342037-7201670.post@n2.nabble.com> Hello I've got an annoying problem: I use OL to display OSM "Mapnik" and when zooming to level 1 and scrolling to the edge of the map i always get in firebug "NetworkError: 404 Not Found - http://a.tile.openstreetmap.org/1/1/2.png" or "NetworkError: 404 Not Found - http://a.tile.openstreetmap.org/1/0/2.png" which blocks the traffic because the browser wants to get the png and get the png and doesnt get it.... Obviously the http address is wrong; in OSM docs i read that the address template is http://[abc].tile.openstreetmap.org/zoom/x/y.png I think the address is evaluated wrong in the XYZ class and XYZ wants to get a map which doesnt exist. Can somebody give me a hint how to prevent the error? By the way when looking at the OL examples there are similar errors. Look at http://openlayers.org/dev/examples/osm.html, zoom to level 0 and move the map to the upper/lower border. And by the way now we see why the examples are initialized at level 10 and not 0... ;-) Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenStreetMap-wrong-tile-http-address-tp7201670p7201670.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rscxdev at gmx.de Wed Jan 18 16:25:09 2012 From: rscxdev at gmx.de (rscxdev) Date: Wed Jan 18 16:25:27 2012 Subject: [OpenLayers-Users] Re: OpenStreetMap: wrong tile http address In-Reply-To: <1326921342037-7201670.post@n2.nabble.com> References: <1326921342037-7201670.post@n2.nabble.com> Message-ID: <1326921909499-7201689.post@n2.nabble.com> I want to add some code; to initialize the map is use geoMap = new OpenLayers.Map(geoMapID, { controls: [ new OpenLayers.Control.KeyboardDefaults(), new OpenLayers.Control.Navigation(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.ScaleLine( { geodesic : true }), new OpenLayers.Control.Attribution()], restrictedExtent: maxBounds, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), numZoomLevels: 18, maxResolution: 156543.0339, units: 'm', projection: projMerc, displayProjection: proj4326 }); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenStreetMap-wrong-tile-http-address-tp7201670p7201689.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Wed Jan 18 17:12:59 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed Jan 18 17:13:31 2012 Subject: AW: [OpenLayers-Users] OpenStreetMap: wrong tile http address In-Reply-To: <1326921342037-7201670.post@n2.nabble.com> References: <1326921342037-7201670.post@n2.nabble.com> Message-ID: <6B19E3DC50DD4E5EAE9EECB9021B8DDB@pcawh2> It seem an issue with the maxExtent of the OSM Layer. Try 20017508.34 instead 20037508.34 as ymax for the maxExtent, then the error should go away. OSMLayer.maxExtent = new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20017508.34); OSMLayer.displayOutsideMaxExtent=false; Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von rscxdev Gesendet: Mittwoch, 18. Januar 2012 22:16 An: users@openlayers.org Betreff: [OpenLayers-Users] OpenStreetMap: wrong tile http address Hello I've got an annoying problem: I use OL to display OSM "Mapnik" and when zooming to level 1 and scrolling to the edge of the map i always get in firebug "NetworkError: 404 Not Found - http://a.tile.openstreetmap.org/1/1/2.png" or "NetworkError: 404 Not Found - http://a.tile.openstreetmap.org/1/0/2.png" which blocks the traffic because the browser wants to get the png and get the png and doesnt get it.... Obviously the http address is wrong; in OSM docs i read that the address template is http://[abc].tile.openstreetmap.org/zoom/x/y.png I think the address is evaluated wrong in the XYZ class and XYZ wants to get a map which doesnt exist. Can somebody give me a hint how to prevent the error? By the way when looking at the OL examples there are similar errors. Look at http://openlayers.org/dev/examples/osm.html, zoom to level 0 and move the map to the upper/lower border. And by the way now we see why the examples are initialized at level 10 and not 0... ;-) Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenStreetMap-wrong-tile-http-address -tp7201670p7201670.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From csabbey at gmail.com Wed Jan 18 17:21:42 2012 From: csabbey at gmail.com (geoman) Date: Wed Jan 18 17:22:37 2012 Subject: [OpenLayers-Users] Re: SelectFeature onUnselect called for nested IE elements In-Reply-To: <1326492718309-7185898.post@n2.nabble.com> References: <1326492718309-7185898.post@n2.nabble.com> Message-ID: <1326925302914-7201890.post@n2.nabble.com> The issue was floated elements within my popup - IE was sending mousemove events to the map for movement over floated elements. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SelectFeature-onUnselect-called-for-nested-IE-elements-tp7185898p7201890.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gpktondo at gmail.com Wed Jan 18 18:01:38 2012 From: gpktondo at gmail.com (Tondo) Date: Wed Jan 18 18:02:08 2012 Subject: [OpenLayers-Users] A LOT of features Message-ID: <1326927698178-7202081.post@n2.nabble.com> Hi lists, I have a simple question... I've got one vector layer, that might be sometimes loaded by huge amount of data (hundreds/thousands of features). What is the limit of features? Thank you! Regards, Tom. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7202081.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From armin.burger at gmx.net Wed Jan 18 19:01:35 2012 From: armin.burger at gmx.net (Armin Burger) Date: Wed Jan 18 19:02:00 2012 Subject: [OpenLayers-Users] A LOT of features In-Reply-To: <1326927698178-7202081.post@n2.nabble.com> References: <1326927698178-7202081.post@n2.nabble.com> Message-ID: <4F175D5F.6040501@gmx.net> the question might be simple, the answer it is not ;-) According to my experience, I would say it depends... ... on the browser type, the complexity of the features, memory and CPU's of the PC, what you regard as still acceptable responsiveness of the application, etc. If your features are quite simply structured, i.e. with few vertices (rectangle-like polygons, straight short lines, etc), then browsers like IE 7/8 (v9 should be faster I guess) should be able to handle a few 100's. Chrome and Firefox maybe a few 1000's. With more features the application becomes more and more sluggish and pan actions become sticky. If your features are complex then this will happen already with fewer features. I have not tried, but I would guess loading as vectors e.g. the coastline of Norway, digitized with decent details, can make an OL application virtually unusable because a single feature could have some 100000's vertices. armin On 19/01/2012 00:01, Tondo wrote: > Hi lists, > > I have a simple question... I've got one vector layer, that might be > sometimes loaded by huge amount of data (hundreds/thousands of features). > What is the limit of features? Thank you! > > Regards, > Tom. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7202081.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From gregor at greeninfo.org Wed Jan 18 20:16:08 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Wed Jan 18 20:16:21 2012 Subject: [OpenLayers-Users] A LOT of features In-Reply-To: <4F175D5F.6040501@gmx.net> References: <1326927698178-7202081.post@n2.nabble.com> <4F175D5F.6040501@gmx.net> Message-ID: <4F176ED8.7030709@greeninfo.org> Well explained, Armin. Short version: it's not the features, but the vertices. A significant factor there is the parsing of the vertices: GML/XML is significantly more "expensive" than JSON. If you're able to control the format of the data you're loading, try making a JSON representation of the data and including fewer attributes; this means less processing time figuring out the data, which may help raise your ceiling. If you have control over the dataset you're trying to render, you can try a "simplify" on the data (this isn't an OpenLayers thing, it means fudging your data server-side). This removes vertices and accuracy, in exchange for raising the ceiling further. This can get dicey, though: it would be wholly unsuitable for surveying applications, but may work fine for indicating general areas such as state boundaries at large scales. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor@greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From relicary at gmail.com Thu Jan 19 02:46:27 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Thu Jan 19 02:46:59 2012 Subject: [OpenLayers-Users] Close a popup when another is open Message-ID: Hi, I have the next code to show a popup when a user clicks over the map: info = new OpenLayers.Control.WMSGetFeatureInfo({ url : 'http://localhost:9000/cgi-bin/mapserv.exe', title : ' ', layers : [ StatesWms ], queryVisible : true, vendorParams : { map : '/ms4w/apps/demo-cv/demoCV.map' }, eventListeners : { 'getfeatureinfo' : function(event) { var popup = new OpenLayers.Popup.FramedCloud("Datos",map.getLonLatFromPixel(event.xy), null, event.text, null, true); popup.autoSize = true; map.addPopup(popup); } } }); map.addControl(info); info.activate(); When I click over the map, the popup with the correct information appears at the web client, but I want that if I click in another point, the first popup will be closed and the new will be open. Some help? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120119/8b80f06d/attachment.html From eric.lemoine at camptocamp.com Thu Jan 19 02:55:49 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Thu Jan 19 02:56:29 2012 Subject: [OpenLayers-Users] Close a popup when another is open In-Reply-To: References: Message-ID: 2012/1/19 Juan Jes?s Cremades Monserrat : > Hi, > > I have the next code to show a popup when a user clicks over the map: > > > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url : 'http://localhost:9000/cgi-bin/mapserv.exe', > title : ' ', > layers : [ StatesWms?], > queryVisible : true, > vendorParams : { > map : '/ms4w/apps/demo-cv/demoCV.map' > }, > eventListeners : { > 'getfeatureinfo' : function(event) { > var popup = new > OpenLayers.Popup.FramedCloud("Datos",map.getLonLatFromPixel(event.xy), > null,?event.text, null, true); > popup.autoSize = true; > map.addPopup(popup); > } > } > }); > > map.addControl(info); > info.activate(); > > When I click over the map, the popup with the correct information appears at > the web client, but I want that if I click in another point, the first popup > will be closed and the new will be open. Some help? See the exclusive parameter to addPopup: . -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com From rykovd at gmail.com Thu Jan 19 03:05:59 2012 From: rykovd at gmail.com (Denis Rykov) Date: Thu Jan 19 03:07:22 2012 Subject: [OpenLayers-Users] Split layer by point features Message-ID: Is it possible to split line layer by point features? From rykovd at gmail.com Thu Jan 19 03:06:30 2012 From: rykovd at gmail.com (Denis Rykov) Date: Thu Jan 19 03:07:23 2012 Subject: [OpenLayers-Users] Split layer by point features Message-ID: Is it possible to split line layer by point features? From rykovd at gmail.com Thu Jan 19 03:05:59 2012 From: rykovd at gmail.com (Denis Rykov) Date: Thu Jan 19 03:07:28 2012 Subject: [OpenLayers-Users] Split layer by point features Message-ID: Is it possible to split line layer by point features? From cheung.jackey at gmail.com Thu Jan 19 04:07:05 2012 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Thu Jan 19 04:08:00 2012 Subject: [OpenLayers-Users] Current x value is too far from tile corner x Message-ID: Hi all, I'm having this error lately, driving me mad. The map works fine mostly, unless I zoom in to the last few level. After zoomed in, the error starts popping up. The error persists with or without using sperical mercator. Below are the settings of TileCache and OpenLayers. TileCache: [4326en] type=WMSLayer url=http://localhost/wms.php?lang=en layers=national_border extension=png metaSize=10,10 sendfile=yes metaTile=true #extent_type=loose bbox=-180,-90,180,90 #spherical_mercator=true resolutions=1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00002145767211914062,0.00001072883605957031,0.00000536441802978515,0.00000268220901489257,0.0000013411045074462891,0.00000067055225372314453 OpenLayers: var options4326 = { resolutions: [0.17578125,0.0439453125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00001072883605957031,0.00000536441802978515,0.00000268220901489257], maxExtent: new OpenLayers.Bounds(-180,-90,180,90), projection:"EPSG:4326", controls: [] }; g_map = new OpenLayers.Map('map', options4326); var bg = new OpenLayers.Layer.WMS("Base", tclinks, {layers:'4326en',format:'image/png' /*,sphericalMercator:true*/}, {transitionEffect: 'resize'}); g_map.addLayer(bg); From relicary at gmail.com Thu Jan 19 04:50:22 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Thu Jan 19 04:51:08 2012 Subject: [OpenLayers-Users] Preserve map options when zoom in a map Message-ID: Hi! In my Ext.onReady(function() I have the next options to the map: var options = { controls : [new OpenLayers.Control()], minExtent : new OpenLayers.Bounds(-1, -1, 1, 1), maxResolution : 0.35, maxZoomLevel : 10, maxExtent : new OpenLayers.Bounds(-1.53544921875, 37.81, 0.0000, 40.84), tileSize : new OpenLayers.Size(400, 550) //Tama?o de las "tiles" que conforman el mapa }; map = new OpenLayers.Map('olmap', options); And the layers have {'buffer':1} property. But when I use the toolbar OpenLayers.Control.ZoomBox component, the map is draw with the default options. How can I preserve the first configuration although I zoom the map? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120119/ae532890/attachment.html From rscxdev at gmx.de Thu Jan 19 05:41:06 2012 From: rscxdev at gmx.de (rscxdev) Date: Thu Jan 19 05:41:24 2012 Subject: AW: [OpenLayers-Users] OpenStreetMap: wrong tile http address In-Reply-To: <6B19E3DC50DD4E5EAE9EECB9021B8DDB@pcawh2> References: <1326921342037-7201670.post@n2.nabble.com> <6B19E3DC50DD4E5EAE9EECB9021B8DDB@pcawh2> Message-ID: <1326969666508-7203200.post@n2.nabble.com> Perfect, at last i got rid of this annoying error! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenStreetMap-wrong-tile-http-address-tp7201670p7203200.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rscxdev at gmx.de Thu Jan 19 05:47:12 2012 From: rscxdev at gmx.de (rscxdev) Date: Thu Jan 19 05:47:52 2012 Subject: [OpenLayers-Users] Re: A LOT of features In-Reply-To: <1326927698178-7202081.post@n2.nabble.com> References: <1326927698178-7202081.post@n2.nabble.com> Message-ID: <1326970032563-7203211.post@n2.nabble.com> Hello when starting with OL i reflected on the same problem but finally i decided to display features only when the user zoomed in to a specific level where the amount of features wasnt too large... perhaps this could be a "solution" for you, too. Besides you can use clusters to combine a lot of features. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7203211.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From francescoboccacci at libero.it Thu Jan 19 06:07:55 2012 From: francescoboccacci at libero.it (francescoboccacci@libero.it) Date: Thu Jan 19 06:10:22 2012 Subject: [OpenLayers-Users] Repeat tiles continuous effects Message-ID: <27525566.1345931326971275317.JavaMail.defaultUser@defaultHost> Hi all, i'm wondering if there is a possibility (and how) to create a continuos pan (as openstreetmap do in all zoom level) to avoid block pan at the end of map extention so repeat tiles. Is there a parmeter to set into OpenLayer.Map object? at OpenLayer.Layer ? Thanks. Francesco Boccacci From ramotswa at gmail.com Thu Jan 19 06:12:30 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Thu Jan 19 06:12:52 2012 Subject: [OpenLayers-Users] Repeat tiles continuous effects In-Reply-To: <27525566.1345931326971275317.JavaMail.defaultUser@defaultHost> References: <27525566.1345931326971275317.JavaMail.defaultUser@defaultHost> Message-ID: Do you mean wrapDateLine? http://openlayers.org/dev/examples/wrapDateLine.html Toby On 19 January 2012 11:07, francescoboccacci@libero.it wrote: > Hi all, > i'm wondering if there is a possibility (and how) to create a continuos pan > (as openstreetmap do in all zoom level) to avoid block pan at the end of map > extention so repeat tiles. Is there a parmeter to set into OpenLayer.Map > object? at OpenLayer.Layer ? > Thanks. > > Francesco Boccacci > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From francescoboccacci at libero.it Thu Jan 19 06:40:06 2012 From: francescoboccacci at libero.it (francescoboccacci@libero.it) Date: Thu Jan 19 06:40:15 2012 Subject: R: Re: [OpenLayers-Users] Repeat tiles continuous effects Message-ID: <13399403.1366581326973206139.JavaMail.defaultUser@defaultHost> it works also for OpenLayers.Layer.OSM Thanks Francesco Boccacci >----Messaggio originale---- >Da: ramotswa@gmail.com >Data: 19/01/2012 12.12 >A: "francescoboccacci@libero.it" >Cc: >Ogg: Re: [OpenLayers-Users] Repeat tiles continuous effects > >Do you mean wrapDateLine? > >http://openlayers.org/dev/examples/wrapDateLine.html > >Toby > >On 19 January 2012 11:07, francescoboccacci@libero.it > wrote: >> Hi all, >> i'm wondering if there is a possibility (and how) to create a continuos pan >> (as openstreetmap do in all zoom level) to avoid block pan at the end of map >> extention so repeat tiles. Is there a parmeter to set into OpenLayer.Map >> object? at OpenLayer.Layer ? >> Thanks. >> >> Francesco Boccacci >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > From umberto.nicoletti at gmail.com Thu Jan 19 08:02:52 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu Jan 19 08:03:29 2012 Subject: [OpenLayers-Users] A LOT of features In-Reply-To: <1326927698178-7202081.post@n2.nabble.com> References: <1326927698178-7202081.post@n2.nabble.com> Message-ID: I apologize for the shameless plug (the accepted solution is mine), but a similar question popped up on gis.se recently and I think it could contribute to the discussion: http://gis.stackexchange.com/questions/18572/openlayers-alternatives-supporting-more-client-side-features Regards, Umberto On Thu, Jan 19, 2012 at 12:01 AM, Tondo wrote: > Hi lists, > > I have a simple question... I've got one vector layer, that might be > sometimes loaded by huge amount of data (hundreds/thousands of features). > What is the limit of features? Thank you! > > Regards, > Tom. > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7202081.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120119/c15df7df/attachment-0001.html From punk.kish at gmail.com Thu Jan 19 08:58:55 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Thu Jan 19 08:59:00 2012 Subject: [OpenLayers-Users] struggling to draw a simple rectange Message-ID: <105F5502-C5BC-4B4F-9D07-7035BAB003B9@gmail.com> This is just not obvious to me, apologies for that. I am trying to draw a rectangle on a Google Maps base layer. var vectorLayer = new OpenLayers.Layer.Vector("layer"); var p = new OpenLayers.Bounds(0,0,10,10).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ).toGeometry(); map.addLayer(vectorLayer); vectorLayer.addFeatures([p]); The above does nothing for me. Please set me right. -- Puneet Kishor From pfischer at proveo.com Thu Jan 19 11:03:24 2012 From: pfischer at proveo.com (Peter) Date: Thu Jan 19 11:03:45 2012 Subject: [OpenLayers-Users] drawing polygons with different Colors Message-ID: <1326989004655-7204486.post@n2.nabble.com> hey guys, i' ve got 1 vector layer and with the drawFeature Control i draw polygons on this layer. But i have got no idea how i could change the Color of a drawn polygon afterwards. any ideas? Greetings and thanks for your help =) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/drawing-polygons-with-different-Colors-tp7204486p7204486.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From pfischer at proveo.com Thu Jan 19 11:04:01 2012 From: pfischer at proveo.com (Peter) Date: Thu Jan 19 11:04:25 2012 Subject: [OpenLayers-Users] Thanks In-Reply-To: <1F3C21B08AB448928CC26D1086E2895C@pcawh2> References: <1326467947520-7184326.post@n2.nabble.com> <824DFDC29B084223AFC924725729523E@pcawh2> <1326882671481-7199558.post@n2.nabble.com> <1F3C21B08AB448928CC26D1086E2895C@pcawh2> Message-ID: <1326989041815-7204489.post@n2.nabble.com> Thanks for your help =) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-layers-tp7184326p7204489.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Thu Jan 19 12:50:19 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu Jan 19 12:51:02 2012 Subject: AW: [OpenLayers-Users] struggling to draw a simple rectange In-Reply-To: <105F5502-C5BC-4B4F-9D07-7035BAB003B9@gmail.com> References: <105F5502-C5BC-4B4F-9D07-7035BAB003B9@gmail.com> Message-ID: Hi, You shoud add a feature not a geometry var vectorLayer = new OpenLayers.Layer.Vector("layer"); //as the funtion says, you get a geometry var p = new OpenLayers.Bounds(0,0,10,10).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ).toGeometry(); //console.log(p.CLASS_NAME); var ft = new OpenLayers.Feature.Vector(p); map.addLayer(vectorLayer); vectorLayer.addFeatures([ft]); Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Mr. Puneet Kishor Gesendet: Donnerstag, 19. Januar 2012 14:59 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] struggling to draw a simple rectange This is just not obvious to me, apologies for that. I am trying to draw a rectangle on a Google Maps base layer. var vectorLayer = new OpenLayers.Layer.Vector("layer"); var p = new OpenLayers.Bounds(0,0,10,10).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ).toGeometry(); map.addLayer(vectorLayer); vectorLayer.addFeatures([p]); The above does nothing for me. Please set me right. -- Puneet Kishor_______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From gpktondo at gmail.com Thu Jan 19 13:19:33 2012 From: gpktondo at gmail.com (Tondo) Date: Thu Jan 19 13:19:58 2012 Subject: [OpenLayers-Users] Re: A LOT of features In-Reply-To: <4F175D5F.6040501@gmx.net> References: <1326927698178-7202081.post@n2.nabble.com> <4F175D5F.6040501@gmx.net> Message-ID: <1326997173975-7204846.post@n2.nabble.com> Thank you very much. I'm affraid, my data are vast. I mean, data are measured with a maximum deviation of two meters. My data consists of 50 thematic layers - small town - so that means there are realy A LOT OF verticies. I presume that the most suitable rendering method will be SVG2. WFS layers are published from GeoServer and GeoMedia WebMap Pro. Performance of virtual drive are two cores (4 threads), 2GB DDR3 RAM. The question is, what is the fastest browser (FireFox / Chrome). Using BBox strategy will be necessarily. I must not force user to zoom to see features/layers, so do you have any other ideas how to speed it up? Regards, Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7204846.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Jan 19 14:31:38 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu Jan 19 14:31:53 2012 Subject: [OpenLayers-Users] selectable grid control Message-ID: I have finally managed to mock up a selectable grid control (see http://mumbai.geology.wisc.edu/test/svg_grid.html). The pseudocode is as follows // create styleMap var myStyles = new OpenLayers.StyleMap... // create and add grid_layer var grid_layer = new OpenLayers.Layer.Vector("Grid", {styleMap: myStyles}); map.addLayer(grid_layer); // create grid cells var cells = []; for (var r = 0; r < rows; r++) { for (var c = 0; c < cols; c++) { ... } } // add the cells to the grid_layer grid_layer.addFeatures(cells); // add and activate highlight and select controls I have the following questions: 1. Seems like I am unable to make the grid line thinner. I have set strokeWidth: 1, but it looks rather thick. Can I make it thinner? 2. I want the grid to remain the same size whether I zoom in or out. Do I have to destroy the layer and re-make it on every map change, resize, etc.? 3. "double-click to zoom", "press shift and drag to zoom", or "click-hold and drag to pan" are no longer possible because selectControl takes over. Is there a way to accomplish both? And, the over-arching question 0. Is there a better way to accomplish all this? Many thanks in advance for your suggestions, -- Puneet Kishor From punk.kish at gmail.com Thu Jan 19 16:00:03 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu Jan 19 16:00:14 2012 Subject: [OpenLayers-Users] removing a layer Message-ID: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> I am trying to remove a layer with if (map.getLayerIndex(layer) > 0) { map.removeLayer(layer); } but no joy. How can I remove a layer? A bonus question: if I want to reconstruct a vector layer on map "zoomend", that is, redraw all the features on it so they are resized accordingly, should I remove the layer (hence, the question above), or simply remove all the features and redraw the features? If the latter, then how? Many thanks, -- Puneet Kishor From punk.kish at gmail.com Thu Jan 19 17:19:47 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu Jan 19 17:20:08 2012 Subject: [OpenLayers-Users] Re: removing a layer In-Reply-To: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> References: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> Message-ID: I am completely at my wits end. I am trying to check if a vector layer exists, and if it does, I need to either completely remove it or remove all the features from it (whichever is more efficient from the point of speed and memory), and then redraw that layer. Have been trying all sorts of permutations and combinations, but am just not successful. My latest code attempt is below, and the original attempt is below that from my OP. var arr = map.getLayersByName("Vector layer"); if (arr.length) { //map.removeLayer(arr[0]); layer.removeAllFeatures(); } else { layer = new OpenLayers.Layer.Vector("Vector layer", {styleMap: myStyles}); } Neither `map.removeLayer(arr[0])` nor `layer.removeAllFeatures()` works. Would appreciate suggestions. On Jan 19, 2012, at 3:00 PM, Puneet Kishor wrote: > I am trying to remove a layer with > > if (map.getLayerIndex(layer) > 0) { > map.removeLayer(layer); > } > > but no joy. How can I remove a layer? > > A bonus question: if I want to reconstruct a vector layer on map "zoomend", that is, redraw all the features on it so they are resized accordingly, should I remove the layer (hence, the question above), or simply remove all the features and redraw the features? If the latter, then how? > > Many thanks, > > -- > Puneet Kishor From zac.spitzer at gmail.com Thu Jan 19 17:44:21 2012 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Thu Jan 19 17:45:28 2012 Subject: [OpenLayers-Users] Re: A LOT of features In-Reply-To: <1326997173975-7204846.post@n2.nabble.com> References: <1326927698178-7202081.post@n2.nabble.com> <4F175D5F.6040501@gmx.net> <1326997173975-7204846.post@n2.nabble.com> Message-ID: u need to use a real mapserver, like mapguide, geoserver or mapserver On Fri, Jan 20, 2012 at 5:19 AM, Tondo wrote: > Thank you very much. > > I'm affraid, my data are vast. I mean, data are measured with a maximum > deviation of two meters. My data consists of 50 thematic layers - small town > - so that means there are realy A LOT OF verticies. > > I presume that the most suitable rendering method will be SVG2. WFS layers > are published from GeoServer and GeoMedia WebMap Pro. Performance of virtual > drive are two cores (4 threads), 2GB DDR3 RAM. The question is, what is the > fastest browser (FireFox / Chrome). > > Using BBox strategy will be necessarily. I must not force user to zoom to > see features/layers, so do you have any other ideas how to speed it up? > > Regards, > Tom > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/A-LOT-of-features-tp7202081p7204846.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From chris at windsorsolutions.com Thu Jan 19 18:00:28 2012 From: chris at windsorsolutions.com (crb) Date: Thu Jan 19 18:01:23 2012 Subject: [OpenLayers-Users] Re: Duplicate labels display in ArcGIS Server REST map service when viewing through OpenLayers API In-Reply-To: <307626015.193191.1271264672644.JavaMail.root@hub> References: <307626015.193191.1271264672644.JavaMail.root@hub> Message-ID: <1327014028630-7205708.post@n2.nabble.com> I am seeing the same thing today with ArcGIS Server v10 SP1 REST services. I've tried several different labeling options on the server side ('Remove duplicate labels', 'Place one label per feature', 'Only place label inside polygon') but OL still displays several labels per polygon feature. If I view the same AGS service using the AGS JavaScript API, the labels are rendered correctly, i.e. one per polygon. Has anyone else found a workaround for this? Thanks in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Duplicate-labels-display-in-ArcGIS-Server-REST-map-service-when-viewing-through-OpenLayers-API-tp4902888p7205708.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Jan 19 18:54:46 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu Jan 19 18:55:18 2012 Subject: [OpenLayers-Users] customizing permalink Message-ID: I want to add the permalink control to the map, but I don't want to display it as is out of the box. Or, to be more precise, I want to build my own permalink link so that I can add a few more custom params to the link that the control builds, and then do something with that link, for example, store it in the db, or pop it in a window, etc. How can I do that? -- Puneet Kishor From fatzopilot at gmx.net Thu Jan 19 19:21:59 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Thu Jan 19 19:22:23 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <1326554547980-7187723.post@n2.nabble.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> Message-ID: <1327018919100-7205957.post@n2.nabble.com> Can somebody confirm that IE is treatet differently when it comes to rendering features of a vector layer(that have a SVG as ExternalGraphic). Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7205957.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jan 19 20:23:12 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu Jan 19 20:25:12 2012 Subject: [OpenLayers-Users] customizing permalink In-Reply-To: References: Message-ID: <4F18C200.5090909@swoodbridge.com> On 1/19/2012 6:54 PM, Puneet Kishor wrote: > I want to add the permalink control to the map, but I don't want to display it as is out of the box. Or, to be more precise, I want to build my own permalink link so that I can add a few more custom params to the link that the control builds, and then do something with that link, for example, store it in the db, or pop it in a window, etc. > > How can I do that? Here is an example where are add additional parameters: http://gis.imaptools.com/routing/leaddog/?zoom=14&lat=33.85749&lon=35.51971&layers=B0TTTF&start=35.493583%2033.826664&stop=35.565174%2033.864285&method=STS&lang=arb Feel free to look at the page source to see how I did it. -Steve From rajjad at gmail.com Thu Jan 19 23:40:45 2012 From: rajjad at gmail.com (Imran Rajjad) Date: Thu Jan 19 23:41:19 2012 Subject: [OpenLayers-Users] Re: removing a layer In-Reply-To: References: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> Message-ID: I think the correct function is layer.destroyFeatures(); which will empty the vector layer. You should not remove or re-initialize the layer. It makes sense to remove the layer from the map if you do not need it further. regards, Imran On Fri, Jan 20, 2012 at 3:19 AM, Puneet Kishor wrote: > I am completely at my wits end. I am trying to check if a vector layer > exists, and if it does, I need to either completely remove it or remove all > the features from it (whichever is more efficient from the point of speed > and memory), and then redraw that layer. Have been trying all sorts of > permutations and combinations, but am just not successful. > > My latest code attempt is below, and the original attempt is below that > from my OP. > > var arr = map.getLayersByName("Vector layer"); > > if (arr.length) { > //map.removeLayer(arr[0]); > layer.removeAllFeatures(); > } > else { > layer = new OpenLayers.Layer.Vector("Vector layer", {styleMap: > myStyles}); > } > > Neither `map.removeLayer(arr[0])` nor `layer.removeAllFeatures()` works. > > Would appreciate suggestions. > > On Jan 19, 2012, at 3:00 PM, Puneet Kishor wrote: > > > I am trying to remove a layer with > > > > if (map.getLayerIndex(layer) > 0) { > > map.removeLayer(layer); > > } > > > > but no joy. How can I remove a layer? > > > > A bonus question: if I want to reconstruct a vector layer on map > "zoomend", that is, redraw all the features on it so they are resized > accordingly, should I remove the layer (hence, the question above), or > simply remove all the features and redraw the features? If the latter, then > how? > > > > Many thanks, > > > > -- > > Puneet Kishor > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- I.R -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120120/99c982c5/attachment.html From hhudson at katmandu.org Fri Jan 20 01:46:37 2012 From: hhudson at katmandu.org (hhudson@katmandu.org) Date: Fri Jan 20 01:47:40 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <1327018919100-7205957.post@n2.nabble.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> Message-ID: <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> When I specified the original poster's 1005.svg as the externalGraphic along with graphicWidth: 90 and graphicHeight: 90, it rendered for me no problem at all in ie9. Regards, Harris. > Can somebody confirm that IE is treatet differently when it comes to > rendering features of a vector layer(that have a SVG as ExternalGraphic). > > Thanks > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7205957.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From fatzopilot at gmx.net Fri Jan 20 10:22:12 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Fri Jan 20 10:22:43 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> Message-ID: <1327072932558-7207896.post@n2.nabble.com> Strange, even using the op's SVG all I get in IE9 is a missing image frame, while it works flawlessly in FF and Chrome. It might be a problem with GWT-Openlayers. Do you know of a public example (showcase maybe) that uses (GWT-)Openlayers and SVG as externalGraphic and that works for you? Thanks fatzopilot -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7207896.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From fatzopilot at gmx.net Fri Jan 20 10:22:12 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Fri Jan 20 10:22:45 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> Message-ID: <1327072932025-7207893.post@n2.nabble.com> Strange, even using the op's SVG all I get in IE9 is a missing image frame, while it works flawlessly in FF and Chrome. It might be a problem with GWT-Openlayers. Do you know of a public example (showcase maybe) that uses (GWT-)Openlayers and SVG as externalGraphic and that works for you? Thanks fatzopilot -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7207893.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From goerlitz at uni-koblenz.de Fri Jan 20 10:17:30 2012 From: goerlitz at uni-koblenz.de (=?ISO-8859-15?Q?Olaf_G=F6rlitz?=) Date: Fri Jan 20 10:24:31 2012 Subject: [OpenLayers-Users] Find out when rendering of vector features (using externalGraphic) is completed Message-ID: <4F19858A.30509@uni-koblenz.de> Hi all, I'm trying to implement a heatmap based on olheatmap (http://olheatmap.sourceforge.net/). First, an intensity circle is drawn for each feature using a radial gradient image with differnt alpha values. Afterwards, the alpha values in the layer's canvas are mapped to the heatmap's color gradient. The problem is that rendering the features is not finished yet before the heatmap transformation starts and I could not find any event which indicates that the rendering is completed. I registered listeners for all events of the layer but all I get is 'beforefeatureadded', 'featureadded', 'featuresadded' and mouse events. I don't observe any 'sketchcomplete' or 'loadend' event. Is there any way to find out when rendering of the features is done? (Interestingly, if the mouse cursor is not on the map, it seems that a 'mouseout' event is triggered just after the rendering finishes). Below is the minimal code I use for generating the heatmap. Thanks for your help, Olaf -------------------- From francescoboccacci at libero.it Fri Jan 20 11:06:16 2012 From: francescoboccacci at libero.it (francescoboccacci@libero.it) Date: Fri Jan 20 11:06:52 2012 Subject: [OpenLayers-Users] how insert a Logo image and a label in my map? Message-ID: <30744885.16075191327075576601.JavaMail.defaultUser@defaultHost> Hi, i would like to insert in my map a logo image and a label. For the label i used: var test = new OpenLayers.Layer.OSM("Background", "http://localhost/${z}/${x}/${y}.png", { sphericalMercator: true }, {wrapDateLine: true}, {attribution:"Provided by Me"} ); but it doesn't work. For the logo image i don't know. Thanks Francesco Boccacci From osm at tappenbeck.net Fri Jan 20 11:59:59 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Fri Jan 20 12:00:17 2012 Subject: [OpenLayers-Users] Problem to show tiles of maperitive-render-tiles Message-ID: <4F199D8F.3060008@tappenbeck.net> hi ! i have render some tiles for the area of europe - names only by zoom-level 4->10. the layer is include by var newLayer = new OpenLayers.Layer.OSM.Local("NewLayerLocal"); map.addLayer(newLayer); additional in OpenStreetMap.js OpenLayers.Layer.OSM.Local = OpenLayers.Class(OpenLayers.Layer.OSM, { initialize: function(name, options) { var url = [ "http://www.tappenbeck.net/osm/ferry2011/tiles/${z}/${x}/${y}.png" ]; options = OpenLayers.Util.extend( { numZoomLevels: 19, isBaseLayer: false}, options); var newArguments = [name, url, options]; OpenLayers.Layer.OSM.prototype.initialize.apply (this,newArguments); }, CLASS_NAME: "OpenLayers.Layer.OSM.Local" }); and you can show in http://osm.tappenbeck.net/ferry2011/deu/ferry_iframe_debug.php the problem now is when the zoom-level is 5 and higher the names of the north will repeat - but only in the vertical to the north. did anyone have a idea ?? regards Jan :-) From punk.kish at gmail.com Fri Jan 20 12:45:06 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri Jan 20 12:45:13 2012 Subject: [OpenLayers-Users] Re: removing a layer In-Reply-To: References: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> Message-ID: <8F8C710A-1187-4850-B26A-C459B0BFD112@gmail.com> On Jan 19, 2012, at 10:40 PM, Imran Rajjad wrote: > I think the correct function is > > layer.destroyFeatures(); > > which will empty the vector layer. You should not remove or re-initialize > the layer. It makes sense to remove the layer from the map if you do not > need it further. Thanks, but nope, that does not work. here is my pseudocode triggered "onzoomend" var layer, features = []; function foo() { if (features.length > 0) { layer.destroyFeatures(); features.length = 0; } else { layer = new OpenLayers.Layer.Vector("A vector layer"); map.addLayer(layer); } // add features and store in array for (var i = 0; i < n; i++) { var feature = createFeature(); features.push(feature); } layer.addFeatures(features); } Everytime I zoom in or out, the above is triggered. features[] has n elements all the time showing that it is emptied and refilled, but the layer from previous iteration is still visible on the map. Any other suggestions? This should not be so difficult but is confounding me. Maybe it needs its own special entry on a wiki or an FAQ. > > regards, > Imran > On Fri, Jan 20, 2012 at 3:19 AM, Puneet Kishor wrote: > >> I am completely at my wits end. I am trying to check if a vector layer >> exists, and if it does, I need to either completely remove it or remove all >> the features from it (whichever is more efficient from the point of speed >> and memory), and then redraw that layer. Have been trying all sorts of >> permutations and combinations, but am just not successful. >> >> My latest code attempt is below, and the original attempt is below that >> from my OP. >> >> var arr = map.getLayersByName("Vector layer"); >> >> if (arr.length) { >> //map.removeLayer(arr[0]); >> layer.removeAllFeatures(); >> } >> else { >> layer = new OpenLayers.Layer.Vector("Vector layer", {styleMap: >> myStyles}); >> } >> >> Neither `map.removeLayer(arr[0])` nor `layer.removeAllFeatures()` works. >> >> Would appreciate suggestions. >> >> On Jan 19, 2012, at 3:00 PM, Puneet Kishor wrote: >> >>> I am trying to remove a layer with >>> >>> if (map.getLayerIndex(layer) > 0) { >>> map.removeLayer(layer); >>> } >>> >>> but no joy. How can I remove a layer? >>> >>> A bonus question: if I want to reconstruct a vector layer on map >> "zoomend", that is, redraw all the features on it so they are resized >> accordingly, should I remove the layer (hence, the question above), or >> simply remove all the features and redraw the features? If the latter, then >> how? >>> >>> Many thanks, >>> >>> -- >>> Puneet Kishor >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > > -- > I.R From hhudson at katmandu.org Sat Jan 21 00:22:07 2012 From: hhudson at katmandu.org (hhudson@katmandu.org) Date: Sat Jan 21 00:22:52 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <1327072932025-7207893.post@n2.nabble.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> <1327072932025-7207893.post@n2.nabble.com> Message-ID: <0fe7899570c0e348fd79083e517ae21f.squirrel@webmail.utlchart.com> Have you got at the start of your page? If missing that could possibly be the reason IE is behaving differently. > Strange, even using the op's SVG all I get in IE9 is a missing image > frame, > while it works flawlessly in FF and Chrome. It might be a problem with > GWT-Openlayers. Do you know of a public example (showcase maybe) that uses > (GWT-)Openlayers and SVG as externalGraphic and that works for you? > > > Thanks > fatzopilot > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/SVG-Overlay-tp7050997p7207893.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From osm at tappenbeck.net Sat Jan 21 03:20:01 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Sat Jan 21 03:20:50 2012 Subject: [OpenLayers-Users] Re: Problem to show tiles .... additional infos In-Reply-To: <4F199D8F.3060008@tappenbeck.net> References: <4F199D8F.3060008@tappenbeck.net> Message-ID: hi ! here are some additional infos. the tiles are only in a tile-folder on my webspace without any special additional slippy-map-software! regards Jan :-) Am 20.01.2012 17:59, schrieb Jan Tappenbeck: > hi ! > > i have render some tiles for the area of europe - names only by > zoom-level 4->10. > > the layer is include by > > var newLayer = new OpenLayers.Layer.OSM.Local("NewLayerLocal"); > map.addLayer(newLayer); > > additional in OpenStreetMap.js > > OpenLayers.Layer.OSM.Local = OpenLayers.Class(OpenLayers.Layer.OSM, { > > initialize: function(name, options) { > > var url = [ > "http://www.tappenbeck.net/osm/ferry2011/tiles/${z}/${x}/${y}.png" > ]; > > options = OpenLayers.Util.extend( > { numZoomLevels: 19, isBaseLayer: false}, options); > var newArguments = [name, url, options]; > OpenLayers.Layer.OSM.prototype.initialize.apply > (this,newArguments); > }, > > CLASS_NAME: "OpenLayers.Layer.OSM.Local" > }); > > > > and you can show in > http://osm.tappenbeck.net/ferry2011/deu/ferry_iframe_debug.php > > the problem now is when the zoom-level is 5 and higher the names of the > north will repeat - but only in the vertical to the north. > > did anyone have a idea ?? > > regards Jan :-) From francescoboccacci at libero.it Sat Jan 21 07:45:12 2012 From: francescoboccacci at libero.it (francescoboccacci@libero.it) Date: Sat Jan 21 07:45:52 2012 Subject: [OpenLayers-Users] how to capture LoadImagerror Message-ID: <15685591.16323971327149912232.JavaMail.defaultUser@defaultHost> Hi all, i'd like capture a map event when a tile is broken (404). Is ther a event to capture it and run my function? Thanks Francesco From ahocevar at opengeo.org Sat Jan 21 08:07:26 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat Jan 21 08:07:42 2012 Subject: [OpenLayers-Users] how to capture LoadImagerror In-Reply-To: <15685591.16323971327149912232.JavaMail.defaultUser@defaultHost> References: <15685591.16323971327149912232.JavaMail.defaultUser@defaultHost> Message-ID: Currently there is no clean way to do this, but the following should work in all browsers except IE < 9 (untested): layer.events.register("tileloaded", this, function() { if (document.getElementsByClassName("olImageLoadError").length) { /* your error handling code here */ } }); Note that if you only want to change the appearance of a broken tile, it is enough to add some css for the .olImageLoadError selector. Andreas. On Sat, Jan 21, 2012 at 1:45 PM, francescoboccacci@libero.it wrote: > Hi all, > i'd like capture a map event when a tile is broken (404). Is ther a event to > capture it and run my function? > Thanks > > Francesco > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From w_ward_W at hotmail.com Sat Jan 21 09:41:40 2012 From: w_ward_W at hotmail.com (Shadin) Date: Sat Jan 21 09:42:00 2012 Subject: [OpenLayers-Users] Follow the arrows Message-ID: <1327156900220-7211128.post@n2.nabble.com> * I am wondering about how to replace my features with arrows depending on its direction in the DB. the direction shown as numbers from 0 - 360 I have found this but still not sure has anyone ever tried something similar ? * http://blog.geoserver.org/2009/04/02/follow-the-arrows/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Follow-the-arrows-tp7211128p7211128.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/20120121/82eecaf1/attachment.html From vrbikdan at gmail.com Sat Jan 21 14:25:49 2012 From: vrbikdan at gmail.com (vrbikdan) Date: Sat Jan 21 14:26:30 2012 Subject: [OpenLayers-Users] minScale maxScale doesn't work Message-ID: <1327173949694-7211677.post@n2.nabble.com> Hi, I'm trying to set min and max scale for layer. I used this part of code: kontiky_layer = new OpenLayers.Layer.GML("GML", "kontikyVrstva/kontikyFinalGML.gml", {projection: map.displayProjection, styleMap: styleKontiky},{minScale: 60000, maxScale: 10000}) But unfortunately layer is still visible in all scales. Whole map with code is here: http://vrbikdan.xf.cz/kontiky/kontiky.html http://vrbikdan.xf.cz/kontiky/kontiky.html . Can you tell me what is wrong? Thanks, Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/minScale-maxScale-doesn-t-work-tp7211677p7211677.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Sat Jan 21 15:27:14 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Sat Jan 21 16:22:56 2012 Subject: [OpenLayers-Users] WMS requests executed twice Message-ID: <4F1B1FA2.5060002@uva.nl> Hi all, I made a very simple OpenLayers test site, displaying a simple local MapServer map as an untiled WMS service. Works fine, but when I look in the server log, each OpenLayer GetMap request results in *two* identical requests to the server. Can anyone confirm this, and why does it happen? Jan Hartmann Amsterdam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120121/293c1c37/attachment.html From ramotswa at gmail.com Sat Jan 21 16:30:45 2012 From: ramotswa at gmail.com (Toby R) Date: Sat Jan 21 16:31:43 2012 Subject: [OpenLayers-Users] WMS requests executed twice In-Reply-To: <4F1B1FA2.5060002@uva.nl> References: <4F1B1FA2.5060002@uva.nl> Message-ID: <5399553103870619420@unknownmsgid> Have you made sure you've only got a bounding box OR a fixed strategy on your wms layer? That has caught me out once or twice. If not, post some code. Toby On 21 Jan 2012, at 21:22, Jan Hartmann wrote: Hi all, I made a very simple OpenLayers test site, displaying a simple local MapServer map as an untiled WMS service. Works fine, but when I look in the server log, each OpenLayer GetMap request results in *two* identical requests to the server. Can anyone confirm this, and why does it happen? Jan Hartmann Amsterdam _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120121/592b6a85/attachment.html From punk.kish at gmail.com Sat Jan 21 16:48:38 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Sat Jan 21 16:49:35 2012 Subject: [OpenLayers-Users] customizing permalink In-Reply-To: <4F18C200.5090909@swoodbridge.com> References: <4F18C200.5090909@swoodbridge.com> Message-ID: <9520CF7E-23D3-4B8C-B172-BC737FA7DBD0@gmail.com> On Jan 19, 2012, at 7:23 PM, Stephen Woodbridge wrote: > On 1/19/2012 6:54 PM, Puneet Kishor wrote: >> I want to add the permalink control to the map, but I don't want to display it as is out of the box. Or, to be more precise, I want to build my own permalink link so that I can add a few more custom params to the link that the control builds, and then do something with that link, for example, store it in the db, or pop it in a window, etc. >> >> How can I do that? > > Here is an example where are add additional parameters: > > http://gis.imaptools.com/routing/leaddog/?zoom=14&lat=33.85749&lon=35.51971&layers=B0TTTF&start=35.493583%2033.826664&stop=35.565174%2033.864285&method=STS&lang=arb > > Feel free to look at the page source to see how I did it. Great help, thanks. That got me started, but I don't have a working solution yet. Here is what is going on... I am trying to customize the permalink control using the following function var state = {}; new OpenLayers.Control.Permalink( "permalink", uri, { "createParams": function() { var args = OpenLayers.Control.Permalink.prototype.createParams.apply( this, arguments ); // add my args here if (state) { for (var s in state) { args[s] = encodeURI(state[s]); } } return args; } } ); and then, in my map I have buttons that invoke different functionality. For example, one functionality is like so "doThat": function(a, b, c) { // update state state = { action: "doFoo", params: { a: a, b: b, c: c } }; .. do something .. }; My intent is to generate a permalink that looks like so http://server/app?zoom=6&lat=-1.35&lon=-38.14&layers=TB000TTTTT&action=doThat&a="foo"&b=43&c="bar" The problem is, by the time doThat() is called and it updates state, the permalink has already been formed, so it doesn't yet have the updated values from "state". If I now move the map or do something else, that is when the permalink gets updated with the values from "state" but it is always one action behind ? how do I get around this phase lag? In other words, I want to update the permalink *after* the "state" has been updated so that when "createParams" is called, it creates the correct permalink. -- Puneet Kishor From punk.kish at gmail.com Sat Jan 21 16:51:16 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Sat Jan 21 16:51:31 2012 Subject: [OpenLayers-Users] removing a layer In-Reply-To: <8F8C710A-1187-4850-B26A-C459B0BFD112@gmail.com> References: <3F7EF786-BFA3-4396-B94A-80E4E2D781A2@gmail.com> <8F8C710A-1187-4850-B26A-C459B0BFD112@gmail.com> Message-ID: <31FF8171-8DAF-464C-A4FB-436F1C32E5C1@gmail.com> anyone, any suggestions? I am stuck on this for a couple of three days now. Briefly, I want to remove all the features from a vector layer so I can draw them anew on every "zoomend" Many thanks in advance. On Jan 20, 2012, at 11:45 AM, Puneet Kishor wrote: > > On Jan 19, 2012, at 10:40 PM, Imran Rajjad wrote: > >> I think the correct function is >> >> layer.destroyFeatures(); >> >> which will empty the vector layer. You should not remove or re-initialize >> the layer. It makes sense to remove the layer from the map if you do not >> need it further. > > > Thanks, but nope, that does not work. here is my pseudocode triggered "onzoomend" > > var layer, features = []; > > function foo() { > if (features.length > 0) { > layer.destroyFeatures(); > features.length = 0; > } > else { > layer = new OpenLayers.Layer.Vector("A vector layer"); > map.addLayer(layer); > } > > // add features and store in array > for (var i = 0; i < n; i++) { > var feature = createFeature(); > features.push(feature); > } > > layer.addFeatures(features); > } > > Everytime I zoom in or out, the above is triggered. features[] has n elements all the time showing that it is emptied and refilled, but the layer from previous iteration is still visible on the map. Any other suggestions? > > This should not be so difficult but is confounding me. Maybe it needs its own special entry on a wiki or an FAQ. > > > >> >> regards, >> Imran >> On Fri, Jan 20, 2012 at 3:19 AM, Puneet Kishor wrote: >> >>> I am completely at my wits end. I am trying to check if a vector layer >>> exists, and if it does, I need to either completely remove it or remove all >>> the features from it (whichever is more efficient from the point of speed >>> and memory), and then redraw that layer. Have been trying all sorts of >>> permutations and combinations, but am just not successful. >>> >>> My latest code attempt is below, and the original attempt is below that >>> from my OP. >>> >>> var arr = map.getLayersByName("Vector layer"); >>> >>> if (arr.length) { >>> //map.removeLayer(arr[0]); >>> layer.removeAllFeatures(); >>> } >>> else { >>> layer = new OpenLayers.Layer.Vector("Vector layer", {styleMap: >>> myStyles}); >>> } >>> >>> Neither `map.removeLayer(arr[0])` nor `layer.removeAllFeatures()` works. >>> >>> Would appreciate suggestions. >>> >>> On Jan 19, 2012, at 3:00 PM, Puneet Kishor wrote: >>> >>>> I am trying to remove a layer with >>>> >>>> if (map.getLayerIndex(layer) > 0) { >>>> map.removeLayer(layer); >>>> } >>>> >>>> but no joy. How can I remove a layer? >>>> >>>> A bonus question: if I want to reconstruct a vector layer on map >>> "zoomend", that is, redraw all the features on it so they are resized >>> accordingly, should I remove the layer (hence, the question above), or >>> simply remove all the features and redraw the features? If the latter, then >>> how? >>>> >>>> Many thanks, >>>> >>>> -- >>>> Puneet Kishor >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> >> >> -- >> I.R > From roy at rbdb.net Sat Jan 21 16:54:42 2012 From: roy at rbdb.net (Roy Barkas) Date: Sat Jan 21 16:54:59 2012 Subject: [OpenLayers-Users] simple text or html control Message-ID: I'm converting a fairly complex GoogleMaps V3 app to use OpenLayers. So far, so good - seems to work well. I've been looking through the documentation / examples for a way to add a control within the map div where the control contains either simple text or else it contains html (tables, forms, etc). The control would be positionally fixed on the screen, not tied to a geo position So far I haven't found an example of a way to do this. It's probably staring me in the face but... Can someone point me at the solution? Thanks RoyHB -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120122/543d8cc5/attachment.html From punk.kish at gmail.com Sat Jan 21 17:06:13 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Sat Jan 21 17:06:23 2012 Subject: [OpenLayers-Users] customizing permalink In-Reply-To: <9520CF7E-23D3-4B8C-B172-BC737FA7DBD0@gmail.com> References: <4F18C200.5090909@swoodbridge.com> <9520CF7E-23D3-4B8C-B172-BC737FA7DBD0@gmail.com> Message-ID: <0D311259-FAC5-48A1-B439-7F56911EC0D0@gmail.com> an update below -- On Jan 21, 2012, at 3:48 PM, Puneet Kishor wrote: > > On Jan 19, 2012, at 7:23 PM, Stephen Woodbridge wrote: > >> On 1/19/2012 6:54 PM, Puneet Kishor wrote: >>> I want to add the permalink control to the map, but I don't want to display it as is out of the box. Or, to be more precise, I want to build my own permalink link so that I can add a few more custom params to the link that the control builds, and then do something with that link, for example, store it in the db, or pop it in a window, etc. >>> >>> How can I do that? >> >> Here is an example where are add additional parameters: >> >> http://gis.imaptools.com/routing/leaddog/?zoom=14&lat=33.85749&lon=35.51971&layers=B0TTTF&start=35.493583%2033.826664&stop=35.565174%2033.864285&method=STS&lang=arb >> >> Feel free to look at the page source to see how I did it. > > > Great help, thanks. That got me started, but I don't have a working solution yet. Here is what is going on... I am trying to customize the permalink control using the following function > > var state = {}; > > new OpenLayers.Control.Permalink( > "permalink", > uri, > { > "createParams": function() { > var args = OpenLayers.Control.Permalink.prototype.createParams.apply( > this, arguments > ); > > // add my args here > if (state) { > for (var s in state) { > args[s] = encodeURI(state[s]); > } > } > > return args; > } > } > ); > > and then, in my map I have buttons that invoke different functionality. For example, one functionality is like so > > "doThat": function(a, b, c) { > > // update state > state = { > action: "doFoo", > params: { > a: a, > b: b, > c: c > } > }; > > .. do something .. > }; > > My intent is to generate a permalink that looks like so > > http://server/app?zoom=6&lat=-1.35&lon=-38.14&layers=TB000TTTTT&action=doThat&a="foo"&b=43&c="bar" > > The problem is, by the time doThat() is called and it updates state, the permalink has already been formed, so it doesn't yet have the updated values from "state". If I now move the map or do something else, that is when the permalink gets updated with the values from "state" but it is always one action behind ? how do I get around this phase lag? In other words, I want to update the permalink *after* the "state" has been updated so that when "createParams" is called, it creates the correct permalink. > one additional note: I don't want the actual link that the user would click to get the permalink to have the updated link. Instead, I want to actually fire off a function to do something with that link. Right now I am using something like so, which actually does work. Just want to confirm if there is a better way $("#permalink").click(function() { doSomethingWithPermalink($(this).attr("href")); return false; }); For example, I might want to replace the href with ''. In which case, how would I get the current value of permalink? -- Puneet Kishor From ignacio.talavera at gmail.com Sat Jan 21 17:09:34 2012 From: ignacio.talavera at gmail.com (Ignacio Talavera) Date: Sat Jan 21 17:09:51 2012 Subject: [OpenLayers-Users] minScale maxScale doesn't work In-Reply-To: <1327173949694-7211677.post@n2.nabble.com> References: <1327173949694-7211677.post@n2.nabble.com> Message-ID: Hi, whenever I want to display a Vector Layer in a scale range I always add Rules to my mapStyle. I modify your code to achive this. var defaultStyle = new OpenLayers.Style(); var template = {'pointRadius': 10, 'externalGraphic': 'png/symboly/plastAlpha.png' }; var rule = new OpenLayers.Rule(); rule["minScaleDenominator"] = 60000; rule["maxScaleDenominator"] = 10000; rule["symbolizer"] = template; defaultStyle.addRules([ rule ]); var styleKontiky = new OpenLayers.StyleMap({'default': defaultStyle, 'select': selectStyle}); Hope it's usefull. Regards Nacho On Sat, Jan 21, 2012 at 5:25 PM, vrbikdan wrote: > Hi, > I'm trying to set min and max scale for layer. I used this part of code: > > kontiky_layer = new OpenLayers.Layer.GML("GML", > "kontikyVrstva/kontikyFinalGML.gml", {projection: map.displayProjection, > styleMap: styleKontiky},{minScale: 60000, maxScale: 10000}) > > But unfortunately layer is still visible in all scales. Whole map with code > is here: http://vrbikdan.xf.cz/kontiky/kontiky.html > http://vrbikdan.xf.cz/kontiky/kontiky.html . Can you tell me what is > wrong? > > Thanks, > Dan > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/minScale-maxScale-doesn-t-work-tp7211677p7211677.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120121/a4de9a59/attachment.html From ramotswa at gmail.com Sun Jan 22 03:59:33 2012 From: ramotswa at gmail.com (Toby R) Date: Sun Jan 22 04:00:27 2012 Subject: [OpenLayers-Users] WMS requests executed twice In-Reply-To: <4F1B1FA2.5060002@uva.nl> References: <4F1B1FA2.5060002@uva.nl> Message-ID: <-6024429790264808655@unknownmsgid> Ignore my answer. That would only apply to vector layers. On 21 Jan 2012, at 21:22, Jan Hartmann wrote: Hi all, I made a very simple OpenLayers test site, displaying a simple local MapServer map as an untiled WMS service. Works fine, but when I look in the server log, each OpenLayer GetMap request results in *two* identical requests to the server. Can anyone confirm this, and why does it happen? Jan Hartmann Amsterdam _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120122/ed84d046/attachment.html From fatzopilot at gmx.net Sun Jan 22 05:56:21 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Sun Jan 22 05:56:38 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <0fe7899570c0e348fd79083e517ae21f.squirrel@webmail.utlchart.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> <1327072932025-7207893.post@n2.nabble.com> <0fe7899570c0e348fd79083e517ae21f.squirrel@webmail.utlchart.com> Message-ID: <1327229781887-4217047.post@n6.nabble.com> hhudson wrote > > Have you got <!DOCTYPE html> at the start of your page? If missing > that could possibly be the reason IE is behaving differently. > That did the trick, thanks! There was in the GWT-Openlayers showcase startpage which does not work. Omitting the doctype does not work either. and for example work as well. As far as I can judge it, it seems like it does not work in Quirks mode in IE9. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SVG-Overlay-tp3910706p4217047.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From goerlitz at uni-koblenz.de Sun Jan 22 12:20:01 2012 From: goerlitz at uni-koblenz.de (=?ISO-8859-15?Q?Olaf_G=F6rlitz?=) Date: Sun Jan 22 12:20:27 2012 Subject: [OpenLayers-Users] Find out when rendering of vector features (using externalGraphic) is completed In-Reply-To: <4F19858A.30509@uni-koblenz.de> References: <4F19858A.30509@uni-koblenz.de> Message-ID: <4F1C4541.50400@uni-koblenz.de> Does anybody have an idea how to solve this problem? It is been braking my head for a couple of days already. Cheers, Olaf Olaf G?rlitz wrote: > Hi all, > > I'm trying to implement a heatmap based on olheatmap > (http://olheatmap.sourceforge.net/). First, an intensity circle is drawn > for each feature using a radial gradient image with differnt alpha > values. Afterwards, the alpha values in the layer's canvas are mapped to > the heatmap's color gradient. > > The problem is that rendering the features is not finished yet before > the heatmap transformation starts and I could not find any event which > indicates that the rendering is completed. > > I registered listeners for all events of the layer but all I get is > 'beforefeatureadded', 'featureadded', 'featuresadded' and mouse events. > I don't observe any 'sketchcomplete' or 'loadend' event. > > Is there any way to find out when rendering of the features is done? > (Interestingly, if the mouse cursor is not on the map, it seems that a > 'mouseout' event is triggered just after the rendering finishes). > > Below is the minimal code I use for generating the heatmap. > > Thanks for your help, > Olaf > > -------------------- > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From Hugh.Barker at csiro.au Sun Jan 22 18:51:01 2012 From: Hugh.Barker at csiro.au (Hugh.Barker@csiro.au) Date: Sun Jan 22 18:52:18 2012 Subject: [OpenLayers-Users] Performance issues (memory leak?) with WFS Message-ID: Hi all, I'm building a web application to display data that is updated in real-time (ship's navigation/sensor underway data). I'm using WFS (served up by a Geoserver/PostGIS backend). The core of it looks like this: underwayWfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({ url: "http://ss-geospatial-hf:8080/geoserver/visage/wfs", featureType: currentVoyage, featureNS: "visage", geometryName: "position"}); underwayLayer = new OpenLayers.Layer.Vector("Underway Data", { strategies: [new OpenLayers.Strategy.BBOX(), new OpenLayers.Strategy.Cluster({distance: 10}), new OpenLayers.Strategy.Refresh({interval: 300000, force: true})], //Refresh screen every 60 seconds, cluster points //TODO - performance issues protocol: underwayWfsProtocol, styleMap: new OpenLayers.StyleMap({ //TODO - dynamic styling based on zoom level etc, make latest point different pointRadius: 3, fillColor: "#ff0000" })}); map = new OpenLayers.Map({ div: "map", layers: [baseLayer = new OpenLayers.Layer.WMS( "Bathymetry", "http://ss-geospatial-hf:8080/geoserver/visage/wms", {layers: "visage:bathytopo2005tif"})], center: baseLayerBounds.getCenterLonLat(), zoom: 4}); map.addLayer(underwayLayer); I also have some other standard bits and pieces, like a graticule, popups on feature select and so on. Nothing too unusual. My problem is with performance - my development platform is Firefox 9.0.1, Win7 64. The map and features load fine initially, however after a number of updates (via the refresh strategy) Firefox's memory usage will balloon, crashing Firefox (and sometimes my whole system) in fairly short order. I've tried with both OpenLayers 2.11 and the latest trunk version. Any advice would be great - I'm at a bit of a loss. If at all possible I'd like to stick with the WFS approach, as the functionality is a good fit for my application vs WMS - just not the performance. Cheers, Hugh Barker From Hugh.Barker at csiro.au Sun Jan 22 19:31:39 2012 From: Hugh.Barker at csiro.au (Hugh.Barker@csiro.au) Date: Sun Jan 22 19:33:34 2012 Subject: [OpenLayers-Users] Performance issues (memory leak?) with WFS In-Reply-To: References: Message-ID: Rendering the points isn't the issue. I'm happy with the performance, especially using clustering. The issue is with the refresh strategy, which causes memory issues (it looks like a memory leak) across subsequent updates. Memory usage increases roughly linearly with each update, until the browser crashes. -----Original Message----- From: Zac Spitzer [mailto:zac.spitzer@gmail.com] Sent: Monday, 23 January 2012 11:27 To: Barker, Hugh (CMAR, Hobart) Subject: Re: [OpenLayers-Users] Performance issues (memory leak?) with WFS You simply can't render large amounts of vector data in a browser, Firefox and Chrome can handle a lot more vector data than IE, but you will always have problems On Mon, Jan 23, 2012 at 10:51 AM, wrote: > Hi all, > I'm building a web application to display data that is updated in real-time (ship's navigation/sensor underway data). I'm using WFS (served up by a Geoserver/PostGIS backend). The core of it looks like this: > > underwayWfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({ > ? ?url: ?"http://ss-geospatial-hf:8080/geoserver/visage/wfs", > ? ?featureType: currentVoyage, > ? ?featureNS: "visage", > ? ?geometryName: "position"}); > > underwayLayer = new OpenLayers.Layer.Vector("Underway Data", { > ? ?strategies: [new OpenLayers.Strategy.BBOX(), new > OpenLayers.Strategy.Cluster({distance: 10}), new > OpenLayers.Strategy.Refresh({interval: 300000, force: true})], > //Refresh screen every 60 seconds, cluster points //TODO - performance > issues > ? ?protocol: underwayWfsProtocol, > ? ?styleMap: new OpenLayers.StyleMap({ //TODO - dynamic styling based > on zoom level etc, make latest point different > ? ?pointRadius: 3, > ? ?fillColor: "#ff0000" })}); > > map = new OpenLayers.Map({ > ? ?div: "map", > ? ?layers: [baseLayer = new OpenLayers.Layer.WMS( > ? ? ? ?"Bathymetry", > ? ? ? ?"http://ss-geospatial-hf:8080/geoserver/visage/wms", > ? ? ? ?{layers: "visage:bathytopo2005tif"})], > ? ? ? ?center: baseLayerBounds.getCenterLonLat(), > ? ? ? ?zoom: 4}); > > map.addLayer(underwayLayer); > > I also have some other standard bits and pieces, like a graticule, popups on feature select and so on. Nothing too unusual. > > My problem is with performance - my development platform is Firefox 9.0.1, Win7 64. The map and features load fine initially, however after a number of updates (via the refresh strategy) Firefox's memory usage will balloon, crashing Firefox (and sometimes my whole system) in fairly short order. I've tried with both OpenLayers 2.11 and the latest trunk version. > > Any advice would be great - I'm at a bit of a loss. If at all possible I'd like to stick with the WFS approach, as the functionality is a good fit for my application vs WMS - just not the performance. > > Cheers, > > Hugh Barker > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From zac.spitzer at gmail.com Sun Jan 22 19:38:33 2012 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Sun Jan 22 19:39:04 2012 Subject: [OpenLayers-Users] Performance issues (memory leak?) with WFS In-Reply-To: References: Message-ID: ah, ok... do you see the same leak issue with firebug completely disabled? z On Mon, Jan 23, 2012 at 11:31 AM, wrote: > Rendering the points isn't the issue. I'm happy with the performance, especially using clustering. > > The issue is with the refresh strategy, which causes memory issues (it looks like a memory leak) across subsequent updates. Memory usage increases roughly linearly with each update, until the browser crashes. > > -----Original Message----- > From: Zac Spitzer [mailto:zac.spitzer@gmail.com] > Sent: Monday, 23 January 2012 11:27 > To: Barker, Hugh (CMAR, Hobart) > Subject: Re: [OpenLayers-Users] Performance issues (memory leak?) with WFS > > You simply can't render large amounts of vector data in a browser, Firefox and Chrome can handle a lot more vector data than IE, but you will always have problems > > On Mon, Jan 23, 2012 at 10:51 AM, ? wrote: >> Hi all, >> I'm building a web application to display data that is updated in real-time (ship's navigation/sensor underway data). I'm using WFS (served up by a Geoserver/PostGIS backend). The core of it looks like this: >> >> underwayWfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({ >> ? ?url: ?"http://ss-geospatial-hf:8080/geoserver/visage/wfs", >> ? ?featureType: currentVoyage, >> ? ?featureNS: "visage", >> ? ?geometryName: "position"}); >> >> underwayLayer = new OpenLayers.Layer.Vector("Underway Data", { >> ? ?strategies: [new OpenLayers.Strategy.BBOX(), new >> OpenLayers.Strategy.Cluster({distance: 10}), new >> OpenLayers.Strategy.Refresh({interval: 300000, force: true})], >> //Refresh screen every 60 seconds, cluster points //TODO - performance >> issues >> ? ?protocol: underwayWfsProtocol, >> ? ?styleMap: new OpenLayers.StyleMap({ //TODO - dynamic styling based >> on zoom level etc, make latest point different >> ? ?pointRadius: 3, >> ? ?fillColor: "#ff0000" })}); >> >> map = new OpenLayers.Map({ >> ? ?div: "map", >> ? ?layers: [baseLayer = new OpenLayers.Layer.WMS( >> ? ? ? ?"Bathymetry", >> ? ? ? ?"http://ss-geospatial-hf:8080/geoserver/visage/wms", >> ? ? ? ?{layers: "visage:bathytopo2005tif"})], >> ? ? ? ?center: baseLayerBounds.getCenterLonLat(), >> ? ? ? ?zoom: 4}); >> >> map.addLayer(underwayLayer); >> >> I also have some other standard bits and pieces, like a graticule, popups on feature select and so on. Nothing too unusual. >> >> My problem is with performance - my development platform is Firefox 9.0.1, Win7 64. The map and features load fine initially, however after a number of updates (via the refresh strategy) Firefox's memory usage will balloon, crashing Firefox (and sometimes my whole system) in fairly short order. I've tried with both OpenLayers 2.11 and the latest trunk version. >> >> Any advice would be great - I'm at a bit of a loss. If at all possible I'd like to stick with the WFS approach, as the functionality is a good fit for my application vs WMS - just not the performance. >> >> Cheers, >> >> Hugh Barker >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Zac Spitzer > Solution Architect / Director > Ennoble Consultancy Australia > http://www.ennoble.com.au > http://zacster.blogspot.com > +61 405 847 168 > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From fatzopilot at gmx.net Sun Jan 22 19:44:55 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Sun Jan 22 19:45:25 2012 Subject: [OpenLayers-Users] Re: SVG Overlay In-Reply-To: <1327229781887-4217047.post@n6.nabble.com> References: <1322754379099-7050997.post@n2.nabble.com> <1326554547980-7187723.post@n2.nabble.com> <1327018919100-7205957.post@n2.nabble.com> <26da28e4bdc53e44e817cec8498dd6d5.squirrel@webmail.utlchart.com> <1327072932025-7207893.post@n2.nabble.com> <0fe7899570c0e348fd79083e517ae21f.squirrel@webmail.utlchart.com> <1327229781887-4217047.post@n6.nabble.com> Message-ID: <1327279495906-4226508.post@n6.nabble.com> hhudson wrote > > Have you got <!DOCTYPE html> at the start of your page? If missing > that could possibly be the reason IE is behaving differently. > That did the trick, thanks! There was in the GWT-Openlayers showcase startpage which does not work. Omitting the doctype does not work either. and for example work as well. As far as I can judge it, it seems like it does not work in Quirks mode in IE9. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SVG-Overlay-tp3910706p4226508.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Hugh.Barker at csiro.au Sun Jan 22 20:10:57 2012 From: Hugh.Barker at csiro.au (Hugh.Barker@csiro.au) Date: Sun Jan 22 20:11:19 2012 Subject: [OpenLayers-Users] Performance issues (memory leak?) with WFS In-Reply-To: References: Message-ID: Hmm, that seems to have fixed the issue - memory stays at a reasonable level. I should have thought of disabling it before - I knew there was a memory overhead associated with Firebug, but I kind of assumed it would just be a constant overhead - instead it almost looked as if Firebug was preventing garbage collection or something. Oh well, you live and you learn. Thanks for your help. -----Original Message----- From: Zac Spitzer [mailto:zac.spitzer@gmail.com] Sent: Monday, 23 January 2012 11:39 To: Barker, Hugh (CMAR, Hobart) Cc: openlayers-users@lists.osgeo.org Subject: Re: [OpenLayers-Users] Performance issues (memory leak?) with WFS ah, ok... do you see the same leak issue with firebug completely disabled? z On Mon, Jan 23, 2012 at 11:31 AM, wrote: > Rendering the points isn't the issue. I'm happy with the performance, especially using clustering. > > The issue is with the refresh strategy, which causes memory issues (it looks like a memory leak) across subsequent updates. Memory usage increases roughly linearly with each update, until the browser crashes. > > -----Original Message----- > From: Zac Spitzer [mailto:zac.spitzer@gmail.com] > Sent: Monday, 23 January 2012 11:27 > To: Barker, Hugh (CMAR, Hobart) > Subject: Re: [OpenLayers-Users] Performance issues (memory leak?) with > WFS > > You simply can't render large amounts of vector data in a browser, > Firefox and Chrome can handle a lot more vector data than IE, but you > will always have problems > > On Mon, Jan 23, 2012 at 10:51 AM, ? wrote: >> Hi all, >> I'm building a web application to display data that is updated in real-time (ship's navigation/sensor underway data). I'm using WFS (served up by a Geoserver/PostGIS backend). The core of it looks like this: >> >> underwayWfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({ >> ? ?url: ?"http://ss-geospatial-hf:8080/geoserver/visage/wfs", >> ? ?featureType: currentVoyage, >> ? ?featureNS: "visage", >> ? ?geometryName: "position"}); >> >> underwayLayer = new OpenLayers.Layer.Vector("Underway Data", { >> ? ?strategies: [new OpenLayers.Strategy.BBOX(), new >> OpenLayers.Strategy.Cluster({distance: 10}), new >> OpenLayers.Strategy.Refresh({interval: 300000, force: true})], >> //Refresh screen every 60 seconds, cluster points //TODO - >> performance issues >> ? ?protocol: underwayWfsProtocol, >> ? ?styleMap: new OpenLayers.StyleMap({ //TODO - dynamic styling based >> on zoom level etc, make latest point different >> ? ?pointRadius: 3, >> ? ?fillColor: "#ff0000" })}); >> >> map = new OpenLayers.Map({ >> ? ?div: "map", >> ? ?layers: [baseLayer = new OpenLayers.Layer.WMS( >> ? ? ? ?"Bathymetry", >> ? ? ? ?"http://ss-geospatial-hf:8080/geoserver/visage/wms", >> ? ? ? ?{layers: "visage:bathytopo2005tif"})], >> ? ? ? ?center: baseLayerBounds.getCenterLonLat(), >> ? ? ? ?zoom: 4}); >> >> map.addLayer(underwayLayer); >> >> I also have some other standard bits and pieces, like a graticule, popups on feature select and so on. Nothing too unusual. >> >> My problem is with performance - my development platform is Firefox 9.0.1, Win7 64. The map and features load fine initially, however after a number of updates (via the refresh strategy) Firefox's memory usage will balloon, crashing Firefox (and sometimes my whole system) in fairly short order. I've tried with both OpenLayers 2.11 and the latest trunk version. >> >> Any advice would be great - I'm at a bit of a loss. If at all possible I'd like to stick with the WFS approach, as the functionality is a good fit for my application vs WMS - just not the performance. >> >> Cheers, >> >> Hugh Barker >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Zac Spitzer > Solution Architect / Director > Ennoble Consultancy Australia > http://www.ennoble.com.au > http://zacster.blogspot.com > +61 405 847 168 > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From eric.lemoine at camptocamp.com Mon Jan 23 01:26:30 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Mon Jan 23 01:27:20 2012 Subject: [OpenLayers-Users] minScale maxScale doesn't work In-Reply-To: <1327173949694-7211677.post@n2.nabble.com> References: <1327173949694-7211677.post@n2.nabble.com> Message-ID: On Saturday, January 21, 2012, vrbikdan wrote: > Hi, > I'm trying to set min and max scale for layer. I used this part of code: > > kontiky_layer = new OpenLayers.Layer.GML("GML", > "kontikyVrstva/kontikyFinalGML.gml", {projection: map.displayProjection, > styleMap: styleKontiky},{minScale: 60000, maxScale: 10000}) > > But unfortunately layer is still visible in all scales. What if you set minScale and maxScale in the same object as where projection and styleMap are set? Note: Layer.GML is deprecated, you should use a Vector layet configured with a Fixed strategy and an HTTP protocol. Look at the OpenLayers example. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120123/249da3ab/attachment.html From ahocevar at opengeo.org Mon Jan 23 06:01:24 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon Jan 23 06:02:20 2012 Subject: [OpenLayers-Users] Find out when rendering of vector features (using externalGraphic) is completed In-Reply-To: <4F1C4541.50400@uni-koblenz.de> References: <4F19858A.30509@uni-koblenz.de> <4F1C4541.50400@uni-koblenz.de> Message-ID: Hi, the problem is that you're using an external graphic, which is added to the canvas in an onload handler. So try to render your circle just with pointRadius, fillColor, strokeWidth and strokeColor, and not externalGraphic and offsets, and you'll be fine. Andreas. On Sun, Jan 22, 2012 at 6:20 PM, Olaf G?rlitz wrote: > Does anybody have an idea how to solve this problem? > It is been braking my head for a couple of days already. > > Cheers, > Olaf > > Olaf G?rlitz wrote: >> Hi all, >> >> I'm trying to implement a heatmap based on olheatmap >> (http://olheatmap.sourceforge.net/). First, an intensity circle is drawn >> for each feature using a radial gradient image with differnt alpha >> values. Afterwards, the alpha values in the layer's canvas are mapped to >> the heatmap's color gradient. >> >> The problem is that rendering the features is not finished yet before >> the heatmap transformation starts and I could not find any event which >> indicates that the rendering is completed. >> >> I registered listeners for all events of the layer but all I get is >> 'beforefeatureadded', 'featureadded', 'featuresadded' and mouse events. >> I don't observe any 'sketchcomplete' or 'loadend' event. >> >> Is there any way to find out when rendering of the features is done? >> (Interestingly, if the mouse cursor is not on the map, it seems that a >> 'mouseout' event is triggered just after the rendering finishes). >> >> Below is the minimal code I use for generating the heatmap. >> >> Thanks for your help, >> Olaf >> >> -------------------- >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From gravitystorm at gmail.com Mon Jan 23 06:40:01 2012 From: gravitystorm at gmail.com (Andy Allan) Date: Mon Jan 23 06:40:27 2012 Subject: [OpenLayers-Users] Styling polygons with an externalGraphic Message-ID: Hi all, I have a vector layer containing polygon features that I'm quite happily styling with coloured outlines and fills. However, I would like to display an externalGraphic instead of the normal fill/outline. http://osgeo-org.1803224.n2.nabble.com/Show-polygon-vectors-as-points-td1829267.html hints that it's possible, but I can't get it working. Are there any examples out there of polygons symbolized with externalGraphics? Thanks in advance for any pointers, or even if it's not possible, some confirmation on that! Cheers, Andy From ahocevar at opengeo.org Mon Jan 23 07:58:10 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon Jan 23 07:58:40 2012 Subject: [OpenLayers-Users] WMS requests executed twice In-Reply-To: <4F1B1FA2.5060002@uva.nl> References: <4F1B1FA2.5060002@uva.nl> Message-ID: This might be due to a bug that has been fixed quite some time ago already. Which version of OpenLayers are you using? Andreas. On Sat, Jan 21, 2012 at 9:27 PM, Jan Hartmann wrote: > Hi all, > > I made a very simple OpenLayers test site, displaying a simple local > MapServer map as an untiled WMS service. Works fine, but when I look in the > server log, each OpenLayer GetMap request results in *two* identical > requests to the server. Can anyone confirm this, and why does it happen? > > Jan Hartmann > Amsterdam > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Mon Jan 23 08:13:37 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon Jan 23 08:14:13 2012 Subject: [OpenLayers-Users] how insert a Logo image and a label in my map? In-Reply-To: <30744885.16075191327075576601.JavaMail.defaultUser@defaultHost> References: <30744885.16075191327075576601.JavaMail.defaultUser@defaultHost> Message-ID: The attribution can be markup, so e.g. attribution: "Provided by me" Andreas. On Fri, Jan 20, 2012 at 5:06 PM, francescoboccacci@libero.it wrote: > Hi, > i would like to insert in my map a logo image and a label. For the label i > used: > > var test = new OpenLayers.Layer.OSM("Background", > > ? ? ? ? ? ? ? ? ? ? ? ?"http://localhost/${z}/${x}/${y}.png", > > ? ? ? ? ? ? ? ? ? ? ? ?{ > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?sphericalMercator: true > > ? ? ? ? ? ? ? ? ? ? ? ?}, > > ? ? ? ? ? ? ? ? ? ? ? ? {wrapDateLine: true}, > ? ? ? ? ? ? ? ? ? ? ? ? ?{attribution:"Provided by Me"} > > ? ? ? ? ? ? ? ? ? ? ? ?); > > > but it doesn't work. For the logo image i don't know. > > Thanks > > Francesco Boccacci > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From francescoboccacci at libero.it Mon Jan 23 10:39:40 2012 From: francescoboccacci at libero.it (francescoboccacci@libero.it) Date: Mon Jan 23 10:40:06 2012 Subject: R: Re: [OpenLayers-Users] how insert a Logo image and a label in my map? Message-ID: <23549181.1381351327333180195.JavaMail.defaultUser@defaultHost> Thanks >----Messaggio originale---- >Da: ahocevar@opengeo.org >Data: 23/01/2012 14.13 >A: "francescoboccacci@libero.it" >Cc: >Ogg: Re: [OpenLayers-Users] how insert a Logo image and a label in my map? > >The attribution can be markup, so e.g. > >attribution: "Provided by me" > >Andreas. > >On Fri, Jan 20, 2012 at 5:06 PM, francescoboccacci@libero.it > wrote: >> Hi, >> i would like to insert in my map a logo image and a label. For the label i >> used: >> >> var test = new OpenLayers.Layer.OSM("Background", >> >> ? ? ? ? ? ? ? ? ? ? ? ?"http://localhost/${z}/${x}/${y}.png", >> >> ? ? ? ? ? ? ? ? ? ? ? ?{ >> >> >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?sphericalMercator: true >> >> ? ? ? ? ? ? ? ? ? ? ? ?}, >> >> ? ? ? ? ? ? ? ? ? ? ? ? {wrapDateLine: true}, >> ? ? ? ? ? ? ? ? ? ? ? ? ?{attribution:"Provided by Me"} >> >> ? ? ? ? ? ? ? ? ? ? ? ?); >> >> >> but it doesn't work. For the logo image i don't know. >> >> Thanks >> >> Francesco Boccacci >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > >-- >Andreas Hocevar >OpenGeo - http://opengeo.org/ >Expert service straight from the developers. > From aciereszko at maptext.com Mon Jan 23 12:18:35 2012 From: aciereszko at maptext.com (cierech) Date: Mon Jan 23 12:19:21 2012 Subject: [OpenLayers-Users] Re: Problem with transparency of externalGraphic in Vector layer - IE only In-Reply-To: <1327208549668-4216817.post@n6.nabble.com> References: <1327208496211-4216816.post@n6.nabble.com> <1327208549668-4216817.post@n6.nabble.com> Message-ID: <1327339115931-4332980.post@n6.nabble.com> Found the problem! DOCTYPE had to be anything but the xhtml strict. Everything works now! -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-transparency-of-externalGraphic-in-Vector-layer-IE-only-tp4216816p4332980.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From krwoloq at gmail.com Mon Jan 23 13:09:17 2012 From: krwoloq at gmail.com (krwoloq) Date: Mon Jan 23 13:09:31 2012 Subject: [OpenLayers-Users] Precision while snapping Message-ID: <1327342157541-4333123.post@n6.nabble.com> We are using snap to edge for feature editing. But when using this, features do not snap precisely. After committing (through Geoserver), the resulting vertex falls about 1-3 meters from the real edge which violates our topology rules. What could this be connected with? Can this be related to current zoom level (although we didn't see a correlation)? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Precision-while-snapping-tp4333123p4333123.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Mon Jan 23 15:41:26 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon Jan 23 15:41:46 2012 Subject: [OpenLayers-Users] FOSS4G North America Conference coming April 10-12 Message-ID: On behalf of OSGeo North America, we?d like to invite you to attend the Free and Open Source Software for Geospatial - North America (FOSS4G-NA) conference being held from April 10-12, 2012 at the Walter E. Washington Convention Center in Washington, DC. This event will serve as a regional follow-up to last September?s highly successful international FOSS4G 2011 conference in Denver, Colorado, focusing on the North American open source geospatial community. The conference will be organized around three tracks: - open source technology best practices and tips; - deployment case studies; and - emerging ideas and trends in open source. The call for abstracts is open now and can be submitted here: http://foss4g-na.org/abstract-submission/ . We have space for about 50 presentations and 20 Ignite sessions, so get your submissions in! In addition, Michael Byrne, CIO of the Federal Communications Commission (FCC) will be delivering a keynote address, with more speakers to be announced soon. Paul Ramsey, Conference Chair of the 2007 FOSS4G conference, will be reprising his role, along with an experienced committee from the North America chapter of OSGeo to back him. We have an open call for sponsorship, which can include exhibition space; for more information please visit http://foss4g-na.org/sponsorship/. The event already has strong support from the community, with a growing set of sponsors that includes OpenGeo, Radiant Blue, AppGeo, and Spatialytics. For more information, please visit our site at http://foss4g-na.org/. Space is limited to 300 attendees only, so you should sign up today to ensure that you can be a part of this exciting event! http://foss4g-na.org/registration/ Related Links: http://foss4g-na.org/ FOSS4G North America 2012 Conference - Washington, DC http://wiki.osgeo.org/wiki/North_America_Regional/ OSGeo North America Chapter http://www.osgeo.org/ Open Source Geospatial Foundation http://2012.foss4g.org FOSS4G 2012 - Beijing, China From fatzopilot at gmx.net Mon Jan 23 18:03:31 2012 From: fatzopilot at gmx.net (fatzopilot) Date: Mon Jan 23 18:04:34 2012 Subject: [OpenLayers-Users] Re: SVG Overlay Message-ID: That did the trick, thanks! There was in the GWT-Openlayers showcase startpage which does not work. Omitting the doctype does not work either. and for example work as well. As far as I can judge it, it seems like it does not work in Quirks mode in IE9. From Robert.Sanson at asurequality.com Mon Jan 23 20:29:54 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Mon Jan 23 20:30:08 2012 Subject: [OpenLayers-Users] Iterating through features in a vector layer? In-Reply-To: <1327156900220-7211128.post@n2.nabble.com> References: <1327156900220-7211128.post@n2.nabble.com> Message-ID: <4F1EC0620200003700011E17@gate1.asurequality.com> I am using OpenLayers v2.11, and have a vector layer loaded from geometry in WKT format separated from attributes using pipe delimited text from a database (via a Python cgi-bin script). I am trying to write a function that iterates through all of the features and then POST updates back to the database when certain conditions are met. My difficulty is that layer.features.length is returning double the number of features. Here is my code that creates the layer and loads the features: function setHTML4cr(response4) { var cropnum = 0; var lines, line; var cropid, name, crds; var cropgeom; if (response4.responseText.toUpperCase().indexOf('ERROR') != -1) { alert(response4.responseText); } else { crops = new OpenLayers.Layer.Vector("Crops", {isBaseLayer: false, styleMap: crop_style, rendererOptions: {zIndexing: true}, extractAttributes: true }); var lines = response4.responseText.split('\n'); for ( var i=0;i Message-ID: <4F1EE5BE0200003700011E1D@gate1.asurequality.com> THis appears to be due to a synchronisation issue between OpenLayers and a Ext.grid.GridPanel loaded with a GeoExt.data.FeatureStore tied to the vector layer. I am looking for a way to force an update to the GridPanel when an attribute was modified, and was using: cropStore.unbind(); cropStore.bind(crops); but this seems to be causing the features to b re-added to the layer, resulting in a doubling. Can anyone suggest how to get GeoExt to re-read the features so the GridPanel is updated with the new attributes? Many thanks, Robert >>> Robert Sanson 24/01/2012 2:29 p.m. >>> I am using OpenLayers v2.11, and have a vector layer loaded from geometry in WKT format separated from attributes using pipe delimited text from a database (via a Python cgi-bin script). I am trying to write a function that iterates through all of the features and then POST updates back to the database when certain conditions are met. My difficulty is that layer.features.length is returning double the number of features. Here is my code that creates the layer and loads the features: function setHTML4cr(response4) { var cropnum = 0; var lines, line; var cropid, name, crds; var cropgeom; if (response4.responseText.toUpperCase().indexOf('ERROR') != -1) { alert(response4.responseText); } else { crops = new OpenLayers.Layer.Vector("Crops", {isBaseLayer: false, styleMap: crop_style, rendererOptions: {zIndexing: true}, extractAttributes: true }); var lines = response4.responseText.split('\n'); for ( var i=0;i An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120124/3240088e/attachment.html From dominikmikiewicz at o2.pl Tue Jan 24 04:30:47 2012 From: dominikmikiewicz at o2.pl (Dominik Mikiewicz) Date: Tue Jan 24 04:41:02 2012 Subject: [OpenLayers-Users] OpenLayers application problem on IE. In-Reply-To: <4f1e74d8320606.29427207@wp.pl> References: <4f1e74d8320606.29427207@wp.pl> Message-ID: <003b01ccda7a$dbc1d3c0$93457b40$@o2.pl> Michal, It looks like there are problems in Opera too. Anyway, try playing with the debugging console of IE9. It reports some errors on init: SCRIPT5007: Unable to get value of the property 'notrack': object is null or undefined portal.js, line 57 character 198 SCRIPT5009: 'Math' is undefined www-embed_core_module-vflv9x8EB.js, line 4 character 263 SCRIPT5009: 'yt' is undefined 8eoKYGknXxo, line 33 character 5 From: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] On Behalf Of Micha? Dro?d? Sent: Tuesday, January 24, 2012 10:08 AM To: openlayers-users Subject: [OpenLayers-Users] OpenLayers application problem on IE. Hi Guys! I have serious problem with my app on IE (I am not the only one I suppose:) http://www.webgis.24gis.pl/coi_kielce/index.php On FF nad Chrome it works fine but on IE, map and conrols do not want to show at all... I ask you for spending couple of minutes to examine a code or indicate a place where is an error... Thanks a lot! Michal -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120124/668ae17b/attachment-0001.html From kaivolland at yahoo.de Tue Jan 24 08:03:47 2012 From: kaivolland at yahoo.de (Kai Volland) Date: Tue Jan 24 08:07:15 2012 Subject: [OpenLayers-Users] map.raiseLayer for visible layers only Message-ID: <4F1EAC33.8090003@yahoo.de> Hi everybody, is there a way to use the map.raiseLayer function for the visible layers only? If i use it like this: "map.raiseLayer(activeLayer, 1);" i have to click once for every layer in the webgis, and not only once for every visible layer. Kind regards Kai From jansen at terrestris.de Tue Jan 24 08:31:11 2012 From: jansen at terrestris.de (Marc Jansen) Date: Tue Jan 24 08:31:50 2012 Subject: [OpenLayers-Users] Layer.OSM / Layer.XYZ: show only a subset of all available resolutions Message-ID: <4F1EB29F.4020401@terrestris.de> Hi list, I currently fail at implementing the following: Build a map that has a OpenLayers.Layer.OSM-layer, but which will only display some of the possible zoomlevels, e.g. only the zoomlevel 11 (resolution = 76.43702827148438) and the zoomlevel 13 (resolution = 19.109257067871095). This sounds easy at first... but yet I am struggling with this. I tried numerous combinations of resolutions, serverResolutions and zoomOffset but without success. Is this doable with current 2.11-API? Thanks for any help on this. Best regards, Marc From ahocevar at opengeo.org Tue Jan 24 09:20:12 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 24 09:20:52 2012 Subject: [OpenLayers-Users] Layer.OSM / Layer.XYZ: show only a subset of all available resolutions In-Reply-To: <4F1EB29F.4020401@terrestris.de> References: <4F1EB29F.4020401@terrestris.de> Message-ID: Not with the 2.11 release, but with current master (this was fixed shortly after the release): new OpenLayers.Map({ div: "map", layers: [new OpenLayers.Layer.OSM(null, null, { resolutions: [76.43702827148438, 19.109257067871095], serverResolutions: [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] })], center: new OpenLayers.LonLat(16.37, 48.21).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") ) }); Andreas. On Tue, Jan 24, 2012 at 2:31 PM, Marc Jansen wrote: > Hi list, > > I currently fail at implementing the following: > > Build a map that has a OpenLayers.Layer.OSM-layer, but which will only > display some of the possible zoomlevels, e.g. only the zoomlevel 11 > (resolution = 76.43702827148438) and the zoomlevel 13 (resolution = > 19.109257067871095). > > This sounds easy at first... but yet I am struggling with this. I tried > numerous combinations of resolutions, serverResolutions and zoomOffset but > without success. Is this doable with current 2.11-API? > > Thanks for any help on this. > > Best regards, > Marc > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jan 24 09:39:43 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 24 09:39:52 2012 Subject: [OpenLayers-Users] Re: Problem to show tiles .... additional infos In-Reply-To: References: <4F199D8F.3060008@tappenbeck.net> Message-ID: Hi, in your subclass, override wrapDateLine to false. Andreas. On Sat, Jan 21, 2012 at 9:20 AM, Jan Tappenbeck wrote: > hi ! > > here are some additional infos. > > the tiles are only in a tile-folder on my webspace without any special > additional slippy-map-software! > > regards Jan :-) > > > Am 20.01.2012 17:59, schrieb Jan Tappenbeck: >> >> hi ! >> >> i have render some tiles for the area of europe - names only by >> zoom-level 4->10. >> >> the layer is include by >> >> var newLayer = new OpenLayers.Layer.OSM.Local("NewLayerLocal"); >> map.addLayer(newLayer); >> >> additional in OpenStreetMap.js >> >> OpenLayers.Layer.OSM.Local = OpenLayers.Class(OpenLayers.Layer.OSM, { >> >> initialize: function(name, options) { >> >> var url = [ >> "http://www.tappenbeck.net/osm/ferry2011/tiles/${z}/${x}/${y}.png" >> ]; >> >> options = OpenLayers.Util.extend( >> { numZoomLevels: 19, isBaseLayer: false}, options); >> var newArguments = [name, url, options]; >> OpenLayers.Layer.OSM.prototype.initialize.apply >> (this,newArguments); >> }, >> >> CLASS_NAME: "OpenLayers.Layer.OSM.Local" >> }); >> >> >> >> and you can show in >> http://osm.tappenbeck.net/ferry2011/deu/ferry_iframe_debug.php >> >> the problem now is when the zoom-level is 5 and higher the names of the >> north will repeat - but only in the vertical to the north. >> >> did anyone have a idea ?? >> >> regards Jan :-) > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jan 24 09:41:51 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 24 09:42:07 2012 Subject: [OpenLayers-Users] Re: Duplicate labels display in ArcGIS Server REST map service when viewing through OpenLayers API In-Reply-To: <1327014028630-7205708.post@n2.nabble.com> References: <307626015.193191.1271264672644.JavaMail.root@hub> <1327014028630-7205708.post@n2.nabble.com> Message-ID: Hi, This is because OpenLayers requests tiles, and the server doesn't know about neighboring tiles. An easy fix would be to request the content in a single image. To do so, configure your layer with the singleTile: true option. Andreas. On Fri, Jan 20, 2012 at 12:00 AM, crb wrote: > I am seeing the same thing today with ArcGIS Server v10 SP1 REST services. > I've tried several different labeling options on the server side ('Remove > duplicate labels', 'Place one label per feature', 'Only place label inside > polygon') but OL still displays several labels per polygon feature. ?If I > view the same AGS service using the AGS JavaScript API, the labels are > rendered correctly, i.e. one per polygon. > > Has anyone else found a workaround for this? > > Thanks in advance. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Duplicate-labels-display-in-ArcGIS-Server-REST-map-service-when-viewing-through-OpenLayers-API-tp4902888p7205708.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From Takako.Tucker at bbc.co.uk Tue Jan 24 12:24:19 2012 From: Takako.Tucker at bbc.co.uk (Takako Tucker) Date: Tue Jan 24 12:36:05 2012 Subject: [OpenLayers-Users] SVG related error Message-ID: <28694E9306EE8A49A66BC06B625964F206E2ED0C@bbcxue604.national.core.bbc.co.uk> Hello, I've got .map in my html and that's got width and height. The map shows up fine, but throws these errors: Unexpected value NaN parsing width attribute. Unexpected value NaN parsing height attribute. Unexpected value 0 0 NaN NaN parsing viewBox attribute. I had a look at the code in Firebug and looks like this line is causing these errors Does anyone know why it's happening? Thanks Takako http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120124/9ade989e/attachment.html From jansen at terrestris.de Tue Jan 24 15:39:37 2012 From: jansen at terrestris.de (Marc Jansen) Date: Tue Jan 24 15:40:35 2012 Subject: [OpenLayers-Users] Layer.OSM / Layer.XYZ: show only a subset of all available resolutions In-Reply-To: References: <4F1EB29F.4020401@terrestris.de> Message-ID: <4F1F1709.9020408@terrestris.de> Hi Andreas, helpfull as always! This is indeed a very cool addition to OpenLayers. I will see if the application in question can move to git-master. Thanks a lot and kind regards, Marc On 24.01.2012 15:20, Andreas Hocevar wrote: > Not with the 2.11 release, but with current master (this was fixed > shortly after the release): > > new OpenLayers.Map({ > div: "map", > layers: [new OpenLayers.Layer.OSM(null, null, { > resolutions: [76.43702827148438, 19.109257067871095], > serverResolutions: [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] > })], > center: new OpenLayers.LonLat(16.37, 48.21).transform( > new OpenLayers.Projection("EPSG:4326"), > new OpenLayers.Projection("EPSG:900913") > ) > }); > > Andreas. > > On Tue, Jan 24, 2012 at 2:31 PM, Marc Jansen wrote: >> Hi list, >> >> I currently fail at implementing the following: >> >> Build a map that has a OpenLayers.Layer.OSM-layer, but which will only >> display some of the possible zoomlevels, e.g. only the zoomlevel 11 >> (resolution = 76.43702827148438) and the zoomlevel 13 (resolution = >> 19.109257067871095). >> >> This sounds easy at first... but yet I am struggling with this. I tried >> numerous combinations of resolutions, serverResolutions and zoomOffset but >> without success. Is this doable with current 2.11-API? >> >> Thanks for any help on this. >> >> Best regards, >> Marc >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > From Robert.Sanson at asurequality.com Tue Jan 24 17:14:11 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue Jan 24 17:14:39 2012 Subject: [OpenLayers-Users] Re: Iterating through features in a vector layer? References: <1327156900220-7211128.post@n2.nabble.com> Message-ID: <4F1FE4030200003700011E27@gate1.asurequality.com> Solved this, with the help of Andreas Hocevar: In my definition of the FeatureStore, I removed autoLoad:true cropStore = new GeoExt.data.FeatureStore({ layer: crops, fields: [ {name: 'id', type: 'int'}, {name: 'name', type: 'float'} ] }); To refresh the GridPanel after modifications of feature attributes I call: cropStore.loadData(crops.features, false); Regards, Robert >>> Robert Sanson 24/01/2012 5:09 p.m. >>> THis appears to be due to a synchronisation issue between OpenLayers and a Ext.grid.GridPanel loaded with a GeoExt.data.FeatureStore tied to the vector layer. I am looking for a way to force an update to the GridPanel when an attribute was modified, and was using: cropStore.unbind(); cropStore.bind(crops); but this seems to be causing the features to b re-added to the layer, resulting in a doubling. Can anyone suggest how to get GeoExt to re-read the features so the GridPanel is updated with the new attributes? Many thanks, Robert >>> Robert Sanson 24/01/2012 2:29 p.m. >>> I am using OpenLayers v2.11, and have a vector layer loaded from geometry in WKT format separated from attributes using pipe delimited text from a database (via a Python cgi-bin script). I am trying to write a function that iterates through all of the features and then POST updates back to the database when certain conditions are met. My difficulty is that layer.features.length is returning double the number of features. Here is my code that creates the layer and loads the features: function setHTML4cr(response4) { var cropnum = 0; var lines, line; var cropid, name, crds; var cropgeom; if (response4.responseText.toUpperCase().indexOf('ERROR') != -1) { alert(response4.responseText); } else { crops = new OpenLayers.Layer.Vector("Crops", {isBaseLayer: false, styleMap: crop_style, rendererOptions: {zIndexing: true}, extractAttributes: true }); var lines = response4.responseText.split('\n'); for ( var i=0;i Good day, I'm using a KML overlay, and am having an odd problem: When you pan the map with the mouse, the vector layer is not drawn on the newly visible areas. If you zoom in or out it will appear. Also, if you pan with the panzoombar it will display correctly. As a possible workaround, I added an event: map.events.on({moveend: function(evt) { alert("Hey"); return true; trackLogKMLLayer.redraw();} }); The alert & return false I added after to see if it was being triggered. The interesting thing I found was that this event is not being triggered when I pan with the mouse, but is when I use the panzoombar. The layer is being added as follows: function activateUploadedTrackLog(f) { var n = document.getElementById('gpsTrackName').value; document.getElementById('gpsTrackName').value = ''; document.getElementById('gpsTrackFile').value = ''; trackLogKMLLayer= new OpenLayers.Layer.Vector(n, { projection: map.displayProjection, strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: f, format: new OpenLayers.Format.KML({ extractStyles: true, extractAttributes: true }) }) }); map.addLayer(trackLogKMLLayer); Thoughts? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120124/3be0dd30/attachment.html From jansen at terrestris.de Wed Jan 25 02:13:49 2012 From: jansen at terrestris.de (Marc Jansen) Date: Wed Jan 25 02:14:59 2012 Subject: [OpenLayers-Users] Follow the arrows In-Reply-To: <1327156900220-7211128.post@n2.nabble.com> References: <1327156900220-7211128.post@n2.nabble.com> Message-ID: <4F1FABAD.7050204@terrestris.de> Hi Shadin, Have a look at http://openlayers-buch.de/beispiele/chapter-10/layer-lineDirection.html (which is working on an older version of OpenLayers), which might be of help. This is the source code: http://openlayers-buch.de/beispiele/chapter-10/OpenLayers.Layer.LineDirections.js. Best regards, Marc On 21.01.2012 15:41, Shadin wrote: > *I am wondering about how to replace my features with arrows depending > on its direction in the DB. the direction shown as numbers from 0 - > 360 I have found this but still not sure has anyone ever tried > something similar ? * > http://blog.geoserver.org/2009/04/02/follow-the-arrows/ > ------------------------------------------------------------------------ > View this message in context: Follow the arrows > > Sent from the OpenLayers Users mailing list archive > at > Nabble.com. > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/9905c35b/attachment.html From pjvint at gmail.com Wed Jan 25 02:40:48 2012 From: pjvint at gmail.com (Paul Vint) Date: Wed Jan 25 02:41:29 2012 Subject: [OpenLayers-Users] Follow the arrows In-Reply-To: <4F1FABAD.7050204@terrestris.de> References: <1327156900220-7211128.post@n2.nabble.com> <4F1FABAD.7050204@terrestris.de> Message-ID: Hi Shadin, Interesting timing - I just finally got on this list, and this is the first message I received, and I just was working on just that in my project..... Here's what I've done: In my PHP code I'm creating a KML file that I'll be loading, and I do the following: ## Divide the bearing by 22 to get a value from 0-15 for icons $p->setStyleUrl('#track-' . round($this->bearing[$c] / 22)); This sets the style in my KML to reference "track-4.png" (or any other number from 0-15) In my style declarations in the KML I have: Also there is "track-none.png" for a non-directional marker. I just remembered that the hotspot is wrong there - change it so x and y are 0.5, and use "fraction" for the units to have it align over the centre of the location. If you want the icons, there's a zip file with them at http://vint.ca/dumps/directionalKMLIcons.zip Cheers Paul On Wed, Jan 25, 2012 at 2:13 AM, Marc Jansen wrote: > ** > Hi Shadin, > > Have a look at > http://openlayers-buch.de/beispiele/chapter-10/layer-lineDirection.html(which is working on an older version of OpenLayers), which might be of > help. This is the source code: > http://openlayers-buch.de/beispiele/chapter-10/OpenLayers.Layer.LineDirections.js > . > > Best regards, > Marc > > > On 21.01.2012 15:41, Shadin wrote: > > * I am wondering about how to replace my features with arrows depending > on its direction in the DB. the direction shown as numbers from 0 - 360 I > have found this but still not sure has anyone ever tried something similar > ? * http://blog.geoserver.org/2009/04/02/follow-the-arrows/ > ------------------------------ > View this message in context: Follow the arrows > Sent from the OpenLayers Users mailing list archiveat Nabble.com. > > > _______________________________________________ > Users mailing listUsers@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/997dc8e6/attachment-0001.html From goerlitz at uni-koblenz.de Wed Jan 25 07:13:24 2012 From: goerlitz at uni-koblenz.de (=?ISO-8859-1?Q?Olaf_G=F6rlitz?=) Date: Wed Jan 25 07:14:10 2012 Subject: [OpenLayers-Users] Find out when rendering of vector features (using externalGraphic) is completed In-Reply-To: References: <4F19858A.30509@uni-koblenz.de> <4F1C4541.50400@uni-koblenz.de> Message-ID: <4F1FF1E4.2010005@uni-koblenz.de> Hi Andreas, thanks for the hint and the advice. I'm quite new to javascript and openlayers. So there are some (internal) things I don't understand yet. Finally, I found a solution (in another heatmap implementation) which draws radial gradients directly on the canvas. This works much better than the olheatmap approach using external graphics. var rad = 1000 / (1.1 * Math.pow(2, 16 - map.getZoom())); var ctx = heatmapLayer.renderer.canvas.canvas.getContext('2d'); var grd = ctx.createRadialGradient(rad, rad, 0, rad, rad, rad); grd.addColorStop(0.0, 'rgba(0, 0, 0, 0.5)'); grd.addColorStop(1.0, 'transparent'); for (i=0; i<200; i++) { var point = new OpenLayers.LonLat(1270000+Math.random()*30000, 6120000+Math.random()*24000); var pos = map.getLayerPxFromLonLat(point); ctx.fillStyle = grd; // must be set anew in every loop ctx.translate(pos.x - rad, pos.y - rad); ctx.fillRect(0, 0, rad << 1, rad << 1); ctx.translate(rad - pos.x, rad - pos.y); } Cheers, Olaf Andreas Hocevar wrote: > Hi, > > the problem is that you're using an external graphic, which is added > to the canvas in an onload handler. So try to render your circle just > with pointRadius, fillColor, strokeWidth and strokeColor, and not > externalGraphic and offsets, and you'll be fine. > > Andreas. > > On Sun, Jan 22, 2012 at 6:20 PM, Olaf G?rlitz wrote: >> Does anybody have an idea how to solve this problem? >> It is been braking my head for a couple of days already. >> >> Cheers, >> Olaf >> >> Olaf G?rlitz wrote: >>> Hi all, >>> >>> I'm trying to implement a heatmap based on olheatmap >>> (http://olheatmap.sourceforge.net/). First, an intensity circle is drawn >>> for each feature using a radial gradient image with differnt alpha >>> values. Afterwards, the alpha values in the layer's canvas are mapped to >>> the heatmap's color gradient. >>> >>> The problem is that rendering the features is not finished yet before >>> the heatmap transformation starts and I could not find any event which >>> indicates that the rendering is completed. >>> >>> I registered listeners for all events of the layer but all I get is >>> 'beforefeatureadded', 'featureadded', 'featuresadded' and mouse events. >>> I don't observe any 'sketchcomplete' or 'loadend' event. >>> >>> Is there any way to find out when rendering of the features is done? >>> (Interestingly, if the mouse cursor is not on the map, it seems that a >>> 'mouseout' event is triggered just after the rendering finishes). >>> >>> Below is the minimal code I use for generating the heatmap. >>> >>> Thanks for your help, >>> Olaf >>> >>> -------------------- >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -- ----------------------------------------------------------------------- Olaf G?rlitz goerlitz@uni-koblenz.de University of Koblenz-Landau phone: +49 261 287-2617 Institute for Web Science and Technologies fax: +49 261 287-100-2721 Universit?tsstr. 1, 56070 Koblenz, Germany http://west.uni-koblenz.de ----------------------------------------------------------------------- From robertdbuckley at yahoo.com Wed Jan 25 07:18:51 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed Jan 25 07:19:03 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers Message-ID: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> Hi, Has anyone successfully used MBTiles to server basemaps in Openlayers? Do any live example exist if yes? yours, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/09f1f1b8/attachment.html From relicary at gmail.com Wed Jan 25 08:36:07 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Wed Jan 25 08:36:16 2012 Subject: [OpenLayers-Users] Uncaught TypeError: Cannot read property 'w' of null Message-ID: Hi, I have a map which returns some data in a PopUp when the user clisk over it. The problem is that when the click is in one area outside the map, I obtain the next error: Uncaught TypeError: Cannot read property 'w' of null var mapSize = this.map.getSize(); in "Popup.js" at the API returns 'undefined' type. Exists some meaning to catch this error? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/72d226a4/attachment.html From jerome.gasperi at gmail.com Wed Jan 25 09:28:54 2012 From: jerome.gasperi at gmail.com (jrom) Date: Wed Jan 25 09:29:47 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> Message-ID: Hi Robert, You can do this through the OpenLayers.Layer.XYZ() class with some code server side to mimic a standard XYZ grid. I've done this within the mapshup framework (http://mapshup.info). Server side, you need to create a script that converts XYZ requests to mbtiles requests. See http://code.google.com/p/mapshup/source/browse/server/utilities/mbtsrv.php for an example of this script. Suppose that you access this script on http://localhost/mbtsrv.php, you should set your layer like this client side : var newLayer = new OpenLayers.Layer.XYZ("mbtile", 'http://localhost/mptsrv.php', {isBaseLayer:true}); Regards Jerome -- http://mapshup.info 2012/1/25 Robert Buckley : > Hi, > > Has anyone successfully used MBTiles to server basemaps in Openlayers? > Do any live example exist if yes? > > yours, > > Rob > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From gregor at greeninfo.org Wed Jan 25 11:51:45 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Wed Jan 25 11:52:26 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> Message-ID: <4F203321.8080500@greeninfo.org> On 1/25/2012 4:18 AM, Robert Buckley wrote: > Has anyone successfully used MBTiles to server > basemaps in Openlayers? Do any live example exist if yes? You need server-side software to open the MBTiles file and fetch the tiles. TileStache and TileStream are two popular servers for doing this. TileStache is Python and I found it fairly easy to set up. It runs under Apache as CGI, mod_python, or WSGI. If you have an existing web server and web content, this is probably the easiest way to go. TileStream is written in Node JS and takes a bit more setup. It does not run under Apache, but is its own server with its own service port and it has some behaviors regarding the hostname of incoming requests -- running it on port 80 with your other web content is not simple. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor@greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From robertdbuckley at yahoo.com Wed Jan 25 11:58:45 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed Jan 25 11:59:07 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: <4F203321.8080500@greeninfo.org> References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> <4F203321.8080500@greeninfo.org> Message-ID: <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> Thanks for the reply, So TileStache?can serve and render the MBTiles to use with openlayers? Would you know if there are possibilities for exporting mapcontent from the openlayers mappanel? This is one of the reasons i?m looking in this directory as I can?t do pdf exports with geowebcache served from geoserver. Thanks, Rob ________________________________ Von: Greg Allensworth An: Robert Buckley Cc: "users@openlayers.org" Gesendet: 17:51 Mittwoch, 25.Januar 2012 Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers On 1/25/2012 4:18 AM, Robert Buckley wrote: > Has anyone successfully used MBTiles to server > basemaps in Openlayers? Do any live example exist if yes? You need server-side software to open the MBTiles file and fetch the tiles. TileStache and TileStream are two popular servers for doing this. TileStache is Python and I found it fairly easy to set up. It runs under Apache as CGI, mod_python, or WSGI. If you have an existing web server and web content, this is probably the easiest way to go. TileStream is written in Node JS and takes a bit more setup. It does not run under Apache, but is its own server with its own service port and it has some behaviors regarding the hostname of incoming requests -- running it on port 80 with your other web content is not simple. -- Greg Allensworth, Web GIS Developer BS? A+? Network+? Security+? Linux+? Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510? San Francisco CA 94104 PH: 415-979-0343 x302? FX: 415-979-0371? ? email: gregor@greeninfo.org Web: www.GreenInfo.org? ? www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/71e02504/attachment-0001.html From ramotswa at gmail.com Wed Jan 25 12:04:17 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Wed Jan 25 12:04:58 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> <4F203321.8080500@greeninfo.org> <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> Message-ID: I suspect you might have the same problem. We have solved this by calling the appropriate WMS layer from the geoserver to do the print request. The problem with any tiled base approach is that either you have to cut down the tile parts that run outside of your export area, or you have to go to the closest tile, which at lower resolutions is quite a big geographical distance. Regards, Toby On 25 January 2012 16:58, Robert Buckley wrote: > Thanks for the reply, > > So TileStache?can serve and render the MBTiles to use with openlayers? Would > you know if there are possibilities for exporting mapcontent from the > openlayers mappanel? > > This is one of the reasons i?m looking in this directory as I can?t do pdf > exports with geowebcache served from geoserver. > > Thanks, > > Rob > > ________________________________ > Von: Greg Allensworth > An: Robert Buckley > Cc: "users@openlayers.org" > Gesendet: 17:51 Mittwoch, 25.Januar 2012 > Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers > > On 1/25/2012 4:18 AM, Robert Buckley wrote: >> Has anyone successfully used MBTiles to server >> basemaps in Openlayers? Do any live example exist if yes? > > You need server-side software to open the MBTiles file and fetch the tiles. > TileStache and TileStream are two popular servers for doing this. > > TileStache is Python and I found it fairly easy to set up. It runs under > Apache as CGI, mod_python, or WSGI. If you have an existing web server and > web content, this is probably the easiest way to go. > > TileStream is written in Node JS and takes a bit more setup. It does not run > under Apache, but is its own server with its own service port and it has > some behaviors regarding the hostname of incoming requests -- running it on > port 80 with your other web content is not simple. > > -- Greg Allensworth, Web GIS Developer > BS? A+? Network+? Security+? Linux+? Server+ > GreenInfo Network - Information and Mapping in the Public Interest > 564 Market Street, Suite 510? San Francisco CA 94104 > PH: 415-979-0343 x302? FX: 415-979-0371? ? email: gregor@greeninfo.org > Web: www.GreenInfo.org? ? www.MapsPortal.org > > Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From gregor at greeninfo.org Wed Jan 25 12:06:17 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Wed Jan 25 12:06:57 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> <4F203321.8080500@greeninfo.org> <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> Message-ID: <4F203689.9020904@greeninfo.org> On 1/25/2012 8:58 AM, Robert Buckley wrote: > So TileStache can serve and render the > MBTiles to use with openlayers? Correct. http://tilestache.org/doc/TileStache.MBTiles.html It can serve up an existing MBTiles file. But according to the docs, it will not save tiles to a MBTiles file -- you need an existing MBTiles file, or can use tilestache-seed to create one. > Would you know if there are possibilities for exporting > mapcontent from the openlayers mappanel? > This is one of the reasons i?m looking in this directory as > I can?t do pdf exports with geowebcache served from geoserver. This seems independent of your MBTiles question. TileStache and other map servers probably won't get involved with loading the content of your map and then creating a PDF. Check out some of the resources here: http://trac.osgeo.org/openlayers/wiki/Printing Our current favorite method is wkhtmltopdf. You basically write a new page using JavaScript and OpenLayers as usual, have it set the map's zoom and center and basemap -- so that when the page opens it's showing exactly the map you want. Dump the HTML to a file, have wkhtmltopdf convert the HTML file to a PDF (yes, wkhtmltopdf speaks JavaScript, even jQuery, Bing Maps, and OpenLayers). Really slick. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor@greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From robertdbuckley at yahoo.com Wed Jan 25 12:12:58 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed Jan 25 12:13:15 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> <4F203321.8080500@greeninfo.org> <1327510725.59069.YahooMailNeo@web24108.mail.ird.yahoo.com> Message-ID: <1327511578.21740.YahooMailNeo@web24103.mail.ird.yahoo.com> Thanks Tobias. I remember your forum post from November last year... "...So to get this working, you might be able add quite a simple loop.In your printprovider.js in line 367 there is a loop to populate the json object with the layers that you are wanting to get printed. So onto line 369 add: if (layer.url == "http://maps.zgb.de/geoserver/gwc/service/wms"){ layer.url = "http://maps.zgb.de/geoserver/zgb/wms") else {} (untested code, probably missing ;'s and other stuff!)... Toby. ..." This never did work for me....and I decided to enjoy christmas and start the whole thing again in 2012. Unfortunately we are already in 2012 and the niggly little jobs which I need to solve have appeared again! If you have time to help me crack this one I?d be much appreciated. ?ps..i?m located in D-31822. yours, Rob ________________________________ Von: Tobias Reinicke An: Robert Buckley Cc: Greg Allensworth ; "users@openlayers.org" Gesendet: 18:04 Mittwoch, 25.Januar 2012 Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers I suspect you might have the same problem. We have solved this by calling the appropriate WMS layer from the geoserver to do the print request. The problem with any tiled base approach is that either you have to cut down the tile parts that run outside of your export area, or you have to go to the closest tile, which at lower resolutions is quite a big geographical distance. Regards, Toby On 25 January 2012 16:58, Robert Buckley wrote: > Thanks for the reply, > > So TileStache?can serve and render the MBTiles to use with openlayers? Would > you know if there are possibilities for exporting mapcontent from the > openlayers mappanel? > > This is one of the reasons i?m looking in this directory as I can?t do pdf > exports with geowebcache served from geoserver. > > Thanks, > > Rob > > ________________________________ > Von: Greg Allensworth > An: Robert Buckley > Cc: "users@openlayers.org" > Gesendet: 17:51 Mittwoch, 25.Januar 2012 > Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers > > On 1/25/2012 4:18 AM, Robert Buckley wrote: >> Has anyone successfully used MBTiles to server >> basemaps in Openlayers? Do any live example exist if yes? > > You need server-side software to open the MBTiles file and fetch the tiles. > TileStache and TileStream are two popular servers for doing this. > > TileStache is Python and I found it fairly easy to set up. It runs under > Apache as CGI, mod_python, or WSGI. If you have an existing web server and > web content, this is probably the easiest way to go. > > TileStream is written in Node JS and takes a bit more setup. It does not run > under Apache, but is its own server with its own service port and it has > some behaviors regarding the hostname of incoming requests -- running it on > port 80 with your other web content is not simple. > > -- Greg Allensworth, Web GIS Developer > BS? A+? Network+? Security+? Linux+? Server+ > GreenInfo Network - Information and Mapping in the Public Interest > 564 Market Street, Suite 510? San Francisco CA 94104 > PH: 415-979-0343 x302? FX: 415-979-0371? ? email: gregor@greeninfo.org > Web: www.GreenInfo.org? ? www.MapsPortal.org > > Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/bbec28e1/attachment.html From tacman at gmail.com Wed Jan 25 12:33:33 2012 From: tacman at gmail.com (Tac Tacelosky) Date: Wed Jan 25 12:34:10 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> Message-ID: Wow, what a cool tool! Am I correct in my (brief) reading of the license that it is more permissive than GPL? http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html I have a client that needs a map to integrate with some of our tools, although I'm guessing that I'd be able to do this without actually modifying the mashup code, simply configuring the widgets and search, etc. The license mentions "External Modules". Is their documentation or a mailing list for developing those? Thanks, and thanks again for a great tool, is it on the OpenLayers example page somewhere? (http://openlayers.org/dev/examples/) It's a great site for showcasing OpenLayers' capabilities. Tac On Wed, Jan 25, 2012 at 9:28 AM, jrom wrote: > Hi Robert, > > You can do this through the OpenLayers.Layer.XYZ() class with some > code server side to mimic a standard XYZ grid. > I've done this within the mapshup framework (http://mapshup.info). > > Server side, you need to create a script that converts XYZ requests to > mbtiles requests. > See > http://code.google.com/p/mapshup/source/browse/server/utilities/mbtsrv.php > for an example of this script. > > Suppose that you access this script on http://localhost/mbtsrv.php, > you should set your layer like this client side : > > var newLayer = new OpenLayers.Layer.XYZ("mbtile", > 'http://localhost/mptsrv.php', {isBaseLayer:true}); > > Regards > > Jerome > > -- > http://mapshup.info > > 2012/1/25 Robert Buckley : > > Hi, > > > > Has anyone successfully used MBTiles to server basemaps in Openlayers? > > Do any live example exist if yes? > > > > yours, > > > > Rob > > > > _______________________________________________ > > Users mailing list > > Users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120125/8c9e00ac/attachment-0001.html From robertdbuckley at yahoo.com Thu Jan 26 03:09:20 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Thu Jan 26 03:09:26 2012 Subject: [OpenLayers-Users] Tile stitching with a server-side program Message-ID: <1327565360.55752.YahooMailNeo@web24104.mail.ird.yahoo.com> Hi, I am trying to sort out a satisfactory printing mechanism for slippy maps in openlayers. My set up is Ubuntu 10.04 / Tomcat6 / Geoserver2.1.2 / Openlayers / GeoExt My Baselayers are either TMS WTMS or GeoWebCache.....these cannot be printed with the mapfish print module ( only wms) So...I am looking at the "Tile stitching using a server-side program" - script found here http://trac.osgeo.org/openlayers/wiki/Printing? Has anyone managed to get working? ? I am having a problem understand the Javascript.. My alert below is always empty...I tried putting in the name of the layer, but this also returns null! for (layername in map.layers) { ? ? ? ? // if the layer isn't visible at this range, or is turned off, skip it ? ? ? ? var layer = map.layers[layername]; alert(layer); ? ? ? ? if (!layer.getVisibility()) continue; ? ? ? ? if (!layer.calculateInRange()) continue; If anyone has done something similar, please report! yours, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/818aa2dc/attachment.html From jerome.gasperi at gmail.com Thu Jan 26 05:33:45 2012 From: jerome.gasperi at gmail.com (jrom) Date: Thu Jan 26 05:34:38 2012 Subject: [OpenLayers-Users] Use of MBTIles with openlayers In-Reply-To: References: <1327493931.18374.YahooMailNeo@web24102.mail.ird.yahoo.com> Message-ID: Hi Tac ! 2012/1/25 Tac Tacelosky : > Wow, what a cool tool! ? Am I correct in my (brief) reading of the license > that it is more permissive than GPL? > > http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html I really appreciate that you like this application :) Yes the license is more permissive than GPL. It can be compared to the BSD license : you can do what you want with the code without giving back the modifications to the community. The main difference with BSD is that you need to expressively mention mapshup in your software - let the mapshup logo within the map for example. > I have a client that needs a map to integrate with some of our tools, > although I'm guessing that I'd be able to do this without actually modifying > the mashup code, simply configuring the widgets and search, etc. > The license mentions "External Modules". ?Is their documentation or a > mailing list for developing those? It's a very generic licence so "External Modules" do not refer specifically to mapshup. However the application architecture is based on a "plugin" approach to allow people to develop their own functionality. Unfortunately i had no time yet to write documentation so for the moment you need to look at the code to understand how it works. To have some idea about what you can by configuration, you should look at the default configuration file (http://code.google.com/p/mapshup/source/browse/client/js/mapshup/config/default.js). I'm preparing some minimal documentation to explain how the tool works and how you can configure/modify it to suits your needs. For example, there are some hidden functionalities that are not visible at first sight : - you should try to drag&drop an url on the map (WMS, WFS, GeoRSS) or a file (GeoJSON, JPEG with GPS information stored in EXIF, etc.) - when you click for more than 200ms on the map, a popup menu appears > Thanks, and thanks again for a great tool, is it on the OpenLayers example > page somewhere? (http://openlayers.org/dev/examples/) ?It's a great site for > showcasing OpenLayers' capabilities. I think that the examples page is dedicated to OpenLayers examples only and not to "OpenLayers based application". But i'll be pleased to showcase OpenLayers capabilities through mapshup ! Regards Jerome > > Tac > > On Wed, Jan 25, 2012 at 9:28 AM, jrom wrote: >> >> Hi Robert, >> >> You can do this through the OpenLayers.Layer.XYZ() class with some >> code server side to mimic a standard XYZ grid. >> I've done this within the mapshup framework (http://mapshup.info). >> >> Server side, you need to create a script that converts XYZ requests to >> mbtiles requests. >> See >> http://code.google.com/p/mapshup/source/browse/server/utilities/mbtsrv.php >> for an example of this script. >> >> Suppose that you access this script on http://localhost/mbtsrv.php, >> you should set your layer like this client side : >> >> var newLayer = new OpenLayers.Layer.XYZ("mbtile", >> 'http://localhost/mptsrv.php', {isBaseLayer:true}); >> >> Regards >> >> Jerome >> >> -- >> http://mapshup.info >> >> 2012/1/25 Robert Buckley : >> > Hi, >> > >> > Has anyone successfully used MBTiles to server basemaps in Openlayers? >> > Do any live example exist if yes? >> > >> > yours, >> > >> > Rob >> > >> > _______________________________________________ >> > Users mailing list >> > Users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- http://jrom.info From ahocevar at opengeo.org Thu Jan 26 07:05:47 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 07:06:26 2012 Subject: [OpenLayers-Users] SVG related error In-Reply-To: <28694E9306EE8A49A66BC06B625964F206E2ED0C@bbcxue604.national.core.bbc.co.uk> References: <28694E9306EE8A49A66BC06B625964F206E2ED0C@bbcxue604.national.core.bbc.co.uk> Message-ID: Hi, can you post a minimal example map that produces these errors? Thanks, Andreas. On Tue, Jan 24, 2012 at 6:24 PM, Takako Tucker wrote: > Hello, > > I've got .map in my html and that's got width and height. > The map shows up fine, but throws these errors: > > > Unexpected value NaN parsing width attribute. > Unexpected value NaN parsing height attribute. > Unexpected value 0 0 NaN NaN parsing viewBox attribute. > > > I had a look at the code in Firebug and looks like this line is causing > these errors > > viewBox="0 0 NaN NaN"/> > > Does anyone know why it's happening? > > Thanks > > Takako > > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From Takako.Tucker at bbc.co.uk Thu Jan 26 07:24:50 2012 From: Takako.Tucker at bbc.co.uk (Takako Tucker) Date: Thu Jan 26 07:31:59 2012 Subject: [OpenLayers-Users] SVG related error In-Reply-To: References: <28694E9306EE8A49A66BC06B625964F206E2ED0C@bbcxue604.national.core.bbc.co.uk> Message-ID: <28694E9306EE8A49A66BC06B625964F206E2ED25@bbcxue604.national.core.bbc.co.uk> Hi Andreas I was just going to send a follow up post. It's been fixed. This is a bit of insights.. Background: We have two tabs, fist one shows up a static map image, another shows the OL map. To achieve these tab navigations, we needed to add "display:none" by javascript to hide one of the containers. Issue: As the second tab contained OL map and the tab container defaults to display:none when loading, width and height assigned to map div was getting removed and throwing an error. So we did: Create a function to makeMap then only triggers it when the second tab was clicked. Thanks as always for your support. takako -----Original Message----- From: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] On Behalf Of Andreas Hocevar Sent: 26 January 2012 12:06 To: Takako Tucker Cc: openlayers-users@lists.osgeo.org Subject: Re: [OpenLayers-Users] SVG related error Hi, can you post a minimal example map that produces these errors? Thanks, Andreas. On Tue, Jan 24, 2012 at 6:24 PM, Takako Tucker wrote: > Hello, > > I've got .map in my html and that's got width and height. > The map shows up fine, but throws these errors: > > > Unexpected value NaN parsing width attribute. > Unexpected value NaN parsing height attribute. > Unexpected value 0 0 NaN NaN parsing viewBox attribute. > > > I had a look at the code in Firebug and looks like this line is > causing these errors > > viewBox="0 0 NaN NaN"/> > > Does anyone know why it's happening? > > Thanks > > Takako > > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From antoni.vidal at icc.cat Thu Jan 26 09:29:00 2012 From: antoni.vidal at icc.cat (Vidal, Antoni) Date: Thu Jan 26 09:30:12 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels Message-ID: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> Hi list, I've an OpenLayers.control.Navigation with following config options: var navControl = new OpenLayers.Control.Navigation({ type: OpenLayers.Control.TYPE_TOGGLE, zoomWheelEnabled: true, mouseWheelOptions: {interval: 1} }); But when user changes map zoom level using mousewheel, map zoomlevel jumps from 0 to 2 and then to 4, etc. Is possible to change this behaviour and force change zoomlevel one by one ? 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/f0d4205d/attachment-0001.html From jefferson.r.heard at gmail.com Thu Jan 26 09:56:29 2012 From: jefferson.r.heard at gmail.com (Jeff Heard) Date: Thu Jan 26 09:57:40 2012 Subject: [OpenLayers-Users] Blog Posts on OpenLayers Message-ID: I'm blogging on intro to OpenLayers concepts over at geoanalytics.renci.org. There are four posts up right now: Introduction - http://geoanalytics.renci.org/uncategorized/an-introduction-to-openlayers/ OpenLayers.Map - http://geoanalytics.renci.org/uncategorized/more-about-the-map-object/ Vector Layers - http://geoanalytics.renci.org/uncategorized/openlayers-vector-layers/ Styling Vector Layers - http://geoanalytics.renci.org/uncategorized/adding-style-to-your-openlayers/ Enjoy, -- Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/94b1e1f3/attachment.html From jerome.gasperi at gmail.com Thu Jan 26 10:04:24 2012 From: jerome.gasperi at gmail.com (jrom) Date: Thu Jan 26 10:05:09 2012 Subject: [OpenLayers-Users] Blog Posts on OpenLayers In-Reply-To: References: Message-ID: Hi Jeff, Nice posts. Very clear ! One remark : in the "Introduction to OpenLayers" post you mention the EPSG:3785 srs. I think it is deprecated an replaced by EPSG:3857 srs (see http://wiki.openstreetmap.org/wiki/EPSG:3857) Regards Jerome -- http://mapshup.info 2012/1/26 Jeff Heard : > I'm blogging on intro to OpenLayers concepts over at geoanalytics.renci.org. > ?There are four posts up right now: > > Introduction - > http://geoanalytics.renci.org/uncategorized/an-introduction-to-openlayers/ > OpenLayers.Map - > http://geoanalytics.renci.org/uncategorized/more-about-the-map-object/ > Vector Layers - > http://geoanalytics.renci.org/uncategorized/openlayers-vector-layers/ > Styling Vector Layers - > http://geoanalytics.renci.org/uncategorized/adding-style-to-your-openlayers/ > > Enjoy, > > -- Jeff > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From pjfingers at gmail.com Thu Jan 26 10:06:01 2012 From: pjfingers at gmail.com (Paul Edwards) Date: Thu Jan 26 10:06:29 2012 Subject: [OpenLayers-Users] Catching WMS errors when using OpenLayers.Layer.WMS... can it be done? Message-ID: Hi! I am working with OpenLayers 2.10 and I have a question regarding error trapping when using OpenLayers.Layer.WMS (or OpenLayers.Layer.WMS.Post). My goal is to provide some validation that a WMS layer has been configured properly and that the custom SLD being dynamically applied is also valid. I'm open to suggestions as to how to accomplish this, however to date my efforts have involved setting the EXCEPTIONS parameter in the WMS params to return application/vnd.ogc.se_xml and then attempting to intercept the WMS response in order to check. In a success situation the WMS will return a .gif image. If there's an error the WMS will send the little snippet of XML. I have included a functional WMS link below that has a deliberate error with the SLD reference given. I have also included the XML response. My issue is that I cannot for the life of me figure out how to get my hands (programmatically speaking of course) on that XML error response when the tiles are loaded by the OpenLayers.Layer.WMS object. I would like to intercept the response to the call made by the OpenLayers.Layer.WMS class to the WMS server when loading the tiles. It appears as if the events provided that would be of possible use in my case are limited to 'loadend'. With a little trickery I was able to get a 'tileloaded' event listener to fire, however both listeners only promote the OpenLayers.Layer.WMS instance to the listener function and do not give access to the request/response made to/from the WMS server. Any thoughts? Thanks in advance for your help! Paul The pertinent params: SLD=http://somethingbogus EXCEPTIONS=application/vnd.ogc.se_xml The URL: http://mapsdb.nrel.gov/geoserver/wms?LAYERS=topp%3Astates&TRANSPARENT=true&FORMAT=image%2Fgif&LAYER_TYPE=polygon&SLD=http%3A%2F%2Fsomethingbogus&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-5009376.7456,5009377.424,-2504688.2032,7514065.9664&WIDTH=256&HEIGHT=256 The response: java.net.UnknownHostException: somethingbogus somethingbogus -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/440f8768/attachment.html From ahocevar at opengeo.org Thu Jan 26 10:25:26 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 10:26:03 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels In-Reply-To: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> References: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> Message-ID: My guess is that you have two Navigation controls. One that is added to the map by default unless you configure it with your custom array of controls, and the navControl you added. You can check in the javascript console by trying map.getControlsByClass("OpenLayers.Control.Navigation"); and see if it returns an array of length 1 or 2. The obvious fix is to configure the map with your own default set of controls. Andreas. On Thu, Jan 26, 2012 at 3:29 PM, Vidal, Antoni wrote: > Hi list, > > > > I?ve an OpenLayers.control.Navigation with following config options: > > > > ??????? var navControl = new OpenLayers.Control.Navigation({ > > ??????????? type: OpenLayers.Control.TYPE_TOGGLE, > > ??????????? zoomWheelEnabled: true, > > ??????????? mouseWheelOptions: {interval: 1} > > ??????? }); > > > > But when user changes map zoom level using mousewheel, map zoomlevel jumps > from 0 to 2 and then to 4, etc. > > > > Is possible to change this behaviour and force change zoomlevel one by one ? > > > > 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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From daniel.behr at hzg.de Thu Jan 26 10:41:53 2012 From: daniel.behr at hzg.de (Daniel Behr) Date: Thu Jan 26 10:42:58 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels In-Reply-To: References: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> Message-ID: <4F217441.6000406@hzg.de> I'm facing a similar problem, but for my app its a cross-browser issue on windows machines only! on linux its fine and the map has only one Navigation Control. does this help to spot the problem? Daniel Am 26.01.2012 16:25, schrieb Andreas Hocevar: > My guess is that you have two Navigation controls. One that is added > to the map by default unless you configure it with your custom array > of controls, and the navControl you added. > > You can check in the javascript console by trying > > map.getControlsByClass("OpenLayers.Control.Navigation"); > > and see if it returns an array of length 1 or 2. > > The obvious fix is to configure the map with your own default set of controls. > > Andreas. > > On Thu, Jan 26, 2012 at 3:29 PM, Vidal, Antoni wrote: >> Hi list, >> >> >> >> I?ve an OpenLayers.control.Navigation with following config options: >> >> >> >> var navControl = new OpenLayers.Control.Navigation({ >> >> type: OpenLayers.Control.TYPE_TOGGLE, >> >> zoomWheelEnabled: true, >> >> mouseWheelOptions: {interval: 1} >> >> }); >> >> >> >> But when user changes map zoom level using mousewheel, map zoomlevel jumps >> from 0 to 2 and then to 4, etc. >> >> >> >> Is possible to change this behaviour and force change zoomlevel one by one ? >> >> >> >> 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@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > -- Daniel Behr Institut f?r K?stenforschung WebGIS Entwicklung +49 (0)4152 87 1589 (fax -1596) Daniel.Behr@hzg.de Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register Court) Internet: http://www.hzg.de From ahocevar at opengeo.org Thu Jan 26 10:51:50 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 10:52:24 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels In-Reply-To: <4F217441.6000406@hzg.de> References: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> <4F217441.6000406@hzg.de> Message-ID: Hi, whether one tick on the mouse wheel is one zoom level or not depends on the mouse sensitivity, which is a system-wide setting. You can, however, pass something like mouseWheelOptions: {interval: 20, cumulative: false} to the Navigation control, and it will only change the zoom by 1 for a 20ms drag. You can try this setting online here: http://openlayers.org/dev/examples/mobile-wmts-vienna.html Andreas. On Thu, Jan 26, 2012 at 4:41 PM, Daniel Behr wrote: > I'm facing a similar problem, but for my app its a cross-browser issue on > windows machines only! on linux its fine and the map has only one Navigation > Control. > > does this help to spot the problem? > > Daniel > > Am 26.01.2012 16:25, schrieb Andreas Hocevar: > >> My guess is that you have two Navigation controls. One that is added >> to the map by default unless you configure it with your custom array >> of controls, and the navControl you added. >> >> You can check in the javascript console by trying >> >> map.getControlsByClass("OpenLayers.Control.Navigation"); >> >> and see if it returns an array of length 1 or 2. >> >> The obvious fix is to configure the map with your own default set of >> controls. >> >> Andreas. >> >> On Thu, Jan 26, 2012 at 3:29 PM, Vidal, Antoni >> ?wrote: >>> >>> Hi list, >>> >>> >>> >>> I?ve an OpenLayers.control.Navigation with following config options: >>> >>> >>> >>> ? ? ? ? var navControl = new OpenLayers.Control.Navigation({ >>> >>> ? ? ? ? ? ? type: OpenLayers.Control.TYPE_TOGGLE, >>> >>> ? ? ? ? ? ? zoomWheelEnabled: true, >>> >>> ? ? ? ? ? ? mouseWheelOptions: {interval: 1} >>> >>> ? ? ? ? }); >>> >>> >>> >>> But when user changes map zoom level using mousewheel, map zoomlevel >>> jumps >>> from 0 to 2 and then to 4, etc. >>> >>> >>> >>> Is possible to change this behaviour and force change zoomlevel one by >>> one ? >>> >>> >>> >>> 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@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> >> > > -- > Daniel Behr > Institut f?r K?stenforschung > WebGIS Entwicklung > +49 (0)4152 87 1589?(fax -1596) > Daniel.Behr@hzg.de > Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH > Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany > Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. > Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory > Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register > Court) Internet: http://www.hzg.de > ?_______________________________________________ > > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From kanderson at truevectortech.com Thu Jan 26 12:36:00 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 12:42:10 2012 Subject: [OpenLayers-Users] overlaying tiled WMS on top of bing Message-ID: Hello list, I've been trying to get a WMS layer that I'm serving from geoserver to show up over bing as a basemap. My layer appears at the first zoom level but disappears when I zoom in. I'm playing with the minResolution and maxResolution and the scales figuring that it needs to match the base layer. Any advice on how to get up to speed on the relevant bits to make this work? Thanks, Kjel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/f0df7994/attachment.html From maw269 at gmail.com Thu Jan 26 13:30:59 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 13:31:08 2012 Subject: [OpenLayers-Users] How to test if a point is within WMS layer? Message-ID: <1327602659260-4341265.post@n6.nabble.com> I have a multipolygon layer in GeoServer that I can show as a WMS in OpenLayers. I want to geocode a location and place a marker on the map (got this working) and determine if that marker is inside or outside the multipolygon layer. I thought I could use WFS to get all the features of the polygon layer then use OpenLayers.Format.GML.parseGeometry.multipolygon to turn it into a polygon object in OL. Then I could use OpenLayers.Geometry.Polygon.containsPoint to test if the point is within the polygon. First Question: is this logic sound? The next issue is that I can't get the WFS for this layer to work. It hangs my GeoServer when I request it. I guess the layer is too big? Does anyone know how I could use OpenLayers to display the layer as a WMS but query on the back end (GeoServer) if my 'point' is within the layer? Thanks, Matt -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341265.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From maw269 at gmail.com Thu Jan 26 13:33:41 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 13:33:57 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: Message-ID: <1327602821368-4341275.post@n6.nabble.com> Is your bing layer imagery? I've had nothing but issues combining layers with Bing Imagery layers. Anyhow, can you post the relevant code so we could take a look? --Matt -- View this message in context: http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From kanderson at truevectortech.com Thu Jan 26 13:44:46 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 13:45:36 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: <1327602821368-4341275.post@n6.nabble.com> References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: Looking at it now I see the version that is working "best" is with the wms layer being untiled. function init(){ // if this is just a coverage or a group of them, disable a few items, // and default to jpeg format format = 'image/png'; var bounds = new OpenLayers.Bounds( -19840232, 2028971.375, -7262943, 11534410 ); var options = { controls: [], maxResolution: 49130.03515625, projection: "EPSG:900913", units: 'm' }; map = new OpenLayers.Map('map', options); var road = new OpenLayers.Layer.Bing({ name: "Road", key: apiKey, type: "Road" }); var hybrid = new OpenLayers.Layer.Bing({ name: "Hybrid", key: apiKey, type: "AerialWithLabels" }); var aerial = new OpenLayers.Layer.Bing({ name: "Aerial", key: apiKey, type: "Aerial" }); map.addLayers([road, hybrid, aerial]); tiled = new OpenLayers.Layer.WMS( "dwt_lata_proj - Untiled", " http://localhost:8080/geoserver/wms", { width: '512', srs: 'EPSG:900913', layers: 'DWT:dwt_lata_proj', height: '386', styles: '', format: format, transparent:true, numZoomLevels:19, minResolution:0.5971642833948135, maxResolution:156543.03390625 }, {singleTile: true, ratio: 1} ); map.addLayer(untiled); // build up all controls map.addControl(new OpenLayers.Control.PanZoomBar({ position: new OpenLayers.Pixel(2, 15) })); map.addControl(new OpenLayers.Control.Navigation()); map.addControl(new OpenLayers.Control.Scale($('scale'))); map.addControl(new OpenLayers.Control.MousePosition({element: $('location')})); map.addControl(new OpenLayers.Control.LayerSwitcher()); On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: > Is your bing layer imagery? I've had nothing but issues combining layers > with > Bing Imagery layers. > Anyhow, can you post the relevant code so we could take a look? > --Matt > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/5284a488/attachment.html From gregor at greeninfo.org Thu Jan 26 13:45:11 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Thu Jan 26 13:45:55 2012 Subject: [OpenLayers-Users] How to test if a point is within WMS layer? In-Reply-To: <1327602659260-4341265.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com> Message-ID: <4F219F37.2000709@greeninfo.org> > I thought I could use WFS to get all the features of the polygon layer then > use OpenLayers.Format.GML.parseGeometry.multipolygon to turn it into a > polygon object in OL. Then I could use > OpenLayers.Geometry.Polygon.containsPoint to test if the point is within the > polygon. First Question: is this logic sound? Yes, it is sound and also easy to implement. But you may have an issue if it's more than a few thousand vertices. You may hang the browser simply parsing the GML. The server-side method you are already attempting, sounds like your best bet. I'm sorry I have no help for you on the hanging problem. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor@greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From ahocevar at opengeo.org Thu Jan 26 13:45:22 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 13:46:12 2012 Subject: [OpenLayers-Users] How to test if a point is within WMS layer? In-Reply-To: <1327602659260-4341265.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com> Message-ID: Hi, you only need the bounding box of the layer, which you can get from the WMS GetCapabilities response. Use OpenLayers.Format.WMSCapabilities to parse it, and look for the llbbox or bbox properties inside the layer object. Andreas. On Thu, Jan 26, 2012 at 7:30 PM, maw269 wrote: > I have a multipolygon layer in GeoServer that I can show as a WMS in > OpenLayers. I want to geocode a location and place a marker on the map (got > this working) and determine if that marker is inside or outside the > multipolygon layer. > > I thought I could use WFS to get all the features of the polygon layer then > use OpenLayers.Format.GML.parseGeometry.multipolygon to turn it into a > polygon object in OL. Then I could use > OpenLayers.Geometry.Polygon.containsPoint to test if the point is within the > polygon. First Question: is this logic sound? > > The next issue is that I can't get the WFS for this layer to work. It hangs > my GeoServer when I request it. I guess the layer is too big? Does anyone > know how I could use OpenLayers to display the layer as a WMS but query on > the back end (GeoServer) if my 'point' is within the layer? > Thanks, > Matt > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341265.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Thu Jan 26 13:50:57 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 13:51:22 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: Hi, you put most layer options in the layer params object, and you should set the maxExtent on the WMS layer. Something like tiled = new OpenLayers.Layer.WMS( "dwt_lata_proj - Untiled", "http://localhost:8080/geoserver/wms", { layers: 'DWT:dwt_lata_proj', styles: '', format: format, transparent:true, }, { numZoomLevels:19, maxExtent: new OpenLayers.Bounds( -19840232, 2028971.375, -7262943, 11534410 ), minResolution:0.5971642833948135, maxResolution:156543.03390625, singleTile: true, ratio: 1 } ); The above should work both with singleTile: true and without. Andreas. On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson wrote: > Looking at it now I see the version that is working "best" is with the wms > layer being untiled. > > ? function init(){ > ? ? ? ? ? ? ? ? // if this is just a coverage or a group of them, disable a > few items, > ? ? ? ? ? ? ? ? // and default to jpeg format > ? ? ? ? ? ? ? ? format = 'image/png'; > > > ? ? ? ? ? ? ? ? var bounds = new OpenLayers.Bounds( > ? ? ? ? ? ? ? ? ? ? -19840232, 2028971.375, > ? ? ? ? ? ? ? ? ? ? -7262943, 11534410 > ? ? ? ? ? ? ? ? ); > ? ? ? ? ? ? ? ? var options = { > ? ? ? ? ? ? ? ? ? ? controls: [], > ? ? ? ? ? ? ? ? ? ? maxResolution: 49130.03515625, > ? ? ? ? ? ? ? ? ? ? projection: "EPSG:900913", > ? ? ? ? ? ? ? ? ? ? units: 'm' > ? ? ? ? ? ? ? ? }; > ? ? ? ? ? ? ? ? map = new OpenLayers.Map('map', options); > > ? ? ? ? ? ? var road = new OpenLayers.Layer.Bing({ > ? ? ? ? ? ? ? ? name: "Road", > ? ? ? ? ? ? ? ? key: apiKey, > ? ? ? ? ? ? ? ? type: "Road" > ? ? ? ? ? ? }); > ? ? ? ? ? ? var hybrid = new OpenLayers.Layer.Bing({ > ? ? ? ? ? ? ? ? name: "Hybrid", > ? ? ? ? ? ? ? ? key: apiKey, > ? ? ? ? ? ? ? ? type: "AerialWithLabels" > ? ? ? ? ? ? }); > ? ? ? ? ? ? var aerial = new OpenLayers.Layer.Bing({ > ? ? ? ? ? ? ? ? name: "Aerial", > ? ? ? ? ? ? ? ? key: apiKey, > ? ? ? ? ? ? ? ? type: "Aerial" > ? ? ? ? ? ? }); > > ? ? ? ? ? ? map.addLayers([road, hybrid, aerial]); > > ? ? ? ? ? ? tiled = new OpenLayers.Layer.WMS( > ? ? ? ? ? ? ? ? "dwt_lata_proj - Untiled", > "http://localhost:8080/geoserver/wms", > ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? width: '512', > ? ? ? ? ? ? ? ? ? ? srs: 'EPSG:900913', > ? ? ? ? ? ? ? ? ? ? layers: 'DWT:dwt_lata_proj', > ? ? ? ? ? ? ? ? ? ? height: '386', > ? ? ? ? ? ? ? ? ? ? styles: '', > ? ? ? ? ? ? ? ? ? ? format: format, > ? ? ? ? ? ? ? ? ? ? transparent:true, > ? ? ? ? ? ? ? ? ? ? numZoomLevels:19, > ? ? ? ? ? ? ? ? ? ? minResolution:0.5971642833948135, > ? ? ? ? ? ? ? ? ? ? maxResolution:156543.03390625 > ? ? ? ? ? ? ? ? }, > ? ? ? ? ? ? ? ? {singleTile: true, ratio: 1} > ? ? ? ? ? ? ); > > ? ? ? ? ? ? map.addLayer(untiled); > > ? ? ? ? ? ? // build up all controls > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.PanZoomBar({ > ? ? ? ? ? ? ? ? position: new OpenLayers.Pixel(2, 15) > ? ? ? ? ? ? })); > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Navigation()); > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Scale($('scale'))); > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.MousePosition({element: > $('location')})); > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.LayerSwitcher()); > > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: >> >> Is your bing layer imagery? I've had nothing but issues combining layers >> with >> Bing Imagery layers. >> Anyhow, can you post the relevant code so we could take a look? >> --Matt >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From kanderson at truevectortech.com Thu Jan 26 14:11:33 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 14:12:13 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: Hmmm. No dice with these changes incorporated. I'm not sure what is going on. For the curious there is a live link here: http://truevector.skygone.net:8080/DWTEdstest/ On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar wrote: > Hi, > > you put most layer options in the layer params object, and you should > set the maxExtent on the WMS layer. Something like > > tiled = new OpenLayers.Layer.WMS( > "dwt_lata_proj - Untiled", > "http://localhost:8080/geoserver/wms", > { > layers: 'DWT:dwt_lata_proj', > styles: '', > format: format, > transparent:true, > }, { > numZoomLevels:19, > maxExtent: new OpenLayers.Bounds( > -19840232, 2028971.375, > -7262943, 11534410 > ), > minResolution:0.5971642833948135, > maxResolution:156543.03390625, > singleTile: true, > ratio: 1 > } > ); > > The above should work both with singleTile: true and without. > > Andreas. > > On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson > wrote: > > Looking at it now I see the version that is working "best" is with the > wms > > layer being untiled. > > > > function init(){ > > // if this is just a coverage or a group of them, > disable a > > few items, > > // and default to jpeg format > > format = 'image/png'; > > > > > > var bounds = new OpenLayers.Bounds( > > -19840232, 2028971.375, > > -7262943, 11534410 > > ); > > var options = { > > controls: [], > > maxResolution: 49130.03515625, > > projection: "EPSG:900913", > > units: 'm' > > }; > > map = new OpenLayers.Map('map', options); > > > > var road = new OpenLayers.Layer.Bing({ > > name: "Road", > > key: apiKey, > > type: "Road" > > }); > > var hybrid = new OpenLayers.Layer.Bing({ > > name: "Hybrid", > > key: apiKey, > > type: "AerialWithLabels" > > }); > > var aerial = new OpenLayers.Layer.Bing({ > > name: "Aerial", > > key: apiKey, > > type: "Aerial" > > }); > > > > map.addLayers([road, hybrid, aerial]); > > > > tiled = new OpenLayers.Layer.WMS( > > "dwt_lata_proj - Untiled", > > "http://localhost:8080/geoserver/wms", > > { > > width: '512', > > srs: 'EPSG:900913', > > layers: 'DWT:dwt_lata_proj', > > height: '386', > > styles: '', > > format: format, > > transparent:true, > > numZoomLevels:19, > > minResolution:0.5971642833948135, > > maxResolution:156543.03390625 > > }, > > {singleTile: true, ratio: 1} > > ); > > > > map.addLayer(untiled); > > > > // build up all controls > > map.addControl(new OpenLayers.Control.PanZoomBar({ > > position: new OpenLayers.Pixel(2, 15) > > })); > > map.addControl(new OpenLayers.Control.Navigation()); > > map.addControl(new OpenLayers.Control.Scale($('scale'))); > > map.addControl(new OpenLayers.Control.MousePosition({element: > > $('location')})); > > map.addControl(new OpenLayers.Control.LayerSwitcher()); > > > > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: > >> > >> Is your bing layer imagery? I've had nothing but issues combining layers > >> with > >> Bing Imagery layers. > >> Anyhow, can you post the relevant code so we could take a look? > >> --Matt > >> > >> -- > >> View this message in context: > >> > http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html > >> Sent from the OpenLayers Users mailing list archive at Nabble.com. > >> _______________________________________________ > >> Users mailing list > >> Users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > > > _______________________________________________ > > Users mailing list > > Users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/5e9ead8b/attachment.html From daithiquinn at gmail.com Thu Jan 26 14:24:57 2012 From: daithiquinn at gmail.com (David Quinn) Date: Thu Jan 26 14:25:24 2012 Subject: [OpenLayers-Users] WMS layer not bounded by extents Message-ID: Hi List, I'm using openlayers to send a WMS query based on a user-chosen extent of a rectangular polygon. My javascript is as follows: // request raster layer rasterLayer = new OpenLayers.Layer.WMS( "Road layer..... ", "http://mysite/mapserv.cgi?map=roads.map&", { layers: 'roads', transparent: true }, { maxExtent: centralBounds, // extents of rectangular polygon drawn on-screen displayOutsideMaxExtent: false, // this is false by default, but I tried adding it anyway tileSize:new OpenLayers.Size(80,80), // by default this is 256 opacity: 0.5, gutter: 0} ); I am trying to return information from a raster using Mapserver.The query returns a WMS layer, but only three of the four sides of the polygon have the correct extents, and the WMS layer is a square. I've tried to illustrated this in the below diagram: X = requested _____________ | | | XXXX | | XXXX | | | --------------------- Y = returned _____________ | YYYY | | YYYY | | YYYY | | | ---------------------- The extents are definitely correct, as I've used them for querying non-WMS data that is displayed in-browser. When I make the tileSize smaller (e.g. tileSize:new OpenLayers.Size(10,10), it fills the box perfectly. Initially, I noticed that I was getting the following error message in Firebug: "NetworkError: 404 Not Found - http://mysite.com/js_libraries/img/blank.gif". My openlayers javascript is stored in the 'js_libraries' folder. I added a folder 'img' with 'blank.gif', and my problem temporarily disappeared, before the next page reload. I asked a very similar question on the Mapserver list yesterday, thinking it was a mapserver problem. I thought I had resolved it, but I have not, and I don't think it is related to Mapserver. I'd appreciate any suggestions - I'd prefer not to reduce tilesizes as it makes the raster very slow to load. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/7f824f82/attachment.html From ahocevar at opengeo.org Thu Jan 26 14:28:44 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 14:29:26 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: You still forgot to set the maxExtent on your WMS layer! Andreas. On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson wrote: > Hmmm. No dice with these changes incorporated. I'm not sure what is going > on. For the curious there is a live link here: > > http://truevector.skygone.net:8080/DWTEdstest/ > > > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar > wrote: >> >> Hi, >> >> you put most layer options in the layer params object, and you should >> set the maxExtent on the WMS layer. Something like >> >> ? ? ? ? ? ?tiled = new OpenLayers.Layer.WMS( >> ? ? ? ? ? ? ? ?"dwt_lata_proj - Untiled", >> "http://localhost:8080/geoserver/wms", >> ? ? ? ? ? ? ? ?{ >> ? ? ? ? ? ? ? ? ? ?layers: 'DWT:dwt_lata_proj', >> ? ? ? ? ? ? ? ? ? ?styles: '', >> ? ? ? ? ? ? ? ? ? ?format: format, >> ? ? ? ? ? ? ? ? ? ?transparent:true, >> ? ? ? ? ? ? ? ?}, { >> ? ? ? ? ? ? ? ? ? ?numZoomLevels:19, >> ? ? ? ? ? ? ? ? ? ?maxExtent: new OpenLayers.Bounds( >> ? ? ? ? ? ? ? ? ? ? ? ?-19840232, 2028971.375, >> ? ? ? ? ? ? ? ? ? ? ? ?-7262943, 11534410 >> ? ? ? ? ? ? ? ? ? ?), >> ? ? ? ? ? ? ? ? ? ?minResolution:0.5971642833948135, >> ? ? ? ? ? ? ? ? ? ?maxResolution:156543.03390625, >> ? ? ? ? ? ? ? ? ? ?singleTile: true, >> ? ? ? ? ? ? ? ? ? ?ratio: 1 >> ? ? ? ? ? ? ? ?} >> ? ? ? ? ? ?); >> >> The above should work both with singleTile: true and without. >> >> Andreas. >> >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson >> wrote: >> > Looking at it now I see the version that is working "best" is with the >> > wms >> > layer being untiled. >> > >> > ? function init(){ >> > ? ? ? ? ? ? ? ? // if this is just a coverage or a group of them, >> > disable a >> > few items, >> > ? ? ? ? ? ? ? ? // and default to jpeg format >> > ? ? ? ? ? ? ? ? format = 'image/png'; >> > >> > >> > ? ? ? ? ? ? ? ? var bounds = new OpenLayers.Bounds( >> > ? ? ? ? ? ? ? ? ? ? -19840232, 2028971.375, >> > ? ? ? ? ? ? ? ? ? ? -7262943, 11534410 >> > ? ? ? ? ? ? ? ? ); >> > ? ? ? ? ? ? ? ? var options = { >> > ? ? ? ? ? ? ? ? ? ? controls: [], >> > ? ? ? ? ? ? ? ? ? ? maxResolution: 49130.03515625, >> > ? ? ? ? ? ? ? ? ? ? projection: "EPSG:900913", >> > ? ? ? ? ? ? ? ? ? ? units: 'm' >> > ? ? ? ? ? ? ? ? }; >> > ? ? ? ? ? ? ? ? map = new OpenLayers.Map('map', options); >> > >> > ? ? ? ? ? ? var road = new OpenLayers.Layer.Bing({ >> > ? ? ? ? ? ? ? ? name: "Road", >> > ? ? ? ? ? ? ? ? key: apiKey, >> > ? ? ? ? ? ? ? ? type: "Road" >> > ? ? ? ? ? ? }); >> > ? ? ? ? ? ? var hybrid = new OpenLayers.Layer.Bing({ >> > ? ? ? ? ? ? ? ? name: "Hybrid", >> > ? ? ? ? ? ? ? ? key: apiKey, >> > ? ? ? ? ? ? ? ? type: "AerialWithLabels" >> > ? ? ? ? ? ? }); >> > ? ? ? ? ? ? var aerial = new OpenLayers.Layer.Bing({ >> > ? ? ? ? ? ? ? ? name: "Aerial", >> > ? ? ? ? ? ? ? ? key: apiKey, >> > ? ? ? ? ? ? ? ? type: "Aerial" >> > ? ? ? ? ? ? }); >> > >> > ? ? ? ? ? ? map.addLayers([road, hybrid, aerial]); >> > >> > ? ? ? ? ? ? tiled = new OpenLayers.Layer.WMS( >> > ? ? ? ? ? ? ? ? "dwt_lata_proj - Untiled", >> > "http://localhost:8080/geoserver/wms", >> > ? ? ? ? ? ? ? ? { >> > ? ? ? ? ? ? ? ? ? ? width: '512', >> > ? ? ? ? ? ? ? ? ? ? srs: 'EPSG:900913', >> > ? ? ? ? ? ? ? ? ? ? layers: 'DWT:dwt_lata_proj', >> > ? ? ? ? ? ? ? ? ? ? height: '386', >> > ? ? ? ? ? ? ? ? ? ? styles: '', >> > ? ? ? ? ? ? ? ? ? ? format: format, >> > ? ? ? ? ? ? ? ? ? ? transparent:true, >> > ? ? ? ? ? ? ? ? ? ? numZoomLevels:19, >> > ? ? ? ? ? ? ? ? ? ? minResolution:0.5971642833948135, >> > ? ? ? ? ? ? ? ? ? ? maxResolution:156543.03390625 >> > ? ? ? ? ? ? ? ? }, >> > ? ? ? ? ? ? ? ? {singleTile: true, ratio: 1} >> > ? ? ? ? ? ? ); >> > >> > ? ? ? ? ? ? map.addLayer(untiled); >> > >> > ? ? ? ? ? ? // build up all controls >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.PanZoomBar({ >> > ? ? ? ? ? ? ? ? position: new OpenLayers.Pixel(2, 15) >> > ? ? ? ? ? ? })); >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Navigation()); >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Scale($('scale'))); >> > ? ? ? ? ? ? map.addControl(new >> > OpenLayers.Control.MousePosition({element: >> > $('location')})); >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.LayerSwitcher()); >> > >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: >> >> >> >> Is your bing layer imagery? I've had nothing but issues combining >> >> layers >> >> with >> >> Bing Imagery layers. >> >> Anyhow, can you post the relevant code so we could take a look? >> >> --Matt >> >> >> >> -- >> >> View this message in context: >> >> >> >> http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> >> Users mailing list >> >> Users@lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> > >> > >> > _______________________________________________ >> > Users mailing list >> > Users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From kanderson at truevectortech.com Thu Jan 26 14:32:56 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 14:33:06 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: That's still not doing it but I'm noticing that the layers turns on when I pan to the edge of the map. What controls that? On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar wrote: > You still forgot to set the maxExtent on your WMS layer! > > Andreas. > > On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson > wrote: > > Hmmm. No dice with these changes incorporated. I'm not sure what is going > > on. For the curious there is a live link here: > > > > http://truevector.skygone.net:8080/DWTEdstest/ > > > > > > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar > > wrote: > >> > >> Hi, > >> > >> you put most layer options in the layer params object, and you should > >> set the maxExtent on the WMS layer. Something like > >> > >> tiled = new OpenLayers.Layer.WMS( > >> "dwt_lata_proj - Untiled", > >> "http://localhost:8080/geoserver/wms", > >> { > >> layers: 'DWT:dwt_lata_proj', > >> styles: '', > >> format: format, > >> transparent:true, > >> }, { > >> numZoomLevels:19, > >> maxExtent: new OpenLayers.Bounds( > >> -19840232, 2028971.375, > >> -7262943, 11534410 > >> ), > >> minResolution:0.5971642833948135, > >> maxResolution:156543.03390625, > >> singleTile: true, > >> ratio: 1 > >> } > >> ); > >> > >> The above should work both with singleTile: true and without. > >> > >> Andreas. > >> > >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson > >> wrote: > >> > Looking at it now I see the version that is working "best" is with the > >> > wms > >> > layer being untiled. > >> > > >> > function init(){ > >> > // if this is just a coverage or a group of them, > >> > disable a > >> > few items, > >> > // and default to jpeg format > >> > format = 'image/png'; > >> > > >> > > >> > var bounds = new OpenLayers.Bounds( > >> > -19840232, 2028971.375, > >> > -7262943, 11534410 > >> > ); > >> > var options = { > >> > controls: [], > >> > maxResolution: 49130.03515625, > >> > projection: "EPSG:900913", > >> > units: 'm' > >> > }; > >> > map = new OpenLayers.Map('map', options); > >> > > >> > var road = new OpenLayers.Layer.Bing({ > >> > name: "Road", > >> > key: apiKey, > >> > type: "Road" > >> > }); > >> > var hybrid = new OpenLayers.Layer.Bing({ > >> > name: "Hybrid", > >> > key: apiKey, > >> > type: "AerialWithLabels" > >> > }); > >> > var aerial = new OpenLayers.Layer.Bing({ > >> > name: "Aerial", > >> > key: apiKey, > >> > type: "Aerial" > >> > }); > >> > > >> > map.addLayers([road, hybrid, aerial]); > >> > > >> > tiled = new OpenLayers.Layer.WMS( > >> > "dwt_lata_proj - Untiled", > >> > "http://localhost:8080/geoserver/wms", > >> > { > >> > width: '512', > >> > srs: 'EPSG:900913', > >> > layers: 'DWT:dwt_lata_proj', > >> > height: '386', > >> > styles: '', > >> > format: format, > >> > transparent:true, > >> > numZoomLevels:19, > >> > minResolution:0.5971642833948135, > >> > maxResolution:156543.03390625 > >> > }, > >> > {singleTile: true, ratio: 1} > >> > ); > >> > > >> > map.addLayer(untiled); > >> > > >> > // build up all controls > >> > map.addControl(new OpenLayers.Control.PanZoomBar({ > >> > position: new OpenLayers.Pixel(2, 15) > >> > })); > >> > map.addControl(new OpenLayers.Control.Navigation()); > >> > map.addControl(new OpenLayers.Control.Scale($('scale'))); > >> > map.addControl(new > >> > OpenLayers.Control.MousePosition({element: > >> > $('location')})); > >> > map.addControl(new OpenLayers.Control.LayerSwitcher()); > >> > > >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: > >> >> > >> >> Is your bing layer imagery? I've had nothing but issues combining > >> >> layers > >> >> with > >> >> Bing Imagery layers. > >> >> Anyhow, can you post the relevant code so we could take a look? > >> >> --Matt > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> >> > http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html > >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. > >> >> _______________________________________________ > >> >> Users mailing list > >> >> Users@lists.osgeo.org > >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> > > >> > > >> > > >> > _______________________________________________ > >> > Users mailing list > >> > Users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> > > >> > >> > >> > >> -- > >> Andreas Hocevar > >> OpenGeo - http://opengeo.org/ > >> Expert service straight from the developers. > > > > > > > > _______________________________________________ > > Users mailing list > > Users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/2dda592e/attachment.html From kanderson at truevectortech.com Thu Jan 26 14:35:15 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 14:35:30 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: You know, Bing is incidental in this whole thing. I'd rather be using OSM as the background layer but I couldn't get that to work at all. Does anyone have a working example of this with any base layer? On Thu, Jan 26, 2012 at 11:32 AM, Kjel Anderson < kanderson@truevectortech.com> wrote: > That's still not doing it but I'm noticing that the layers turns on when I > pan to the edge of the map. What controls that? > > > On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar wrote: > >> You still forgot to set the maxExtent on your WMS layer! >> >> Andreas. >> >> On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson >> wrote: >> > Hmmm. No dice with these changes incorporated. I'm not sure what is >> going >> > on. For the curious there is a live link here: >> > >> > http://truevector.skygone.net:8080/DWTEdstest/ >> > >> > >> > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar > > >> > wrote: >> >> >> >> Hi, >> >> >> >> you put most layer options in the layer params object, and you should >> >> set the maxExtent on the WMS layer. Something like >> >> >> >> tiled = new OpenLayers.Layer.WMS( >> >> "dwt_lata_proj - Untiled", >> >> "http://localhost:8080/geoserver/wms", >> >> { >> >> layers: 'DWT:dwt_lata_proj', >> >> styles: '', >> >> format: format, >> >> transparent:true, >> >> }, { >> >> numZoomLevels:19, >> >> maxExtent: new OpenLayers.Bounds( >> >> -19840232, 2028971.375, >> >> -7262943, 11534410 >> >> ), >> >> minResolution:0.5971642833948135, >> >> maxResolution:156543.03390625, >> >> singleTile: true, >> >> ratio: 1 >> >> } >> >> ); >> >> >> >> The above should work both with singleTile: true and without. >> >> >> >> Andreas. >> >> >> >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson >> >> wrote: >> >> > Looking at it now I see the version that is working "best" is with >> the >> >> > wms >> >> > layer being untiled. >> >> > >> >> > function init(){ >> >> > // if this is just a coverage or a group of them, >> >> > disable a >> >> > few items, >> >> > // and default to jpeg format >> >> > format = 'image/png'; >> >> > >> >> > >> >> > var bounds = new OpenLayers.Bounds( >> >> > -19840232, 2028971.375, >> >> > -7262943, 11534410 >> >> > ); >> >> > var options = { >> >> > controls: [], >> >> > maxResolution: 49130.03515625, >> >> > projection: "EPSG:900913", >> >> > units: 'm' >> >> > }; >> >> > map = new OpenLayers.Map('map', options); >> >> > >> >> > var road = new OpenLayers.Layer.Bing({ >> >> > name: "Road", >> >> > key: apiKey, >> >> > type: "Road" >> >> > }); >> >> > var hybrid = new OpenLayers.Layer.Bing({ >> >> > name: "Hybrid", >> >> > key: apiKey, >> >> > type: "AerialWithLabels" >> >> > }); >> >> > var aerial = new OpenLayers.Layer.Bing({ >> >> > name: "Aerial", >> >> > key: apiKey, >> >> > type: "Aerial" >> >> > }); >> >> > >> >> > map.addLayers([road, hybrid, aerial]); >> >> > >> >> > tiled = new OpenLayers.Layer.WMS( >> >> > "dwt_lata_proj - Untiled", >> >> > "http://localhost:8080/geoserver/wms", >> >> > { >> >> > width: '512', >> >> > srs: 'EPSG:900913', >> >> > layers: 'DWT:dwt_lata_proj', >> >> > height: '386', >> >> > styles: '', >> >> > format: format, >> >> > transparent:true, >> >> > numZoomLevels:19, >> >> > minResolution:0.5971642833948135, >> >> > maxResolution:156543.03390625 >> >> > }, >> >> > {singleTile: true, ratio: 1} >> >> > ); >> >> > >> >> > map.addLayer(untiled); >> >> > >> >> > // build up all controls >> >> > map.addControl(new OpenLayers.Control.PanZoomBar({ >> >> > position: new OpenLayers.Pixel(2, 15) >> >> > })); >> >> > map.addControl(new OpenLayers.Control.Navigation()); >> >> > map.addControl(new OpenLayers.Control.Scale($('scale'))); >> >> > map.addControl(new >> >> > OpenLayers.Control.MousePosition({element: >> >> > $('location')})); >> >> > map.addControl(new OpenLayers.Control.LayerSwitcher()); >> >> > >> >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: >> >> >> >> >> >> Is your bing layer imagery? I've had nothing but issues combining >> >> >> layers >> >> >> with >> >> >> Bing Imagery layers. >> >> >> Anyhow, can you post the relevant code so we could take a look? >> >> >> --Matt >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> >> http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html >> >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> >> _______________________________________________ >> >> >> Users mailing list >> >> >> Users@lists.osgeo.org >> >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > Users mailing list >> >> > Users@lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > >> >> >> >> >> >> >> >> -- >> >> Andreas Hocevar >> >> OpenGeo - http://opengeo.org/ >> >> Expert service straight from the developers. >> > >> > >> > >> > _______________________________________________ >> > Users mailing list >> > Users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/7c4eb760/attachment-0001.html From ahocevar at opengeo.org Thu Jan 26 14:47:50 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 14:47:56 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: You didn't make the changes that we recommended. The key to solving this is the maxExtent on the WMS layer. Here's a fiddle with a simplified version of your code and your layer, to show that it works: http://jsfiddle.net/ZVaXh/ It doesn't matter if it's Bing or OSM, you have to configure your WMS layer the right way. Andreas. On Thu, Jan 26, 2012 at 8:35 PM, Kjel Anderson wrote: > You know, Bing is incidental in this whole thing. I'd rather be using OSM as > the background layer but I couldn't get that to work at all. Does anyone > have a working example of this with any base layer? > > > On Thu, Jan 26, 2012 at 11:32 AM, Kjel Anderson > wrote: >> >> That's still not doing it but I'm noticing that the layers turns on when I >> pan to the edge of the map. What controls that? >> >> >> On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar >> wrote: >>> >>> You still forgot to set the maxExtent on your WMS layer! >>> >>> Andreas. >>> >>> On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson >>> wrote: >>> > Hmmm. No dice with these changes incorporated. I'm not sure what is >>> > going >>> > on. For the curious there is a live link here: >>> > >>> > http://truevector.skygone.net:8080/DWTEdstest/ >>> > >>> > >>> > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar >>> > >>> > wrote: >>> >> >>> >> Hi, >>> >> >>> >> you put most layer options in the layer params object, and you should >>> >> set the maxExtent on the WMS layer. Something like >>> >> >>> >> ? ? ? ? ? ?tiled = new OpenLayers.Layer.WMS( >>> >> ? ? ? ? ? ? ? ?"dwt_lata_proj - Untiled", >>> >> "http://localhost:8080/geoserver/wms", >>> >> ? ? ? ? ? ? ? ?{ >>> >> ? ? ? ? ? ? ? ? ? ?layers: 'DWT:dwt_lata_proj', >>> >> ? ? ? ? ? ? ? ? ? ?styles: '', >>> >> ? ? ? ? ? ? ? ? ? ?format: format, >>> >> ? ? ? ? ? ? ? ? ? ?transparent:true, >>> >> ? ? ? ? ? ? ? ?}, { >>> >> ? ? ? ? ? ? ? ? ? ?numZoomLevels:19, >>> >> ? ? ? ? ? ? ? ? ? ?maxExtent: new OpenLayers.Bounds( >>> >> ? ? ? ? ? ? ? ? ? ? ? ?-19840232, 2028971.375, >>> >> ? ? ? ? ? ? ? ? ? ? ? ?-7262943, 11534410 >>> >> ? ? ? ? ? ? ? ? ? ?), >>> >> ? ? ? ? ? ? ? ? ? ?minResolution:0.5971642833948135, >>> >> ? ? ? ? ? ? ? ? ? ?maxResolution:156543.03390625, >>> >> ? ? ? ? ? ? ? ? ? ?singleTile: true, >>> >> ? ? ? ? ? ? ? ? ? ?ratio: 1 >>> >> ? ? ? ? ? ? ? ?} >>> >> ? ? ? ? ? ?); >>> >> >>> >> The above should work both with singleTile: true and without. >>> >> >>> >> Andreas. >>> >> >>> >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson >>> >> wrote: >>> >> > Looking at it now I see the version that is working "best" is with >>> >> > the >>> >> > wms >>> >> > layer being untiled. >>> >> > >>> >> > ? function init(){ >>> >> > ? ? ? ? ? ? ? ? // if this is just a coverage or a group of them, >>> >> > disable a >>> >> > few items, >>> >> > ? ? ? ? ? ? ? ? // and default to jpeg format >>> >> > ? ? ? ? ? ? ? ? format = 'image/png'; >>> >> > >>> >> > >>> >> > ? ? ? ? ? ? ? ? var bounds = new OpenLayers.Bounds( >>> >> > ? ? ? ? ? ? ? ? ? ? -19840232, 2028971.375, >>> >> > ? ? ? ? ? ? ? ? ? ? -7262943, 11534410 >>> >> > ? ? ? ? ? ? ? ? ); >>> >> > ? ? ? ? ? ? ? ? var options = { >>> >> > ? ? ? ? ? ? ? ? ? ? controls: [], >>> >> > ? ? ? ? ? ? ? ? ? ? maxResolution: 49130.03515625, >>> >> > ? ? ? ? ? ? ? ? ? ? projection: "EPSG:900913", >>> >> > ? ? ? ? ? ? ? ? ? ? units: 'm' >>> >> > ? ? ? ? ? ? ? ? }; >>> >> > ? ? ? ? ? ? ? ? map = new OpenLayers.Map('map', options); >>> >> > >>> >> > ? ? ? ? ? ? var road = new OpenLayers.Layer.Bing({ >>> >> > ? ? ? ? ? ? ? ? name: "Road", >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >>> >> > ? ? ? ? ? ? ? ? type: "Road" >>> >> > ? ? ? ? ? ? }); >>> >> > ? ? ? ? ? ? var hybrid = new OpenLayers.Layer.Bing({ >>> >> > ? ? ? ? ? ? ? ? name: "Hybrid", >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >>> >> > ? ? ? ? ? ? ? ? type: "AerialWithLabels" >>> >> > ? ? ? ? ? ? }); >>> >> > ? ? ? ? ? ? var aerial = new OpenLayers.Layer.Bing({ >>> >> > ? ? ? ? ? ? ? ? name: "Aerial", >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >>> >> > ? ? ? ? ? ? ? ? type: "Aerial" >>> >> > ? ? ? ? ? ? }); >>> >> > >>> >> > ? ? ? ? ? ? map.addLayers([road, hybrid, aerial]); >>> >> > >>> >> > ? ? ? ? ? ? tiled = new OpenLayers.Layer.WMS( >>> >> > ? ? ? ? ? ? ? ? "dwt_lata_proj - Untiled", >>> >> > "http://localhost:8080/geoserver/wms", >>> >> > ? ? ? ? ? ? ? ? { >>> >> > ? ? ? ? ? ? ? ? ? ? width: '512', >>> >> > ? ? ? ? ? ? ? ? ? ? srs: 'EPSG:900913', >>> >> > ? ? ? ? ? ? ? ? ? ? layers: 'DWT:dwt_lata_proj', >>> >> > ? ? ? ? ? ? ? ? ? ? height: '386', >>> >> > ? ? ? ? ? ? ? ? ? ? styles: '', >>> >> > ? ? ? ? ? ? ? ? ? ? format: format, >>> >> > ? ? ? ? ? ? ? ? ? ? transparent:true, >>> >> > ? ? ? ? ? ? ? ? ? ? numZoomLevels:19, >>> >> > ? ? ? ? ? ? ? ? ? ? minResolution:0.5971642833948135, >>> >> > ? ? ? ? ? ? ? ? ? ? maxResolution:156543.03390625 >>> >> > ? ? ? ? ? ? ? ? }, >>> >> > ? ? ? ? ? ? ? ? {singleTile: true, ratio: 1} >>> >> > ? ? ? ? ? ? ); >>> >> > >>> >> > ? ? ? ? ? ? map.addLayer(untiled); >>> >> > >>> >> > ? ? ? ? ? ? // build up all controls >>> >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.PanZoomBar({ >>> >> > ? ? ? ? ? ? ? ? position: new OpenLayers.Pixel(2, 15) >>> >> > ? ? ? ? ? ? })); >>> >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Navigation()); >>> >> > ? ? ? ? ? ? map.addControl(new >>> >> > OpenLayers.Control.Scale($('scale'))); >>> >> > ? ? ? ? ? ? map.addControl(new >>> >> > OpenLayers.Control.MousePosition({element: >>> >> > $('location')})); >>> >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.LayerSwitcher()); >>> >> > >>> >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 wrote: >>> >> >> >>> >> >> Is your bing layer imagery? I've had nothing but issues combining >>> >> >> layers >>> >> >> with >>> >> >> Bing Imagery layers. >>> >> >> Anyhow, can you post the relevant code so we could take a look? >>> >> >> --Matt >>> >> >> >>> >> >> -- >>> >> >> View this message in context: >>> >> >> >>> >> >> >>> >> >> http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html >>> >> >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> >> >> _______________________________________________ >>> >> >> Users mailing list >>> >> >> Users@lists.osgeo.org >>> >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> > >>> >> > >>> >> > >>> >> > _______________________________________________ >>> >> > Users mailing list >>> >> > Users@lists.osgeo.org >>> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Andreas Hocevar >>> >> OpenGeo - http://opengeo.org/ >>> >> Expert service straight from the developers. >>> > >>> > >>> > >>> > _______________________________________________ >>> > Users mailing list >>> > Users@lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> > >>> >>> >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >> >> > -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From kanderson at truevectortech.com Thu Jan 26 14:50:14 2012 From: kanderson at truevectortech.com (Kjel Anderson) Date: Thu Jan 26 14:50:30 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: That's awesome and super helpful. I'm still not sure where I went wrong. I believe that I did incorporate your maxExtent bit. Can you enlighten me? Or point me to a resource that can help me understand? On Thu, Jan 26, 2012 at 11:47 AM, Andreas Hocevar wrote: > You didn't make the changes that we recommended. The key to solving > this is the maxExtent on the WMS layer. Here's a fiddle with a > simplified version of your code and your layer, to show that it works: > http://jsfiddle.net/ZVaXh/ > > It doesn't matter if it's Bing or OSM, you have to configure your WMS > layer the right way. > > Andreas. > > On Thu, Jan 26, 2012 at 8:35 PM, Kjel Anderson > wrote: > > You know, Bing is incidental in this whole thing. I'd rather be using > OSM as > > the background layer but I couldn't get that to work at all. Does anyone > > have a working example of this with any base layer? > > > > > > On Thu, Jan 26, 2012 at 11:32 AM, Kjel Anderson > > wrote: > >> > >> That's still not doing it but I'm noticing that the layers turns on > when I > >> pan to the edge of the map. What controls that? > >> > >> > >> On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar > > >> wrote: > >>> > >>> You still forgot to set the maxExtent on your WMS layer! > >>> > >>> Andreas. > >>> > >>> On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson > >>> wrote: > >>> > Hmmm. No dice with these changes incorporated. I'm not sure what is > >>> > going > >>> > on. For the curious there is a live link here: > >>> > > >>> > http://truevector.skygone.net:8080/DWTEdstest/ > >>> > > >>> > > >>> > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar > >>> > > >>> > wrote: > >>> >> > >>> >> Hi, > >>> >> > >>> >> you put most layer options in the layer params object, and you > should > >>> >> set the maxExtent on the WMS layer. Something like > >>> >> > >>> >> tiled = new OpenLayers.Layer.WMS( > >>> >> "dwt_lata_proj - Untiled", > >>> >> "http://localhost:8080/geoserver/wms", > >>> >> { > >>> >> layers: 'DWT:dwt_lata_proj', > >>> >> styles: '', > >>> >> format: format, > >>> >> transparent:true, > >>> >> }, { > >>> >> numZoomLevels:19, > >>> >> maxExtent: new OpenLayers.Bounds( > >>> >> -19840232, 2028971.375, > >>> >> -7262943, 11534410 > >>> >> ), > >>> >> minResolution:0.5971642833948135, > >>> >> maxResolution:156543.03390625, > >>> >> singleTile: true, > >>> >> ratio: 1 > >>> >> } > >>> >> ); > >>> >> > >>> >> The above should work both with singleTile: true and without. > >>> >> > >>> >> Andreas. > >>> >> > >>> >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson > >>> >> wrote: > >>> >> > Looking at it now I see the version that is working "best" is with > >>> >> > the > >>> >> > wms > >>> >> > layer being untiled. > >>> >> > > >>> >> > function init(){ > >>> >> > // if this is just a coverage or a group of them, > >>> >> > disable a > >>> >> > few items, > >>> >> > // and default to jpeg format > >>> >> > format = 'image/png'; > >>> >> > > >>> >> > > >>> >> > var bounds = new OpenLayers.Bounds( > >>> >> > -19840232, 2028971.375, > >>> >> > -7262943, 11534410 > >>> >> > ); > >>> >> > var options = { > >>> >> > controls: [], > >>> >> > maxResolution: 49130.03515625, > >>> >> > projection: "EPSG:900913", > >>> >> > units: 'm' > >>> >> > }; > >>> >> > map = new OpenLayers.Map('map', options); > >>> >> > > >>> >> > var road = new OpenLayers.Layer.Bing({ > >>> >> > name: "Road", > >>> >> > key: apiKey, > >>> >> > type: "Road" > >>> >> > }); > >>> >> > var hybrid = new OpenLayers.Layer.Bing({ > >>> >> > name: "Hybrid", > >>> >> > key: apiKey, > >>> >> > type: "AerialWithLabels" > >>> >> > }); > >>> >> > var aerial = new OpenLayers.Layer.Bing({ > >>> >> > name: "Aerial", > >>> >> > key: apiKey, > >>> >> > type: "Aerial" > >>> >> > }); > >>> >> > > >>> >> > map.addLayers([road, hybrid, aerial]); > >>> >> > > >>> >> > tiled = new OpenLayers.Layer.WMS( > >>> >> > "dwt_lata_proj - Untiled", > >>> >> > "http://localhost:8080/geoserver/wms", > >>> >> > { > >>> >> > width: '512', > >>> >> > srs: 'EPSG:900913', > >>> >> > layers: 'DWT:dwt_lata_proj', > >>> >> > height: '386', > >>> >> > styles: '', > >>> >> > format: format, > >>> >> > transparent:true, > >>> >> > numZoomLevels:19, > >>> >> > minResolution:0.5971642833948135, > >>> >> > maxResolution:156543.03390625 > >>> >> > }, > >>> >> > {singleTile: true, ratio: 1} > >>> >> > ); > >>> >> > > >>> >> > map.addLayer(untiled); > >>> >> > > >>> >> > // build up all controls > >>> >> > map.addControl(new OpenLayers.Control.PanZoomBar({ > >>> >> > position: new OpenLayers.Pixel(2, 15) > >>> >> > })); > >>> >> > map.addControl(new OpenLayers.Control.Navigation()); > >>> >> > map.addControl(new > >>> >> > OpenLayers.Control.Scale($('scale'))); > >>> >> > map.addControl(new > >>> >> > OpenLayers.Control.MousePosition({element: > >>> >> > $('location')})); > >>> >> > map.addControl(new > OpenLayers.Control.LayerSwitcher()); > >>> >> > > >>> >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 > wrote: > >>> >> >> > >>> >> >> Is your bing layer imagery? I've had nothing but issues combining > >>> >> >> layers > >>> >> >> with > >>> >> >> Bing Imagery layers. > >>> >> >> Anyhow, can you post the relevant code so we could take a look? > >>> >> >> --Matt > >>> >> >> > >>> >> >> -- > >>> >> >> View this message in context: > >>> >> >> > >>> >> >> > >>> >> >> > http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html > >>> >> >> Sent from the OpenLayers Users mailing list archive at > Nabble.com. > >>> >> >> _______________________________________________ > >>> >> >> Users mailing list > >>> >> >> Users@lists.osgeo.org > >>> >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > >>> >> > > >>> >> > > >>> >> > > >>> >> > _______________________________________________ > >>> >> > Users mailing list > >>> >> > Users@lists.osgeo.org > >>> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >>> >> > > >>> >> > >>> >> > >>> >> > >>> >> -- > >>> >> Andreas Hocevar > >>> >> OpenGeo - http://opengeo.org/ > >>> >> Expert service straight from the developers. > >>> > > >>> > > >>> > > >>> > _______________________________________________ > >>> > Users mailing list > >>> > Users@lists.osgeo.org > >>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >>> > > >>> > >>> > >>> > >>> -- > >>> Andreas Hocevar > >>> OpenGeo - http://opengeo.org/ > >>> Expert service straight from the developers. > >> > >> > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/82084fa1/attachment-0001.html From maw269 at gmail.com Thu Jan 26 14:59:33 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 15:00:12 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: References: <1327602659260-4341265.post@n6.nabble.com> Message-ID: <1327607973277-4341489.post@n6.nabble.com> Thanks Andreas, Wouldn't the bbox only get me the 'rectangular' extent of the polygon and not each actual polygon face? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341489.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From maw269 at gmail.com Thu Jan 26 15:02:19 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 15:02:24 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: <4F219F37.2000709@greeninfo.org> References: <1327602659260-4341265.post@n6.nabble.com> <4F219F37.2000709@greeninfo.org> Message-ID: <1327608139767-4341498.post@n6.nabble.com> Thanks Greg, It sounds like using WFS is out of the question. The thing is I wouldn't know how to pass the point-in-polygon client query to the server and utilize the response. Can anyone show me how to do that? --Matt -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341498.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From mc.prins at gmail.com Thu Jan 26 15:30:18 2012 From: mc.prins at gmail.com (Mark Prins) Date: Thu Jan 26 15:31:02 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: <1327608139767-4341498.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com> <4F219F37.2000709@greeninfo.org> <1327608139767-4341498.post@n6.nabble.com> Message-ID: 2012/1/26 maw269 : > Thanks Greg, > It sounds like using WFS is out of the question. The thing is I wouldn't > know how to pass the point-in-polygon client query to the server and utilize > the response. Can anyone show me how to do that? > --Matt > > -- you could use a spatial filter to let the WFS do the work http://dev.openlayers.org/apidocs/files/OpenLayers/Filter/Spatial-js.html eg. Intersect with the point essentially you would send the filter then, on returning from the WFS, test the response for a geometry, if it has one, the point is within a polygon. check out the examples for filter. -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand. From ahocevar at opengeo.org Thu Jan 26 15:43:31 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 15:44:10 2012 Subject: [OpenLayers-Users] Re: overlaying tiled WMS on top of bing In-Reply-To: References: <1327602821368-4341275.post@n6.nabble.com> Message-ID: Hi, the problem with the maxExtent of an overlay layer is this: if not configured, the map's maxExtent is used. If not configured on the map, it defaults to -180, -90, 180, 90. In Web Mercator (EPSG:900913), this is not the whole world, but a very small area west of Africa. Usually this results in only one tile being rendered when zoomed to the world extent, and nothing rendered at all if zoomed to the US. When working with base maps like Bing or OSM, it is always a good idea to set the following in the map options: maxExtent: new OpenLayers.Bounds( -128 * 156543.03390625, -128 * 156543.03390625, 128 * 156543.03390625, 128 * 156543.03390625 ), maxResolution: 156543.03390625, numZoomLevels: 19, units: "m", projection: "EPSG:900913" Then at least layers without a configured maxExtent will be rendered on the whole world. If you want to restrict the area that users can view on the map, you can configure the map's restrictedExtent. And for layers that are not available for the whole world, configure the layer's maxExtent - like in the fiddle I posted. Andreas. On Thu, Jan 26, 2012 at 8:50 PM, Kjel Anderson wrote: > That's awesome and super helpful. I'm still not sure where I went wrong. I > believe that I did incorporate your maxExtent bit. Can you enlighten me? Or > point me to a resource that can help me understand? > > > On Thu, Jan 26, 2012 at 11:47 AM, Andreas Hocevar > wrote: >> >> You didn't make the changes that we recommended. The key to solving >> this is the maxExtent on the WMS layer. Here's a fiddle with a >> simplified version of your code and your layer, to show that it works: >> http://jsfiddle.net/ZVaXh/ >> >> It doesn't matter if it's Bing or OSM, you have to configure your WMS >> layer the right way. >> >> Andreas. >> >> On Thu, Jan 26, 2012 at 8:35 PM, Kjel Anderson >> wrote: >> > You know, Bing is incidental in this whole thing. I'd rather be using >> > OSM as >> > the background layer but I couldn't get that to work at all. Does anyone >> > have a working example of this with any base layer? >> > >> > >> > On Thu, Jan 26, 2012 at 11:32 AM, Kjel Anderson >> > wrote: >> >> >> >> That's still not doing it but I'm noticing that the layers turns on >> >> when I >> >> pan to the edge of the map. What controls that? >> >> >> >> >> >> On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar >> >> >> >> wrote: >> >>> >> >>> You still forgot to set the maxExtent on your WMS layer! >> >>> >> >>> Andreas. >> >>> >> >>> On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson >> >>> wrote: >> >>> > Hmmm. No dice with these changes incorporated. I'm not sure what is >> >>> > going >> >>> > on. For the curious there is a live link here: >> >>> > >> >>> > http://truevector.skygone.net:8080/DWTEdstest/ >> >>> > >> >>> > >> >>> > On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar >> >>> > >> >>> > wrote: >> >>> >> >> >>> >> Hi, >> >>> >> >> >>> >> you put most layer options in the layer params object, and you >> >>> >> should >> >>> >> set the maxExtent on the WMS layer. Something like >> >>> >> >> >>> >> ? ? ? ? ? ?tiled = new OpenLayers.Layer.WMS( >> >>> >> ? ? ? ? ? ? ? ?"dwt_lata_proj - Untiled", >> >>> >> "http://localhost:8080/geoserver/wms", >> >>> >> ? ? ? ? ? ? ? ?{ >> >>> >> ? ? ? ? ? ? ? ? ? ?layers: 'DWT:dwt_lata_proj', >> >>> >> ? ? ? ? ? ? ? ? ? ?styles: '', >> >>> >> ? ? ? ? ? ? ? ? ? ?format: format, >> >>> >> ? ? ? ? ? ? ? ? ? ?transparent:true, >> >>> >> ? ? ? ? ? ? ? ?}, { >> >>> >> ? ? ? ? ? ? ? ? ? ?numZoomLevels:19, >> >>> >> ? ? ? ? ? ? ? ? ? ?maxExtent: new OpenLayers.Bounds( >> >>> >> ? ? ? ? ? ? ? ? ? ? ? ?-19840232, 2028971.375, >> >>> >> ? ? ? ? ? ? ? ? ? ? ? ?-7262943, 11534410 >> >>> >> ? ? ? ? ? ? ? ? ? ?), >> >>> >> ? ? ? ? ? ? ? ? ? ?minResolution:0.5971642833948135, >> >>> >> ? ? ? ? ? ? ? ? ? ?maxResolution:156543.03390625, >> >>> >> ? ? ? ? ? ? ? ? ? ?singleTile: true, >> >>> >> ? ? ? ? ? ? ? ? ? ?ratio: 1 >> >>> >> ? ? ? ? ? ? ? ?} >> >>> >> ? ? ? ? ? ?); >> >>> >> >> >>> >> The above should work both with singleTile: true and without. >> >>> >> >> >>> >> Andreas. >> >>> >> >> >>> >> On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson >> >>> >> wrote: >> >>> >> > Looking at it now I see the version that is working "best" is >> >>> >> > with >> >>> >> > the >> >>> >> > wms >> >>> >> > layer being untiled. >> >>> >> > >> >>> >> > ? function init(){ >> >>> >> > ? ? ? ? ? ? ? ? // if this is just a coverage or a group of them, >> >>> >> > disable a >> >>> >> > few items, >> >>> >> > ? ? ? ? ? ? ? ? // and default to jpeg format >> >>> >> > ? ? ? ? ? ? ? ? format = 'image/png'; >> >>> >> > >> >>> >> > >> >>> >> > ? ? ? ? ? ? ? ? var bounds = new OpenLayers.Bounds( >> >>> >> > ? ? ? ? ? ? ? ? ? ? -19840232, 2028971.375, >> >>> >> > ? ? ? ? ? ? ? ? ? ? -7262943, 11534410 >> >>> >> > ? ? ? ? ? ? ? ? ); >> >>> >> > ? ? ? ? ? ? ? ? var options = { >> >>> >> > ? ? ? ? ? ? ? ? ? ? controls: [], >> >>> >> > ? ? ? ? ? ? ? ? ? ? maxResolution: 49130.03515625, >> >>> >> > ? ? ? ? ? ? ? ? ? ? projection: "EPSG:900913", >> >>> >> > ? ? ? ? ? ? ? ? ? ? units: 'm' >> >>> >> > ? ? ? ? ? ? ? ? }; >> >>> >> > ? ? ? ? ? ? ? ? map = new OpenLayers.Map('map', options); >> >>> >> > >> >>> >> > ? ? ? ? ? ? var road = new OpenLayers.Layer.Bing({ >> >>> >> > ? ? ? ? ? ? ? ? name: "Road", >> >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >> >>> >> > ? ? ? ? ? ? ? ? type: "Road" >> >>> >> > ? ? ? ? ? ? }); >> >>> >> > ? ? ? ? ? ? var hybrid = new OpenLayers.Layer.Bing({ >> >>> >> > ? ? ? ? ? ? ? ? name: "Hybrid", >> >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >> >>> >> > ? ? ? ? ? ? ? ? type: "AerialWithLabels" >> >>> >> > ? ? ? ? ? ? }); >> >>> >> > ? ? ? ? ? ? var aerial = new OpenLayers.Layer.Bing({ >> >>> >> > ? ? ? ? ? ? ? ? name: "Aerial", >> >>> >> > ? ? ? ? ? ? ? ? key: apiKey, >> >>> >> > ? ? ? ? ? ? ? ? type: "Aerial" >> >>> >> > ? ? ? ? ? ? }); >> >>> >> > >> >>> >> > ? ? ? ? ? ? map.addLayers([road, hybrid, aerial]); >> >>> >> > >> >>> >> > ? ? ? ? ? ? tiled = new OpenLayers.Layer.WMS( >> >>> >> > ? ? ? ? ? ? ? ? "dwt_lata_proj - Untiled", >> >>> >> > "http://localhost:8080/geoserver/wms", >> >>> >> > ? ? ? ? ? ? ? ? { >> >>> >> > ? ? ? ? ? ? ? ? ? ? width: '512', >> >>> >> > ? ? ? ? ? ? ? ? ? ? srs: 'EPSG:900913', >> >>> >> > ? ? ? ? ? ? ? ? ? ? layers: 'DWT:dwt_lata_proj', >> >>> >> > ? ? ? ? ? ? ? ? ? ? height: '386', >> >>> >> > ? ? ? ? ? ? ? ? ? ? styles: '', >> >>> >> > ? ? ? ? ? ? ? ? ? ? format: format, >> >>> >> > ? ? ? ? ? ? ? ? ? ? transparent:true, >> >>> >> > ? ? ? ? ? ? ? ? ? ? numZoomLevels:19, >> >>> >> > ? ? ? ? ? ? ? ? ? ? minResolution:0.5971642833948135, >> >>> >> > ? ? ? ? ? ? ? ? ? ? maxResolution:156543.03390625 >> >>> >> > ? ? ? ? ? ? ? ? }, >> >>> >> > ? ? ? ? ? ? ? ? {singleTile: true, ratio: 1} >> >>> >> > ? ? ? ? ? ? ); >> >>> >> > >> >>> >> > ? ? ? ? ? ? map.addLayer(untiled); >> >>> >> > >> >>> >> > ? ? ? ? ? ? // build up all controls >> >>> >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.PanZoomBar({ >> >>> >> > ? ? ? ? ? ? ? ? position: new OpenLayers.Pixel(2, 15) >> >>> >> > ? ? ? ? ? ? })); >> >>> >> > ? ? ? ? ? ? map.addControl(new OpenLayers.Control.Navigation()); >> >>> >> > ? ? ? ? ? ? map.addControl(new >> >>> >> > OpenLayers.Control.Scale($('scale'))); >> >>> >> > ? ? ? ? ? ? map.addControl(new >> >>> >> > OpenLayers.Control.MousePosition({element: >> >>> >> > $('location')})); >> >>> >> > ? ? ? ? ? ? map.addControl(new >> >>> >> > OpenLayers.Control.LayerSwitcher()); >> >>> >> > >> >>> >> > On Thu, Jan 26, 2012 at 10:33 AM, maw269 >> >>> >> > wrote: >> >>> >> >> >> >>> >> >> Is your bing layer imagery? I've had nothing but issues >> >>> >> >> combining >> >>> >> >> layers >> >>> >> >> with >> >>> >> >> Bing Imagery layers. >> >>> >> >> Anyhow, can you post the relevant code so we could take a look? >> >>> >> >> --Matt >> >>> >> >> >> >>> >> >> -- >> >>> >> >> View this message in context: >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html >> >>> >> >> Sent from the OpenLayers Users mailing list archive at >> >>> >> >> Nabble.com. >> >>> >> >> _______________________________________________ >> >>> >> >> Users mailing list >> >>> >> >> Users@lists.osgeo.org >> >>> >> >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > _______________________________________________ >> >>> >> > Users mailing list >> >>> >> > Users@lists.osgeo.org >> >>> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >>> >> > >> >>> >> >> >>> >> >> >>> >> >> >>> >> -- >> >>> >> Andreas Hocevar >> >>> >> OpenGeo - http://opengeo.org/ >> >>> >> Expert service straight from the developers. >> >>> > >> >>> > >> >>> > >> >>> > _______________________________________________ >> >>> > Users mailing list >> >>> > Users@lists.osgeo.org >> >>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >>> > >> >>> >> >>> >> >>> >> >>> -- >> >>> Andreas Hocevar >> >>> OpenGeo - http://opengeo.org/ >> >>> Expert service straight from the developers. >> >> >> >> >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo -?http://opengeo.org/ >> Expert service straight from the developers. > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From maw269 at gmail.com Thu Jan 26 16:23:10 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 16:23:34 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: References: <1327602659260-4341265.post@n6.nabble.com> Message-ID: <1327612990399-4341729.post@n6.nabble.com> Andreas wrote:"That's right. If that's not what you need, then you probably need topology rule enforcement. I assume you want to persist the user generated geometries on your GeoServer as well? That can be done as part of WFS transactions, using pre- and post-transaction hooks on the server. The first step would be to see why your GeoServer does not respond to WFS request, but that's a question for the geoserver-users list." I don't have any user generated geometries for this scenario. I simply want to test whether a point is within a polygon geometry sitting on GeoServer. I figured out the GeoServer is actually responding to the WFS request for the polygon but there are LOTS of vertices so it not feasible to use the WFS approach to determine whether the point is within the polygon. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341729.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From maw269 at gmail.com Thu Jan 26 16:41:58 2012 From: maw269 at gmail.com (maw269) Date: Thu Jan 26 16:42:32 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: References: <1327602659260-4341265.post@n6.nabble.com> <4F219F37.2000709@greeninfo.org> <1327608139767-4341498.post@n6.nabble.com> Message-ID: <1327614118502-4341763.post@n6.nabble.com> So I created a test polygon in GeoServer called test:allPoly and a test geometry point in OL called 'point'. Currently the point is outside the polygon but the wfstest layer still shows up. Shouldn't the wfs polygon be 'filtered out' with the code below? var wfstest = new OpenLayers.Layer.Vector("Flood Vector Test", { strategies: [new OpenLayers.Strategy.BBOX()], visibility: false, protocol: new OpenLayers.Protocol.WFS({ url: url, featurePrefix: "test", featureType: "allPoly", version: "1.1.0", srsName: "EPSG:900913" }), filters: [new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.INTERSECTS, value: point}) ] }); -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341763.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Thu Jan 26 16:45:28 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 16:46:16 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: <1327614118502-4341763.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com> <4F219F37.2000709@greeninfo.org> <1327608139767-4341498.post@n6.nabble.com> <1327614118502-4341763.post@n6.nabble.com> Message-ID: That's actually a good approach to proceed. I was about to recommend WPS and the JTS:interects process that GeoServer ships with, but what you came up with is easier. Having said that, you only have one small typo that keeps this from working: it's "filter" (singular), not "filters". Andreas. On Thu, Jan 26, 2012 at 10:41 PM, maw269 wrote: > So I created a test polygon in GeoServer called test:allPoly and a test > geometry point in OL called 'point'. Currently the point is outside the > polygon but the wfstest layer still shows up. Shouldn't the wfs polygon be > 'filtered out' with the code below? > > var wfstest = new OpenLayers.Layer.Vector("Flood Vector Test", { > ? ? ? ?strategies: [new OpenLayers.Strategy.BBOX()], visibility: false, > ? ? ? ?protocol: new OpenLayers.Protocol.WFS({ > ? ? ? ? ? ? ? ?url: ?url, > ? ? ? ? ? ? ? ?featurePrefix: "test", > ? ? ? ? ? ? ? ?featureType: "allPoly", > ? ? ? ? ? ? ? ?version: "1.1.0", > ? ? ? ? ? ? ? ?srsName: "EPSG:900913" > ? ? ? ? ? ? ? ?}), > ? ? ? ? ? ?filters: [new OpenLayers.Filter.Spatial({ > ? ? ? ? ? ? ? ?type: OpenLayers.Filter.Spatial.INTERSECTS, > ? ? ? ? ? ? ? ?value: point}) > ? ? ? ? ? ? ? ?] > }); > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341763.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From arnd.wippermann at web.de Thu Jan 26 16:50:28 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu Jan 26 16:50:51 2012 Subject: AW: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: <1327614118502-4341763.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com><4F219F37.2000709@greeninfo.org><1327608139767-4341498.post@n6.nabble.com> <1327614118502-4341763.post@n6.nabble.com> Message-ID: Instead of wfs you can use a WMS GetFeatureInfo Request. I use this approach to determine which country the user clicked. Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von maw269 Gesendet: Donnerstag, 26. Januar 2012 22:42 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] Re: How to test if a point is within WMS layer? So I created a test polygon in GeoServer called test:allPoly and a test geometry point in OL called 'point'. Currently the point is outside the polygon but the wfstest layer still shows up. Shouldn't the wfs polygon be 'filtered out' with the code below? var wfstest = new OpenLayers.Layer.Vector("Flood Vector Test", { strategies: [new OpenLayers.Strategy.BBOX()], visibility: false, protocol: new OpenLayers.Protocol.WFS({ url: url, featurePrefix: "test", featureType: "allPoly", version: "1.1.0", srsName: "EPSG:900913" }), filters: [new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.INTERSECTS, value: point}) ] }); -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-lay er-tp4341265p4341763.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From web at infogeo.ch Thu Jan 26 16:57:09 2012 From: web at infogeo.ch (web) Date: Thu Jan 26 17:01:43 2012 Subject: [OpenLayers-Users] Custom svg symbol for vector points layer In-Reply-To: Message-ID: <1327615029-056933aca80ecd5b59a6362adfe2dbaf@infogeo.ch> Hi all, Is there a mean to use user-defined svg symbol for rendering vector point? I've seen a ticket about it here: http://trac.osgeo.org/openlayers/ticket/2403 But I don't know if anything has been implemented yet. Any additional information or ressource would be greatly appreciated. Regards, R?my -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/6d14b6ec/attachment.html From ahocevar at opengeo.org Thu Jan 26 17:29:32 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu Jan 26 17:30:12 2012 Subject: [OpenLayers-Users] Custom svg symbol for vector points layer In-Reply-To: <1327615029-056933aca80ecd5b59a6362adfe2dbaf@infogeo.ch> References: <1327615029-056933aca80ecd5b59a6362adfe2dbaf@infogeo.ch> Message-ID: Hi, you can use user-defined symbols. Not defined in SVG though, but easy to create. See http://openlayers.org/dev/examples/graphic-name.html for an example. Andreas. On Thu, Jan 26, 2012 at 10:57 PM, web wrote: > Hi all, > > Is there a mean to use user-defined svg symbol for rendering vector point? > I've seen a ticket about it here: > > http://trac.osgeo.org/openlayers/ticket/2403 > > But I don't know if anything has been implemented yet. Any additional > information or ressource would be greatly appreciated. > > Regards, > > R?my > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From web at infogeo.ch Thu Jan 26 17:42:02 2012 From: web at infogeo.ch (web) Date: Thu Jan 26 17:42:40 2012 Subject: [OpenLayers-Users] Custom svg symbol for vector points layer In-Reply-To: Message-ID: <1327617722-a6d0dc0c8cbbd9de786b57510f8515be@infogeo.ch> Thanks for your response Andreas. I forget to mention I wanted to use svg to make a basic animated symbol. I know i could achieve an animated symbol with an externalgraphic, but I would rather use svg. Is there any mean to add an animated svg symbol to a vector symbol? regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/ea763d9f/attachment.html From banm at vocs.unideb.hu Fri Jan 27 01:27:40 2012 From: banm at vocs.unideb.hu (=?ISO-8859-1?B?QuFuIE1pa2zzcw==?=) Date: Fri Jan 27 01:37:01 2012 Subject: [OpenLayers-Users] wrong displayed projection Message-ID: <20120127072740.72e0632f@vocs.unideb.hu> Dear all, I have a problem with projections in wms layers, I have two wms layers from mapserv and i have two data sources an shp and a postgis. I produced the postgis table from the shp. When I load these two layers in qgis, they are overlapping as I expected, but if you check it here (http://biomaps.unideb.hu/openlayers/mapserv_test.html) the postgis layer center is 0,0 while the shp data layer is right. Where is the error? Thank you very much, Miklos The related openlayers js (I willing to use google base layers...) var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", numZoomLevels: 20, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34), }; map = new OpenLayers.Map( 'map',options); layer2 = new OpenLayers.Layer.WMS( "shp", "http://biomaps.unideb.hu/cgi-bin/mapserv",{ map:'/home/banm/maps/minimal.map',layers:'0605', isBaseLayer: false, visibility:true, opacity:1.0, format:'image/png', //transparent:true, }); layer2p = new OpenLayers.Layer.MapServer( "postgis", "http://biomaps.unideb.hu/cgi-bin/mapserv", { map: '/home/banm/maps/minimalp.map', layers:'cuckoo_feszkek', isBaseLayer: false, visibility:true, opacity:1.0, format:'image/png', transparent:true, }); the shp mapfile: MAP NAME "QGIS-MAP" SIZE 200 200 SYMBOLSET ./points.sym DEBUG 0 SHAPEPATH "../SHP/" PROJECTION "init=epsg:4326" END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' END IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END LAYER name "0605" STATUS DEFAULT DATA "feszkek.shp" TYPE point CLASS SYMBOL "circle_filled" color 123 70 23 SIZE 6 END #class END END The postgis layer: layer name 'feszkek' status default type point connectiontype postgis connection "host=localhost dbname=** password=** user=gisadmin" data "the_geom from feszkek" class SYMBOL "circle_filled" color 12 70 23 SIZE 6 end end -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mikl?s B?n Behavioural Ecology Research Group Department of Evolutionary Zoology http://vocs.unideb.hu/banm University of Debrecen H-4010 Debrecen, Egyetem t?r 1. Phone: +36 52 512-900 ext. 62356 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From daniel.behr at hzg.de Fri Jan 27 02:20:45 2012 From: daniel.behr at hzg.de (Daniel Behr) Date: Fri Jan 27 02:20:27 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels In-Reply-To: References: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> <4F217441.6000406@hzg.de> Message-ID: <4F22504D.9020805@hzg.de> thanks Andreas, this works fine for me... Am 26.01.2012 16:51, schrieb Andreas Hocevar: > Hi, > > whether one tick on the mouse wheel is one zoom level or not depends > on the mouse sensitivity, which is a system-wide setting. You can, > however, pass something like > > mouseWheelOptions: {interval: 20, cumulative: false} > > to the Navigation control, and it will only change the zoom by 1 for a > 20ms drag. You can try this setting online here: > http://openlayers.org/dev/examples/mobile-wmts-vienna.html > > Andreas. > > On Thu, Jan 26, 2012 at 4:41 PM, Daniel Behr wrote: >> I'm facing a similar problem, but for my app its a cross-browser issue on >> windows machines only! on linux its fine and the map has only one Navigation >> Control. >> >> does this help to spot the problem? >> >> Daniel >> >> Am 26.01.2012 16:25, schrieb Andreas Hocevar: >> >>> My guess is that you have two Navigation controls. One that is added >>> to the map by default unless you configure it with your custom array >>> of controls, and the navControl you added. >>> >>> You can check in the javascript console by trying >>> >>> map.getControlsByClass("OpenLayers.Control.Navigation"); >>> >>> and see if it returns an array of length 1 or 2. >>> >>> The obvious fix is to configure the map with your own default set of >>> controls. >>> >>> Andreas. >>> >>> On Thu, Jan 26, 2012 at 3:29 PM, Vidal, Antoni >>> wrote: >>>> >>>> Hi list, >>>> >>>> >>>> >>>> I?ve an OpenLayers.control.Navigation with following config options: >>>> >>>> >>>> >>>> var navControl = new OpenLayers.Control.Navigation({ >>>> >>>> type: OpenLayers.Control.TYPE_TOGGLE, >>>> >>>> zoomWheelEnabled: true, >>>> >>>> mouseWheelOptions: {interval: 1} >>>> >>>> }); >>>> >>>> >>>> >>>> But when user changes map zoom level using mousewheel, map zoomlevel >>>> jumps >>>> from 0 to 2 and then to 4, etc. >>>> >>>> >>>> >>>> Is possible to change this behaviour and force change zoomlevel one by >>>> one ? >>>> >>>> >>>> >>>> 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@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>>> >>> >>> >>> >> >> -- >> Daniel Behr >> Institut f?r K?stenforschung >> WebGIS Entwicklung >> +49 (0)4152 87 1589 (fax -1596) >> Daniel.Behr@hzg.de >> Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH >> Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany >> Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. >> Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory >> Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register >> Court) Internet: http://www.hzg.de >> _______________________________________________ >> >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > Helmholtz-Zentrum Geesthacht Zentrum f?r Material- und K?stenforschung GmbH Max-Planck-Stra?e 1 I 21502 Geesthacht I Deutschland/Germany Gesch?ftsf?hrer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Gan? Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht L?beck HRB 285 GE (Register Court) Internet: http://www.hzg.de From harshad.s at tcs.com Fri Jan 27 03:24:10 2012 From: harshad.s at tcs.com (Harshad S) Date: Fri Jan 27 03:26:02 2012 Subject: [OpenLayers-Users] Reg Overlaying of layers Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120127/3e441cc7/attachment-0001.html From ahocevar at opengeo.org Fri Jan 27 05:15:13 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Fri Jan 27 05:15:24 2012 Subject: [OpenLayers-Users] Custom svg symbol for vector points layer In-Reply-To: <1327617722-a6d0dc0c8cbbd9de786b57510f8515be@infogeo.ch> References: <1327617722-a6d0dc0c8cbbd9de786b57510f8515be@infogeo.ch> Message-ID: An externalGraphic *can* be SVG (just reference an svg file), but then it won't work in IE versions older than 9. Andreas. On Thu, Jan 26, 2012 at 11:42 PM, web wrote: > Thanks for your response Andreas. I forget to mention I wanted to use svg to > make a basic animated symbol. I know i could achieve an animated symbol with > an externalgraphic, but I would rather use svg. Is there any mean to add an > animated svg symbol to a vector symbol? > > regards. -- Andreas Hocevar OpenGeo -?http://opengeo.org/ Expert service straight from the developers. From antoni.vidal at icc.cat Fri Jan 27 08:28:16 2012 From: antoni.vidal at icc.cat (Vidal, Antoni) Date: Fri Jan 27 08:28:57 2012 Subject: [OpenLayers-Users] mousewheel jumps two zoom levels In-Reply-To: References: <784FAC631C0CB14CAE68764151D5DA410B68E195@CORRIOL.icc.local> Message-ID: <784FAC631C0CB14CAE68764151D5DA410B68E3B9@CORRIOL.icc.local> Hi, Yes Andreas, using console as you said, I get two navigation controls, one added to map as a control, and a seccond added as a geoext action to get a pan button in the toolbar. I've dropped the seccond because is not necesary. Anyway, I've configured control with: mouseWheelOptions: {interval: 20, cumulative: false} Best regards, 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 -----Missatge original----- De: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] En nom de Andreas Hocevar Enviat: jueves, 26 de enero de 2012 16:25 Per a: Vidal, Antoni A/c: openlayers-users@lists.osgeo.org Tema: Re: [OpenLayers-Users] mousewheel jumps two zoom levels My guess is that you have two Navigation controls. One that is added to the map by default unless you configure it with your custom array of controls, and the navControl you added. You can check in the javascript console by trying map.getControlsByClass("OpenLayers.Control.Navigation"); and see if it returns an array of length 1 or 2. The obvious fix is to configure the map with your own default set of controls. Andreas. On Thu, Jan 26, 2012 at 3:29 PM, Vidal, Antoni wrote: > Hi list, > > > > I've an OpenLayers.control.Navigation with following config options: > > > > ??????? var navControl = new OpenLayers.Control.Navigation({ > > ??????????? type: OpenLayers.Control.TYPE_TOGGLE, > > ??????????? zoomWheelEnabled: true, > > ??????????? mouseWheelOptions: {interval: 1} > > ??????? }); > > > > But when user changes map zoom level using mousewheel, map zoomlevel > jumps from 0 to 2 and then to 4, etc. > > > > Is possible to change this behaviour and force change zoomlevel one by one ? > > > > 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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From arnd.wippermann at web.de Fri Jan 27 09:06:42 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri Jan 27 09:07:24 2012 Subject: AW: [OpenLayers-Users] wrong displayed projection In-Reply-To: <20120127072740.72e0632f@vocs.unideb.hu> References: <20120127072740.72e0632f@vocs.unideb.hu> Message-ID: <924399C8228141CC81A96C190C42F97D@pcawh2> Hi, Your layer declarations are a bit out of order. lyrWMS = new OpenLayers.Layer.WMS(title, url, paramsWMS, lyrOptions) lyrMS = new OpenLayers.Layer.MapServer(title, url, paramsMS, lyrOptions) Params are added to the server request, options are instructions for OpenLayers. paramsWMS = { map:'/home/banm/maps/minimal.map', layers:'0605', format:'image/png', transparent:true } WMS layers are explicit regarded as BaseLayers if the param "transparent" and the option "isBaseLayer" is not set. paramsMS = { map:'/home/banm/maps/minimal.map', layers:'0605', map_imagetype:'png' } lyrOptions = { isBaseLayer: false, visibility:true, opacity:1.0 } Your Mapfile should hold some more informations. In the layerblocks are the projection of the data not set. PROJECTION "init=epsg:4326" END In the metadata block you should set wms_srs 'EPSG:4326 EPSG:900913' to support a reprojection with MapServer for these projections. You should do a WMS GetCapabilities Request for your services to get some configuration informations like: Request: http://biomaps.unideb.hu/cgi-bin/mapserv?map=/home/banm/maps/minimalp.map&Se rvice=WMS&Request=GetCapabilities&Version=1.1.1 If you do these modifications, your postgis layer should also displayed at the right position. But you should declare it as OpenLayers.Layer.WMS. Best luck Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von B?n Mikl?s Gesendet: Freitag, 27. Januar 2012 07:28 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] wrong displayed projection Dear all, I have a problem with projections in wms layers, I have two wms layers from mapserv and i have two data sources an shp and a postgis. I produced the postgis table from the shp. When I load these two layers in qgis, they are overlapping as I expected, but if you check it here (http://biomaps.unideb.hu/openlayers/mapserv_test.html) the postgis layer center is 0,0 while the shp data layer is right. Where is the error? Thank you very much, Miklos The related openlayers js (I willing to use google base layers...) var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", numZoomLevels: 20, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34), }; map = new OpenLayers.Map( 'map',options); layer2 = new OpenLayers.Layer.WMS( "shp", "http://biomaps.unideb.hu/cgi-bin/mapserv",{ map:'/home/banm/maps/minimal.map',layers:'0605', isBaseLayer: false, visibility:true, opacity:1.0, format:'image/png', //transparent:true, }); layer2p = new OpenLayers.Layer.MapServer( "postgis", "http://biomaps.unideb.hu/cgi-bin/mapserv", { map: '/home/banm/maps/minimalp.map', layers:'cuckoo_feszkek', isBaseLayer: false, visibility:true, opacity:1.0, format:'image/png', transparent:true, }); the shp mapfile: MAP NAME "QGIS-MAP" SIZE 200 200 SYMBOLSET ./points.sym DEBUG 0 SHAPEPATH "../SHP/" PROJECTION "init=epsg:4326" END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' END IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END LAYER name "0605" STATUS DEFAULT DATA "feszkek.shp" TYPE point CLASS SYMBOL "circle_filled" color 123 70 23 SIZE 6 END #class END END The postgis layer: layer name 'feszkek' status default type point connectiontype postgis connection "host=localhost dbname=** password=** user=gisadmin" data "the_geom from feszkek" class SYMBOL "circle_filled" color 12 70 23 SIZE 6 end end -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mikl?s B?n Behavioural Ecology Research Group Department of Evolutionary Zoology http://vocs.unideb.hu/banm University of Debrecen H-4010 Debrecen, Egyetem t?r 1. Phone: +36 52 512-900 ext. 62356 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From jlacroix at mapgears.com Fri Jan 27 09:15:32 2012 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Fri Jan 27 09:24:11 2012 Subject: [OpenLayers-Users] Reg Overlaying of layers In-Reply-To: References: Message-ID: <4F22B184.9080001@mapgears.com> Hi, I tried your Text layer in an OpenLayers sample and it worked without any error. The only thing I changed is your layer.txt. Your lat and lon column are inverted. Best regards, Julien On 12-01-27 03:24 AM, Harshad S wrote: > Hi all, > > I have added a WMS layer to my map in OpenLayers.On top of that, I wish > to add a text layer where the data is present in a text file in the same > folder(Marker information). But the result of all this a blank screen on > my browser(no map shown). What can be the fix for this? > > > var tiled = new OpenLayers.Layer.WMS( > "medford:streets - Tiled", > "http://172.24.105.46:8080/geoserver/medford/wms", > { > LAYERS: 'medford:streets', > STYLES: '', > format: format, > tiled: !pureCoverage, > tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom > }, > { > buffer: 0, > displayOutsideMaxExtent: true, > isBaseLayer: true > } > ); > > > > var textlayer = new OpenLayers.Layer.Text ( > "Cost-layer", > {location:"http://172.24.105.46/opl/layer.txt"} > > ); > > map.addLayer(tiled); > map.addLayer(textlayer); > > The layer.txt file is as follows - > > lat lon title description iconSize iconOffset icon > -122.82777 42.34116 Cost 100 21,25 -10,-25 > http://172.24.105.46/opl/images/select.png > -121.87289 42.31088 Cost 110 21,25 -10,20 > http://172.24.105.46/opl/images/select.png > > > Harshad Shrikhande > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jmwgeospatial at gmail.com Fri Jan 27 14:19:00 2012 From: jmwgeospatial at gmail.com (Jason Wheatley) Date: Fri Jan 27 14:19:52 2012 Subject: [OpenLayers-Users] Pivot/Transpose getFeatureInfo table Message-ID: Hello all, I'm looking to replicate the table styles on the OL examples list. I cannot seem to get my results table to display in this "transposed" format (where table columns become rows). Can anyone help me achieve this? I can't seem to figure it out or identify it in the sample code. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120127/788b091a/attachment.html From w_ward_W at hotmail.com Sat Jan 28 07:03:03 2012 From: w_ward_W at hotmail.com (Shadin) Date: Sat Jan 28 07:03:27 2012 Subject: [OpenLayers-Users] addUniqueValueRules .. where to add exactly Message-ID: <1327752183032-4345767.post@n6.nabble.com> *Hi I'm trying to apply a simple attribute based styles on my vector layer the attribute is known as "type" in the database and has these values: 1,2,3,4 I try this :* var styleMap = new OpenLayers.StyleMap({ "default": { externalGraphic: "Link to pic 1", fillOpacity: "${opacity}" }, "select": { cursor: "crosshair", externalGraphic: "Link to pic 2" }, }); var lookup = { 1: {externalGraphic: "Link to pic"}, 2: {externalGraphic: "Link to pic"}, 3: {externalGraphic: "Link to pic"}, 4: {externalGraphic: "Link to pic"} }; *Then, when I type this line:* styleMap.addUniqueValueRules("default", "type", lookup); *I got nothing on the map. just my base layer but when I commeted it, I got the normal overlay layer with typical features without any styling. am not sure about what wrong here. * -- View this message in context: http://osgeo-org.1560.n6.nabble.com/addUniqueValueRules-where-to-add-exactly-tp4345767p4345767.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Sat Jan 28 09:29:19 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sat Jan 28 09:29:45 2012 Subject: AW: [OpenLayers-Users] addUniqueValueRules .. where to add exactly In-Reply-To: <1327752183032-4345767.post@n6.nabble.com> References: <1327752183032-4345767.post@n6.nabble.com> Message-ID: You have to declare a size for the images Either pointRadius or graphicWidth graphicHeight Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Shadin Gesendet: Samstag, 28. Januar 2012 13:03 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] addUniqueValueRules .. where to add exactly *Hi I'm trying to apply a simple attribute based styles on my vector layer the attribute is known as "type" in the database and has these values: 1,2,3,4 I try this :* var styleMap = new OpenLayers.StyleMap({ "default": { externalGraphic: "Link to pic 1", fillOpacity: "${opacity}" }, "select": { cursor: "crosshair", externalGraphic: "Link to pic 2" }, }); var lookup = { 1: {externalGraphic: "Link to pic"}, 2: {externalGraphic: "Link to pic"}, 3: {externalGraphic: "Link to pic"}, 4: {externalGraphic: "Link to pic"} }; *Then, when I type this line:* styleMap.addUniqueValueRules("default", "type", lookup); *I got nothing on the map. just my base layer but when I commeted it, I got the normal overlay layer with typical features without any styling. am not sure about what wrong here. * -- View this message in context: http://osgeo-org.1560.n6.nabble.com/addUniqueValueRules-where-to-add-exactly -tp4345767p4345767.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From w_ward_W at hotmail.com Sun Jan 29 00:18:07 2012 From: w_ward_W at hotmail.com (Shadin) Date: Sun Jan 29 00:18:34 2012 Subject: AW: [OpenLayers-Users] addUniqueValueRules .. where to add exactly In-Reply-To: References: <1327752183032-4345767.post@n6.nabble.com> Message-ID: <1327814287631-4347261.post@n6.nabble.com> graphicWidth graphicHeight *I tried this but unfortunately no luck* :( -- View this message in context: http://osgeo-org.1560.n6.nabble.com/addUniqueValueRules-where-to-add-exactly-tp4345767p4347261.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From w_ward_W at hotmail.com Sun Jan 29 04:28:14 2012 From: w_ward_W at hotmail.com (Shadin) Date: Sun Jan 29 04:28:53 2012 Subject: [OpenLayers-Users] Re: addUniqueValueRules .. where to add exactly In-Reply-To: <1327752183032-4345767.post@n6.nabble.com> References: <1327752183032-4345767.post@n6.nabble.com> Message-ID: <1327829294317-4347769.post@n6.nabble.com> *"type" here* :styleMap.addUniqueValueRules("default", "type", lookup); *has to be the name of the column in the database table, right ?* -- View this message in context: http://osgeo-org.1560.n6.nabble.com/addUniqueValueRules-where-to-add-exactly-tp4345767p4347769.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From arnd.wippermann at web.de Sun Jan 29 12:42:01 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sun Jan 29 12:43:07 2012 Subject: AW: [OpenLayers-Users] Re: addUniqueValueRules .. where to add exactly In-Reply-To: <1327829294317-4347769.post@n6.nabble.com> References: <1327752183032-4345767.post@n6.nabble.com> <1327829294317-4347769.post@n6.nabble.com> Message-ID: Hi, "type" has to be an attribute of the features. Your code snippet works for me, if i add pointRadius or the other. Arnd -----Urspr?ngliche Nachricht----- Von: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] Im Auftrag von Shadin Gesendet: Sonntag, 29. Januar 2012 10:28 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] Re: addUniqueValueRules .. where to add exactly *"type" here* :styleMap.addUniqueValueRules("default", "type", lookup); *has to be the name of the column in the database table, right ?* -- View this message in context: http://osgeo-org.1560.n6.nabble.com/addUniqueValueRules-where-to-add-exactly -tp4345767p4347769.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From Robert.Sanson at asurequality.com Sun Jan 29 14:42:21 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Sun Jan 29 15:24:17 2012 Subject: [OpenLayers-Users] Re: How to test if a point is within WMS layer? In-Reply-To: <1327612990399-4341729.post@n6.nabble.com> References: <1327602659260-4341265.post@n6.nabble.com> <1327612990399-4341729.post@n6.nabble.com> Message-ID: <4F2657ED0200003700011E9E@gate1.asurequality.com> Why not use a GetFeatureInfo request using your x,y inside a small bbox and see if you get attributes returned relating to one of the polygon geometries in the WMS layer? Take your x,y point, create a small bbox round it and then use the width and height parameters to represent your point in the middle of the bbox eg. http://myserver/cgi-bin/mapserv.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=crs_parcels&QUERY_LAYERS=crs_parcels&INFO_FORMAT=text/plain&SRS=EPSG:2193&BBOX=1754813,5850304,1755013,5850504&WIDTH=20&HEIGHT=20&X=10&Y=10 Robert Sanson >>> maw269 27/01/2012 10:23 a.m. >>> Andreas wrote:"That's right. If that's not what you need, then you probably need topology rule enforcement. I assume you want to persist the user generated geometries on your GeoServer as well? That can be done as part of WFS transactions, using pre- and post-transaction hooks on the server. The first step would be to see why your GeoServer does not respond to WFS request, but that's a question for the geoserver-users list." I don't have any user generated geometries for this scenario. I simply want to test whether a point is within a polygon geometry sitting on GeoServer. I figured out the GeoServer is actually responding to the WFS request for the polygon but there are LOTS of vertices so it not feasible to use the WFS approach to determine whether the point is within the polygon. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-test-if-a-point-is-within-WMS-layer-tp4341265p4341729.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From robertdbuckley at yahoo.com Mon Jan 30 03:06:50 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Mon Jan 30 03:06:58 2012 Subject: [OpenLayers-Users] How to Create buffer around point? Message-ID: <1327910810.77199.YahooMailNeo@web24107.mail.ird.yahoo.com> Hi, ?I need to implement a "simple" buffer tool. The tool should simply place a Buffer zone around the position clicked in the map when the tool is activated. ...the tool should work like this... 1. Activate tool in toolbar 2. Set Radius in map units ?? 3. Click in map ? 4. buffer polygon based on the set radius is created and rendered in the map My system is Geoserver 2.1.2 / Postgis 1.5 I have done this with an sld and also in postgis ...but I really need the real-time effect in the map! any help or examples would be great, yours, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120130/64cce868/attachment.html From noorcs22 at gmail.com Mon Jan 30 03:50:19 2012 From: noorcs22 at gmail.com (Mustafa646) Date: Mon Jan 30 03:50:59 2012 Subject: [OpenLayers-Users] Can we fetch images from Oracle spatial or SQL server through WMS Message-ID: <1327913419007-4350005.post@n6.nabble.com> We can request Geo-registered map images from one or more distributed Geospatial databases e.g GeoServer by using WMS. Similarly, I want to know can we request geo-registered images from Oracle spatial or Sqlserver using WMS? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-we-fetch-images-from-Oracle-spatial-or-SQL-server-through-WMS-tp4350005p4350005.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From r.nijssen at terglobo.nl Mon Jan 30 03:57:16 2012 From: r.nijssen at terglobo.nl (Raymond Nijssen) Date: Mon Jan 30 04:18:04 2012 Subject: [OpenLayers-Users] How to Create buffer around point? In-Reply-To: <1327910810.77199.YahooMailNeo@web24107.mail.ird.yahoo.com> References: <1327910810.77199.YahooMailNeo@web24107.mail.ird.yahoo.com> Message-ID: <4F265B6C.7040800@terglobo.nl> Try JSTS. It integrates very well with OpenLayers and contains the Buffer-function client side in javascript. That means it works on features in a vector-layer. I'm not sure if that is what you're looking for though. https://github.com/bjornharrtell/jsts Good luck! Raymond On 01/30/2012 09:06 AM, Robert Buckley wrote: > Hi, > > I need to implement a "simple" buffer tool. The tool should simply > place a Buffer zone around the position clicked in the map when the > tool is activated. > > ...the tool should work like this... > > 1. Activate tool in toolbar > 2. Set Radius in map units > 3. Click in map > 4. buffer polygon based on the set radius is created and rendered in > the map > > > > My system is Geoserver 2.1.2 / Postgis 1.5 > > I have done this with an sld and also in postgis ...but I really need > the real-time effect in the map! > > any help or examples would be great, > > yours, > > Robert > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Terglobo Amp?restraat 110 5223 CT 's-Hertogenbosch 06-25314983 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120130/e530de14/attachment.html From michufoc at wp.pl Mon Jan 30 07:41:17 2012 From: michufoc at wp.pl (=?ISO-8859-2?Q?Micha=B3_Dro=BFd=BF?=) Date: Mon Jan 30 07:48:26 2012 Subject: [OpenLayers-Users] Rich symbolization of vector layers Message-ID: <4f268fedb9a257.94424674@wp.pl> An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120130/9e58e231/attachment.html From cyril.dejonghe at free.fr Mon Jan 30 09:36:40 2012 From: cyril.dejonghe at free.fr (Cyril Dejonghe) Date: Mon Jan 30 09:37:17 2012 Subject: [OpenLayers-Users] Rich symbolization of vector layers In-Reply-To: <4f268fedb9a257.94424674@wp.pl> References: <4f268fedb9a257.94424674@wp.pl> Message-ID: Hi list ! I'm new to OpenLayers and I don't manage to display my WFS vector layer on a OSM base layer. So what I DO manage to do is : - my WFS data are correctly set. I use Geoserver to provide WMS / WFS for cadastral data. - my js and my WMS server ARE running on the same webapp (as the final application will be a JEE application, I use TOMCAT for both geoserver and my app) - I manage to display a WMS layer with the same data and transparency - The request generated by OL and the answer of the geoserver seem correct (some data are transfered, the GML format seems correct) But if I don't display the WMS layer, I got nothing displayed for the WFS layer. Last info on my conf : - my WMS / WFS data are projected in Lambert93. - i'm using OL 2.11 and GeoServer 2.1.3 So hope you don't mind a snippet of my code... ----- carto = { projs : { wgs84: new OpenLayers.Projection("EPSG:4326"), // WGS84 lambert93: new OpenLayers.Projection("EPSG:2154"), spherMercator: new OpenLayers.Projection("EPSG:900913") }, map : undefined, layers : {}, select : undefined, init : function() { carto.map = new OpenLayers.Map("map", { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.LayerSwitcher( {title: 'Choix des calques visibles'})], projection: carto.projs.spherMercator, units: 'm', maxResolution: "auto", maxExtent: new OpenLayers.Bounds(-3.10, 48.75,-2.99, 48.82).transform(carto.projs.wgs84, carto.projs.spherMercator) }); carto.layers.fond = new OpenLayers.Layer.OSM(); carto.layers.ilotsWMS = new OpenLayers.Layer.WMS("ilotsWMS", "http://localhost:8080/geoserver/wms", {'layers': 'cultureplus:ilot_2009_022', 'format':'image/png', 'transparent':'true'}, {'opacity': 0.7, 'isBaseLayer': false, 'visibility': true}); carto.layers.ilots = new OpenLayers.Layer.Vector("ilots", { style : { pointRadius: 16, strokeColor: "blue", strokeWidth: 3, cursor: "pointer" }, strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:2154", url: "http://localhost:8080/geoserver/wfs", featureType: "ilot_2009_022", featureNS: "http://www.openplans.org/topp", featurePrefix: "cultureplus", visibility : true }) }); carto.map.addLayer(carto.layers.fond); carto.map.addLayer(carto.layers.ilots); carto.map.addLayer(carto.layers.ilotsWMS); carto.map.setCenter(new OpenLayers.LonLat(-3.05, 48.78).transform(carto.projs.wgs84, carto.projs.spherMercator), 13); } } Thanks for any help, i'm stuck on this first step... -- Cyril. From cyril.dejonghe at free.fr Mon Jan 30 09:39:33 2012 From: cyril.dejonghe at free.fr (Cyril Dejonghe) Date: Mon Jan 30 09:40:16 2012 Subject: [OpenLayers-Users] Unable to display a vector WFS layer Message-ID: Hi list ! I'm new to OpenLayers and I don't manage to display my WFS vector layer on a OSM base layer. So what I DO manage to do is : - my WFS data are correctly set. I use Geoserver to provide WMS / WFS for cadastral data. - my js and my WMS server ARE running on the same webapp (as the final application will be a JEE application, I use TOMCAT for both geoserver and my app) - I manage to display a WMS layer with the same data and transparency - The request generated by OL and the answer of the geoserver seem correct (some data are transfered, the GML format seems correct) But if I don't display the WMS layer, I got nothing displayed for the WFS layer. Last info on my conf : - my WMS / WFS data are projected in Lambert93. - i'm using OL 2.11 and GeoServer 2.1.3 So hope you don't mind a snippet of my code... ----- carto = { ? ?projs : { ? ? ? ?wgs84: new OpenLayers.Projection("EPSG:4326"), // WGS84 ? ? ? ?lambert93: new OpenLayers.Projection("EPSG:2154"), ? ? ? ?spherMercator: new OpenLayers.Projection("EPSG:900913") ? ?}, ? ?map : undefined, ? ?layers : {}, ? ?select : undefined, ? ?init : function() { ? ? ? ?carto.map = new OpenLayers.Map("map", { ? ? ? ? ? ?controls: [ ? ? ? ? ? ? ? ?new OpenLayers.Control.Navigation(), ? ? ? ? ? ? ? ?new OpenLayers.Control.LayerSwitcher( {title: 'Choix des calques visibles'})], ? ? ? ? ? ?projection: carto.projs.spherMercator, ? ? ? ? ? ?units: 'm', ? ? ? ? ? ?maxResolution: "auto", ? ? ? ? ? ?maxExtent: new OpenLayers.Bounds(-3.10, 48.75,-2.99, 48.82).transform(carto.projs.wgs84, carto.projs.spherMercator) ? ? ? ?}); ? ? ? ?carto.layers.fond = new OpenLayers.Layer.OSM(); ? ? ? ?carto.layers.ilotsWMS = new OpenLayers.Layer.WMS("ilotsWMS", "http://localhost:8080/geoserver/wms", ? ? ? ? ? ?{'layers': 'cultureplus:ilot_2009_022', 'format':'image/png', 'transparent':'true'}, ? ? ? ? ? ?{'opacity': 0.7, 'isBaseLayer': false, 'visibility': true}); ? ? ? ?carto.layers.ilots = new OpenLayers.Layer.Vector("ilots", { ? ? ? ? ? ?style : { ? ? ? ? ? ? ? ?pointRadius: 16, ? ? ? ? ? ? ? ?strokeColor: "blue", ? ? ? ? ? ? ? ?strokeWidth: 3, ? ? ? ? ? ? ? ?cursor: "pointer" ? ? ? ? ? ?}, ? ? ? ? ? ?strategies: [new OpenLayers.Strategy.BBOX()], ? ? ? ? ? ?protocol: new OpenLayers.Protocol.WFS({ ? ? ? ? ? ? ? ?version: "1.1.0", ? ? ? ? ? ? ? ?srsName: "EPSG:2154", ? ? ? ? ? ? ? ?url: "http://localhost:8080/geoserver/wfs", ? ? ? ? ? ? ? ?featureType: "ilot_2009_022", ? ? ? ? ? ? ? ?featureNS: "http://www.openplans.org/topp", ? ? ? ? ? ? ? ?featurePrefix: "cultureplus", ? ? ? ? ? ? ? ?visibility : true ? ? ? ? ? ?}) ? ? ? ?}); ? ? ? ?carto.map.addLayer(carto.layers.fond); ? ? ? ?carto.map.addLayer(carto.layers.ilots); ? ? ? ?carto.map.addLayer(carto.layers.ilotsWMS); ? ? ? ?carto.map.setCenter(new OpenLayers.LonLat(-3.05,48.78).transform(carto.projs.wgs84, carto.projs.spherMercator), 13); ? ?} } Thanks for any help, i'm stuck on this first step... -- Cyril. From cyril.dejonghe at free.fr Mon Jan 30 09:41:45 2012 From: cyril.dejonghe at free.fr (Cyril Dejonghe) Date: Mon Jan 30 09:42:32 2012 Subject: [OpenLayers-Users] Rich symbolization of vector layers In-Reply-To: <4f268fedb9a257.94424674@wp.pl> References: <4f268fedb9a257.94424674@wp.pl> Message-ID: Oops sorry Michal. my answer has to be a new topic. Arf ! 2012/1/30 Micha? Dro?d? : > Hi list! > > > > How to achive rich vector symbolization? I mean symbols with diagonal > stripes like: > > http://www.geostrona.pl/_temp/mieszk_usl.png > > > > I tryed SLD but OL seems not to recognize files created by AtlasStyler-1.7. > > OL SLD example shows just simple symbolization (fill and stroke). > > > > Thanks for help! > > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Cyril Dejonghe. From mayer at terrestris.de Mon Jan 30 09:47:10 2012 From: mayer at terrestris.de (Christian Mayer) Date: Mon Jan 30 09:47:26 2012 Subject: [OpenLayers-Users] How to Create buffer around point? In-Reply-To: <4F265B6C.7040800@terglobo.nl> References: <1327910810.77199.YahooMailNeo@web24107.mail.ird.yahoo.com> <4F265B6C.7040800@terglobo.nl> Message-ID: <4F26AD6E.3060006@terrestris.de> Hi, you can do this with OpenLayers as well. To get a clicked position use something like this: http://openlayers.org/dev/examples/click.html To render a circle buffer around the clicked position use this function: http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.createRegularPolygon Best regards, Chris On 30.01.2012 09:57, Raymond Nijssen wrote: > Try JSTS. It integrates very well with OpenLayers and contains the > Buffer-function client side in javascript. That means it works on > features in a vector-layer. I'm not sure if that is what you're > looking for though. > > https://github.com/bjornharrtell/jsts > > Good luck! > > Raymond > > > > On 01/30/2012 09:06 AM, Robert Buckley wrote: >> Hi, >> >> I need to implement a "simple" buffer tool. The tool should simply >> place a Buffer zone around the position clicked in the map when the >> tool is activated. >> >> ...the tool should work like this... >> >> 1. Activate tool in toolbar >> 2. Set Radius in map units >> 3. Click in map >> 4. buffer polygon based on the set radius is created and rendered in >> the map >> >> >> >> My system is Geoserver 2.1.2 / Postgis 1.5 >> >> I have done this with an sld and also in postgis ...but I really need >> the real-time effect in the map! >> >> any help or examples would be great, >> >> yours, >> >> Robert >> >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- > Terglobo > Amp?restraat 110 > 5223 CT 's-Hertogenbosch > 06-25314983 > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120130/f6a17704/attachment.html From truongxuanquang at yahoo.com Mon Jan 30 10:31:44 2012 From: truongxuanquang at yahoo.com (truongxuan quang) Date: Mon Jan 30 10:32:51 2012 Subject: [OpenLayers-Users] wfs reprojection (epsg4326,epsg900913) Message-ID: <1327937504.31139.YahooMailNeo@web114720.mail.gq1.yahoo.com> Hello list Many thanks for all very useful questions and?answers during time when I was in this list. I used geoserver with all layers in epsg:4326 , the base map I used google layer in epsg: 900913,?? the problem is WFS didn't appear to my map?although Gird which bind with wfs it displayed all the data?, If I remove?maxExtent: bounds1, ??wfs map layer could appear to the map, I try to reprojection for wfs layer but it could not done. If someone have any experiences in this problem please help me. Bellow one is some related?functions?to my problem var bounds1 = new OpenLayers.Bounds(? ? ? ? ? ? ? ? ? ? ? 11131950, 2273050, ? ? ? ? ? ? ? ? ? ? 12245130, ?2875730); var geographic = new OpenLayers.Projection("EPSG:4326"); ? ? ? ?var mercator = new OpenLayers.Projection("EPSG:900913"); mapOptions = { maxExtent: bounds1,? minResolution: "auto", maxResolution: 'auto', ? ?projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), //projection: "EPSG:4326", numZoomLevels: 20 , units: "m", allOverlays: false }; var protocol=new OpenLayers.Protocol.WFS({ srsName: "EPSG:4326" ,url: "http://localhost:8083/geoserver/wfs" ?? ,featureType: "VN_provinces" ,featureNS: "http://www.openplans.org/topp" }); ?var ddBounds = new OpenLayers.Bounds( ? ? ? ? ? ? ? 100,20,110,25 ? ? ? ? ? ? ); var form_Quang_1=new GeoExt.form.FormPanel({ ? ? ?region: "center", ?id: "form_Quang_1", ?//title: "Search by Population", ? title: 'Search by Population'+'     ', ?layout: "fit", ? collapsible: true, collapsed: true, split: true, ?autoScroll: true, ?bodyStyle: "padding:10px;", ?protocol: protocol, ?items: [ { ?xtype:'textfield', ?id: "textfield_11", ? ? ? ? ? ? ? ? ?? ?width: 75, ?//height: 30, ? ?name: "Danso__ge", ?allowBlank: false, ?value: '0', ?fieldLabel: ">=" ?},{ ?xtype:'textfield', ?id: "textfield_12", ? ? ? ? ? ? ? ? ?? ?width: 75, ?//height: 30, ? ?name: "Danso__le", ?allowBlank: false, ? value: '10000000', ?fieldLabel: "<=" ?},{ xtype: 'button', text: ' |-Run-| ', //anchor: '100%', handler: function(){ var mypanel = Ext.getCmp('grid_Quang'); mypanel.expand(); form_Quang_1.search(); }}, { xtype: 'button', text: ' |-Remove Search Map-|', anchor: '100%', handler: function(){ for(var i=0; i References: <1327910810.77199.YahooMailNeo@web24107.mail.ird.yahoo.com> <4F265B6C.7040800@terglobo.nl> <4F26AD6E.3060006@terrestris.de> Message-ID: <4F26FE06.10201@gns.cri.nz> Well if your server supports it, I doubt you could beat a DWITHIN WFS query, just make sure the distance is in native units if using geoserver. 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 scott.stewart at nbtsolutions.com Mon Jan 30 17:01:04 2012 From: scott.stewart at nbtsolutions.com (wingmanzz) Date: Mon Jan 30 17:01:42 2012 Subject: [OpenLayers-Users] WFS not displayed (GML looks fine) Message-ID: <1327960864781-4352042.post@n6.nabble.com> Hi I have a problem with OpenLayers 2.11 talking to WFS server provided by an ArcGIS 10.2 server. The XML comes back from the server properly (as far as I can tell), the features are added to the map (173 of them show up when I examine/debug the map object in Chrome), and the number of features grows and shrinks as I would expect it to when I zoom in and out or pan to move features our of the map extent, but there are no features shown at all. The styles are the defaults styles, but I have tried other default styles to no avail. The points come back as such: geometry: OpenLayers.Geometry.Point.OpenLayers.Class.initialize bounds: OpenLayers.Bounds.OpenLayers.Class.initialize id: "OpenLayers.Geometry.Point_145" x: 4715701.3611736 y: -11422711.075058 What is going wrong here? I can post some GML from the GetFeature request if it would help... Code: var map; var layer; var wfslayer; var geographic = new OpenLayers.Projection("EPSG:4326"); var mercator = new OpenLayers.Projection("EPSG:900913"); var lon = -98.393; var lat = 38.445; var zoom = 4; OpenLayers.ProxyHost = "/demo/simpleproxy.php?mode=native&url="; var center_mercator = OpenLayers.Layer.SphericalMercator.forwardMercator(lon, lat); center_mercator_x = center_mercator.lon; center_mercator_y = center_mercator.lat; var options = { projection: mercator, units: "m", maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) }; map = new OpenLayers.Map( 'map', options ); var osmLayer = new OpenLayers.Layer.OSM("OpenStreetMap"); osmLayer.projection = aliasproj; map.addLayer(osmLayer); wfslayer = new OpenLayers.Layer.WFS( "OpenLayers WFS", "http:/xxxxx/ArcGIS/services/RRNP/RRNP_NHAS_Federal_Partners_WFS/GeoDataServer/WFSServer?", { typename: "Fed_Partners", extractAttributes: true, version: "1.1.0", srsName: "EPSG:4326" }, { projection: new OpenLayers.Projection("EPSG:4326"), isBaseLayer: false, extractAttributes: true } ); map.addLayer(wfslayer); //no features until I refresh.. wfslayer.refresh(); // Add non-default controls to the map canvas map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.LayerSwitcher()); // Set Map Center and Zoom Level map.setCenter(new OpenLayers.LonLat(center_mercator_x, center_mercator_y), zoom); -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-not-displayed-GML-looks-fine-tp4352042p4352042.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Andrew.Stewart at reddeer.ca Mon Jan 30 18:18:34 2012 From: Andrew.Stewart at reddeer.ca (Andrew Stewart) Date: Mon Jan 30 18:29:06 2012 Subject: [OpenLayers-Users] Printing WMS Layers - Opacity causing issues Message-ID: <94816848A8EB3941B1E8592F425827A9B9CA440263@chex2.crdnet.ca> Good afternoon, I am having an issue printing layers when using opacity for WMS layer. It seems that when 2 of my area features are added to the same map only 1 of them can have opacity for both to print properly. If I add opacity to both layers, none of them print. If however only 1 layer has opacity then they both show up. Has anyone encountered this before and has any solution? The only thing I have that works is to combine both the WMS layers into one single layer (using typenames of both to combine) except now this only has 1 opacity when both layers originally have different values. Appreciate any advice, My map is declared as - map_print = new OpenLayers.Map("map", { controls: [], maxExtent: new OpenLayers.Bounds(-5621.0164289504, 5778375.8585485, 31216.186095582, 5808291.3979497), maxScale: 100, allOverlays: true, minScale: 125000, maxResolution: "auto", numZoomLevels: 31, fractionalZoom: true, units: "m", projection: new OpenLayers.Projection("EPSG:3776"), displayProjection: new OpenLayers.Projection("EPSG:3776") And my WMS layers get added like so - layer_Print = new OpenLayers.Layer.WMS(original.layers[num].name, wms, { layers: typenames, VERSION: "1.3.0", transparent: true },{ isBaseLayer: false, singleTile: true, visibility: true, buffer: 1, ratio: 1, title: "Ortho Image" }); layer_Print.setOpacity(opacity); map_print.addLayer(layer_Print); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120130/fa1cd33e/attachment.html From punk.kish at gmail.com Mon Jan 30 22:13:34 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Mon Jan 30 22:13:48 2012 Subject: [OpenLayers-Users] zoom to map by name of place Message-ID: <025F41FB-0E50-4D0B-8FD6-00E190B0BE6F@gmail.com> a'ite, this question is neither mapserver-specific nor OL-specific (two technologies that I am using gung-ho right now), but both would be involved in developing something that I describe below -- you know, how in Google Maps you can type pretty much any location's name, and if it finds a match in its database, Google Maps zooms to the boundary of that location. For example, if I type http://maps.google.com/maps?q=Zurich,+Switzerland or http://maps.google.com/maps?q=Dane+County,+WI or http://maps.google.com/maps?q=New+York+City the map zooms to the bounds of that location. This is what I want to develop, for the entire world. I guess the starting point would be the geonomes database, except, if I understand correctly, geonames does not have the bounds of locations. Instead, it has only the centroids of locations. A better way might be something like the following -- I am using Google Maps as my base layer anyway. Could I somehow submit a search through my application to the Google Maps base layer, return the bounds and zoom to that? Thoughts? Suggestions? -- Puneet Kishor From relicary at gmail.com Tue Jan 31 06:43:01 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Tue Jan 31 06:43:22 2012 Subject: [OpenLayers-Users] Several URL's in my getFeatureInfo Message-ID: Hi, I have created one OpenLayer script with several layers. One of this layers comes from a remote Map Server. Now, I have achieve show all the layers, but when I try obtain information from the remote layer, the function do not returns anything. Exists some meaning to read two or more url's at the same time? Thanks My code is like this, var RemoteLayer = new OpenLayers.Layer.WMS("Remote", "http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx ?", {layers : 'Catastro', format : 'image/png', transparent : true}, {isBaseLayer : false, singleTile:true, ratio: 1}); ... info = new OpenLayers.Control.WMSGetFeatureInfo({ url : '/cgi-bin/mapserv.exe', title : 'Info', layers : [ LocalLayer1, LocalLayer2, RemoteLayer], queryVisible : true, vendorParams : {map : 'mapfile'}, eventListeners : {'getfeatureinfo' : function(event) { if(event.text!="") { var popup = new OpenLayers.Popup.FramedCloud("Datos", map.getLonLatFromPixel(event.xy), null, event.text, null, true); popup.autoSize = true; map.addPopup(popup, true); } } }}); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120131/d024d6de/attachment-0001.html From Joseph.Tito at sparta.com Tue Jan 31 08:09:55 2012 From: Joseph.Tito at sparta.com (Tito, Joe) Date: Tue Jan 31 08:10:05 2012 Subject: [OpenLayers-Users] Custom Icon on KML layers Message-ID: I have a vector layer being created from a KML file via an HTTP protocol, and I'm trying to figure out how to get a custom icon to be displayed for all point in the KML file. Example URL to icon: http://www.mysite.com/icon.png How I create the KML Layer: var layer = new OpenLayers.Layer.Vector('mylayer', { strategies: [new OpenLayers.Stategy.Fixed()], protocol: new OpenLayer.Protocol.HTTP({ url: 'http://www.mysite.com/kml.kml', format: new OpenLayers.Format.KML({ extractStyles: false, extractAttributes: false, maxDepth: 0 }) }) }); I've tried creating a style and a style map and adding it to the layer, but I can't seem to get anything to work. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120131/9188b377/attachment.html From Lucia.Morper-Busch at sbg.ac.at Tue Jan 31 08:15:16 2012 From: Lucia.Morper-Busch at sbg.ac.at (Morper-Busch, Lucia) Date: Tue Jan 31 08:16:44 2012 Subject: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically Message-ID: <7506863B0141334AA8B9FAAAC6D703B0031F37AF@MAIL2.plus.sbg.ac.at> Hello, I want to fire the getfeatureinfo event of the OpenLayers.Control.WMSGetFeatureInfo programmatically. I have x and y of a point (from Google geocoder) and want to display the featureinfo at this point without clicking on the map. Has anyone an idea? Best regards Lucia Dipl.-Geogr. Lucia Morper-Busch | Researcher University of Salzburg | Centre for Geoinformatics - Z_GIS Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 > Z_GIS...experts for the spatial view -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120131/8a1b39aa/attachment.html From schroeter at netgis.de Tue Jan 31 08:29:05 2012 From: schroeter at netgis.de (Sven Schroeter) Date: Tue Jan 31 08:29:22 2012 Subject: [OpenLayers-Users] OpenLayers Mobile on Android Message-ID: <1328016545360-4353210.post@n6.nabble.com> Hi, I'm playing with the great mobile examples e.g. with http://openlayers.org/dev/examples/mobile-jq.html#mappage jQueryMobile On an iPhome everything works good, but the pinch-zoom does not work on divices with webkit on android 2.x., on 3.x it works. Now I've found the http://openlayers.org/dev/examples/multitouch.html testpage and ask me if there is a fix for the problem e.g. using another browser on this device. Any idea? Sven -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Mobile-on-Android-tp4353210p4353210.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zeitalex at googlemail.com Tue Jan 31 08:39:07 2012 From: zeitalex at googlemail.com (Alex) Date: Tue Jan 31 08:40:00 2012 Subject: [OpenLayers-Users] OpenLayers Mobile on Android In-Reply-To: <4F27EE9C.5060605@googlemail.com> References: <1328016545360-4353210.post@n6.nabble.com> <4F27EE9C.5060605@googlemail.com> Message-ID: try to use opera mobile. > Am 31.01.2012 14:29, schrieb Sven Schroeter: > > Hi, >> I'm playing with the great mobile examples e.g. with >> http://openlayers.org/dev/**examples/mobile-jq.html#**mappagejQueryMobile >> On an iPhome everything works good, but the pinch-zoom does not work on >> divices with webkit on android 2.x., on 3.x it works. >> Now I've found the http://openlayers.org/dev/**examples/multitouch.html >> testpage and ask me if there is a fix for the problem e.g. using another >> browser on this device. >> Any idea? >> Sven >> >> >> >> -- >> View this message in context: http://osgeo-org.1560.n6.** >> nabble.com/OpenLayers-Mobile-**on-Android-tp4353210p4353210.**html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> ______________________________**_________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/**mailman/listinfo/openlayers-**users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120131/be7e86ef/attachment.html From jumpinjackie at gmail.com Tue Jan 31 09:03:47 2012 From: jumpinjackie at gmail.com (Jackie Ng) Date: Tue Jan 31 09:04:12 2012 Subject: [OpenLayers-Users] Re: OpenLayers Mobile on Android In-Reply-To: <1328016545360-4353210.post@n6.nabble.com> References: <1328016545360-4353210.post@n6.nabble.com> Message-ID: <1328018627394-4353245.post@n6.nabble.com> The stock android browser pre-honeycomb is absolutely woeful! It doesn't support touch events and has lots of quirky interactions with JQuery Mobile. I expected better from a WebKit-based mobile browser (and from Google, the same people who made Chrome!). Anyway, they cleaned up their act since and the browser in ( Honeycomb / Ice Cream Sandwich ) is top notch. Sad to say, those on gingerbread (ie. The majority of Android users) will have to deal with the degraded touch-less experience. So you should keep basic navigation controls in your map viewer as a fallback. - Jackie -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Mobile-on-Android-tp4353210p4353245.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From AGilbert at korem.com Tue Jan 31 09:03:03 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Tue Jan 31 09:04:39 2012 Subject: [OpenLayers-Users] OpenLayers Mobile on Android In-Reply-To: <1328016545360-4353210.post@n6.nabble.com> Message-ID: The problem also apply on maps.google.com, so it's not related to open layers On 12-01-31 08:29, "Sven Schroeter" wrote: >Hi, >I'm playing with the great mobile examples e.g. with >http://openlayers.org/dev/examples/mobile-jq.html#mappage jQueryMobile >On an iPhome everything works good, but the pinch-zoom does not work on >divices with webkit on android 2.x., on 3.x it works. >Now I've found the http://openlayers.org/dev/examples/multitouch.html >testpage and ask me if there is a fix for the problem e.g. using another >browser on this device. >Any idea? >Sven > > > >-- >View this message in context: >http://osgeo-org.1560.n6.nabble.com/OpenLayers-Mobile-on-Android-tp4353210 >p4353210.html >Sent from the OpenLayers Users mailing list archive at Nabble.com. >_______________________________________________ >Users mailing list >Users@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users From ramotswa at gmail.com Tue Jan 31 09:05:24 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Tue Jan 31 09:05:55 2012 Subject: [OpenLayers-Users] Move listener curious behaviour Message-ID: Hello all, I have spotted some curious behaviour with the move listener on the map object. (using OL 2.11). The code is pretty simple.. map = new OpenLayers.Map({ controls: [new OpenLayers.Control.Navigation() ], div: "map", eventListeners: { "move": updateCoord } }); and the updatecoord function is just this: function updateMap() { var tlPixel = new OpenLayers.Pixel(10,10); var tl = map.getLonLatFromLayerPx(tlPixel); document.getElementById('output').innerHTML = tl.toString(); } The problem I'm seeing is that the coordinates are only updated every time I zoom, rather than everytime I pan / drag etc... Any ideas? Thanks, Toby From ahocevar at opengeo.org Tue Jan 31 09:15:48 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 31 09:16:02 2012 Subject: [OpenLayers-Users] Move listener curious behaviour In-Reply-To: References: Message-ID: Hi, getLonLatFromLayerPx is an internal function that does not what you want and should not be used by applications. Try getLonLatFromPixel instead. Andreas. On Tue, Jan 31, 2012 at 3:05 PM, Tobias Reinicke wrote: > Hello all, > > I have spotted some curious behaviour with the move listener on the > map object. (using OL 2.11). > > The code is pretty simple.. > > map = new OpenLayers.Map({ > ? ?controls: [new OpenLayers.Control.Navigation() ], > ? ?div: "map", > ? ?eventListeners: { > ? ? ? ?"move": updateCoord > ? ?} > > }); > > and the updatecoord function is just this: > ? function updateMap() { > ? ? ? ? ? ? ? ? var tlPixel = new OpenLayers.Pixel(10,10); > ? ? ? ? ? ? ? ?var tl = map.getLonLatFromLayerPx(tlPixel); > ? ? ? ? ? ? ? ?document.getElementById('output').innerHTML = tl.toString(); > } > > > The problem I'm seeing is that the coordinates are only updated every > time I zoom, rather than everytime I pan / drag etc... > > Any ideas? > > Thanks, > > Toby > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ramotswa at gmail.com Tue Jan 31 09:18:58 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Tue Jan 31 09:19:25 2012 Subject: [OpenLayers-Users] Move listener curious behaviour In-Reply-To: References: Message-ID: Thanks Andreas. Toby On 31 January 2012 14:15, Andreas Hocevar wrote: > Hi, > > getLonLatFromLayerPx is an internal function that does not what you > want and should not be used by applications. Try getLonLatFromPixel > instead. > > Andreas. > > On Tue, Jan 31, 2012 at 3:05 PM, Tobias Reinicke wrote: >> Hello all, >> >> I have spotted some curious behaviour with the move listener on the >> map object. (using OL 2.11). >> >> The code is pretty simple.. >> >> map = new OpenLayers.Map({ >> ? ?controls: [new OpenLayers.Control.Navigation() ], >> ? ?div: "map", >> ? ?eventListeners: { >> ? ? ? ?"move": updateCoord >> ? ?} >> >> }); >> >> and the updatecoord function is just this: >> ? function updateMap() { >> ? ? ? ? ? ? ? ? var tlPixel = new OpenLayers.Pixel(10,10); >> ? ? ? ? ? ? ? ?var tl = map.getLonLatFromLayerPx(tlPixel); >> ? ? ? ? ? ? ? ?document.getElementById('output').innerHTML = tl.toString(); >> } >> >> >> The problem I'm seeing is that the coordinates are only updated every >> time I zoom, rather than everytime I pan / drag etc... >> >> Any ideas? >> >> Thanks, >> >> Toby >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. From ahocevar at opengeo.org Tue Jan 31 09:26:03 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 31 09:26:50 2012 Subject: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically In-Reply-To: <7506863B0141334AA8B9FAAAC6D703B0031F37AF@MAIL2.plus.sbg.ac.at> References: <7506863B0141334AA8B9FAAAC6D703B0031F37AF@MAIL2.plus.sbg.ac.at> Message-ID: Hi, the least dirty way to do it is to fire a click event on the map: map.events.triggerEvent("click", {xy: map.getPixelFromLonLat(lon, lat)}); Andreas. On Tue, Jan 31, 2012 at 2:15 PM, Morper-Busch, Lucia wrote: > Hello, > > I want to fire the getfeatureinfo event of the > OpenLayers.Control.WMSGetFeatureInfo programmatically. > > I have x and y of a point (from Google geocoder) and want to display the > featureinfo at this point without clicking on the map. > > Has anyone an idea? > > Best regards > > Lucia > > > > Dipl.-Geogr. Lucia Morper-Busch | Researcher > > University of Salzburg | Centre for Geoinformatics - Z_GIS > > Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, > Austria > > Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 > >> Z_GIS?experts for the spatial view > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From benjaminpreisig at gmx.at Tue Jan 31 10:44:36 2012 From: benjaminpreisig at gmx.at (Bennos) Date: Tue Jan 31 10:44:41 2012 Subject: [OpenLayers-Users] Re: Change layer on max zoom level In-Reply-To: <4D7A5650.4000900@tiscalinet.it> References: <4D7A5650.4000900@tiscalinet.it> Message-ID: <1328024676290-4353364.post@n6.nabble.com> Hi, I am searching for a solution exactly the same as described it in the previous post. After 18 TMS zoom levels i want to change to zoom level 19 in an WMS. Any new suggestions? Cheers Benjamin -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Change-layer-on-max-zoom-level-tp3918789p4353364.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Lucia.Morper-Busch at sbg.ac.at Tue Jan 31 11:30:38 2012 From: Lucia.Morper-Busch at sbg.ac.at (Morper-Busch, Lucia) Date: Tue Jan 31 11:30:44 2012 Subject: AW: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically In-Reply-To: References: <7506863B0141334AA8B9FAAAC6D703B0031F37AF@MAIL2.plus.sbg.ac.at> Message-ID: <7506863B0141334AA8B9FAAAC6D703B0031F3932@MAIL2.plus.sbg.ac.at> Thank you Andreas, but when the the lon, lat coordinates are outside of extent of the map? I think about a auxiliary map with a big extent... Lucia Dipl.-Geogr. Lucia Morper-Busch | Researcher University of Salzburg | Centre for Geoinformatics - Z_GIS Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 > Z_GIS...experts for the spatial view -----Urspr?ngliche Nachricht----- Von: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] Im Auftrag von Andreas Hocevar Gesendet: Dienstag, 31. J?nner 2012 15:26 An: Morper-Busch, Lucia Cc: openlayers-users@lists.osgeo.org Betreff: Re: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically Hi, the least dirty way to do it is to fire a click event on the map: map.events.triggerEvent("click", {xy: map.getPixelFromLonLat(lon, lat)}); Andreas. On Tue, Jan 31, 2012 at 2:15 PM, Morper-Busch, Lucia wrote: > Hello, > > I want to fire the getfeatureinfo event of the > OpenLayers.Control.WMSGetFeatureInfo programmatically. > > I have x and y of a point (from Google geocoder) and want to display the > featureinfo at this point without clicking on the map. > > Has anyone an idea? > > Best regards > > Lucia > > > > Dipl.-Geogr. Lucia Morper-Busch | Researcher > > University of Salzburg | Centre for Geoinformatics - Z_GIS > > Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, > Austria > > Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 > >> Z_GIS...experts for the spatial view > > > > > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From ahocevar at opengeo.org Tue Jan 31 11:43:54 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Tue Jan 31 11:44:35 2012 Subject: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically In-Reply-To: <7506863B0141334AA8B9FAAAC6D703B0031F3932@MAIL2.plus.sbg.ac.at> References: <7506863B0141334AA8B9FAAAC6D703B0031F37AF@MAIL2.plus.sbg.ac.at> <7506863B0141334AA8B9FAAAC6D703B0031F3932@MAIL2.plus.sbg.ac.at> Message-ID: In this case you could open a popup at the xy position. This will pan the map into view. And on moveend, you fire the click event. Not sure if this workflow meets your requirements though. If not, you'd have to pan the map into view programmatically before firing the click event. Andreas. On Tue, Jan 31, 2012 at 5:30 PM, Morper-Busch, Lucia wrote: > Thank you Andreas, > but when the the lon, lat coordinates are outside of extent of the map? > I think about a auxiliary map with a big extent... > Lucia > > Dipl.-Geogr. Lucia Morper-Busch | Researcher > University of Salzburg | Centre for Geoinformatics - Z_GIS > Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria > Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 >> Z_GIS...experts for the spatial view > > > -----Urspr?ngliche Nachricht----- > Von: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] Im Auftrag von Andreas Hocevar > Gesendet: Dienstag, 31. J?nner 2012 15:26 > An: Morper-Busch, Lucia > Cc: openlayers-users@lists.osgeo.org > Betreff: Re: [OpenLayers-Users] WMSgetFeatureInfo fire click event programmatically > > Hi, > > the least dirty way to do it is to fire a click event on the map: > > map.events.triggerEvent("click", {xy: map.getPixelFromLonLat(lon, lat)}); > > Andreas. > > On Tue, Jan 31, 2012 at 2:15 PM, Morper-Busch, Lucia > wrote: >> Hello, >> >> I want to fire the getfeatureinfo event of the >> OpenLayers.Control.WMSGetFeatureInfo programmatically. >> >> I have x and y of a point (from Google geocoder) and want to display the >> featureinfo at this point without clicking on the map. >> >> Has anyone an idea? >> >> Best regards >> >> Lucia >> >> >> >> Dipl.-Geogr. Lucia Morper-Busch | Researcher >> >> University of Salzburg | Centre for Geoinformatics - Z_GIS >> >> Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, >> Austria >> >> Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260 >> >>> Z_GIS...experts for the spatial view >> >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From osm at tappenbeck.net Tue Jan 31 12:50:20 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Tue Jan 31 13:10:39 2012 Subject: [OpenLayers-Users] Re: OpenLayers Mobile on Android - Examples In-Reply-To: <1328016545360-4353210.post@n6.nabble.com> References: <1328016545360-4353210.post@n6.nabble.com> Message-ID: Am 31.01.2012 14:29, schrieb Sven Schroeter: > Hi, > I'm playing with the great mobile examples e.g. with > http://openlayers.org/dev/examples/mobile-jq.html#mappage jQueryMobile > On an iPhome everything works good, but the pinch-zoom does not work on > divices with webkit on android 2.x., on 3.x it works. > Now I've found the http://openlayers.org/dev/examples/multitouch.html > testpage and ask me if there is a fix for the problem e.g. using another > browser on this device. > Any idea? > Sven > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Mobile-on-Android-tp4353210p4353210.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. hi ! i create some simple maps on android. look at http://osm2go.tappenbeck.net regards jan .-) From rossko at culzean.clara.co.uk Tue Jan 31 13:29:22 2012 From: rossko at culzean.clara.co.uk (Rossko) Date: Tue Jan 31 13:30:09 2012 Subject: [OpenLayers-Users] Re: Custom Icon on KML layers In-Reply-To: References: Message-ID: <1328034562079-4354060.post@n6.nabble.com> > I have a vector layer being created from a KML file via an HTTP protocol, and I'm trying to figure out how to get a custom icon to be displayed for all point in the KML file. KML specifies its own icons using etc. You could edit the KML. But if you want to override the KML, you'll have to create your own custom KML renderer by editing the OL code. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Custom-Icon-on-KML-layers-tp4353486p4354060.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rossko at culzean.clara.co.uk Tue Jan 31 13:32:20 2012 From: rossko at culzean.clara.co.uk (Rossko) Date: Tue Jan 31 13:32:28 2012 Subject: [OpenLayers-Users] Re: Printing WMS Layers - Opacity causing issues In-Reply-To: <94816848A8EB3941B1E8592F425827A9B9CA440263@chex2.crdnet.ca> References: <94816848A8EB3941B1E8592F425827A9B9CA440263@chex2.crdnet.ca> Message-ID: <1328034740373-4354071.post@n6.nabble.com> > If I add opacity to both layers, none of them print. Browser in use? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Printing-WMS-Layers-Opacity-causing-issues-tp4352179p4354071.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tt at sugee.dk Tue Jan 31 16:15:36 2012 From: tt at sugee.dk (Tue Topholm) Date: Tue Jan 31 16:16:22 2012 Subject: [OpenLayers-Users] Can we fetch images from Oracle spatial or SQL server through WMS In-Reply-To: <1327913419007-4350005.post@n6.nabble.com> References: <1327913419007-4350005.post@n6.nabble.com> Message-ID: Google gave me this for Oracle: http://download.oracle.com/otndocs/products/spatial/pdf/osuc2011_presentations/osuc2011_webserv_godfrind.pdf SQL server is no go -- Med venlig hilsen / Kind regards Tue Topholm Sugee Tlf: +45 32 13 32 32 W: http://www.sugee.dk 2012/1/30 Mustafa646 : > We can request Geo-registered map images from one or more distributed > Geospatial databases e.g GeoServer by using WMS. Similarly, I want to know > can we request geo-registered images from Oracle spatial or Sqlserver using > WMS? > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-we-fetch-images-from-Oracle-spatial-or-SQL-server-through-WMS-tp4350005p4350005.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From Andrew.Stewart at reddeer.ca Tue Jan 31 21:55:16 2012 From: Andrew.Stewart at reddeer.ca (Andrew Stewart) Date: Tue Jan 31 21:55:34 2012 Subject: [OpenLayers-Users] Re: Printing WMS Layers - Opacity causing issues In-Reply-To: <1328034740373-4354071.post@n6.nabble.com> References: <94816848A8EB3941B1E8592F425827A9B9CA440263@chex2.crdnet.ca> <1328034740373-4354071.post@n6.nabble.com> Message-ID: <94816848A8EB3941B1E8592F425827A9B9CA440265@chex2.crdnet.ca> Hi, I appreciate the response. This is actually inly happening when I use Internet Explorer 8 to print (which unfortunately is still the default browser here). I have also tested the exact same code using Chrome, Firefox and Internet Explorer 9 and the print works. But when I use two layers on a map and both have opacity then only one shows up properly when printed using IE8. Any work around for this? -----Original Message----- From: openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] On Behalf Of Rossko Sent: January 31, 2012 11:32 AM To: openlayers-users@lists.osgeo.org Subject: [OpenLayers-Users] Re: Printing WMS Layers - Opacity causing issues > If I add opacity to both layers, none of them print. Browser in use? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Printing-WMS-Layers-Opacity-causing-issues-tp4352179p4354071.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users [This message has been scanned for security content threats and viruses.] [The City of Red Deer I.T. Services asks that you please consider the environment before printing this e-mail.]
' + "