GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — iClient-JavaScript/src/leaflet at master · SuperMap/iClient-JavaScript

Expand file tree

/

leaflet

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

leaflet

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
components
components
 
 
control
control
 
 
core
core
 
 
css
css
 
 
mapping
mapping
 
 
overlay
overlay
 
 
services
services
 
 
README.md
README.md
 
 
index.js
index.js
 
 
namespace.js
namespace.js
 
 
package.json
package.json
 
 

README.md

Outline

@supermapgis/iclient-leaflet

@supermapgis/iclient-leaflet 是一套基于 Leaflet 的云 GIS 网络客户端开发平台, 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源,为用户提供了完整专业的 GIS 能力, 同时提供了优秀的可视化功能。

简介

  • 官网:https://iclient.supermap.io
  • 源码:https://github.com/SuperMap/iClient-JavaScript/tree/master/src/leaflet

安装

 npm install @supermapgis/iclient-leaflet

开发

在 HTML 文件中引入 CSS 文件

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/>

<link rel="stylesheet" href="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.min.css"/>

在 JS 文件中加入如下代码

import L from 'leaflet';
import {tiledMapLayer} from '@supermapgis/iclient-leaflet';

var url = "https://iserver.supermap.io/iserver/services/map-world/rest/maps/World";
var map = L.map('map', {
    crs: L.CRS.EPSG4326,
    center: [0, 0],
    maxZoom: 18,
    zoom: 1
});
tiledMapLayer(url).addTo(map);

示例

https://github.com/SuperMap/iClient-JavaScript/tree/master/examples/leaflet

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.