2016-11-01 28 views
1

如何使从数据库加载到地图上的多边形可编辑?使用传单绘制可编辑多边形

截至目前,当多边形加载时,它们仍然是不可编辑的。编辑选项仅在创建新多边形时启用。

从数据库加载的多边形标记为蓝色,并且新创建的多边形标记为红色。 (编辑图标搞砸了!)

enter image description here

+0

我发现下面的链接有用-http ://gis.stackexchange.com/questions/203540/how-to-edit-an-existing-layer-using-leaflet&https://github.com/Leaflet/Leaflet/issues/4461 – codejunkie

+0

你可以请张贴一些显示如何将数据库项目转换为传单项目的代码?这是我几年前的回答http://stackoverflow.com/a/26965160/859686 –

+0

我已经在stackoverflow上发布了另一个问题。这个问题的答案也解决了这个问题。这里的链接 - > http://stackoverflow.com/questions/40376176/add-existing-leaflet-polygons-to-an-existing-leaflet-layer?noredirect=1#comment68009098_40376176 – codejunkie

回答