From ahocevar at opengeo.org Wed Aug 1 04:27:33 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Wed, 1 Aug 2012 13:27:33 +0200 Subject: [OpenLayers-Users] How do I make the map static? In-Reply-To: <5017843B.8050700@googlemail.com> References: <5017843B.8050700@googlemail.com> Message-ID: Hi, just change the line where you create the map to map = new OpenLayers.Map("mapdiv", {controls: [new OpenLayers.Control.Attribution()]}); By doing so, your map will be created without navigation controls. Andreas. On Tue, Jul 31, 2012 at 9:07 AM, Marco Baumg?rtner wrote: > Using a smartphone(android) I cannot scroll down on the page containing an > almost full-screen map as moving the finger over the map makes the map pan > instead. Which is nice in general but not in this case. How do I make the > map static? > > This is my code: > >>
>> >>
>> >> >> >> > >> $bildn = "image.png"; >> >> $gr = getimagesize($bildn); ?> >> >> > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From rlombaard at maxgeo.com Wed Aug 1 04:42:58 2012 From: rlombaard at maxgeo.com (Riaan Lombaard) Date: Wed, 1 Aug 2012 19:42:58 +0800 Subject: [OpenLayers-Users] Transform Points Help Message-ID: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> Hi, I need some transformation advice. Running this script in Firebug. " var point = new OpenLayers.Geometry.Point(128.627103622948, -15.8249150838119); var point_transformed = point.transform(new OpenLayers.Projection("EPSG:4283"), new OpenLayers.Projection("EPSG:4269")); console.log(point); console.log(point_transformed) " What happens is the data I am getting is from `GDA94 (SRID 4283)` and I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am using ` http://vmap0.tiles.osgeo.org/wms/vmap0` But looking at the example it does not seem to convert anything, the x,y stay's the same? What am I missing? Riaan -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabriel.vatin at mines-paristech.fr Wed Aug 1 05:07:26 2012 From: gabriel.vatin at mines-paristech.fr (Gabriel Vatin) Date: Wed, 01 Aug 2012 14:07:26 +0200 Subject: [OpenLayers-Users] Transform Points Help In-Reply-To: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> Message-ID: <50191BFE.2050405@mines-paristech.fr> Hi, Maybe the EPSG you're using are not recognized by OpenLayers ? So maybe you'll need to download proj4js library and add the missing projection, by using something like that : http://spatialreference.org/ref/epsg/4283/proj4/ I've never tried it, let me know if it's ok. And do you want to convert 4283 to 4326, or to 4269 ? Gabriel Le 01/08/2012 13:42, Riaan Lombaard a ?crit : > > Hi, > > I need some transformation advice. > > Running this script in Firebug. > > " > > var point = new OpenLayers.Geometry.Point(128.627103622948, > -15.8249150838119); > var point_transformed = point.transform(new > OpenLayers.Projection("EPSG:4283"), new > OpenLayers.Projection("EPSG:4269")); > > console.log(point); > console.log(point_transformed) > > " > > What happens is the data I am getting is from `GDA94 (SRID 4283)` and > I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am > using ` http://vmap0.tiles.osgeo.org/wms/vmap0` > > But looking at the example it does not seem to convert anything, the > x,y stay's the same? > > What am I missing? > > Riaan > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Wed Aug 1 05:10:23 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Wed, 01 Aug 2012 08:10:23 -0400 Subject: [OpenLayers-Users] Transform Points Help In-Reply-To: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> Message-ID: <50191CAF.6050600@mapgears.com> Hi Riaan, In the console, if you inspect OpenLayers.Projections.transforms, you'll see which projection codes are natively supported in OpenLayers. If yours is not there, then you need to include the Proj4js library and add the ones you want : http://trac.osgeo.org/proj4js/wiki/UserGuide HTH, Alexandre On 12-08-01 07:42 AM, Riaan Lombaard wrote: > > Hi, > > I need some transformation advice. > > Running this script in Firebug. > > " > > var point = new OpenLayers.Geometry.Point(128.627103622948, > -15.8249150838119); > var point_transformed = point.transform(new > OpenLayers.Projection("EPSG:4283"), new > OpenLayers.Projection("EPSG:4269")); > > console.log(point); > console.log(point_transformed) > > " > > What happens is the data I am getting is from `GDA94 (SRID 4283)` and > I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am > using ` http://vmap0.tiles.osgeo.org/wms/vmap0` > > But looking at the example it does not seem to convert anything, the > x,y stay's the same? > > What am I missing? > > Riaan > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario.danelli at gmail.com Wed Aug 1 05:11:35 2012 From: mario.danelli at gmail.com (Mario Danelli) Date: Wed, 1 Aug 2012 12:11:35 +0000 (UTC) Subject: [OpenLayers-Users] Transform Points Help References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> Message-ID: Riaan Lombaard writes: > > > Hi, > ? > I need some transformation advice. > ? > Running this script in Firebug. > " > var point = new OpenLayers.Geometry.Point(128.627103622948, -15.8249150838119);var point_transformed = point.transform(new OpenLayers.Projection("EPSG:4283"), new OpenLayers.Projection("EPSG:4269"));console.log(point);console.log(point_transfo rmed) > " > ? > What happens is the data I am getting is from `GDA94 (SRID 4283)` and I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am using ` http://vmap0.tiles.osgeo.org/wms/vmap0` > ? > But looking at the example it does not seem to convert anything, the x,y stay's the same? > What am I missing? > ? > Riaan > > > _______________________________________________ > Users mailing list > Users at ... > http://lists.osgeo.org/mailman/listinfo/openlayers-users > Hi Rian, by my experience, with OpenLayers 2.11, the WGS84 projection is obtained with a code line similar to this: var wgs84Projection = new OpenLayers.Projection("EPSG:4326"); Hoping it will be useful Mario From jefferson.r.heard at gmail.com Wed Aug 1 05:33:54 2012 From: jefferson.r.heard at gmail.com (Jeff Heard) Date: Wed, 1 Aug 2012 08:33:54 -0400 Subject: [OpenLayers-Users] OL 2.12: OpenLayers.Layer.Vector only shows up at zoomed out resolutions Message-ID: I'm running the latest version of OpenLayers in conjunction with JQuery 1.7.2 and JQueryMobile 1.1.1, and my problem is this: I have a vector layer that will not show up except under extremely zoomed out conditions. I have another vector layer defined the same way that shows up fine. I can zoom out and all the features are exactly where they're supposed to be, but I get nothing from the Participants layer. Anyone got a clue? So I have a vector layer, which I merely instantiated like this: var participantsLayer = new OpenLayers.Layer.Vector("Participants"); I then added some features to it: iter(data, function(participant) { participants[participant.user.resource_uri] = participant; var f = participantsLayer.getFeatureBy('user', participant.user.resource_uri); // for each participant, update their position on the map if(f) { var pt = new OpenLayers.Geometry.Point( participant.where.coordinates[0], participant.where.coordinates[1] ).transform(gm, sm); f.geometry.x = pt.x; f.geometry.y = pt.y; } else { f = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point( participant.where.coordinates[0], participant.where.coordinates[1] ).transform(gm, sm), participant); f.style = { fill : true, fillColor : '#ff6666', strokeColor : '#ff6666', strokeWidth : 1, fillOpacity : 0.6, graphic : true, graphicName : 'cross', fontColor : '#000000', fontWeight : 'bold', fontFamily : 'Helvetica, Arial, sans-serif', fontSize : '9pt', pointRadius : 5, label : participant.user.username, labelAlign : 'l', labelXOffset : 7 }; f.attributes = participant; f.user = participant.user.resource_uri; participantsLayer.addFeatures([f]); } var display_name = participant.user.first_name ? (participant.user.first_name + ' ' + participant.user.last_name) : participant.user.username; var heartbeat_time = new Date(participant.last_heartbeat); var email_link = $("email"); var participant_name = $("
  • ") .append($("" + display_name + "").data('user', participant.user.resource_uri)) .append($("" + heartbeat_time.toTimeString().substring(0,5) + "")) .append(email_link); $("#participant_list").append(participant_name); }); participantsLayer.redraw(); And then added it to this map: var baseLayer = new OpenLayers.Layer.Google("Google Terrain", {type: google.maps.MapTypeId.TERRAIN, numZoomLevels: 20}); map = new OpenLayers.Map({ div: "map", theme : null, projection: sm, numZoomLevels: 18, controls: values(controls), layers: [baseLayer, annotationLayer, participantsLayer] }); newCenter = new OpenLayers.LonLat(data.center.coordinates[0], data.center.coordinates[1]); lastCenter = newCenter.clone(); map.maxExtent = baseLayer.maxExtent; map.setCenter(newCenter, data.zoom_level); annotationLayer.projection = sm; annotationLayer.maxExtent = map.maxExtent; participantsLayer.maxExtent = map.maxExtent; -------------- next part -------------- An HTML attachment was scrubbed... URL: From richardjnz at yahoo.com Wed Aug 1 06:26:33 2012 From: richardjnz at yahoo.com (Richard Jones) Date: Wed, 1 Aug 2012 14:26:33 +0100 (BST) Subject: [OpenLayers-Users] Displaying a text message In-Reply-To: Message-ID: <1343827593.25391.YahooMailClassic@web29702.mail.ird.yahoo.com> I would like to display a 2-line textual message in the *center* of the browser window. This would either be written across the map, or across the empty browser window (if I choose to make the map invisible) using a particular font and point/pixel size. Is there a simply way to do this? The only reference I can find to text is the "label" used on point features. I know that I can set a point in the exact center of the viewport and set the label text, but I can't see a way to have the text display with center justification which would be more aesthetically pleasing than starting at a particular X pixel position. It might be possible to set a pixel position if there was a way of measuring the horizontal pixel extent of a line of text, but I can't see a way of doing that. If point labels are the only way to display text, then does anyone have any ideas how this might be accomplished? From robhyx at gmail.com Wed Aug 1 06:30:42 2012 From: robhyx at gmail.com (Rob Hyx) Date: Wed, 1 Aug 2012 09:30:42 -0400 Subject: [OpenLayers-Users] Canvas renderer causing fill in style, map, to be ignored In-Reply-To: References: <50184104.6040402@mry4n.net> Message-ID: Okay, let me take back what I said last. Adding the additional renderers ['SVG,'VML,'Canvas'], does fix my problem, but now when I go to use the Canvas renderer it's not vectorLayer.renderer. Instead I get the SVG renderer. I see an array vectorLayer.renderers but that's just an array of Strings. I'm looking at the API and it is not obvious to me how you can pick your renderer of choice. It seems you must be able to do it otherwise why would you be able to specify more than one. Any ideas? On Tue, Jul 31, 2012 at 5:40 PM, Robert Hicks wrote: > Thanks Mike, > > So, I tried adding multiple renderers ['SVG,'VML,'Canvas'] but it fails just > the same. > > Is there another renderer I should try? > > How do you specify the renderer when the vectors are being drawn? Maybe it's > defaulting to Canvas for some reason even though it's last in the list. > > On Jul 31, 2012, at 4:33 PM, Mike Ryan wrote: > > I had to alter Canvas.js to fill my layer features with an image (aka > "hatching"), which is not yet supported. Hatching in general is not > supported. > > The fillColor worked for me in a Canvas renderer without hacking anything. > > I just pointed out that function to you, because it might help you track > down the problem. Maybe there's a problem with the Style object you created? > > If you're only having the fillColor problem with the features, just don't > use the Canvas renderer with them. You don't have to use the same renderer > for everything. > -m > > So, is there a bug in OpenLayers that you had to hack in a fix for, or is > this something that just wasn't supported yet? I need the canvas renderer to > 'draw' the map tiles to a canvas, but I don't need it for rendering the > features on the map. > > > HYX > http://hyxspace.com > -- HYX http://hyx-music.com From pedrocostaarma at sapo.pt Wed Aug 1 08:29:11 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 01 Aug 2012 16:29:11 +0100 Subject: [OpenLayers-Users] displaying attribute content in wfs Message-ID: <50194B47.4020407@sapo.pt> Hi guys, In my map i have a wfs layer that i want display content of one attribute (postgis table) by feature click. Can you help me the better choice to that? I see examples with wms... Thanks From adube at mapgears.com Wed Aug 1 11:35:58 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Wed, 01 Aug 2012 14:35:58 -0400 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <50194B47.4020407@sapo.pt> References: <50194B47.4020407@sapo.pt> Message-ID: <5019770E.3080505@mapgears.com> Hi Pedro, Using an OpenLayers.Control.Select control, it's just a matter of displaying the feature.attributes when a feature is clicked. See the following example, it should give you a good start : http://openlayers.org/dev/examples/select-feature-openpopup.html HTH, Alexandre On 12-08-01 11:29 AM, Pedro Costa wrote: > Hi guys, > > In my map i have a wfs layer that i want display content of one > attribute (postgis table) by feature click. > Can you help me the better choice to that? > > I see examples with wms... > > Thanks > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From p.scadden at gns.cri.nz Wed Aug 1 14:03:48 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 02 Aug 2012 09:03:48 +1200 Subject: [OpenLayers-Users] Displaying a text message In-Reply-To: <1343827593.25391.YahooMailClassic@web29702.mail.ird.yahoo.com> References: <1343827593.25391.YahooMailClassic@web29702.mail.ird.yahoo.com> Message-ID: <501999B4.4000400@gns.cri.nz> Simplist would be to put it in an openlayers popup and style the popup appropriately. 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 p.scadden at gns.cri.nz Wed Aug 1 14:16:12 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 02 Aug 2012 09:16:12 +1200 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <50194B47.4020407@sapo.pt> References: <50194B47.4020407@sapo.pt> Message-ID: <50199C9C.1050101@gns.cri.nz> > > In my map i have a wfs layer that i want display content of one > attribute (postgis table) by feature click. > Can you help me the better choice to that? An alternative approach is using WFSProtocol and DrawFeature control. Create a WFSProtocol object for your wfs layer then: ptSelCtrl = new OpenLayers.Control.DrawFeature(selectedLayer, OpenLayers.Handler.Point,{ handlerOptions: { citeCompliant: true } }); ptSelCtrl.events.register("featureadded", this, function (e) { // could use BBOX instead of DWITHIN for servers that dont support DWITHIN (eg arcgis 9.3) var pfilter = new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.DWITHIN, distance: 100, // you probably want to think about scale-independent distance method for this distanceUnits: "meters", value: e.feature.geometry }); wfsProtocol.read({ filter: pfilter, callback: processTheReturn, scope: strategy }); 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 chengwei02 at gmail.com Thu Aug 2 04:26:17 2012 From: chengwei02 at gmail.com (tiplip) Date: Thu, 2 Aug 2012 04:26:17 -0700 (PDT) Subject: [OpenLayers-Users] [bug?]My webapp driven by OpenLayers2.11 shows abnormally with IE9 in Win7 Message-ID: <1343906777796-4992674.post@n6.nabble.com> Hi, all, I have tested my webapp on chrome/FF/IE6/IE7/IE8, works very well, but is abnormal on IE9, its Product ID: 03553-918-5000002-85147. error http://osgeo-org.1560.n6.nabble.com/file/n4992674/error.jpg what makes me strange, however, is this webapp can works on anther PC with IE9, its Product ID: 03553-918-500002-85613. right http://osgeo-org.1560.n6.nabble.com/file/n4992674/right.jpg Is there any difference between these two same version IE9? PS: marker is rendered using GML in browser. thanks a lot. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/bug-My-webapp-driven-by-OpenLayers2-11-shows-abnormally-with-IE9-in-Win7-tp4992674.html Sent from the OpenLayers Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Thu Aug 2 04:44:46 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Thu, 02 Aug 2012 07:44:46 -0400 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <978565538.21509.1343858557942.JavaMail.seven@ap11.p0.fra.samsungsocialhub.net> References: <978565538.21509.1343858557942.JavaMail.seven@ap11.p0.fra.samsungsocialhub.net> Message-ID: <501A682E.20207@mapgears.com> Hi Pedro, Don't forget to include the list in your reply :) You can define an OpenLayers.Layer.Vector that has a OpenLayers.Protocol.WFS defined and pointing to your WFS service. See an example : http://openlayers.org/dev/examples/wfs-states.html Or, you could also use the OpenLayers.Control.GetFeature to only fetch vector features on click. See an example : http://openlayers.org/dev/examples/getfeature-wfs.html HTH, Alexandre On 12-08-01 06:02 PM, pedrocostaarma at sapo.pt wrote: > > Thank you Alexandre. > But how i do for openlayers show a attribute of a postgis table? > > > > Com os melhores cumprimentos, > Pedro Costa > Enviado do meu Android Galaxy > > > Alexandre Dub? escreveu: > > Hi Pedro, > > Using an OpenLayers.Control.Select control, it's just a matter of > displaying the feature.attributes when a feature is clicked. See the > following example, it should give you a good start : > > http://openlayers.org/dev/examples/select-feature-openpopup.html > > HTH, > > Alexandre > > > On 12-08-01 11:29 AM, Pedro Costa wrote: > > Hi guys, > > > > In my map i have a wfs layer that i want display content of one > > attribute (postgis table) by feature click. > > Can you help me the better choice to that? > > > > I see examples with wms... > > > > Thanks > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kuryleva at mail.ru Thu Aug 2 06:15:23 2012 From: kuryleva at mail.ru (ppk) Date: Thu, 2 Aug 2012 06:15:23 -0700 (PDT) Subject: [OpenLayers-Users] ArcGisCache jsonp mouse zoom in and out problem (openlayers 2.12) Message-ID: <1343913323897-4992693.post@n6.nabble.com> Hi! When am I doing the mouse wheel zooming or moving with the mouse - map jumps. Used the code from the example: arcgiscache_jsonp.html Tell me please what am I doing wrong? Link to my example: http://gis-lab.info/share/DR/sandbox/arcgis.html Thanks in advance. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcGisCache-jsonp-mouse-zoom-in-and-out-problem-openlayers-2-12-tp4992693.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From islanis at infomed.sld.cu Thu Aug 2 00:29:24 2012 From: islanis at infomed.sld.cu (J.Alejandro Martinez Linares) Date: Thu, 02 Aug 2012 09:29:24 +0200 Subject: [OpenLayers-Users] openlayers and charts Message-ID: <501A2C54.30306@infomed.sld.cu> Hi people i am trying get a popup with a barchart and finally i made it but i dont know how to customize de bars of my chart , for example i want to change the green color of the bars that comes by default, and i want to put a red border color of the longest bar and a blue border color of the smallest bar, but i dont know how to made it, help please i have not internet, this code is the code that actually a have to show the popup when i click the map, and show a popup with a statical data in a year in a form of chart, and it work, but i need customize the chart thanks for all. wmsFeatureInfo = new OpenLayers.Control.WMSGetFeatureInfo({ autoActivate : true, infoFormat : "application/vnd.ogc.gml", maxFeatures : 1, eventListeners : { "getfeatureinfo" : function(e) { var store = new Ext.data.JsonStore({ fields: ['mes', 'valor'], data: [ {mes: "Enero", valor: e.features[0].attributes.dni01 }, {mes: "Febrero", valor: e.features[0].attributes.dni02 }, {mes: "Marzo", valor: e.features[0].attributes.dni03 }, {mes: "Abril", valor: e.features[0].attributes.dni04 }, {mes: "Mayo", valor: e.features[0].attributes.dni05 }, {mes: "Junio", valor: e.features[0].attributes.dni06 }, {mes: "Julio", valor: e.features[0].attributes.dni07 }, {mes: "Agosto", valor: e.features[0].attributes.dni08 }, {mes: "Septiembre", valor: e.features[0].attributes.dni09 }, {mes: "Octubre", valor: e.features[0].attributes.dni10 }, {mes: "Noviembre", valor: e.features[0].attributes.dni11 }, {mes: "Diciembre", valor: e.features[0].attributes.dni12 } ] }); var items1 = []; var paneChar = new Ext.Panel({ title: 'Lon: '+e.features[0].attributes.lon+' Lat: '+e.features[0].attributes.lat, items: new Ext.chart.BarChart({ store: store, yField: 'mes', xField: 'valor', chartStyle: { border:{color:'#FF8080',size:2}, xAxis: { labelRotation: 45 }, //background:{color:'#F4710F'}, //padding:5, /*legend: { display: 'bottom', padding: 5, font: { family: 'Tahoma', size: 13 } },*/ dataTip: { padding: 5, border: { color: 0x99bbe8, size:1 }, background: { color: 0xDAE7F6, alpha: .4 }, font: { name: 'Tahoma', color: 0x15428B, size: 10, bold: true } }, majorTicks: {color: '#F4710F', length: 2,display:'inside'}, minorTicks: {color: '#F4710F', length: 2}, }/*, style: { image:'assets/ge/img/bar.gif', mode: 'stretch', color:0x99BBE8 }*/ }) }); paneChar.add(new Ext.form.Label({ text:"Latitud = "+e.features[0].attributes.lat })); paneChar.add(new Ext.form.Label({ text:"Longitud = "+e.features[0].attributes.lon })); new GeoExt.Popup({ title : "Potencial Solar", width : 260, height : 360, layout : "accordion", map : mapPanel, location : e.xy, items : paneChar } ).show(); } } }); -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ From snowsar at yahoo.fr Thu Aug 2 08:40:01 2012 From: snowsar at yahoo.fr (snowsar) Date: Thu, 02 Aug 2012 17:40:01 +0200 Subject: [OpenLayers-Users] Create a layer with multiple GPX source Message-ID: <501A9F51.3010903@yahoo.fr> Hello everyone, Currently, I have an application loading a GPX file into a layer : MyLayer = new OpenLayers.Layer.Vector("GPX", { protocol: new OpenLayers.Protocol.HTTP({ url: "my_remote_gpx_file.gpx", format: new OpenLayers.Format.GPX() }), strategies: [new OpenLayers.Strategy.Fixed()], styleMap : BuildStyleMap("#9A03FE"), projection : localProjection }); map.addLayer(MyLayer ); All is OK with this. I want now to be able to build a unique layer with several GPX files. What is the best way to do this ? Should I inheritate OpenLayers.Protocol.HTTP to permits string array in "url" and use internally OpenLayers.Protocol.HTTP for each one ? Thank you for your advices. Regards From markturek at yahoo.com Thu Aug 2 19:28:36 2012 From: markturek at yahoo.com (Mark Turek) Date: Thu, 2 Aug 2012 19:28:36 -0700 (PDT) Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeautre Message-ID: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> I am using 2.12 version. Here is the problem I have.? If I draw a polygon, selecting it with ModifyFeature works fine. If I serialize the layer features and then read them back in through deserialization ModifyFeature never selects anything and stops working. Serialization/Deserialization is done through OpenLayers.Format.GeoJSON. Any clue what is happening? -------------- next part -------------- An HTML attachment was scrubbed... URL: From electronicpanda at gmail.com Thu Aug 2 23:58:44 2012 From: electronicpanda at gmail.com (Sergeant_york) Date: Thu, 2 Aug 2012 23:58:44 -0700 (PDT) Subject: [OpenLayers-Users] More than 20 wms layers, performance issues, geowebcache concurrency In-Reply-To: References: <1343634029826-4991740.post@n6.nabble.com> Message-ID: <1343977124798-4992841.post@n6.nabble.com> Thanks for your answer, Well, yes it is a good idea to combine pictures in the proxy then return combined tiles. However, cost could be a bit much I guess. Still I will consider this option since the other options looks a bit problematic at current state. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/More-than-20-wms-layers-performance-issues-geowebcache-concurrency-tp4991740p4992841.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From electronicpanda at gmail.com Fri Aug 3 00:06:49 2012 From: electronicpanda at gmail.com (Sergeant_york) Date: Fri, 3 Aug 2012 00:06:49 -0700 (PDT) Subject: [OpenLayers-Users] More than 20 wms layers, performance issues, geowebcache concurrency In-Reply-To: <1343715902052-4992009.post@n6.nabble.com> References: <1343634029826-4991740.post@n6.nabble.com> <1343715902052-4992009.post@n6.nabble.com> Message-ID: <1343977609728-4992845.post@n6.nabble.com> buffer option is already at 0. But the other idea I think it is the nice one. If tile caching can be done at 512x512; then it means, tile size can be equal to screensize or more than 1/4 of screen size as well =) So maybe, I can use tiled layer but only maximum of 4 tile for each layer will be loaded. I think I can build something on this idea. Unfortunately I don't have so much rights to change the serverside structure... -- View this message in context: http://osgeo-org.1560.n6.nabble.com/More-than-20-wms-layers-performance-issues-geowebcache-concurrency-tp4991740p4992845.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From electronicpanda at gmail.com Fri Aug 3 00:20:55 2012 From: electronicpanda at gmail.com (Sergeant_york) Date: Fri, 3 Aug 2012 00:20:55 -0700 (PDT) Subject: [OpenLayers-Users] More than 20 wms layers, performance issues, geowebcache concurrency In-Reply-To: References: <1343634029826-4991740.post@n6.nabble.com> Message-ID: <1343978455270-4992850.post@n6.nabble.com> As Phil Scadden stated, grouping the layers at serverside is a problem at clientside since I have to be able to toggle on/off subgroups at client side. For example if I grouped a,b,c together to abc layer, then if I close "c" layer in the user interface what kind of process should be done? On the other hand I was thinking, these days hard disk spaces are huge so I could group layers like a,b,c,ab,ac,bc,abc therefore when I merge new params in the openlayers, requests will always find an answer from geowebcache. The problem is group number count is (2^n)-1 where "n" is the number of subgroups. Thank you for your answer. I was thinking maybe there is another option to use which is already in openlayers to solve the problem or to increase the performance of more than n layers in same map application(which was not written in api documentation). Still all the answers inspired me so much :) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/More-than-20-wms-layers-performance-issues-geowebcache-concurrency-tp4991740p4992850.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From electronicpanda at gmail.com Fri Aug 3 00:30:41 2012 From: electronicpanda at gmail.com (Sergeant_york) Date: Fri, 3 Aug 2012 00:30:41 -0700 (PDT) Subject: [OpenLayers-Users] Set css in % not in PX In-Reply-To: <1341823820948-4986866.post@n6.nabble.com> References: <1341823820948-4986866.post@n6.nabble.com> Message-ID: <1343979041299-4992855.post@n6.nabble.com> Change the html height, For example: html{ height: 100%; } -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Set-css-in-not-in-PX-tp4986866p4992855.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From yasemin.yilmaz.embedded at gmail.com Fri Aug 3 02:27:20 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Fri, 3 Aug 2012 12:27:20 +0300 Subject: [OpenLayers-Users] Is any convertion required between GPS coordinate and Spherical Mercator projection? Message-ID: Hi all, I am new to OpenLayers and I'm confused about GPS coordinate and Spherical Mercator projection. OpenLayers says "The projection used by Google Maps is the spherical mercator." at link http://docs.openlayers.org/library/spherical_mercator.html. The documentation of Google Maps says "Google Maps uses the formul? for the spherical Mercator, but the coordinates of features on Google Maps are the GPS coordinates based on the WGS 84 datum.". I have GPS coordinate data in pure decimal GPS coordinate format for example 25.124167 in order to place the feature on the map. And I will use Google Maps layer with OpenLayers. Is any convertion required? Does OpenLayers implement in the background? Can you please explain this subjects? Thanks a lot for your helps and clarifications, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri Aug 3 05:13:27 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Fri, 03 Aug 2012 08:13:27 -0400 Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeautre In-Reply-To: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> References: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> Message-ID: <501BC067.70106@mapgears.com> Hi Mark, Could you provide a minimized test case showing the problem then ? Pasting some code would be nice but sharing a live demo would be even better. Here's a good "how to create a minimized test case" : http://docs.openlayers.org/help/minimize.html Regards, Alexandre On 12-08-02 10:28 PM, Mark Turek wrote: > I am using 2.12 version. Here is the problem I have. > If I draw a polygon, selecting it with ModifyFeature works fine. If I > serialize the layer features and then read them back in through > deserialization ModifyFeature never selects anything and stops working. > Serialization/Deserialization is done through OpenLayers.Format.GeoJSON. > > Any clue what is happening? > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at greeninfo.org Fri Aug 3 06:45:34 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Fri, 03 Aug 2012 06:45:34 -0700 Subject: [OpenLayers-Users] Is any convertion required between GPS coordinate and Spherical Mercator projection? In-Reply-To: References: Message-ID: <501BD5FE.3070106@greeninfo.org> > I have GPS coordinate data in pure decimal GPS coordinate format for > example 25.124167 in order to place the feature on the map. And I will > use Google Maps layer with OpenLayers. Is any convertion required? Does > OpenLayers implement in the background? You will do coordinate conversion, yes. The map will use the Web Mercator SRS -- to place a marker using WGS84, you would need to convert: var SRS_GOOGLE = new OpenLayers.Projection("EPSG:900913"); var SRS_LONLAT = new OpenLayers.Projection("EPSG:4326"); var center = new OpenLayers.LonLat(-85.5678, 45.12345); center.transform(SRS_LONLAT,SRS_GOOGLE); map.setCenter(center, 10); var box = new OpenLayers.Bounds(-122,43,-121,44); box.transform(SRS_LONLAT,SRS_GOOGLE); map.zoomToBounds(box); If you forget to do this transform, then your coordinates will be very close to the 0,0 mark at the equator & the Greenwich meridian (-85 and 45, in meters from 0,0). That's a great debugging tip: if your marker is appearing at "practically 0,0" you probably are using "very tiny coordinates" for your SRS. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From markturek at yahoo.com Fri Aug 3 08:35:59 2012 From: markturek at yahoo.com (Mark Turek) Date: Fri, 3 Aug 2012 08:35:59 -0700 (PDT) Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeature Message-ID: <1344008159.10456.YahooMailNeo@web114015.mail.gq1.yahoo.com> Hi Alexandre! Thank You for your answer. Attached you will find an example program.? Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri Aug 3 08:38:08 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Fri, 03 Aug 2012 11:38:08 -0400 Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeautre In-Reply-To: <1344007513.74113.YahooMailNeo@web114013.mail.gq1.yahoo.com> References: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> <501BC067.70106@mapgears.com> <1344007513.74113.YahooMailNeo@web114013.mail.gq1.yahoo.com> Message-ID: <501BF060.8000608@mapgears.com> Hi Mark, Don't forget to include the list in CC so that others can see the progression of your issue. Regards, Alexandre On 12-08-03 11:25 AM, Mark Turek wrote: > Hi Alexandre! > > Thank you for you answer. Attached you will find a little example program. > > Mark > > ------------------------------------------------------------------------ > *From:* Alexandre Dub? > *To:* openlayers-users at lists.osgeo.org > *Sent:* Friday, August 3, 2012 7:13 AM > *Subject:* Re: [OpenLayers-Users] GeoJson serialize and ModifyFeautre > > Hi Mark, > > Could you provide a minimized test case showing the problem then ? > Pasting some code would be nice but sharing a live demo would be even > better. > > Here's a good "how to create a minimized test case" : > http://docs.openlayers.org/help/minimize.html > > Regards, > > Alexandre > > On 12-08-02 10:28 PM, Mark Turek wrote: >> I am using 2.12 version. Here is the problem I have. >> If I draw a polygon, selecting it with ModifyFeature works fine. If I >> serialize the layer features and then read them back in through >> deserialization ModifyFeature never selects anything and stops working. >> Serialization/Deserialization is done through OpenLayers.Format.GeoJSON. >> >> Any clue what is happening? >> >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri Aug 3 08:46:57 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Fri, 03 Aug 2012 11:46:57 -0400 Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeautre In-Reply-To: <501BF060.8000608@mapgears.com> References: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> <501BC067.70106@mapgears.com> <1344007513.74113.YahooMailNeo@web114013.mail.gq1.yahoo.com> <501BF060.8000608@mapgears.com> Message-ID: <501BF271.4020203@mapgears.com> Hey Mark, I got something. Instead of setting the vector layer features property directly, use the addFeatures() method to add new features : //vectors.features = geojson.read(serialized); vectors.addFeatures(geojson.read(serialized)); If you want to remove all current features first, call : vectors.removeAllFeatures(); HTH, Alexandre On 12-08-03 11:38 AM, Alexandre Dub? wrote: > Hi Mark, > > Don't forget to include the list in CC so that others can see the > progression of your issue. > > Regards, > > Alexandre > > On 12-08-03 11:25 AM, Mark Turek wrote: >> Hi Alexandre! >> >> Thank you for you answer. Attached you will find a little example >> program. >> >> Mark >> >> ------------------------------------------------------------------------ >> *From:* Alexandre Dub? >> *To:* openlayers-users at lists.osgeo.org >> *Sent:* Friday, August 3, 2012 7:13 AM >> *Subject:* Re: [OpenLayers-Users] GeoJson serialize and ModifyFeautre >> >> Hi Mark, >> >> Could you provide a minimized test case showing the problem then ? >> Pasting some code would be nice but sharing a live demo would be even >> better. >> >> Here's a good "how to create a minimized test case" : >> http://docs.openlayers.org/help/minimize.html >> >> Regards, >> >> Alexandre >> >> On 12-08-02 10:28 PM, Mark Turek wrote: >>> I am using 2.12 version. Here is the problem I have. >>> If I draw a polygon, selecting it with ModifyFeature works fine. If >>> I serialize the layer features and then read them back in through >>> deserialization ModifyFeature never selects anything and stops working. >>> Serialization/Deserialization is done through OpenLayers.Format.GeoJSON. >>> >>> Any clue what is happening? >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> -- >> Alexandre Dub? >> Mapgears >> www.mapgears.com >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From markturek at yahoo.com Fri Aug 3 09:04:57 2012 From: markturek at yahoo.com (Mark Turek) Date: Fri, 3 Aug 2012 09:04:57 -0700 (PDT) Subject: [OpenLayers-Users] GeoJson serialize and ModifyFeautre In-Reply-To: <501BF271.4020203@mapgears.com> References: <1343960916.12283.YahooMailNeo@web114001.mail.gq1.yahoo.com> <501BC067.70106@mapgears.com> <1344007513.74113.YahooMailNeo@web114013.mail.gq1.yahoo.com> <501BF060.8000608@mapgears.com> <501BF271.4020203@mapgears.com> Message-ID: <1344009897.64085.YahooMailNeo@web114007.mail.gq1.yahoo.com> Hey Alexandre! Thanks a lot. So easy now! Mark ________________________________ From: Alexandre Dub? To: Mark Turek Cc: openlayers-users at lists.osgeo.org Sent: Friday, August 3, 2012 10:46 AM Subject: Re: [OpenLayers-Users] GeoJson serialize and ModifyFeautre Hey Mark, ? I got something.? Instead of setting the vector layer features property directly, use the addFeatures() method to add new features : ??? //vectors.features = geojson.read(serialized); ??? vectors.addFeatures(geojson.read(serialized)); ? If you want to remove all current features first, call : ??? vectors.removeAllFeatures(); HTH, Alexandre On 12-08-03 11:38 AM, Alexandre Dub? wrote: Hi Mark, > >? Don't forget to include the list in CC so that others can see the progression of your issue. > >Regards, > >Alexandre > >On 12-08-03 11:25 AM, Mark Turek wrote: > >Hi Alexandre! >> >> >>Thank you for you answer. Attached you will find a little example program. >> >> >>Mark >> >> >> >>________________________________ >> From: Alexandre Dub? >>To: openlayers-users at lists.osgeo.org >>Sent: Friday, August 3, 2012 7:13 AM >>Subject: Re: [OpenLayers-Users] GeoJson serialize and ModifyFeautre >> >> >>Hi Mark, >> >>? Could you provide a minimized test case showing the problem then ?? Pasting some code would be nice but sharing a live demo would be even better. >> >>? Here's a good "how to create a minimized test case" : http://docs.openlayers.org/help/minimize.html >> >>Regards, >> >>Alexandre >> >>On 12-08-02 10:28 PM, Mark Turek wrote: >> >>I am using 2.12 version. Here is the problem I have.? >>>If I draw a polygon, selecting it with ModifyFeature works fine. If I serialize the layer features and then read them back in through deserialization ModifyFeature never selects anything and stops working. >>>Serialization/Deserialization is done through OpenLayers.Format.GeoJSON. >>> >>> >>>Any clue what is happening? >>> >>> >>>_______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >>-- Alexandre Dub? Mapgears www.mapgears.com >>_______________________________________________ >>Users mailing list >>Users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> > > >-- Alexandre Dub? Mapgears www.mapgears.com > > >_______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Fri Aug 3 10:16:12 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Fri, 3 Aug 2012 10:16:12 -0700 Subject: [OpenLayers-Users] Unable to understand the Initialize code? Message-ID: Hi Guys, i am trying to understand the initialize code in the link . It is encapsulated in the OpenLayers.Click command, OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { link }); I am not able to understand what exactly the initialization code is doing and what 'this' implies? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From shr3k at typo3-hosting.com Fri Aug 3 12:39:32 2012 From: shr3k at typo3-hosting.com (Martin Kokes) Date: Fri, 3 Aug 2012 21:39:32 +0200 Subject: [OpenLayers-Users] WMTS strange output Message-ID: Hello OL gurus, I'm really helpless. Can anyone try this WMTS layer (derived from http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx?service=WMTS&request=GetCapabilities) over Google Sat/OSM layer and advice me, if that shift is my fault or a service fault? new OpenLayers.Layer.WMTS({ name: 'Leteck? sn?mky ??ZK', url: 'http://geoportal-orto.cuzk.cz/WMTS_ORTOFOTO/service.svc/get', layer: 'orto', style: 'default', matrixSet: 'openlayerssphericalmercator:epsg:900913', matrixIds: [{ identifier: '0', scaleDenominator: 7315200 }, { identifier: '1', scaleDenominator: 3657600 }, { identifier: '2', scaleDenominator: 1828800 }, { identifier: '3', scaleDenominator: 914400 }, { identifier: '4', scaleDenominator: 457200 }, { identifier: '5', scaleDenominator: 228600 }, { identifier: '6', scaleDenominator: 114300 }, { identifier: '7', scaleDenominator: 57150 }, { identifier: '8', scaleDenominator: 28575 }, { identifier: '9', scaleDenominator: 14287.5 }, { identifier: '10', scaleDenominator: 7143.75 }, { identifier: '11', scaleDenominator: 3571.875 }, { identifier: '12', scaleDenominator: 1785.9375 }, { identifier: '13', scaleDenominator: 892.96875 }, { identifier: '14', scaleDenominator: 446.484375 }], tileOrigin: new OpenLayers.LonLat(1292959.109670989900, 6709371.698800910300), tileFullExtent: new OpenLayers.Bounds(1292959.109670989900, 6185018.162800910000, 1817312.645670990000, 6709371.698800910300), format: 'image/jpeg' }) Thank you in advance, I'm Martin From islanis at infomed.sld.cu Sat Aug 4 06:30:41 2012 From: islanis at infomed.sld.cu (islanis) Date: Sat, 4 Aug 2012 15:30:41 +0200 Subject: [OpenLayers-Users] GIS methodology References: Message-ID: <4EA658BFFF8E424ABE229D7046F6A2B0@home5e8474fd5f> Hi everibody, exist some methology to develop a GIS application , like RUP, CMMI or other, because i need to knowit and understand it to develop an application that involve geoserver,postgres,extJs,GeoExt and postgis and RUP or CMMI but they does not adapt theirself to GIS well, i need help, thanks for all. -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From remiglobal at gmail.com Sun Aug 5 03:12:23 2012 From: remiglobal at gmail.com (remi) Date: Sun, 5 Aug 2012 18:12:23 +0800 Subject: [OpenLayers-Users] browserNotSupported error upon testing of rotated label on feature Message-ID: Hi, I am testing the example for rotating the label of a feature by certain angle. the example is based on the work by benjamin & tachun in which can be found on this website: http://benjamin.preisig.at/rotating-labels-in-openlayers/#comment-43 However, i am encountering an error. The error browserNotSupported pops up before the map is loaded and the feature is not added at all. My test sample can be found at this address: http://ilhamkahfi.com/research/rotated-label/ Hope that somebody can show me some pointer. thanks remi -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Sun Aug 5 04:21:19 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 5 Aug 2012 12:21:19 +0100 Subject: [OpenLayers-Users] browserNotSupported error upon testing ofrotated label on feature In-Reply-To: Message-ID: <3FA8B6784A04406AA890101B5BE288A6@DELLM4500> Remi, On viewing the source, there's the following line: renderers: ["CustomSVG", "VML"] //VML only for IE <= 8, labels are not rotated I have tried your link in IE 8, Chrome and Firefox. IE8 works (you don't get the message) as it uses VML. There others don't as "CustomSVG", I guess, is not available to your installation of OpenLayers. When you open the first link, it says, "Create a CustomSVG.js or modify the existing SVG.js and add the following lines to the Method drawText". I use rotated text with SVG and have used this solution successfully by editing svg.js. Regards, Donald -----Original Message----- From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of remi Sent: 05 August 2012 11:12 To: openlayers-users at lists.osgeo.org Subject: [OpenLayers-Users] browserNotSupported error upon testing ofrotated label on feature Hi, I am testing the example for rotating the label of a feature by certain angle. the example is based on the work by benjamin & tachun in which can be found on this website: http://benjamin.preisig.at/rotating-labels-in-openlayers/#comment-43 However, i am encountering an error. The error browserNotSupported pops up before the map is loaded and the feature is not added at all. My test sample can be found at this address: http://ilhamkahfi.com/research/rotated-label/ Hope that somebody can show me some pointer. thanks remi From p.scadden at gns.cri.nz Sun Aug 5 15:12:14 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 06 Aug 2012 10:12:14 +1200 Subject: [OpenLayers-Users] Unable to understand the Initialize code? In-Reply-To: References: Message-ID: <501EEFBE.7010909@gns.cri.nz> > i am trying to understand the initialize code in the link > . > > It is encapsulated in the OpenLayers.Click command, > > OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { link > }); > > I am not able to understand what exactly the initialization code is > doing and what 'this' implies? First, you dont need to understand this to use it. You would work with this in openlayers by manipulating openlayer.control properties. This is code for creating a new descendent of an openlayers control. The kind that live in openlayers/lib/control. If you havent worked with OO languages, this probably isnt the best place to start. Anyway, the basics of it are to create a new descend of the openlayer.control class. when your code does a myvar = new Openlayers.control.click, then the initialise code is called. "this" is the way you refer to owner of the function - the specific instance of the class. What the code does is: - combines the various options into the handleroptions property. - call the prototype (Openlayers.control) initialize method - set the handler property of the handler to be a new instance of the openlayers click handler control, using the handleroption property. A javascript language reference text would be a good place to go. The openlayers list isnt really a place to learn javascript. Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Mon Aug 6 02:33:29 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Mon, 06 Aug 2012 10:33:29 +0100 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <5019770E.3080505@mapgears.com> References: <50194B47.4020407@sapo.pt> <5019770E.3080505@mapgears.com> Message-ID: <501F8F69.3090203@sapo.pt> Guys, Thank you for your help but maybe I have not properly explained. I really want add a popup like this example[1] but what I want it to appear are attributes not like area or length but text attributes like name saved on my postgis database. So my question is how i do for openlayer show this type of attributes that are already draw and stored on my database. Thanks [1] http://openlayers.org/dev/examples/select-feature-openpopup.html Em 01-08-2012 19:35, Alexandre Dub? escreveu: > Hi Pedro, > > Using an OpenLayers.Control.Select control, it's just a matter of > displaying the feature.attributes when a feature is clicked. See the > following example, it should give you a good start : > > http://openlayers.org/dev/examples/select-feature-openpopup.html > > HTH, > > Alexandre > > > On 12-08-01 11:29 AM, Pedro Costa wrote: >> Hi guys, >> >> In my map i have a wfs layer that i want display content of one >> attribute (postgis table) by feature click. >> Can you help me the better choice to that? >> >> I see examples with wms... >> >> Thanks >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > From gamejihou at hotmail.com Mon Aug 6 02:38:39 2012 From: gamejihou at hotmail.com (Gery .) Date: Mon, 6 Aug 2012 09:38:39 +0000 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <501F8F69.3090203@sapo.pt> References: <50194B47.4020407@sapo.pt> <5019770E.3080505@mapgears.com>,<501F8F69.3090203@sapo.pt> Message-ID: Hola Pedro, I'm trying to get that too, as far I understand it has to do with featureserver (www.featureserver.org/demo.html) and write the output to your PG database. I've read that GeoAlchemy will be a better way to do that because the ORM but I'm still in my way to understand the "why?" Check the mapfish demo (demo.mapfish.org/mapfishsample/2.2/), perhaps you can find something in the SVN that may help you. Cheers, Gery __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. > Date: Mon, 6 Aug 2012 10:33:29 +0100 > From: pedrocostaarma at sapo.pt > To: adube at mapgears.com; openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] displaying attribute content in wfs > > Guys, > > Thank you for your help but maybe I have not properly explained. > I really want add a popup like this example[1] but what I want it to > appear are attributes not like area or length but text attributes like > name saved on my postgis database. > So my question is how i do for openlayer show this type of attributes > that are already draw and stored on my database. > > Thanks > > > > [1] http://openlayers.org/dev/examples/select-feature-openpopup.html > > > > > Em 01-08-2012 19:35, Alexandre Dub? escreveu: > > Hi Pedro, > > > > Using an OpenLayers.Control.Select control, it's just a matter of > > displaying the feature.attributes when a feature is clicked. See the > > following example, it should give you a good start : > > > > http://openlayers.org/dev/examples/select-feature-openpopup.html > > > > HTH, > > > > Alexandre > > > > > > On 12-08-01 11:29 AM, Pedro Costa wrote: > >> Hi guys, > >> > >> In my map i have a wfs layer that i want display content of one > >> attribute (postgis table) by feature click. > >> Can you help me the better choice to that? > >> > >> I see examples with wms... > >> > >> Thanks > >> _______________________________________________ > >> Users mailing list > >> Users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richardjnz at yahoo.com Mon Aug 6 04:57:53 2012 From: richardjnz at yahoo.com (Richard Jones) Date: Mon, 6 Aug 2012 12:57:53 +0100 (BST) Subject: [OpenLayers-Users] Popup to fill viewport In-Reply-To: Message-ID: <1344254273.93794.YahooMailClassic@web29704.mail.ird.yahoo.com> I need to create a OpenLayers.Popup which fills the whole viewport (so that I can covering the map temporarily). I discovered by accident that passing null as the lonlat position parameter of the constructor makes the popup top-left positioned at pixel 0,0 of the viewport. So the constructor below creates a popup which covers the whole viewport - exactly what I want: var popup = new OpenLayers.Popup(null, null,?map.getSize(), ?"

    My message text

    ",? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? false,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? null);map.addPopup(popup); and when the window gets resized I just have to call popup.setSize(map.getSize()); which makes it cover the whole of the new viewport area. But passing null as the lonlat parameter is not mentioned in the documentation, so is this behaviour by design and I can safely use it, or is it just an unexpected behaviour that is unsafe to use? I would have expected the constructor to fail if it was passed an unsupported argument type. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mc.prins at gmail.com Mon Aug 6 05:46:40 2012 From: mc.prins at gmail.com (Mark Prins) Date: Mon, 6 Aug 2012 14:46:40 +0200 Subject: [OpenLayers-Users] Accessing an Offline Tile Store In-Reply-To: <500DB9F4.1080901@gns.cri.nz> References: <5008E73F.8010508@psychogeeks.com> <1343055081.93975.YahooMailNeo@web110813.mail.gq1.yahoo.com> <500DB9F4.1080901@gns.cri.nz> Message-ID: take a look at: http://stackoverflow.com/questions/1195378/mapping-widget-for-qt it mentions Marble. QMapControl [1] will probably do what you need. [1] http://sourceforge.net/projects/qmapcontrol -- 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 adube at mapgears.com Mon Aug 6 05:52:01 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Mon, 06 Aug 2012 08:52:01 -0400 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <501F8F69.3090203@sapo.pt> References: <50194B47.4020407@sapo.pt> <5019770E.3080505@mapgears.com> <501F8F69.3090203@sapo.pt> Message-ID: <501FBDF1.50307@mapgears.com> Pedro, Take a look at this example[1]. In your browser console, look at the map.layers[1].features[0].attributes property, which get automatically populated with key/values of attributes from your database. In order to achieve that with your wfs layer, you need to set up a vector layer using the WFS protocol, as the example demonstrates. Then, you can move on to the selection and browse the attributes and display them as you want. Here's an old demo that features all the above and even more [2]. Look a the main.js [3] file, search for the onFeatureSelect method to see how it works. Please note that the demo uses the cluster strategy. HTH, Alexandre [1] http://openlayers.org/dev/examples/wfs-states.html [2] http://dev4.mapgears.com/ebdata/demo-pim/ [3] http://dev4.mapgears.com/ebdata/demo-pim/main.js On 12-08-06 05:33 AM, Pedro Costa wrote: > Guys, > > Thank you for your help but maybe I have not properly explained. > I really want add a popup like this example[1] but what I want it to > appear are attributes not like area or length but text attributes like > name saved on my postgis database. > So my question is how i do for openlayer show this type of attributes > that are already draw and stored on my database. > > Thanks > > > > [1] http://openlayers.org/dev/examples/select-feature-openpopup.html > > > > > Em 01-08-2012 19:35, Alexandre Dub? escreveu: >> Hi Pedro, >> >> Using an OpenLayers.Control.Select control, it's just a matter of >> displaying the feature.attributes when a feature is clicked. See the >> following example, it should give you a good start : >> >> http://openlayers.org/dev/examples/select-feature-openpopup.html >> >> HTH, >> >> Alexandre >> >> >> On 12-08-01 11:29 AM, Pedro Costa wrote: >>> Hi guys, >>> >>> In my map i have a wfs layer that i want display content of one >>> attribute (postgis table) by feature click. >>> Can you help me the better choice to that? >>> >>> I see examples with wms... >>> >>> Thanks >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > -- Alexandre Dub? Mapgears www.mapgears.com From pedrocostaarma at sapo.pt Mon Aug 6 09:49:57 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Mon, 06 Aug 2012 17:49:57 +0100 Subject: [OpenLayers-Users] displaying attribute content in wfs In-Reply-To: <501FBDF1.50307@mapgears.com> References: <50194B47.4020407@sapo.pt> <5019770E.3080505@mapgears.com> <501F8F69.3090203@sapo.pt> <501FBDF1.50307@mapgears.com> Message-ID: <501FF5B5.4060008@sapo.pt> Hi Alexandre, Thank you for your great help...Now I understand....With your example i finally got... Pedro Em 06-08-2012 13:52, Alexandre Dub? escreveu: > Pedro, > > Take a look at this example[1]. In your browser console, look at > the map.layers[1].features[0].attributes property, which get > automatically populated with key/values of attributes from your > database. In order to achieve that with your wfs layer, you need to > set up a vector layer using the WFS protocol, as the example > demonstrates. > > Then, you can move on to the selection and browse the attributes and > display them as you want. > > Here's an old demo that features all the above and even more [2]. > Look a the main.js [3] file, search for the onFeatureSelect method to > see how it works. Please note that the demo uses the cluster strategy. > > HTH, > > Alexandre > > > [1] http://openlayers.org/dev/examples/wfs-states.html > [2] http://dev4.mapgears.com/ebdata/demo-pim/ > [3] http://dev4.mapgears.com/ebdata/demo-pim/main.js > > > On 12-08-06 05:33 AM, Pedro Costa wrote: >> Guys, >> >> Thank you for your help but maybe I have not properly explained. >> I really want add a popup like this example[1] but what I want it to >> appear are attributes not like area or length but text attributes >> like name saved on my postgis database. >> So my question is how i do for openlayer show this type of attributes >> that are already draw and stored on my database. >> >> Thanks >> >> >> >> [1] http://openlayers.org/dev/examples/select-feature-openpopup.html >> >> >> >> >> Em 01-08-2012 19:35, Alexandre Dub? escreveu: >>> Hi Pedro, >>> >>> Using an OpenLayers.Control.Select control, it's just a matter of >>> displaying the feature.attributes when a feature is clicked. See the >>> following example, it should give you a good start : >>> >>> http://openlayers.org/dev/examples/select-feature-openpopup.html >>> >>> HTH, >>> >>> Alexandre >>> >>> >>> On 12-08-01 11:29 AM, Pedro Costa wrote: >>>> Hi guys, >>>> >>>> In my map i have a wfs layer that i want display content of one >>>> attribute (postgis table) by feature click. >>>> Can you help me the better choice to that? >>>> >>>> I see examples with wms... >>>> >>>> Thanks >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >>> >> > > From xkadidas at gmail.com Mon Aug 6 10:42:00 2012 From: xkadidas at gmail.com (adidas) Date: Mon, 06 Aug 2012 20:42:00 +0300 Subject: [OpenLayers-Users] Save feature Message-ID: <502001E8.3070108@gmail.com> Hello! This example ( http://openlayers.org/dev/examples/drag-feature.html ) shows how to draw a feature on the map. My question is: how to keep the drawn feature in the database? Thanks! From adube at mapgears.com Mon Aug 6 11:50:36 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Mon, 06 Aug 2012 14:50:36 -0400 Subject: [OpenLayers-Users] Save feature In-Reply-To: <502001E8.3070108@gmail.com> References: <502001E8.3070108@gmail.com> Message-ID: <502011FC.4080503@mapgears.com> Hi, Here's an example [1] that shows how to setup a WFS-T protocol with a vector layer and some editing tools. It should give you a good idea about what's required on client-side. Also, you'll need a server to manage your transactions to your database. If you currently don't have any, I'd propose the one I usually use : TinyOWS. It's light, easy to setup and connects easily to a PostGIS data source. Follow the installation instructions [2] and try installing the demo as well (sudo make install-demo). The download url in the doc is invalid. The good one is [3]. This "how to" [3] should help a lot, too. HTH, Alexandre [1] http://openlayers.org/dev/examples/wfs-protocol-transactions.html [2] http://mapserver.org/trunk/tinyows/serverinstallation.html [3] http://tinyows.org/release/tinyows-1.0.0.tar.bz2 [4] http://mapserver.org/trunk/tinyows/openlayershowtobasic.html On 12-08-06 01:42 PM, adidas wrote: > Hello! This example ( > http://openlayers.org/dev/examples/drag-feature.html ) shows how to > draw a feature on the map. My question is: how to keep the drawn > feature in the database? > Thanks! > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From xkadidas at gmail.com Mon Aug 6 12:58:48 2012 From: xkadidas at gmail.com (adidas) Date: Mon, 06 Aug 2012 22:58:48 +0300 Subject: [OpenLayers-Users] Save feature In-Reply-To: <502011FC.4080503@mapgears.com> References: <502001E8.3070108@gmail.com> <502011FC.4080503@mapgears.com> Message-ID: <502021F8.7010108@gmail.com> Thank you for your reply. Is it possible to call the function, after I drew the feature (and this function will getthe coordinates of the drawn feature)? 06.08.2012 21:50, Alexandre Dub? ?????: > Hi, > > Here's an example [1] that shows how to setup a WFS-T protocol with a > vector layer and some editing tools. It should give you a good idea > about what's required on client-side. > > Also, you'll need a server to manage your transactions to your > database. If you currently don't have any, I'd propose the one I > usually use : TinyOWS. It's light, easy to setup and connects easily > to a PostGIS data source. Follow the installation instructions [2] and > try installing the demo as well (sudo make install-demo). > > The download url in the doc is invalid. The good one is [3]. > > This "how to" [3] should help a lot, too. > > HTH, > > Alexandre > > [1] http://openlayers.org/dev/examples/wfs-protocol-transactions.html > [2] http://mapserver.org/trunk/tinyows/serverinstallation.html > [3] http://tinyows.org/release/tinyows-1.0.0.tar.bz2 > [4] http://mapserver.org/trunk/tinyows/openlayershowtobasic.html > > > On 12-08-06 01:42 PM, adidas wrote: >> Hello! This example ( >> http://openlayers.org/dev/examples/drag-feature.html ) shows how to >> draw a feature on the map. My question is: how to keep the drawn >> feature in the database? >> Thanks! >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > From adube at mapgears.com Mon Aug 6 13:26:40 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 06 Aug 2012 16:26:40 -0400 Subject: [OpenLayers-Users] Save feature In-Reply-To: <502021F8.7010108@gmail.com> References: <502001E8.3070108@gmail.com> <502011FC.4080503@mapgears.com> <502021F8.7010108@gmail.com> Message-ID: <50202880.3090705@mapgears.com> Hi, Yes, it is. Let's say to use an OpenLayers.Control.DrawFeature control to draw and add new features on the map, you could register an 'featureadded' on this control and commit accordingly. HTH, Alexandre On 12-08-06 03:58 PM, adidas wrote: > Thank you for your reply. > Is it possible to call the function, after I drew the feature (and > this function will getthe coordinates of the drawn feature)? > 06.08.2012 21:50, Alexandre Dub? ?????: >> Hi, >> >> Here's an example [1] that shows how to setup a WFS-T protocol with a >> vector layer and some editing tools. It should give you a good idea >> about what's required on client-side. >> >> Also, you'll need a server to manage your transactions to your >> database. If you currently don't have any, I'd propose the one I >> usually use : TinyOWS. It's light, easy to setup and connects easily >> to a PostGIS data source. Follow the installation instructions [2] >> and try installing the demo as well (sudo make install-demo). >> >> The download url in the doc is invalid. The good one is [3]. >> >> This "how to" [3] should help a lot, too. >> >> HTH, >> >> Alexandre >> >> [1] http://openlayers.org/dev/examples/wfs-protocol-transactions.html >> [2] http://mapserver.org/trunk/tinyows/serverinstallation.html >> [3] http://tinyows.org/release/tinyows-1.0.0.tar.bz2 >> [4] http://mapserver.org/trunk/tinyows/openlayershowtobasic.html >> >> >> On 12-08-06 01:42 PM, adidas wrote: >>> Hello! This example ( >>> http://openlayers.org/dev/examples/drag-feature.html ) shows how to >>> draw a feature on the map. My question is: how to keep the drawn >>> feature in the database? >>> Thanks! >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From robhyx at gmail.com Mon Aug 6 16:01:29 2012 From: robhyx at gmail.com (Robert Hicks) Date: Mon, 6 Aug 2012 19:01:29 -0400 Subject: [OpenLayers-Users] Canvas renderer causing fill in style, map, to be ignored In-Reply-To: <50201A8E.3020809@mry4n.net> References: <50201A8E.3020809@mry4n.net> Message-ID: Yeah, I understand that. What I need to be able to do is be able to change the renderer like with a setter. I tried vectorLayer.renderer = new OpenLayers.Renderer.Canvas(vectorLayer.renderer.container.id); but I get an error (this.container is null). I stepped through the Canvas.js file and it appears that the fill color is there for each feature but for some reason style.fill is false for every feature after the first one. So I get one polygon filled in but the rest are empty. I don't know why this would happen, as I'm not even setting that boolean in my style map. On Aug 6, 2012, at 3:27 PM, Mike Ryan wrote: > Hi Rob, > > When you specify that array of renderers, I believe you are specifying your *preference* of renderer. You put your first choice first, etc. If that choice is not available, then it tries the next one, etc. > > Does that help? > > -Mike > > On 8/1/2012 3:00 PM, openlayers-users-request at lists.osgeo.org wrote: >> Message: 2 >> Date: Wed, 1 Aug 2012 09:30:42 -0400 >> From: Rob Hyx >> To: openlayers-users at lists.osgeo.org >> Subject: Re: [OpenLayers-Users] Canvas renderer causing fill in style, >> map, to be ignored >> Message-ID: >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Okay, let me take back what I said last. Adding the additional >> renderers ['SVG,'VML,'Canvas'], does fix my problem, but now when I go >> to use the Canvas renderer it's not vectorLayer.renderer. Instead I >> get the SVG renderer. I see an array vectorLayer.renderers but that's >> just an array of Strings. I'm looking at the API and it is not obvious >> to me how you can pick your renderer of choice. It seems you must be >> able to do it otherwise why would you be able to specify more than >> one. >> >> Any ideas? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kuryleva at mail.ru Mon Aug 6 23:48:48 2012 From: kuryleva at mail.ru (ppk) Date: Mon, 6 Aug 2012 23:48:48 -0700 (PDT) Subject: [OpenLayers-Users] ArcGisCache jsonp mouse zoom in and out problem (openlayers 2.12) In-Reply-To: <1343913323897-4992693.post@n6.nabble.com> References: <1343913323897-4992693.post@n6.nabble.com> Message-ID: <1344322128205-4993542.post@n6.nabble.com> I can not solve this problem. Can someone tell how to solve? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcGisCache-jsonp-mouse-zoom-in-and-out-problem-openlayers-2-12-tp4992693p4993542.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From rlombaard at maxgeo.com Tue Aug 7 00:59:32 2012 From: rlombaard at maxgeo.com (Riaan Lombaard) Date: Tue, 7 Aug 2012 15:59:32 +0800 Subject: [OpenLayers-Users] Transform Points Help In-Reply-To: <50191CAF.6050600@mapgears.com> References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> <50191CAF.6050600@mapgears.com> Message-ID: <783EA335483BCC40B245D83AF3350B0A1DAA75153C@au-fre-vmls03.max-geoservices.com.au> Hi, Thanks for the advice. I am looking at using proj4js. But it seems like GDA94 is not supported by them. I might be mistaken but look at "proj4js\lib\defs" directory and you will not find EPSG4283 . Riaan From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Alexandre Dub? Sent: 01 August 2012 02:10 PM To: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] Transform Points Help Hi Riaan, In the console, if you inspect OpenLayers.Projections.transforms, you'll see which projection codes are natively supported in OpenLayers. If yours is not there, then you need to include the Proj4js library and add the ones you want : http://trac.osgeo.org/proj4js/wiki/UserGuide HTH, Alexandre On 12-08-01 07:42 AM, Riaan Lombaard wrote: Hi, I need some transformation advice. Running this script in Firebug. " var point = new OpenLayers.Geometry.Point(128.627103622948, -15.8249150838119); var point_transformed = point.transform(new OpenLayers.Projection("EPSG:4283"), new OpenLayers.Projection("EPSG:4269")); console.log(point); console.log(point_transformed) " What happens is the data I am getting is from `GDA94 (SRID 4283)` and I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am using ` http://vmap0.tiles.osgeo.org/wms/vmap0` But looking at the example it does not seem to convert anything, the x,y stay's the same? What am I missing? Riaan _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at opengeo.org Tue Aug 7 01:02:19 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Tue, 7 Aug 2012 10:02:19 +0200 Subject: [OpenLayers-Users] Transform Points Help In-Reply-To: <783EA335483BCC40B245D83AF3350B0A1DAA75153C@au-fre-vmls03.max-geoservices.com.au> References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> <50191CAF.6050600@mapgears.com> <783EA335483BCC40B245D83AF3350B0A1DAA75153C@au-fre-vmls03.max-geoservices.com.au> Message-ID: Just go to spatialreference.org and look for the definition: http://spatialreference.org/ref/epsg/4283/proj4js/ Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 7, 2012, at 9:59 AM, Riaan Lombaard wrote: > Hi, > > Thanks for the advice. > > I am looking at using proj4js. > > But it seems like GDA94 is not supported by them. I might be mistaken but look at "proj4js\lib\defs" directory and you will not find EPSG4283 . > > Riaan > > From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Alexandre Dub? > Sent: 01 August 2012 02:10 PM > To: openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] Transform Points Help > > Hi Riaan, > > In the console, if you inspect OpenLayers.Projections.transforms, you'll see which projection codes are natively supported in OpenLayers. If yours is not there, then you need to include the Proj4js library and add the ones you want : > http://trac.osgeo.org/proj4js/wiki/UserGuide > > HTH, > > Alexandre > > > On 12-08-01 07:42 AM, Riaan Lombaard wrote: > Hi, > > I need some transformation advice. > > Running this script in Firebug. > " > var point = new OpenLayers.Geometry.Point(128.627103622948, -15.8249150838119); > var point_transformed = point.transform(new OpenLayers.Projection("EPSG:4283"), new OpenLayers.Projection("EPSG:4269")); > > console.log(point); > console.log(point_transformed) > " > > What happens is the data I am getting is from `GDA94 (SRID 4283)` and I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am using `http://vmap0.tiles.osgeo.org/wms/vmap0` > > But looking at the example it does not seem to convert anything, the x,y stay's the same? > What am I missing? > > Riaan > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Tue Aug 7 03:17:56 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 7 Aug 2012 12:17:56 +0200 Subject: [OpenLayers-Users] documentation on KML versions? In-Reply-To: Message-ID: Hoi Milo, Yes, I have looked in the code, but that does not really give an overview or statement of what KML flavors are supported. The only clue I find is that I notice in that code three namespaces mentioned: kml: "http://www.opengis.net/kml/2.2" gx: "http://www.google.com/kml/ext/2.2" kmlns: "http://earth.google.com/kml/2.0" I have examples of KML that both start with namespace declaration: #LineStyle00 And then a separate The ArcGIS one does not work in OL, the QGIS one does... Barend -- Barend K?bben Senior Lecturer, ITC - University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 217, 7500AE Enschede (The Netherlands) +31-(0)53 4874 253 On 24-07-12 19:25, "Milo van der Linden" wrote: >Basically, >inspecting the code for the kml format js-file would be my first thing to >do. Have you looked at that? >Verzonden vanaf mijn Samsung Galaxy S II >On Jul 24, 2012 12:10 PM, "Barend K?bben" wrote: > > > >Hi, > >[Got no answer to this a couple of weeks ago, maybe more luck now...?] > >Is there any documentation about what flavours of KML are supported in the >vector type layers for OpenLayers? I have been experimenting with >OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and >format: OpenLayers.Format.KML. > >But I find that there are many KML versions and ways of setting up a KML. >E.g. KML created by QGIS always works fine, but ArcMAP exports as KML >works sometimes, mostly not. Most curiously, not even "Save Place as" KML >from Google Earth (KMLs native habitat, I'd have thought) not even always >work...? > >-- >Barend K?bben >Senior Lecturer, ITC - University of Twente, >Faculty of Geo-Information Science and Earth Observation >PO Box 217, 7500AE Enschede (The Netherlands) >+31-(0)53 4874 253 > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information is strictly prohibited. If >you have received this e-mail by mistake, please delete the message and >any attachment and inform the sender by return e-mail. ITC accepts no >liability for any error or omission in the message content or for damage >of any kind that may arise as a result of e-mail transmission. > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From bartvde at opengeo.org Tue Aug 7 03:55:23 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Tue, 7 Aug 2012 12:55:23 +0200 Subject: [OpenLayers-Users] documentation on KML versions? In-Reply-To: References: Message-ID: Hi Barend, please file a github ticket and point to an example KML that fails to parse. TIA. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 7, 2012, at 12:17 PM, Barend K?bben wrote: > Hoi Milo, > > Yes, I have looked in the code, but that does not really give an overview > or statement of what KML flavors are supported. The only clue I find is > that I notice in that code three namespaces mentioned: > kml: "http://www.opengis.net/kml/2.2" > gx: "http://www.google.com/kml/ext/2.2" > kmlns: "http://earth.google.com/kml/2.0" > > > I have examples of KML that both start with namespace declaration: > > But one is generated by ArcGIS and uses: > #LineStyle00 > And then a separate > > The ArcGIS one does not work in OL, the QGIS one does... > > Barend > > -- > Barend K?bben > Senior Lecturer, ITC - University of Twente, > Faculty of Geo-Information Science and Earth Observation > PO Box 217, 7500AE Enschede (The Netherlands) > +31-(0)53 4874 253 > > > > > > On 24-07-12 19:25, "Milo van der Linden" wrote: > >> Basically, >> inspecting the code for the kml format js-file would be my first thing to >> do. Have you looked at that? >> Verzonden vanaf mijn Samsung Galaxy S II >> On Jul 24, 2012 12:10 PM, "Barend K?bben" wrote: >> >> >> >> Hi, >> >> [Got no answer to this a couple of weeks ago, maybe more luck now...?] >> >> Is there any documentation about what flavours of KML are supported in the >> vector type layers for OpenLayers? I have been experimenting with >> OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and >> format: OpenLayers.Format.KML. >> >> But I find that there are many KML versions and ways of setting up a KML. >> E.g. KML created by QGIS always works fine, but ArcMAP exports as KML >> works sometimes, mostly not. Most curiously, not even "Save Place as" KML >> from Google Earth (KMLs native habitat, I'd have thought) not even always >> work...? >> >> -- >> Barend K?bben >> Senior Lecturer, ITC - University of Twente, >> Faculty of Geo-Information Science and Earth Observation >> PO Box 217, 7500AE Enschede (The Netherlands) >> +31-(0)53 4874 253 >> >> Faculty of Geo-Information Science and Earth Observation (ITC) >> University of Twente >> Chamber of Commerce: 501305360000 >> >> E-mail disclaimer >> The information in this e-mail, including any attachments, is intended >> for the addressee only. If you are not the intended recipient, you are >> hereby notified that any disclosure, copying, distribution or action in >> relation to the content of this information is strictly prohibited. If >> you have received this e-mail by mistake, please delete the message and >> any attachment and inform the sender by return e-mail. ITC accepts no >> liability for any error or omission in the message content or for damage >> of any kind that may arise as a result of e-mail transmission. >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> > > > Faculty of Geo-Information Science and Earth Observation (ITC) > University of Twente > Chamber of Commerce: 501305360000 > > E-mail disclaimer > The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From SJohnson at redcross.org.uk Tue Aug 7 03:30:28 2012 From: SJohnson at redcross.org.uk (Simon Johnson) Date: Tue, 07 Aug 2012 11:30:28 +0100 Subject: [OpenLayers-Users] Approach for pop-ups with wms and wfs layers on same map. Message-ID: <5020FC58.DF65.00BE.1@redcross.org.uk> Hello list, I have a map which has both wms layers and wfs layers. The pop up for individual layers is working fine and as expected. However, I am having trouble working out a good approach to pop up behaviour when both wms and wfs layers are showing. Currently due to separate events firing I get two pop ups. One with the WMS getfeatureinfo results and one with the pop up attached to the feature. Ideally I would want the results merged in one pop-up, but would settle for be able to choose which pop up gets priority based on layer ordering. Can anyone suggest a solution to the problem or provide an example that deals with a similar situation? Thanks Simon This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended recipient, please delete this email and any attachments and notify mailadmin at redcross.org.uk. You may not present this message or any part of it to another party without consent from the sender. Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free. The British Red Cross may monitor the content of emails sent or received by its employees. The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949) and Scotland (SC037738). The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at opengeo.org Tue Aug 7 04:07:01 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Tue, 7 Aug 2012 13:07:01 +0200 Subject: [OpenLayers-Users] Approach for pop-ups with wms and wfs layers on same map. In-Reply-To: <5020FC58.DF65.00BE.1@redcross.org.uk> References: <5020FC58.DF65.00BE.1@redcross.org.uk> Message-ID: I would use minScale/maxScale settings on the layers such that only one of them is visible at a time. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 7, 2012, at 12:30 PM, Simon Johnson wrote: > Hello list, > > I have a map which has both wms layers and wfs layers. The pop up for individual layers is working fine and as expected. However, I am having trouble working out a good approach to pop up behaviour when both wms and wfs layers are showing. Currently due to separate events firing I get two pop ups. One with the WMS getfeatureinfo results and one with the pop up attached to the feature. Ideally I would want the results merged in one pop-up, but would settle for be able to choose which pop up gets priority based on layer ordering. > > Can anyone suggest a solution to the problem or provide an example that deals with a similar situation? > > Thanks > > Simon > > > > > > This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended > > recipient, please delete this email and any attachments and notify mailadmin at redcross.org.uk. You may not present this message or any part of it to > another party without consent from the sender. > > Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for > inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free. > > The British Red Cross may monitor the content of emails sent or received by its employees. > > The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949) and Scotland (SC037738). > > The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. > Click here for more information. > > > > > > > > This message has been scanned for viruses by BlackSpider MailControl > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From yasemin.yilmaz.embedded at gmail.com Tue Aug 7 04:47:14 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Tue, 7 Aug 2012 14:47:14 +0300 Subject: [OpenLayers-Users] OpenLayers.Geometry.LineString Problem Message-ID: Hi all, I've drawn a line between two feature markers by using OpenLayers.Geometry.LineString. A line from outline of a marker to other has been drawn expectedly if the pen width is 1 as you can see in map1.png. I want to use a bolder pen. But a line drawing starts from inside of a marker unexpectedly if the pen width is 2 as you can see in map2.png. In case 2, the line view turns to normal after I do some zoom out/in. How can I solve this problem? var mPoint1 = new OpenLayers.Geometry.Point(29, 41.060); var mPoint2 = new OpenLayers.Geometry.Point(29, 41.100); var mFeature1 = new OpenLayers.Feature.Vector( mPoint1.transform(SRS_LONLAT, SRS_GOOGLE), { some: 'data' }, { externalGraphic: 'img/marker.png', graphicHeight: 21, graphicWidth: 16 }); var mFeature2 = new OpenLayers.Feature.Vector( mPoint2.transform(SRS_LONLAT, SRS_GOOGLE), { some: 'data' }, { externalGraphic: 'img/marker.png', graphicHeight: 21, graphicWidth: 16 }); mVectorLayer.addFeatures(mFeature1); mVectorLayer.addFeatures(mFeature2); var mGeometry = new OpenLayers.Geometry.LineString([mPoint1, mPoint2]); var mArtery = new OpenLayers.Feature.Vector(mGeometry, null, { strokeColor: "red", strokeOpacity: 1, strokeWidth: 2 }); mVectorLayer.addFeatures(mArtery); Thanks a lot for your helps and explanations, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: maps.rar Type: application/rar Size: 24723 bytes Desc: not available URL: From adube at mapgears.com Tue Aug 7 05:11:27 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Tue, 07 Aug 2012 08:11:27 -0400 Subject: [OpenLayers-Users] Transform Points Help In-Reply-To: <783EA335483BCC40B245D83AF3350B0A1DAA75153C@au-fre-vmls03.max-geoservices.com.au> References: <783EA335483BCC40B245D83AF3350B0A1DAA5A95C0@au-fre-vmls03.max-geoservices.com.au> <50191CAF.6050600@mapgears.com> <783EA335483BCC40B245D83AF3350B0A1DAA75153C@au-fre-vmls03.max-geoservices.com.au> Message-ID: <502105EF.4080309@mapgears.com> Hi Riaan, You can add it. Either create a new .js file containing the projection definition and include it in your application. Look how to do that here : http://trac.osgeo.org/proj4js/wiki/UserGuide#Proj4js.Projconstructor HTH, Alexandre On 12-08-07 03:59 AM, Riaan Lombaard wrote: > > Hi, > > Thanks for the advice. > > I am looking at using proj4js. > > But it seems like GDA94 is not supported by them. I might be mistaken > but look at "proj4js\lib\defs" directory and you will not find EPSG4283 . > > Riaan > > *From:*openlayers-users-bounces at lists.osgeo.org > [mailto:openlayers-users-bounces at lists.osgeo.org] *On Behalf Of > *Alexandre Dub? > *Sent:* 01 August 2012 02:10 PM > *To:* openlayers-users at lists.osgeo.org > *Subject:* Re: [OpenLayers-Users] Transform Points Help > > Hi Riaan, > > In the console, if you inspect OpenLayers.Projections.transforms, > you'll see which projection codes are natively supported in > OpenLayers. If yours is not there, then you need to include the > Proj4js library and add the ones you want : > http://trac.osgeo.org/proj4js/wiki/UserGuide > > HTH, > > Alexandre > > > On 12-08-01 07:42 AM, Riaan Lombaard wrote: > > Hi, > > I need some transformation advice. > > Running this script in Firebug. > > " > > var point = new OpenLayers.Geometry.Point(128.627103622948, > -15.8249150838119); > var point_transformed = point.transform(new > OpenLayers.Projection("EPSG:4283"), new > OpenLayers.Projection("EPSG:4269")); > > console.log(point); > console.log(point_transformed) > > " > > What happens is the data I am getting is from `GDA94 (SRID 4283)` > and I need convert it to ` WGS84 (SRID 4326)` for the map base > layer I am using ` http://vmap0.tiles.osgeo.org/wms/vmap0` > > But looking at the example it does not seem to convert anything, > the x,y stay's the same? > > What am I missing? > > Riaan > > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SJohnson at redcross.org.uk Tue Aug 7 05:12:23 2012 From: SJohnson at redcross.org.uk (Simon Johnson) Date: Tue, 07 Aug 2012 13:12:23 +0100 Subject: [OpenLayers-Users] Approach for pop-ups with wms and wfs layers on same map. In-Reply-To: References: <5020FC58.DF65.00BE.1@redcross.org.uk> Message-ID: <50211443.DF65.00BE.1@redcross.org.uk> Hi, Just realised I used the incorrect term, it's not just wfs, but numerous vector input formats that the user can use eg KML, geojson as well and as such both wms + vector data will need to be visible at the same time. Sorry for the confusion Thanks Simon >>> Bart van den Eijnden 8/7/2012 12:07 pm >>> I would use minScale/maxScale settings on the layers such that only one of them is visible at a time. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org ( http://opengeo.org/ ) Expert service straight from the developers. On Aug 7, 2012, at 12:30 PM, Simon Johnson wrote: Hello list, I have a map which has both wms layers and wfs layers. The pop up for individual layers is working fine and as expected. However, I am having trouble working out a good approach to pop up behaviour when both wms and wfs layers are showing. Currently due to separate events firing I get two pop ups. One with the WMS getfeatureinfo results and one with the pop up attached to the feature. Ideally I would want the results merged in one pop-up, but would settle for be able to choose which pop up gets priority based on layer ordering. Can anyone suggest a solution to the problem or provide an example that deals with a similar situation? Thanks Simon ( http://www.redcross.org.uk/appealweek ) This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended recipient, please delete this email and any attachments and notify mailadmin at redcross.org.uk. You may not present this message or any part of it to another party without consent from the sender. Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free. The British Red Cross may monitor the content of emails sent or received by its employees. The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949) and Scotland (SC037738). The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. Click here for more information ( http://www.redcross.org.uk/standard.asp?id=35289 ). This message has been scanned for viruses by BlackSpider MailControl ( http://www.blackspider.com/ ) _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users Click here ( https://www.mailcontrol.com/sr/gRhq9Evb4AvTndxI!oX7UlnZF8222oy+TezWb+Zu3wmmlo0RTOB1e5GdhVepLJqEGyA1ZTPpq4D02A3zwbO5JA== ) to report this email as spam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramotswa at gmail.com Tue Aug 7 05:29:00 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Tue, 7 Aug 2012 13:29:00 +0100 Subject: [OpenLayers-Users] Approach for pop-ups with wms and wfs layers on same map. In-Reply-To: <5020FC58.DF65.00BE.1@redcross.org.uk> References: <5020FC58.DF65.00BE.1@redcross.org.uk> Message-ID: Try adding this to your code: select.handlers.feature.stopDown = false; just after you specify your select = new OpenLayers.Control.SelectFeature(layers); For me, that only fires one event for a click, and corresponds to the top layer. Toby On 7 August 2012 11:30, Simon Johnson wrote: > Hello list, > > I have a map which has both wms layers and wfs layers. The pop up for > individual layers is working fine and as expected. However, I am having > trouble working out a good approach to pop up behaviour when both wms and > wfs layers are showing. Currently due to separate events firing I get two > pop ups. One with the WMS getfeatureinfo results and one with the pop up > attached to the feature. Ideally I would want the results merged in one > pop-up, but would settle for be able to choose which pop up gets priority > based on layer ordering. > > Can anyone suggest a solution to the problem or provide an example that > deals with a similar situation? > > Thanks > > Simon > > > > > > > > > This email is for the intended recipient only. It may contain information > that is privileged, confidential and/or subject to copyright. If you are > not the intended > recipient, please delete this email and any attachments and notify * > mailadmin at redcross.org.uk*. You may not present this message or any part > of it to > another party without consent from the sender. > > Although the British Red Cross has taken steps to ensure this email and > any attachments are virus-free, we do not accept any responsibility for > viruses, or for > inaccurate or incomplete information or failure to deliver information. It > is your responsibility to scan the email and any attachments to ensure they > are virus-free. > > The British Red Cross may monitor the content of emails sent or received > by its employees. > > The British Red Cross Society, incorporated by Royal Charter 1908, is a > charity registered in England and Wales (220949) and Scotland (SC037738). > > The red cross emblem is a protective symbol, the use of which is > restricted by international and national law. It may not be reproduced > without prior authorisation. > Click here for more information > . > > > > > > > > > This message has been scanned for viruses by BlackSpider MailControl > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.leroux at ec.gc.ca Tue Aug 7 07:29:07 2012 From: alexandre.leroux at ec.gc.ca (Alexandre Leroux) Date: Tue, 07 Aug 2012 14:29:07 +0000 Subject: [OpenLayers-Users] Weather forecast layers in WMS for easy display with OpenLayers Message-ID: <50212633.4030603@ec.gc.ca> Hi list, The Meteorological Service of Canada is currently proceeding to public trials of a new service to offer the Canadian weather forecast layers in WMS. Anyone using OpenLayers can easily overlay these WMS layers on their web maps. Some of those weather forecast layers cover the whole globe and other layers at higher spatial resolution cover North America. A current public example of the use of these global layers is found on OpenWeatherMap.org (e.g. such as the precipitation, clouds and weather radar layers). I invite anyone from the list interested in getting access to these weather forecast WMS layers and participating to this public trial to contact me directly by email. Please shortly introduce your intended use of those layers. The official launch of these services is planned for later this year. Regards, Alex -- Alexandre Leroux, M.Sc., ing. MSC Data Management Section / Section de gestion des donn?es du SMC Environment Canada / Environnement Canada alexandre.leroux at ec.gc.ca - (514) 421-5024 From osm at tappenbeck.net Tue Aug 7 08:03:35 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Tue, 07 Aug 2012 17:03:35 +0200 Subject: [OpenLayers-Users] problems to use popup-markers on mobile-device Message-ID: <50212E47.7050902@tappenbeck.net> hi! i try to make a application to use on mobile device. but there are not a fine workflow to open popup-markers. did anyone have a well example mobile ol-app ? regards Jan :-) From mott at reverberant.com Tue Aug 7 08:11:12 2012 From: mott at reverberant.com (Iain Mott) Date: Tue, 07 Aug 2012 12:11:12 -0300 Subject: [OpenLayers-Users] google indexing of pop-ups? Message-ID: <1344352272.2171.43.camel@espelho> Hi List, I've had no luck getting Google to index content in pop-up windows on an open-layers site. I'm using the following syntax on an index page to ensure that the content is crawled by Google (and the stats show it is), but the pages do not show up on google search results. For example:
    Violino de Palitos de F?sforo (1963) This link calls the procurarPopup() function - but the crawl-able (and potentially index-able) URL defined by the href: http://rabeca.org/conteudo.php?fd=240 will resolve when loaded to: http://rabeca.org/?var=|240|-1777179.1589147|-5324634.813751 I've taken steps to avoid duplicate content on the site - including a canonical link eg. But nothing gets indexed. Has anyone had any success getting their pop-ups to show up (and stay there) in google searches? Cheers, Iain From MarkVolz at co.lyon.mn.us Tue Aug 7 12:30:37 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 7 Aug 2012 19:30:37 +0000 Subject: [OpenLayers-Users] Openlayers Mobile JQ - handling no matches on query / search Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3149D9F@swmail01.r8nssis.local> Hi, I noticed that the search results return nothing on a query miss on the search function. Is there a way to add feedback such as "no records found, check your spelling on the search" so that users know that the search did not produce any results? Thanks From christian.ledermann at gmail.com Tue Aug 7 22:55:27 2012 From: christian.ledermann at gmail.com (Christian Ledermann) Date: Wed, 8 Aug 2012 08:55:27 +0300 Subject: [OpenLayers-Users] MapIgniter Project In-Reply-To: References: <1343734821369-4992104.post@n6.nabble.com> Message-ID: and there is also another new kid on the block: http://cartaro.org/ The geospatial components used in Cartaro are PostGIS, GeoServer, GeoWebCache and OpenLayers. All those are managed from within the powerful CMS Drupal. On Tue, Jul 31, 2012 at 3:24 PM, mafonso wrote: > As I said, it is different in technology... and Mapserver + PHP should not > be understimated :) > > Of course those platforms are much more mature which leaves out features > comparison. > > Cheers, > Marco > > 2012/7/31 Christian Ledermann [via OSGeo.org] <[hidden email]> >> >> On Tue, Jul 31, 2012 at 2:40 PM, mafonso <[hidden email]> wrote: >> > >> > Thank you Christian for the enlightenment. I will check those projects >> > and >> > extract a detailed comparison. >> > >> > At a first sight, Plone is based on Python. >> >> and on the zope framework. >> >> > GeoNode is based on Java. >> >> actually it is a mix of django (python), postgis, geoserver. geonetwork >> (java) >> >> > CartoDB is limited on Free Plan. >> >> Cartodb is mainly build on Ruby, Nodejs, Postgis >> It is not obvious from their man page but it is open source >> https://github.com/Vizzuality/cartodb >> >> > >> > MapIgniter is based on PHP, Open Source, >> >> all of the above are open soure too. >> >> >> -- >> Best Regards, >> >> Christian Ledermann >> >> Nairobi - Kenya >> Mobile : > target="_blank">+254 702978914 >> >> <*)))>{ >> >> If you save the living environment, the biodiversity that we have left, >> you will also automatically save the physical environment, too. But If >> you only save the physical environment, you will ultimately lose both. >> >> 1) Don?t drive species to extinction >> >> 2) Don?t destroy a habitat that species rely on. >> >> 3) Don?t change the climate in ways that will result in the above. >> >> }<(((*> >> _______________________________________________ >> Users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://osgeo-org.1560.n6.nabble.com/MapIgniter-Project-tp4991898p4992111.html >> To unsubscribe from MapIgniter Project, click here. >> NAML > > > > ________________________________ > View this message in context: Re: MapIgniter Project > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Best Regards, Christian Ledermann Nairobi - Kenya Mobile : +254 702978914 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don?t drive species to extinction 2) Don?t destroy a habitat that species rely on. 3) Don?t change the climate in ways that will result in the above. }<(((*> From benkokakao at gmail.com Wed Aug 8 02:00:38 2012 From: benkokakao at gmail.com (Christian Benke) Date: Wed, 8 Aug 2012 11:00:38 +0200 Subject: [OpenLayers-Users] GeoJSON based vector-layer with openstreetmaps In-Reply-To: References: Message-ID: Hello! Sorry for the late reply! Thanks for the link to the "spherical mercator" documentation, that helped me to understand the underlying problem. With var geojson_format = new OpenLayers.Format.GeoJSON({ 'internalProjection': new OpenLayers.Projection("EPSG:900913"), 'externalProjection': new OpenLayers.Projection("EPSG:4326") }); it was actually very easy to transform the json-data to the required projection. Best regards, Christian On 31 July 2012 23:36, Thomas Gratier wrote: > Hello, > > It's because when you're using tiles from OSM, the projection is 900913 > (Google Spherical Mercator) and on WMS it is 4326. > You json is in the same projection althought your map are not in the same > projection and overlays fail because of this. > > Do in you javascript debugger map.getProjection() on the example > http://poab.org/openlayers/geojson_osm.html > You get EPSG:900913 > On your other example e.g http://poab.org/openlayers/geojson_wms.html, > the same command give you EPSG:4326 > Refer to this page > http://docs.openlayers.org/library/spherical_mercator.html for further > explanations you seem to miss > > Regards > > ThomasG > > > > > > > 2012/7/31 Christian Benke > >> Hello! >> >> I'm having difficulties to understand some basics of openlayers and >> projection. I'm trying to put tracks in geojson-format on a map. This >> works just fine with a WMS-Layer, but i seem to miss a crucial >> connection when trying to display it on an OSM-layer. >> >> I've tried to decipher the example at >> http://openlayers.org/dev/examples/fusiontables.html(Which uses >> GeoJSON on OSM) to adapt it to my needs, but as it is a lot more >> abstract than the very basic example-script i'm starting off, i get >> stuck even earlier when trying to change the geodata-source to my >> flatfile. >> >> Here is my basic example with WMS: >> http://poab.org/openlayers/geojson_wms.html >> >> And here's the same, but the map-layer is of OSM: >> http://poab.org/openlayers/geojson_osm.html >> >> On both maps i try to display GeoJSON-data from >> http://poab.org/openlayers/gpx2json.js, with WMS this works fine, with >> OSM it doesn't. >> >> I guess the problem lies within the projection/transformation of the >> GeoJSON-data, but i'm having a hard time figuring out how this is >> supposed to work and why the tracks are not displayed at all(Or at >> least how i can get it to tell me errors while parsing, if there are >> any). >> Obviously the WMS-layer is displayed very differently than the >> OSM-layer, so i assume that the GeoJSON-data also has to be adapted to >> be OSM-projection so it can be displayed on top of it? >> >> A related question: Why does the OSM-Layer need to be transformed to a >> different projection for centering it, not just setCenter with lon, >> lat and zoom like WMS? >> >> These are probably very basic questions for an experienced user - i'm >> currently a bit overwhelmed by the amount of information to digest >> while trying to get a understanding of GIS - i ask for patience, i'll >> probably post a few more ignorant questions to this list in the next >> few weeks. >> >> Best regards, >> Christian >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mafonso333 at gmail.com Wed Aug 8 04:43:23 2012 From: mafonso333 at gmail.com (Marco Afonso) Date: Wed, 8 Aug 2012 12:43:23 +0100 Subject: [OpenLayers-Users] MapIgniter Project In-Reply-To: References: <1343734821369-4992104.post@n6.nabble.com> Message-ID: Seems cool! Good for Geoserver... it looks strange inside Drupal's interface... Well... MapIgniter GeoCMS uses MapServer so maybe can fill a gap here. Although MapServer also supports SLD, it seems to me that feature styling is easier with MapIgniter. I will make a specific video about that later... Cheers, Marco 2012/8/8 Christian Ledermann [via OSGeo.org] < ml-node+s1560n4993792h65 at n6.nabble.com> > and there is also another new kid on the block: > > http://cartaro.org/ > > The geospatial components used in Cartaro are PostGIS, GeoServer, > GeoWebCache and OpenLayers. All those are managed from within the > powerful CMS Drupal. > > > On Tue, Jul 31, 2012 at 3:24 PM, mafonso <[hidden email]> > wrote: > > > As I said, it is different in technology... and Mapserver + PHP should > not > > be understimated :) > > > > Of course those platforms are much more mature which leaves out features > > comparison. > > > > Cheers, > > Marco > > > > 2012/7/31 Christian Ledermann [via OSGeo.org] <[hidden email]> > >> > >> On Tue, Jul 31, 2012 at 2:40 PM, mafonso <[hidden email]> wrote: > >> > > >> > Thank you Christian for the enlightenment. I will check those > projects > >> > and > >> > extract a detailed comparison. > >> > > >> > At a first sight, Plone is based on Python. > >> > >> and on the zope framework. > >> > >> > GeoNode is based on Java. > >> > >> actually it is a mix of django (python), postgis, geoserver. > geonetwork > >> (java) > >> > >> > CartoDB is limited on Free Plan. > >> > >> Cartodb is mainly build on Ruby, Nodejs, Postgis > >> It is not obvious from their man page but it is open source > >> https://github.com/Vizzuality/cartodb > >> > >> > > >> > MapIgniter is based on PHP, Open Source, > >> > >> all of the above are open soure too. > >> > >> > >> -- > >> Best Regards, > >> > >> Christian Ledermann > >> > >> Nairobi - Kenya > >> Mobile : >> target="_blank">+254 702978914 > >> > >> <*)))>{ > >> > >> If you save the living environment, the biodiversity that we have left, > >> you will also automatically save the physical environment, too. But If > >> you only save the physical environment, you will ultimately lose both. > >> > >> 1) Don?t drive species to extinction > >> > >> 2) Don?t destroy a habitat that species rely on. > >> > >> 3) Don?t change the climate in ways that will result in the above. > >> > >> }<(((*> > >> _______________________________________________ > >> Users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the > discussion > >> below: > >> > >> > http://osgeo-org.1560.n6.nabble.com/MapIgniter-Project-tp4991898p4992111.html > >> To unsubscribe from MapIgniter Project, click here. > >> NAML > > > > > > > > ________________________________ > > View this message in context: Re: MapIgniter Project > > > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > > _______________________________________________ > > Users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Best Regards, > > Christian Ledermann > > Nairobi - Kenya > Mobile : +254 702978914 > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don?t drive species to extinction > > 2) Don?t destroy a habitat that species rely on. > > 3) Don?t change the climate in ways that will result in the above. > > }<(((*> > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://osgeo-org.1560.n6.nabble.com/MapIgniter-Project-tp4991898p4993792.html > To unsubscribe from MapIgniter Project, click here > . > NAML > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yasemin.yilmaz.embedded at gmail.com Wed Aug 8 04:51:00 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Wed, 8 Aug 2012 14:51:00 +0300 Subject: [OpenLayers-Users] Add custom attribute for vector feature Message-ID: Hi all, This question has been asked by Boris on *Wed Feb 17 06:37:36 EST 2010*. The answer is very simple but it can be helpful for OpenLayers newbies like me. The constructor of OpenLayers.Feature.Vector allows to define it's attributes with the second argument. Please look at OL's documentation at http://dev.openlayers.org/docs/files/OpenLayers/Feature/Vector-js.html#OpenLayers.Feature.Vector.OpenLayers.Feature.Vector. There is an example at http://gis.stackexchange.com/questions/10204/programmatically-creating-a-vector-feature-in-openlayers. Best Regards, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Juergen.Dankoweit at T-Online.de Wed Aug 8 23:45:29 2012 From: Juergen.Dankoweit at T-Online.de (=?ISO-8859-15?Q?J=FCrgen_Dankoweit?=) Date: Thu, 09 Aug 2012 08:45:29 +0200 Subject: [OpenLayers-Users] Problem with "OpenLayers not defined" and "OpenLayers.Protocol.HTTP" Message-ID: <50235C89.2030507@T-Online.de> Hello, with a from OpenLayers.Format derived object I have a great problem and I don't know where it is. Every time the object "OpenLayers_Format_METARStation" is called the webbrowser shows me the following error message: Uncaught ReferenceError: OpenLayers is not defined meteoauswahl.js:54 (anonymous function) The funny thing is that everything is displayed correctly... The line 54 points to "OpenLayers.Class(" which is shown in the code snippet below and it is marked with an arrow: [...] /* ================================================================ */ /* Objekte */ /* ================================================================ */ /* Neues Objekt erstellen f. dyn. Anpassung der dargest. Stationen */ /* wird von OpenLayers.Format abgeleitet */ OpenLayers_Format_METARStation = OpenLayers.Class( // <--------------------- OpenLayers.Format, { read: function(obj) { if (obj) { [...] The new object is called from OpenLayers.Protocol.HTTP as shown below: [...] format_ext = new OpenLayers_Format_METARStation(); protocol_ext = new OpenLayers.Protocol.HTTP({ url: meteo_url_stationen, params: { per_page: 100, page: 1, lkz: "" }, srsInBBOX: true, readWithPOST: false, readWithGET: true, format: format_ext }); [...] Here is the link to the site on which the problem exists: http://www.dankoweit.de/Wetterdienste/hp_wetterdienste_auswahl.html I used the the example on the site http://docs.openlayers.org/library/formats.html for my code. I hope anybody could help because this error is very annoying. Many thanks for the answers. Best regards Juergen -- Meine stets unfertige Homepage: www.dankoweit.de From baas at speerit.nl Thu Aug 9 00:15:43 2012 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 9 Aug 2012 07:15:43 +0000 Subject: [OpenLayers-Users] Having a non-visible Google Layer leads to 404's at map load Message-ID: Hello, I'm using OL 2.12 to add an optional Google Satellite baselayer: map = new OpenLayers.Map({ div: 'map', projection: "EPSG:900913", controls: [...] , layers: [ new OpenLayers.Layer.OSM("OpenStreetMap", ["http://x/osm_tiles2/${z}/${x}/${y}.png"], { transitionEffect: "resize", numZoomLevels: 24, opacity: 1 }) , new OpenLayers.Layer.Google("Google Satellite", {visibility: false, type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22, transitionEffect: "resize"}) ]}); I had expected this to be enough to make the Google layer invisible, yet, at page load I get about 50 404 errors: "NetworkError: 404 Not Found - http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1023&y=1024&z=11&token=68404" Later, the url is changed to: http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1057&y=671&z=11&token=113046 (i.e., the token changes) and the map loads succelfully. Yet, at this point my Google layer is still supposed to be invisible. I only want it to load when I turn it on by setting map.setBaseLayer(). Oh, the Google API is loaded by: Any idea what I'm doing wrong? Thanks in advance, Jelmer Baas From schnieders.a at gmail.com Thu Aug 9 01:03:20 2012 From: schnieders.a at gmail.com (Andreas Schnieders) Date: Thu, 9 Aug 2012 10:03:20 +0200 Subject: [OpenLayers-Users] Internet Explorer 8 Issues on adding KML-Layer Message-ID: Hi, I'm experiencing serious issues when adding a KML-Layer to OpenLayers in the IE. The KML-Data is - up to this state of development - provided by a JSP. When just creating the KML-Layer everything is fine, but when actually adding it to the map the IE8 consumes 50-80% CPU-Usage and just crashes. No interaction or anything possible. Creating and adding works just fine in Chrome and Firefox. Does anyone have any hints on this? How is the internal OpenLayers mechanisms? Isn't the data obtained and created on "new OpenLayers.Layer.Vector(...)" already? How is it this works but adding it to the map doesn't? It's something around 150 objects. Each consisting of one Point-Placemark and on LineString-Placemark. Here's my code for creating the layer: kmlLayer = new OpenLayers.Layer.Vector("KML", { strategies: [new OpenLayers.Strategy.Fixed(), new OpenLayers.Strategy.Refresh({force: true, interval: 5000 })], protocol: new OpenLayers.Protocol.HTTP({ url: "track-server.jsp", params: { 'track': 1, 'label': 1, 'speed': 6 // 'speed': $("#speedLengthSelector").val(), }, format: new OpenLayers.Format.KML({ extractStyles: false, extractAttributes: true, maxDepth: 2 }) }), styleMap: styleMap }); map.addLayer(kmlLayer); Many thanks in advance, Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac.spitzer at gmail.com Thu Aug 9 01:06:13 2012 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Thu, 9 Aug 2012 18:06:13 +1000 Subject: [OpenLayers-Users] Internet Explorer 8 Issues on adding KML-Layer In-Reply-To: References: Message-ID: put simply, IE is not in the same class as chrome or firefox, you will need to use a map server to render that much data reliably in IE On Thu, Aug 9, 2012 at 6:03 PM, Andreas Schnieders wrote: > Hi, > > I'm experiencing serious issues when adding a KML-Layer to OpenLayers in the > IE. The KML-Data is - up to this state of development - provided by a JSP. > When just creating the KML-Layer everything is fine, but when actually > adding it to the map the IE8 consumes 50-80% CPU-Usage and just crashes. No > interaction or anything possible. > > Creating and adding works just fine in Chrome and Firefox. > > Does anyone have any hints on this? How is the internal OpenLayers > mechanisms? Isn't the data obtained and created on "new > OpenLayers.Layer.Vector(...)" already? How is it this works but adding it to > the map doesn't? It's something around 150 objects. Each consisting of one > Point-Placemark and on LineString-Placemark. > > Here's my code for creating the layer: > > kmlLayer = new OpenLayers.Layer.Vector("KML", { > strategies: [new OpenLayers.Strategy.Fixed(), > new OpenLayers.Strategy.Refresh({force: true, > interval: 5000 })], > protocol: new OpenLayers.Protocol.HTTP({ > url: "track-server.jsp", > params: { > 'track': 1, > 'label': 1, > 'speed': 6 > // 'speed': $("#speedLengthSelector").val(), > }, > format: new OpenLayers.Format.KML({ > extractStyles: false, > extractAttributes: true, > maxDepth: 2 > }) > }), > styleMap: styleMap > }); > > map.addLayer(kmlLayer); > > Many thanks in advance, > Andreas > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From uli.mueller at gmx.ch Thu Aug 9 01:06:58 2012 From: uli.mueller at gmx.ch (uli) Date: Thu, 09 Aug 2012 10:06:58 +0200 Subject: [OpenLayers-Users] MapIgniter Project and other geospatial CMS In-Reply-To: References: <1343734821369-4992104.post@n6.nabble.com> Message-ID: <50236FA2.8090607@gmx.ch> Hi we at geOps are the people behind the "new kid on the block" Cartaro. Cartaro is still a young project with incomplete documentation, and that is why we have not promoted it intensively so far. Let me just make a short note about the "gap" we want to fill with Cartaro. First Cartaro does not reinvent any wheels. In the opposite Cartaro builds on some of the most powerful OS projects available in the fields of CMS *and* GIS, namely Drupal, PostGIS, GeoServer and Openlayers. Carataro "simply" does the integration of these projects into a software stack that can form the basis as well for a small website with some geodata as for a large geospatial project (let's call the latter "lightweight SDI"). So the focus goes far beyond the "collective mapping" aspect. With this said Cartaro seems to be unique among the projects named in this thread, it integrates either more of existing CMS (as compared to mapigniter, GeoNode, CartoDB) or more of existing GIS software (as compared to collective.geo and CartoDB). Who wants to stay tuned to Cartaro can follow @CartaroORG or planet.osgeo.org, where we will publish all relevant news on the project. Cheers, Uli -- geOps e.K. -------------------------------- Handelsregister A 702785, Amtsgericht Freiburg NEU: Kaiser-Joseph-Strasse 263 D-79098 Freiburg -------------------------------- fon +49 761 503 126 91 fax +49 761 503 126 94 -------------------------------- free service calls from D and CH 00800 436 436 436 -------------------------------- web www.geops.de rss www.geops.de/blog/feed follow www.twitter.com/geops_tweet -------------------------------- Am 08/08/2012 01:43 PM, schrieb Marco Afonso: > Seems cool! Good for Geoserver... it looks strange inside Drupal's > interface... > > Well... MapIgniter GeoCMS uses MapServer so maybe can fill a gap here. > Although MapServer also supports SLD, it seems to me that feature > styling is easier with MapIgniter. I will make a specific video about > that later... > > Cheers, > Marco > > 2012/8/8 Christian Ledermann [via OSGeo.org] > > > > and there is also another new kid on the block: > > http://cartaro.org/ > > The geospatial components used in Cartaro are PostGIS, GeoServer, > GeoWebCache and OpenLayers. All those are managed from within the > powerful CMS Drupal. > > > On Tue, Jul 31, 2012 at 3:24 PM, mafonso <[hidden email] > > wrote: > > > As I said, it is different in technology... and Mapserver + PHP > should not > > be understimated :) > > > > Of course those platforms are much more mature which leaves out > features > > comparison. > > > > Cheers, > > Marco > > > > 2012/7/31 Christian Ledermann [via OSGeo.org] <[hidden email]> > >> > >> On Tue, Jul 31, 2012 at 2:40 PM, mafonso <[hidden email]> wrote: > >> > > >> > Thank you Christian for the enlightenment. I will check those > projects > >> > and > >> > extract a detailed comparison. > >> > > >> > At a first sight, Plone is based on Python. > >> > >> and on the zope framework. > >> > >> > GeoNode is based on Java. > >> > >> actually it is a mix of django (python), postgis, geoserver. > geonetwork > >> (java) > >> > >> > CartoDB is limited on Free Plan. > >> > >> Cartodb is mainly build on Ruby, Nodejs, Postgis > >> It is not obvious from their man page but it is open source > >> https://github.com/Vizzuality/cartodb > >> > >> > > >> > MapIgniter is based on PHP, Open Source, > >> > >> all of the above are open soure too. > >> > >> > >> -- > >> Best Regards, > >> > >> Christian Ledermann > >> > >> Nairobi - Kenya > >> Mobile : >> target="_blank">+254 702978914 > >> > >> <*)))>{ > >> > >> If you save the living environment, the biodiversity that we > have left, > >> you will also automatically save the physical environment, too. > But If > >> you only save the physical environment, you will ultimately > lose both. > >> > >> 1) Don't drive species to extinction > >> > >> 2) Don't destroy a habitat that species rely on. > >> > >> 3) Don't change the climate in ways that will result in the above. > >> > >> }<(((*> > >> _______________________________________________ > >> Users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the > discussion > >> below: > >> > >> > http://osgeo-org.1560.n6.nabble.com/MapIgniter-Project-tp4991898p4992111.html > >> To unsubscribe from MapIgniter Project, click here. > >> NAML > > > > > > > > ________________________________ > > View this message in context: Re: MapIgniter Project > > > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > > _______________________________________________ > > Users mailing list > > [hidden email] > > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Best Regards, > > Christian Ledermann > > Nairobi - Kenya > Mobile : +254 702978914 > > <*)))>{ > > If you save the living environment, the biodiversity that we have > left, > you will also automatically save the physical environment, too. > But If > you only save the physical environment, you will ultimately lose > both. > > 1) Don't drive species to extinction > > 2) Don't destroy a habitat that species rely on. > > 3) Don't change the climate in ways that will result in the above. > > }<(((*> > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://osgeo-org.1560.n6.nabble.com/MapIgniter-Project-tp4991898p4993792.html > > To unsubscribe from MapIgniter Project, click here > . > NAML > > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Thu Aug 9 00:59:07 2012 From: milo at dogodigi.net (Milo van der Linden) Date: Thu, 9 Aug 2012 09:59:07 +0200 Subject: [OpenLayers-Users] Having a non-visible Google Layer leads to 404's at map load In-Reply-To: References: Message-ID: You need an extra optionset in your layer definition that holds visibility: OpenLayers.Layer.Google("name",{youroptions},{visibility:false}) Verzonden vanaf mijn Samsung Galaxy S II On Aug 9, 2012 9:21 AM, "Jelmer Baas" wrote: > Hello, > > I'm using OL 2.12 to add an optional Google Satellite baselayer: > map = new OpenLayers.Map({ > div: 'map', > projection: "EPSG:900913", > controls: [...] > , layers: [ > new OpenLayers.Layer.OSM("OpenStreetMap", > ["http://x/osm_tiles2/${z}/${x}/${y}.png"], > { transitionEffect: "resize", numZoomLevels: 24, > opacity: 1 }) > , new OpenLayers.Layer.Google("Google Satellite", > {visibility: false, type: google.maps.MapTypeId.SATELLITE, numZoomLevels: > 22, transitionEffect: "resize"}) > ]}); > > I had expected this to be enough to make the Google layer invisible, yet, > at page load I get about 50 404 errors: > "NetworkError: 404 Not Found - > http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1023&y=1024&z=11&token=68404 > " > Later, the url is changed to: > http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1057&y=671&z=11&token=113046(i.e., the token changes) > and the map loads succelfully. Yet, at this point my Google layer is still > supposed to be invisible. I only want it to load when I turn it on by > setting map.setBaseLayer(). > > Oh, the Google API is loaded by: > > > Any idea what I'm doing wrong? > > Thanks in advance, > Jelmer Baas > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schnieders.a at gmail.com Thu Aug 9 01:12:19 2012 From: schnieders.a at gmail.com (Andreas Schnieders) Date: Thu, 9 Aug 2012 10:12:19 +0200 Subject: [OpenLayers-Users] Internet Explorer 8 Issues on adding KML-Layer In-Reply-To: References: Message-ID: Alright, cheers, I did expect something like that! How would you setup an environment for this? Unfortunately I have only very little experience in the use of map server. Would the map server render the objects already and how would them be transferred to the OpenLayers in IE then? Regards, Andreas 2012/8/9 Zac Spitzer > put simply, IE is not in the same class as chrome or firefox, > you will need to use a map server to render that much data reliably in IE > > On Thu, Aug 9, 2012 at 6:03 PM, Andreas Schnieders > wrote: > > Hi, > > > > I'm experiencing serious issues when adding a KML-Layer to OpenLayers in > the > > IE. The KML-Data is - up to this state of development - provided by a > JSP. > > When just creating the KML-Layer everything is fine, but when actually > > adding it to the map the IE8 consumes 50-80% CPU-Usage and just crashes. > No > > interaction or anything possible. > > > > Creating and adding works just fine in Chrome and Firefox. > > > > Does anyone have any hints on this? How is the internal OpenLayers > > mechanisms? Isn't the data obtained and created on "new > > OpenLayers.Layer.Vector(...)" already? How is it this works but adding > it to > > the map doesn't? It's something around 150 objects. Each consisting of > one > > Point-Placemark and on LineString-Placemark. > > > > Here's my code for creating the layer: > > > > kmlLayer = new OpenLayers.Layer.Vector("KML", { > > strategies: [new OpenLayers.Strategy.Fixed(), > > new OpenLayers.Strategy.Refresh({force: > true, > > interval: 5000 })], > > protocol: new OpenLayers.Protocol.HTTP({ > > url: "track-server.jsp", > > params: { > > 'track': 1, > > 'label': 1, > > 'speed': 6 > > // 'speed': $("#speedLengthSelector").val(), > > }, > > format: new OpenLayers.Format.KML({ > > extractStyles: false, > > extractAttributes: true, > > maxDepth: 2 > > }) > > }), > > styleMap: styleMap > > }); > > > > map.addLayer(kmlLayer); > > > > Many thanks in advance, > > Andreas > > > > > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Zac Spitzer > Solution Architect / Director > Ennoble Consultancy Australia > http://www.ennoble.com.au > http://zacster.blogspot.com > +61 405 847 168 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at speerit.nl Thu Aug 9 01:32:21 2012 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 9 Aug 2012 08:32:21 +0000 Subject: [OpenLayers-Users] Having a non-visible Google Layer leads to 404's at map load In-Reply-To: References: Message-ID: Milo, Thanks, but this doesn?t change the layer behaviour. It still loads the tiles with the wrong token, realises it does something dumb, and loads the same tiles with the proper token. The layer itself knows its invisible. Jelmer From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Thursday, August 09, 2012 9:59 AM To: Jelmer Baas Cc: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] Having a non-visible Google Layer leads to 404's at map load You need an extra optionset in your layer definition that holds visibility: OpenLayers.Layer.Google("name",{youroptions},{visibility:false}) Verzonden vanaf mijn Samsung Galaxy S II On Aug 9, 2012 9:21 AM, "Jelmer Baas" > wrote: Hello, I'm using OL 2.12 to add an optional Google Satellite baselayer: map = new OpenLayers.Map({ div: 'map', projection: "EPSG:900913", controls: [...] , layers: [ new OpenLayers.Layer.OSM("OpenStreetMap", ["http://x/osm_tiles2/${z}/${x}/${y}.png"], { transitionEffect: "resize", numZoomLevels: 24, opacity: 1 }) , new OpenLayers.Layer.Google("Google Satellite", {visibility: false, type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22, transitionEffect: "resize"}) ]}); I had expected this to be enough to make the Google layer invisible, yet, at page load I get about 50 404 errors: "NetworkError: 404 Not Found - http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1023&y=1024&z=11&token=68404" Later, the url is changed to: http://khm1.googleapis.com/kh?v=115&hl=en-US&x=1057&y=671&z=11&token=113046 (i.e., the token changes) and the map loads succelfully. Yet, at this point my Google layer is still supposed to be invisible. I only want it to load when I turn it on by setting map.setBaseLayer(). Oh, the Google API is loaded by: Any idea what I'm doing wrong? Thanks in advance, Jelmer Baas _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Thu Aug 9 03:41:18 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 09 Aug 2012 11:41:18 +0100 Subject: [OpenLayers-Users] search option Message-ID: <502393CE.1030208@sapo.pt> Hi guys, I want to add a search option to my webgis and after search i saw this example: http://osgeo-org.1560.n6.nabble.com/How-to-apply-a-Search-Function-td4364140.html#a4369035 I modified according my data [1] but i have 2 problems. The first is when i go to my webgis, openlayers zoom to a incial incorrect bounding box, maybe because funcion 'processThequery' is being wrongly fired... The other problem is that when I click in the search button is not made any request. I see that in firebug and because firebug don't give me any error i don't know the problem. Can anybody help me? Thanks [1] http://pastebin.com/ektf74aq From pedrocostaarma at sapo.pt Thu Aug 9 03:41:54 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 09 Aug 2012 11:41:54 +0100 Subject: [OpenLayers-Users] search option Message-ID: <502393F2.8010800@sapo.pt> Hi guys, I want to add a search option to my webgis and after search i saw this example: http://osgeo-org.1560.n6.nabble.com/How-to-apply-a-Search-Function-td4364140.html#a4369035 I modified according my data [1] but i have 2 problems. The first is when i go to my webgis, openlayers zoom to a incial incorrect bounding box, maybe because funcion 'processThequery' is being wrongly fired... The other problem is that when I click in the search button [2] is not made any request. I see that in firebug and because firebug don't give me any error i don't know the problem. Can anybody help me? Thanks [1] http://pastebin.com/ektf74aq [2] From osm at tappenbeck.net Thu Aug 9 06:41:07 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Thu, 09 Aug 2012 15:41:07 +0200 Subject: [OpenLayers-Users] geojson: get list of all element-names Message-ID: <5023BDF3.4070501@tappenbeck.net> hi ! i include a geojson-file by lyStreet = new OpenLayers.Layer.Vector("Strassen und Wege", { // style: { styleMap : new OpenLayers.Style({ strokeColor: "yellow", strokeWidth: 8, strokeOpacity: 0.6, cursor: "pointer", display:"none" }), strategies: [new OpenLayers.Strategy.Fixed()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.HTTP({ url: "../json/street_hl.json", format: new OpenLayers.Format.GeoJSON() }) and the file is define by "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {"name": "\"Siedlerweg\""}, "geometry": { "type": "MultiLineString", "coordinates": [ .... can anybody tell me how to get all the values of the property "name" ? regards Jan :-) From robhyx at gmail.com Thu Aug 9 08:12:20 2012 From: robhyx at gmail.com (Rob Hyx) Date: Thu, 9 Aug 2012 11:12:20 -0400 Subject: [OpenLayers-Users] Canvas renderer causing fill in style, map, to be ignored In-Reply-To: References: <50201A8E.3020809@mry4n.net> Message-ID: So just to add a bit more information to the issue I'm still having. It appears to only be with polygons that have holes 'cut out' in them. Solid polygons fill in fine with the canvas renderer. I found this bug: http://trac.osgeo.org/openlayers/ticket/3130 which doesn't mention anything being broken, but rather an inefficiency in the way such polygons are rendered. Has anyone else encountered this: polygons with a fill color, that have holes in them, are not filling in with a canvas renderer? Thanks in advance. On Mon, Aug 6, 2012 at 7:01 PM, Robert Hicks wrote: > Yeah, I understand that. What I need to be able to do is be able to change > the renderer like with a setter. I tried vectorLayer.renderer = new > OpenLayers.Renderer.Canvas(vectorLayer.renderer.container.id); but I get an > error (this.container is null). > > I stepped through the Canvas.js file and it appears that the fill color is > there for each feature but for some reason style.fill is false for every > feature after the first one. So I get one polygon filled in but the rest are > empty. I don't know why this would happen, as I'm not even setting that > boolean in my style map. > > > On Aug 6, 2012, at 3:27 PM, Mike Ryan wrote: > > Hi Rob, > > When you specify that array of renderers, I believe you are specifying your > *preference* of renderer. You put your first choice first, etc. If that > choice is not available, then it tries the next one, etc. > > Does that help? > > -Mike > > On 8/1/2012 3:00 PM, openlayers-users-request at lists.osgeo.org wrote: > > Message: 2 > Date: Wed, 1 Aug 2012 09:30:42 -0400 > From: Rob Hyx > To: openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] Canvas renderer causing fill in style, > map, to be ignored > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Okay, let me take back what I said last. Adding the additional > renderers ['SVG,'VML,'Canvas'], does fix my problem, but now when I go > to use the Canvas renderer it's not vectorLayer.renderer. Instead I > get the SVG renderer. I see an array vectorLayer.renderers but that's > just an array of Strings. I'm looking at the API and it is not obvious > to me how you can pick your renderer of choice. It seems you must be > able to do it otherwise why would you be able to specify more than > one. > > Any ideas? > > > -- HYX http://hyx-music.com From l_pilar1 at yahoo.es Thu Aug 9 09:03:58 2012 From: l_pilar1 at yahoo.es (LORENA MORALES) Date: Thu, 9 Aug 2012 17:03:58 +0100 (BST) Subject: [OpenLayers-Users] Urgente Message-ID: <1344528238.38894.YahooMailNeo@web133101.mail.ir2.yahoo.com> Buenos d?as necesito que me ayuden por favor yo confi? en uds lo que pasa es que estoy cargando como mapa base al de google pero necesito sobreponer mas capas sobre google pero estas capas las estoy cargando con openlayers y de un servidor mapserver local pero el problemna es que no me sale ninguna capa sobre el mapa de google me sale en blanco, nose si puede ser por la proyecci?n porque son distintas ya que google tiene una proyeccion de 900913 y mis capas estan en 4326 nose donde debo configurar para solucionar este problema ya llevo un buen tiempo y no me sale xfavor ay?denme es mi tesis y el tiempo se me va gracias por su ayuda -------------- next part -------------- An HTML attachment was scrubbed... URL: From benkokakao at gmail.com Thu Aug 9 09:46:11 2012 From: benkokakao at gmail.com (Christian Benke) Date: Thu, 9 Aug 2012 18:46:11 +0200 Subject: [OpenLayers-Users] addUniqueValueRules causes feature to disappear instead of changing it's style Message-ID: Hello! I'm having difficulties to understand how addUniqueValueRules is applied. http://poab.org/openlayers/stylerule.html fetches data from a GeoJSON-file and draws a point and a line according to the styling in styleMap. My goal is to have the Point and the Line drawn in different colors. To achieve this goal i try to add a "Unique Value Rule" with the property set to "fid" and a symbolizer matching the value "999", which should draw the strokeColor of the point as green when selected. However, the Point simply disappears when selected. I've been banging my head against this problem for hours, i just don't see why the rule doesn't seem to match any attribute i try to feed it, while the attribute exists in the vector-object i'm matching it against. I also don't understand why the feature i'm selecting actually disappears - if the rule does not match, the selected feature should actually not be changed?! How can i debug the addUniqueValueRules-function? I'm not asking to solve the issue for me, but if anyone could take a look at my example and help me understand where i'm misunderstanding the concept, it would help me sleep better tonight :-) Best regards, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Thu Aug 9 10:21:55 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Thu, 9 Aug 2012 10:21:55 -0700 Subject: [OpenLayers-Users] Unable to understand the Initialize code? In-Reply-To: <501EEFBE.7010909@gns.cri.nz> References: <501EEFBE.7010909@gns.cri.nz> Message-ID: Hi Phil, Thanks for the reply. No i do understand javascript. What I did not understand in http://dpaste.de/t214A/ was the 'arguments' variable which was passed in the prototype, OpenLayers.Control.prototype.initialize.apply( this, arguments ); Also, what does 'options && options.handlerOptions || {}' mean in, this.handlerOptions = OpenLayers.Util.extend( options && options.handlerOptions || {}, this.defaultHandlerOptions ); And finally what is the significance of including this, CLASS_NAME: "OpenLayers.Control.Click" Thanks, Smaran On Sun, Aug 5, 2012 at 3:12 PM, Phil Scadden wrote: > > i am trying to understand the initialize code in the link > . > > It is encapsulated in the OpenLayers.Click command, > > OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { link > }); > > I am not able to understand what exactly the initialization code is > doing and what 'this' implies? > > > First, you dont need to understand this to use it. You would work with > this in openlayers by manipulating openlayer.control properties. This is > code for creating a new descendent of an openlayers control. The kind that > live in openlayers/lib/control. > > If you havent worked with OO languages, this probably isnt the best place > to start. > > Anyway, the basics of it are to create a new descend of the > openlayer.control class. when your code does a myvar = new > Openlayers.control.click, then the initialise code is called. "this" is the > way you refer to owner of the function - the specific instance of the > class. What the code does is: > - combines the various options into the handleroptions property. > - call the prototype (Openlayers.control) initialize method > - set the handler property of the handler to be a new instance of the > openlayers click handler control, using the handleroption property. > > A javascript language reference text would be a good place to go. The > openlayers list isnt really a place to learn javascript. > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Thu Aug 9 10:54:00 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Thu, 09 Aug 2012 13:54:00 -0400 Subject: [OpenLayers-Users] addUniqueValueRules causes feature to disappear instead of changing it's style In-Reply-To: References: Message-ID: <5023F938.5040100@mapgears.com> Hi Christian, I would seem that even thought you send the feature itself as context, it will ends up using the feature.attributes hash anyway. You can see for yourself by loading an uncompressed version of OpenLayers, put a breakpoint inside your context method until you get to that line : OpenLayers/Filter/Comparison.js : evaluate: function(context) { if (context instanceof OpenLayers.Feature.Vector) { context = context.attributes; } ... So, because 'fid' is not one of the attributes, the evaluation fails and no style is applied. In order to evaluate on the feature fid, you can use the OpenLayers.Filter.FeatureId instead and create your own rules. If you're not familiar with filters, you can take a look at this example: http://openlayers.org/dev/examples/filter.html Once you get that filter working, you'll see your point turn green when selected. Lastly, when you use rules, you need to cover all possibilities for all features to render. If you only specify one rule with "property equal something", all features that evaluates the rule correctly will render, but not the others. A quick way to make sure the other at least render, you can specify an elseFilter : styleMap.styles["select"].addRules([new OpenLayers.Rule({ symbolizer: {strokeColor:"black",strokeWidth: 10}, elseFilter: true })]); Try that and see how it goes. HTH, Alexandre On 12-08-09 12:46 PM, Christian Benke wrote: > Hello! > > I'm having difficulties to understand how addUniqueValueRules is applied. > > http://poab.org/openlayers/stylerule.html fetches data from a > GeoJSON-file and draws a point and a line according to the styling in > styleMap. > > My goal is to have the Point and the Line drawn in different colors. > To achieve this goal i try to add a "Unique Value Rule" with the > property set to "fid" and a symbolizer matching the value "999", which > should draw the strokeColor of the point as green when selected. > > However, the Point simply disappears when selected. > > I've been banging my head against this problem for hours, i just don't > see why the rule doesn't seem to match any attribute i try to feed it, > while the attribute exists in the vector-object i'm matching it against. > I also don't understand why the feature i'm selecting actually > disappears - if the rule does not match, the selected feature should > actually not be changed?! > > How can i debug the addUniqueValueRules-function? > > I'm not asking to solve the issue for me, but if anyone could take a > look at my example and help me understand where i'm misunderstanding > the concept, it would help me sleep better tonight :-) > > Best regards, > Christian > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Thu Aug 9 18:40:40 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 10 Aug 2012 13:40:40 +1200 Subject: [OpenLayers-Users] Unable to understand the Initialize code? In-Reply-To: References: <501EEFBE.7010909@gns.cri.nz> Message-ID: <50246698.8080305@gns.cri.nz> > was the 'arguments' variable which was passed in the prototype, Standard javascript. See http://www.sitepoint.com/arguments-a-javascript-oddity/ for more explanation. > > Also, what does 'options && options.handlerOptions || {}' mean in, This says "if options is not null and options.handlerOptions is not null, return options.handlerOption, else return an empty object". Think about how a null object works in a boolean expression in JS. This ensures an empty object rather than a null is passed to the Extend function, which combines it with the defaultHandlerOptions. The code intent is to combine any passed in handler options with the default > And finally what is the significance of including this, > > CLASS_NAME: "OpenLayers.Control.Click" JS lacks a formal class structure. Any functions can serve as template for creating objects. Openlayers way of creating a simple class structure can be found in Class.js code. Part of the convention is to add property CLASS_NAME to function designed to be an OL class with the class name in it. 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 gamejihou at hotmail.com Fri Aug 10 01:26:54 2012 From: gamejihou at hotmail.com (Gery .) Date: Fri, 10 Aug 2012 08:26:54 +0000 Subject: [OpenLayers-Users] Urgente In-Reply-To: <1344528238.38894.YahooMailNeo@web133101.mail.ir2.yahoo.com> References: <1344528238.38894.YahooMailNeo@web133101.mail.ir2.yahoo.com> Message-ID: Hola Lorena; No se si alguie te ayudo ya pero a lo mejor esto te sirve: http://blog.andago.com/web/blog-andago/gestion-del-territorio/-/blogs/openlayers:-reproyecion-de-capas-wms-epsg:4326-sobre-proyeccion-de-googlemaps-epsg:900913 Creo que tu problema es solo proyecciones, eso va en openlayers y en tu MAP file de MapServer, hay un monton de info en google, solo busca y lee un poco, no es muy dificil de arreglar. Ahora si quieres ayuda, me puedes decir y te lo hago y acordamos un buen precio =) Saludos, Gery __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. Date: Thu, 9 Aug 2012 17:03:58 +0100 From: l_pilar1 at yahoo.es To: openlayers-users at lists.osgeo.org Subject: [OpenLayers-Users] Urgente Buenos d?as necesito que me ayuden por favor yo confi? en uds lo que pasa es que estoy cargando como mapa base al de google pero necesito sobreponer mas capas sobre google pero estas capas las estoy cargando con openlayers y de un servidor mapserver local pero el problemna es que no me sale ninguna capa sobre el mapa de google me sale en blanco, nose si puede ser por la proyecci?n porque son distintas ya que google tiene una proyeccion de 900913 y mis capas estan en 4326 nose donde debo configurar para solucionar este problema ya llevo un buen tiempo y no me sale xfavor ay?denme es mi tesis y el tiempo se me va gracias por su ayuda _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From uk52rob at yahoo.co.uk Fri Aug 10 02:27:22 2012 From: uk52rob at yahoo.co.uk (uk52rob) Date: Fri, 10 Aug 2012 10:27:22 +0100 (BST) Subject: [OpenLayers-Users] Google map with other projections Message-ID: <1344590842.6693.YahooMailNeo@web29901.mail.ird.yahoo.com> Hi, Is it possible to have a Google map layer alongside other EPSG: 27700 / OSGB36 layers? Ideally it needs to be reprojected, as the other layers and JavaScript functions use the eastings and northings to pass to a PHP script. The only examples I can find are the other way around, and require everything to be in Lat / Lon. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From chengwei02 at gmail.com Fri Aug 10 02:52:49 2012 From: chengwei02 at gmail.com (tiplip) Date: Fri, 10 Aug 2012 02:52:49 -0700 (PDT) Subject: [OpenLayers-Users] very slow while rendering GML in IE Message-ID: <1344592369143-4994347.post@n6.nabble.com> hi all, i want to provide popup for user while they click to edit poi attribution, so introduced Vector layer with GML. However, rendering is so slow with IE but fast in FF/chrome, more than 300 points, how to improve its performance? any ideas are welcomed. thanks http://osgeo-org.1560.n6.nabble.com/file/n4994347/right.jpg -- View this message in context: http://osgeo-org.1560.n6.nabble.com/very-slow-while-rendering-GML-in-IE-tp4994347.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ramotswa at gmail.com Fri Aug 10 02:55:57 2012 From: ramotswa at gmail.com (Tobias Reinicke) Date: Fri, 10 Aug 2012 10:55:57 +0100 Subject: [OpenLayers-Users] Google map with other projections In-Reply-To: <1344590842.6693.YahooMailNeo@web29901.mail.ird.yahoo.com> References: <1344590842.6693.YahooMailNeo@web29901.mail.ird.yahoo.com> Message-ID: No you can't. And if you manage to somehow hack together something it will look awful because you'd have to reproject the raster tiles from google, which will skew them (in the same way OS raster data looks awful when you reproject to 4326).. Options would be to download vector data (like openstreetmap) and do it all yourself... sorry. http://gis.stackexchange.com/questions/13249/how-to-reproject-base-layers-in-openlayers Toby On 10 August 2012 10:27, uk52rob wrote: > Hi, > > Is it possible to have a Google map layer alongside other EPSG: 27700 / > OSGB36 layers? > > Ideally it needs to be reprojected, as the other layers and JavaScript > functions use the eastings and northings to pass to a PHP script. The only > examples I can find are the other way around, and require everything to be > in Lat / Lon. > > Thanks > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benkokakao at gmail.com Fri Aug 10 06:00:06 2012 From: benkokakao at gmail.com (Christian Benke) Date: Fri, 10 Aug 2012 15:00:06 +0200 Subject: [OpenLayers-Users] addUniqueValueRules causes feature to disappear instead of changing it's style In-Reply-To: <5023F938.5040100@mapgears.com> References: <5023F938.5040100@mapgears.com> Message-ID: Alexandre, thanks for your quick answer! Since you where pointing out that the rule uses feature.attributes, i was able to apply the rule by using a json-property instead of id, an example is at the end of the mail. However, i'm interested to get the filter-example working as well. I find it difficult to understand how the FeatureId-Class is supposed to work. I'm trying to apply this rule: var rulePoint = new OpenLayers.Rule({ filter: new OpenLayers.Filter.FeatureId({ type: OpenLayers.Filter.Function, fids: ['999'], evaluate:function(fid) { console.log(feature.fid); var x=0; return true;} }), symbolizer: {pointRadius: 20, fillColor: "red", fillOpacity: 0.7, strokeColor: "black"} }); This is how i understand it works(Please correct me, i'm sure i'm wrong): When a feature is added to the vector_layer, the styleMap is applied to the feature and the feature is matched against the rule "rulePoint". "rulePoint" is defined with a filter by FeatureId. This filter matches against an array of values and returns True if there's a match. If the filter returns true, the rule applies the style given in symbolizer to the feature. What's the point of the evaluate-function? The whole filter doesn't seem to be called though, as the evaluate-function doesn't return anything when i select a feature. Do i miss anything else but "addRules" to make the rule/filter work? #### Working Rule with addUniqueValueRules and feature.attributes: Thanks for pointing out the issue with feature.attributes for addUniqueValueRules! Now i understand the the feature.attributes are the values in the json-properties, which i can use as the property in addUniqueValueRules(e.g. "type"). Here's a example so this thread includes the solution in case someone stumbles over this problem too: var Point1 = { "type": "Feature", "geometry": { "type": "Point", "coordinates": [3.0855166,45.7798048] }, "properties": { "name": "Point 001", "style": { color: "#004070", weight: 4, opacity: 0.9 }, "type": "imagemarker", "popupContent": "Date 2012-06-26 18:06:37, Track 001, Distance 26.793km, Total time was 9:52:26h" }, }; var lookup = { "imagemarker": {strokeColor: 'green', fillColor: "red", strokeWidth:10}, "line": {strokeColor: 'blue'} }; styleMap.addUniqueValueRules('select', 'type', lookup); Best regards, Christian On 9 August 2012 19:54, Alexandre Dub? wrote: > > Hi Christian, > > I would seem that even thought you send the feature itself as context, > it will ends up using the feature.attributes hash anyway. You can see for > yourself by loading an uncompressed version of OpenLayers, put a breakpoint > inside your context method until you get to that line : > > OpenLayers/Filter/Comparison.js : > > evaluate: function(context) { > if (context instanceof OpenLayers.Feature.Vector) { > context = context.attributes; > } > ... > > So, because 'fid' is not one of the attributes, the evaluation fails and > no style is applied. > > In order to evaluate on the feature fid, you can use the > OpenLayers.Filter.FeatureId instead and create your own rules. If you're > not familiar with filters, you can take a look at this example: > http://openlayers.org/dev/examples/filter.html > > Once you get that filter working, you'll see your point turn green when > selected. > > Lastly, when you use rules, you need to cover all possibilities for all > features to render. If you only specify one rule with "property equal > something", all features that evaluates the rule correctly will render, but > not the others. A quick way to make sure the other at least render, you can > specify an elseFilter : > > styleMap.styles["select"].addRules([new OpenLayers.Rule({ > symbolizer: {strokeColor:"black",strokeWidth: 10}, > elseFilter: true > })]); > > Try that and see how it goes. > > HTH, > > Alexandre > > > > On 12-08-09 12:46 PM, Christian Benke wrote: > > Hello! > > I'm having difficulties to understand how addUniqueValueRules is applied. > > http://poab.org/openlayers/stylerule.html fetches data from a GeoJSON-file > and draws a point and a line according to the styling in styleMap. > > My goal is to have the Point and the Line drawn in different colors. To > achieve this goal i try to add a "Unique Value Rule" with the property set > to "fid" and a symbolizer matching the value "999", which should draw the > strokeColor of the point as green when selected. > > However, the Point simply disappears when selected. > > I've been banging my head against this problem for hours, i just don't see > why the rule doesn't seem to match any attribute i try to feed it, while the > attribute exists in the vector-object i'm matching it against. > I also don't understand why the feature i'm selecting actually disappears > - if the rule does not match, the selected feature should actually not be > changed?! > > How can i debug the addUniqueValueRules-function? > > I'm not asking to solve the issue for me, but if anyone could take a look > at my example and help me understand where i'm misunderstanding the concept, > it would help me sleep better tonight :-) > > Best regards, > Christian > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From benkokakao at gmail.com Fri Aug 10 06:02:35 2012 From: benkokakao at gmail.com (Christian Benke) Date: Fri, 10 Aug 2012 15:02:35 +0200 Subject: [OpenLayers-Users] addUniqueValueRules causes feature to disappear instead of changing it's style In-Reply-To: References: <5023F938.5040100@mapgears.com> Message-ID: > However, i'm interested to get the filter-example working as well. I > find it difficult to understand how the FeatureId-Class is supposed to > work. I'm trying to apply this rule: > > var rulePoint = new OpenLayers.Rule({ > filter: new OpenLayers.Filter.FeatureId({ > type: OpenLayers.Filter.Function, > fids: ['999'], > evaluate:function(fid) { > console.log(feature.fid); > var x=0; > return true;} > > }), > symbolizer: {pointRadius: 20, fillColor: "red", > fillOpacity: 0.7, strokeColor: "black"} > }); > The whole filter doesn't seem to be called though, as the > evaluate-function doesn't return anything when i select a feature. Do > i miss anything else but "addRules" to make the rule/filter work? I forgot to mention - i try to apply the rule above to the styleMap with: styleMap.styles['select'].addRules[rulePoint] From rifins at gmail.com Fri Aug 10 07:12:48 2012 From: rifins at gmail.com (jkm) Date: Fri, 10 Aug 2012 16:12:48 +0200 Subject: [OpenLayers-Users] Find coordinates of linestring vertices Message-ID: Hello, I would like to know if there is any way to display the coordinates of the vertices of a linestring.. I mean, when I'm editing a LineString (I select it, and all the real and virtual vertices appear) when I hover one of the vertices I would like to display a label with it's coordinates.... And when I hover another vertice update the label with the new coordinates.. Is this posible? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lcelati at latitude-geosystems.com Fri Aug 10 08:07:45 2012 From: lcelati at latitude-geosystems.com (laurent celati) Date: Fri, 10 Aug 2012 08:07:45 -0700 (PDT) Subject: [OpenLayers-Users] openlayers : wfs-t is supported? Message-ID: <1344611265429-4994441.post@n6.nabble.com> Hello, Could you confirm to me that wfs-t (reading, updating, or deleting of existing features.) is supported by openlayers ? Thank you to throw light for me. Regards. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/openlayers-wfs-t-is-supported-tp4994441.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at opengeo.org Fri Aug 10 09:39:19 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Fri, 10 Aug 2012 18:39:19 +0200 Subject: [OpenLayers-Users] openlayers : wfs-t is supported? In-Reply-To: <1344611265429-4994441.post@n6.nabble.com> References: <1344611265429-4994441.post@n6.nabble.com> Message-ID: <008D9775-8839-4090-94F4-FB8FB091975A@opengeo.org> It is supported, the only thing that is not supported is locking (LockFeature etc). Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 10, 2012, at 5:07 PM, laurent celati wrote: > Hello, > > Could you confirm to me that wfs-t (reading, updating, or deleting of > existing features.) is supported by openlayers ? > > Thank you to throw light for me. > > Regards. > > > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/openlayers-wfs-t-is-supported-tp4994441.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ChiefDan at gmail.com Fri Aug 10 13:27:05 2012 From: ChiefDan at gmail.com (ChiefDan) Date: Fri, 10 Aug 2012 13:27:05 -0700 (PDT) Subject: [OpenLayers-Users] KML File, parsing color in IconStyle Message-ID: <1344630425248-4994517.post@n6.nabble.com> I've got a KML file where I've created a color gradient for various styles using a base icon. OpenLayers does not seem to respect the tag in the IconStyle area. Has anyone refined the KML format to handle the data? Thanks! Dan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/KML-File-parsing-color-in-IconStyle-tp4994517.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From umutkara1986 at hotmail.com Sat Aug 11 08:09:14 2012 From: umutkara1986 at hotmail.com (umut kara) Date: Sat, 11 Aug 2012 15:09:14 +0000 Subject: [OpenLayers-Users] Two Layer Message-ID: Hi Everybody ; I have two jeojson file and i want to add top on this two jeojson file can you explain plz -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Sun Aug 12 15:15:44 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 13 Aug 2012 10:15:44 +1200 Subject: [OpenLayers-Users] Google map with other projections In-Reply-To: <1344590842.6693.YahooMailNeo@web29901.mail.ird.yahoo.com> References: <1344590842.6693.YahooMailNeo@web29901.mail.ird.yahoo.com> Message-ID: <50282B10.5000905@gns.cri.nz> If you are using google maps, then everything you put on top need to be reprojected into 900913. You cant reproject it. However, you can get display of coordinates etc another projection by setting the map.displayProjection to the desired projection. 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 michogar at gmail.com Mon Aug 13 05:40:30 2012 From: michogar at gmail.com (Micho Garcia) Date: Mon, 13 Aug 2012 14:40:30 +0200 Subject: [OpenLayers-Users] Assign layers dinamically to WMSGetFeatureInfo control Message-ID: Hi all, I'm working with WMSGetFeatureControl and I need to change dynamically the layers that I go to get info. I've tried assigning a layers array to WMSGetFeatureControl layers property, but this fails. There is any way to do this? Thanks to all. Micho Garc?a GIS Developer Artisan michogarcia.org geomati.co -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Mon Aug 13 06:47:14 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Mon, 13 Aug 2012 09:47:14 -0400 Subject: [OpenLayers-Users] Assign layers dinamically to WMSGetFeatureInfo control In-Reply-To: References: Message-ID: <50290562.5050403@mapgears.com> Hi Micho, Would you please provide more details, some code or even better a minimized live demo showing your issue ? The WMSGetFeatureInfo supports setting a layers property as an array of OpenLayers.Layer.WMS objects to use when querying, so it should be okay to do so. Try minimizing your code to find out what the issue is, then if you find a bug you can report it back. Here's some useful info about this : http://docs.openlayers.org/help/minimize.html Regards, Alexandre On 12-08-13 08:40 AM, Micho Garcia wrote: > Hi all, > > I'm working with WMSGetFeatureControl and I need to change dynamically > the layers that I go to get info. I've tried assigning a layers array > to WMSGetFeatureControl layers property, but this fails. > > There is any way to do this? > > Thanks to all. > > > Micho Garc?a > GIS Developer Artisan > michogarcia.org > geomati.co > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From modala.raghuveer at gmail.com Mon Aug 13 08:25:46 2012 From: modala.raghuveer at gmail.com (modala) Date: Mon, 13 Aug 2012 08:25:46 -0700 (PDT) Subject: [OpenLayers-Users] Zooming functionality in OpenLayers for Openstreet maps Message-ID: <1344871546242-4994870.post@n6.nabble.com> Hi, I have any issue regarding the zooming functionality working. I am using Open streets map for this work. I am able to zoom to countries when i select from a drop down menu, but when i select a state from U.S drop down, the zooming functionality doesn't work for states. Can any one help in this regard. function ZoomState(state) { //(-80, 10, 80, 40); //state_bounds = new OpenLayers.Bounds( -62.333333,16.916667,-61.666667,17.733333 ); var state_bounds= new OpenLayers.Bounds(0,0,0,0); var bFlag = false; switch (state) { case "0": break; case "AL": state_bounds = new OpenLayers.Bounds(-84.8935, 30.1896, -88.472, 35.0089); bFlag=true; break; case "AK": state_bounds = new OpenLayers.Bounds(-130,51.333333 ,-172,71.833333 ); bFlag=true; break; case "AZ": state_bounds = new OpenLayers.Bounds(-109.045, 31.3292, -114.815, 37.0046); bFlag=true; break; case "AR": state_bounds = new OpenLayers.Bounds(-89.6444, 33.0045, -94.6182, 36.4997); bFlag=true; break; case "CA": state_bounds = new OpenLayers.Bounds(-114.129, 32.5304, -124.411, 42.0098); bFlag=true; break; case "CO": state_bounds = new OpenLayers.Bounds(-102.042, 36.9922, -109.061, 41.0056); bFlag=true; break; case "CT": state_bounds = new OpenLayers.Bounds(-71.7882, 40.9825, -73.7297, 42.0497); bFlag=true; break; case "DE": state_bounds = new OpenLayers.Bounds(-75.0424, 38.4493, -75.7881, 39.8406); bFlag=true; break; case "DC": state_bounds = new OpenLayers.Bounds(-76.9097, 38.8015, -77.1205, 38.9951); bFlag=true; break; case "FL": state_bounds = new OpenLayers.Bounds(-80.029, 24.5183, -87.6372, 31.0021); bFlag=true; break; case "GA": state_bounds = new OpenLayers.Bounds(-80.842, 30.3571, -85.6055, 35.002); bFlag=true; break; case "HI": state_bounds = new OpenLayers.Bounds(-154.799,18.9155, -160.236, 22.2344); bFlag=true; break; case "ID": state_bounds = new OpenLayers.Bounds(-111.044,41.9898, -117.24, 49.0015); bFlag=true; break; case "IL": state_bounds = new OpenLayers.Bounds(-87.0181,36.9711, -91.5126, 42.5095); bFlag=true; break; case "IN": state_bounds = new OpenLayers.Bounds(-84.7877,37.773, -88.0897, 41.7623); bFlag=true; break; case "IA": state_bounds = new OpenLayers.Bounds(-90.1393,40.3745, -96.6357, 43.5046); bFlag=true; break; case "KS": state_bounds = new OpenLayers.Bounds(-94.5927,36.9922, -102.049, 40.0045); bFlag=true; break; case "KY": state_bounds = new OpenLayers.Bounds(-81.9642,36.4967, -89.5737, 39.1472); bFlag=true; break; case "LA": state_bounds = new OpenLayers.Bounds(-88.8141,28.9181, -94.0458, 33.0206); bFlag=true; break; case "ME": state_bounds = new OpenLayers.Bounds(-66.954,43.0648, -71.082, 47.4619); bFlag=true; break; case "MD": state_bounds = new OpenLayers.Bounds(-75.0459,37.9114, -79.4872, 39.724); bFlag=true; break; case "MA": state_bounds = new OpenLayers.Bounds(-69.9254,41.237, -73.5084, 42.8867); bFlag=true; break; case "MI": state_bounds = new OpenLayers.Bounds(-82.1229,41.6958, -90.4187, 48.3042); bFlag=true; break; case "MN": state_bounds = new OpenLayers.Bounds(-89.4878,43.5021, -97.239, 49.3856); bFlag=true; break; case "MS": state_bounds = new OpenLayers.Bounds(-88.098,30.1744, -91.6543, 34.9983); bFlag=true; break; case "MO": state_bounds = new OpenLayers.Bounds(-89.1006,35.9951, -95.7744, 40.614); bFlag=true; break; case "MT": state_bounds = new OpenLayers.Bounds(-104.04,44.3577, -116.051, 49.0018); bFlag=true; break; case "NE": state_bounds = new OpenLayers.Bounds(-95.308,39.9999, -104.053, 43.0028); bFlag=true; break; case "NV": state_bounds = new OpenLayers.Bounds(-114.039,35.0021, -120.005, 42.0003); bFlag=true; break; case "NH": state_bounds = new OpenLayers.Bounds(-70.7135,42.6978, -72.5564, 45.3087); bFlag=true; break; case "NJ": state_bounds = new OpenLayers.Bounds(-73.8936,38.9256, -75.5676, 41.3576); bFlag=true; break; case "NM": state_bounds = new OpenLayers.Bounds(-103.001,31.3319, -109.05, 36.9994); bFlag=true; break; case "NY": state_bounds = new OpenLayers.Bounds(-71.8559,40.4991, -79.7633, 45.0174); bFlag=true; break; case "NC": state_bounds = new OpenLayers.Bounds(-75.4595,33.8445, -84.321, 36.589); bFlag=true; break; case "ND": state_bounds = new OpenLayers.Bounds(-96.5552,45.9351, -104.05, 49.0013); bFlag=true; break; case "OH": state_bounds = new OpenLayers.Bounds(-80.5139,38.4025, -84.8199, 42.3244); bFlag=true; break; case "OK": state_bounds = new OpenLayers.Bounds(-94.4307,33.6153, -103.001, 37.0009); bFlag=true; break; case "OR": state_bounds = new OpenLayers.Bounds(-116.462,41.9925, -124.566, 46.2858); bFlag=true; break; case "PA": state_bounds = new OpenLayers.Bounds(-74.69,39.7194, -80.5196, 42.5105); bFlag=true; break; case "RI": state_bounds = new OpenLayers.Bounds(-71.1206,41.1443, -71.8884, 42.0191); bFlag=true; break; case "SC": state_bounds = new OpenLayers.Bounds(-78.5537,32.0492, -83.3544, 35.2161); bFlag=true; break; case "SD": state_bounds = new OpenLayers.Bounds(-96.4366,42.4811, -104.057, 45.9444); bFlag=true; break; case "TN": state_bounds = new OpenLayers.Bounds(-81.6475,34.9839, -90.3107, 36.6792); bFlag=true; break; case "TX": state_bounds = new OpenLayers.Bounds(-93.5087, 25.838, -106.646, 36.5034); bFlag=true; break; case "UT": state_bounds = new OpenLayers.Bounds(-109.041,36.9986, -114.054, 42.0042); bFlag=true; break; case "VT": state_bounds = new OpenLayers.Bounds(-71.4677,42.7276, -73.4434, 45.0163); bFlag=true; break; case "VA": state_bounds = new OpenLayers.Bounds(-75.2407,36.5391, -83.6748, 39.4666); bFlag=true; break; case "WA": state_bounds = new OpenLayers.Bounds(-116.913,45.5531, -124.756, 49.0036); bFlag=true; break; case "WV": state_bounds = new OpenLayers.Bounds(-77.7197,37.2028, -82.6408, 40.6386); bFlag=true; break; case "WI": state_bounds = new OpenLayers.Bounds(-86.2496,42.4947, -92.8854, 47.3025); bFlag=true; break; case "WY": state_bounds = new OpenLayers.Bounds(-104.052,40.9963, -111.055, 45.0042); bFlag=true; break; } if(bFlag==true){ //state_bounds = state_bounds.transform(map.displayProjection, map.getProjectionObject()); state_bounds = state_bounds.transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()); map.zoomToExtent(state_bounds, true); } -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Zooming-functionality-in-OpenLayers-for-Openstreet-maps-tp4994870.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From p.scadden at gns.cri.nz Mon Aug 13 14:00:11 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Tue, 14 Aug 2012 09:00:11 +1200 Subject: [OpenLayers-Users] Assign layers dinamically to WMSGetFeatureInfo control In-Reply-To: References: Message-ID: <50296ADB.1030402@gns.cri.nz> > I'm working with WMSGetFeatureControl and I need to change dynamically > the layers that I go to get info. I've tried assigning a layers array > to WMSGetFeatureControl layers property, but this fails. If I had to guess, I would say you are doing myWMSGFScontrol.layers = myLayer; instead of myWMSGFScontrol.layers = [myLayer]; ??? 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 mott at reverberant.com Tue Aug 14 03:22:06 2012 From: mott at reverberant.com (Iain Mott) Date: Tue, 14 Aug 2012 07:22:06 -0300 Subject: [OpenLayers-Users] layer.destroy causes errors Message-ID: <1344939726.2097.11.camel@espelho> Hello, I have a page that needs to have a layer of markers updated after a search is made on a database. The page is here: http://rabeca.org/?ip=buscar To test it, please use a search string such as "cordas" The redraw function causes a javascript error in firefox (viewable with firebug) of "TypeError: this.format is null". This doesn't cause any problem in firefox or Chrome - however in IE9 the redrawing of points fails and I suspect this may be due to the same error. The error seems to be caused by the following call: if(layer) layer.destroy(); as part of the encompassing redraw function: function drawRabecaLayer_buscar(){ var layers = map.getLayersByName("layer"); for(var layerIndex = 0; layerIndex < layers.length; layerIndex++) { map.removeLayer(layers[layerIndex]); } layers = map.getLayersByName('pointLayer'); for(var layerIndex = 0; layerIndex < layers.length; layerIndex++) { map.removeLayer(layers[layerIndex]); } selectControl.destroy(); if(layer) layer.destroy(); if(pointLayer) { pointLayer.destroy(); } layer = new OpenLayers.Layer.Vector("Rabecas", { strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})], sphericalMercator : true, protocol: new OpenLayers.Protocol.HTTP({ url: "featuresbrief_buscar.php?", format: new OpenLayers.Format.Text() })}); pointLayer = new OpenLayers.Layer.Vector("Localiza??o nova", { sphericalMercator : true}); map.addLayers([layer, pointLayer]); selectControl = new OpenLayers.Control.SelectFeature(layer); map.addControl(selectControl); selectControl.activate(); layer.events.on({ 'featureselected': onFeatureSelect }); UpdateFeatureLayer(); return true; } Can anyone please suggest a fix? Thank you, Iain From michogar at gmail.com Tue Aug 14 03:41:13 2012 From: michogar at gmail.com (Micho Garcia) Date: Tue, 14 Aug 2012 12:41:13 +0200 Subject: [OpenLayers-Users] Assign layers dinamically to WMSGetFeatureInfo control In-Reply-To: <50296ADB.1030402@gns.cri.nz> References: <50296ADB.1030402@gns.cri.nz> Message-ID: Works perfect!!, my problem was with my code, I had an error because I used getControlsByClass to select the WMSGetFeatureInfo control and this method returns an array of controls not a control. As you can see, a stupid mistake!! Apologize for the inconveniences. Micho Garc?a GIS Developer Artisan michogarcia.org geomati.co 2012/8/13 Phil Scadden > > > I'm working with WMSGetFeatureControl and I need to change dynamically > > the layers that I go to get info. I've tried assigning a layers array > > to WMSGetFeatureControl layers property, but this fails. > If I had to guess, I would say you are doing > > myWMSGFScontrol.layers = myLayer; > > instead of > > myWMSGFScontrol.layers = [myLayer]; > > ??? > > > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Tue Aug 14 11:10:00 2012 From: gamejihou at hotmail.com (Gery .) Date: Tue, 14 Aug 2012 18:10:00 +0000 Subject: [OpenLayers-Users] connect db through sqlalchemy Message-ID: Hello list, someone knows how to connect a PG database through sqlalchemy with OL? __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertdbuckley at yahoo.com Tue Aug 14 23:02:16 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed, 15 Aug 2012 07:02:16 +0100 (BST) Subject: [OpenLayers-Users] How to use WCS with OpenLayers Message-ID: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> Hi, I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. I did this because at the time I didn?t know about wcs.? If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? ?Has anyone doen this before and can share some experience? thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at opengeo.org Wed Aug 15 00:53:05 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Wed, 15 Aug 2012 09:53:05 +0200 Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> Message-ID: <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> OpenLayers is not a WCS client. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 15, 2012, at 8:02 AM, Robert Buckley wrote: > Hi, > > I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. > I did this because at the time I didn?t know about wcs. > > If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? Has anyone doen this before and can share some experience? > > > thanks, > > Robert > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertdbuckley at yahoo.com Wed Aug 15 01:31:01 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed, 15 Aug 2012 09:31:01 +0100 (BST) Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> Message-ID: <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> ok....OpenLayers is not a client....but as a javascript mapping library one is able to program a thin-client for web-mapping purposes. And therefore, without splitting hairs, OpenLayers is the engine behind a thin-client based on OL...or am I wrong? ________________________________ Von: Bart van den Eijnden An: Robert Buckley CC: "users at openlayers.org" Gesendet: 9:53 Mittwoch, 15.August 2012 Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers OpenLayers is not a WCS client. Best regards, Bart --? Bart van den Eijnden OpenGeo -?http://opengeo.org Expert service straight from the developers. On Aug 15, 2012, at 8:02 AM, Robert Buckley wrote: Hi, > > >I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. >I did this because at the time I didn?t know about wcs.? > > >If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? ?Has anyone doen this before and can share some experience? > > > > >thanks, > > >Robert_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at opengeo.org Wed Aug 15 01:38:14 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Wed, 15 Aug 2012 10:38:14 +0200 Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> Message-ID: Not sure if I am getting what you're saying here. OpenLayers is a web mapping client, but has no support for WCS (currently). Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 15, 2012, at 10:31 AM, Robert Buckley wrote: > ok....OpenLayers is not a client....but as a javascript mapping library one is able to program a thin-client for web-mapping purposes. And therefore, without splitting hairs, OpenLayers is the engine behind a thin-client based on OL...or am I wrong? > > Von: Bart van den Eijnden > An: Robert Buckley > CC: "users at openlayers.org" > Gesendet: 9:53 Mittwoch, 15.August 2012 > Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers > > OpenLayers is not a WCS client. > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 8:02 AM, Robert Buckley wrote: > >> Hi, >> >> I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. >> I did this because at the time I didn?t know about wcs. >> >> If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? Has anyone doen this before and can share some experience? >> >> >> thanks, >> >> Robert >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.ledermann at gmail.com Wed Aug 15 01:55:38 2012 From: christian.ledermann at gmail.com (Christian Ledermann) Date: Wed, 15 Aug 2012 11:55:38 +0300 Subject: [OpenLayers-Users] connect db through sqlalchemy In-Reply-To: References: Message-ID: have a look at: http://www.mapfish.org/ or http://papyrus.readthedocs.org/en/latest/ or http://geodjango.org/ note this list is non exhaustive there may be other solutions that i missed On Tue, Aug 14, 2012 at 9:10 PM, Gery . wrote: > > Hello list, someone knows how to connect a PG database through sqlalchemy > with OL? > > > __________________________________________________________________________________________ > Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO > es necesario. > Think green - keep it on the screen. Do NOT print if it is NOT necessary. > Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie > NICHT, wenn es NICHT notwendig ist. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Best Regards, Christian Ledermann Nairobi - Kenya Mobile : +254 702978914 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don?t drive species to extinction 2) Don?t destroy a habitat that species rely on. 3) Don?t change the climate in ways that will result in the above. }<(((*> From robertdbuckley at yahoo.com Wed Aug 15 02:12:58 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed, 15 Aug 2012 10:12:58 +0100 (BST) Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> Message-ID: <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> Thanks.....that is all I wanted to know....that OpenLayers does not support wcs...but are there any api mapping libraries/thin clients or Hard clients (apart from ESRI) ?available? As I said....I am running the service through geoserver, but do not have a client to display it......and hence the question....are there any? Thanks, Robert ________________________________ Von: Bart van den Eijnden An: Robert Buckley CC: "users at openlayers.org" Gesendet: 10:38 Mittwoch, 15.August 2012 Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers Not sure if I am getting what you're saying here. OpenLayers is a web mapping client, but has no support for WCS (currently). Best regards, Bart --? Bart van den Eijnden OpenGeo -?http://opengeo.org Expert service straight from the developers. On Aug 15, 2012, at 10:31 AM, Robert Buckley wrote: ok....OpenLayers is not a client....but as a javascript mapping library one is able to program a thin-client for web-mapping purposes. And therefore, without splitting hairs, OpenLayers is the engine behind a thin-client based on OL...or am I wrong? > > > >________________________________ > Von: Bart van den Eijnden >An: Robert Buckley >CC: "users at openlayers.org" >Gesendet: 9:53 Mittwoch, 15.August 2012 >Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers > > >OpenLayers is not a WCS client. > > >Best regards, >Bart > > >--? >Bart van den Eijnden >OpenGeo -?http://opengeo.org >Expert service straight from the developers. > > > > >On Aug 15, 2012, at 8:02 AM, Robert Buckley wrote: > >Hi, >> >> >>I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. >>I did this because at the time I didn?t know about wcs.? >> >> >>If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? ?Has anyone doen this before and can share some experience? >> >> >> >> >>thanks, >> >> >>Robert_______________________________________________ >>Users mailing list >>Users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbritton3 at gmail.com Wed Aug 15 02:34:46 2012 From: jonbritton3 at gmail.com (Jon Britton) Date: Wed, 15 Aug 2012 10:34:46 +0100 Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> Message-ID: Hi Robert, You probably won't find any thin (browser) clients for displaying WCS data directly. There is such a sing as a Coverage Portrayal Service, which can make WCS data available through the WMS interface. However, GeoServer doesn't support it yet and as far as I know neither does anything else! GeoServer makes coverages also available through WMS by default too. Couldn't you just display your data this way? Or do you need to access some of the more advanced functionality of WCS? Jon On 15 August 2012 10:12, Robert Buckley wrote: > Thanks.....that is all I wanted to know....that OpenLayers does not > support wcs...but are there any api mapping libraries/thin clients or Hard > clients (apart from ESRI) available? > > As I said....I am running the service through geoserver, but do not have a > client to display it......and hence the question....are there any? > > > Thanks, > > Robert > > > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 10:38 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > Not sure if I am getting what you're saying here. > > OpenLayers is a web mapping client, but has no support for WCS (currently). > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 10:31 AM, Robert Buckley > wrote: > > ok....OpenLayers is not a client....but as a javascript mapping library > one is able to program a thin-client for web-mapping purposes. And > therefore, without splitting hairs, OpenLayers is the engine behind a > thin-client based on OL...or am I wrong? > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 9:53 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > OpenLayers is not a WCS client. > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 8:02 AM, Robert Buckley > wrote: > > Hi, > > I have been using wms to display and query a geotiff DEM from geoserver. > The Height Field has been written into the geotiff on creation. > I did this because at the time I didn?t know about wcs. > > If I wanted to serve the geotiff through the WCS protocol, how would I > display and query it with OpenLayers? Has anyone doen this before and can > share some experience? > > > thanks, > > Robert > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbritton3 at gmail.com Wed Aug 15 02:37:18 2012 From: jonbritton3 at gmail.com (Jon Britton) Date: Wed, 15 Aug 2012 10:37:18 +0100 Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> Message-ID: You can also query coverage data using WMS getFeatureInfo, which is supported by OpenLayers. This will display the raster image values when you click on the map, which sounds like what you're after. Jon On 15 August 2012 10:12, Robert Buckley wrote: > Thanks.....that is all I wanted to know....that OpenLayers does not > support wcs...but are there any api mapping libraries/thin clients or Hard > clients (apart from ESRI) available? > > As I said....I am running the service through geoserver, but do not have a > client to display it......and hence the question....are there any? > > > Thanks, > > Robert > > > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 10:38 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > Not sure if I am getting what you're saying here. > > OpenLayers is a web mapping client, but has no support for WCS (currently). > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 10:31 AM, Robert Buckley > wrote: > > ok....OpenLayers is not a client....but as a javascript mapping library > one is able to program a thin-client for web-mapping purposes. And > therefore, without splitting hairs, OpenLayers is the engine behind a > thin-client based on OL...or am I wrong? > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 9:53 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > OpenLayers is not a WCS client. > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 8:02 AM, Robert Buckley > wrote: > > Hi, > > I have been using wms to display and query a geotiff DEM from geoserver. > The Height Field has been written into the geotiff on creation. > I did this because at the time I didn?t know about wcs. > > If I wanted to serve the geotiff through the WCS protocol, how would I > display and query it with OpenLayers? Has anyone doen this before and can > share some experience? > > > thanks, > > Robert > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertdbuckley at yahoo.com Wed Aug 15 02:39:51 2012 From: robertdbuckley at yahoo.com (Robert Buckley) Date: Wed, 15 Aug 2012 10:39:51 +0100 (BST) Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> Message-ID: <1345023591.50190.YahooMailNeo@web133004.mail.ir2.yahoo.com> Hi, Thanks for your helpful reply. I have been serving a DEM through wms....but was trying to try it with wcs...basically just as a learning excercise really. The DEM works as the value = height..and so getFeatureInfo displays the attribute....but I was curious. If the wcs protocol is not available for web clients....which desktop clients use it? ?I don?t think QGIS has this capability. yours, Rob ________________________________ Von: Jon Britton An: Robert Buckley CC: "users at openlayers.org" Gesendet: 11:34 Mittwoch, 15.August 2012 Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers Hi Robert, You probably won't find any thin (browser) clients for displaying WCS data directly. There is such a sing as a Coverage Portrayal Service, which can make WCS data available through the WMS interface. However, GeoServer doesn't support it yet and as far as I know neither does anything else! GeoServer makes coverages also available through WMS by default too. Couldn't you just display your data this way? ?Or do you need to access some of the more advanced functionality of WCS? Jon On 15 August 2012 10:12, Robert Buckley wrote: Thanks.....that is all I wanted to know....that OpenLayers does not support wcs...but are there any api mapping libraries/thin clients or Hard clients (apart from ESRI) ?available? > > >As I said....I am running the service through geoserver, but do not have a client to display it......and hence the question....are there any? > > > > >Thanks, > > >Robert > > > > > > > >________________________________ > Von: Bart van den Eijnden >An: Robert Buckley >CC: "users at openlayers.org" >Gesendet: 10:38 Mittwoch, 15.August 2012 >Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers > > >Not sure if I am getting what you're saying here. > > >OpenLayers is a web mapping client, but has no support for WCS (currently). > > >Best regards, >Bart > > >--? >Bart van den Eijnden >OpenGeo -?http://opengeo.org >Expert service straight from the developers. > > > > >On Aug 15, 2012, at 10:31 AM, Robert Buckley wrote: > >ok....OpenLayers is not a client....but as a javascript mapping library one is able to program a thin-client for web-mapping purposes. And therefore, without splitting hairs, OpenLayers is the engine behind a thin-client based on OL...or am I wrong? >> >> >> >>________________________________ >> Von: Bart van den Eijnden >>An: Robert Buckley >>CC: "users at openlayers.org" >>Gesendet: 9:53 Mittwoch, 15.August 2012 >>Betreff: Re: [OpenLayers-Users] How to use WCS with OpenLayers >> >> >>OpenLayers is not a WCS client. >> >> >>Best regards, >>Bart >> >> >>--? >>Bart van den Eijnden >>OpenGeo -?http://opengeo.org >>Expert service straight from the developers. >> >> >> >> >>On Aug 15, 2012, at 8:02 AM, Robert Buckley wrote: >> >>Hi, >>> >>> >>>I have been using wms to display and query a geotiff DEM from geoserver. The Height Field has been written into the geotiff on creation. >>>I did this because at the time I didn?t know about wcs.? >>> >>> >>>If I wanted to serve the geotiff through the WCS protocol, how would I display and query it with OpenLayers? ?Has anyone doen this before and can share some experience? >>> >>> >>> >>> >>>thanks, >>> >>> >>>Robert_______________________________________________ >>>Users mailing list >>>Users at lists.osgeo.org >>>http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> >>_______________________________________________ >>Users mailing list >>Users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Wed Aug 15 02:45:15 2012 From: gamejihou at hotmail.com (Gery .) Date: Wed, 15 Aug 2012 09:45:15 +0000 Subject: [OpenLayers-Users] connect db through sqlalchemy In-Reply-To: References: , Message-ID: Thanks Christian, these are very nice solutions, I checked the Rest services used in Mapfish as well its protocol, it's a great job indeed. I think I found the solution, please correct me if I'm wrong, but to do the connection I have to tell Apache (I use that) that understands and executes python scripts, this is with mod_wsgi, I did some tests and this works, so I just need to play with the OpenLayersHTTP protocol to pass JSON/GeoJSON info from OL to my PG database, I know I have to use the "url" provided by ExtJs to do the link, but I have to get that. Thanks again, Cheers, __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. > Date: Wed, 15 Aug 2012 11:55:38 +0300 > Subject: Re: [OpenLayers-Users] connect db through sqlalchemy > From: christian.ledermann at gmail.com > To: gamejihou at hotmail.com > CC: openlayers-users at lists.osgeo.org > > have a look at: > http://www.mapfish.org/ > or http://papyrus.readthedocs.org/en/latest/ > or http://geodjango.org/ > > note this list is non exhaustive there may be other solutions that i missed > > On Tue, Aug 14, 2012 at 9:10 PM, Gery . wrote: > > > > Hello list, someone knows how to connect a PG database through sqlalchemy > > with OL? > > > > > > __________________________________________________________________________________________ > > Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO > > es necesario. > > Think green - keep it on the screen. Do NOT print if it is NOT necessary. > > Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie > > NICHT, wenn es NICHT notwendig ist. > > > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Best Regards, > > Christian Ledermann > > Nairobi - Kenya > Mobile : +254 702978914 > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don?t drive species to extinction > > 2) Don?t destroy a habitat that species rely on. > > 3) Don?t change the climate in ways that will result in the above. > > }<(((*> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbritton3 at gmail.com Wed Aug 15 07:05:07 2012 From: jonbritton3 at gmail.com (Jon Britton) Date: Wed, 15 Aug 2012 15:05:07 +0100 Subject: [OpenLayers-Users] How to use WCS with OpenLayers In-Reply-To: <1345023591.50190.YahooMailNeo@web133004.mail.ir2.yahoo.com> References: <1345010536.99560.YahooMailNeo@web133002.mail.ir2.yahoo.com> <3AC6737E-3965-4606-901B-806F34280B71@opengeo.org> <1345019461.53839.YahooMailNeo@web133003.mail.ir2.yahoo.com> <1345021978.78154.YahooMailNeo@web133005.mail.ir2.yahoo.com> <1345023591.50190.YahooMailNeo@web133004.mail.ir2.yahoo.com> Message-ID: I'm not aware of any desktop clients with WCS support. There really isn't much decent WCS support anywhere really! Displaying WCS data on the web is (was) a big part of my own research so I feel your pain :-) Jon On 15 August 2012 10:39, Robert Buckley wrote: > Hi, > > Thanks for your helpful reply. > > I have been serving a DEM through wms....but was trying to try it with > wcs...basically just as a learning excercise really. > > The DEM works as the value = height..and so getFeatureInfo displays the > attribute....but I was curious. If the wcs protocol is not available for > web clients....which desktop clients use it? I don?t think QGIS has this > capability. > > yours, > > Rob > > > > ------------------------------ > *Von:* Jon Britton > > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 11:34 Mittwoch, 15.August 2012 > > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > Hi Robert, > > You probably won't find any thin (browser) clients for displaying WCS data > directly. There is such a sing as a Coverage Portrayal Service, which can > make WCS data available through the WMS interface. However, GeoServer > doesn't support it yet and as far as I know neither does anything else! > > GeoServer makes coverages also available through WMS by default too. > Couldn't you just display your data this way? Or do you need to access > some of the more advanced functionality of WCS? > > Jon > > On 15 August 2012 10:12, Robert Buckley wrote: > > Thanks.....that is all I wanted to know....that OpenLayers does not > support wcs...but are there any api mapping libraries/thin clients or Hard > clients (apart from ESRI) available? > > As I said....I am running the service through geoserver, but do not have a > client to display it......and hence the question....are there any? > > > Thanks, > > Robert > > > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 10:38 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > Not sure if I am getting what you're saying here. > > OpenLayers is a web mapping client, but has no support for WCS (currently). > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 10:31 AM, Robert Buckley > wrote: > > ok....OpenLayers is not a client....but as a javascript mapping library > one is able to program a thin-client for web-mapping purposes. And > therefore, without splitting hairs, OpenLayers is the engine behind a > thin-client based on OL...or am I wrong? > > ------------------------------ > *Von:* Bart van den Eijnden > *An:* Robert Buckley > *CC:* "users at openlayers.org" > *Gesendet:* 9:53 Mittwoch, 15.August 2012 > *Betreff:* Re: [OpenLayers-Users] How to use WCS with OpenLayers > > OpenLayers is not a WCS client. > > Best regards, > Bart > > -- > Bart van den Eijnden > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > > On Aug 15, 2012, at 8:02 AM, Robert Buckley > wrote: > > Hi, > > I have been using wms to display and query a geotiff DEM from geoserver. > The Height Field has been written into the geotiff on creation. > I did this because at the time I didn?t know about wcs. > > If I wanted to serve the geotiff through the WCS protocol, how would I > display and query it with OpenLayers? Has anyone doen this before and can > share some experience? > > > thanks, > > Robert > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umutkara1986 at hotmail.com Wed Aug 15 07:02:29 2012 From: umutkara1986 at hotmail.com (umut kara) Date: Wed, 15 Aug 2012 14:02:29 +0000 Subject: [OpenLayers-Users] Geojson features Message-ID: Hi everybody i want to ask geojson features . i have city map my country i use geojson .But i have problem about when users click my i want to show features about city. And i have two layer one of them geojson the other is GML This my code block .... OpenLayers.ProxyHost = "/gt/proxy.cgi?url="; var lon = 5; var lat = 44; var zoom = 5; var map, layer; //function init(){ var bounds = new OpenLayers.Bounds( -125051.196, 3967670.8507, 1549596.1896, 4677667.0145 ); var options = { controls: [], maxExtent: bounds, maxResolution: 6541.59135, projection: "EPSG:23036", units: 'm' }; map = new OpenLayers.Map('map', options); map.addControl(new OpenLayers.Control.PanZoomBar({ position: new OpenLayers.Pixel(2,10) })); map.addControl(new OpenLayers.Control.Navigation()); //map.addControl(new OpenLayers.Control.Scale($('scale'))); map.addControl(new OpenLayers.Control.MousePosition({element: $('location')})); var myStyles = new OpenLayers.StyleMap({ "default": new OpenLayers.Style({ // pointRadius: "${type}", // sized according to type attribute fillColor: "#black", strokeColor: "#black", strokeWidth: 1, graphicZIndex: 1 }) }); var geojson_format = new OpenLayers.Format.GeoJSON(); var vl2 = new OpenLayers.Layer.Vector("", {isBaseLayer: true, styleMap: new OpenLayers.StyleMap({'default':{ strokeColor: "#00FF00", strokeOpacity: 1, strokeWidth: 1, fillColor: "#FF5500", fillOpacity: 0.5, label : "${ad}", fontSize: "8px", fontFamily: "Courier New, monospace", labelXOffset: "0.5", labelYOffset: "0.5" }}) }); map.addLayer(vl2); //Gml geliyor kardes map.addLayer(new OpenLayers.Layer.Vector("GML", { //isBaseLayer: False , styleMap: myStyles, protocol: new OpenLayers.Protocol.HTTP({ url: "http://localhost:8080/geoserver/trgm/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=...&maxFeatures=5000", format: new OpenLayers.Format.GML() }), strategies: [new OpenLayers.Strategy.Fixed()] })); var selectCtrl = new OpenLayers.Control.SelectFeature(vl2, { clickout: true, onSelect:onFeatureSelect } ); /*var hoverCtrl = new OpenLayers.Control.SelectFeature("", {highlightOnly: true} ); map.addControl(hoverCtrl); hoverCtrl.activate();*/ map.addControl(selectCtrl); selectCtrl.activate(); function onFeatureSelect(evt) { map.zoomToExtent(evt.geometry.bounds, closest= true ); } var report = function(e) { //OpenLayers.Console.log(e.type, e.feature.id); }; function handler(request) { vl2.addFeatures(geojson_format.read(request.responseText)) map.zoomToExtent(bounds); } var request = OpenLayers.Request.GET({ url: "http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=....&maxFeatures=100&outputFormat=json&srsName=EPSG:23036", params: {}, callback: handler }); -------------- next part -------------- An HTML attachment was scrubbed... URL: From dkunzman at usgs.gov Wed Aug 15 10:17:09 2012 From: dkunzman at usgs.gov (Doug Kunzman) Date: Wed, 15 Aug 2012 13:17:09 -0400 Subject: [OpenLayers-Users] Fw: basic zoom control question. Message-ID: Hi - I have a question about maxExtent and zoom levels. I've searched the internet and I have a simple question based upon an example. I've modified the layers in our program setting the wrapDataLine to true and this has the desired effect. But using the navigator control and the user is able to zoom out so that the earth raps about five times around our div element. It looks exactly like the example in http://openstreetmap.na1400.info/basic-zoom.html when first loaded. Is there anyway to prevent this? I've modified maxResolution but it doesn't appear to have the desired effect. We are setting maxExtent as follows: maxExtent : new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) using a Spherical Mercator projection. thanks, D Kunzman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 20748 bytes Desc: not available URL: From mott at reverberant.com Wed Aug 15 12:06:19 2012 From: mott at reverberant.com (Iain Mott) Date: Wed, 15 Aug 2012 16:06:19 -0300 Subject: [OpenLayers-Users] Map not refreshing in IE9 Message-ID: <1345057579.2118.13.camel@espelho> Hello, On the page: http://rabeca.org/?ip=buscar running the search string "xote" and clicking "buscar" should return 11 results and plot them as icons on the map. In IE9 (and perhaps other IE versions) the icons are not plotted, even though the map is being refreshed by the following function: function UpdateFeatureLayer() { layer.loaded = false; layer.setVisibility(true); layer.refresh({ force: true }); } In order to show the icons one has to drag the map with the mouse so that Brazil goes first out, then back in to sight. Any ideas please as to how this can be fixed? Cheers, Iain From ahocevar at opengeo.org Wed Aug 15 23:26:49 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 16 Aug 2012 08:26:49 +0200 Subject: [OpenLayers-Users] Fw: basic zoom control question. In-Reply-To: References: Message-ID: This was fixed in OpenLayers 2.12. So you may consider upgrading. Andreas. On Wed, Aug 15, 2012 at 7:17 PM, Doug Kunzman wrote: > Hi - > > I have a question about maxExtent and zoom levels. I've searched the > internet and I have a simple question based upon an example. > > I've modified the layers in our program setting the wrapDataLine to true > and this has the desired effect. But using the navigator control and the > user is able to zoom out so that the earth raps about five times around our > div element. It looks exactly like the example in > http://openstreetmap.na1400.info/basic-zoom.html when first loaded. Is > there anyway to prevent this? I've modified maxResolution but it doesn't > appear to have the desired effect. > > We are setting maxExtent as follows: maxExtent : *new*OpenLayers.Bounds(-20037508.34, -20037508.34, > 20037508.34, 20037508.34)using a Spherical Mercator projection. > thanks, > > > D Kunzman > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterlanz at yahoo.com Thu Aug 16 02:54:00 2012 From: peterlanz at yahoo.com (Peter Lanz) Date: Thu, 16 Aug 2012 02:54:00 -0700 (PDT) Subject: [OpenLayers-Users] WFS-T: Delete Feature works, edit or create Feature does not work Message-ID: <1345110840.25109.YahooMailNeo@web161605.mail.bf1.yahoo.com> Dear OpenLayer Users! I tried to set up a WFS-T using the tutorial at?http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html. Doing so, I imported the shape files to postgresql (9.1). I work with GeoServer 2.1.4.? Deleting features works well, but adding or editing doesn't! Same with the Openlayers demo "wfs-t.html" with the tassi datasets. When I use shapefiles instead of postgresql all works well! I would very much appreciate some hints how to solve this. I tried to install and run GeoServer on Jetty, Tomcat6 and Tomcat on top of Apache HTTP but in all 3 cases the same error so maybe something went wrong while importing the shapefiles to the database!? I get this "Success" message: WFS-Transaction: Success? ...but after reloading the new features are gone. Please let me know if any log data would help you to help me! cheers pedro ? ________________________________ peter lanz ?00491632465592 ?berlin ? ?flasherei.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at opengeo.org Thu Aug 16 02:59:07 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Thu, 16 Aug 2012 11:59:07 +0200 Subject: [OpenLayers-Users] WFS-T: Delete Feature works, edit or create Feature does not work In-Reply-To: <1345110840.25109.YahooMailNeo@web161605.mail.bf1.yahoo.com> References: <1345110840.25109.YahooMailNeo@web161605.mail.bf1.yahoo.com> Message-ID: <2ACF27D8-BA3A-4DA0-B973-8D6FCBED32E8@opengeo.org> My best guess is that you need to load the legacy.sql into PostGIS, see also: https://getsatisfaction.com/opengeo/topics/unable_to_edit_the_geometry_of_postgis_layers Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 16, 2012, at 11:54 AM, Peter Lanz wrote: > Dear OpenLayer Users! > > I tried to set up a WFS-T using the tutorial at http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html. Doing so, I imported the shape files to postgresql (9.1). I work with GeoServer 2.1.4. > Deleting features works well, but adding or editing doesn't! Same with the Openlayers demo "wfs-t.html" with the tassi datasets. When I use shapefiles instead of postgresql all works well! > > I would very much appreciate some hints how to solve this. I tried to install and run GeoServer on Jetty, Tomcat6 and Tomcat on top of Apache HTTP but in all 3 cases the same error so maybe something went wrong while importing the shapefiles to the database!? > > I get this "Success" message: > WFS-Transaction: Success > > xmlns="http://opengis.net/wfs" > xmlns="http://opengis.net/ogc? > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs http://localhost:8090/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd"> > > > > > > > > > > ...but after reloading the new features are gone. > > Please let me know if any log data would help you to help me! > cheers > pedro > > > > > peter lanz > 00491632465592 > berlin > > flasherei.net > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pwittle at peterbrett.com Thu Aug 16 03:19:50 2012 From: pwittle at peterbrett.com (Paul Wittle) Date: Thu, 16 Aug 2012 10:19:50 +0000 Subject: [OpenLayers-Users] Problem with WMSgetfeatureinfo control Message-ID: Hi folks, After a morning of list surfing and tweaks this one has me beat...I'm having trouble getting a WMSgetfeatureinfo control to work. The original overlays were in WGS84 whilst the mapping is OSGB but I've not reprojected the layer in GeoServer so I don't think it should be a projection issue. I've added layers:[] and layerurls:[] to the infocontrol and then subsequently moved the layer control to the for loop at the bottom (see code example below). var infoControls = { click: new OpenLayers.Control.WMSGetFeatureInfo({ url: "https://domain/geoserver/wms", layerurls: ["https://domain/geoserver/database/wms","https://domain/geoserver/ODS/wms"], title: 'Identify features by clicking', queryVisible: true }) }; //Add the appropriate handlers for (var i in infoControls) { infoControls[i].events.register("getfeatureinfo", this, showInfo); map.addControl(infoControls[i]); } infoControls.click.activate(); for (var key in infoControls) { var control = infoControls[key]; control.layers = [DCycle, PCycle]; } The domain is not available publicly so it is difficult of you to test the issue but perhaps I'm missing something obvious. The layer definition is as follows: var DCycle = new OpenLayers.Layer.WMS("Raw Locations", "https://domain/geoserver/database/wms", { LAYERS: 'database:cycleracksOSGB', srs: 'EPSG:27700', STYLES: '', format: format, transparent: 'true', tiled: true, tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom }, { buffer: 0, displayOutsideMaxExtent: true, isBaseLayer: false, // exclude this layer from layer container nodes displayInLayerSwitcher: true }); var PCycle = new OpenLayers.Layer.WMS("Published Locations", "https://domain/geoserver/ODS/wms", { LAYERS: 'ODS:ODScycleOSGB', STYLES: '', format: format, transparent: 'true', tiled: true, tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom }, { buffer: 0, displayOutsideMaxExtent: true, isBaseLayer: false, // exclude this layer from layer container nodes displayInLayerSwitcher: true }); var mapPanel = new GeoExt.MapPanel({ renderTo:'mapContainer', width: 600, height: 400, map: map, zoom: 6.5, title: 'Map Window', layers: [BMap, DCycle, PCycle] }); The problem is that clicking on the map has no effect the get feature request is ignored. This only happens when I try to limit the layers, but that said, I think it only queries the base map so it must be a problem with the layer definition but I'm not sure what. Any suggestions? Thanks, Paul Peter Brett Associates LLP is a limited liability partnership registered in England and Wales. Registered number: OC334398. Roger Tym & Partners and Baker Associates are part of Peter Brett Associates LLP. A list of members is open to inspection at our registered office. Registered Office: Caversham Bridge House, Waterman Place, Reading, Berkshire, RG1 8DN. UK T: +44 (0)118 950 0761 F: +44 (0)118 959 7498. Brett Consulting Limited is wholly owned by Peter Brett Associates LLP. Registered number: 07765026. Registered address: as above. Email is used as a convenient medium for rapid data transfer. Any contractual correspondence sent or received by email will not be held to be such unless and until it is received in writing by fax or letter. Likewise, file attachments must be treated as uncontrolled documents until issued as hard copy. This email and any files transmitted with it are confidential and may be legally privileged, and are intended solely for the use of the individual or entity to which they are addressed. If an addressing or transmission error has misdirected this email please notify the author by replying to this email and delete the email. If you are not the intended recipient you must not use or disclose, print or rely on this email. You are advised that you open any attachment at your own risk. Any OS Data attached to this email is issued in accordance with Licence No. 100021575 under condition that it is used to plot once and not retained on the recipients computer system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From osm at tappenbeck.net Thu Aug 16 07:04:18 2012 From: osm at tappenbeck.net (Jan Tappenbeck) Date: Thu, 16 Aug 2012 16:04:18 +0200 Subject: [OpenLayers-Users] Limit-Zoomlevel-Problem Message-ID: <502CFDE2.9020400@tappenbeck.net> hi ! in german osm-forum [1] we discuss about the limit the zoomlevels and the result is: |// resulutions wird einmal irgendwo am Anfang definiert. var resolutions = [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135]; // sp?ter var hkts = new OpenLayers.Layer.Vector("hkts", { baselayer: false, maxResolution: resolutions[10], minResolution: resolutions[14], ... }); but my question now is - is it really|required to define|resolutions| by the real value or is there a possibillity to define max / minresoltion directly by the zoomlevel? regards Jan :-)| [1] | -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterlanz at yahoo.com Thu Aug 16 09:20:57 2012 From: peterlanz at yahoo.com (Peter Lanz) Date: Thu, 16 Aug 2012 09:20:57 -0700 (PDT) Subject: [OpenLayers-Users] WFS-T: Delete Feature works, edit or create Feature does not work In-Reply-To: <2ACF27D8-BA3A-4DA0-B973-8D6FCBED32E8@opengeo.org> References: <1345110840.25109.YahooMailNeo@web161605.mail.bf1.yahoo.com> <2ACF27D8-BA3A-4DA0-B973-8D6FCBED32E8@opengeo.org> Message-ID: <1345134057.49481.YahooMailNeo@web161606.mail.bf1.yahoo.com> Thank you very much for the hint Bart!!! - loadin the legacy.sql definitions solved the problem ... regarding the wfs-t from gistutor.com . Unfortunately, the openlayers demo "wfs-t.html" still won't work. Same picture as before I get the "Success" message but after reloading all changes are gone. The data for both wfs-t services are saved in the same database. this was installed automatically with the postgis v2.0 extension and is called "postgis20". maybe apart from legacy.sql which I just loaded, there are some more definitions missing? ? kindly, pedro ________________________________ peter lanz ?00491632465592 ?berlin ? ?flasherei.net ? ? >________________________________ > From: Bart van den Eijnden >To: Peter Lanz >Cc: "openlayers-users at lists.osgeo.org" >Sent: Thursday, August 16, 2012 11:59 AM >Subject: Re: [OpenLayers-Users] WFS-T: Delete Feature works, edit or create Feature does not work > > >My best guess is that you need to load the legacy.sql into PostGIS, see also: > > >https://getsatisfaction.com/opengeo/topics/unable_to_edit_the_geometry_of_postgis_layers > > >Best regards, >Bart > > >--? >Bart van den Eijnden >OpenGeo -?http://opengeo.org >Expert service straight from the developers. > > > > >On Aug 16, 2012, at 11:54 AM, Peter Lanz wrote: > >Dear OpenLayer Users! >> >> >>I tried to set up a WFS-T using the tutorial at?http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html. Doing so, I imported the shape files to postgresql (9.1). I work with GeoServer 2.1.4.? >>Deleting features works well, but adding or editing doesn't! Same with the Openlayers demo "wfs-t.html" with the tassi datasets. When I use shapefiles instead of postgresql all works well! >> >> >>I would very much appreciate some hints how to solve this. I tried to install and run GeoServer on Jetty, Tomcat6 and Tomcat on top of Apache HTTP but in all 3 cases the same error so maybe something went wrong while importing the shapefiles to the database!? >> >> >>I get this "Success" message: >>WFS-Transaction: Success? >> >>>xmlns="http://opengis.net/wfs" >>xmlns="http://opengis.net/ogc? >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>xsi:schemaLocation="http://www.opengis.net/wfs http://localhost:8090/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd"> >> >> >> >> >> >> >> >> >> >>...but after reloading the new features are gone. >> >> >>Please let me know if any log data would help you to help me! >>cheers >>pedro >> >> >>? >> >> >> >> >> >>________________________________ >> >>peter lanz >>?00491632465592 >>?berlin >>? >>?flasherei.net >> >>? >>?_______________________________________________ >>Users mailing list >>Users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Thu Aug 16 22:56:29 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 17 Aug 2012 07:56:29 +0200 Subject: [OpenLayers-Users] Limit-Zoomlevel-Problem In-Reply-To: <502CFDE2.9020400@tappenbeck.net> References: <502CFDE2.9020400@tappenbeck.net> Message-ID: <4F7F6686FA9044C78DF85561A2B5051B@pcawh2> for the baselayer should the resolutions be known. if baselayer = map.layers[0] map.layers[0].resolutions.length map.layers[0].resolutions[10] map.layers[0].resolutions[14] this should work. Arnd _____ Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Jan Tappenbeck Gesendet: Donnerstag, 16. August 2012 16:04 An: users at openlayers.org Betreff: [OpenLayers-Users] Limit-Zoomlevel-Problem hi ! in german osm-forum [1] we discuss about the limit the zoomlevels and the result is: // resulutions wird einmal irgendwo am Anfang definiert. var resolutions = [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135]; // sp?ter var hkts = new OpenLayers.Layer.Vector("hkts", { baselayer: false, maxResolution: resolutions[10], minResolution: resolutions[14], ... }); but my question now is - is it really required to define resolutions by the real value or is there a possibillity to define max / minresoltion directly by the zoomlevel? regards Jan :-) [1] -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Thu Aug 16 23:05:56 2012 From: karsten at terragis.net (karsten) Date: Thu, 16 Aug 2012 23:05:56 -0700 Subject: [OpenLayers-Users] OpenLayers and Google v3.6 geocoder x and y variable name change ? Message-ID: <956E2231BE104E338E4AAFE6A91EE3D3@terragis2> Hi all, I have been using the Google v3 geocoder in conjunction with OpenLayers in some web gis projects for a while very low volume ... Some months ago the geocoder (at least the way I out it in) ceased to work correctly and I checked in Firebug what was wrong. Apparently Google changed the name of the x and y variables for the coordinates . No idea why - but when I updated to what I saw in firebug it worked again. Now today (or some days back) apparently Google did another change again .. Again no idea why So my line of code below previous did get me the coordinates I wanted to zoom the map to: treffer_zoom(results[0].geometry.location.Sa ,results[0].geometry.location.Ra); so Sa and Ra variable names for the coordinates - but now firebugs shows that the names are now 'a' and 'ab' - what the heck ? Has anyone an idea why this happened, if Google does this on purpose to break sites or if there is a better way to avoid this every other couple of month to happen ? Cheers Karsten Karsten Vennemann Principal Terra GIS LTD www.terragis.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From zac.spitzer at gmail.com Thu Aug 16 23:30:26 2012 From: zac.spitzer at gmail.com (Zac Spitzer) Date: Fri, 17 Aug 2012 16:30:26 +1000 Subject: [OpenLayers-Users] OpenLayers and Google v3.6 geocoder x and y variable name change ? In-Reply-To: <956E2231BE104E338E4AAFE6A91EE3D3@terragis2> References: <956E2231BE104E338E4AAFE6A91EE3D3@terragis2> Message-ID: are you using an api key and are you violating their TOS? On Fri, Aug 17, 2012 at 4:05 PM, karsten wrote: > Hi all, > > I have been using the Google v3 geocoder > > in conjunction with OpenLayers in some web gis projects for a while very low > volume ... Some months ago the geocoder (at least the way I out it in) > ceased to work correctly and I checked in Firebug what was wrong. Apparently > Google changed the name of the x and y variables for the coordinates . No > idea why - but when I updated to what I saw in firebug it worked again. Now > today (or some days back) apparently Google did another change again .. > Again no idea why > So my line of code below previous did get me the coordinates I wanted to > zoom the map to: > > treffer_zoom(results[0].geometry.location.Sa > ,results[0].geometry.location.Ra); > > so Sa and Ra variable names for the coordinates - but now firebugs shows > that the names are now 'a' and 'ab' - what the heck ? > Has anyone an idea why this happened, if Google does this on purpose to > break sites or if there is a better way to avoid this every other couple of > month to happen ? > > Cheers > Karsten > > Karsten Vennemann > Principal > > Terra GIS LTD > www.terragis.net > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 From karsten at terragis.net Thu Aug 16 23:37:12 2012 From: karsten at terragis.net (karsten) Date: Thu, 16 Aug 2012 23:37:12 -0700 Subject: [OpenLayers-Users] OpenLayers and Google v3.6 geocoder x and y variable name change ? In-Reply-To: References: <956E2231BE104E338E4AAFE6A91EE3D3@terragis2> Message-ID: Not that I know of at least :) I am using To include the api, have an open aecssible map ,thats all .. Karsten -----Original Message----- From: Zac Spitzer [mailto:zac.spitzer at gmail.com] Sent: Thursday, August 16, 2012 11:30 PM To: karsten at terragis.net Cc: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] OpenLayers and Google v3.6 geocoder x and y variable name change ? are you using an api key and are you violating their TOS? On Fri, Aug 17, 2012 at 4:05 PM, karsten wrote: > Hi all, > > I have been using the Google v3 geocoder > To include the api, have an open aecssible map ,thats all .. > Karsten > > -----Original Message----- > From: Zac Spitzer [mailto:zac.spitzer at gmail.com] > Sent: Thursday, August 16, 2012 11:30 PM > To: karsten at terragis.net > Cc: openlayers-users at lists.osgeo.org > Subject: Re: [OpenLayers-Users] OpenLayers and Google v3.6 geocoder x and y > variable name change ? > > are you using an api key and are you violating their TOS? > > On Fri, Aug 17, 2012 at 4:05 PM, karsten wrote: > > Hi all, > > > > I have been using the Google v3 geocoder greetings Ruben From: Alexandre Dub? Sent: Friday, August 17, 2012 2:53 PM To: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] SelectFeature and navigation Hi Ruben, Would you please provide more details, like a live short demo showing the issue or paste some code ? The SelectFeature control doesn't deactivates itself after a pan or zoom, so we need to find out why it does in your case. To help you find out what the issue is, you can minimize your code step by step. This nice article mentions a lot about this, I'd suggest you read it first : http://docs.openlayers.org/help/minimize.html Best regards, Alexandre On 12-08-17 04:27 AM, ontwerp at limotec.be wrote: Hello When the map is loaded the selectfeature works, but after a pan or zoom it doesn?t. It seems that the selectfeature is deactivated after pan or zoom. Is there a way to reactivate the selectfeature after a pan or zoom? greetings Ruben _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------------------------------------------------------------------------- _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rifins at gmail.com Fri Aug 17 08:17:15 2012 From: rifins at gmail.com (jkm) Date: Fri, 17 Aug 2012 17:17:15 +0200 Subject: [OpenLayers-Users] Get OpenLayers.Handler.Path points Message-ID: Hi, Is there any way to get the couple of points that define a path drawn with OpenLayers.Handler.Path? A user can use the measurement tool, and then I would like to let him to save the path as a new line.. But I don't know how to find the points... Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri Aug 17 10:57:26 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Fri, 17 Aug 2012 13:57:26 -0400 Subject: [OpenLayers-Users] SelectFeature and navigation In-Reply-To: References: <7E7EA4AA322E4F38BFA5BD78582E305E@OntwerpPC021> <502E3ECE.5050506@mapgears.com> Message-ID: <502E8606.3010705@mapgears.com> Hi, At this point, I don't know what could be the cause of this behavior. Could you provide a small live demo showing the issue ? Alexandre On 12-08-17 09:14 AM, ontwerp at limotec.be wrote: > Hi > The code is below. > The problem is that after a pan or zoom the onSelect function of the > SelectFeature is no longer called. DragFeature still works. > > > greetings > Ruben > *From:* Alexandre Dub? > *Sent:* Friday, August 17, 2012 2:53 PM > *To:* openlayers-users at lists.osgeo.org > > *Subject:* Re: [OpenLayers-Users] SelectFeature and navigation > Hi Ruben, > > Would you please provide more details, like a live short demo > showing the issue or paste some code ? The SelectFeature control > doesn't deactivates itself after a pan or zoom, so we need to find out > why it does in your case. > > To help you find out what the issue is, you can minimize your code > step by step. This nice article mentions a lot about this, I'd > suggest you read it first : > http://docs.openlayers.org/help/minimize.html > > Best regards, > > Alexandre > > > On 12-08-17 04:27 AM, ontwerp at limotec.be wrote: >> Hello >> When the map is loaded the selectfeature works, but after a pan or >> zoom it doesn't. It seems that the selectfeature is deactivated after >> pan or zoom. >> Is there a way to reactivate the selectfeature after a pan or zoom? >> greetings >> Ruben >> >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > ------------------------------------------------------------------------ > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Fri Aug 17 11:35:35 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Fri, 17 Aug 2012 11:35:35 -0700 Subject: [OpenLayers-Users] Catching JSON Message-ID: Hi, I am returning a JSON to a GeoExt app and this is the code that is collecting the return, var control = new OpenLayers.Control.Click({ trigger: function(evt) { var lonLat = evt.xy; if (popup) popup.close(); var request = Ext.Ajax.request({ url:"http://128.196.142.94:9000/info?lat="+ panel.map.getLonLatFromViewPortPx(lonLat).lat +"&lon=" + panel.map.getLonLatFromViewPortPx(lonLat).lon, disableCaching: false, success: function(response) { var obj = Ext.decode(response.responseText); console.log(obj); console.dir(obj); addToPopup(lonLat, response.responseText); }, failure: function(response) { console.log('server-side failure with status code ' + response.status); addToPopup(lonLat, "Server side Failure"); } //callback: myhandler }); }}); I wish to obtain the returned JSON and then assign it to the popUp but whenever I try to connect to the App it is returning the following error, OPTIONS http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125 405 (Method Not Allowed) XMLHttpRequest cannot load http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125. Origin null is not allowed by Access-Control-Allow-Origin. test.html:222server-side failure with status code 0 If you simply pass the url ` http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125`you will obtain the JSON but for some reason there is failure that keeps occurring in the application. Is there CORS that can be used in the OpenLayers or GeoExt. I have tried using ExtJS JSON-P but I am not sure what should I enter in the 'callback' of, -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Aug 17 11:45:09 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 17 Aug 2012 14:45:09 -0400 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: References: Message-ID: <502E9135.9040206@swoodbridge.com> Is you main page loading from http://128.196.142.94:9000/... If not you are trying to make an Ajax request to a host that is not the same as the page that you loaded. This is not allowed because of Same Origin Policy. You can setup a proxy to work around this. -Steve W On 8/17/2012 2:35 PM, Smaran Harihar wrote: > Hi, > > I am returning a JSON to a GeoExt app and this is the code that is > collecting the return, > > var control = new OpenLayers.Control.Click({ > trigger: function(evt) { > var lonLat = evt.xy; > if (popup) popup.close(); > var request = Ext.Ajax.request({ > url:"http://128.196.142.94:9000/info?lat="+ > panel.map.getLonLatFromViewPortPx(lonLat).lat +"&lon=" + > panel.map.getLonLatFromViewPortPx(lonLat).lon, > disableCaching: false, > success: function(response) { > var obj = Ext.decode(response.responseText); > console.log(obj); > console.dir(obj); > addToPopup(lonLat, response.responseText); > }, > failure: function(response) { > console.log('server-side failure with status code ' + > response.status); > addToPopup(lonLat, "Server side Failure"); > } > //callback: myhandler > }); > }}); > > I wish to obtain the returned JSON and then assign it to the popUp but > whenever I try to connect to the App it is returning the following error, > > OPTIONS > http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125 > 405 (Method Not Allowed) > XMLHttpRequest cannot load > http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125. > Origin null is not allowed by Access-Control-Allow-Origin. > test.html:222server-side failure with status code 0 > > If you simply pass the url > `http://128.196.142.94:9000/info?lat=55.44873046875&lon=-118.17626953125` > you will obtain the JSON but for some reason there is failure that keeps > occurring in the application. > > Is there CORS that can be used in the OpenLayers or GeoExt. I have tried > using ExtJS JSON-P but I am not sure what should I enter in the > 'callback' of, > > > > > -- > Thanks & Regards > Smaran Harihar > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From smaran.harihar at gmail.com Fri Aug 17 11:50:45 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Fri, 17 Aug 2012 11:50:45 -0700 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: <502E9135.9040206@swoodbridge.com> References: <502E9135.9040206@swoodbridge.com> Message-ID: Thanks for the reply Steve. I am using bottle to respond to the lat n long which has been sent. Since I am not using CGI, using the cgi proxy is not helping. Also I did try using cgi proxy but it made no difference. On Fri, Aug 17, 2012 at 11:45 AM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: > Is you main page loading from http://128.196.142.94:9000/... > If not you are trying to make an Ajax request to a host that is not the > same as the page that you loaded. This is not allowed because of Same > Origin Policy. You can setup a proxy to work around this. > > -Steve W > > > On 8/17/2012 2:35 PM, Smaran Harihar wrote: > >> Hi, >> >> I am returning a JSON to a GeoExt app and this is the code that is >> collecting the return, >> >> var control = new OpenLayers.Control.Click({ >> trigger: function(evt) { >> var lonLat = evt.xy; >> if (popup) popup.close(); >> var request = Ext.Ajax.request({ >> url:"http://128.196.142.94:**9000/info?lat= >> "+ >> panel.map.**getLonLatFromViewPortPx(**lonLat).lat +"&lon=" + >> panel.map.**getLonLatFromViewPortPx(**lonLat).lon, >> disableCaching: false, >> success: function(response) { >> var obj = Ext.decode(response.**responseText); >> console.log(obj); >> console.dir(obj); >> addToPopup(lonLat, response.responseText); >> }, >> failure: function(response) { >> console.log('server-side failure with status code ' + >> response.status); >> addToPopup(lonLat, "Server side Failure"); >> } >> //callback: myhandler >> }); >> }}); >> >> I wish to obtain the returned JSON and then assign it to the popUp but >> whenever I try to connect to the App it is returning the following error, >> >> OPTIONS >> http://128.196.142.94:9000/**info?lat=55.44873046875&lon=-** >> 118.17626953125 >> 405 (Method Not Allowed) >> XMLHttpRequest cannot load >> http://128.196.142.94:9000/**info?lat=55.44873046875&lon=-** >> 118.17626953125 >> . >> Origin null is not allowed by Access-Control-Allow-Origin. >> test.html:222server-side failure with status code 0 >> >> If you simply pass the url >> `http://128.196.142.94:9000/**info?lat=55.44873046875&lon=-** >> 118.17626953125`< >> http://128.196.142.94:9000/**info?lat=55.44873046875&lon=-** >> 118.17626953125%60 >> > >> >> you will obtain the JSON but for some reason there is failure that keeps >> occurring in the application. >> >> Is there CORS that can be used in the OpenLayers or GeoExt. I have tried >> using ExtJS JSON-P but I am not sure what should I enter in the >> 'callback' of, >> >> >>> >>> >>> -- >>> Thanks & Regards >>> Smaran Harihar >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> _______________________________________________ >> Users mailing list >> Users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > -- > Thanks & Regards > Smaran Harihar > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- I.R From sdavies at sdc.com.au Fri Aug 17 23:03:37 2012 From: sdavies at sdc.com.au (Stephen Davies) Date: Sat, 18 Aug 2012 15:33:37 +0930 Subject: [OpenLayers-Users] reproject error Message-ID: <201208181533.37841.sdavies@sdc.com.au> I have a layer defined with reproject:true (see below). This generates a javascript error: getBoundsFromBaseLayer is not a function. Openlayers 2.12 stored locally. var trk = new OpenLayers.Layer.WMS( "TRK", "http://www.agua.com.au/cgi-bin/mapserv?", {map: '/var/www/unit.map', layers: 'unit', format: 'png', transparent: 'true', srs: 'EPSG:4326', isBaselayer:false }, {'reproject':true} ); Looking in OpenLayers.js I see: draw:function(){var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a? (this.layer!=this.layer.map.baseLayer&& this.layer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.position)),this.isLoading?this._loadEvent="reload": (this.isLoading=! 0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):this.unload();return a} -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From ahocevar at opengeo.org Sat Aug 18 14:16:56 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sat, 18 Aug 2012 23:16:56 +0200 Subject: [OpenLayers-Users] reproject error In-Reply-To: <201208181533.37841.sdavies@sdc.com.au> References: <201208181533.37841.sdavies@sdc.com.au> Message-ID: The reproject option is deprecated. I strongly recommend to not use it. If you still want to, you have to include deprecated.js in your build. Andreas. On Sat, Aug 18, 2012 at 8:03 AM, Stephen Davies wrote: > I have a layer defined with reproject:true (see below). > > This generates a javascript error: > > getBoundsFromBaseLayer is not a function. > > Openlayers 2.12 stored locally. > > var trk = new OpenLayers.Layer.WMS( "TRK", > "http://www.agua.com.au/cgi-bin/mapserv?", > {map: '/var/www/unit.map', > layers: 'unit', > format: 'png', > transparent: 'true', > srs: 'EPSG:4326', > isBaselayer:false > }, > {'reproject':true} > ); > > Looking in OpenLayers.js I see: > > draw:function(){var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a? > (this.layer!=this.layer.map.baseLayer&& > this.layer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.position)),this.isLoading?this._loadEvent="reload": > (this.isLoading=! > 0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):this.unload();return > a} > -- > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 0583 > Records & Collections Management. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From sdavies at sdc.com.au Sat Aug 18 17:28:01 2012 From: sdavies at sdc.com.au (Stephen Davies) Date: Sun, 19 Aug 2012 09:58:01 +0930 Subject: [OpenLayers-Users] reproject error In-Reply-To: References: <201208181533.37841.sdavies@sdc.com.au> Message-ID: <201208190958.01252.sdavies@sdc.com.au> Thanks Andreas. I didn't find that in the doco and many examples and how-to's still include it. Removing it leaves me with a working map. Why is the reproject function still in OpenLayers.js - particularly in a form that doesn't work? Cheers, Stephen On Sunday, August 19, 2012 06:46:56 AM Andreas Hocevar wrote: > The reproject option is deprecated. I strongly recommend to not use > it. If you still want to, you have to include deprecated.js in your > build. > > Andreas. > > On Sat, Aug 18, 2012 at 8:03 AM, Stephen Davies wrote: > > I have a layer defined with reproject:true (see below). > > > > This generates a javascript error: > > > > getBoundsFromBaseLayer is not a function. > > > > Openlayers 2.12 stored locally. > > > > var trk = new OpenLayers.Layer.WMS( "TRK", > > > > "http://www.agua.com.au/cgi-bin/mapserv?", > > {map: '/var/www/unit.map', > > > > layers: 'unit', > > format: 'png', > > transparent: 'true', > > > > srs: 'EPSG:4326', > > isBaselayer:false > > }, > > {'reproject':true} > > > > ); > > > > Looking in OpenLayers.js I see: > > > > draw:function(){var > > a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a? > > (this.layer!=this.layer.map.baseLayer&& > > this.layer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.posit > > ion)),this.isLoading?this._loadEvent="reload": (this.isLoading=! > > 0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):thi > > s.unload();return a} > > -- > > ========================================================================= > > ==== Stephen Davies Consulting P/L Phone: > > 08-8177 1595 Adelaide, South Australia. > > Mobile:040 304 0583 Records & Collections Management. > > _______________________________________________ > > Users mailing list > > Users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From ahocevar at opengeo.org Sun Aug 19 03:24:20 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Sun, 19 Aug 2012 12:24:20 +0200 Subject: [OpenLayers-Users] reproject error In-Reply-To: <201208190958.01252.sdavies@sdc.com.au> References: <201208181533.37841.sdavies@sdc.com.au> <201208190958.01252.sdavies@sdc.com.au> Message-ID: Hey, it does work if you really want to use it. All you need to do is load deprecated.js in addition to OpenLayers.js. The reason why deprecated things are still in the library is backwards compatibility, and since 2.12 you need to load deprecated.js for these things to still work. You'll find further explanations in the release notes: https://github.com/openlayers/openlayers/blob/master/notes/2.12.md#deprecated-components Andreas. On Sun, Aug 19, 2012 at 2:28 AM, Stephen Davies wrote: > Thanks Andreas. > I didn't find that in the doco and many examples and how-to's still include it. > Removing it leaves me with a working map. > > Why is the reproject function still in OpenLayers.js - particularly in a form > that doesn't work? > > Cheers, > Stephen > > On Sunday, August 19, 2012 06:46:56 AM Andreas Hocevar wrote: >> The reproject option is deprecated. I strongly recommend to not use >> it. If you still want to, you have to include deprecated.js in your >> build. >> >> Andreas. >> >> On Sat, Aug 18, 2012 at 8:03 AM, Stephen Davies wrote: >> > I have a layer defined with reproject:true (see below). >> > >> > This generates a javascript error: >> > >> > getBoundsFromBaseLayer is not a function. >> > >> > Openlayers 2.12 stored locally. >> > >> > var trk = new OpenLayers.Layer.WMS( "TRK", >> > >> > "http://www.agua.com.au/cgi-bin/mapserv?", >> > {map: '/var/www/unit.map', >> > >> > layers: 'unit', >> > format: 'png', >> > transparent: 'true', >> > >> > srs: 'EPSG:4326', >> > isBaselayer:false >> > }, >> > {'reproject':true} >> > >> > ); >> > >> > Looking in OpenLayers.js I see: >> > >> > draw:function(){var >> > a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a? >> > (this.layer!=this.layer.map.baseLayer&& >> > this.layer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.posit >> > ion)),this.isLoading?this._loadEvent="reload": (this.isLoading=! >> > 0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):thi >> > s.unload();return a} >> > -- >> > ========================================================================= >> > ==== Stephen Davies Consulting P/L Phone: >> > 08-8177 1595 Adelaide, South Australia. >> > Mobile:040 304 0583 Records & Collections Management. >> > _______________________________________________ >> > Users mailing list >> > Users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 0583 > Records & Collections Management. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From p.scadden at gns.cri.nz Sun Aug 19 15:08:23 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 20 Aug 2012 10:08:23 +1200 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: References: <502E9135.9040206@swoodbridge.com> Message-ID: <503163D7.5020900@gns.cri.nz> > I am using bottle to respond to the lat n long which has been sent. > Since I am not using CGI, using the cgi proxy is not helping. Also I > did try using cgi proxy but it made no difference. Proxy is absolutely the way to get around cross-origin conflicts. Ajax uses XHR which necessarily has much tougher cross-origin policies. The way this works is to have a proxy page INSIDE YOUR APPLICATION - ie in the same directory as your page or in a subdirectory below it.(so it is absolutely NOT a cross origin). The proxy page is code that needs to do this: 1/ check that the passed URL is reasonable for the application to call. If you dont do this, then you are creating an open proxy that can be used by spammers, anonymomizers, etc. 2/ Open an http connection to the passed page 3/ pipe the page content as output. If you are returning json though, you can could instead look at using the openlayers script protocol. It depends on wrapping the returned json in a function call. (JSONP method if you want to read up on it). However, I would say getting a working proxy up will save you a lot of grief. 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 ontwerp at limotec.be Mon Aug 20 01:04:47 2012 From: ontwerp at limotec.be (ontwerp at limotec.be) Date: Mon, 20 Aug 2012 10:04:47 +0200 Subject: [OpenLayers-Users] SelectFeature and navigation In-Reply-To: <502E8606.3010705@mapgears.com> References: <7E7EA4AA322E4F38BFA5BD78582E305E@OntwerpPC021> <502E3ECE.5050506@mapgears.com> <502E8606.3010705@mapgears.com> Message-ID: <9DA4339273CC4AB491853F73B165C908@OntwerpPC021> Hi I found the sollution. It wasn?t the navigation control that did it but the dragfeature control. I added this to the dragfeature: dragFeature.handlers['drag'].stopDown = false; dragFeature.handlers['drag'].stopUp = false; dragFeature.handlers['drag'].stopClick = false; dragFeature.handlers['feature'].stopDown = false; dragFeature.handlers['feature'].stopUp = false; dragFeature.handlers['feature'].stopClick = false; Now everything works. greetings Ruben From: Alexandre Dub? Sent: Friday, August 17, 2012 7:57 PM To: ontwerp at limotec.be Cc: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] SelectFeature and navigation Hi, At this point, I don't know what could be the cause of this behavior. Could you provide a small live demo showing the issue ? Alexandre On 12-08-17 09:14 AM, ontwerp at limotec.be wrote: Hi The code is below. The problem is that after a pan or zoom the onSelect function of the SelectFeature is no longer called. DragFeature still works. greetings Ruben From: Alexandre Dub? Sent: Friday, August 17, 2012 2:53 PM To: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] SelectFeature and navigation Hi Ruben, Would you please provide more details, like a live short demo showing the issue or paste some code ? The SelectFeature control doesn't deactivates itself after a pan or zoom, so we need to find out why it does in your case. To help you find out what the issue is, you can minimize your code step by step. This nice article mentions a lot about this, I'd suggest you read it first : http://docs.openlayers.org/help/minimize.html Best regards, Alexandre On 12-08-17 04:27 AM, ontwerp at limotec.be wrote: Hello When the map is loaded the selectfeature works, but after a pan or zoom it doesn?t. It seems that the selectfeature is deactivated after pan or zoom. Is there a way to reactivate the selectfeature after a pan or zoom? greetings Ruben _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com ------------------------------------------------------------------------------ _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From modala.raghuveer at gmail.com Mon Aug 20 08:43:09 2012 From: modala.raghuveer at gmail.com (modala) Date: Mon, 20 Aug 2012 08:43:09 -0700 (PDT) Subject: [OpenLayers-Users] Overlaying WMS layer on Google maps - help Message-ID: <1345477389266-4996413.post@n6.nabble.com> Hi, I am unable to overlay the WMS map on google maps. Can any one help me with this code function init(){ /* The full extent/bounds to which the Map can be zoomed */ var fullBounds = new OpenLayers.Bounds(-90, 0, 70, 30); /* Map variable is assigned a OpenLayers.Map */ map = new OpenLayers.Map("map", { div: "map", controls:[ new OpenLayers.Control.Navigation( {mouseWheelOptions: {interval: 100}} ), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.Attribution(), new OpenLayers.Control.LayerSwitcher(), //new OpenLayers.Control.Permalink(), //new OpenLayers.Control.OverviewMap() ], maxExtent: fullBounds, projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326") }); /* This is the stylemap which styles i.e. colors, borders, etc the selected features and clusters */ var fStyle = new OpenLayers.Style({ pointRadius: "${radius}", fillColor: "#ffcc66", fillOpacity: 0.8, strokeColor: "#cc6633", strokeWidth: 2, strokeOpacity: 0.8, label:"${count}", fontSize: "9px", fontWeight: "bold", }, { context: { radius: function(feature) { /* The radius of the cluster is set based on the number of features it contains*/ return Math.min(feature.cluster.length, 7) + 3; }, count: function(feature) { /* This displays the count of the features on the clusters */ if (feature.cluster.length>1) return feature.cluster.length; else return ""; } } }); /* the Thesis variable is assigned a OpenLayers.Layer.Vector */ thesis = new OpenLayers.Layer.Vector("Thesis", { projection: map.displayProjection, strategies: [ new OpenLayers.Strategy.Fixed(), /* Using the cluster strategy clusters the features that are too close into clusters. */ new OpenLayers.Strategy.Cluster({ //distance:20 //This value can be changed to change the distance which defines when to form clusters }) ], protocol: new OpenLayers.Protocol.HTTP({ /* The path to the KML files*/ url: "kml_final1.kml", //url: "georeferences_July19_2_modified.kml", format: new OpenLayers.Format.KML({ extractAttributes: true, maxDepth: 1, }) }), /* This style map says that the default style is the fstyle which is defined above, and upon selection, the one defined infront of 'select' gets activated */ styleMap: new OpenLayers.StyleMap({ "default": fStyle, "select": { fillColor: "#8aeeef", strokeColor: "#32a8a9", } }) }); /* This is an important function where once all the strategies are done loading i.e. the features are done loading, the set of features is assigned to the all_featuresArray which was initialized earlier. thesis.strategies[i] can be selected to choose either the clusters or the features, as per the order defined in the Vector */ thesis.events.register("loadend", this, function(){ all_featuresArray = thesis.strategies[1].features; }); /* These are the base layers on top of which the Vector will be displayed */ var gmap = new OpenLayers.Layer.Google("Google Streets", {numZoomLevels: 20, sphericalMercator: true} ); var gmap_phy = new OpenLayers.Layer.Google("Google Hybrid", {type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20, sphericalMercator: true}); var osm = new OpenLayers.Layer.OSM('Open Street Maps', 'http://tile.openstreetmap.org/${z}/${x}/${y}.png', {numZoomLevels: 20, sphericalMercator: true} ); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {isBaseLayer:false}); wms.projection = (map.displayProjection, map.getProjectionObject()) /* Add the above layers to the map */ map.addLayers([ gmap, gmap_phy, osm, wms]); /* Add the vectors to the Map */ map.addLayers([ thesis]); -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Overlaying-WMS-layer-on-Google-maps-help-tp4996413.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smaran.harihar at gmail.com Mon Aug 20 09:19:34 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Mon, 20 Aug 2012 09:19:34 -0700 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: <503163D7.5020900@gns.cri.nz> References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> Message-ID: Hi Phil, Thanks again for your guidance. I am bit confused when you said, have a proxy page INSIDE YOUR APPLICATION - ie in the same directory as your page or in a subdirectory below it. Did u mean that I should have my py script to which I making the AJAX request in the same dir? Then I already have. Only issue is that, the script is running on port 9000 ( http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875). So the domain is same but the ports are different. check that the passed URL is reasonable for the application to call I was able to call py script url (wget " http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875" -o test.1.log -O test.1), u can run this on terminal and it should fetch you the JSON. So, after this, how should I complete the other two parts? 2/ Open an http connection to the passed page 3/ pipe the page content as output. Thanks & Regrads, Smaran On Sun, Aug 19, 2012 at 3:08 PM, Phil Scadden wrote: > > > I am using bottle to respond to the lat n long which has been sent. > > Since I am not using CGI, using the cgi proxy is not helping. Also I > > did try using cgi proxy but it made no difference. > Proxy is absolutely the way to get around cross-origin conflicts. Ajax > uses XHR which necessarily has much tougher cross-origin policies. > The way this works is to have a proxy page INSIDE YOUR APPLICATION - ie > in the same directory as your page or in a subdirectory below it.(so it > is absolutely NOT a cross origin). The proxy page is code that needs to > do this: > 1/ check that the passed URL is reasonable for the application to call. > If you dont do this, then you are creating an open proxy that can be > used by spammers, anonymomizers, etc. > 2/ Open an http connection to the passed page > 3/ pipe the page content as output. > > If you are returning json though, you can could instead look at using > the openlayers script protocol. It depends on wrapping the returned json > in a function call. (JSONP method if you want to read up on it). > > However, I would say getting a working proxy up will save you a lot of > grief. > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Aug 20 09:54:05 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 20 Aug 2012 12:54:05 -0400 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> Message-ID: <50326BAD.9060102@swoodbridge.com> The domain and port must match the domain and port of the original page that is making the ajax request. On 8/20/2012 12:19 PM, Smaran Harihar wrote: > Hi Phil, > > Thanks again for your guidance. I am bit confused when you said, > > have a proxy page INSIDE YOUR APPLICATION - ie > in the same directory as your page or in a subdirectory below it. > > Did u mean that I should have my py script to which I making the AJAX > request in the same dir? Then I already have. Only issue is that, the > script is running on port 9000 > (http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875). > So the domain is same but the ports are different. > > check that the passed URL is reasonable for the application to call > > I was able to call py script url (wget > "http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875" -o > test.1.log -O test.1), u can run this on terminal and it should fetch > you the JSON. > > So, after this, how should I complete the other two parts? > > 2/ Open an http connection to the passed page > 3/ pipe the page content as output. > > Thanks & Regrads, > Smaran > > On Sun, Aug 19, 2012 at 3:08 PM, Phil Scadden > wrote: > > > > I am using bottle to respond to the lat n long which has been sent. > > Since I am not using CGI, using the cgi proxy is not helping. Also I > > did try using cgi proxy but it made no difference. > Proxy is absolutely the way to get around cross-origin conflicts. Ajax > uses XHR which necessarily has much tougher cross-origin policies. > The way this works is to have a proxy page INSIDE YOUR APPLICATION - ie > in the same directory as your page or in a subdirectory below it.(so it > is absolutely NOT a cross origin). The proxy page is code that needs to > do this: > 1/ check that the passed URL is reasonable for the application to call. > If you dont do this, then you are creating an open proxy that can be > used by spammers, anonymomizers, etc. > 2/ Open an http connection to the passed page > 3/ pipe the page content as output. > > If you are returning json though, you can could instead look at using > the openlayers script protocol. It depends on wrapping the returned json > in a function call. (JSONP method if you want to read up on it). > > However, I would say getting a working proxy up will save you a lot of > grief. > > Notice: This email and any attachments are confidential. If received > in error please destroy and immediately notify us. Do not copy or > disclose the contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From adube at mapgears.com Mon Aug 20 10:09:55 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 20 Aug 2012 13:09:55 -0400 Subject: [OpenLayers-Users] Overlaying WMS layer on Google maps - help In-Reply-To: <1345477389266-4996413.post@n6.nabble.com> References: <1345477389266-4996413.post@n6.nabble.com> Message-ID: <50326F63.4040304@mapgears.com> Hi, The OpenLayers.Layer.WMS class takes 4 arguments, see the constructor : http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Layer/WMS-js.html So, in your case, you're missing the 3rd argument, "params" {object}. Adding this and having the "options" {object} as your last argument should do the trick. HTH, Alexandre On 12-08-20 11:43 AM, modala wrote: > Hi, I am unable to overlay the WMS map on google maps. Can any one help me > with this code > function init(){ > > /* The full extent/bounds to which the Map can be zoomed */ > var fullBounds = new OpenLayers.Bounds(-90, 0, 70, 30); > > /* Map variable is assigned a OpenLayers.Map */ > map = new OpenLayers.Map("map", { > div: "map", > controls:[ > new OpenLayers.Control.Navigation( > {mouseWheelOptions: {interval: 100}} > ), > new OpenLayers.Control.PanZoomBar(), > new OpenLayers.Control.Attribution(), > new OpenLayers.Control.LayerSwitcher(), > //new OpenLayers.Control.Permalink(), > //new OpenLayers.Control.OverviewMap() > ], > maxExtent: fullBounds, > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4326") > }); > > /* This is the stylemap which styles i.e. colors, borders, etc the > selected features and clusters */ > var fStyle = new OpenLayers.Style({ > pointRadius: "${radius}", > fillColor: "#ffcc66", > fillOpacity: 0.8, > strokeColor: "#cc6633", > strokeWidth: 2, > strokeOpacity: 0.8, > label:"${count}", > fontSize: "9px", > fontWeight: "bold", > }, { > context: { > radius: function(feature) { > /* The radius of the cluster is set based on the > number of features it contains*/ > return Math.min(feature.cluster.length, 7) + 3; > }, > count: function(feature) { > /* This displays the count of the features on the clusters */ > if (feature.cluster.length>1) > return feature.cluster.length; > else > return ""; > } > } > }); > > /* the Thesis variable is assigned a OpenLayers.Layer.Vector */ > thesis = new OpenLayers.Layer.Vector("Thesis", { > projection: map.displayProjection, > strategies: [ > new OpenLayers.Strategy.Fixed(), > /* Using the cluster strategy clusters the features that are too close > into clusters. */ > new OpenLayers.Strategy.Cluster({ > //distance:20 //This value can be changed to change the distance which > defines when to form clusters > }) > ], > protocol: new OpenLayers.Protocol.HTTP({ > /* The path to the KML files*/ > url: "kml_final1.kml", > //url: "georeferences_July19_2_modified.kml", > format: new OpenLayers.Format.KML({ > extractAttributes: true, > maxDepth: 1, > }) > }), > /* This style map says that the default style is the fstyle which is > defined above, and upon selection, the one defined > infront of 'select' gets activated */ > styleMap: new OpenLayers.StyleMap({ > "default": fStyle, > "select": { > fillColor: "#8aeeef", > strokeColor: "#32a8a9", > } > }) > }); > > /* This is an important function where once all the strategies are done > loading i.e. the features are done loading, the > set of features is assigned to the all_featuresArray which was > initialized earlier. > thesis.strategies[i] can be selected to choose either the clusters or > the features, as per the order defined in the Vector */ > thesis.events.register("loadend", this, function(){ > all_featuresArray = thesis.strategies[1].features; > }); > > /* These are the base layers on top of which the Vector will be displayed > */ > var gmap = new OpenLayers.Layer.Google("Google Streets", {numZoomLevels: > 20, sphericalMercator: true} ); > var gmap_phy = new OpenLayers.Layer.Google("Google Hybrid", {type: > google.maps.MapTypeId.HYBRID, numZoomLevels: 20, sphericalMercator: true}); > var osm = new OpenLayers.Layer.OSM('Open Street Maps', > 'http://tile.openstreetmap.org/${z}/${x}/${y}.png', {numZoomLevels: 20, > sphericalMercator: true} ); > var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://vmap0.tiles.osgeo.org/wms/vmap0", {isBaseLayer:false}); > wms.projection = (map.displayProjection, map.getProjectionObject()) > /* Add the above layers to the map */ > map.addLayers([ gmap, gmap_phy, osm, wms]); > /* Add the vectors to the Map */ > map.addLayers([ thesis]); > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Overlaying-WMS-layer-on-Google-maps-help-tp4996413.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From ashore3 at verizon.net Mon Aug 20 12:02:20 2012 From: ashore3 at verizon.net (Arnie Shore) Date: Mon, 20 Aug 2012 15:02:20 -0400 Subject: [OpenLayers-Users] Popup Background Opacity/Transparent? In-Reply-To: <50326F63.4040304@mapgears.com> References: <1345477389266-4996413.post@n6.nabble.com> <50326F63.4040304@mapgears.com> Message-ID: <503289BC.8040900@verizon.net> I hope I'm wrong on this, but I see no way to specify the popup background opacity separately from its contents. (This doesn't apply to images in a popup, which I can't use here.) That is, I'd like - in effect - the popup's background to be invisible, while its elements are fully visible. Right now I see that the opacity factor applies to all its elements. Confirmed? AS From p.scadden at gns.cri.nz Mon Aug 20 13:56:42 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Tue, 21 Aug 2012 08:56:42 +1200 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> Message-ID: <5032A48A.4060502@gns.cri.nz> > Did u mean that I should have my py script to which I making the AJAX > request in the same dir? Then I already have. Only issue is that, the > script is running on port 9000 > (http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875). > So the domain is same but the ports are different. If ports are different, then its cross-domain. http://en.wikipedia.org/wiki/Same_origin_policy > > check that the passed URL is reasonable for the application to call > > I was able to call py script url (wget > "http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875" > -o test.1.log -O test.1), u can run this on terminal and it should > fetch you the JSON. Then call it via a proxy. XHR has the very tight rules for a good reason. By trying to fight browser security, you are on just making life difficult for yourself. > > So, after this, how should I complete the other two parts? > > 2/ Open an http connection to the passed page > 3/ pipe the page content as output. This is dependent on what your server and servlet container is. I use tomcat and so I have a proxy.jsp to do the work. Source code for white-list proxies are on the net. After checking the IP is okay (involved for my case), then the jsp code is: if (okFlag) { BufferedReader brrr = request.getReader(); String s; StringBuffer postContent = new StringBuffer(); while((s = brrr.readLine()) != null) postContent.append(s); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); if (postContent.length() > 0) { connection.setUseCaches(false); connection.setRequestMethod("POST"); connection.setDoInput(true); connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/xml"); OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream()); wr.write(postContent.toString()); wr.flush(); wr.close(); } String contentType = connection.getContentType(); if ("application/vnd.ogc.wms_xml".equals(contentType)) contentType = "text/xml"; response.setContentType(contentType); InputStream input = connection.getInputStream(); BufferedInputStream bis = new BufferedInputStream(input); ByteArrayOutputStream buf = new ByteArrayOutputStream(); int result = bis.read(); while (result != -1) { byte b = (byte)result; buf.write(b); result = bis.read(); } %><%=buf.toString()%><% } else { %>Access to <%=urlString%> prohibited<% } You should seek help on writing/getting a proxy from user groups dedicated to your particular server arrangement. I cant help you there. 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 ashore3 at verizon.net Mon Aug 20 13:24:51 2012 From: ashore3 at verizon.net (Arnie Shore) Date: Mon, 20 Aug 2012 16:24:51 -0400 Subject: [OpenLayers-Users] Popup Background Opacity/Transparent? In-Reply-To: <503289BC.8040900@verizon.net> References: <1345477389266-4996413.post@n6.nabble.com> <50326F63.4040304@mapgears.com> <503289BC.8040900@verizon.net> Message-ID: <50329D13.1060107@verizon.net> Yep, I'm wrong; I just tried popup.setBackgroundColor('transparent'); and it worked as expected; I missed the enclosing quotes in testing. Sorry for the bother. AS On 8/20/2012 3:02 PM, Arnie Shore wrote: > I hope I'm wrong on this, but I see no way to specify the popup > background opacity separately from its contents. (This doesn't apply to > images in a popup, which I can't use here.) > > That is, I'd like - in effect - the popup's background to be invisible, > while its elements are fully visible. Right now I see that the opacity > factor applies to all its elements. Confirmed? > > AS > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > From smaran.harihar at gmail.com Mon Aug 20 16:02:59 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Mon, 20 Aug 2012 16:02:59 -0700 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: <5032A48A.4060502@gns.cri.nz> References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> <5032A48A.4060502@gns.cri.nz> Message-ID: Thanks again Phil. So should I simply copy the jsp code that you have given into a file and name it proxy.jsp? And is there any other setting that you want me to do? Thanks, Smaran On Mon, Aug 20, 2012 at 1:56 PM, Phil Scadden wrote: > > > Did u mean that I should have my py script to which I making the AJAX > > request in the same dir? Then I already have. Only issue is that, the > > script is running on port 9000 > > (http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875 > ). > > So the domain is same but the ports are different. > If ports are different, then its cross-domain. > http://en.wikipedia.org/wiki/Same_origin_policy > > > > > check that the passed URL is reasonable for the application to call > > > > I was able to call py script url (wget > > "http://128.196.142.94:9000/info?lat=53.33935546875&lon=-121.99951171875 > " > > -o test.1.log -O test.1), u can run this on terminal and it should > > fetch you the JSON. > Then call it via a proxy. XHR has the very tight rules for a good > reason. By trying to fight browser security, you are on just making life > difficult for yourself. > > > > So, after this, how should I complete the other two parts? > > > > 2/ Open an http connection to the passed page > > 3/ pipe the page content as output. > This is dependent on what your server and servlet container is. I use > tomcat and so I have a proxy.jsp to do the work. Source code for > white-list proxies are on the net. After checking the IP is okay > (involved for my case), then the jsp code is: > if (okFlag) { > BufferedReader brrr = request.getReader(); > String s; > StringBuffer postContent = new StringBuffer(); > while((s = brrr.readLine()) != null) > postContent.append(s); > > HttpURLConnection connection = (HttpURLConnection) > url.openConnection(); > if (postContent.length() > 0) { > connection.setUseCaches(false); > connection.setRequestMethod("POST"); > connection.setDoInput(true); > connection.setDoOutput(true); > connection.setRequestProperty("Content-Type", > "application/xml"); > > OutputStreamWriter wr = new > OutputStreamWriter(connection.getOutputStream()); > wr.write(postContent.toString()); > wr.flush(); > wr.close(); > } > > String contentType = connection.getContentType(); > if ("application/vnd.ogc.wms_xml".equals(contentType)) > contentType = "text/xml"; > response.setContentType(contentType); > InputStream input = connection.getInputStream(); > BufferedInputStream bis = new BufferedInputStream(input); > ByteArrayOutputStream buf = new ByteArrayOutputStream(); > > int result = bis.read(); > while (result != -1) { > byte b = (byte)result; > buf.write(b); > result = bis.read(); > } > %><%=buf.toString()%><% > } else { > %>Access to <%=urlString%> prohibited<% > } > You should seek help on writing/getting a proxy from user groups > dedicated to your particular server arrangement. I cant help you there. > > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Mon Aug 20 20:07:29 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Mon, 20 Aug 2012 20:07:29 -0700 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: <5032C8FE.50203@gns.cri.nz> References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> <5032A48A.4060502@gns.cri.nz> <5032C8FE.50203@gns.cri.nz> Message-ID: Ok I already have proxy.cgi which i have placed in the cgi-bin/. Here is the cgi-bin code . I have added, '128.196.142.94', '128.196.142.94:9000' but still the error persists. I have also added the required line in js code, OpenLayers.ProxyHost = "../cgi-bin/proxy.cgi?url="; Is there any particular reason, Y even now it is not working? Thanks, Smaran On Mon, Aug 20, 2012 at 4:32 PM, Phil Scadden wrote: > > > > > > > So should I simply copy the jsp code that you have given into a file > > and name it proxy.jsp? > > > > And is there any other setting that you want me to do? > You can only run the jsp if you are working via tomcat. As is, that code > is an open proxy and it lacks the headers etc for a jsp page. What you > have to have a is way of telling whether the requested URL is valid or > not. Usual implementation is a white-list - somewhere in the code is a > list of allowed URLs. We have a much more complex scheme given the > nature of the maps that can be built (would be tedious tracking all the > WFS providers used) so there is a lot of code going into setting the > "okFlay". If you are using tomcat, then a simple generic proxy.jsp can > be got from https://github.com/terrestris/JSP-Whitelist-Proxy > > Just change the "allowedHosts" variable to list the URLs that you permit > (dont forget to include ports if not on :80) and put it in your > application directory. Add > OpenLayers.ProxyHost = "proxy.jsp?url="; > to your javascript and Ajax should work. > > > > 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. > > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Mon Aug 20 21:35:53 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Tue, 21 Aug 2012 16:35:53 +1200 Subject: [OpenLayers-Users] Catching JSON In-Reply-To: References: <502E9135.9040206@swoodbridge.com> <503163D7.5020900@gns.cri.nz> <5032A48A.4060502@gns.cri.nz> <5032C8FE.50203@gns.cri.nz> Message-ID: <50331029.4010903@gns.cri.nz> I have no idea how you debug into a python script running on CGI but I wonder about '../cgi-bin/proxy.cgi'. My understanding is that ../ would break same-origin for ajax. I think you should have /cgi-bin context and that line should be: OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=" This is an apache setup. You should have a ScriptAlias in the apache httpd.conf file and proxy.cgi should be in whatever directory is pointed to by the /cgi-bin/. On my apache test setup the line is: ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/" You can check your script is doing the right thing by looking at the net calls in firebug. Just rummaging in apache, and I realise that if you have mod_proxy module you should be able to set up an alias via ProxyPass as another way but I havent actually used this for openlayers stuff. 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 modala.raghuveer at gmail.com Tue Aug 21 09:12:44 2012 From: modala.raghuveer at gmail.com (modala) Date: Tue, 21 Aug 2012 09:12:44 -0700 (PDT) Subject: [OpenLayers-Users] Overlaying WMS layer on Google maps - help In-Reply-To: <50326F63.4040304@mapgears.com> References: <1345477389266-4996413.post@n6.nabble.com> <50326F63.4040304@mapgears.com> Message-ID: <1345565564418-4996727.post@n6.nabble.com> Alexandre, Thank you for your response. I tried that too. It did not work. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Overlaying-WMS-layer-on-Google-maps-help-tp4996413p4996727.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From adube at mapgears.com Tue Aug 21 10:40:50 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Tue, 21 Aug 2012 13:40:50 -0400 Subject: [OpenLayers-Users] Overlaying WMS layer on Google maps - help In-Reply-To: <1345565564418-4996727.post@n6.nabble.com> References: <1345477389266-4996413.post@n6.nabble.com> <50326F63.4040304@mapgears.com> <1345565564418-4996727.post@n6.nabble.com> Message-ID: <5033C822.9020009@mapgears.com> You could try minimizing your code. That could help locating where the issue is. See some doc about this : http://docs.openlayers.org/help/minimize.html Providing a live small demo could also help. HTH, Alexandre On 12-08-21 12:12 PM, modala wrote: > Alexandre, Thank you for your response. I tried that too. It did not work. > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Overlaying-WMS-layer-on-Google-maps-help-tp4996413p4996727.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From james at touchtable.com Tue Aug 21 11:29:06 2012 From: james at touchtable.com (James Lamanna) Date: Tue, 21 Aug 2012 11:29:06 -0700 Subject: [OpenLayers-Users] Problems adding a WMS layer Message-ID: <5033D372.2000801@touchtable.com> Hi, I'm trying to add a WMS layer from national atlas: var wms = new OpenLayers.Layer.WMS( 'states', 'http://webservices.nationalatlas.gov/wms/boundaries', { layers: 'states', transparent: true, version: '1.3.0' }); map.addLayer(wms); It doesn't seem to request any tiles until I zoom WAY out on the map, and then I get a request like this: http://webservices.nationalatlas.gov/wms/boundaries?LAYERS=states&TRANSPARENT=TRUE&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&CRS=EPSG%3A900913&BBOX=-90,-180,19580220.616111,19580130.616111&WIDTH=256&HEIGHT=256 Why are the coordinates for the BBOX in 2 different coordinate systems? Do I need to specify a resolutions list or what? It should be requesting tiles when I'm at a reasonable zoom level as well. Thanks. -- James From james at touchtable.com Tue Aug 21 11:43:39 2012 From: james at touchtable.com (James Lamanna) Date: Tue, 21 Aug 2012 11:43:39 -0700 Subject: [OpenLayers-Users] Problems adding a WMS layer In-Reply-To: <5033D372.2000801@touchtable.com> References: <5033D372.2000801@touchtable.com> Message-ID: <5033D6DB.9060109@touchtable.com> I also should mention that my map is intialized like this, with an ArcGISOnline base layer: map = new OpenLayers.Map('map', { displayProjection: new OpenLayers.Projection('EPSG:4326'), }); var arcGISBase = new OpenLayers.Layer.XYZ("Basemap", "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}", { sphericalMercator: true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), transitionEffect: 'resize', resolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135, 0.25, 0.1, 0.05], 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], } ); On 8/21/2012 11:29 AM, James Lamanna wrote: > Hi, > I'm trying to add a WMS layer from national atlas: > > var wms = new OpenLayers.Layer.WMS( > 'states', > 'http://webservices.nationalatlas.gov/wms/boundaries', > { > layers: 'states', > transparent: true, > version: '1.3.0' > }); > > map.addLayer(wms); > > It doesn't seem to request any tiles until I zoom WAY out on the map, > and then I get a request like this: > > http://webservices.nationalatlas.gov/wms/boundaries?LAYERS=states&TRANSPARENT=TRUE&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&CRS=EPSG%3A900913&BBOX=-90,-180,19580220.616111,19580130.616111&WIDTH=256&HEIGHT=256 > > > Why are the coordinates for the BBOX in 2 different coordinate systems? > > Do I need to specify a resolutions list or what? > It should be requesting tiles when I'm at a reasonable zoom level as well. > > Thanks. > > -- James > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From schnieders.a at gmail.com Wed Aug 22 05:05:55 2012 From: schnieders.a at gmail.com (Andreas Schnieders) Date: Wed, 22 Aug 2012 14:05:55 +0200 Subject: [OpenLayers-Users] Tap-Event on map/WMS Layer Message-ID: Hi there, I'm developing a webapp with a OpenLayers.Map object, a WMS layer and a KML-vector-layer. I want my app to react on clicks AND taps on the WMS layer or the map itself. Clicking and tapping on the KML-Features works perfectly fine in desktop browsers as well as on Safari on the iPad. I'm using it to display specific popup-div-overlays. Clicking somewhere in the blue on the map closes/hides the popup-overlays again. But on the iPad the simple "tap" event on the map or WMS layer seems not to be detectable or am I just confused? There should be some way, to detect a simple tap on a map or WMS layer on touch-devices, shouldn't it? Any idea appreciated! Many thanks in advance, Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashore3 at verizon.net Wed Aug 22 06:13:48 2012 From: ashore3 at verizon.net (Arnie Shore) Date: Wed, 22 Aug 2012 09:13:48 -0400 Subject: [OpenLayers-Users] Off-map Popup Trigger In-Reply-To: References: Message-ID: <5034DB0C.6070301@verizon.net> All, I have a popup working nicely off an icon click, and now I want to generate that same action on, say, a page button click. triggerEvent seems to apply here, but I'm fighting the syntax for applying that to a button click event. I'll appreciate any simple examples of this. AS From islanis at infomed.sld.cu Wed Aug 22 04:04:15 2012 From: islanis at infomed.sld.cu (islanis) Date: Wed, 22 Aug 2012 13:04:15 +0200 Subject: [OpenLayers-Users] wfs-t wfs layers and interesction Message-ID: <20120822130814.453506B7EA8@home-5e8474fd5f> Hi people, i need your help to know how can i do a save action between a wfs layer and a save's transaction of a wfs-t because i want to restrict the save and the update only en that intersection here is the wfs layer //------------------------------------------------------------------------------------------------------------------ // variable that has the state vector //-------------------------------------------------------------------------------------------------------------------- vlayerMunicipios = new OpenLayers.Layer.Vector("Municipios disponibles", { strategies : [new OpenLayers.Strategy.BBOX()], protocol : new OpenLayers.Protocol.WFS({ url : "http://localhost:8080/geoserver/wfs", featureType : "uneMunicipios", featureNS : "" } ), styleMap : new OpenLayers.StyleMap({ "default" : new OpenLayers.Style({ pointRadius : "${type}", fillColor : "#BFF7C7", strokeColor : "#DEBCBC", strokeWidth : 2, graphicZIndex : 1, label : "${nombre}", fontSize : "15", fontColor : "#1072C2", fontWeight : "Bold", labelYOffset : - 17 } ), "select" : new OpenLayers.Style({ fillColor : "#FFFF2B", strokeColor : "#00D200", graphicZIndex : 2 } ) } ), filter : new OpenLayers.Filter.Logical({ type : OpenLayers.Filter.Logical.OR, filters : [ new OpenLayers.Filter.Comparison({ type : OpenLayers.Filter.Comparison.EQUAL_TO, property : "nombre", value : "Municipio Especial Isla de la Juventud" } ), new OpenLayers.Filter.Comparison({ type : OpenLayers.Filter.Comparison.EQUAL_TO, property : "nombre", value : "Guama" } ) ] } )/*, hover : true*/ } ); ////////////////////////////////////////////////////////////////////////////////////////////// //And here is the layer that draw points over the map //////////////////////////////////////////////////////////////////////////////////////////// vlayer = new OpenLayers.Layer.Vector("Puntos de Biogas seleccionados", { styleMap : new OpenLayers.StyleMap({ 'default' : { strokeColor : "#EC0000", // strokeOpacity : 1, strokeWidth : 1, fillColor : "#616161", fillOpacity : 0.2, pointRadius : 9 // pointerEvents : "visiblePainted"// , // label with \n linebreaks // label : "name: ${name}\n\nage: ${age}", // fontColor : "${favColor}", // fontSize : "12px", // fontFamily : "Courier New, monospace", // fontWeight : "bold", // labelAlign : "${align}", // labelXOffset : "${xOffset}", // labelYOffset : "${yOffset}" } } ) } ); /////////////////////////////////////////////////////////////////////////////////////////////////// //------------------------------------------------------------------------------------------------------------------ // And this is the grid panel that i use to show,modify,delete and create the points that i select over the map but in this form it can create points in any place, and i want to restrict that.I want that the user can create points over the map but just over the vlayerMunicipios layer. //------------------------------------------------------------------------------------------------------------------ featureGrid = new Ext.grid.EditorGridPanel({ ref : "featureGrid", collapsible : 'true', animCollapse : true, collapsed : true, title : "Feature Table", region : "south", height : 150, sm : new GeoExt.grid.FeatureSelectionModel(), store : new Ext.data.Store(), columns : [], listeners : { "beforecollapse" : function(p,a) { selectvlayer.activate(); }, "beforeexpand" : function(p,a) { selectvlayer.deactivate(); } }, sm : new GeoExt.grid.FeatureSelectionModel({ selectControl : modifyControl.selectControl, autoActivateControl : false, singleSelect : true } ), store : new Ext.data.Store(), bbar : [ { text : "Eliminar", handler : function() { featureGrid.getSelectionModel().each(function(rec) { var feature = rec.getFeature(); modifyControl.unselectFeature(feature); vlayer.removeFeatures([feature]); if (feature.state !== OpenLayers.State.INSERT) { feature.state = OpenLayers.State.DELETE; featureGrid.store.featureFilter = new OpenLayers.Filter({ evaluate : function(f) { return feature !== f; } } ); vlayer.addFeatures([feature]); } } ); } } , new GeoExt.Action({ control : drawControl, text : "Crear", enableToggle : true, ref : 'crear' } ), { text : "Guardar cambios", handler : function() { featureGrid.store.proxy.protocol.commit( vlayer.features, { callback : function() { selectedLayer.redraw(true); featureGrid.store.reload(); } } ); } } ] }); ////////////////////////////////////////////////////////////////////////////////////////////////// help , and thatks for all. -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ From AGilbert at korem.com Wed Aug 22 12:48:55 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Wed, 22 Aug 2012 15:48:55 -0400 Subject: [OpenLayers-Users] WMS layer not on "right" world Message-ID: Hi list I have a problem I already solved with some workaround found somewhere for OpenLayers 2.9, so it's long time ago and I don't remember very well Anyway, my problem is, with a Google base map, sometime my WMS layer is overlaped in the wrong world Example: * at first I'm centred at 0,0 on zoom level 0 or 1, My WMS WORLD overlap correctly the Google WORLD * If I double click zoom on australia, my WMS world is overlaped by open layers on the next google world to the left This is strange because in the initSingleTile method, I see the left-right span something around from 3,000,000 to 27,000,000 (m) but the getURL of my WMS layer receive ?37,000,000 to ?13,000,000 Why I have this shifting problem? Antoine Gilbert From AGilbert at korem.com Wed Aug 22 13:14:21 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Wed, 22 Aug 2012 16:14:21 -0400 Subject: [OpenLayers-Users] WMS layer not on "right" world In-Reply-To: Message-ID: I meant in my case my WMS is overlaped on the next google world on the right, not on the left On 12-08-22 3:48 PM, "Gilbert, Antoine" wrote: >Hi list > >I have a problem I already solved with some workaround found somewhere >for OpenLayers 2.9, so it's long time ago and I don't remember very well > >Anyway, my problem is, with a Google base map, sometime my WMS layer is >overlaped in the wrong world > >Example: > > > * at first I'm centred at 0,0 on zoom level 0 or 1, My WMS WORLD >overlap correctly the Google WORLD > * If I double click zoom on australia, my WMS world is overlaped by >open layers on the next google world to the left > >This is strange because in the initSingleTile method, I see the >left-right span something around from 3,000,000 to 27,000,000 (m) but the >getURL of my WMS layer receive ?37,000,000 to ?13,000,000 > >Why I have this shifting problem? > >Antoine Gilbert >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users From jansen at terrestris.de Wed Aug 22 13:20:57 2012 From: jansen at terrestris.de (Marc Jansen) Date: Wed, 22 Aug 2012 22:20:57 +0200 Subject: [OpenLayers-Users] Tap-Event on map/WMS Layer In-Reply-To: References: Message-ID: <50353F29.3000003@terrestris.de> Hi Andreas, could you try the (ancient) examples listed here: http://lists.osgeo.org/pipermail/openlayers-dev/2011-October/008160.html I would be uber-happy if someone (you?) could turn this into an appropriate pull request. Hope that helps, Marc On 22.08.2012 14:05, Andreas Schnieders wrote: > Hi there, > > I'm developing a webapp with a OpenLayers.Map object, a WMS layer and > a KML-vector-layer. I want my app to react on clicks AND taps on the > WMS layer or the map itself. > > Clicking and tapping on the KML-Features works perfectly fine in > desktop browsers as well as on Safari on the iPad. I'm using it to > display specific popup-div-overlays. Clicking somewhere in the blue on > the map closes/hides the popup-overlays again. > > But on the iPad the simple "tap" event on the map or WMS layer seems > not to be detectable or am I just confused? There should be some way, > to detect a simple tap on a map or WMS layer on touch-devices, > shouldn't it? > > Any idea appreciated! > > Many thanks in advance, > Andreas > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucho1524 at gmail.com Wed Aug 22 13:22:27 2012 From: lucho1524 at gmail.com (Lucho) Date: Wed, 22 Aug 2012 15:22:27 -0500 Subject: [OpenLayers-Users] Zoom 2 Layer Message-ID: Hi List, I'm trying to create a button with the zoom2layer funcionality, but this function map.zoomToExtent(layer_name.getDataExtent()); doesn't return any value. I don't know if this is because the layer is an image, not a vector layer. Any help with this funcionality will be appreciated. Best wishes, -- LUIS FERNANDO ORTIZ REYES INGENIERO DE SISTEMAS ESP. EN PROYECTOS INFORM?TICOS UNIVERSIDAD DISTRITAL -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Wed Aug 22 14:32:07 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 23 Aug 2012 09:32:07 +1200 Subject: [OpenLayers-Users] WMS layer not on "right" world In-Reply-To: References: Message-ID: <50354FD7.6090104@gns.cri.nz> Dont know but a couple of things to think about. Tried tiled rather than singletTile? Set wrapDateline? 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 oo_O2_oo at hotmail.com Wed Aug 22 15:42:50 2012 From: oo_O2_oo at hotmail.com (Diego M.) Date: Wed, 22 Aug 2012 15:42:50 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience Message-ID: <1345675370168-4997196.post@n6.nabble.com> Hello Openlayers Experts/Users There is an event in my University that interests in Open Source Software. I am supposed to give a short presentation about anything related so I thought about giving a simple overview about OpenLayers Library. Would you please give me some highlighted points that really matter non specialist audience ? Thank you -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Overview-for-non-specialist-audience-tp4997196.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From wallyatkins at gmail.com Wed Aug 22 15:58:16 2012 From: wallyatkins at gmail.com (Wally Atkins) Date: Wed, 22 Aug 2012 18:58:16 -0400 Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience In-Reply-To: <1345675370168-4997196.post@n6.nabble.com> References: <1345675370168-4997196.post@n6.nabble.com> Message-ID: <-1165315006788805989@unknownmsgid> I'd focus on how the effort got started, gained traction, has grown and sustained its development and focus/direction. That's just my two cents. On Aug 22, 2012, at 6:43 PM, "Diego M." wrote: > > Hello Openlayers Experts/Users > > There is an event in my University that interests in Open Source Software. I > am supposed to give a short presentation about anything related so I thought > about giving a simple overview about OpenLayers Library. > > Would you please give me some highlighted points that really matter non > specialist audience ? > > Thank you > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Overview-for-non-specialist-audience-tp4997196.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users From jsanz at osgeo.org Wed Aug 22 23:59:25 2012 From: jsanz at osgeo.org (Jorge Gaspar Sanz Salinas) Date: Thu, 23 Aug 2012 08:59:25 +0200 Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience In-Reply-To: <1345675370168-4997196.post@n6.nabble.com> References: <1345675370168-4997196.post@n6.nabble.com> Message-ID: On 23 August 2012 00:42, Diego M. wrote: > > Hello Openlayers Experts/Users > > There is an event in my University that interests in Open Source Software. I > am supposed to give a short presentation about anything related so I thought > about giving a simple overview about OpenLayers Library. > > Would you please give me some highlighted points that really matter non > specialist audience ? > > Thank you > > I did with a workmate a presentation on a Barcamp about OL. Not geospatial aware audience but with some technical background. It's at [1] in Spanish (sorry). But anyway we focused on: - some basic facts - minimum code to put it on a web (
    etc) - what you can do with OL - what OL is NOT - provide examples and case studies - related projects on OL ecosystem (proj4js, geoext, mapquery...) - showed a basic working example using on that time recent Haiti post-earthquake OSM data All that in 30, 45 minutes I can't remember was 2 years ago :-) My 2cts [1] http://www.slideshare.net/xurxosanz/open-layers-por-qu-no-poner-un-mapa-en-tu-web -- Jorge Sanz http://es.osgeo.org From a.walter at gsi.de Thu Aug 23 02:35:20 2012 From: a.walter at gsi.de (nica) Date: Thu, 23 Aug 2012 02:35:20 -0700 (PDT) Subject: [OpenLayers-Users] Order/Priority of Control.GetFeature and Control.WMSGetFeatureInfo on click? Message-ID: <1345714520828-4997282.post@n6.nabble.com> Hello, I am unsure if OpenLayers provides any way to control the order in which controls handle events. ---Situation: I have a WMS layer with multiple features very close together. I use Control.WMSGetFeatureInfo to get general information about all the features within the search radius around a click. I also use Control.GetFeature to get specific information for a single feature when it is selected. Both controls do those jobs like they're supposed to do. Now, I only need the WMSGetFeatureInfo if no actual feature was clicked (i.e. selected by GetFeature). If GetFeature doesn't hit a feature (clickout), the WMSGetFeatureInfo should work as usual. ---Problem: WMSGetFeatureInfo is always called before GetFeature, so it is always performed regardless of GetFeature selected a feature or not, and I cannot figure out a way to make it go last (so it could change its behaviour according to GetFeature's results). ---What I've tried: * Switching around the order in which those two Controls were created, added to the map, activated. Didn't manage to make GetFeature go before WMSGetFeatureInfo. (Maybe I missed the correct order?) * Setting GetFeature's click handler's stopSingle option to true, but then WMSGetFeatureInfo obviously won't be called when no feature was hit, either. * Deactivating WMSGetFeatureInfo when GetFeature was active, and activating WMSGetFeatureInfo when GetFeature registered a clickout. But then the click event that triggered GetFeature in the first place doesn't get handed to WMSGetFeatureInfo. Any thoughts/tips what else I can try to get my desired behaviour? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Order-Priority-of-Control-GetFeature-and-Control-WMSGetFeatureInfo-on-click-tp4997282.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From ahocevar at opengeo.org Thu Aug 23 02:54:53 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Thu, 23 Aug 2012 11:54:53 +0200 Subject: [OpenLayers-Users] Zoom 2 Layer In-Reply-To: References: Message-ID: getDataExtent only works for layers that are rendered client-side (i.e. vector layers). For other layers (e.g. WMS), your best bet is to use OpenLayers.Format.WMSCapabilities and create the layer with the bbox advertised there as maxExtent, and use map.zoomToExtent(layer.getMaxExtent()) instead. Andreas. On Wed, Aug 22, 2012 at 10:22 PM, Lucho wrote: > Hi List, > > I'm trying to create a button with the zoom2layer funcionality, but this > function map.zoomToExtent(layer_name.getDataExtent()); doesn't return any > value. I don't know if this is because the layer is an image, not a vector > layer. Any help with this funcionality will be appreciated. > > Best wishes, > > -- > LUIS FERNANDO ORTIZ REYES > INGENIERO DE SISTEMAS > ESP. EN PROYECTOS INFORM?TICOS > UNIVERSIDAD DISTRITAL > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From yasemin.yilmaz.embedded at gmail.com Thu Aug 23 04:27:33 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Thu, 23 Aug 2012 14:27:33 +0300 Subject: [OpenLayers-Users] How to validate whether the BBOX strategy works successfully? Message-ID: Hi all, I want to send requests to our feature server that asks only data within the viewable map extent. So I've used BBOX strategy and HTTP Protocol as following code. mVectorLayer = new OpenLayers.Layer.Vector("Overlay", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.HTTP({ url: 'http://localhost:56786/jlist.geojson', format: new OpenLayers.Format.GeoJSON({ 'read': myReadFunction, 'internalProjection': map.baseLayer.projection, 'externalProjection': new OpenLayers.Projection("EPSG:4326") }) }), projection: new OpenLayers.Projection("EPSG:900913") }); I want to validate that our feature server receives the requests for only data within the viewable map. So I've added a feature outside the viewable map to the geojson file shown at below. { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [29.0, 41.060]}, "properties": {"name": "IST J1", "img": "img/marker.png"} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [29.0, 41.100]}, "properties": {"name": "IST J2", "img": "img/marker.png"} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [59.0, 41.100]}, "properties": {"name": "IST J3", "img": "img/marker.png"} } ] } To validate, I've added an alert to the function myReadFunction which shows the json string. But the alert shows all features in geojson file. I suppose our feature server sends all geojson content instead of viewable features? Do I comment it as right? How can I validate or observe whether the BBOX strategy works successfully? function myReadFunction(json, type, filter) { alert("json: " + json); type = (type) ? type : "FeatureCollection"; var results = null; var obj = null; if (typeof json == "string") { obj = OpenLayers.Format.JSON.prototype.read.apply(this, [json, filter]); } else { obj = json; } if (!obj) { OpenLayers.Console.error("Bad JSON: " + json); } else if (typeof (obj.type) != "string") { OpenLayers.Console.error("Bad GeoJSON - no type: " + json); } else if (this.isValidType(obj, type)) { switch (type) { case "Geometry": try { results = this.parseGeometry(obj); } catch (err) { OpenLayers.Console.error(err); } break; case "Feature": try { results = this.parseFeature(obj); results.type = "Feature"; } catch (err) { OpenLayers.Console.error(err); } break; case "FeatureCollection": // for type FeatureCollection, we allow input to be any type results = []; switch (obj.type) { case "Feature": try { results.push(this.parseFeature(obj)); } catch (err) { results = null; OpenLayers.Console.error(err); } break; case "FeatureCollection": for (var i = 0, len = obj.features.length; i < len; ++i) { try { results.push(this.parseFeature(obj.features[i])); } catch (err) { results = null; OpenLayers.Console.error(err); } } break; default: try { var geom = this.parseGeometry(obj); results.push(new OpenLayers.Feature.Vector(geom)); } catch (err) { results = null; OpenLayers.Console.error(err); } } break; } } return results; } Thanks a lot for your helps and explanations, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGilbert at korem.com Thu Aug 23 04:50:33 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Thu, 23 Aug 2012 07:50:33 -0400 Subject: [OpenLayers-Users] WMS layer not on "right" world In-Reply-To: <50354FD7.6090104@gns.cri.nz> Message-ID: Tried date line and it change nothing My WMS provider is single tile On 12-08-22 5:32 PM, "Phil Scadden" wrote: >Dont know but a couple of things to think about. Tried tiled rather than >singletTile? Set wrapDateline? > >Notice: This email and any attachments are confidential. If received in >error please destroy and immediately notify us. Do not copy or disclose >the contents. > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users From adube at mapgears.com Thu Aug 23 05:43:09 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Thu, 23 Aug 2012 08:43:09 -0400 Subject: [OpenLayers-Users] Order/Priority of Control.GetFeature and Control.WMSGetFeatureInfo on click? In-Reply-To: <1345714520828-4997282.post@n6.nabble.com> References: <1345714520828-4997282.post@n6.nabble.com> Message-ID: <5036255D.70104@mapgears.com> Hello, I'd try your solution proposed below, and manually call the WMSGetFeatureInfo getInfoForClick or request method. They need an OpenLayers.Pixel object, so that'd be what you need to track down from the GetFeature control. You might need to override one of its method for that, as such (untested) : OpenLayers.Control.GetFeature.prototype.selectClick = function(evt) { // override this.lastXY = evt.xy; var bounds = this.pixelToBounds(evt.xy); this.setModifiers(evt); this.request(bounds, {single: this.single}); }; and then, in your 'clickout' callback method, you could access what the last pixel was. How does that sound ? HTH, Alexandre On 12-08-23 05:35 AM, nica wrote: > * Deactivating WMSGetFeatureInfo when GetFeature was active, and activating > WMSGetFeatureInfo when GetFeature registered a clickout. But then the click > event that triggered GetFeature in the first place doesn't get handed to > WMSGetFeatureInfo. -- Alexandre Dub? Mapgears www.mapgears.com From gpktondo at gmail.com Thu Aug 23 10:42:45 2012 From: gpktondo at gmail.com (Tondo) Date: Thu, 23 Aug 2012 10:42:45 -0700 (PDT) Subject: [OpenLayers-Users] map without crs Message-ID: <1345743765463-4997408.post@n6.nabble.com> Hi lists. Is it possible to create map without proj4 lib but display wms layres using different CRS than wgs? If yes, is it possible to that also with vector layers? Thaks. Tom. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/map-without-crs-tp4997408.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smaran.harihar at gmail.com Thu Aug 23 11:51:35 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Thu, 23 Aug 2012 11:51:35 -0700 Subject: [OpenLayers-Users] Trying to create GetFeatureInfo Message-ID: Hi, I am trying to create a GetFeatureInfo GeoExt Action button and add it to my toolbar. This is the code that I wrote. Unfortunetly I am getting nothing. No popups. This is another tool that I made and it works fine. This is the addToPopup function. Any idea how I can correct it? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Thu Aug 23 13:58:37 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 24 Aug 2012 08:58:37 +1200 Subject: [OpenLayers-Users] map without crs In-Reply-To: <1345743765463-4997408.post@n6.nabble.com> References: <1345743765463-4997408.post@n6.nabble.com> Message-ID: <5036997D.3000200@gns.cri.nz> > Hi lists. Is it possible to create map without proj4 lib but display wms > layres using different CRS than wgs? If yes, is it possible to that also > with vector layers? Thaks. Tom. You should only proj4 if you are doing reprojections within OL. (ie client side). WMS reprojection is by server. (ie OL looks at the SRS of the current baselayer and requests the WMS server to deliver tiles in that projection). Vector, unless you are obtaining the vector data from a vector server that is reprojecting vector on the fly (eg WFS) then you will need to explicitly reproject and this need proj4. -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From p.scadden at gns.cri.nz Thu Aug 23 14:05:01 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 24 Aug 2012 09:05:01 +1200 Subject: [OpenLayers-Users] Trying to create GetFeatureInfo In-Reply-To: References: Message-ID: <50369AFD.30006@gns.cri.nz> You are using event.xy which would be undefined, because you are passing the event as variable instead evt. Setting a breakpoint in firebug and examining variables is good strategy for finding these things. You should be living in firebug while doing your development. 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 p.scadden at gns.cri.nz Thu Aug 23 14:07:34 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 24 Aug 2012 09:07:34 +1200 Subject: [OpenLayers-Users] WMS layer not on "right" world In-Reply-To: References: Message-ID: <50369B96.6020008@gns.cri.nz> On 23/08/2012 11:50 p.m., Gilbert, Antoine wrote: > Tried date line and it change nothing > > My WMS provider is single tile Can it wrap the dateline then? When I have dateline, I do tiled because geoserver cant do singleTile properly over dateline. You may have an issue with your wms provider. 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 gamejihou at hotmail.com Thu Aug 23 14:34:51 2012 From: gamejihou at hotmail.com (Gery .) Date: Thu, 23 Aug 2012 21:34:51 +0000 Subject: [OpenLayers-Users] error in url Message-ID: In my pc, through python, mod_wsgi, sqlalchemy as well as proxy.cgi script in /var/www/cgi-bin/ dir with localhost in AllowedHosts, I'm doing queries in my postgis database. With this code I want to retrieve data in geojson format and then displayed it in openlayers: protocol: new OpenLayers.Protocol.HTTP( { url: '/cgi-bin/proxy.cgi?url=http://localhost/mop/py/test3.py', format: new OpenLayers.Format.GeoJSON() } ), in firebug, I'm getting the query (as well as if I write in firefox http://localhost/mop/py/test3.py) and this error message: JSON.parse: unexpected characterobject = JSON.parse(json, filter); what does this mean? my idea at first was to get into my postgis database through a model, which is: from sqlalchemy import * from sqlalchemy import create_engine, MetaData, Table from sqlalchemy.orm import * from sqlalchemy.orm import mapper, relation, backref, sessionmaker from sqlalchemy.ext.declarative import declarative_base # Setup the url, database engine and session url = 'postgresql+psycopg2://postgres:pass at localhost:5432/mop' engine = create_engine(url, echo=True) Session = sessionmaker(bind=engine) session = Session() # Setup the declarative extension and metadata metadata = MetaData(engine) Base = declarative_base(metadata=metadata) # Define the model classes class Boreholes(Base): __tablename__ = 'boreholes_point_wgs84' __table_args__ = {'autoload':True} # DDL Extensions for geometry specific DDL GeometryDDL(Boreholes.__table__) but pointing that url doesn't work, I think I need something in between that will allow me to display the info in my postgis database and then through openlayers extract the data as geojson to plot it in my map. Any hint is appreciated, Regards, Gery -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Thu Aug 23 14:43:53 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Fri, 24 Aug 2012 09:43:53 +1200 Subject: [OpenLayers-Users] error in url In-Reply-To: References: Message-ID: <5036A419.4000603@gns.cri.nz> > > protocol: new OpenLayers.Protocol.HTTP( > { > url: > '/cgi-bin/proxy.cgi?url=http://localhost/mop/py/test3.py', > format: new OpenLayers.Format.GeoJSON() > } > ), > > in firebug, I'm getting the query (as well as if I write in firefox > http://localhost/mop/py/test3.py) and this error message: > > JSON.parse: unexpected character > [Break On This Error] > object = JSON.parse(json, filter); > I would say it means that the json is badly formed. Use Firebug. Either look at what is being returned by in the NET table (or possibly console) or set a breakpoint on the line above and have a look at the json variable to see what is going on. Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dalda at hazi.es Thu Aug 23 23:35:14 2012 From: dalda at hazi.es (David Alda Fernandez de Lezea) Date: Fri, 24 Aug 2012 08:35:14 +0200 Subject: [OpenLayers-Users] Strange behaviour renaming feature Message-ID: <224DBDAF88A6AC47BD22432815351BE009893E14@nekaposta1> Hi list, I'm having a strange behaviour while doing some operations. We've developed an application in which users will cut features and rename them. The problem is that after the user has cut the feature in two more features, for example, and he wants to rename one of the two resultant features, both features' label attribute is changed. I mean, from one feature I get 2. One is labelled as "A" and the other one as "B". The thing is that if I want to rename A to be C, then feature A and feature B get the same value for the label attribute i.e. C. Any idea what could be happening?? Why is this strange behaviour? Thanks in advance. Regards, Un saludo, David Alda Fern?ndez de Lecea GIS Analista Programadorea / Analista Programador GIS KONTSULTORIA UNITATEA / UNIDAD DE CONSULTOR?A Granja Modelo s/n 01192 Arkaute Araba T 945 003 295 F 945 003 290 dalda at hazi.es | www.hazi.es ********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ****************** Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe. Este mensaje es personal y confidencial y su uso no autorizado est? prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo. This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it. From dkunzman at usgs.gov Fri Aug 24 16:00:12 2012 From: dkunzman at usgs.gov (Doug Kunzman) Date: Fri, 24 Aug 2012 19:00:12 -0400 Subject: [OpenLayers-Users] WMS reprojecting EPSG:4326. Message-ID: Our team wrote a caching WMS server using the geotoolkit and it appears that some of our layers are getting distorted. We have an application that merges circles with the USGS national map. The server cache's the WMS tiles and when I look at the tiles the circles are not distorted. When displayed through open layers some of the circles in the tiles (particularly near Alaska) are distorted. Any ideas what is causing this or how to fix it? Douglas Kunzman 12201 Sunrise Valley Drive Reston, VA 20192 Phone: 703 648-4234 dkunzman at usgs.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From oo_O2_oo at hotmail.com Fri Aug 24 16:34:37 2012 From: oo_O2_oo at hotmail.com (Diego M.) Date: Fri, 24 Aug 2012 16:34:37 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience In-Reply-To: <-1165315006788805989@unknownmsgid> References: <1345675370168-4997196.post@n6.nabble.com> <-1165315006788805989@unknownmsgid> Message-ID: <1345851277017-4997765.post@n6.nabble.com> Thank you ! I'd keep that in mind -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Overview-for-non-specialist-audience-tp4997196p4997765.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From oo_O2_oo at hotmail.com Fri Aug 24 16:37:43 2012 From: oo_O2_oo at hotmail.com (Diego M.) Date: Fri, 24 Aug 2012 16:37:43 -0700 (PDT) Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience In-Reply-To: References: <1345675370168-4997196.post@n6.nabble.com> Message-ID: <1345851463156-4997766.post@n6.nabble.com> *Jorge Sanz* Thank you so much! the presentation is great!! it is what i really need. of course i translated it to english but would you please explain silde 13-14 a little bit more : ?qu? no hace/es Open Layers? no es una biblioteca generalista de widgets ExtJS, GWT, etc no lee ni escribe en tu sistema componentes en servidor no hace peticiones XML fuera de tu sistema web proxy -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Overview-for-non-specialist-audience-tp4997196p4997766.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jsanz at osgeo.org Sat Aug 25 02:23:03 2012 From: jsanz at osgeo.org (Jorge Gaspar Sanz Salinas) Date: Sat, 25 Aug 2012 11:23:03 +0200 Subject: [OpenLayers-Users] OpenLayers Overview for non specialist audience In-Reply-To: <1345851463156-4997766.post@n6.nabble.com> References: <1345675370168-4997196.post@n6.nabble.com> <1345851463156-4997766.post@n6.nabble.com> Message-ID: On 25 August 2012 01:37, Diego M. wrote: > *Jorge Sanz* > > > > Thank you so much! the presentation is great!! it is what i really need. of > course i translated it to english > but would you please explain silde 13-14 a little bit more : > > ?qu? no hace/es Open Layers? > no es una biblioteca generalista de widgets > ExtJS, GWT, etc > no lee ni escribe en tu sistema > componentes en servidor > no hace peticiones XML fuera de tu sistema > web proxy > Sure: What Open Layers is not? What Open Layers doesn't do? -- It is not a generic widget component library. So you have to use ExtJS/GWT/jQueryUI... -- It doest't read files on your system. So you have to create some kind of reflector to upload a file to your server and then serve it to your web app if you need it. In fact with HTML5 that's not true anymore as a colleague showcased[1] --It can't do XML requests outside your domain, yo need a web proxy (like proxy.cgi). That's not exactly correct but most of the time is true As I said the slides are more than 2 years old so you maybe will find other facts more interesting to share. Best [1] http://www.prodevelop.es/es/blog/11/12/11/rendering-local-shapefiles-html5 -- Jorge Sanz http://es.osgeo.org From jej2003 at gmail.com Sat Aug 25 05:54:57 2012 From: jej2003 at gmail.com (Jamie Johnson) Date: Sat, 25 Aug 2012 08:54:57 -0400 Subject: [OpenLayers-Users] Issues with SelectControl Message-ID: I am trying to use the OpenLayers select control in ExtJS 4.1 and have 99% of things working, but for some reason when I first create the map if I activate the select control I can't actually click any markers until I activate another control and reactivate the select control. Is there anything that I should be aware of in terms of creation order or anything like that which would cause this behavior? From jens.krumpe at egeo24.de Sat Aug 25 08:11:28 2012 From: jens.krumpe at egeo24.de (jens) Date: Sat, 25 Aug 2012 08:11:28 -0700 (PDT) Subject: [OpenLayers-Users] GetFeatureInfo- HTML Template with JS Message-ID: <1345907488977-4997831.post@n6.nabble.com> Dear List, If I perform an GetFeatureInfo request the corresponding WMS send me an text/html formated result. I have customized the GetFeatureInfo response format by adding some html-templates witch includes few lines of javascript code. The OpenLayers GetFeatureInfo popup feature works nicely but the JS-code within the html template is not interpreted at all. How would you overcome this challenge? Do you have any suggestions how I can display my JS enriched HTML templates to the users? Ciao Jens -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetFeatureInfo-HTML-Template-with-JS-tp4997831.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From jefferson.r.heard at gmail.com Sat Aug 25 08:24:09 2012 From: jefferson.r.heard at gmail.com (Jeff Heard) Date: Sat, 25 Aug 2012 11:24:09 -0400 Subject: [OpenLayers-Users] ZoomBox control not showing box when zooming. Message-ID: I'm using OpenLayers 2.12. I have a zoombox control added to my map, and it *works* fine. Zooming happens. But there's no "box" drawn so that the user can see what area she has selected to zoom to. Is there something else I should be doing? -- Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Sun Aug 26 00:19:04 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Sun, 26 Aug 2012 07:19:04 +0000 Subject: [OpenLayers-Users] Getfeatureinfo In-Reply-To: References: Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Sun Aug 26 00:21:01 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Sun, 26 Aug 2012 07:21:01 +0000 Subject: [OpenLayers-Users] Popup Message-ID: Hi everyone, Is there any options that I can show the feature info popup outside of the map frame? Help please. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Sun Aug 26 14:46:47 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 27 Aug 2012 09:46:47 +1200 Subject: [OpenLayers-Users] Getfeatureinfo In-Reply-To: References: Message-ID: <503A9947.9040403@gns.cri.nz> I am guessing that it because loadURL is deprecated. you can include deprecated.js or modernize your code. 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 p.scadden at gns.cri.nz Sun Aug 26 14:51:37 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 27 Aug 2012 09:51:37 +1200 Subject: [OpenLayers-Users] GetFeatureInfo- HTML Template with JS In-Reply-To: <1345907488977-4997831.post@n6.nabble.com> References: <1345907488977-4997831.post@n6.nabble.com> Message-ID: <503A9A69.9050900@gns.cri.nz> I'd consider getting the response in GML and formatting with js in your application. You can build in a lot more flexibility. (This is what I do - I even use extjs to create the popups because the formatting flexibility and extra options possible (eg display as tooltip or export to excel) outweigh the overhead of the client side processing for me). 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 p.scadden at gns.cri.nz Sun Aug 26 14:59:16 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 27 Aug 2012 09:59:16 +1200 Subject: [OpenLayers-Users] Popup In-Reply-To: References: Message-ID: <503A9C34.3060201@gns.cri.nz> Same as with my earlier response. Get in GML and manipulate with js to place it anywhere you like in your DOM. here is how I set up WMSGetFeatureInfo for gml post processing. processSpatialQuery is my js procedure for formatting the response. Ctrl = new OpenLayers.Control.WMSGetFeatureInfo({ infoFormat:"application/vnd.ogc.gml", layers: [layer] }); Ctrl.events.register("getfeatureinfo", this, processSpatialQuery); 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 p.scadden at gns.cri.nz Sun Aug 26 15:03:21 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 27 Aug 2012 10:03:21 +1200 Subject: [OpenLayers-Users] WMS reprojecting EPSG:4326. In-Reply-To: References: Message-ID: <503A9D29.4040105@gns.cri.nz> > Our team wrote a caching WMS server using the geotoolkit and it > appears that some of our layers are getting distorted. > We have an application that merges circles with the USGS national map. > The server cache's the WMS tiles and when I look at the > tiles the circles are not distorted. When displayed through open > layers some of the circles in the tiles (particularly near Alaska) are > distorted. OL will request the tiles to be reprojected in the SRS of whatever the OL baselayer is. What SRS is that? If it is different from SRS of the native tiles (presumably 4326) then they will be distorted. Circle in 4326 wont be circles in any other projection. Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Sun Aug 26 17:48:23 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Sun, 26 Aug 2012 17:48:23 -0700 Subject: [OpenLayers-Users] Trying to create GetFeatureInfo In-Reply-To: <50369AFD.30006@gns.cri.nz> References: <50369AFD.30006@gns.cri.nz> Message-ID: Thanks again Phil. I corrected the evt.xy and still I am not getting any popups. I am not getting any errors on my Chrome Developer console but on my Firebug, simply loading the page is giving me this error, The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol. On clicking the tool and then clicking on my map, gives me nothing. Here is the link . Thanks, Smaran On Thu, Aug 23, 2012 at 2:05 PM, Phil Scadden wrote: > You are using event.xy which would be undefined, because you are passing > the event as variable instead evt. > Setting a breakpoint in firebug and examining variables is good strategy > for finding these things. You should be living in firebug while doing > your development. > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From smaran.harihar at gmail.com Sun Aug 26 17:54:33 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Sun, 26 Aug 2012 17:54:33 -0700 Subject: [OpenLayers-Users] Reproject co-ordinate points Message-ID: Hi, I initially had a EPSG 4326 basemap and now I have changed it to a spherical mercator (GMap and OSM). The problem is, my script still understands the original lat and long. I am sending the captured (on click) lat and long to the script. Is it possible to reproject the lat and long that I am receiving in the spherical mercator to EPSG 4326 and send it to my script? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Sun Aug 26 18:13:20 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Mon, 27 Aug 2012 13:13:20 +1200 Subject: [OpenLayers-Users] Reproject co-ordinate points In-Reply-To: References: Message-ID: <503AC9B0.4000302@gns.cri.nz> its very easy to do the transform in js, especially between 4326 and 900913. eg var lonLat = this.map.getLonLatFromPixel(e.xy); if (this.map.displayProjection) { lonLat.transform(this.map.getProjectionObject(), this.map.displayProjection ); } If you look at docs for LonLat, you will see the transform method. It needs two projection objects. Create one for 4326 eg var p4326 = new OpenLayers.Projection("EPSG:4326"); and then the other will be the map projection. Code might something like: var p4326 = new OpenLayers.Projection("EPSG:4326"); lonLat = new OpenLayers.LonLat(lon,lat); lonLat.project(p4326,map.getProjectionObject()); 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 smaran.harihar at gmail.com Sun Aug 26 18:43:47 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Sun, 26 Aug 2012 18:43:47 -0700 Subject: [OpenLayers-Users] Reproject co-ordinate points In-Reply-To: <503AC9B0.4000302@gns.cri.nz> References: <503AC9B0.4000302@gns.cri.nz> Message-ID: I am trying out this code, var lonLat = evt.xy; console.log(lonLat.lon, lonLat.lat); var proj = new OpenLayers.Projection("EPSG:4326"); lonLat = new OpenLayers.LonLat(lonLat.lon, lonLat.lat); lonLat.project(proj, map.getProjectionObject()); And I keep getting this error, undefined undefined (for the lonLat.lon, lonLat.lat) Uncaught TypeError: Object lon=NaN,lat=NaN has no method 'project' (for lonLat.project(proj, map.getProjectionObject());) What should I correct? On Sun, Aug 26, 2012 at 6:13 PM, Phil Scadden wrote: > its very easy to do the transform in js, especially between 4326 and > 900913. eg > var lonLat = this.map.getLonLatFromPixel(e.xy); > if (this.map.displayProjection) { > lonLat.transform(this.map.getProjectionObject(), > this.map.displayProjection ); > } > If you look at docs for LonLat, you will see the transform method. It > needs two projection objects. Create one for 4326 > eg var p4326 = new OpenLayers.Projection("EPSG:4326"); > > and then the other will be the map projection. Code might something like: > var p4326 = new OpenLayers.Projection("EPSG:4326"); > lonLat = new OpenLayers.LonLat(lon,lat); > lonLat.project(p4326,map.getProjectionObject()); > > > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From neelima.emmani at iictechnologies.com Sun Aug 26 22:28:09 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Mon, 27 Aug 2012 05:28:09 +0000 Subject: [OpenLayers-Users] popup Message-ID: Hi All, I am trying to draw a line feature with point features at its end points. My code is like, whenever a new feature is drawn on the map. A popup window popsup to the user for filling the attribute information with respect to the feature , that can be saved to database using submit button. So, in this case i am popped up with 2 popup windows, one for line and then for point. So, once i fill in last poppedup window and say submit, the map completely gets refreshed. Because of what, i am not able to save the line feature but could only save one point to the database. can anyone help to keep the map without refreshing or is there a way to save endpoints and the line as one data row into the database. Any help is appreciated. With Regards, Neelima -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahocevar at opengeo.org Sun Aug 26 23:08:42 2012 From: ahocevar at opengeo.org (Andreas Hocevar) Date: Mon, 27 Aug 2012 08:08:42 +0200 Subject: [OpenLayers-Users] ZoomBox control not showing box when zooming. In-Reply-To: References: Message-ID: Make sure you have theme/default/style.css included in your html page. Andreas. On Sat, Aug 25, 2012 at 5:24 PM, Jeff Heard wrote: > I'm using OpenLayers 2.12. I have a zoombox control added to my map, and it > *works* fine. Zooming happens. But there's no "box" drawn so that the user > can see what area she has selected to zoom to. Is there something else I > should be doing? > > -- Jeff > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. From yasemin.yilmaz.embedded at gmail.com Mon Aug 27 01:25:35 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Mon, 27 Aug 2012 11:25:35 +0300 Subject: [OpenLayers-Users] The official/professional support services of OpenLayers Message-ID: Hi all, Could you please inform about OpenLayers' official/professional support services, free or paid? Thanks advance for your explanations, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Mon Aug 27 02:00:28 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Mon, 27 Aug 2012 09:00:28 +0000 Subject: [OpenLayers-Users] My map is not working when I don't use API In-Reply-To: References: Message-ID: Hi everyone, Thank you so much Phil Scadden. You were right about deprecated.js. When I set up my code, it worked perfectly. But I have another question about and I have 2 different map one of them is sample map and it is working well when I use But when I try to use this setting for my second map, it is not working. To make the second map work, I have to use I couldn't figure out the way to fix this problem. Is there any ideas to share with me? Thank you all. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yasemin.yilmaz.embedded at gmail.com Mon Aug 27 04:47:29 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Mon, 27 Aug 2012 14:47:29 +0300 Subject: [OpenLayers-Users] Which OpenLayers.Protocol should I prefer which design patterns provided at? Message-ID: Hi all, At our scenario, there is a server which stores the feature info (coordinates, properties, etc) into a SQL database. Google Maps are used for a layer. The geoJSON data format are used for communication between our server and web mapping client. We want to create/use a WCF (Windows Communication Foundation) service as a communication protocol. Should I implement OpenLayers.Protocol.WFS as a WCF protocol because OpenLayers supports HTTP or WFS as protocol? Or which OpenLayers.Protocol (HTTP or WFS) should I prefer which design patterns provided at? Thanks a lot for your helps and clarifications, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Mon Aug 27 05:26:10 2012 From: adube at mapgears.com (=?ISO-8859-2?Q?Alexandre_Dub=E9?=) Date: Mon, 27 Aug 2012 08:26:10 -0400 Subject: [OpenLayers-Users] popup In-Reply-To: References: Message-ID: <503B6762.3040101@mapgears.com> Hi, Could you provide some code or a live example of what you're trying to do ? Alexandre On 12-08-27 01:28 AM, Neelima Emmani wrote: > > Hi All, > I am trying to draw a line feature with point features at its end > points. My code is like, whenever a new feature is drawn on the map. A > popup window popsup to the user for filling the attribute information > with respect to the feature , that can be saved to database using > submit button. So, in this case i am popped up with 2 popup windows, > one for line and then for point. So, once i fill in last poppedup > window and say submit, the map completely gets refreshed. Because of > what, i am not able to save the line feature but could only save one > point to the database. can anyone help to keep the map without > refreshing or is there a way to save endpoints and the line as one > data row into the database. > Any help is appreciated. > With Regards, > Neelima > > > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Mon Aug 27 05:28:36 2012 From: adube at mapgears.com (=?ISO-8859-2?Q?Alexandre_Dub=E9?=) Date: Mon, 27 Aug 2012 08:28:36 -0400 Subject: [OpenLayers-Users] Strange behaviour renaming feature In-Reply-To: <224DBDAF88A6AC47BD22432815351BE009893E14@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE009893E14@nekaposta1> Message-ID: <503B67F4.8090903@mapgears.com> Hi, Try minimizing your code to find pin down what the issue is. Read more about this : http://docs.openlayers.org/help/minimize.html HTH, Alexandre On 12-08-24 02:35 AM, David Alda Fernandez de Lezea wrote: > Hi list, > > I'm having a strange behaviour while doing some operations. We've developed an application in which users will cut features and rename them. The problem is that after the user has cut the feature in two more features, for example, and he wants to rename one of the two resultant features, both features' label attribute is changed. I mean, from one feature I get 2. One is labelled as "A" and the other one as "B". The thing is that if I want to rename A to be C, then feature A and feature B get the same value for the label attribute i.e. C. > > Any idea what could be happening?? Why is this strange behaviour? > > Thanks in advance. > > Regards, > > > Un saludo, > > > David Alda Fern?ndez de Lecea > GIS Analista Programadorea / Analista Programador GIS > KONTSULTORIA UNITATEA / UNIDAD DE CONSULTOR?A > > Granja Modelo s/n > 01192 Arkaute Araba > T 945 003 295 F 945 003 290 > dalda at hazi.es | www.hazi.es > > > > ********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ****************** > > Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe. > > Este mensaje es personal y confidencial y su uso no autorizado est? prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo. > > This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From adube at mapgears.com Mon Aug 27 05:29:47 2012 From: adube at mapgears.com (=?ISO-8859-2?Q?Alexandre_Dub=E9?=) Date: Mon, 27 Aug 2012 08:29:47 -0400 Subject: [OpenLayers-Users] Issues with SelectControl In-Reply-To: References: Message-ID: <503B683B.9080706@mapgears.com> Hi, You can try minimizing your code to pin down what the issue is. Read more about this here: http://docs.openlayers.org/help/minimize.html HTH, Alexandre On 12-08-25 08:54 AM, Jamie Johnson wrote: > I am trying to use the OpenLayers select control in ExtJS 4.1 and have > 99% of things working, but for some reason when I first create the map > if I activate the select control I can't actually click any markers > until I activate another control and reactivate the select control. > Is there anything that I should be aware of in terms of creation order > or anything like that which would cause this behavior? > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Alexandre Dub? Mapgears www.mapgears.com From gis.slokam at gmail.com Mon Aug 27 08:15:46 2012 From: gis.slokam at gmail.com (LOHAMANOJ SIVAKUMAR) Date: Mon, 27 Aug 2012 20:45:46 +0530 Subject: [OpenLayers-Users] CQL FILTER - ZOOM & HIGHLIGHT Particular Feature Message-ID: Dear List, am in urgent need of ZOOM AND HIGHLIGHT the feature based on CQL Filter. i have tried using this link http://openlayers.org/dev/examples/cql-format.html while using this link am getting ReferenceError: loadFeature is not defined. If any suggestion and any previous attempts with solutions are welcome. -- With Regards, Lohamanoj S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at greeninfo.org Mon Aug 27 08:22:59 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Mon, 27 Aug 2012 08:22:59 -0700 Subject: [OpenLayers-Users] GetFeatureInfo- HTML Template with JS In-Reply-To: <503A9A69.9050900@gns.cri.nz> References: <1345907488977-4997831.post@n6.nabble.com> <503A9A69.9050900@gns.cri.nz> Message-ID: <503B90D3.6060109@greeninfo.org> On 8/26/2012 2:51 PM, Phil Scadden wrote: > I'd consider getting the response in GML and formatting with js in your > application. You can build in a lot more flexibility. +1 on that. If you don't want to go all the way with GML, at least a trivial XML format: And you would parse it in your GetFeatureInfo's eventListeners.getfeatureinfo If you're using jQuery then parsuing the HTML/XML is dead simple: clicker = new OpenLayers.Control.WMSGetFeatureInfo({ eventListeners: { getfeatureinfo: function (reply) { var xml = $(reply); reply.find('feature').each(function () { console.log( $(this).attr('name) ); }); } } }); MAP.addControl(clicker); -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From islanis at infomed.sld.cu Mon Aug 27 12:03:59 2012 From: islanis at infomed.sld.cu (islanis at infomed.sld.cu) Date: Mon, 27 Aug 2012 15:03:59 -0400 Subject: [OpenLayers-Users] documentation please Message-ID: <20120827150359.21212rr31swx4hwf@webmail.sld.cu> Hello people, have enyone documentation of geoserver for my tesis, i am creating a GIS and i need the internal functionality of geoserver, at least the interaction diagram of the main components of it, all about the transactions of wms, wfs, wfs-t to and since, thanks to all the help. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ From goghi at o2.pl Mon Aug 27 13:11:40 2012 From: goghi at o2.pl (Paw3l) Date: Mon, 27 Aug 2012 13:11:40 -0700 (PDT) Subject: [OpenLayers-Users] fontSize overwritten in renderer Message-ID: <1346098300879-4998159.post@n6.nabble.com> Hi all, I have some vector layer defined in the following way: var vectors = new OpenLayers.Layer.Vector("GML", { renderers: ["Canvas", "SVG", "VML"], styleMap: new OpenLayers.StyleMap({'default':{ pointRadius: 0, label : "\${name}", fontColor: "#0066CC", fontSize: "18px", fontFamily: "Courier New, monospace" }}) }); I can see that my fontSize for this layer is unheralded: no matter if it is set as "18px" or "26px" or whatever else it is displayed always in the same way. Interesting this is that when I comment the line renderers: ["Canvas", "SVG", "VML"], out the fontSize value seems to work properly. I suppose the fontSize is somehow overwritten in some renderer like Canvas. Is this possible? Could anyone tell me where should I look for it? Kind regards, Pawel -- View this message in context: http://osgeo-org.1560.n6.nabble.com/fontSize-overwritten-in-renderer-tp4998159.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From p.scadden at gns.cri.nz Mon Aug 27 14:04:38 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Tue, 28 Aug 2012 09:04:38 +1200 Subject: [OpenLayers-Users] CQL FILTER - ZOOM & HIGHLIGHT Particular Feature In-Reply-To: References: Message-ID: <503BE0E6.7090404@gns.cri.nz> > i have tried using this link > > http://openlayers.org/dev/examples/cql-format.html The link works for me in FF and Chrome. I can change the filter and see the results. 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 Lucia.Morper-Busch at sbg.ac.at Tue Aug 28 03:42:32 2012 From: Lucia.Morper-Busch at sbg.ac.at (Morper-Busch, Lucia) Date: Tue, 28 Aug 2012 12:42:32 +0200 Subject: [OpenLayers-Users] WMSgetfeatureinfo - only one nearest feature of several layers Message-ID: <7506863B0141334AA8B9FAAAC6D703B004424FAA@MAIL2.plus.sbg.ac.at> Hello Openlayers Users, I'm using OpenLayers 2.11. With the WMSGetFeatureInfo-Tool I want to catch features of several layers but always only one feature per layer (the nearest to the clicking point). Of each layer I take the first feature for my infobox. The problem is that sometimes more than the default 10 features are catched and so not all layers are represented. The list is cut after the 10th feature also when there are other layers with features in the clicking area. With "maxFeatures:1" I get only one feature at all. But with "maxFeatures:20" I get too many features that it seems not to be correct to take simply the first feature of each layer. Maybe it is not the nearest? Does anybody know exactly how the GetFeatureInfo Request works and how to achieve reliably the objective to catch one nearest feature per layer? Thank you and best regards Lucia Dipl.-Geogr. Lucia Morper-Busch | Researcher University of Salzburg | Department of Geoinformatics - Z_GIS Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria Phone +43 (0)662 8044 7598 | Fax +43 (0)662 8044 7560 > Z_GIS...experts for the spatial view From yasemin.yilmaz.embedded at gmail.com Tue Aug 28 04:01:41 2012 From: yasemin.yilmaz.embedded at gmail.com (Yasemin YILMAZ) Date: Tue, 28 Aug 2012 14:01:41 +0300 Subject: [OpenLayers-Users] How to make OpenLayers.Popup draggable? Message-ID: Hi all, I've used jquery-ui draggable option as following but the moving popup can not be ended once dragging has started. Is there any another method to make OpenLayers.Popup draggable? popup = new OpenLayers.Popup.AnchoredBubble( "JInfo", // id jFeature.geometry.getBounds().getCenterLonLat(), // lonlat new OpenLayers.Size(ISA.Size.POPUP_WIDTH, ISA.Size.POPUP_HEIGHT), html, // contentHTML null, // anchor true, // closeBox function() { // closeBoxCallback jSelectControl.unselect(jFeature); }); jFeature.popup = popup; map.addPopup(popup); $("#JInfo").draggable(); Thanks advance for your helps, Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at greeninfo.org Tue Aug 28 08:31:18 2012 From: gregor at greeninfo.org (Greg Allensworth) Date: Tue, 28 Aug 2012 08:31:18 -0700 Subject: [OpenLayers-Users] How to make OpenLayers.Popup draggable? In-Reply-To: References: Message-ID: <503CE446.3080502@greeninfo.org> On 8/28/2012 4:01 AM, Yasemin YILMAZ wrote: > I've used jquery-ui draggable option as following but the moving popup > can not be ended once dragging has started. Is there any another method > to make OpenLayers.Popup draggable? I would lay down a Marker along with the Popup, and put a drag handler on the Marker, which would reposition the Popup. Drag the marker, the Popup moves. It would be easy that way, and I suspect that moving a Marker is a more expected behavior to end users, than being able to drag a Popup. -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org From woodbri at swoodbridge.com Tue Aug 28 11:50:28 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 28 Aug 2012 14:50:28 -0400 Subject: [OpenLayers-Users] Fwd: [mapserver-users] [TinyOWS] Need an example of how to edit Attributes In-Reply-To: <503BF44C.7080708@swoodbridge.com> References: <503BF44C.7080708@swoodbridge.com> Message-ID: <503D12F4.6010701@swoodbridge.com> Originally posted on mapserver list, but this is probably more of an OpenLayers question regarding an example of editing attributes for a WFS-T layer. -------- Original Message -------- Subject: [mapserver-users] [TinyOWS] Need an example of how to edit Attributes Date: Mon, 27 Aug 2012 18:27:24 -0400 From: Stephen Woodbridge To: mapserver-users Hi, I got the TinyOWS examples working with OpenLayers and can add/edit/delete features, but I need to also be able to edit add/edit feature attributes. Is the a good working example of this somewhere? Thanks, -Steve From smaran.harihar at gmail.com Wed Aug 29 09:39:50 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Wed, 29 Aug 2012 09:39:50 -0700 Subject: [OpenLayers-Users] Reproject co-ordinate points In-Reply-To: <503AC9B0.4000302@gns.cri.nz> References: <503AC9B0.4000302@gns.cri.nz> Message-ID: Hi Phil, It seems I misunderstood. So the lonLat.projection is setting the lonLat to the 900913 lat and lon right? and then when we use transform(), that is when we are converting it to 4326. So i did not need project. var lonLat = evt.xy; var proj = new OpenLayers.Projection("EPSG:4326"); var nlonLat = new OpenLayers.LonLat(panel.map.getLonLatFromViewPortPx(lonLat).lon, panel.map.getLonLatFromViewPortPx(lonLat).lat); nlonLat.transform(panel.map.getProjectionObject(), panel.map.displayProjection); Works great. Thanks, Smaran On Sun, Aug 26, 2012 at 6:13 PM, Phil Scadden wrote: > its very easy to do the transform in js, especially between 4326 and > 900913. eg > var lonLat = this.map.getLonLatFromPixel(e.xy); > if (this.map.displayProjection) { > lonLat.transform(this.map.getProjectionObject(), > this.map.displayProjection ); > } > If you look at docs for LonLat, you will see the transform method. It > needs two projection objects. Create one for 4326 > eg var p4326 = new OpenLayers.Projection("EPSG:4326"); > > and then the other will be the map projection. Code might something like: > var p4326 = new OpenLayers.Projection("EPSG:4326"); > lonLat = new OpenLayers.LonLat(lon,lat); > lonLat.project(p4326,map.getProjectionObject()); > > > > Notice: This email and any attachments are confidential. If received in > error please destroy and immediately notify us. Do not copy or disclose the > contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From gpktondo at gmail.com Wed Aug 29 11:04:30 2012 From: gpktondo at gmail.com (Tondo) Date: Wed, 29 Aug 2012 11:04:30 -0700 (PDT) Subject: [OpenLayers-Users] map without crs In-Reply-To: <5036997D.3000200@gns.cri.nz> References: <1345743765463-4997408.post@n6.nabble.com> <5036997D.3000200@gns.cri.nz> Message-ID: <1346263470995-4998682.post@n6.nabble.com> Thanks for the reply Phil. I'm trying to connect WMS using coordinate system EPSG:102067 but I'm stuck. I obtained the BBox from Capabilities, but I get broken Tiles. I read that it has something to do with map.Resolutions but I have no idea what values ? I have to add there. Is it possible somehow calculated? What happens if I want to add the WFS in the same coordinate system? _map = new OpenLayers.Map( "map", { layers: [ new OpenLayers.Layer.WMS( "Podklad", "http://geoportal.gov.cz/ArcGIS/services/CENIA/cenia_rt_ortofotomapa_aktualni/MapServer/WMSServer", { layers: "0", format: "image/png", }, { isBaseLayer: true, units: 'm', } ) ], maxExtent: new OpenLayers.Bounds(-905000.000000, -1228000.000000, -430000.000000, -934000.000000), units: "m", projection: "epsg:102067" } ); Thank you for your help. Tom -- View this message in context: http://osgeo-org.1560.n6.nabble.com/map-without-crs-tp4997408p4998682.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From smaran.harihar at gmail.com Wed Aug 29 14:13:59 2012 From: smaran.harihar at gmail.com (Smaran Harihar) Date: Wed, 29 Aug 2012 14:13:59 -0700 Subject: [OpenLayers-Users] Unable to get WFS working Message-ID: Hi, This is really weird. I have cgi-bin working. I know this since I have a function which make AJAX call and I am receiving JSON in return. Now I am trying to get WFS working but that does not seem to work. It is giving me the following error in firebug, "NetworkError: 502 Bad Gateway - http://128.196.142.12/cgi-bin/proxy.cgi?url=http%3A%2F%2F128.196.142.12%3A8080%2Fgeoserver%2Fwfs " This is how I am adding WFS, var states = new OpenLayers.Layer.Vector("USA States", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://128.196.142.12:8080/geoserver/wfs", featureType: "usa:states", featureNS: "http://usa.opengeo.org" }) }); Is there something wrong with the code? -- Thanks & Regards Smaran Harihar -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.scadden at gns.cri.nz Wed Aug 29 15:45:57 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 30 Aug 2012 10:45:57 +1200 Subject: [OpenLayers-Users] Unable to get WFS working In-Reply-To: References: Message-ID: <503E9BA5.3080206@gns.cri.nz> Maybe this helps? http://www.checkupdown.com/status/E502.html Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From p.scadden at gns.cri.nz Wed Aug 29 16:00:12 2012 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Thu, 30 Aug 2012 11:00:12 +1200 Subject: [OpenLayers-Users] map without crs In-Reply-To: <1346263470995-4998682.post@n6.nabble.com> References: <1345743765463-4997408.post@n6.nabble.com> <5036997D.3000200@gns.cri.nz> <1346263470995-4998682.post@n6.nabble.com> Message-ID: <503E9EFC.3050803@gns.cri.nz> hmm. Using firebug, (Net tab), you can look at the requests that to the wms server that are being generated. (You will GET requests the wms server). The return status might be interesting, but if not, how about posting the request that your code is generating from the net tab? You can test a lot of issues by just fiddling with the request as a URL in the browser. That said, I have found ArcGISServer to be major pain in the butt. Does it understand EPSG:102067 for starters? 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 Heezen at Covadis.nl Wed Aug 29 23:59:56 2012 From: Heezen at Covadis.nl (Lucas Heezen - Covadis) Date: Thu, 30 Aug 2012 06:59:56 +0000 Subject: [OpenLayers-Users] Detect geometry type of a wfs layer Message-ID: <26CD38C6E3655E44B5883AA2C3D4FF9E0C948916@ELITE.covadisbv.local> Hello, I'm building a application which can draw features. But the handler selected for the drawing is dynamic by its layer. So it could be a mulitpoint, multipolygon etc. Is there a way to detect the geometry type of a WFS layer? I did a descriptFeatureType but this gives me only this: Met vriendelijke groet, Lucas Heezen Covadis b.v. t: 026 3616600 Geograaf 12 f: 026 3612317 6921?EW?Duiven e: heezen at covadis.nl From bartvde at opengeo.org Thu Aug 30 00:19:23 2012 From: bartvde at opengeo.org (Bart van den Eijnden) Date: Thu, 30 Aug 2012 09:19:23 +0200 Subject: [OpenLayers-Users] Detect geometry type of a wfs layer In-Reply-To: <26CD38C6E3655E44B5883AA2C3D4FF9E0C948916@ELITE.covadisbv.local> References: <26CD38C6E3655E44B5883AA2C3D4FF9E0C948916@ELITE.covadisbv.local> Message-ID: <607CA93E-2482-4B63-BC96-033DD8C84E57@opengeo.org> There is, but it depends on your WFS product (and maybe also the underlying type of datastore). E.g. here you can see a GeoServer example that advertises this is a multi polygon layer: http://demo.opengeo.org/geoserver/wfs?service=WFS&request=DescribeFeatureType&typename=topp:states I would advise you to ask on the list/forum of your WFS instead. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 30, 2012, at 8:59 AM, Lucas Heezen - Covadis wrote: > Hello, > > I'm building a application which can draw features. But the handler selected for the drawing is dynamic by its layer. So it could be a mulitpoint, multipolygon etc. > Is there a way to detect the geometry type of a WFS layer? > > I did a descriptFeatureType but this gives me only this: > > > > > Met vriendelijke groet, > Lucas Heezen > > Covadis b.v. > t: 026 3616600 > > Geograaf 12 > f: 026 3612317 > > 6921 EW Duiven > e: heezen at covadis.nl > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gpktondo at gmail.com Thu Aug 30 00:41:57 2012 From: gpktondo at gmail.com (Tondo) Date: Thu, 30 Aug 2012 00:41:57 -0700 (PDT) Subject: [OpenLayers-Users] map without crs In-Reply-To: <503E9EFC.3050803@gns.cri.nz> References: <1345743765463-4997408.post@n6.nabble.com> <5036997D.3000200@gns.cri.nz> <1346263470995-4998682.post@n6.nabble.com> <503E9EFC.3050803@gns.cri.nz> Message-ID: <1346312517387-4998788.post@n6.nabble.com> Hi I did both and tried few additional map servers. http://nipi.sazp.sk/arcgis/services/ptb/annexi/MapServer/WMSServer?request=getcapabilities&service=wms This one contains public WMS layers (Svlovak Environment Agency): I tried to add layer 27... 27 .... EPSG:102067 .... .... Corect me if I am wrong, but this means EPSG:102067 should be known, right? (note: the truth is there isn't such a code. This is ESRI:102067, but everyone - for reasons unknown - uses EPSG). I tried also display http://nipi.sazp.sk/arcgis/services/ptb/annexi/MapServer/WMSServer?LAYERS=27&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=epsg%3A102067&BBOX=-591442.89530543,-1331274.0246149,14432.326558037,-725398.80275143&WIDTH=256&HEIGHT=256 GET request - xml exception: Parameter 'srs' contains unacceptable value. And I have to admit I am REALY confused... -- View this message in context: http://osgeo-org.1560.n6.nabble.com/map-without-crs-tp4997408p4998788.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gpktondo at gmail.com Thu Aug 30 00:59:13 2012 From: gpktondo at gmail.com (Tondo) Date: Thu, 30 Aug 2012 00:59:13 -0700 (PDT) Subject: [OpenLayers-Users] map without crs In-Reply-To: <1346312517387-4998788.post@n6.nabble.com> References: <1345743765463-4997408.post@n6.nabble.com> <5036997D.3000200@gns.cri.nz> <1346263470995-4998682.post@n6.nabble.com> <503E9EFC.3050803@gns.cri.nz> <1346312517387-4998788.post@n6.nabble.com> Message-ID: <1346313553236-4998797.post@n6.nabble.com> Okay, problem solved! I didn't know that SRS is case sensitive. It has to be EPSG. And what about the resolution? Or is it simply enough to provide maxExtent and scales? Is there anything else I could use to increase accuracy or something? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/map-without-crs-tp4997408p4998797.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gpktondo at gmail.com Thu Aug 30 06:15:16 2012 From: gpktondo at gmail.com (Tondo) Date: Thu, 30 Aug 2012 06:15:16 -0700 (PDT) Subject: [OpenLayers-Users] Detect geometry type of a wfs layer In-Reply-To: <26CD38C6E3655E44B5883AA2C3D4FF9E0C948916@ELITE.covadisbv.local> References: <26CD38C6E3655E44B5883AA2C3D4FF9E0C948916@ELITE.covadisbv.local> Message-ID: <1346332515912-4998873.post@n6.nabble.com> Hi, Not sure what you want to achieve, but... maybe you could use stuff like this: vec.features[0].geometry.CLASS_NAME "OpenLayers.Geometry.LineString" If you know what kind of handler to use... function setEditable(layer, handler /*"Point" or "Path" or "Polygon"*/) { snap.setLayer(layer); modifyControl.deactivate(); modifyControl.layer = layer; modifyControl.selectControl.layer = layer; modifyControl.selectControl.handlers.feature.layer = layer; modifyControl.dragControl.layer = layer; modifyControl.dragControl.handlers.drag.layer = layer; modifyControl.dragControl.handlers.feature.layer = layer; drawControl.deactivate(); drawControl.layer = layer; if (layer.features[0].geometry.CLASS_NAME == "OpenLayers.Geometry.MultiPolygon" || layer.features[0].geometry.CLASS_NAME == "OpenLayers.Geometry.MultiLineString" || layer.features[0].geometry.CLASS_NAME == "OpenLayers.Geometry.MultiPoint") { drawControl.handler.multi = true; drawControl.handlerOptions.multi = true; } else { drawControl.handler.multi = false; drawControl.handlerOptions.multi = false; } drawControl.handler = new OpenLayers.Handler[handler]( //Nastavit handler drawControl, drawControl.callbacks, drawControl.handlerOptions ); } Tom -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Detect-geometry-type-of-a-wfs-layer-tp4998779p4998873.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From gesusjl at gmail.com Thu Aug 30 17:06:07 2012 From: gesusjl at gmail.com (jesusjl) Date: Thu, 30 Aug 2012 17:06:07 -0700 (PDT) Subject: [OpenLayers-Users] weird google map overview control behaviour Message-ID: <1346371567482-4998946.post@n6.nabble.com> Hi, does anybody know why google maps layer appears in an overview control even when i explicit configure a wms layer to appear instead? Thank you -- View this message in context: http://osgeo-org.1560.n6.nabble.com/weird-google-map-overview-control-behaviour-tp4998946.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From peterlanz at yahoo.com Fri Aug 31 06:18:09 2012 From: peterlanz at yahoo.com (Peter Lanz) Date: Fri, 31 Aug 2012 06:18:09 -0700 (PDT) Subject: [OpenLayers-Users] Best Practice for WFS-T Message-ID: <1346419089.49184.YahooMailNeo@web161603.mail.bf1.yahoo.com> Dear OpenLayers Community! We are planning to set up a WFS-T: PostgreSQL 9.1 (PostGIS 2.0) - GeoServer 2.1.4 - OpenLayers 2.12 - GeoExt 1.1 1 layer of point data with the goal of having point-attributes editable. Due to lack of experience ?I air this question to the ML:? which tool would you choose for a WFS-T implementation? tinyOWS, MapFish or something else?? Are there significant differences and grounds to choose one over the other?` greatly appreciating help! pedro ? ________________________________ peter lanz ?00491632465592 ?berlin ? ?flasherei.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGilbert at korem.com Fri Aug 31 12:51:48 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Fri, 31 Aug 2012 15:51:48 -0400 Subject: [OpenLayers-Users] problem to do a simple button on a mobile map Message-ID: Hi list I'm just testing some mobile navigation I have a map and a simple toolbar and in this toolbar I add a simple tool which just do an alert on the trigger method when user touch the button. The problem I have: I touch the button, trigger is called, but, next touch anywhere on the screen will make trigger called again? I have no idea why, my example have almost no code? I guess someone could easily tell me what is my problem? Here is my button: GeolocateControl = OpenLayers.Class(OpenLayers.Control, { type: OpenLayers.Control.TYPE_BUTTON, CLASS_NAME: "GeolocateControl", trigger: function(){ alert("trigger"); } }); Here is my complete test page
    From AGilbert at korem.com Fri Aug 31 13:16:15 2012 From: AGilbert at korem.com (Gilbert, Antoine) Date: Fri, 31 Aug 2012 16:16:15 -0400 Subject: [OpenLayers-Users] problem to do a simple button on a mobile map In-Reply-To: Message-ID: I think it's the alert itself? It's probably disturbing some sort of instructions sequence.. When I try with a console.debug (works on safari ios) I don't have the problem.. Antoine On 12-08-31 3:51 PM, "Gilbert, Antoine" wrote: >Hi list > >I'm just testing some mobile navigation > >I have a map and a simple toolbar and in this toolbar I add a simple tool >which just do an alert on the trigger method when user touch the button. > >The problem I have: I touch the button, trigger is called, but, next >touch anywhere on the screen will make trigger called again? I have no >idea why, my example have almost no code? > >I guess someone could easily tell me what is my problem? > >Here is my button: > >GeolocateControl = OpenLayers.Class(OpenLayers.Control, { > type: OpenLayers.Control.TYPE_BUTTON, > CLASS_NAME: "GeolocateControl", > trigger: function(){ > alert("trigger"); > } > }); > > >Here is my complete test page > > > > > > > > > href="http://dev.openlayers.org/releases/OpenLayers-2.12/theme/default/sty >le.mobile.css" type="text/css"> > href="http://dev.openlayers.org/releases/OpenLayers-2.12/theme/default/sty >le.css" type="text/css"> > > > > >
    > > > > >_______________________________________________ >Users mailing list >Users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/openlayers-users From arvinporthog at lycos.com Fri Aug 31 14:06:39 2012 From: arvinporthog at lycos.com (Arvin) Date: Fri, 31 Aug 2012 14:06:39 -0700 (PDT) Subject: [OpenLayers-Users] The edges of my map get cut off Message-ID: <1346447199904-4999122.post@n6.nabble.com> I know next to nothing about OpenLayers but I've managed to learn just barely enough and copy other peoples code just enough to cobble together a fairly functional interface. I don't even know enough to phrase my question intelligibly. So I'm using OpenLayers with Geoserver to serve out simple non-georeferenced maps. No fancy added layers - I'm essentially just using the setup as a pan and zoom tool, nothing more. The documentation is overwhelming for such a simple task. Anyway, here's my problem. When I display my map I can't drag it to the far left or the far right of my bounding div. It's like a third of the way to each edge there's an invisible wall and I can drag no further. The problem is that as I zoom in the map the edges get cut off and there's no way to view the top or bottom of the map anymore or either side. You can see the problem here: http://ucblibrary4.berkeley.edu/~apollock/mad/collections/histopo Where should I start looking to solve this problem? Can any kind person help out a newbie? Arvin -- View this message in context: http://osgeo-org.1560.n6.nabble.com/The-edges-of-my-map-get-cut-off-tp4999122.html Sent from the OpenLayers Users mailing list archive at Nabble.com.