pfranza / gwtopenlayers

Automatically exported from code.google.com/p/gwtopenlayers
0 stars 0 forks source link

getting started guide #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How do I get the open layers plug in started.

Steps I took..
1. downloaded jar GWT-OpenLayers-0.2.jar
2. added following to basic GWT app
 public void onModuleLoad() {
         MapWidget map = new MapWidget(true);
                map.getMap().addLayer(new Google(Google.TYPE.SATELLITE,
"World View", false), true);

                map.getMap().addControl(new NavToolBar());
                map.getMap().addControl(new PanZoomBar());

                final MarkerLayer ml = new MarkerLayer("Icons");
                map.getMap().addLayer(ml, false);
                map.getMap().setCenter(new LonLat(-98, 40), 5, true, true);
                map.getMap().addMapListener(new MapIconManager(ml, map));

                RootPanel.get().add(map);
    }

3. Ran app and got compile error

Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
C:\_work\java\projects\atlas\src\java\aims\app\sci\atlas\gwt\client\Atlas.java
    Error:Error:line (5)cannot access
com.gorthaur.franza.openlayers.client.MapWidget
bad class file:
C:\_work\java\projects\atlas\lib\GWT-OpenLayers-0.2.jar(com/gorthaur/franza/open
layers/client/MapWidget.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.

Original issue reported on code.google.com by davecros...@gmail.com on 20 Mar 2009 at 4:27

GoogleCodeExporter commented 9 years ago
was corrected by using latest version of java 1.6 in my project settings.

Original comment by davecros...@gmail.com on 23 Mar 2009 at 3:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by pfra...@gmail.com on 29 Sep 2009 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by pfra...@gmail.com on 29 Sep 2009 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by pfra...@gmail.com on 29 Sep 2009 at 12:01