Super Addon that works from the first minute (if you do what Maciej says ab

Super Addon that works from the first minute (if you do what Maciej says about setting width and height ;-))
Looking forward to future enhancements, eg. Support of Symbols in the Polygon in order to draw arrows …

Thanks for the feedback!

Can you create an issue on [our GitHub page]
(https://github.com/FlowingCode/GoogleMapsAddon/issues) with the details of the desired features?

Regards!

Hi Georg!

We released a [new version]
(https://vaadin.com/directory/component/google-maps-addon/1.0.1) that should add support for what you wanted, please let us know if you find any problems with it.

Regards!

Hi,
I created an Arrow class using the new Icon-feature on a GoogleMapPolygon:

public class Arrow extends GoogleMapPolygon {
	public Arrow(GoogleMapPoint from, GoogleMapPoint to) {
		super(Arrays.asList(from, to));
		this.setClosed(false);
		// Icon(String path, String strokeColor, String fillColor, int fillOpacity, int repeat)
		Icon icon = new Icon("M -2,0 0,-2 2,0 0,2 z", "#F00", "#FF0", 1, 0);
		this.setIcons(icon);
	}
}
map = new GoogleMap(API_KEY, null, null);
Arrow arr = new Arrow(new GoogleMapPoint(new LatLon(48.40, 14.34)), new GoogleMapPoint(new LatLon(48.70, 13.89)));
map.addPolygon(arr);

what should I say? It creates an arrow … super & a big thank you!

Great that you find our extension useful, and thanks for the feedback!