[OpenLayers-Users] Re: WMScapabilities

2011-01-05 Thread Aditya Kumar
You can write like this var request = OpenLayers.Request.GET( {url: "http://disc1.sci.gsfc.nasa.gov/daac-bin/wms_airsnrt?service=wms&version=1.1.1&request=getcapabilities";, success: function(response){ var format =

Re: [OpenLayers-Users] Get the center of a regular Polygon

2011-01-05 Thread Alexandre Dube
Hi, Using Firebug, try putting a breakpoint on your first line of you "added" function. You'll see that the "feature" argument is not a feature, but rather an event containing your feature. Try : added = function (event) { var feature = event.feature; var center=feature.geometry.getCe

[OpenLayers-Users] Get the center of a regular Polygon

2011-01-05 Thread MightTower
Hello, i try to get the center of a just drawn regular Polygon with the follwing code: added =function (feature) { var center=feature.geometry.getCentroid(); alert(center.x); }; controls = { regular: new

Re: [OpenLayers-Users] Select feature several times

2011-01-05 Thread Diego Guidi
yes, any ol feature have an id property, even autogenerated by ol itself. On 05/01/2011, Alexander Petkov wrote: > Put a breakpoint in Firebug and inspect feature's properties. > > I see that a dynamically drawn feature in one of the examples has an > 'id' property. > > Alex > > On Tue, Jan 4,

Re: [OpenLayers-Users] New Bing tiles layer

2011-01-05 Thread christopher.schmidt
On Jan 5, 2011, at 1:03 PM, ext Andreas Hocevar wrote: > On Jan 5, 2011, at 19:02 , wrote: > >> I think OL.Layer.MM has been dead for a while; I wouldn't work too hard on >> trying to do much with it. > > I have changed the multimap and multimap-mercator examples to use a new api > key a whil

Re: [OpenLayers-Users] New Bing tiles layer

2011-01-05 Thread Andreas Hocevar
On Jan 5, 2011, at 19:02 , wrote: > I think OL.Layer.MM has been dead for a while; I wouldn't work too hard on > trying to do much with it. I have changed the multimap and multimap-mercator examples to use a new api key a while ago and they still work fine. Andreas. > > -- Chris > > On Jan

Re: [OpenLayers-Users] New Bing tiles layer

2011-01-05 Thread christopher.schmidt
I think OL.Layer.MM has been dead for a while; I wouldn't work too hard on trying to do much with it. -- Chris On Jan 5, 2011, at 12:41 PM, ext Andreas Hocevar wrote: > Hi, > > you may want to ask Microsoft for an API and Terms Of Use compliant way to do > this. In the meantime, you can overri

Re: RE [OpenLayers-Users] Layer.WMS displaying pink tiles

2011-01-05 Thread Ian Turton
On Wed, Jan 5, 2011 at 12:55 PM, Mukesh Subedee wrote: > Thanks Steve for your response. Unfortunately, it does not work with the > change. wrapDateLine was working before with pink tiles being wrapped but > with the change it does not work either. I still could not figure out the > problem. > >

Re: RE [OpenLayers-Users] Layer.WMS displaying pink tiles

2011-01-05 Thread Mukesh Subedee
Thanks Steve for your response. Unfortunately, it does not work with the change. wrapDateLine was working before with pink tiles being wrapped but with the change it does not work either. I still could not figure out the problem. Thanks, Mukesh --- On Wed, 5/1/11, steve.tout...@inspq.qc.ca wro

Re: [OpenLayers-Users] New Bing tiles layer

2011-01-05 Thread Andreas Hocevar
Hi, you may want to ask Microsoft for an API and Terms Of Use compliant way to do this. In the meantime, you can override the getURL method of your OpenLayers.Layer.Bing instance to append a productSet parameter, but this clearly violates the Bing Maps Terms Of Use. getURL: function() { re

Re: [OpenLayers-Users] Select feature several times

2011-01-05 Thread Alexander Petkov
Put a breakpoint in Firebug and inspect feature's properties. I see that a dynamically drawn feature in one of the examples has an 'id' property. Alex On Tue, Jan 4, 2011 at 4:02 PM, yvecai wrote: > I'm not sure to get it.  I don't see no uid nor oid properties on selected > features. >      

[OpenLayers-Users] New Bing tiles layer

2011-01-05 Thread Joanne Cook
Hi All, I have been playing with the new Bing tiles layer in the OpenLayers trunk, and can get it to work for standard layers, but I was wondering if it will ever be possible to access the Ordnance Survey tiles that are available in Bing in the UK through this method? I have tried supplying the

[OpenLayers-Users] Displaying a kml layer with a WMS layer

2011-01-05 Thread Spurgeon, Peter
Hi I wish to display a kml layer and allow the use to select the features by hovering over them : - http://gis.camden.gov.uk/geoserver/kmltest46.html When I add the kml layer to a map displaying WMS layers in EPSG:27700, the kml layer is not visible on the map: - http://gis.camden.g