Pārlūkot izejas kodu

信息港资源地图修改

RongCheng
QI_YUJIE pirms 1 gada
vecāks
revīzija
20e3131698
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +2
    -2
      infoport/static/js/project/resourceNew.js
  2. +2
    -2
      infoport/static/js/project/resourceNewDetail.js

+ 2
- 2
infoport/static/js/project/resourceNew.js Parādīt failu

@@ -97,9 +97,9 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
}
let features = [];
content.forEach(item => {
if (item.theGeomJson != null && item.theGeomJson !== '') {
if (item.theGeom != null && item.theGeom !== '') {
const iconFeature = new ol.Feature({
geometry: new ol.geom.MultiPolygon(JSON.parse(item.theGeomJson).coordinates),
geometry: new ol.geom.MultiPolygon(JSON.parse(item.theGeom).coordinates),
// name: item.centerName,
// centerDeptId: item.deptId,
level: 'resource',


+ 2
- 2
infoport/static/js/project/resourceNewDetail.js Parādīt failu

@@ -74,10 +74,10 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
})*/
});

if (module.data.propertyDetail && module.data.propertyDetail.theGeomJson) {
if (module.data.propertyDetail && module.data.propertyDetail.theGeom) {
const resourceDetail = new ol.layer.Vector({
source: new ol.source.Vector({
features: new ol.format.GeoJSON().readFeatures(module.data.propertyDetail.theGeomJson),
features: new ol.format.GeoJSON().readFeatures(module.data.propertyDetail.theGeom),
}),
name: 'resourceDetail',
style: new ol.style.Style({


Notiek ielāde…
Atcelt
Saglabāt