首页 / 浏览问题 / 桌面GIS / 问题详情
需要获取已经部署的在服务器上的地图数据进行开发,无法打开地图
1EXP 2021年11月05日

可以打开官网例程,无法打开部署在服务器上的地图

服务器上的地图数据页面如下:

描述:
        包含当前地图的所有相关状态信息,如中心点、比例尺、全幅范围等。

中心点: ( 479878.74 , 521979.53 )
比例尺: 0.000060773295
全幅范围:
  • 左下: ( 477072.68 , 520462.2 )
  • 右上: ( 482684.8 , 523496.86 )
大小:
  • 宽:256
  • 高:256
坐标系信息: Planar Coordinate System---m



描述:
        prjCoordSys 资源表示地图的坐标信息。

坐标信息:

type:

PCS_NON_EARTH

name:

Planar Coordinate System---m

开发包用的supermap-iclient-1020

<head>

    <meta charset="UTF-8">

    <title data-i18n="resources.title_tiledMapLayer4326"></title>

    <script type="text/javascript" src="../js/include-web.js"></script>

</head>

<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>

<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>

<script type="text/javascript">

    var host = window.isLocal ? window.server : "http://172.16.18.120:8090";//"https://iserver.supermap.io";

    var map, url = host + "/iserver/services/map-DCJ_JK_BASE_new/rest/maps/DCJ_JK_BASE";

    map = L.map('map', {

        crs: L.CRS.EPSG4326,

        center: [0, 0],

        maxZoom: 18,

        zoom: 1

    });

    L.supermap.tiledMapLayer(url).addTo(map);

</script>

1个回答

你好,我看你的坐标系应该是平面坐标系吧,你应该参考这个例子加载你的地图服务(https://iclient.supermap.io/examples/leaflet/editor.html#01_tiledMapLayerNonEarth),并且修改对应参数为你自己的数据(例如:bounds、origin、url等),参数相关如何设置及介绍参考api(https://iclient.supermap.io/web/apis/leaflet.html

3,740EXP 2021年11月05日

您说的这个我之前已经试过了,打电话咨询过客服,说是因为之前已经部署的服务器版本是8.1.1的,和我调试用的iclient1020不匹配,客服说要下载和服务器版本匹配的iclient,我下在了iclinet8c这个版本http://support.supermap.com.cn/DownloadCenter/DownloadPage.aspx?id=666,您知道这个版本怎么获取图片吗?

...