Design Studio Choropleth地图-无法显示地图

2020-09-26 04:46发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我开始研究Choropleth地图,但遇到了问题。

当我提供自定义的Geo JSON文件时,地图消失了,仅显示蓝色背景的气泡,如下所示。 但是,如果我删除JSON代码,则会正确显示默认地图。

您能看看吗,让我知道我在这里想念什么?

choropleth-map-disappears-with-json.jpg

谢谢

Harish

 {
   " type":" FeatureCollection",
   "特征": [
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7001
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.29973,
           43.76146
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7011
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.55626,
           43.61436
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7012
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.31345,
           43.70891
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7025
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -75.61291,
           45.41851
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7026
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -75.76054,
           45.35242
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7075
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -74.76065,
           45.03773
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7033
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -81.2812,
           42.9381
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7138
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -80.24168,
           43.16284
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7153
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -82.35636,
           42.98631
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7182
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -80.72925,
           43.11613
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035230",
         " 0PLANT":7128
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -73.59289,
           45.47566
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035230",
         " 0PLANT":7152
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -73.46358,
           45.48429
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7117
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.49768,
           53.50366
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7119
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.55113,
           53.59924
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7172
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.30183,
           53.54124
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7222
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.21607,
           53.69273
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7250
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -114.22693,
           51.10677
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7254
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -114.00419,
           51.26065
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7223
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.97218,
           50.72475
         ]
       }
     }
   ]
 }
 
choropleth-map-disappears-with-json.jpg (49.9 kB)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我开始研究Choropleth地图,但遇到了问题。

当我提供自定义的Geo JSON文件时,地图消失了,仅显示蓝色背景的气泡,如下所示。 但是,如果我删除JSON代码,则会正确显示默认地图。

您能看看吗,让我知道我在这里想念什么?

choropleth-map-disappears-with-json.jpg

谢谢

Harish

 {
   " type":" FeatureCollection",
   "特征": [
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7001
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.29973,
           43.76146
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7011
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.55626,
           43.61436
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035125",
         " 0PLANT":7012
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -79.31345,
           43.70891
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7025
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -75.61291,
           45.41851
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7026
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -75.76054,
           45.35242
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035158",
         " 0PLANT":7075
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -74.76065,
           45.03773
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7033
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -81.2812,
           42.9381
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7138
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -80.24168,
           43.16284
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7153
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -82.35636,
           42.98631
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035159",
         " 0PLANT":7182
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -80.72925,
           43.11613
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035230",
         " 0PLANT":7128
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -73.59289,
           45.47566
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 0359",
         " 0PLANT__YDISTRCT":" 035230",
         " 0PLANT":7152
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -73.46358,
           45.48429
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7117
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.49768,
           53.50366
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7119
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.55113,
           53.59924
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7172
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.30183,
           53.54124
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 035191",
         " 0PLANT":7222
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.21607,
           53.69273
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7250
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -114.22693,
           51.10677
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7254
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -114.00419,
           51.26065
         ]
       }
     },
     {
       " type":"功能",
       "属性":{
         " 0PLANT__YDIVIS":" 0356",
         " 0PLANT__YREGION":" 03532",
         " 0PLANT__YDISTRCT":" 003554",
         " 0PLANT":7223
       },
       "几何":{
         " type":" Point",
         "坐标":[
           -113.97218,
           50.72475
         ]
       }
     }
   ]
 }
 
choropleth-map-disappears-with-json.jpg (49.9 kB)
付费偷看设置
发送
3条回答
Violet凡
1楼-- · 2020-09-26 05:09

任何人都可以帮助我解决所发布的问题吗?

此致

Harish

绿领巾童鞋
2楼-- · 2020-09-26 05:07

Harish

为了帮助社区回答您的问题,非常清楚并提供所有相关信息非常重要。 根据您的合影地图图像,看起来您正在使用Design Studio SDK开发社区合影地图而不是标准地理地图,但是在您的问题中,您还没有弄清是否是这种情况。

问候,

穆斯塔法。

何必丶何苦呢
3楼-- · 2020-09-26 05:28

嗨,穆斯塔法,

对不起,请允许我再次澄清。

在开始批量生产原型之前,我使用的是Choropleth地图的SDK版本而不是GEO地图,我目前使用的是DS 1.6版本。

我的问题是,如何获取显示的值并将其正确放置在地图上?

我面临的问题是,当我拖放Choropleth映射并分配数据源时,该映射会正确加载; 但是,如果我编写JSON代码,地图结构就会消失,并且仅在背景为纯色的所需位置显示气泡(我看不到背景中的任何地图)。

第1步:拖放Choropleth地图并加载Canada地图,该地图通过显示Canada地图布局可以正常工作。

第2步:分配数据源-具有纬度和经度以及少量指标的BEx查询

第3步:在其他属性->映射部分中,删除地图内容(选择加拿大后默认加载),而不是在地图内容中插入自定义JSON逻辑(已在代码部分中提供),如下图所示 。 (请注意,地图布局正在消失,仅在JSON代码中指定的坐标处显示气泡)。

不确定是JSON逻辑中的问题还是错过了序列中的任何步骤? 请告知我如何获取显示的值并将其正确放置在地图上?

提前谢谢!

此致

Harish

一周热门 更多>