Directory

← Back

GoogleMapWidgetV3

Google Map Widget API level 3 - Vaadin 6

Author

Rating

Popularity

<100

an easy to use widget to embed Google Map API lvl 3 in Vaadin 6 applications, since Google has discontinued its service on Map API lvl2.

Based on former "GoogleMapWidget" (seems it's no more in this directory)

You can deploy the jar on tomcat to see a working example.

Features:

  • view map - drag - zoom
  • add/remove poi
  • add/remove polyline
  • customize/remove controls
  • info window
  • draw polygon
  • marker click/drag/animation

Sample code

 Window mainWindow = new Window("Gmap3 Application");
        final GoogleMap googleMap = new GoogleMap(this, new Point2D.Double(16.247449, 39.306592), 14);
        googleMap.setWidth("1000px");
        googleMap.setHeight("400px");
        googleMap.setControls(Constant.CONTROL_INVISIBLE, Constant.CONTROL_POSITION_TOP_RIGHT, Constant.CONTROL_INVISIBLE, Constant.CONTROL_INVISIBLE, Constant.CONTROL_POSITION_TOP_RIGHT, Constant.CONTROL_POSITION_TOP_RIGHT + Constant.ZOOM_CONTROL_STYLE_LARGE);
        mainWindow.addComponent(googleMap);
        setMainWindow(mainWindow);

        googleMap.addListener(new MapClickListener() {

            @Override
            public void mapClicked(Double clickPos) {
                System.out.println("map clicked");
                long cid = ++id;
                BasicMarker m = new BasicMarker(cid, clickPos, "Marker " + cid);
                m.setAnimation(Constant.ANIMATION_BOUNCE);
                googleMap.addMarker(m);
            }
        });

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

various bug fixed and support to API KEY changes. work in progress: google direction. It currently does not work but you will find some code inside.

Released
2014-03-20
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Browser
Browser Independent

GoogleMapWidgetV3 - Vaadin Add-on Directory

Google Map Widget API level 3 - Vaadin 6 GoogleMapWidgetV3 - Vaadin Add-on Directory
an easy to use widget to embed Google Map API lvl 3 in Vaadin 6 applications, since Google has discontinued its service on Map API lvl2. Based on former "GoogleMapWidget" (seems it's no more in this directory) You can deploy the jar on tomcat to see a working example. Features: - view map - drag - zoom - add/remove poi - add/remove polyline - customize/remove controls - info window - draw polygon - marker click/drag/animation
Online