Giter Club home page Giter Club logo

gwt-maps-v3-api's Introduction

#GWT-Maps-V3-Api

This library provides Java language bindings for the Google maps Javascript api.

##Demo ###Live Showcase

##Community ###GWT Maps V3 API G+ Community

##Implementers

##Maven Versions Available

##Current Maven Release

  1. Add Maven dependencies

    <!-- GWT Maps API V3 -->
    <dependency>
    	<groupId>com.github.branflake2267</groupId>
    	<artifactId>gwt-maps-api</artifactId>
    	<version>3.10.0-alpha-7</version>
    </dependency>
    
  2. Add the inherits statement to your module.gwt.xml.

    <inherits name='com.google.gwt.maps.Maps' />
  3. Load and use the API.

  • Example of loading the api. Find the showcase example here.
       private void loadMapApi() {
         boolean sensor = true;
     
         // load all the libs for use in the maps
         ArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();
         loadLibraries.add(LoadLibrary.ADSENSE);
         loadLibraries.add(LoadLibrary.DRAWING);
         loadLibraries.add(LoadLibrary.GEOMETRY);
         loadLibraries.add(LoadLibrary.PANORAMIO);
         loadLibraries.add(LoadLibrary.PLACES);
         loadLibraries.add(LoadLibrary.WEATHER);
         loadLibraries.add(LoadLibrary.VISUALIZATION);
     
         Runnable onLoad = new Runnable() {
           @Override
           public void run() {
             draw();
           }
         };
     
         LoadApi.go(onLoad, loadLibraries, sensor);
       }

##Current Maven Snapshots

  1. Add Maven dependencies

    <repositories>
    		<repository>
        		<id>sonatype.snapshots</id>
        		<name>Sonatype snapshot repository</name>
        		<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        		<snapshots>
            			<enabled>true</enabled>
        		</snapshots>
    		</repository>
    </repositories>
    
    <!-- GWT Maps API V3 -->
    <dependency>
    	<groupId>com.github.branflake2267</groupId>
    	<artifactId>gwt-maps-api</artifactId>
    	<version>3.10.0-alpha-8-SNAPSHOT</version>
    </dependency>
  2. Add the inherits statement to your module.gwt.xml.

    <inherits name='com.google.gwt.maps.Maps' />

##Utility Library

  • Marker Cluster Plus

    <dependency>
        <groupId>com.github.branflake2267</groupId>
        <artifactId>gwt-maps-utility-markerclustererplus</artifactId>
        <version>2.0.9-build-1</version>
    </dependency>

##Previous Versions See the downloads page ##Maven-Free Jar Use

  1. Download the jar
  2. Add jar to your /WEB-INF/lib
  3. Right click on the jar and goto Build path > add to build path

##Eclipse Setup Using Source

  1. Clone the source with EGit

  2. Add the project to your build path

  3. Link the maps source "src" folder as src_maps in your build path

  4. Inherit the module

    <inherits name='com.google.gwt.maps.Maps'/>

##Documentation

##Contribute

##New Features

  • Released 3.10.0-alpha-3 3/18/2013. Added utility lib and more 3.10 features.
  • Released 3.10.0-alpha-2 2/10/2013, includes transit api and overlay fix.
  • Released to sonatype 3.9.0-build-17-SNAPSHOT 1/19/2013
  • Fixed some bugs, added triggerResize to mapWidget. Started G+ Community. 1/18/2013
  • v16 released to sonatype 3.9.0-build-16 1/13/2013
  • v16 Switching from alpha to build b/c it is stable 1/13/2013 (3.9.0-build-16-SNAPSHOT)
  • v16 Fixed Marker Animation and added marker animation controls to examples 1/13/2013
  • v15 Fixed Custom overlay setMap 1/13/2013
  • Custom overlay view added 12/20/2012
  • Added waypoint to directions example
  • InfoWindow supports GWT widgets with events
  • Added PlaceSearchRequest map example
  • 3.9.0 code now in master has the place result with pagination search

##Thanks to Arcbees.com

gwt-maps-v3-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gwt-maps-v3-api's Issues

BigDecimal Use Necessary?

Brandon, can we strike the BigDecimal values in LatLng? Curious why they are there since they're 44 bytes in Java, and will just be converted to doubles in JS. Any reason they should stick around? Perhaps some JDO/JPA issue?

'Autocomplete' Exception

Hello!

First of all thanks for working on this framework -- awesome job!

I'm getting an exception while running your sample code at the following line:
final Autocomplete autoComplete = Autocomplete.newInstance(element, options);

I've tested this in Chrome & Firefox (dev mode & PRD), and still get the same exception.

Can you please take a look at this?

Thanks!
Vladimir

In my HTML file:

<script src="http://maps.google.com/maps/api/js?sensor=false"> </script>

My code:
private void drawAutoComplete() {

    Element element = view.getAutocompleteElement();

    AutocompleteType[] types = new AutocompleteType[2];
    types[0] = AutocompleteType.ESTABLISHMENT;
    types[1] = AutocompleteType.GEOCODE;

    AutocompleteOptions options = AutocompleteOptions.newInstance();
    options.setTypes(types);
    options.setBounds(mapWidget.getBounds());

    final Autocomplete autoComplete = Autocomplete.newInstance(element, options);

    autoComplete.addPlaceChangeHandler(new PlaceChangeMapHandler() {
        public void onEvent(PlaceChangeMapEvent event) {

            PlaceResult result = autoComplete.getPlace();

            PlaceGeometry geomtry = result.getGeometry();
            LatLng center = geomtry.getLocation();

            InfoMessage.showInfo("Changed place: " + center.getToString());

            mapWidget.setZoom(8);

            GWT.log("place changed center=" + center);
        }
    });

    mapWidget.addBoundsChangeHandler(new BoundsChangeMapHandler() {
        public void onEvent(BoundsChangeMapEvent event) {
            LatLngBounds bounds = mapWidget.getBounds();
            autoComplete.setBounds(bounds);
        }
    });
}

The exception:

00:36:07.520 [ERROR] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.google.gwt.maps.client.placeslib.Autocomplete::createJso(Lcom/google/gwt/dom/client/Element;Lcom/google/gwt/maps/client/placeslib/AutocompleteOptions;)([JavaScript object(887), JavaScript object(1216)]): $wnd.google.maps.places is undefined at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69) at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57) at com.travellinkup.ui.client.presenter.TopMenuPresenter$5.execute(TopMenuPresenter.java:134) at com.google.gwt.user.client.ui.MenuBar$1.execute(MenuBar.java:900) at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50) at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228) at com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:327) at com.google.gwt.core.client.impl.Impl.exit(Impl.java:266) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:257) at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:722) Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.maps.client.placeslib.Autocomplete::createJso(Lcom/google/gwt/dom/client/Element;Lcom/google/gwt/maps/client/placeslib/AutocompleteOptions;)([JavaScript object(887), JavaScript object(1216)]): $wnd.google.maps.places is undefined at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:570) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:278) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.maps.client.placeslib.Autocomplete$.createJso(Autocomplete.java) at com.google.gwt.maps.client.placeslib.Autocomplete$.newInstance(Autocomplete.java:32) at com.travellinkup.ui.client.presenter.trip.QuickNewTripPresenter.drawAutoComplete(QuickNewTripPresenter.java:235) at com.travellinkup.ui.client.presenter.trip.QuickNewTripPresenter.bind(QuickNewTripPresenter.java:104) at com.travellinkup.ui.client.presenter.trip.QuickNewTripPresenter.go(QuickNewTripPresenter.java:92) at com.travellinkup.ui.client.AppController.onPopupCustomPanelEvent(AppController.java:69) at com.travellinkup.ui.client.event.PopupCustomPanelEvent.dispatch(PopupCustomPanelEvent.java:42) at com.travellinkup.ui.client.event.PopupCustomPanelEvent.dispatch(PopupCustomPanelEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:52) at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:67) at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57) at com.travellinkup.ui.client.presenter.TopMenuPresenter$5.execute(TopMenuPresenter.java:134) at com.google.gwt.user.client.ui.MenuBar$1.execute(MenuBar.java:900) at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50) at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228) at com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:327) at com.google.gwt.core.client.impl.Impl.exit(Impl.java:266) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:257) at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:722)

No tags in GitHub

Hi,

I assume you have tags in your local repo for "v3-3.8.0-beta1", for example. Could you push these to Github? It would make it easier to see if we have a particular fix in our version, and see what has changed etc.

Thanks

Martin

Push v3.9 Showcase to AppEngine

Brandon,

This does not jive anymore from Eclipse for me. I think you changed up some of the workings. Can you fix it up and push it out since you're a AppEngine pro at ArcBees?

no GWT application conf file in SNAPSHOT build

Hi,

this is minor stuff but I noticed that the project snapshot maven build does not have the Apis_Google_Maps.gwt.xml file in the target artifact and prevent the easy integration of the module in a gwt module.
I suggest you explicitly configure your pom to copy them at the right place in the target classes folder.

cheers,

J.

JavaDocs Online

This is kind of a note to self to get something done. Like any good Java project, you need JavaDoc's!

Map rendering areas have grey areas

The map area is never fully rendered; only 1 to 1 1/2 tiles are shows while scrolling.

I had exactly the same effect while testing your AutocompletePlacesMapWidget.java code.

This is in hosted mode on Eclipse; GWT 2.4.0

PlacesService bad constructor

see it here:
https://developers.google.com/maps/documentation/javascript/3.exp/reference#PlacesService

the PlacesService constructor accepts only one argument, an html element OR a Map object:

PlacesService(attrContainer:HTMLDivElement|Map)

But you PlaceService Java class accept two arguments, attrContainer AND Map:

private static final native PlacesService createJso(Element attrContainer, MapImpl map) /*-{
    return new $wnd.google.maps.places.PlacesService(attrContainer, map);
  }-*/;

This is incorrect, I would change PlacesService class to this:

public class PlacesService extends JavaScriptObject {

  public static final PlacesService newInstance(MapWidget mapWidget) {
    return createJso( mapWidget.getJso());
  }
  public static final PlacesService newInstance(Element  val) {
    return createJso(val);
  }

  private static final native PlacesService createJso(Element attrContainer) /*-{
    return new $wnd.google.maps.places.PlacesService(attrContainer);
  }-*/;
  private static final native PlacesService createJso(  MapImpl map) /*-{
    return new $wnd.google.maps.places.PlacesService(map);
  }-*/;
.......

regards and keep the good work

Exception on creation of MapWidget

Hi,

I am using the GWT-Maps-v3-Api in a GWT application and getting an exception during run time. Please let me know if I am missing-out something.

Below is the code and the exception.

//Code

public void onModuleLoad() {
    splitLayoutPanel.addWest(leftPanel, 50);
    MapOptions option = MapOptions.newInstance(); // this line throws the exception
    MapWidget map = new MapWidget(option);
    splitLayoutPanel.addWest(map, 100);
}

//Exception

com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'maps' of undefined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.maps.client.base.LatLng$.createJso(LatLng.java)
at com.google.gwt.maps.client.base.LatLng$.newInstance(LatLng.java:37)
at com.google.gwt.maps.client.base.LatLng$.newInstance(LatLng.java:27)
at com.google.gwt.maps.client.MapOptions$.setDefaults(MapOptions.java:72)
at com.google.gwt.maps.client.MapOptions$.newInstance(MapOptions.java:44)
at sharedliving.client.SharedLiving.onModuleLoad(SharedLiving.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)

Change source folder structure to maven format

The reason this would be useful is that we could import the project in two steps using egit and m2e. And then maven sets up the project and can debug instantly. This is also handy with IntelliJ & maven.

Thoughts?

Add Campaign API

/**
     * Saves a campaign and generate the codes accord campaign's information.
     * 
     * @param campaign
     *            a new campaign.
     * @throws IllegalArgumentException
     *             if the campaign is invalid. A campaign is invalid if one of
     *             this options are true:
     *             <ul>
     *             <li>Has an id defined. A campaign must not have an id
     *             defined.
     *             <li>
     *             </ul>
     */
    Campaign createaNewCampaign(Campaign campaign);
}

Typo in MapHandlerRegistration

I believe I see a bug / typo in the class com.google.gwt.maps.client.events.MapHandlerRegistration. In the "removeHandlerImpl" method, one sees the line:

$wnd.google.maps.MapsEventListener.addListener(listener);

This should read:
$wnd.google.maps.event.removeListener(listener);

"MapsEventListener" is (I think) a relic from an older version of the code, and the "event" object is used elsewhere in the current version of MapHandlerRegistration.

I'm using GWT-Maps on my project, and I see that removing a map listener doesn't work. When I implement this change, I see that it does work.

I've checked out a copy of GWT-Maps-V3-API with GIT, have made this change in my own checkout, and run the unit tests. Everything seems to work. But I wanted to enter a ticket and have some communication with the project team before I tried to commit anything.

Support for Additional Results in Google Places search

I'm looking for support of additional results in Google Places search, and I think it is not possible yet.

The API only returns up to 20 results for a search when the callback is executed, but it might have a nextPage where more results can be loaded. It needs to be executed at least two seconds after the first search, but it should be possible to access those results.

Here's the link to the documentation about this:
https://developers.google.com/maps/documentation/javascript/places#PlaceSearchPaging

tags: enhancement

setDrawingMode(OverlayType drawingMode) doesn't handle null

while in the comment, it is said that the method takes null as to reset to normal map usage. In various places such as DrawningManager and DrawingManagerOptions, this method does not handle the null case.

public final void setDrawingMode(OverlayType drawingMode) {
setDrawingModeImpl(drawingMode.value());
}

Issue detaching Panoramio layer from map

Originally posted on G+ by Dennis Wegewijs:

I am trying to add the panoramia layer. Adding is not a problem but removing it is using this.setMap(null). I looked at the source code of the PanoramiaLayer class and updated the following two methods to no avail. Please investigate.

No ployline displayed

problem with PolyLine
Hello;
I want to display a polyline on my map google by giving a list of points (JsArray points).
the polyline is not displayed, here is my code:

LatLng[] a = new LatLng[3];
a[0] = LatLng.newInstance(2.956377, 36.77403);
a[1] = LatLng.newInstance(2.95372, 37);
a[2] = LatLng.newInstance(2.97, 36.78403);
JsArray listLatLng = ArrayHelper.toJsArray(a);
options.setMap(mapWidget);
options.setPath(listLatLng);
options.setStrokeColor("#FF0000");//couleur du tracé
options.setStrokeOpacity(1.0);//opacité du tracé
options.setStrokeWeight(2);//grosseur du tracé
Polyline polyLine = Polyline.newInstance(options);

help me please!

HouseCleaning: MapEvent type declarations

Noticed that we have a number of Eclipse warnings about the MapEvent type. We need to properly parameterize these. However, I noticed in looking at this that in the below code, we can see that addHandlerImpl() takes a MapHander that extends MapEvent, but MapEvent extends MapHandler. Seems a bit cyclical. We should clean this up.

MapEvent

/**
 * Inherit this into unique Map Event
 *
 * @param <H> {@link MapHandler}
 * @param <E> {@link MapEvent}
 */
public abstract class MapEvent<H extends MapHandler<E>, E> extends GwtEvent<H> {

MapHandlerRegistration

/**
   * process the callback and send it to the handler
   * @param jso
   * @param eventName
   * @param handler
   * @param formatter
   */
  private static native <E extends MapEvent> JavaScriptObject addHandlerImpl(
      JavaScriptObject jso,
      String eventName, 
      MapHandler<E> handler, 
      MapEventFormatter<E> formatter) /*-{
    var callback = function(event) { 
      @com.google.gwt.maps.client.events.MapHandlerRegistration::onCallback(Lcom/google/gwt/maps/client/events/MapHandler;Lcom/google/gwt/ajaxloader/client/Properties;Lcom/google/gwt/maps/client/events/MapEventFormatter;)(handler, event, formatter);
    };          
    return $wnd.google.maps.event.addListener(jso, eventName, callback)
  }-*/;

clear all overlays

Hi
I Thank You for your answers, I have another problem:
is there a method to clear the map and delete all overlays ?

Clearing directions, NPE in DirectionsRenderer

Trying to clear the directions by calling setMap(null) in DirectionsRenderer produces a NPE even though the Javadoc states to pass null to clear them.

in DirectionsRenderer:

/**

  • This method specifies the map on which directions will be rendered. Pass null to remove the directions from the map.

  • @param mapWidget
    */
    public final void setMap(MapWidget mapWidget) {
    setMapImpl(mapWidget.getJso());
    }

    private final native void setMapImpl(MapImpl map) /-{
    this.setMap(map);
    }-
    /;

Caused by: java.lang.NullPointerException: null
at com.google.gwt.maps.client.services.DirectionsRenderer$.setMap$(DirectionsRenderer.java:50)

git - eclipse egit issue on unix systems.

Hi. I'm trying to import your project using eclipse 4.2 with egit plugin on linux but I can't. (using the same steps you describe in your documenthttps://github.com/branflake2267/GWT-Maps-V3-Api/wiki/Eclipse-Contributor-Setup ). At the last step of the eclipse project import wizard, eclipse fails with the message "invalid project description".

Researching a while about this, it seems that the the error is the following. The project name in your .project file, must be the same as the github project name. In .project file the name is "gwt-maps-api-v3" but it should be "GWT-Maps-V3-Api". See http://derekreynolds.wordpress.com/tag/git/#post-744

If you use windows perhaps you do not suffer from this bug, but in linux, file names must respect letter case.

Regards

Unable to see the design view in the GWT designer.

Hi,

I am getting the following error when I switch to design view in the GWT designer. And I am guessing that its mostly because that the GWT designer is unable to parse the Maps-v3-api classes. In the class I am setting the MapWidget to a LayoutPanel.

No primary type.
Compilation unit /SharedLiving/src/sharedliving/client/SharedLiving.java has primary type, but can not find its AST. This can be caused by one of the following reasons:

Compilation unit references unknown type, most probably as part of generics.

Show stack trace.
Hide stack trace.

Stack trace:
org.eclipse.wb.internal.core.utils.exception.DesignerException: 110 (No primary type.). /SharedLiving/src/sharedliving/client/SharedLiving.java
at org.eclipse.wb.internal.core.utils.check.Assert.isTrueException(Assert.java:390)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1175)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:244)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:240)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:537)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:525)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:452)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:449)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:468)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:418)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:266)
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:244)
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3023)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1730)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:270)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Event Handling in InfoWindow

I create a button in InfoWindow, upon clicking which an event should occur. Here is my code:

protected void drawInfoWindow(Marker marker, MouseEvent mouseEvent) {

    // Close the existing info window
    if (infoWindow != null) {
        infoWindow.close();
    }

    //Check for the marker
    if (marker == null || mouseEvent == null) {
        return;
    }

    //Button and HTMLPanel init
    Button infoPanelAddButton = new Button();
    HTMLPanel infoHTMLPanel;

    //Button Styling - Bootstrap
    infoPanelAddButton = new Button();
    infoPanelAddButton.setIcon(IconType.TAG);
    infoPanelAddButton.setSize(ButtonSize.DEFAULT);
    infoPanelAddButton.setType(ButtonType.SUCCESS);
    infoPanelAddButton.setText("+");

    //button click handler
    infoPanelAddButton.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            // TODO Auto-generated method stub

            System.out.println("Inside Here");
            Window.alert("Hello Button");
        }
    });


    //HTML Panel init and adding button
    infoHTMLPanel = new HTMLPanel(marker.getTitle());
    infoHTMLPanel.add(infoPanelAddButton);

    //InfoWindow init and content set
    InfoWindowOptions options = InfoWindowOptions.newInstance();
    infoWindow = InfoWindow.newInstance(options);

    infoWindow.setContent(infoHTMLPanel);
    infoWindow.open(map, marker);

    map.panTo(marker.getPosition());
}

Any ideas what can I do with the library? Or should I build my own wrapper like suggested in this http://stackoverflow.com/questions/11528637/google-maps-api-v3-buttons-and-textboxes-inside-infowindow

Thank you for the help. Btw, thanks for the very cool library.

Typo in setRadius (setRaidus)

There's a typo in setRadius method in class com.google.gwt.maps.client.placeslib.PlaceSearchRequest.

I can do the fix if needed, but should I leave the old method with the typo as deprecated? Or is it ok to change it?

Add updates from Maps V3.10 API Release

v3.10 goes from Experimental to release on Nov 15th. Need to have it's changes/features ready close to then.

See official change log

  • Added Indoor Street View - I find no additions to the api for this (2/15/2013,bd)
  • Added "Time in Current Traffic" to Directions I find no additions to api for this (2/15/2013,bd)
  • fixedRotation option to IconSequence - add class
  • Added StrokePosition to polygons, rectangles, circles
  • computeOffsetOrigin to geometry library
  • Afrikaans, Amharic, Swahili, Zulu (we don't have, need to add to loader lib -> ...&language= See list
  • Added types to Places API textSearch (added place types to autocomplete, in pull)
  • Modified the interface to KmlLayer to accept url as an MVC property, rather than a constructor argument. (url, screenOverlays)
  • Added icon sequence to PolyLine

How do I run the tests?

I have written an addition for the API, and I want to write tests for it.
However I don't even know how to run the tests you've written.
Please advise.

Is this even possible? Fusion Tables heatmap layer with radius, gradient, ...

I don't know if this is even possible in Google Maps v3 API but here it goes in case someone knows:

Fusion tables configured as heatmap are very diffused when zooming in (not necessarily too much zoom, depending on the data). When zooming in trying to look for a point it is very hard to find.

There are also heatmaps where you can set the data not from a fusion table. Those heatmaps have the styling options to set the radius, gradient, opacity and so on.

In the documentation it doesn't say it's possible to add that kind of styling to a fusion table heatmap. Does anyone know if it is possible or if it doesn't work? Maybe it's just not documented.

Thanks!

labels: question, enhancement?

Fustion tables layer documentation: https://developers.google.com/maps/documentation/javascript/3.exp/reference#FusionTablesLayer
https://developers.google.com/maps/documentation/javascript/layers#fusion_table_styles

Heatmap but not fusion table documentation: https://developers.google.com/maps/documentation/javascript/3.exp/reference?hl=en#HeatmapLayerOptions
Heatmap but not fusion table example: https://google-developers.appspot.com/maps/documentation/javascript/examples/layer-heatmap?hl=es

autocomplete

Hello, i try to use your great lib, but i am getting this error so i thought you might help me. when i try to use your autocomplete in the fresh new project it works fine. when i try to integrate in my existing dialog box i get this error:


15:19:04.689 [ERROR] [customer] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'Autocomplete' of undefined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.maps.client.placeslib.Autocomplete$.createJso(Autocomplete.java)
at com.google.gwt.maps.client.placeslib.Autocomplete$.newInstance(Autocomplete.java:32)
at com.sengaro.getataxi.calechelight.client.views.customer.AddressDialog$1.run(AddressDialog.java:61)
at com.google.gwt.ajaxloader.client.ExceptionHelper.runProtected(ExceptionHelper.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)


My code:


final TextBox tb = new TextBox();
    tb.setStyleName("background: #FFFFFF;");

    RootPanel.get().add(tb);
    boolean sensor = false;
    ArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();
    loadLibraries.add(LoadLibrary.PLACES);   
    LoadApi.go(new Runnable() {
      public void run() {
          AutocompleteType[] types = new AutocompleteType[2];
            types[0] = AutocompleteType.ESTABLISHMENT;
            types[1] = AutocompleteType.GEOCODE;

            AutocompleteOptions options = AutocompleteOptions.newInstance();
            options.setTypes(types);

        Element e = tb.getElement();
        Autocomplete o = Autocomplete.newInstance(e, options);

      }
    }, loadLibraries , sensor);

Do you have any ideas what could be wrong, please? Thank you very much.
Vitek

Implement Markerclusterer in GWT Google Maps V3 ,through JSNI

could help me please:
I have a GWT project with GWT GoogleMapsAPI v3 and would like to implement Markerclusterer through a JSNI method.

My question is how to manipulate the MapWidget within JSNI method

this is my code but does not work.

package cl.prueba.JS.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Element;
import com.google.gwt.maps.client.MapOptions;
import com.google.gwt.maps.client.MapTypeId;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.base.LatLng;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class PruebaJS implements EntryPoint {

final private static int    ZOOM     = 3;
final private static LatLng CENTER   = new LatLng(-33.437912, -70.650535);
final private static String MAP_TYPE = new MapTypeId().getRoadmap();
private MapWidget           mapa ;


private void inicializaMapa() {
    final MapOptions options = new MapOptions();
    options.setZoom(ZOOM);
    options.setCenter(CENTER);
    options.setMapTypeId(MAP_TYPE);
    options.setDraggable(true);
    options.setNavigationControl(true);
    options.setMapTypeControl(true);
    mapa = new MapWidget(options);
    mapa.setSize("300px","300px");

                    iniMarkerClusterer(mapa);

    }

public  native MapWidget  iniMarkerCluster(MapWidget map ) /*-{

    var markers = [];
    for ( var i = 0; i < 100; i++) {
    var dataPhoto = $wnd.data.photos[i];
    var latLng = new $wnd.google.maps.LatLng(dataPhoto .latitude,dataPhoto.longitude );      
    var marker = new $wnd.google.maps.Marker({position : latLng});
    markers.push(marker);
    }
    var markerCluster = new $wnd.MarkerClusterer(map , markers);

    }-*/;


    public void onModuleLoad() {

        RootPanel.get("mapa").add(mapa));

    }

}
/**********************************************************************************************************************///

my html is :
HTML ....

<script type="text/javascript" src="pruebajs/pruebajs.nocache.js"></script>
<script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="pruebajs/data.json"></script>
<script type="text/javascript" src="pruebajs/markerclusterer.js"></script>

<body>
    <div id="mapa"></div>
</body>

Thank you very much!!
I hope they understand my problem, if they have questions, please let me know.

atte
Mario

Add updates from Maps V3.9 API Release

There were very few changes, but we should confirm that they are all in there and updated our version numbers/docs.

3.9 15 May, 2012

Added:

Country restriction for Autocomplete (AutocompleteOptions.componentRestrictions) ( Issue 3899 )
Regions and Cities type filters

See the official API change log.

Change source folder structure to maven format

The reason this would be useful is that we could import the project in two steps using egit and m2e. And then maven sets up the project and can debug instantly. This is also handy with IntelliJ & maven.

Thoughts?

Places Types Overloads Correction

I am successfully searching places, but only can search places of type "estabhilsment", and not filtering by all the other supported by google maps places, listed at https://developers.google.com/places/documentation/supported_types.

If I use other than "establishment" type, like "store" an java error like the following is thrown:

java.lang.IllegalArgumentException: No enum const class com.google.gwt.maps.client.placeslib.AutocompleteType.STORE

I suppose you should add all supported typen in the enumeration AutocompleteType. BTW: Why enumerations ? wouldn't be much easier to deal with strings and constants ?

I'm using the following for searching:

                PlaceSearchRequest req = PlaceSearchRequest.newInstance(); 
                req.setLocation(clickLocation); 
                req.setRaidus(500); 
                req.setTypes(AutocompleteType.fromValue("establishment"));

                PlacesService placeService = PlacesService.newInstance(mapWidget.getElement(), mapWidget);
                placeService.search(req, new PlaceSearchHandler() {                 
                    @Override
                    public void onCallback(JsArray<PlaceResult> results,
                            PlacesServiceStatus status) {
                        Window.alert("search result size: "+results.length()); 
                    }
                });     

662 @return JavaDoc statements with no arguments

At first I was going to just strike all of these with some Eclipse regex, since in most examples of accessors, GWT devs don't bother to restate the obvious. Clearly getValue() returns value.

However, given that exceptional return information is usually noted in this annotation, I've left them for now. The rest of the docs should be pretty clean by now.

Someone needs to plow through these occurrences and strike/update them, or we should just strike them all in a few seconds. I'm for the later since the Maps 3.8 API Docs don't provide such exceptional return information, and if they do, we've already place it in the method comments.

gwt jsni callbacks implementation

I'm noticing that you do not use $entry() in your JSNI code. This is very recomendable when calling a Java method from JSNI code for the devel mode to manage javascript exceptions. I want to know, is there a reason for this? or you just forget it ;) ?

For example, in your code at PlacesService you have:

  public final native void search(PlaceSearchRequest request, PlaceSearchHandler handler) /*-{
    var callback = function (results, status) {
      @com.google.gwt.maps.client.placeslib.PlacesService::processSearchCallback(Lcom/google/gwt/core/client/JsArray;Ljava/lang/String;Lcom/google/gwt/maps/client/placeslib/PlaceSearchHandler;)(results, status, handler); 
    };
    this.search(request, callback);
  }-*/;

for my taste, using $entry() it should be

  public final native void search(PlaceSearchRequest request, PlaceSearchHandler handler) /*-{
    var callback = $entry(function (results, status) {
      @com.google.gwt.maps.client.placeslib.PlacesService::processSearchCallback(Lcom/google/gwt/core/client/JsArray;Ljava/lang/String;Lcom/google/gwt/maps/client/placeslib/PlaceSearchHandler;)(results, status, handler); 
    });
    this.search(request, callback);
  }-*/;

Map dosn't show correctly at the second time. Shows gray areas.

Hi
As the folowing issues :

http://code.google.com/p/gwt-google-apis/issues/detail?id=127
http://code.google.com/p/gwt-google-apis/issues/detail?id=366

we have almost the same problem with GWT-Maps-V3-Api. It's about an vertical Panel that doesn't show correctly the second time it's attached in the DOM !

I explain:

  • we have an verticalPanel in wich the map is disyplayed. There is no problem in the first time.
  • If we go to another page and we come back to our screen that hold a new instance of the verticalPanel with the Map, we find a "ugly" Map with gray areas in it !

we searched in the net and we found that a resize of the Map is required but we don't have in the MapWidget any resizing method.

So we are doing the folowing :

public class MapWidget extends com.google.gwt.maps.client.MapWidget {

protected String width;
protected String heigth;

/**
 * create a new Map Widget
 * @param options {@link MapOptions}
 */
public MapWidget(MapOptions options) {
    super(options);
    this.addResizeHandler(new ResizeMapHandler() {

        @Override
        public void onEvent(ResizeMapEvent event) {
            if (MapWidget.this.width != null && MapWidget.this.heigth != null) {
                setSize(MapWidget.this.width, MapWidget.this.heigth);
            }
        }
    });
}
@Override
protected void onAttach() {
    super.onAttach();
    Timer timer = new Timer() {

        @Override
        public void run() {
            resize();
        }
    };
    timer.schedule(5);
}

/*
 * (non-Javadoc)
 * 
 * @see com.google.gwt.user.client.ui.UIObject#setSize(java.lang.String, java.lang.String)
 */
@Override
public void setSize(String width, String height) {
    super.setSize(width, height);
    this.width = width;
    this.heigth = height;

}

public void resize() {
    ((MapImpl) impl).reSize();
}

}

And

public class MapImpl extends com.google.gwt.maps.client.MapImpl {

    protected MapImpl() {}

/**
 * private native method
 * @param id - dom element id
 * @param {@link MapOptions}
 */
final native MapImpl reSize() /*-{
    return new $wnd.google.maps.event.trigger(this, 'resize');
}-*/;

}

We will be gateful if you find our code a "bad hack" that you informe us, or taking this Snippet int your code version for other users affronting the same probleme!

Thanks for this beautiful Wrapping API :)

Separate the Test project into its own?

I wonder if we should make the test project its own repo and move the api source then up one folder to make the setup easier. Would this screw up the maven paths?

Maven GroupId

I think we may need to come up with a better GroupId to fit sonatype hosting. Do you have any ideas?

com.google.gwt-maps-v3-api

issue with several maps in tabs

Hi,
I started to use your library and have some problems with MapWidget. When I tried to display several maps in tabItems, the first map is displayed well but the second is not displayed correctly.

I had attached 2 screen shots to explain more my issue.

I'll be so grateful if you can help me to solve this blocking problem.

Direction with mid point

Hi
I tried to get the direction with one mid point but the call back is not occur. Here is my section of code. Did i do something wrong?

RootPanel rootPanel = RootPanel.get();
        VerticalPanel vPanel = new VerticalPanel();
        Button btn = new Button("hello wold");
        vPanel.add(btn);
        rootPanel.add(vPanel);

        LatLng center = LatLng.newInstance(48.11, -123.24);
        MapOptions opts = MapOptions.newInstance();
        opts.setZoom(8);
        opts.setCenter(center);
        opts.setMapTypeId(MapTypeId.HYBRID);

        MapWidget mapWidget = new MapWidget(opts);
        vPanel.add(mapWidget);
        mapWidget.setSize("750px", "500px");

        mapWidget.addClickHandler(new ClickMapHandler() {
            public void onEvent(ClickMapEvent event) {
            }
        });

        DirectionsRendererOptions options = DirectionsRendererOptions
                .newInstance();
        final DirectionsRenderer directionsDisplay = DirectionsRenderer
                .newInstance(options);
        directionsDisplay.setMap(mapWidget);

        // LatLng origin = LatLng.newInstance(37.7699298, -122.4469157);
        // LatLng destination = LatLng.newInstance(37.7683909618184,
        // -122.51089453697205);

        String origin = "Arlington, WA";
        String destination = "Seattle, WA";

        DirectionsRequest request = DirectionsRequest.newInstance();
        request.setOrigin(origin);
        request.setDestination(destination);

        DirectionsWaypoint midpoint = DirectionsWaypoint.newInstance();
        midpoint.setLocation(LatLng.newInstance(53.533333,-113.5));
        JsArray<DirectionsWaypoint> JsDirectionWaypoint = JsArray.createArray().cast();
        JsDirectionWaypoint.push(midpoint);
        request.setWaypoints(JsDirectionWaypoint);
        request.setTravelMode(TravelMode.DRIVING);





        DirectionsService o = DirectionsService.newInstance();
        o.route(request, new DirectionsResultHandler() {
            public void onCallback(DirectionsResult result,
                    DirectionsStatus status) {
                System.out.println("Errr");
                if (status == DirectionsStatus.OK) {
                    directionsDisplay.setDirections(result);
//                  getDistance();
                } else if (status == DirectionsStatus.INVALID_REQUEST) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.MAX_WAYPOINTS_EXCEEDED) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.NOT_FOUND) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.OVER_QUERY_LIMIT) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.REQUEST_DENIED) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.UNKNOWN_ERROR) {
                    System.out.println("Errr");
                } else if (status == DirectionsStatus.ZERO_RESULTS) {
                    System.out.println("Errr");
                }
                System.out.println("Errr");

            }
        });

"public" resource are not being placed in the jar

I get a lot of 404 not found in my server logs for /css/style.css. This appears to be because the resources are declared in the module XML, but don't get included in the jar. Is this intentional?

mapOptions.scrollwheel has wrong casing

Take a look here

https://github.com/branflake2267/GWT-Maps-V3-Api/blob/master/Apis_Google_Maps/src/com/google/gwt/maps/client/MapOptions.java#L560

it should read

this.scrollwheel = scrollWheel;

instead of the current

this.scrollWheel = scrollWheel;

As per the documenation at google...

https://developers.google.com/maps/documentation/javascript/reference#MapOptions

"scrollwheel boolean If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default."

Figure out how to keep the __gwt_Object

The __gwt_object is used in chrome so it doesnt register duplicate objects. I'd like to figure out why it is throwing and then try to keep it's use. I think the map api uses some sort of call back and doesn't dig it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.