1

Im planning to use Leaflet Draw as part of a special wiki with an embedded map. Users should be able to draw geo-objects that are related to one or more pages in the wiki. As the wiki-pages the objects are saved in a database and can be modified by every user. Problems:

  1. How can i limit the number of editable objects to only one at a time?

  2. How to keep the database consistent if two users are editing the same object at the same time?

  3. How can i generte multi-objects/combine several objects (e.g. polygons) to a super-object (multi-polygon)?

  4. Does anybody know some similiar approches to my idea? Thanks.

4

1 回答 1

0
  1. 您将拥有一个可编辑的 Leaflet.draw 对象的 FeatureGroup。只需弄清楚哪些对象将被编辑,哪些不会被编辑,然后将它们添加到单独的功能组中。

  2. 这可以通过几种方式处理,也许可以看看一般数据库的一致性。

  3. 我不确定你的意思,也许看看 Well Known Text 它可能会帮助你在这里存储。

于 2013-07-22T07:28:45.050 回答