Directory

← Back

Enhanced Map

Extension of Vaadin Map component that includes geofencing capabilities.

Author

Rating

Popularity

<100

This extension provides the possibility to draw polygons and interact with them.

Vaadin Pro

This component is open source, but a commercial Vaadin subscription is required to use Map in your project. Read more at: Pricing

Major pieces of development of this add-on has been sponsored by customers of Vaadin. Read more about Expert on Demand at: Support and Pricing

Sample code

// Set user projection to EPSG:3857
Map.setUserProjection("EPSG:3857");
        
// Define the needed options for the drawing layer (optional)
DrawingLayerOptions options = new DrawingLayerOptions("rgba(0,255,0,0.4)","purple", 3);
                
// Create a map, center viewport on New York using
// coordinates in EPSG:3857 projection
EnhancedMap map = new EnhancedMap(options);

map.setSizeFull();
map.setZoom(5);
map.setCenter(new com.vaadin.flow.component.map.configuration.Coordinate(1238809.9589261413,6044337.659220713));

List<Polygon> polygons = new ArrayList<>();
GeometryFactory factory = new GeometryFactory();    
Polygon polygon = factory.createPolygon(new Coordinate[]{
		new Coordinate(1238809.9589261413,6044337.659220713),
		new Coordinate(838311.4548593741,5478624.1969639165),
		new Coordinate(3299147.79980723,5377107.95485271),
		new Coordinate(1238809.9589261413,6044337.659220713),
		});
polygons.add(polygon);
map.loadPolygons(polygons);
map.setDrawingMode();

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

Initial release

Released
2023-07-31
Maturity
EXPERIMENTAL
License
Vaadin Commercial License

Compatibility

Framework
Vaadin 23
Vaadin 24
Browser
N/A

Enhanced Map - Vaadin Add-on Directory

Extension of Vaadin Map component that includes geofencing capabilities. Enhanced Map - Vaadin Add-on Directory
This extension provides the possibility to draw polygons and interact with them. #### Vaadin Pro This component is open source, but a commercial Vaadin subscription is required to use Map in your project. Read more at: [Pricing](https://vaadin.com/pricing) #### Sponsored development Major pieces of development of this add-on has been sponsored by customers of Vaadin. Read more about Expert on Demand at: [Support](https://vaadin.com/solutions/support) and [Pricing](https://vaadin.com/pricing)
View on GitHub

Enhanced Map version 1.0.0
Initial release

Online