GWT OpenLayers new website and showcase

Skip to first unread message


Aug 2, 2012, 2:41:26 PM8/2/12
Just a quick note that we put some work in the website, and especially in a new showcase for GWT-Openlayers (a GWT wrapper for the great OpenLayers library) :

Feel free to make use of this library in your projects :-)

Giuseppe La Scaleia

Aug 2, 2012, 3:19:14 PM8/2/12

Inviato da iPhone
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at


Aug 3, 2012, 7:18:13 PM8/3/12
Awesome, nice demos.


Oct 30, 2012, 2:45:26 PM10/30/12
You can check out our IRC channel 

Or just ask your questions in this thread.

Op dinsdag 30 oktober 2012 09:48:56 UTC+1 schreef Asimov het volgende:
Hi Frank,

I have been using the demo project and they have been a great help! Still I have some questions. Do you know what is the best place to ask for help on using gwt-openlayers?

Op donderdag 2 augustus 2012 20:41:26 UTC+2 schreef Frank het volgende:


Oct 30, 2012, 4:16:33 PM10/30/12
I am trying to read in several kml features in a VectorLayer. The kml features are shown as a small dot at an totally wrong position on the map. In short I have done as follows:

(... create a map with some google maps v3 layers ...)

shapeLayer = new Vector("ShapeLayer");

String shapeData = "<string with valid kml>";
KML kml = new KML();
VectorFeature[] vfa =;
VectorFeature vf = vfa[0];

As said the feature is not shown correct, I can see something is added on the layer, but it is far to small and at the wrong position. I think I have to transform the kml feature to the maps projection but don't know how to do that with gwt-openlayers. I have seen the FormatOptions class but how do I use this class?



Oct 31, 2012, 9:59:09 AM10/31/12
I just saw this ticket: 
Add transform(source, destination) to Geometry

That might be the sollution, what do you think?  I will try tonight.

Op dinsdag 30 oktober 2012 21:16:33 UTC+1 schreef Asimov het volgende:


Nov 7, 2012, 4:48:34 AM11/7/12
Maybe VectorOptions.setProjection(String projection)  can help you out ?

This guy had the same problem in normal OL and solved it using that method :

I am guessing you need to set it to the Google projection (being GOOGLE in hacker-script thus ESG:900913)

You can also have look at our KML example, but this does nothing with projection stuff though :


Op dinsdag 30 oktober 2012 21:16:33 UTC+1 schreef Asimov het volgende:


Nov 7, 2012, 4:49:08 AM11/7/12
ESG:900913 should be EPSG:900913

Thomas Holmes

Dec 17, 2012, 3:26:27 PM12/17/12
I'm not a bitbucket user, but I am trying to get the source code for the showcase, and I don't know how I can download the showcase code.

There are a handful of great examples, and I'd like to incorporate some of that into an app I am working on.

When I get the selectfeatureexample, it seems incomplete, I don't have the contentPanel and I don't have the AbstractExample class.
I also get a nasty error with the way some of the code is written:  
      rbDrawPoint.addValueChangeHandler(new ValueChangeHandler<,Boolean>() {
            public void onValueChange(ValueChangeEvent<,Boolean> event) {

I did try the demo, and I think there might have been some bugs with this example, but not 100% sure.

One of the other things I'd like to do is save my point, line or polygon to my database which is MySQL right now.
Can I do this?   Is there an example on how to do this?  

I am sure I will have a lot more questions about this later on as well.

FYI ... I usually like to create SmartGWT 2.5 projects, with Hibernate/JPA, and Spring 3.1, with GWT-RPC.
I am moving away from GWT-RPC, and will be doing web-services soon.

Thanks for any help in advance!!!!


Dec 18, 2012, 1:37:48 AM12/18/12
The easiest way to download is to go to and click on the download link (in the bottom of the square at the right).
Then just unzip the download and open readme.txt to see how to run the showcase.

You don't need to have the contentPanel or the AbstractExample class. These are just part of the complete example framework but not needed if you want to duplicate a single example.
Instead of the contentPanel just create a panel that you add to your RootPanel. And remove the extends AbstractExample.

Saving to a DB can be done using WFS-T. For this you will need to setup a WFS-T compliant server and configure your database in this server. I always use geoserver for this.

We have no example in which you can actually save data to the server. But for example this example has the code you need to add to save data in comment.

According to me the is working but sometimes very slow (I think due to slow server). I also empties all attributes if I remember correclty, that is why you don't see any attributes.


Op maandag 17 december 2012 21:26:27 UTC+1 schreef Thomas Holmes het volgende:
Reply all
Reply to author
0 new messages