Skip to content

Commit 26c88b8

Browse files
committed
2 parents f9d31ee + a48ccd5 commit 26c88b8

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

dist/iclient9-leaflet.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14572,7 +14572,11 @@ var FeatureService = ServiceBase.extend({
1457214572

1457314573
_createServerFeature: function (geoFeature) {
1457414574
var geoJSONFeature, feature = {}, fieldNames = [], fieldValues = [];
14575-
geoJSONFeature = geoFeature.toGeoJSON();
14575+
if(geoFeature instanceof L.Path){
14576+
geoJSONFeature = geoFeature.toGeoJSON();
14577+
}else{
14578+
geoJSONFeature = geoFeature;
14579+
}
1457614580
for (var key in geoJSONFeature.properties) {
1457714581
fieldNames.push(key);
1457814582
fieldValues.push(geoJSONFeature.properties[key]);

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/css/editor.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ html, body, .wrapper {
1212
}
1313

1414
.edit-container {
15+
min-height:52px;
1516
background-color: #f9f9f9;
16-
position: relative;
17+
position: absolute;
18+
top:0;
19+
bottom:0;
20+
left:0;
21+
right:0;
1722
margin-top: 52px;
1823
}
1924

2025
.edit-container section.content {
26+
min-height:100%;
2127
width: 100%;
2228
padding: 0;
2329
position: absolute;
2430
top: 0;
25-
bottom: -2px;
31+
bottom: 0;
2632
}
2733

2834
.content .pane {

examples/leaflet/02_editFeatures.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
function commit() {
6969
var me = this;
7070
if (featureGroup.hasLayer(marker)) {
71+
marker= marker.toGeoJSON();
72+
marker.properties={POP:1,CAPITAL:'test'};
7173
var addFeatureParams = new SuperMap.EditFeaturesParameters({
7274
dataSourceName: "World",
7375
dataSetName: "Capitals",

src/leaflet/services/FeatureService.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ var FeatureService = ServiceBase.extend({
198198

199199
_createServerFeature: function (geoFeature) {
200200
var geoJSONFeature, feature = {}, fieldNames = [], fieldValues = [];
201-
geoJSONFeature = geoFeature.toGeoJSON();
201+
if(geoFeature instanceof L.Path){
202+
geoJSONFeature = geoFeature.toGeoJSON();
203+
}else{
204+
geoJSONFeature = geoFeature;
205+
}
202206
for (var key in geoJSONFeature.properties) {
203207
fieldNames.push(key);
204208
fieldValues.push(geoJSONFeature.properties[key]);

web/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<ul class="nav navbar-nav">
1818
<li class="overview-menu" id="headerIndex">
19-
<a href="./index.html" class="center">
19+
<a href="./" class="center">
2020
首页
2121
</a>
2222
</li>

0 commit comments

Comments
 (0)