MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getMapurls

Method getMapurls

src/common/mapping/WebMapV2Base.js:222–237  ·  view source on GitHub ↗
(mapurl = {})

Source from the content-addressed store, hash-verified

220 }
221
222 getMapurls(mapurl = {}) {
223 const mapUrls = {
224 CLOUD: mapurl.CLOUD || 'http://t2.dituhui.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}',
225 CLOUD_BLACK: mapurl.CLOUD_BLACK || 'http://t3.dituhui.com/MapService/getGdp?x={x}&y={y}&z={z}',
226 OSM: mapurl.OSM || 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
227 GOOGLE:
228 'https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i540264686!3m12!2s{googleMapsLanguage}!3sUS!5e18!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!4e0&key={googleMapsAPIKey}',
229 GOOGLE_CN: 'https://mt{0-3}.google.com/vt/lyrs=m&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}',
230 JAPAN_STD: 'https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png',
231 JAPAN_PALE: 'https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png',
232 JAPAN_RELIEF: 'https://cyberjapandata.gsi.go.jp/xyz/relief/{z}/{x}/{y}.png',
233 JAPAN_ORT: 'https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg'
234 };
235
236 return mapUrls;
237 }
238
239 getLayerFeatures(layer, _taskID, type) {
240 const getLayerFunc = this.webMapService.getLayerFeatures(type, layer, this.baseProjection);

Callers 2

_initBaseLayerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected