Giter Site home page Giter Site logo

OGC不出图 about webclient-javascript HOT 1 CLOSED

mapgis avatar mapgis commented on May 21, 2024
OGC不出图

from webclient-javascript.

Comments (1)

ParnDeedlit avatar ParnDeedlit commented on May 21, 2024

问题本质核心关键

动态投影 + 数据范围 + 图层名称

解决方案

  1. 坐标问题:由于你使用的是天地图裁图方式,对应的EPSG编号是EPSG:4326,因此需要将原始的墨卡托/高斯坐标动态投影成经纬度的方式, 采取的办法是地图文档-动态投影.
  2. 图层对应:由于地图文档出图是实时出图的方式,因此再脚本代码中传入的图层的名字必须要和地图文档的名字一致

解决步骤

  1. 打开MapGIS K10设置地图文档
    tim 20181019114523

  2. 检查数据图层Layer参照系
    tim 20181019114558

  3. 关键步骤:检查地图文档动态投影信息
    tim 20181019140752

  4. 地图文档发布
    tim 20181019114821

选择分辨率按钮, 再点击 天地图配置

tim 20181019114849

  1. ogc地图文档服务发布
    tim 20181019114907
    tim 20181019114923

  2. 前端脚本关键语法
    tim 20181019140943

 //wms服务
var Layer = L.tileLayer.wms('http://192.168.10.185:6163/igs/rest/ogc/doc/EPSG_4326/WMSServer', {
	//图层名称
	layers: '一级道路',  //此处的名称要与上面地图文档的名称一一对应,多个图层逗号分割
	//wms版本号
	version: '1.3.0'
}).addTo(map);

from webclient-javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.