Vaadin 传单可在 Vaadin Flow 中编辑

Vaadin Leaflet Editable in Vaadin Flow

我正在尝试在 Vaadin Flow 14 应用程序中使用 V-Leaflet-Editable

我在 pom.xml

中添加了以下内容
<repository>
      <id>osgeo-alt</id>
      <url>https://repo.osgeo.org/repository/release/</url>
 </repository>
 <repository>
       <id>geomajas</id>
       <name>Geomajas Maven Repository</name>
       <url>http://maven.geomajas.org/(http://maven.geomajas.org/)</url>
 </repository>
 <repository>      
  <id>geotools</id>
  <name>Geotools repository</name>
  <!--<url>http://download.osgeo.org/webdav/geotools/</url>-->
  <url>https://repo.osgeo.org/repository/geotools-releases/</url>
</repository>

<dependency>
    <groupId>org.vaadin.addon</groupId>
    <artifactId>v-leaflet-editable</artifactId>
    <version>3.0.0</version>
</dependency>

在 Eclipse 中出现此错误:The type com.vaadin.server.AbstractExtension cannot be resolved. It is indirectly referenced from required .class files

这个版本对于 Vaadin Flow 14 来说太旧了吗?如果是,还有其他选择吗?

我只要会在地图上画一个圆就可以了

如果是 Vaadin 8.x 版本,您尝试使用的附加版本。附加架构在您使用的 Vaadin 14 中完全不同,因此它不兼容,除非您使用 Vaadin Multiplatform Runtime 包装该组件。

如果只需要用API画圆,可以用a newer Leaflet integration. If you need to allow your end users to draw the circles on a map, then a similar Leaflet.Editable add-on for Vaadin 14 would be needed. I (the author of v-leaflet-editable add-on) don't have active plans to work on such, until I start a migration of my large hobby app to a newer Vaadin version, but if you master front-end technology, it should be rather easy to implement it by yourself or purchase one