Clean up OpenLayers integration
[gpl/argeo-suite.git] / org.argeo.app.geo / src / org / argeo / app / geo / ux / MapPart.java
index 29678ab5eff00d44c7778e44b487bd548235eab7..8d5da7e9a47ac1d1d32544b404d0ed10f2ea458b 100644 (file)
@@ -2,15 +2,17 @@ package org.argeo.app.geo.ux;
 
 /** An UX part displaying a map. */
 public interface MapPart {
-       enum Format {
-               GEOJSON, GPX;
-       }
+       void setCenter(double lng, double lat);
 
-       void addPoint(Double lng, Double lat, String style);
+       /** Event when a feature has been single-clicked. */
+       record FeatureSingleClickEvent(String path) {
+       };
 
-       void addUrlLayer(String url, Format format);
+       /** Event when a feature has been selected. */
+       record FeatureSelectedEvent(String path) {
+       };
 
-       void setZoom(int zoom);
-
-       void setCenter(Double lng, Double lat);
+       /** Event when a feature popup is requested. */
+       record FeaturePopupEvent(String path) {
+       };
 }