You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
(17) |
Apr
|
May
|
Jun
(6) |
Jul
(10) |
Aug
(16) |
Sep
(4) |
Oct
(16) |
Nov
(8) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(5) |
Feb
(28) |
Mar
(35) |
Apr
(20) |
May
(13) |
Jun
(24) |
Jul
(14) |
Aug
(8) |
Sep
(19) |
Oct
(13) |
Nov
(16) |
Dec
(8) |
2011 |
Jan
(18) |
Feb
(10) |
Mar
(16) |
Apr
(14) |
May
(21) |
Jun
(20) |
Jul
(12) |
Aug
(18) |
Sep
(11) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Andrew H. <ahh...@gm...> - 2010-11-03 23:23:01
|
Getting close but not yet, I think my native javascript is fundementally flawed... says "OpenLayers is undefined".... perhaps I am missing some $wnd.* somewhere :'( Any idea's? Sorry to bug people... ------------------------------------------------------------------------------------ public class HoverControl extends Control { public interface HoverControlListener { void onPause(JSObject evt); void onMove(JSObject evt); } protected HoverControl(JSObject element) { super(element); } public HoverControl(HoverControlListener listener) { this(HoverControlImpl.create(listener)); } public static HoverControl narrowToHoverControl(JSObject element) { return (element == null) ? null: new HoverControl(element); } } ------------------------------------------------------------------------------------ class HoverControlImpl { public static native JSObject create(HoverControl.HoverControlListener callback) /*-{ OpenLayers.Control.Hover = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'delay': 500, 'pixelTolerance': null, 'stopMove': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Hover( this, {'pause': this.onPause, 'move': this.onMove}, this.handlerOptions ); }, onPause: function(evt) { callback.@com.acme.client.hover.HoverControl.HoverControlListener ::onPause(Lorg/gwtopenmaps/openlayers/client/util/JSObject;)(evt); }, onMove: function(evt) { callback.@com.acme.client.hover.HoverControl.HoverControlListener ::onPause(Lorg/gwtopenmaps/openlayers/client/util/JSObject;)(evt); } }); return new $wnd.OpenLayers.Control.Hover(); }-*/; } ------------------------------------------------------------------------------------ On Wed, Nov 3, 2010 at 6:08 AM, Edwin Commandeur <com...@gm... > wrote: > Hi Andrew, > > The example you send works nicely, so I wonder what you are confused > about in native JavaScript. Seems a perfectly fine example of a custom > Handler. > > A way to incorporate this handler in GWT-OL is by adding the code for > the Hover control in a javascript file and distribute that with GWT-OL > and wrap the native javascript like we wrap other Controls. > > There are already some javascript utility functions which are in: > > gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/public/js/gwt-openlayers/utils.js > > Maybe we could put a ol-extensions.js file in there, and also make > clear in the GWT wrapper class namespace that it uses stuff in this > extensions file. > > Another way would be to distribute the handler code with > GWT-OpenLayers and explain in the wrapper Javadoc that the js file > needs to be loaded in the page to use that specific wrapper class. > > A combination of Javascript and GWT wrapper seems the way to go, since > I don't see a way to provide a Control in native GWT (you would always > need JSNI to add functions to the Control as fas as I can see). > > Greetings, > Edwin > > On 2 November 2010 13:45, Andrew Hughes <ahh...@gm...> wrote: > > Hi Everyone, > > We have a requirement that we need to register a hover handler on a map. > > GWT-OpenLayers can't do this yet and the native javascript has me a > little > > confused... I have a simple javascript example working below. This seems > > like it would be complex to wrap, advice would be most appreciated. > > > > > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <link rel="stylesheet" > > href="http://openlayers.org/dev/theme/default/style.css" type="text/css" > /> > > <link rel="stylesheet" > > href="http://openlayers.org/dev/examples/style.css" type="text/css" /> > > > > <style type="text/css"> > > #map { > > width: 640px; > > height: 480px; > > } > > </style> > > <script > > src="http://openlayers.org/dev/lib/Firebug/firebug.js"></script> > > <script src="http://openlayers.org/dev/OpenLayers.js"></script> > > <script type="text/javascript"> > > > > OpenLayers.Control.Hover = > OpenLayers.Class(OpenLayers.Control, > > { > > defaultHandlerOptions: { > > 'delay': 500, > > 'pixelTolerance': null, > > 'stopMove': false > > }, > > > > initialize: function(options) { > > this.handlerOptions = OpenLayers.Util.extend( > > {}, this.defaultHandlerOptions > > ); > > OpenLayers.Control.prototype.initialize.apply( > > this, arguments > > ); > > this.handler = new OpenLayers.Handler.Hover( > > this, > > {'pause': this.onPause, 'move': this.onMove}, > > this.handlerOptions > > ); > > }, > > > > onPause: function(evt) { > > var output = document.getElementById('output'); > > var msg = 'pause ' + evt.xy; > > output.value = output.value + msg + "\r\n"; > > }, > > > > onMove: function(evt) { > > // do something... like cancel > > } > > }); > > > > var map; > > > > function init(){ > > map = new OpenLayers.Map('map'); > > var layer = new OpenLayers.Layer.WMS('OpenLayers > > WMS','http://vmap0.tiles.osgeo.org/wms/vmap0',{layers: 'basic'}); > > map.addLayers([layer]); > > var hoverControl = new OpenLayers.Control.Hover({ > > handlerOptions: { > > 'delay': 500 > > } > > }); > > map.addControl(hoverControl); > > map.zoomToMaxExtent(); > > hoverControl.activate(); > > } > > > > </script> > > </head> > > <body onload="init()"> > > <div id="map" class="smallmap"></div> > > <textarea class="output" id="output"></textarea></td> > > </body> > > </html> > > > > > > > ------------------------------------------------------------------------------ > > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > > Create new apps & games for the Nokia N8 for consumers in U.S. and > Canada > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > |
From: Edwin C. <com...@gm...> - 2010-11-02 19:38:50
|
Hi Andrew, The example you send works nicely, so I wonder what you are confused about in native JavaScript. Seems a perfectly fine example of a custom Handler. A way to incorporate this handler in GWT-OL is by adding the code for the Hover control in a javascript file and distribute that with GWT-OL and wrap the native javascript like we wrap other Controls. There are already some javascript utility functions which are in: gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/public/js/gwt-openlayers/utils.js Maybe we could put a ol-extensions.js file in there, and also make clear in the GWT wrapper class namespace that it uses stuff in this extensions file. Another way would be to distribute the handler code with GWT-OpenLayers and explain in the wrapper Javadoc that the js file needs to be loaded in the page to use that specific wrapper class. A combination of Javascript and GWT wrapper seems the way to go, since I don't see a way to provide a Control in native GWT (you would always need JSNI to add functions to the Control as fas as I can see). Greetings, Edwin On 2 November 2010 13:45, Andrew Hughes <ahh...@gm...> wrote: > Hi Everyone, > We have a requirement that we need to register a hover handler on a map. > GWT-OpenLayers can't do this yet and the native javascript has me a little > confused... I have a simple javascript example working below. This seems > like it would be complex to wrap, advice would be most appreciated. > > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <link rel="stylesheet" > href="http://openlayers.org/dev/theme/default/style.css" type="text/css" /> > <link rel="stylesheet" > href="http://openlayers.org/dev/examples/style.css" type="text/css" /> > > <style type="text/css"> > #map { > width: 640px; > height: 480px; > } > </style> > <script > src="http://openlayers.org/dev/lib/Firebug/firebug.js"></script> > <script src="http://openlayers.org/dev/OpenLayers.js"></script> > <script type="text/javascript"> > > OpenLayers.Control.Hover = OpenLayers.Class(OpenLayers.Control, > { > defaultHandlerOptions: { > 'delay': 500, > 'pixelTolerance': null, > 'stopMove': false > }, > > initialize: function(options) { > this.handlerOptions = OpenLayers.Util.extend( > {}, this.defaultHandlerOptions > ); > OpenLayers.Control.prototype.initialize.apply( > this, arguments > ); > this.handler = new OpenLayers.Handler.Hover( > this, > {'pause': this.onPause, 'move': this.onMove}, > this.handlerOptions > ); > }, > > onPause: function(evt) { > var output = document.getElementById('output'); > var msg = 'pause ' + evt.xy; > output.value = output.value + msg + "\r\n"; > }, > > onMove: function(evt) { > // do something... like cancel > } > }); > > var map; > > function init(){ > map = new OpenLayers.Map('map'); > var layer = new OpenLayers.Layer.WMS('OpenLayers > WMS','http://vmap0.tiles.osgeo.org/wms/vmap0',{layers: 'basic'}); > map.addLayers([layer]); > var hoverControl = new OpenLayers.Control.Hover({ > handlerOptions: { > 'delay': 500 > } > }); > map.addControl(hoverControl); > map.zoomToMaxExtent(); > hoverControl.activate(); > } > > </script> > </head> > <body onload="init()"> > <div id="map" class="smallmap"></div> > <textarea class="output" id="output"></textarea></td> > </body> > </html> > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Andrew H. <ahh...@gm...> - 2010-11-02 12:45:43
|
Hi Everyone, We have a requirement that we need to register a hover handler on a map. GWT-OpenLayers can't do this yet and the native javascript has me a little confused... I have a simple javascript example working below. This seems like it would be complex to wrap, advice would be most appreciated. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href=" http://openlayers.org/dev/theme/default/style.css" type="text/css" /> <link rel="stylesheet" href=" http://openlayers.org/dev/examples/style.css" type="text/css" /> <style type="text/css"> #map { width: 640px; height: 480px; } </style> <script src="http://openlayers.org/dev/lib/Firebug/firebug.js "></script> <script src="http://openlayers.org/dev/OpenLayers.js"></script> <script type="text/javascript"> *OpenLayers.Control.Hover = OpenLayers.Class(OpenLayers.Control, { * * defaultHandlerOptions: {* * 'delay': 500,* * 'pixelTolerance': null,* * 'stopMove': false* * },* * * * initialize: function(options) {* * this.handlerOptions = OpenLayers.Util.extend(* * {}, this.defaultHandlerOptions* * );* * OpenLayers.Control.prototype.initialize.apply(* * this, arguments* * ); * * this.handler = new OpenLayers.Handler.Hover(* * this,* * {'pause': this.onPause, 'move': this.onMove},* * this.handlerOptions* * );* * }, * * * * onPause: function(evt) {* * var output = document.getElementById('output');* * var msg = 'pause ' + evt.xy;* * output.value = output.value + msg + "\r\n";* * },* * * * onMove: function(evt) {* * // do something... like cancel* * }* * });* var map; function init(){ map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.WMS('OpenLayers WMS',' http://vmap0.tiles.osgeo.org/wms/vmap0',{layers: 'basic'}); map.addLayers([layer]); *var hoverControl = new OpenLayers.Control.Hover({* * handlerOptions: {* * 'delay': 500* * }* * }); * map.addControl(hoverControl); map.zoomToMaxExtent(); hoverControl.activate(); } </script> </head> <body onload="init()"> <div id="map" class="smallmap"></div> <textarea class="output" id="output"></textarea></td> </body> </html> |
From: <tin...@ar...> - 2010-10-25 16:46:39
|
Hey Jon, you have to include your projection in your javascript. You can find the code for the proj4js-projection on http://spatialreference.org/ref/epsg/32630/proj4js/ Proj4js.defs["EPSG:32630"] = "+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"; I you don't do this the conversion returns the coordinates you have put in. This should solve yout problem. regarda Tino ----- Original Nachricht ---- Von: Jon Britton <jon...@go...> An: tin...@ar... Datum: 25.10.2010 17:59 Betreff: Re: [Gwt-openlayers-users] Projection supported? > I'm using 2.10. I've solved that problem now, but my transformation still > isn't working. I've included the proj4js.js library in my project, but the > result is always in EPSG:4326 (I'm trying to project to EPSG:32630). I > assume the problem is that proj4js isn't finding the projection. I read > Proj4js user guide and it says that it will lookup the projection code on > spatialreference.org but this doesn't seem to be happening... > > Does anybody know how to use proj4js with OpenLayers? My GWT/JavaScript > method is below. > > Cheers, > > private static native JavaScriptObject reproject(double minX, double minY, > double maxX, double maxY, String source, String dest)/*-{ > var bounds = new $wnd.OpenLayers.Bounds(minX, minY, maxX, maxY); > var sourceProj = new $wnd.OpenLayers.Projection(source); > var destProj = new $wnd.OpenLayers.Projection(dest); > bounds.transform(sourceProj, destProj); > return bounds; > }-*/; > > On 21 October 2010 14:02, <tin...@ar...> wrote: > > > Hey Jon, > > > > the Openlayers.js contains the function transform in the class > > Openlayers.Bounds. It uses the Projection-class and it should be working. > > Which version do you use? > > > > > > ----- Original Nachricht ---- > > Von: Jon Britton <jon...@go...> > > An: tin...@ar... > > Datum: 21.10.2010 13:13 > > Betreff: Re: [Gwt-openlayers-users] Projection supported? > > > > > What I really need is the transform method for the Bounds class. I've > > been > > > trying to implement it in pure JavaScript but can't get it to work (it > > > keeps > > > telling me my Bounds object doesn't have a "transform" function). > > > > > > Jon > > > > > > On 21 October 2010 09:33, <tin...@ar...> wrote: > > > > > > > Hi Jon, > > > > > > > > the method transform isn't implemented yet. I have made it myself and > > it > > > > works. I have ask the admins of the openlayers-gwt-project for > > > > code-contribution, but to date I have no answer. I can send you the > > > > source-code if you like. > > > > > > > > regards > > > > > > > > Tino > > > > > > > > > > > > ----- Original Nachricht ---- > > > > Von: Jon Britton <jon...@go...> > > > > An: gwt-openlayers-users > > > <gwt...@li...> > > > > Datum: 20.10.2010 14:18 > > > > Betreff: [Gwt-openlayers-users] Projection supported? > > > > > > > > > Hi, > > > > > Is the Projection class supported in gwt-openlayers? I can't seem > to > > > > find > > > > > the transform methods. > > > > > Thanks, > > > > > Jon > > > > > > > > > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > > > > > > > > > -- > > > > > Download new Adobe(R) Flash(R) Builder(TM) 4 > > > > > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > > > > > Flex(R) Builder(TM)) enable the development of rich applications > that > > > run > > > > > across multiple browsers and platforms. Download your free trials > > > today! > > > > > http://p.sf.net/sfu/adobe-dev2dev > > > > > > > > > > -------------------------------- > > > > > > > > > > _______________________________________________ > > > > > Gwt-openlayers-users mailing list > > > > > Gwt...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > > > > -- > > > > Nokia and AT&T present the 2010 Calling All Innovators-North America > > > > contest > > > > Create new apps & games for the Nokia N8 for consumers in U.S. and > > > Canada > > > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > > > > marketing > > > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi > > Store > > > > http://p.sf.net/sfu/nokia-dev2dev > > > > _______________________________________________ > > > > Gwt-openlayers-users mailing list > > > > Gwt...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > -- > > Nokia and AT&T present the 2010 Calling All Innovators-North America > > contest > > Create new apps & games for the Nokia N8 for consumers in U.S. and > Canada > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > > marketing > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > |
From: Jon B. <jon...@go...> - 2010-10-25 16:00:18
|
I'm using 2.10. I've solved that problem now, but my transformation still isn't working. I've included the proj4js.js library in my project, but the result is always in EPSG:4326 (I'm trying to project to EPSG:32630). I assume the problem is that proj4js isn't finding the projection. I read Proj4js user guide and it says that it will lookup the projection code on spatialreference.org but this doesn't seem to be happening... Does anybody know how to use proj4js with OpenLayers? My GWT/JavaScript method is below. Cheers, private static native JavaScriptObject reproject(double minX, double minY, double maxX, double maxY, String source, String dest)/*-{ var bounds = new $wnd.OpenLayers.Bounds(minX, minY, maxX, maxY); var sourceProj = new $wnd.OpenLayers.Projection(source); var destProj = new $wnd.OpenLayers.Projection(dest); bounds.transform(sourceProj, destProj); return bounds; }-*/; On 21 October 2010 14:02, <tin...@ar...> wrote: > Hey Jon, > > the Openlayers.js contains the function transform in the class > Openlayers.Bounds. It uses the Projection-class and it should be working. > Which version do you use? > > > ----- Original Nachricht ---- > Von: Jon Britton <jon...@go...> > An: tin...@ar... > Datum: 21.10.2010 13:13 > Betreff: Re: [Gwt-openlayers-users] Projection supported? > > > What I really need is the transform method for the Bounds class. I've > been > > trying to implement it in pure JavaScript but can't get it to work (it > > keeps > > telling me my Bounds object doesn't have a "transform" function). > > > > Jon > > > > On 21 October 2010 09:33, <tin...@ar...> wrote: > > > > > Hi Jon, > > > > > > the method transform isn't implemented yet. I have made it myself and > it > > > works. I have ask the admins of the openlayers-gwt-project for > > > code-contribution, but to date I have no answer. I can send you the > > > source-code if you like. > > > > > > regards > > > > > > Tino > > > > > > > > > ----- Original Nachricht ---- > > > Von: Jon Britton <jon...@go...> > > > An: gwt-openlayers-users > > <gwt...@li...> > > > Datum: 20.10.2010 14:18 > > > Betreff: [Gwt-openlayers-users] Projection supported? > > > > > > > Hi, > > > > Is the Projection class supported in gwt-openlayers? I can't seem to > > > find > > > > the transform methods. > > > > Thanks, > > > > Jon > > > > > > > > > > > > -------------------------------- > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > > > > > > -- > > > > Download new Adobe(R) Flash(R) Builder(TM) 4 > > > > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > > > > Flex(R) Builder(TM)) enable the development of rich applications that > > run > > > > across multiple browsers and platforms. Download your free trials > > today! > > > > http://p.sf.net/sfu/adobe-dev2dev > > > > > > > > -------------------------------- > > > > > > > > _______________________________________________ > > > > Gwt-openlayers-users mailing list > > > > Gwt...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > > -- > > > Nokia and AT&T present the 2010 Calling All Innovators-North America > > > contest > > > Create new apps & games for the Nokia N8 for consumers in U.S. and > > Canada > > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > > > marketing > > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi > Store > > > http://p.sf.net/sfu/nokia-dev2dev > > > _______________________________________________ > > > Gwt-openlayers-users mailing list > > > Gwt...@li... > > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: <tin...@ar...> - 2010-10-21 13:02:34
|
Hey Jon, the Openlayers.js contains the function transform in the class Openlayers.Bounds. It uses the Projection-class and it should be working. Which version do you use? ----- Original Nachricht ---- Von: Jon Britton <jon...@go...> An: tin...@ar... Datum: 21.10.2010 13:13 Betreff: Re: [Gwt-openlayers-users] Projection supported? > What I really need is the transform method for the Bounds class. I've been > trying to implement it in pure JavaScript but can't get it to work (it > keeps > telling me my Bounds object doesn't have a "transform" function). > > Jon > > On 21 October 2010 09:33, <tin...@ar...> wrote: > > > Hi Jon, > > > > the method transform isn't implemented yet. I have made it myself and it > > works. I have ask the admins of the openlayers-gwt-project for > > code-contribution, but to date I have no answer. I can send you the > > source-code if you like. > > > > regards > > > > Tino > > > > > > ----- Original Nachricht ---- > > Von: Jon Britton <jon...@go...> > > An: gwt-openlayers-users > <gwt...@li...> > > Datum: 20.10.2010 14:18 > > Betreff: [Gwt-openlayers-users] Projection supported? > > > > > Hi, > > > Is the Projection class supported in gwt-openlayers? I can't seem to > > find > > > the transform methods. > > > Thanks, > > > Jon > > > > > > > > > -------------------------------- > > > > > > > > > ---------------------------------------------------------------------------- > > > > -- > > > Download new Adobe(R) Flash(R) Builder(TM) 4 > > > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > > > Flex(R) Builder(TM)) enable the development of rich applications that > run > > > across multiple browsers and platforms. Download your free trials > today! > > > http://p.sf.net/sfu/adobe-dev2dev > > > > > > -------------------------------- > > > > > > _______________________________________________ > > > Gwt-openlayers-users mailing list > > > Gwt...@li... > > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > > > > > ---------------------------------------------------------------------------- > -- > > Nokia and AT&T present the 2010 Calling All Innovators-North America > > contest > > Create new apps & games for the Nokia N8 for consumers in U.S. and > Canada > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > > marketing > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > |
From: Jon B. <jon...@go...> - 2010-10-21 11:14:00
|
What I really need is the transform method for the Bounds class. I've been trying to implement it in pure JavaScript but can't get it to work (it keeps telling me my Bounds object doesn't have a "transform" function). Jon On 21 October 2010 09:33, <tin...@ar...> wrote: > Hi Jon, > > the method transform isn't implemented yet. I have made it myself and it > works. I have ask the admins of the openlayers-gwt-project for > code-contribution, but to date I have no answer. I can send you the > source-code if you like. > > regards > > Tino > > > ----- Original Nachricht ---- > Von: Jon Britton <jon...@go...> > An: gwt-openlayers-users <gwt...@li...> > Datum: 20.10.2010 14:18 > Betreff: [Gwt-openlayers-users] Projection supported? > > > Hi, > > Is the Projection class supported in gwt-openlayers? I can't seem to > find > > the transform methods. > > Thanks, > > Jon > > > > > > -------------------------------- > > > > > ---------------------------------------------------------------------------- > > -- > > Download new Adobe(R) Flash(R) Builder(TM) 4 > > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > > Flex(R) Builder(TM)) enable the development of rich applications that run > > across multiple browsers and platforms. Download your free trials today! > > http://p.sf.net/sfu/adobe-dev2dev > > > > -------------------------------- > > > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: <tin...@ar...> - 2010-10-21 08:34:02
|
Hi Jon, the method transform isn't implemented yet. I have made it myself and it works. I have ask the admins of the openlayers-gwt-project for code-contribution, but to date I have no answer. I can send you the source-code if you like. regards Tino ----- Original Nachricht ---- Von: Jon Britton <jon...@go...> An: gwt-openlayers-users <gwt...@li...> Datum: 20.10.2010 14:18 Betreff: [Gwt-openlayers-users] Projection supported? > Hi, > Is the Projection class supported in gwt-openlayers? I can't seem to find > the transform methods. > Thanks, > Jon > > > -------------------------------- > > ---------------------------------------------------------------------------- > -- > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > > -------------------------------- > > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: Jon B. <jon...@go...> - 2010-10-20 12:19:12
|
Hi, Is the Projection class supported in gwt-openlayers? I can't seem to find the transform methods. Thanks, Jon |
From: Edwin C. <com...@gm...> - 2010-10-13 13:24:41
|
Hi Philipp, Aha, so I did not understand containsPoint correctly. What we need is three-valued logic, but there is no basic type for that :). One option is to return a String and map the values onto that: true = 'in' false = 'out' 1 = 'edge' That way the containsPoint implementation can just return a String. public static native String containsPoint(JSObject p, JSObject self)/*-{ var out = self.containsPoint(p); if (out === true) {return 'in'} // if out === 1 then if (out) will also run! else if (out===1) {return 'edge'} else {return 'out'} }-*/; Greetings, Edwin On 13 October 2010 14:06, Philipp Verhoeven <phi...@go...> wrote: > Hi there, > > thanks for that. But there is a problem: > your suggested code returns true if var is 1. But if var is true it returns > false... > > The containsPoint()-method returns 1, if the point is on an edge. > It returns true, if the point is inside and it returns false, if the point > is outside. > > With my not existing JS skills the solution was the following: > > public static native boolean containsPoint(JSObject p, JSObject self)/*-{ > var out = self.containsPoint(p); > if (out) {return true} > else if (out===1) {return true} > else {return false} > }-*/; > > Cheers and thanks, > Philipp > > > 2010/10/12 Edwin Commandeur <com...@gm...> >> >> Hi Phillip, >> >> The containsPoint function in OL is a bit silly in that it returns 1 >> for true and false for false :). I would say we return a boolean. >> >> Try adding this to Polygon >> >> public boolean containsPoint(Point p){ >> PolygonImpl.containsPoint(p.getJSObject(), this.getJSObject()); >> } >> >> and this to PolygonImpl >> >> public static native boolean containsPoint(JSObject p, JSObject self)/*-{ >> var out = self.containsPoint(p); >> return (out===1)?true:false; >> }-*/; >> >> Greetings, >> Edwin Commandeur >> >> On 12 October 2010 15:47, Philipp Verhoeven >> <phi...@go...> wrote: >> > Greetings, >> > >> > >> > I would like to use the containsPoint method of the Polygon class like >> > it is >> > desribed: >> > >> > http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint >> > >> > The method doesn't seem to be implemented in gwt-openlayers, am I >> > right?! >> > >> > Does anyone know a quick fix to use this method anyway? >> > >> > >> > Thanks and cheers, >> > Philipp >> > >> > >> > ------------------------------------------------------------------------------ >> > Beautiful is writing same markup. Internet Explorer 9 supports >> > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> > Spend less time writing and rewriting code and more time creating great >> > experiences on the web. Be a part of the beta today. >> > http://p.sf.net/sfu/beautyoftheweb >> > _______________________________________________ >> > Gwt-openlayers-users mailing list >> > Gwt...@li... >> > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> > >> > > > |
From: Philipp V. <phi...@go...> - 2010-10-13 12:06:56
|
Hi there, thanks for that. But there is a problem: your suggested code returns true if var is 1. But if var is true it returns false... The containsPoint()-method returns 1, if the point is on an edge. It returns true, if the point is inside and it returns false, if the point is outside. With my not existing JS skills the solution was the following: public static native boolean containsPoint(JSObject p, JSObject self)/*-{ var out = self.containsPoint(p); if (out) {return true} else if (out===1) {return true} else {return false} }-*/; Cheers and thanks, Philipp 2010/10/12 Edwin Commandeur <com...@gm...> > Hi Phillip, > > The containsPoint function in OL is a bit silly in that it returns 1 > for true and false for false :). I would say we return a boolean. > > Try adding this to Polygon > > public boolean containsPoint(Point p){ > PolygonImpl.containsPoint(p.getJSObject(), this.getJSObject()); > } > > and this to PolygonImpl > > public static native boolean containsPoint(JSObject p, JSObject self)/*-{ > var out = self.containsPoint(p); > return (out===1)?true:false; > }-*/; > > Greetings, > Edwin Commandeur > > On 12 October 2010 15:47, Philipp Verhoeven > <phi...@go...> wrote: > > Greetings, > > > > > > I would like to use the containsPoint method of the Polygon class like it > is > > desribed: > > > http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint > > > > The method doesn't seem to be implemented in gwt-openlayers, am I right?! > > > > Does anyone know a quick fix to use this method anyway? > > > > > > Thanks and cheers, > > Philipp > > > > > ------------------------------------------------------------------------------ > > Beautiful is writing same markup. Internet Explorer 9 supports > > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > > Spend less time writing and rewriting code and more time creating great > > experiences on the web. Be a part of the beta today. > > http://p.sf.net/sfu/beautyoftheweb > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > |
From: Edwin C. <com...@gm...> - 2010-10-12 14:36:36
|
Hi Phillip, The containsPoint function in OL is a bit silly in that it returns 1 for true and false for false :). I would say we return a boolean. Try adding this to Polygon public boolean containsPoint(Point p){ PolygonImpl.containsPoint(p.getJSObject(), this.getJSObject()); } and this to PolygonImpl public static native boolean containsPoint(JSObject p, JSObject self)/*-{ var out = self.containsPoint(p); return (out===1)?true:false; }-*/; Greetings, Edwin Commandeur On 12 October 2010 15:47, Philipp Verhoeven <phi...@go...> wrote: > Greetings, > > > I would like to use the containsPoint method of the Polygon class like it is > desribed: > http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint > > The method doesn't seem to be implemented in gwt-openlayers, am I right?! > > Does anyone know a quick fix to use this method anyway? > > > Thanks and cheers, > Philipp > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Philipp V. <phi...@go...> - 2010-10-12 13:47:31
|
Greetings, I would like to use the containsPoint method of the Polygon class like it is desribed: http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint The method doesn't seem to be implemented in gwt-openlayers, am I right?! Does anyone know a quick fix to use this method anyway? Thanks and cheers, Philipp |
From: Edwin C. <com...@gm...> - 2010-10-06 13:45:36
|
Hi Marten, Good to hear you solved the popup problem. I would definitely be interested in that code :). I have never really used the popups that come with OpenLayers (used Ext GWT windows instead), so I never looked at closely how GWT-OL wraps them. Greetings, Edwin On 6 October 2010 12:07, Mårten Karlberg <mar...@di...> wrote: > I solved this. All Popup-classes are implemented in a strange way, not > following the JavaScript-constructors of OpenLayers. What is the reason for > doing it like this? Anyway, I added constructors that take the CloseListener > and binds it to the closeBox at creation of the popups. That's the way > OpenLayers does it and that's the way I think openlayers-gwt should do it > too. I didn't remove the original openlayers-gwt constructors or the > addCloseListener-function in Popup for back compatibility issues. > > Are you interested in this code? > > Regards > Mårten Karlberg, Digpro Solutions AB > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Mårten K. <mar...@di...> - 2010-10-06 10:07:36
|
I solved this. All Popup-classes are implemented in a strange way, not following the JavaScript-constructors of OpenLayers. What is the reason for doing it like this? Anyway, I added constructors that take the CloseListener and binds it to the closeBox at creation of the popups. That's the way OpenLayers does it and that's the way I think openlayers-gwt should do it too. I didn't remove the original openlayers-gwt constructors or the addCloseListener-function in Popup for back compatibility issues. Are you interested in this code? Regards Mårten Karlberg, Digpro Solutions AB |
From: Mårten K. <mar...@di...> - 2010-10-04 13:37:16
|
Hi! I ran into problems when trying to adding a CloseListener to a FramedCloud. The problem is similiar to what Christopher Navarro has described in a post from february this year. The onPopupClose is caught as expected when using the base class Popup (org.gwtopenmaps.openlayers.client.popup.Popup), but doesn't work with FramedCloud (org.gwtopenmaps.openlayers.client.popup.FramedCloud). Chris, did you ever get this working? Does anybody else know something about this problem? I did some debugging using Firebug and it seems like one extra close box is added when using FramedCloud. The extra close box conflicts with the original close box as it has the same div id. They also listen to different events and appearance. The first acts like default and closes the popup when clicked but does not fire the onPopupClose event. Its position has changed to upper left corner of the ???_GroupDiv. The extra close box is not visible since it gets no z-index set, but it is hidden on the original position of the first close box, i.e. the upper left corner of "the cloud". This close box fires the onPopupClose event but does not close the popup. Any suggestions? Regards Mårten Karlberg |
From: Couzic M. <mik...@gm...> - 2010-09-27 13:45:28
|
Guys, this is just awesome ! I'd just like to add : A Big Thank You *Andrew *for putting so much effort into this release and full maven support ! A Big Thank You *Edwin *for... well... everyting ! 2010/9/27 Andrew Hughes <ahh...@gm...> > Greetings, > > Around Twelve months in the making and GWT-OpenLayers 0.5 has been > released, a BIG THANK YOU to everyone who contributed. I've posted this > across a few mailing lists that might find this interesting blend of > technologies applicable to their needs, these are primarily the GeoServer, > GWT, GWT-Maven and OpenLayers. > > Summary: > > - Substantial increase in the number of OpenLayers features exposed. > - Many bug fixes and improvements. > - Maven support, 0.5 has been released to maven's central repo ( > http://repo1.maven.org/maven2/org/gwtopenmaps/openlayers/gwt-openlayers/ > ) > - Increased documentation (http://gwt-openlayers.sourceforge.net/ including > javadocs > http://gwt-openlayers.sourceforge.net/maven-site-latest/gwt-openlayers-client/apidocs/index.html > ) > - The project configuration is now entirely driven from maven > (gwt-maven). > > Some Big Thank You's for the people behind... > > ...Sonatype (http://www.sonatype.com/) for their support and fantastic > services/infrastructure. I can't recommend these guys enough - talk about > bringing large scale disciplined engineering to small scale projects :) Well > done. > > ...OpenLayers (http://openlayers.org/) for creating such a fantastic > library that we were able to wrap in GWT. > > ...GWT-Maven (http://mojo.codehaus.org/gwt-maven-plugin/), great plugin. > > ...and of course those behind GWT development! > > For more information, please take a look at the latest documentation > http://gwt-openlayers.sourceforge.net/ > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Gwt-openlayers-devl mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-devl > > |
From: Andrew H. <ahh...@gm...> - 2010-09-27 13:38:19
|
Greetings, Around Twelve months in the making and GWT-OpenLayers 0.5 has been released, a BIG THANK YOU to everyone who contributed. I've posted this across a few mailing lists that might find this interesting blend of technologies applicable to their needs, these are primarily the GeoServer, GWT, GWT-Maven and OpenLayers. Summary: - Substantial increase in the number of OpenLayers features exposed. - Many bug fixes and improvements. - Maven support, 0.5 has been released to maven's central repo ( http://repo1.maven.org/maven2/org/gwtopenmaps/openlayers/gwt-openlayers/) - Increased documentation (http://gwt-openlayers.sourceforge.net/ including javadocs http://gwt-openlayers.sourceforge.net/maven-site-latest/gwt-openlayers-client/apidocs/index.html ) - The project configuration is now entirely driven from maven (gwt-maven). Some Big Thank You's for the people behind... ...Sonatype (http://www.sonatype.com/) for their support and fantastic services/infrastructure. I can't recommend these guys enough - talk about bringing large scale disciplined engineering to small scale projects :) Well done. ...OpenLayers (http://openlayers.org/) for creating such a fantastic library that we were able to wrap in GWT. ...GWT-Maven (http://mojo.codehaus.org/gwt-maven-plugin/), great plugin. ...and of course those behind GWT development! For more information, please take a look at the latest documentation http://gwt-openlayers.sourceforge.net/ |
From: Edwin C. <com...@gm...> - 2010-09-24 06:45:18
|
Hi Lukas, I will try to take a look at your patch today. Thanks for sending it for review. GWT-OL 0.5 has been pushed to the central maven repo two days ago and I am working on the website generated by Maven to add some cookbook recipes. Working with arrays is high on my list :). Greetings, Edwin On 23 September 2010 17:02, Lukas Johansson <luk...@de...> wrote: > > > -----Ursprungligt meddelande----- > Från: Lukas Johansson > Skickat: den 15 juli 2010 14:16 > Till: Edwin Commandeur > Kopia: gwt...@li... > Ämne: SV: [Gwt-openlayers-users] Producing clickable layers from WMS > > Hello Edwin > I just completed my implementation with clickable wmslayers trough WmsGetFeatureInfo. I found that there exists a way to request the data in a machine friendly way (GML) by setting infoFormat to "application/vnd.ogc.gml". This means that I get VectorFeatures straight from the request and therefore can reuse my exists WFS popuprenderers to render popups. No need for HTML templating :) > > While working with the implementation I added setDrilldown, setLayers and setUrls to WmsGetFeatureInfoOptions as well as getFeatures in the GetFeatureInfoListener class. These changes allow me to decide exactly what layers to query and they don't have to be served by the same server, which is the case when using using drilldown. > > I'm quite sure that drilldown and setLayers where added in OL 2.9, but I hope it's ok that I wrapped them as well. > > I'd like some feedback on the methods handling arrays (setLayers and getFeatures) as this is my first time using wrapped arrays in gwt-ol. Is this the way to do it or are there any better patterns? > > /Lukas > > > > > -----Ursprungligt meddelande----- > Från: Lukas Johansson [mailto:luk...@de...] > Skickat: den 17 juni 2010 10:18 > Till: Edwin Commandeur > Kopia: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > Thanx I've totally missed that. I believed that I could request the data in a machine friendly format (for e.g. json). But it must be possible to create a template which will be easier to parse in my app code. > > Thank you! > > > -----Ursprungligt meddelande----- > Från: Edwin Commandeur [mailto:com...@gm...] > Skickat: den 17 juni 2010 09:19 > Till: Lukas Johansson > Kopia: Couzic Mikael; Philipp Verhoeven; gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > Hi Lukas, > > In the code in trunk there is a WMSGetFeatureInfo example, similar to the example you reference. It uses a simple proxy included in the latest GWT-OL from trunk. > > With WMSGetFeatureInfo you have to be aware that there is no standard for WMSGetFeatureInfo output. In GeoServer you can define templates for this output, see here: > http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates > > It would be great if you want to contribute enhancements back to GWT-OL. > > Greetings, > Edwin > > On 17 June 2010 08:55, Lukas Johansson <luk...@de...> wrote: >> I will within a two weeks add this functionality to our app, (we're >> currently using WFS but need to handle larger amount of data which get >> impossible to load with WFS). >> >> The plan is to use the technique shown in >> http://openlayers.org/dev/examples/getfeatureinfo-popup.html to be >> able to produce popups for WMS-layers as well. >> >> I'm not sure if gwt-ol implements all that I need to use, but if not, >> I will implement those parts myself and send them back as a patch. >> >> /Lukas >> >> Från: Couzic Mikael [mailto:mik...@gm...] >> Skickat: den 16 juni 2010 13:21 >> Till: Philipp Verhoeven >> Kopia: gwt...@li... >> Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS >> >> >> >> Hi Philipp, >> >> I needed this kind of functionnality, but I didn't use WMS, just WFS. >> The idea is to get your polygons from the WFS protocol, and load them >> into your VectorLayer. If your polygons are static, you can even use GML files. >> But I'm not sure that's what you're looking for, as this solution >> implies the WMS is completely independant from the polygons. >> >> Ask me if you want more info, I could even provide you with sample >> code if you want. >> >> Cheers, >> Mikael >> >> 2010/6/16 Philipp Verhoeven <ve...@go...> >> >> Hi, >> >> I'm looking for a solution to make any wms layer clickable. That means >> that there should be areas - which are bounded by a polygon - that >> show an information bubble when hovering over. >> Does anyone have experience in this field? As far as I know >> gwt-openlayers does not support this feature. >> >> I found a suitable example for openlayers using a WFS: >> http://openlayers.org/dev/examples/getfeature-wfs.html >> >> It is possible to add the needed funcionality and build the .jar by >> myself, right?! >> >> I'm thankful for any idea or comment on this. >> >> Cheers, >> Philipp >> >> ---------------------------------------------------------------------- >> -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental >> unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> >> >> ---------------------------------------------------------------------- >> -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental >> unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: Lukas J. <luk...@de...> - 2010-09-23 17:52:10
|
Sorry, of course my example didn't work (I read yours to fast and assumed that xy was a location stored in latlon). 1. Create a method GetFeatureInfoEvent.getXY() 2. Make sure that getLonLatFromPixel is wrapped in gwt-ol. public void onGetFeatureInfo(GetFeatureInfoEvent event) { FrameCloud popup = new FramedCloud("MapFeaturePopup", Map.getLonLatFromPixel(event.getXY()), new Size(300, 400), html); } But I still think that this is cuite cumbersome. /Lukas -----Ursprungligt meddelande----- Från: Lukas Johansson [mailto:luk...@de...] Skickat: den 23 september 2010 19:42 Till: David R Robison; gwt...@li... Ämne: Re: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble Yes, ok that will give you the coord that was clicked (not returned from the server). However if you would like to control how the data returned from the server should be displayed you'll need to parse the html or request it in GML as I stated earlier. In my case we have client side settings that determines what attributes that should be displayed in the popup and thus we read the data in GML and just displays the attributes according to this settings. _If_ the event contains the xy property (as it seems to do according to your example) you could mimic your example by just adding a simple get method to GetFeatureInfoEvent (should there be such a method in gwt-ol? Whats the policy regarding private properties?). public void onGetFeatureInfo(GetFeatureInfoEvent event) { FrameCloud popup = new FramedCloud("MapFeaturePopup", event.getXY(), new Size(300, 400), html); } Remember though that this way of doing it is restricted to this kind of simple use cases. Also note that I haven't tried it as I am currently on a train but I guess it should work. Cheers /Lukas -----Ursprungligt meddelande----- Från: David R Robison [mailto:drr...@op...] Skickat: den 23 september 2010 17:37 Till: Lukas Johansson; gwt...@li... Ämne: Re: SV: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble In JavaScript I do it as follows: this.popup = new OpenLayers.Popup.FramedCloud( "select_projects_popup", this.map.getLonLatFromPixel(event.xy), new OpenLayers.Size(250, 100), event.text, null, true ); It would be nice if we can get property "xy" from the event. On 9/23/2010 11:04 AM, Lukas Johansson wrote: > Basicly if you request the data as html I guess that you will have to parse the html to get the latlon for each feature. You will not have features as illustrated in my example. > /Lukas > > -----Ursprungligt meddelande----- > Från: David R Robison [mailto:drr...@op...] > Skickat: den 23 september 2010 16:28 > Till: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble > > Also, if I get the data back as HTML will I still have a collection of > features from which I can get the LonLat? Thanks, David > > On 9/23/2010 10:06 AM, David R Robison wrote: >> Also I don't see >> >> .setLayers(arrayOfLayersToQuery)) >> >> in the latest code. David >> >> >> On 9/23/2010 9:58 AM, Lukas Johansson wrote: >>> Basicly like this, (copy pasted from our working code, but you get the idea). >>> >>> WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); >>> options.setLayers(arrayOfLayersToQuery)); >>> options.setDrillDown(true); >>> options.setQueryVisible(true); >>> options.setInfoFormat("application/vnd.ogc.gml"); //return result as gml >>> >>> >>> public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { >>> VectorFeature[] features = eventObject.getFeatures(); >>> String html = "foo"; >>> FrameCloud popup = new FramedCloud("MapFeaturePopup", features[0].getCenterLonLat(), new Size(300, 400), html); >>> } >>> >>> /Lukas >>> >>> >>> >>> -----Ursprungligt meddelande----- >>> Från: David R Robison [mailto:drr...@op...] >>> Skickat: den 23 september 2010 15:41 >>> Till: gwt...@li... >>> Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble >>> >>> I am using the latest gwt-openlayers source. I an usingthe >>> WMSGetFeatureInfo control. In the onGetFeatureInfo event listener I am >>> trying to create and AnchoredBubble to display the results of the >>> WMSGetFeatureInfo. How do I get the LonLat from the GetFeatureInfoEvent >>> to pass to the AnchoredBubble constructor? Also it would be nice to be >>> able to set the layers to query in the WMSGetFeatureInfoOptions. David >>> -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drr...@op... web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Gwt-openlayers-users mailing list Gwt...@li... https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |
From: Lukas J. <luk...@de...> - 2010-09-23 17:42:19
|
Yes, ok that will give you the coord that was clicked (not returned from the server). However if you would like to control how the data returned from the server should be displayed you'll need to parse the html or request it in GML as I stated earlier. In my case we have client side settings that determines what attributes that should be displayed in the popup and thus we read the data in GML and just displays the attributes according to this settings. _If_ the event contains the xy property (as it seems to do according to your example) you could mimic your example by just adding a simple get method to GetFeatureInfoEvent (should there be such a method in gwt-ol? Whats the policy regarding private properties?). public void onGetFeatureInfo(GetFeatureInfoEvent event) { FrameCloud popup = new FramedCloud("MapFeaturePopup", event.getXY(), new Size(300, 400), html); } Remember though that this way of doing it is restricted to this kind of simple use cases. Also note that I haven't tried it as I am currently on a train but I guess it should work. Cheers /Lukas -----Ursprungligt meddelande----- Från: David R Robison [mailto:drr...@op...] Skickat: den 23 september 2010 17:37 Till: Lukas Johansson; gwt...@li... Ämne: Re: SV: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble In JavaScript I do it as follows: this.popup = new OpenLayers.Popup.FramedCloud( "select_projects_popup", this.map.getLonLatFromPixel(event.xy), new OpenLayers.Size(250, 100), event.text, null, true ); It would be nice if we can get property "xy" from the event. On 9/23/2010 11:04 AM, Lukas Johansson wrote: > Basicly if you request the data as html I guess that you will have to parse the html to get the latlon for each feature. You will not have features as illustrated in my example. > /Lukas > > -----Ursprungligt meddelande----- > Från: David R Robison [mailto:drr...@op...] > Skickat: den 23 september 2010 16:28 > Till: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble > > Also, if I get the data back as HTML will I still have a collection of > features from which I can get the LonLat? Thanks, David > > On 9/23/2010 10:06 AM, David R Robison wrote: >> Also I don't see >> >> .setLayers(arrayOfLayersToQuery)) >> >> in the latest code. David >> >> >> On 9/23/2010 9:58 AM, Lukas Johansson wrote: >>> Basicly like this, (copy pasted from our working code, but you get the idea). >>> >>> WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); >>> options.setLayers(arrayOfLayersToQuery)); >>> options.setDrillDown(true); >>> options.setQueryVisible(true); >>> options.setInfoFormat("application/vnd.ogc.gml"); //return result as gml >>> >>> >>> public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { >>> VectorFeature[] features = eventObject.getFeatures(); >>> String html = "foo"; >>> FrameCloud popup = new FramedCloud("MapFeaturePopup", features[0].getCenterLonLat(), new Size(300, 400), html); >>> } >>> >>> /Lukas >>> >>> >>> >>> -----Ursprungligt meddelande----- >>> Från: David R Robison [mailto:drr...@op...] >>> Skickat: den 23 september 2010 15:41 >>> Till: gwt...@li... >>> Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble >>> >>> I am using the latest gwt-openlayers source. I an usingthe >>> WMSGetFeatureInfo control. In the onGetFeatureInfo event listener I am >>> trying to create and AnchoredBubble to display the results of the >>> WMSGetFeatureInfo. How do I get the LonLat from the GetFeatureInfoEvent >>> to pass to the AnchoredBubble constructor? Also it would be nice to be >>> able to set the layers to query in the WMSGetFeatureInfoOptions. David >>> -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drr...@op... web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. |
From: David R R. <drr...@op...> - 2010-09-23 15:38:07
|
In JavaScript I do it as follows: this.popup = new OpenLayers.Popup.FramedCloud( "select_projects_popup", this.map.getLonLatFromPixel(event.xy), new OpenLayers.Size(250, 100), event.text, null, true ); It would be nice if we can get property "xy" from the event. On 9/23/2010 11:04 AM, Lukas Johansson wrote: > Basicly if you request the data as html I guess that you will have to parse the html to get the latlon for each feature. You will not have features as illustrated in my example. > /Lukas > > -----Ursprungligt meddelande----- > Från: David R Robison [mailto:drr...@op...] > Skickat: den 23 september 2010 16:28 > Till: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble > > Also, if I get the data back as HTML will I still have a collection of > features from which I can get the LonLat? Thanks, David > > On 9/23/2010 10:06 AM, David R Robison wrote: >> Also I don't see >> >> .setLayers(arrayOfLayersToQuery)) >> >> in the latest code. David >> >> >> On 9/23/2010 9:58 AM, Lukas Johansson wrote: >>> Basicly like this, (copy pasted from our working code, but you get the idea). >>> >>> WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); >>> options.setLayers(arrayOfLayersToQuery)); >>> options.setDrillDown(true); >>> options.setQueryVisible(true); >>> options.setInfoFormat("application/vnd.ogc.gml"); //return result as gml >>> >>> >>> public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { >>> VectorFeature[] features = eventObject.getFeatures(); >>> String html = "foo"; >>> FrameCloud popup = new FramedCloud("MapFeaturePopup", features[0].getCenterLonLat(), new Size(300, 400), html); >>> } >>> >>> /Lukas >>> >>> >>> >>> -----Ursprungligt meddelande----- >>> Från: David R Robison [mailto:drr...@op...] >>> Skickat: den 23 september 2010 15:41 >>> Till: gwt...@li... >>> Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble >>> >>> I am using the latest gwt-openlayers source. I an usingthe >>> WMSGetFeatureInfo control. In the onGetFeatureInfo event listener I am >>> trying to create and AnchoredBubble to display the results of the >>> WMSGetFeatureInfo. How do I get the LonLat from the GetFeatureInfoEvent >>> to pass to the AnchoredBubble constructor? Also it would be nice to be >>> able to set the layers to query in the WMSGetFeatureInfoOptions. David >>> -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drr...@op... web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. |
From: Lukas J. <luk...@de...> - 2010-09-23 15:27:52
|
And I got the following answer which I though meant that Edwin commited my patch. /Lukas -----Ursprungligt meddelande----- Från: Edwin Commandeur [mailto:com...@gm...] Skickat: den 16 juli 2010 08:54 Till: Lukas Johansson Kopia: gwt...@li... Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS Hi Lukas, Thanks for the patch! The way you are handling arrays seems fine. In GWT 2 the options for working with arrays expanded, but the wrappers are still relevant IMHO, and working well. This is an area that could definitively use some documentation. I see you are also using getPropertyAsArray(). This is a method I still need to look at, because it can run into nasty runtime errors that have to do with casting from JavascriptObject to Java Object. The method seems useful, so I guess it needs to be reimplemented to guard it against runtime exceptions. Greetings, Edwin On 15 July 2010 14:16, Lukas Johansson <luk...@de...> wrote: > Hello Edwin > I just completed my implementation with clickable wmslayers trough WmsGetFeatureInfo. I found that there exists a way to request the data in a machine friendly way (GML) by setting infoFormat to "application/vnd.ogc.gml". This means that I get VectorFeatures straight from the request and therefore can reuse my exists WFS popuprenderers to render popups. No need for HTML templating :) > > While working with the implementation I added setDrilldown, setLayers and setUrls to WmsGetFeatureInfoOptions as well as getFeatures in the GetFeatureInfoListener class. These changes allow me to decide exactly what layers to query and they don't have to be served by the same server, which is the case when using using drilldown. > > I'm quite sure that drilldown and setLayers where added in OL 2.9, but I hope it's ok that I wrapped them as well. > > I'd like some feedback on the methods handling arrays (setLayers and getFeatures) as this is my first time using wrapped arrays in gwt-ol. Is this the way to do it or are there any better patterns? > > /Lukas > > > > > -----Ursprungligt meddelande----- > Från: Lukas Johansson [mailto:luk...@de...] > Skickat: den 17 juni 2010 10:18 > Till: Edwin Commandeur > Kopia: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > Thanx I've totally missed that. I believed that I could request the data in a machine friendly format (for e.g. json). But it must be possible to create a template which will be easier to parse in my app code. > > Thank you! > > > -----Ursprungligt meddelande----- > Från: Edwin Commandeur [mailto:com...@gm...] > Skickat: den 17 juni 2010 09:19 > Till: Lukas Johansson > Kopia: Couzic Mikael; Philipp Verhoeven; gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > Hi Lukas, > > In the code in trunk there is a WMSGetFeatureInfo example, similar to > the example you reference. It uses a simple proxy included in the > latest GWT-OL from trunk. > > With WMSGetFeatureInfo you have to be aware that there is no standard > for WMSGetFeatureInfo output. In GeoServer you can define templates > for this output, see here: > http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates > > It would be great if you want to contribute enhancements back to GWT-OL. > > Greetings, > Edwin > > On 17 June 2010 08:55, Lukas Johansson <luk...@de...> wrote: >> I will within a two weeks add this functionality to our app, (we're >> currently using WFS but need to handle larger amount of data which get >> impossible to load with WFS). >> >> The plan is to use the technique shown in >> http://openlayers.org/dev/examples/getfeatureinfo-popup.html to be able to >> produce popups for WMS-layers as well. >> >> I'm not sure if gwt-ol implements all that I need to use, but if not, I will >> implement those parts myself and send them back as a patch. >> >> /Lukas >> >> Från: Couzic Mikael [mailto:mik...@gm...] >> Skickat: den 16 juni 2010 13:21 >> Till: Philipp Verhoeven >> Kopia: gwt...@li... >> Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS >> >> >> >> Hi Philipp, >> >> I needed this kind of functionnality, but I didn't use WMS, just WFS. >> The idea is to get your polygons from the WFS protocol, and load them into >> your VectorLayer. If your polygons are static, you can even use GML files. >> But I'm not sure that's what you're looking for, as this solution implies >> the WMS is completely independant from the polygons. >> >> Ask me if you want more info, I could even provide you with sample code if >> you want. >> >> Cheers, >> Mikael >> >> 2010/6/16 Philipp Verhoeven <ve...@go...> >> >> Hi, >> >> I'm looking for a solution to make any wms layer clickable. That means that >> there should be areas - which are bounded by a polygon - that show an >> information bubble when hovering over. >> Does anyone have experience in this field? As far as I know gwt-openlayers >> does not support this feature. >> >> I found a suitable example for openlayers using a WFS: >> http://openlayers.org/dev/examples/getfeature-wfs.html >> >> It is possible to add the needed funcionality and build the .jar by myself, >> right?! >> >> I'm thankful for any idea or comment on this. >> >> Cheers, >> Philipp >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > |
From: Lukas J. <luk...@de...> - 2010-09-23 15:00:41
|
-----Ursprungligt meddelande----- Från: Lukas Johansson Skickat: den 15 juli 2010 14:16 Till: Edwin Commandeur Kopia: gwt...@li... Ämne: SV: [Gwt-openlayers-users] Producing clickable layers from WMS Hello Edwin I just completed my implementation with clickable wmslayers trough WmsGetFeatureInfo. I found that there exists a way to request the data in a machine friendly way (GML) by setting infoFormat to "application/vnd.ogc.gml". This means that I get VectorFeatures straight from the request and therefore can reuse my exists WFS popuprenderers to render popups. No need for HTML templating :) While working with the implementation I added setDrilldown, setLayers and setUrls to WmsGetFeatureInfoOptions as well as getFeatures in the GetFeatureInfoListener class. These changes allow me to decide exactly what layers to query and they don't have to be served by the same server, which is the case when using using drilldown. I'm quite sure that drilldown and setLayers where added in OL 2.9, but I hope it's ok that I wrapped them as well. I'd like some feedback on the methods handling arrays (setLayers and getFeatures) as this is my first time using wrapped arrays in gwt-ol. Is this the way to do it or are there any better patterns? /Lukas -----Ursprungligt meddelande----- Från: Lukas Johansson [mailto:luk...@de...] Skickat: den 17 juni 2010 10:18 Till: Edwin Commandeur Kopia: gwt...@li... Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS Thanx I've totally missed that. I believed that I could request the data in a machine friendly format (for e.g. json). But it must be possible to create a template which will be easier to parse in my app code. Thank you! -----Ursprungligt meddelande----- Från: Edwin Commandeur [mailto:com...@gm...] Skickat: den 17 juni 2010 09:19 Till: Lukas Johansson Kopia: Couzic Mikael; Philipp Verhoeven; gwt...@li... Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS Hi Lukas, In the code in trunk there is a WMSGetFeatureInfo example, similar to the example you reference. It uses a simple proxy included in the latest GWT-OL from trunk. With WMSGetFeatureInfo you have to be aware that there is no standard for WMSGetFeatureInfo output. In GeoServer you can define templates for this output, see here: http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates It would be great if you want to contribute enhancements back to GWT-OL. Greetings, Edwin On 17 June 2010 08:55, Lukas Johansson <luk...@de...> wrote: > I will within a two weeks add this functionality to our app, (we're > currently using WFS but need to handle larger amount of data which get > impossible to load with WFS). > > The plan is to use the technique shown in > http://openlayers.org/dev/examples/getfeatureinfo-popup.html to be > able to produce popups for WMS-layers as well. > > I'm not sure if gwt-ol implements all that I need to use, but if not, > I will implement those parts myself and send them back as a patch. > > /Lukas > > Från: Couzic Mikael [mailto:mik...@gm...] > Skickat: den 16 juni 2010 13:21 > Till: Philipp Verhoeven > Kopia: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > > > Hi Philipp, > > I needed this kind of functionnality, but I didn't use WMS, just WFS. > The idea is to get your polygons from the WFS protocol, and load them > into your VectorLayer. If your polygons are static, you can even use GML files. > But I'm not sure that's what you're looking for, as this solution > implies the WMS is completely independant from the polygons. > > Ask me if you want more info, I could even provide you with sample > code if you want. > > Cheers, > Mikael > > 2010/6/16 Philipp Verhoeven <ve...@go...> > > Hi, > > I'm looking for a solution to make any wms layer clickable. That means > that there should be areas - which are bounded by a polygon - that > show an information bubble when hovering over. > Does anyone have experience in this field? As far as I know > gwt-openlayers does not support this feature. > > I found a suitable example for openlayers using a WFS: > http://openlayers.org/dev/examples/getfeature-wfs.html > > It is possible to add the needed funcionality and build the .jar by > myself, right?! > > I'm thankful for any idea or comment on this. > > Cheers, > Philipp > > ---------------------------------------------------------------------- > -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental > unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > ---------------------------------------------------------------------- > -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental > unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gwt-openlayers-users mailing list Gwt...@li... https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |
From: Lukas J. <luk...@de...> - 2010-09-23 14:59:46
|
I implemented these and sent a patch 2010-07-15 to Edwin Commandeur and cc to the list so that it would be included. Strange if it hasn't In the mail where also some information about request format. I send it to the list again. /Lukas -----Ursprungligt meddelande----- Från: David R Robison [mailto:drr...@op...] Skickat: den 23 september 2010 16:28 Till: gwt...@li... Ämne: Re: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble Also, if I get the data back as HTML will I still have a collection of features from which I can get the LonLat? Thanks, David On 9/23/2010 10:06 AM, David R Robison wrote: > Also I don't see > > .setLayers(arrayOfLayersToQuery)) > > in the latest code. David > > > On 9/23/2010 9:58 AM, Lukas Johansson wrote: >> Basicly like this, (copy pasted from our working code, but you get the idea). >> >> WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions(); >> options.setLayers(arrayOfLayersToQuery)); >> options.setDrillDown(true); >> options.setQueryVisible(true); >> options.setInfoFormat("application/vnd.ogc.gml"); //return result as gml >> >> >> public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { >> VectorFeature[] features = eventObject.getFeatures(); >> String html = "foo"; >> FrameCloud popup = new FramedCloud("MapFeaturePopup", features[0].getCenterLonLat(), new Size(300, 400), html); >> } >> >> /Lukas >> >> >> >> -----Ursprungligt meddelande----- >> Från: David R Robison [mailto:drr...@op...] >> Skickat: den 23 september 2010 15:41 >> Till: gwt...@li... >> Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble >> >> I am using the latest gwt-openlayers source. I an usingthe >> WMSGetFeatureInfo control. In the onGetFeatureInfo event listener I am >> trying to create and AnchoredBubble to display the results of the >> WMSGetFeatureInfo. How do I get the LonLat from the GetFeatureInfoEvent >> to pass to the AnchoredBubble constructor? Also it would be nice to be >> able to set the layers to query in the WMSGetFeatureInfoOptions. David >> -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drr...@op... web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Gwt-openlayers-users mailing list Gwt...@li... https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |