I guess you’re having same problem than all the others not using dependency management. As mentioned in
Directory , without Maven (or Ivy) you’ll need to add
GWT Maps API manually to the build path of the project.
Hey Tapio, thanks for the reply. I am using Ivy with this project. I tried adding GWT Maps API to the build path anyway, and it resulted in the same errors. Any other suggestions?
If you’re managing the GoogleMaps Add-on from Ivy there’s absolutely no need to add the API jar(s) to the classpath manually. With the current information it’s quite hard to say what causes the exception. It would be great if you could attach a minimalistic example project that faces the same issue.
If creating a project is not possible, could you at least attach your widgetset definition file (
com.project.paint_the_town.widgetset.Paint_the_townWidgetset.gwt.xml ) and your
ivy.xml so that I could take a look if something goes wrong in either.
I’ve been looking at the api and you may do the following:
Create a GoogleMapControl and add it to the map using addControl. Attach a listener to your map: when clicking + icon increment the zoom, do stuff and call to setZoom. The same thing if the user clicks -.
I’ve got a huge question relating maps addon for Vaadin. I’m not able of removing (or hiding) markers nor polylines. Removing polylines result impossible to me. Markers are removed little by little, click by click (considering a button which removes ALL the markers).
To remove a polygon, I’ve used
To remove markers, I’ve used both clearMarkers() (single line) and the following code:
for(GoogleMapMarker m : map.getMarkers()){
map.removeMarker(m);
}
Well, i am aware that i can use polygons but that must be terrible to calculate tens of coordinates in order to build a circle. I was thinking of sth simple as it is on the mobile versions of the APIs.
Hi
I have a feature that consist of adding/removing multiple markers from the map once and it works fine with vaadin 7.3.10.
After upgrading to vaadin 7.4.2 this feature does not work anymore. When trying to remove the set of markers using the method clearMarkers(), only 1 markers is removed.
I switched to 7.3.10 and compiled the Widgetset → Removing more than one marker at a time works.
Switched back to 7.4.3 while keeping the old Widgetset → still works.
Compiling a 7.4.3 Widgetset → Bugged…
After clearMarkers() they are removed on the server but only the first marker on the client is removed.
Calling clearMarkers() again does nothing (even if it happens in another buttonclick).
Clicking on those bugged markers result in clickedMarker == null inside the MarkerClickListener.
It seems to be some kind of bug in new Vaadin version that broke clearMarkers method. Anyway, I’ve created a fixed version. Google Maps add-on version 1.0.2 is already out. Please test it and report if you notice any new problems.
Since there have been some requests that there should be an example Eclipse project having all the required dependencies, I’ve added the project mentioned in earlier post - googlemaps-clearmarkers-test - to GitHub.
You can use it as a starting point if you’re having problems when trying to use the add-on.
Uhh…have they added another requirement for Maps API for Work? At least I haven’t been aware of URL signatures and no-one has requested them before. Quite annoying indeed. Please make a ticket about the issue so that I will more likely remember to add this feature to the next version.