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: Hutchins, M. C. <Cha...@nr...> - 2012-08-17 17:33:11
|
Does anyone have a working example of using a TMS object to call a WMTS server? Thanks, Chad Chad Hutchins Meteorologist Naval Research Laboratory Marine Meteorology Division Monterey, CA 93943 |
From: Alexandre A. S. <aas...@gm...> - 2012-08-14 14:12:50
|
Hi Jon, I have no idea whether or not this styling is included in gwt-openlayers, but you can have a look to JSNI (https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI). Using JSNI you can use directly Javascript, so if it's in Openlayers library you can use it from GWT. Actually, what gwt-openlayers do is wrapping JSNI calls. Hope it helps Alex. ________________________________________ De: Jon Britton [jon...@gm...] Enviado el: martes, 14 de agosto de 2012 12:45 Para: gwt-openlayers-users Asunto: [Gwt-openlayers-users] Context-specific vector styles Hi, Is there any way of styling vector layers using context specific style as in http://openlayers.org/dev/examples/styles-context.html ? Thanks, Jon ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ |
From: Jon B. <jon...@gm...> - 2012-08-14 10:45:59
|
Hi, Is there any way of styling vector layers using context specific style as in http://openlayers.org/dev/examples/styles-context.html ? Thanks, Jon |
From: Francesco I. <fra...@ge...> - 2012-08-03 06:29:21
|
test -- Francesco Izzi CNR - IMAA geoSDI Direzione Tecnologie e Sviluppo C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob: +39 3203126609 mail: fra...@ge... skype: neofx8080 web: http://www.geosdi.org |
From: Jon B. <jon...@gm...> - 2012-07-23 09:02:48
|
Hi, Is there any plan to add support for the OpenLayers mobile build? This is something I might be interested in helping out with as it would be pretty useful to me :-) Cheers, Jon |
From: Jon B. <jon...@gm...> - 2012-07-19 09:09:37
|
Never mind! I just wasn't calling activate(); Oops! On 19 July 2012 10:00, Jon Britton <jon...@gm...> wrote: > Hi, > > I'm trying to use the SelectFeature control to listen for click events on > my features. Here is what I'm doing: > > markersFeatures = new Vector("TestMarkers", vecOpts); > olMapWidget.getMap().addLayer(markersFeatures); > > SelectFeatureOptions selectOpts = new SelectFeatureOptions(); > selectOpts.onSelect(new SelectFeature.SelectFeatureListener() { > @Override > public void onFeatureSelected(VectorFeature feature) { > Window.alert("Feature selected!"); > } > }); > SelectFeature selectControl = new SelectFeature(markersFeatures, > selectOpts); > olMapWidget.getMap().addControl(selectControl); > > However, nothing happens when I click on my features! > > Is there some step I'm missing? > > Thanks, > > Jon > |
From: Jon B. <jon...@gm...> - 2012-07-19 09:00:38
|
Hi, I'm trying to use the SelectFeature control to listen for click events on my features. Here is what I'm doing: markersFeatures = new Vector("TestMarkers", vecOpts); olMapWidget.getMap().addLayer(markersFeatures); SelectFeatureOptions selectOpts = new SelectFeatureOptions(); selectOpts.onSelect(new SelectFeature.SelectFeatureListener() { @Override public void onFeatureSelected(VectorFeature feature) { Window.alert("Feature selected!"); } }); SelectFeature selectControl = new SelectFeature(markersFeatures, selectOpts); olMapWidget.getMap().addControl(selectControl); However, nothing happens when I click on my features! Is there some step I'm missing? Thanks, Jon |
From: John P. <byh...@gm...> - 2012-07-05 21:40:49
|
Cabn anyone say how I can set the color of the text labels for the graticule text. I have the following code: LineSymbolizerOptions lineOptions = new LineSymbolizerOptions(); lineOptions.setStrokeColor("#ccf"); lineOptions.setStrokeOpacity(0.5); lineOptions.setStrokeWidth(1); LineSymbolizer line = new LineSymbolizer(lineOptions); TextSymbolizerOptions textOptions = new TextSymbolizerOptions(); textOptions.setFontSize("9px"); textOptions.getJSObject().setProperty("strokeColor", "#ff0000"); TextSymbolizer text = new TextSymbolizer(textOptions); final GraticuleOptions grtOptions = new GraticuleOptions(); grtOptions.setTargetSize(200); grtOptions.setLabelled(true); grtOptions.setLineSymbolyzer(line); grtOptions.setLabelSymbolizer(text); Graticule grt = new Graticule(grtOptions); grt.setAutoActivate(true); this.map.addControl(grt); but the text is still drawn with a black color. John |
From: Mad T. <mad...@gm...> - 2012-04-16 16:20:30
|
I created GML Layer: GML gml = new GML("gml", "test.gml" ); my test.gml file is in same folder where is my main.html file and here is content: <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://aneto.oco/cgi-bin/worldwfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=polygon&OUTPUTFORMAT=XMLSCHEMA"> <gml:boundedBy> <gml:Box srsName="EPSG:4326"> <gml:coordinates>-0.768746,47.003018 3.002191,47.925567</gml:coordinates> </gml:Box> </gml:boundedBy> <gml:featureMember><ms:polygon fid="1"><gml:boundedBy><gml:Box srsName="EPSG:4326"><gml:coordinates>-0.768746,47.003018 0.532597,47.925567</gml:coordinates></gml:Box></gml:boundedBy><ms:msGeometry><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-0.318987,47.003018 -0.768746,47.358268 -0.574463,47.684285 -0.347374,47.854602 -0.006740,47.925567 0.135191,47.726864 0.149384,47.599127 0.419052,47.670092 0.532597,47.428810 0.305508,47.443003 0.475824,47.144948 0.064225,47.201721 -0.318987,47.003018 </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>-0.035126,47.485582 -0.035126,47.485582 -0.049319,47.641706 -0.233829,47.655899 -0.375760,47.457196 -0.276408,47.286879 -0.035126,47.485582 </gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ms:msGeometry><ms:ogc_fid>1</ms:ogc_fid><ms:name>My Polygon with hole</ms:name><ms:id>0</ms:id></ms:polygon></gml:featureMember><gml:featureMember><ms:polygon fid="2"><gml:boundedBy><gml:Box srsName="EPSG:4326"><gml:coordinates>1.511919,47.088176 3.002191,47.882988</gml:coordinates></gml:Box></gml:boundedBy><ms:msGeometry><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.625463,47.357844 1.511919,47.741057 1.880938,47.882988 2.420275,47.797830 2.789295,47.485582 3.002191,47.457196 2.874453,47.088176 2.178993,47.343651 1.625463,47.357844 </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ms:msGeometry><ms:ogc_fid>2</ms:ogc_fid><ms:name>My simple Polygon</ms:name><ms:id>0</ms:id></ms:polygon></gml:featureMember><gml:featureMember><ms:polygon fid="3"><gml:boundedBy><gml:Box srsName="EPSG:4326"><gml:coordinates>0.000000,45.000000 2.000000,47.000000</gml:coordinates></gml:Box></gml:boundedBy><ms:msGeometry><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.000000,45.000000 2.000000,45.000000 2.000000,47.000000 0.000000,47.000000 0.000000,45.000000 </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>0.500000,45.500000 1.500000,45.500000 1.500000,46.500000 0.500000,46.500000 0.500000,45.500000 </gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ms:msGeometry><ms:ogc_fid>3</ms:ogc_fid><ms:name>my polygon with hole</ms:name><ms:id>3</ms:id></ms:polygon></gml:featureMember> </wfs:FeatureCollection> (i took it from example : http://openlayers.org/dev/examples/gml-layer.html so it should be correct) i added three layers to my map map().addLayer(new OSM()); map().addLayer(gml); and KLM layer in my map i have klm layer and osm, but gml layer is empty is anyone can tell me what i'm doing wrong? regards |
From: Benoit B. <be...@gm...> - 2012-03-12 19:07:32
|
Again another KML question! Here is how i populate my Kml layer the question is how do i reproject every features returned by the Kml so they can be shown properly. My Kml is made with EPSG:4326 projection (Lon , Lat) and i want to show it on Google Map which is working with EPSG:900913 projection (X in meter, Y in meter): Thanks in advance for any hint/solution. KML kmlReader = *new* KML(); kmlReader.getJSObject().setProperty("extractStyles", *true*); kmlReader.getJSObject().setProperty("extractAttributes", *true*); VectorFeature[] features = kmlReader.read(kml); Vector vectorLayer = *new* Vector("KML"); LayerOptions layerOptions = *new* LayerOptions(); vectorLayer.addOptions(layerOptions); vectorLayer.addFeatures(features); vectorLayer.setIsBaseLayer(*false*); *return* vectorLayer; |
From: Tim D. <tim...@ri...> - 2012-03-09 14:14:11
|
I would be interested to know if there's a way of doing this without parsing the KML yourself. It would be nice to display complex EPSG: 4326 KML on OSM without having to do that. Tim. On 9 March 2012 13:03, Michael Schommer <mi...@ja...> wrote: > Thanks, > > I managed to display the route with projection mapping on osm. I've > seen another user on the Mail Archive with problems with the > projections on displaying a route. > Please see: > > http://stackoverflow.com/a/9633000/942113 > > Gruß > Michael > > 2012/3/8 Robin Marterer <mar...@ci...>: > > Hi! > > > > Same answer as last time: > > > > private VectorFeature[] getFeaturesFromKML(String kml){ > > KML kmlReader= new KML(); > > kmlReader.getJSObject().setProperty("extractStyles", true); > > kmlReader.getJSObject().setProperty("extractAttributes", true); > > VectorFeature[] features= kmlReader.read(kml); > > return features; > > } > > > > Not sufficient? > > > > Best regards > > Robin > > > > > > > > Am 08.03.2012 um 17:47 schrieb Michael Schommer: > > > > Hi, > > > > I have a URL which returns KML and want to diplay it on an OSM Map > > with gwt-openlayers. > > I think I should use the GML-layer. > > > > Can someone give me a small example (some lines of code) how to do > > that with gwt-openlayers. > > > > Gruß > > Michael > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > > -- > > Universitaet Paderborn, C.I.K. > > Robin Marterer, M.Sc. > > > > Fon: +49(5251)60-2233 > > Fax: +49(5251)60-3206 > > E-Mail: mar...@ci... > > > > Pohlweg 47-49 > > 33098 Paderborn > > http://www-cik.uni-paderborn.de > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gwt-openlayers-users mailing list > > Gwt...@li... > > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > -- *Tim Dudman* *Principal Consultant* *RiskAware Ltd* *Tel: +44 (0) 117 9330543* *Web: **www.riskaware.co.uk* <http://www.riskaware.co.uk/> RiskAware Limited. Registered in England. Company Number: 3812608. VAT Number: 740 891 815. Registered Address: 9th Floor, Colston Tower, Colston Street, Bristol, BS1 4XE. The information in this email is intended solely for the addressee(s) and may contain privileged material. Access to this email by anyone else is unauthorised. Any review, retransmission, dissemination or any use of this information by persons or entities other than the intended recipient is strictly prohibited. RiskAware Ltd reserves the right to monitor all outgoing and incoming e-mails. |
From: Michael S. <mi...@ja...> - 2012-03-09 13:04:19
|
Thanks, I managed to display the route with projection mapping on osm. I've seen another user on the Mail Archive with problems with the projections on displaying a route. Please see: http://stackoverflow.com/a/9633000/942113 Gruß Michael 2012/3/8 Robin Marterer <mar...@ci...>: > Hi! > > Same answer as last time: > > private VectorFeature[] getFeaturesFromKML(String kml){ > KML kmlReader= new KML(); > kmlReader.getJSObject().setProperty("extractStyles", true); > kmlReader.getJSObject().setProperty("extractAttributes", true); > VectorFeature[] features= kmlReader.read(kml); > return features; > } > > Not sufficient? > > Best regards > Robin > > > > Am 08.03.2012 um 17:47 schrieb Michael Schommer: > > Hi, > > I have a URL which returns KML and want to diplay it on an OSM Map > with gwt-openlayers. > I think I should use the GML-layer. > > Can someone give me a small example (some lines of code) how to do > that with gwt-openlayers. > > Gruß > Michael > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > > -- > Universitaet Paderborn, C.I.K. > Robin Marterer, M.Sc. > > Fon: +49(5251)60-2233 > Fax: +49(5251)60-3206 > E-Mail: mar...@ci... > > Pohlweg 47-49 > 33098 Paderborn > http://www-cik.uni-paderborn.de > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: Robin M. <mar...@ci...> - 2012-03-08 17:21:18
|
Hi! Same answer as last time: private VectorFeature[] getFeaturesFromKML(String kml){ KML kmlReader= new KML(); kmlReader.getJSObject().setProperty("extractStyles", true); kmlReader.getJSObject().setProperty("extractAttributes", true); VectorFeature[] features= kmlReader.read(kml); return features; } Not sufficient? Best regards Robin Am 08.03.2012 um 17:47 schrieb Michael Schommer: > Hi, > > I have a URL which returns KML and want to diplay it on an OSM Map > with gwt-openlayers. > I think I should use the GML-layer. > > Can someone give me a small example (some lines of code) how to do > that with gwt-openlayers. > > Gruß > Michael > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users -- Universitaet Paderborn, C.I.K. Robin Marterer, M.Sc. Fon: +49(5251)60-2233 Fax: +49(5251)60-3206 E-Mail: mar...@ci... Pohlweg 47-49 33098 Paderborn http://www-cik.uni-paderborn.de |
From: Michael S. <mi...@ja...> - 2012-03-08 17:15:10
|
Hi, I have a URL which returns KML and want to diplay it on an OSM Map with gwt-openlayers. I think I should use the GML-layer. Can someone give me a small example (some lines of code) how to do that with gwt-openlayers. Gruß Michael |
From: lorenzo a. <lor...@gm...> - 2012-03-07 08:09:32
|
Hi list I'm in the team of Francesco Izzi and Giuseppe La Scaleia and I'd like to contribute to the development of gwt-openlayers. My bitbucket account is lorenzo_amato -- Lorenzo Amato Consiglio Nazionale delle Ricerche Istituto di Metodologie per l'Analisi Ambientale - geoSDI C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971 427 305 fax: +39 0971 427 271 mob: +39 366 63 73 221 mail: lor...@ge... , am...@im... skype: lorenzo.amato.skype web: www.geosdi.org |
From: Robin M. <mar...@ci...> - 2012-02-27 15:25:19
|
Hi! This is how we have done it: private VectorFeature[] getFeaturesFromKML(String kml){ KML kmlReader= new KML(); kmlReader.getJSObject().setProperty("extractStyles", true); kmlReader.getJSObject().setProperty("extractAttributes", true); VectorFeature[] features= kmlReader.read(kml); return features; } Does somebody know a better solution? Best regards Robin Am 27.02.2012 um 15:52 schrieb Benoit Bégin: > As anyone been able to show a Kml layer using GWT-OpenLayers by specifying a URL to point to a Kml file ?? > > If so i would be really happy to see how its done ! > > Thank you in advance > Ben > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2_______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |
From: Benoit B. <be...@gm...> - 2012-02-27 14:53:05
|
As anyone been able to show a Kml layer using GWT-OpenLayers by specifying a URL to point to a Kml file ?? If so i would be really happy to see how its done ! Thank you in advance Ben |
From: Hutchins, M. C. <Cha...@nr...> - 2012-01-12 17:47:08
|
Group, I am attempting to use WMSGetFeatureInfo with MapServer and there are two visible layers on my map. The desired function is that when someone clicks, it only queries the top most visible layer, but this is not happening. How do I make this happen? Also, where are the JavaDocs on the new BitBucket site? Here is my code, basically taken from the example: WMSGetFeatureInfoOptions foOptions = new WMSGetFeatureInfoOptions(); foOptions.setQueryVisible(true); foOptions.setDrillDown(false); WMSGetFeatureInfo foInfo = new WMSGetFeatureInfo(foOptions); foInfo.addGetFeatureListener(new GetFeatureInfoListener() { @Override public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) { Window.alert(eventObject.getText()); } }); map.addControl(foInfo); Thanks! Chad Chad Hutchins Meteorologist Naval Research Laboratory Marine Meteorology Division |
From: Jon B. <jon...@go...> - 2011-12-07 11:01:18
|
Hi, I've got a map with a single WMS layer in EPSG:4326, but the WMS also supports other projections (say, EPSG:9009130). Is there an way that I can change the project of the map and the WMS layer on the fly? I'm trying to do something like (bear in mind I'm using gwt-openlayers): MapOptions newOptions = new MapOptions(); newOptions.setProjection(srs); LayerOptions newLayerOptions = new LayerOptions(); newLayerOptions.setProjection(srs); mapWidget.getMap().setOptions(newOptions); for (int i = 0; i < mapWidget.getMap().getLayers().length; i++) { mapWidget.getMap().getLayers()[i].addOptions(newLayerOptions); } but this does nothing (no errors, just nothing happens). Is there a way of just completely destroying the map and reloading it's contents? I assume this would be quite simple but I've had no luck so far. Thanks, Jon |
From: GeoTux <geo...@gm...> - 2011-11-12 20:06:25
|
Hi all, in coming days (perhaps weeks) I'll publish the sixth version of the Web Mapping Client Comparison [1]. It will include the GWT-OpenLayers project, so I'd like you to validate the following data, which will help me get accurate information about your project: * License: Apache License v.2.0 * Latest version: 0.6 (2011.09.18) * Origin country: ? * Origin organization/institute/university: ? * Documentation: o Languages: English o Formats: HTML; Trac; Wiki o Levels: Users; Developers * OSGeo project: No * Source code language: Java; Javascript * API language: Java * OGC Geo-services support: WMS; WFS * Tile-based services support: Yes * Requires proprietary plug-ins?: No * Includes metadata component?: No * Mailing lists: Yes (Users) Thanks in advance, Germán Carrillo ---------- [1] http://geotux.tuxfamily.org/index.php/en/geo-blogs/item/265-comparacion-de-clientes-web-para-sig-v5 -- ----------- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ |
From: Lenou, P. (Contractor) <Pet...@ds...> - 2011-10-05 23:54:39
|
UNCLASSIFIED Hi, I have a WKT polygon drawn on a map via: WKT wkt = new WKT(); VectorFeature[] vectorFeatures = wkt.read(getGeometryWKT()); Vector polygonsLayer = new Vector("Polygons"); for (VectorFeature vectorFeature : vectorFeatures) polygonsLayer.addFeature(vectorFeature); I would now like to fill the polygons/bounding boxes drawn with an image. I am able to create an Image overlay on a map using Image. I did this by converting the javascript in this sample to client side code: http://openlayers.org/dev/examples/image-layer.html. However, I have the need to rotate my images an arbitrary number of degrees. There is no rotate function on the Image object. I found another sample demonstrating what I want (see http://gis.ibbeck.de/ginfo/apps/OLExamples/OL27/examples/ExternalGraphic Overlay/ExternalGraphicOverlay.asp). This sample sets the rotation angle via the Style applied to the Vector, but such a property is not available in the openlayers-gwt module. Also, I the external graphic I set does not display. The client side code I am using based on the javascript source is listed below: Vector vectorLayer = new Vector("externalGraphic Overlay"); Style style = new Style(); style. setExternalGraphic ("http://www.openlayers.org/images/OpenLayers.trac.png"); style.setGraphicOffset(50, 50); StyleMap oStyleMap = new StyleMap(style); vectorLayer.setStyleMap(oStyleMap); map.addLayer(vectorLayer); Can someone recommend a way to fill a bounding box with an image or overlay an image and be able to rotate the image a variable number of degrees? Any help is greatly appreciated. Thanks, Peter IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email. |
From: Hutchins, M. C. <Cha...@nr...> - 2011-09-30 23:24:37
|
Jon, I do not think MapWidget's removeFromParent() does the trick. When I was using extgwt I removed the widget through the container's method (A TabPanel which contained a Panel that wrapped the MapWidget. Made it easier for resize) and just created a new MapWidget for the new projection and attached it. So, trying to pseudo code SmartGWT (which I am not versed in): mapPanel.removeMember(Old MapWidget or the Widget that contains it); MapWidget mapWidgetNew = new MapWidget("100%", "100%", mapOptions); mapPanel.addMember(mapWidgetNew); May be removeFromParent() doesn't work because it's not a direct subclass of Widget? I'm not sure but that is what I did with ExtGWT. Chad From: Jon Britton [mailto:jon...@go...] Sent: Friday, September 30, 2011 8:43 AM To: gwt-openlayers-users Subject: [Gwt-openlayers-users] Changing map projection by deleting old map and creating new one Hi, I need to be able to switch between different projections. I thought the simplest way to do this would be to remove the current map from it's container and add a new one. However, when I add the new map it doesn't get displayed. Essentially what I'm doing is this (I'm using SmartGWT, mapPanel is a HLayout): MapWidget newMap = createMap("EPSG:4326"); mapWidget.removeFromParent(); mapPanel.addMember(newMap); Any ideas why my new map isn't displaying? Thanks. Jon |
From: Jon B. <jon...@go...> - 2011-09-30 15:43:28
|
Hi, I need to be able to switch between different projections. I thought the simplest way to do this would be to remove the current map from it's container and add a new one. However, when I add the new map it doesn't get displayed. Essentially what I'm doing is this (I'm using SmartGWT, mapPanel is a HLayout): MapWidget newMap = createMap("EPSG:4326"); mapWidget.removeFromParent(); mapPanel.addMember(newMap); Any ideas why my new map isn't displaying? Thanks. Jon |
From: Jon B. <jon...@go...> - 2011-09-27 10:03:34
|
Hi, I'm trying to using gwt-openlayers to display WFS layers. It works fine using WFS 1.1.0 using the following code: VectorOptions vectorOptions = new VectorOptions(); final Vector mapLayer = new Vector("roads", vectorOptions); WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions( "http://li199-25.members.linode.com:8080/geoserver/ows", "http://www.openplans.org/spearfish", "roads"); wfsProtocolOptions.setSrsName("EPSG:4326"); wfsProtocolOptions.setVersion("1.1.0"); WFSProtocol wfsProtocol = new WFSProtocol(wfsProtocolOptions); Callback callback = new Callback() { public void computeResponse(Response response) { try { VectorFeature[] features = response.getFeatures(); mapLayer.addFeatures(features); } catch (Exception ex) { ex.printStackTrace(); } } }; WFSProtocolCRUDOptions options = new WFSProtocolCRUDOptions(callback); wfsProtocol.read(options); getMap().addLayer(mapLayer); getMap().zoomToExtent(new Bounds(-103.88, 44.305, -103.62, 44.566)); However, if I try and use WFS version 1.0.0 then nothing is displayed and there are no errors. Is there an extra step I'm missing for WFS 1.0.0 data? I'm trying to access data from Geoserver if that makes a difference. Thanks! Jon |
From: Francesco I. <fra...@ge...> - 2011-09-14 06:54:09
|
I try only the gwt-openlayers-shocase examples, and this does not work. 2011/9/14 Simon Borysiewicz <sim...@gm...> > Francesco > > I suspect that your url is missing some details... > > >From the root of the url the first section should contain the context or > the folder in the webapps folder of your server. The next section should be > the servlet name as configured in your web.xml. The parameter looks to be > correct. > > regards, > > Simon Borysiewicz > > ------------------------------ > *From:* Francesco Izzi [mailto:fra...@ge...] > *Sent:* Tuesday, 13 September 2011 11:48 PM > *To:* gwt...@li... > *Subject:* [Gwt-openlayers-users] gwtOpenLayersProxy servlet does not work > > Hi Guys, > > i need to test the wfs examples,but does not work. > > I try the Basic WFS examples but in the GWT console i get: > > 00:00:18,174 [WARN] 404 - POST /gwtOpenLayersProxy?targetURL=http%3A%2F% > 2Fdemo.opengeo.org%2Fgeoserver%2Fwfs (127.0.0.1) 1404 bytes > > Suggestion ? > > > -- > Francesco IzziCNR - IMAA > geoSDI > Direzione Tecnologie e Sviluppo > > C.da S. Loja > 85050 Tito Scalo - POTENZA (PZ) > Italia > > phone: +39 0971427305 > fax: +39 0971 427271 > mob: +39 3203126609 > mail: fra...@ge... > skype: neofx8080 > > web: http://www.geosdi.org > > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > -- Francesco Izzi CNR - IMAA geoSDI Direzione Tecnologie e Sviluppo C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob: +39 3203126609 mail: fra...@ge... skype: neofx8080 web: http://www.geosdi.org |