Re: GWT OpenLayers new website and showcase
The easiest way to download is to go to https://bitbucket.org/gwtopenlayers/gwt-openlayers 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.
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 http://demo.gwt-openlayers.org/gwt_ol_showcase/GwtOpenLayersShowcase.html?example=WMS%20with%20an%20editable%20WFS%20overlay has the code you need to add to save data in comment.
According to me the http://demo.gwt-openlayers.org/gwt_ol_showcase/GwtOpenLayersShowcase.html?example=WFS%20Select%20Feature%20Control%20Examples 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.
Frank
Op maandag 17 december 2012 21:26:27 UTC+1 schreef Thomas Holmes het volgende:
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) {
activateControls();
}
});
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!!!!
On Thursday, August 2, 2012 2:41:26 PM UTC-4, Frank wrote: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) :New website : http://www.gwt-openlayers.org/ New showcase : http://demo.gwt-openlayers.org/ Feel free to make use of this library in your projects :-)
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GTRzeZWZFkkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home