{"_id":"@cennavi-fe/minemap","_rev":"10-3bbcc833c41950c68d9b5d47d5e02291","name":"@cennavi-fe/minemap","dist-tags":{"latest":"4.6.12"},"versions":{"4.6.7":{"name":"@cennavi-fe/minemap","version":"4.6.7","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.7","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"bd4415c1fbab3aef25b4b0cc945d9555d5a0e44c","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.7.tgz","fileCount":7,"integrity":"sha512-pk3ulL6aZqyUzvkatUXi5CB5AKqKYK9VQPI1FCcPEQAm6VapFk7Tr8IeDCrlwuvcZs8vRWewgnMrxEnJHpy0xw==","signatures":[{"sig":"MEUCIQC1/Y46ZKsrT1qlA+8dX9Npf5q6wM+KrKyXH56lKLvDrgIgGZYaiQQaGR4x5Jm4aREH+ZVCCefO/nAY6OAQXx+GhWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21170953},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.7_1709696430465_0.07433328744187029","host":"s3://npm-registry-packages"}},"4.6.8":{"name":"@cennavi-fe/minemap","version":"4.6.8","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.8","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"ae7f267caf63687b287dfeb5db4276dc6d4b9549","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.8.tgz","fileCount":7,"integrity":"sha512-4eCfnWqOMnGXwtyFk5GP14M16R1pdqwsoiUn+gufmP6FcNqmu6jCcZyQhWBp5gzZZ1O+TyzQ/hDRrvZDOoXF8Q==","signatures":[{"sig":"MEQCIDHr6LBMoVPu2f53bnNDQYiD0FTRa/df6hrrmT0jEWFiAiBEzLo5Qq+dvbYp50/UrgNH9IT++l1ABqGJbfkUQF/zKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21170935},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.8_1709696580848_0.8754103606407528","host":"s3://npm-registry-packages"}},"4.6.9":{"name":"@cennavi-fe/minemap","version":"4.6.9","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.9","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"b838a2ba23eaeec4b287f6707685c0ba2bd0d277","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.9.tgz","fileCount":7,"integrity":"sha512-P4aXf+GB7XXHhY+a5IC8Vle7umlPEtaLvhkUlDBZ60+djGCThKmocu7GucIueLLKjHi3GXOCUOA94xHdewLlsw==","signatures":[{"sig":"MEYCIQCaRDBTVChPywJjso3qOdKCWshPO68GFy/YWAVIwZFkDwIhALfKk18eMb3cGJAwij7bt/cGXmlBsag/i9okrx3YzPhy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5478337},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.9_1709697407170_0.7006354183835424","host":"s3://npm-registry-packages"}},"4.6.10":{"name":"@cennavi-fe/minemap","version":"4.6.10","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.10","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"9f6e3833042a765513be339861369033b077f45c","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.10.tgz","fileCount":7,"integrity":"sha512-vhb/YdxcZpj+sXZB0LXw2ae+ADl9rkPvkGV7YKLRyv3wl6vi3nK8xgpeN1VfQ4SjdImlv2n9eAnAvS0hArztcw==","signatures":[{"sig":"MEUCIDIA5C66FvO/AcHkAotDJPW68RS9KTKXKYxOsAW7851pAiEAznwC/w280kuAtt6Z3s0/CFrshp6lb852FK/iGIqJGg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5470303},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.10_1709718701501_0.7999041932997297","host":"s3://npm-registry-packages"}},"4.6.11":{"name":"@cennavi-fe/minemap","version":"4.6.11","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.11","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"2dd3f48d589a0d553526e0ba81ad4f87051ca02f","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.11.tgz","fileCount":4,"integrity":"sha512-tbCuhgv6Ik49vHkuMTNcA6aCe3jlOKracfodfoK6GSUnwtTNGXCJ/ABElmiDCz8fhzZW+KZF4gf3ppGcCwZP3Q==","signatures":[{"sig":"MEQCIAxNzV7Fr/mdKZ2x+sPP8QSevHW+daE9M1VpZT5vumGfAiAgzRP3OM1UQZx7uYienooYs+rpuWIFCFVS2NlunmOfyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4144657},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.11_1709795487362_0.7917717040517693","host":"s3://npm-registry-packages"}},"4.6.12":{"name":"@cennavi-fe/minemap","version":"4.6.12","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"author":{"name":"minemap"},"license":"ISC","_id":"@cennavi-fe/minemap@4.6.12","maintainers":[{"name":"wuhaoyuan","email":"alan_why@foxmail.com"},{"name":"zhoumingrui","email":"441821595@qq.com"},{"name":"hhui90068","email":"15738779822@163.com"},{"name":"wb9527","email":"1129305053@qq.com"},{"name":"ndwgg","email":"ndwgg@qq.com"}],"dist":{"shasum":"42c23e5ab9d3f7ea1d1b5da2451ab5607e52e56f","tarball":"https://registry.npmjs.org/@cennavi-fe/minemap/-/minemap-4.6.12.tgz","fileCount":4,"integrity":"sha512-s5Tal0ReV0IINcRtISnPAZm3NHi9GLeFIrJ7E+tiu+8nouj3SgsWbTaEyfe0sEYVHkZJ4DEzd9Nra2CcvmtUqA==","signatures":[{"sig":"MEYCIQC3LPVAJRSRL00CFiakos1EduY6nsKXy1aEj5nuHpsupgIhAJt3g567ECO/M7MKjqwd+nBo7/mEdyhsYwTyUxUj2BTL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4144693},"main":"index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"zhoumingrui","email":"441821595@qq.com"},"_npmVersion":"6.14.17","description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","directories":{},"_nodeVersion":"14.21.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/minemap_4.6.12_1709884202831_0.6782317009994803","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-03-06T03:40:30.331Z","modified":"2025-08-20T06:57:46.477Z","4.6.6":"2024-03-06T03:30:19.036Z","4.6.7":"2024-03-06T03:40:30.978Z","4.6.8":"2024-03-06T03:43:01.269Z","4.6.9":"2024-03-06T03:56:47.418Z","4.6.10":"2024-03-06T09:51:41.697Z","4.6.11":"2024-03-07T07:11:27.645Z","4.6.12":"2024-03-08T07:50:03.080Z"},"author":{"name":"minemap"},"license":"ISC","keywords":["webgl1","globe","3d analysis","cim","webgis","bigdata","3d-tiles","glTF2.0","glb","ogc","mvt","quantizedmesh","point-cloud","video-projection"],"description":"基于webgl的三维渲染球体地图引擎，支持矢量mvt数据的渲染，支持三维渲染、交互、空间分析以及二三维的标绘","maintainers":[{"email":"ndwgg@qq.com","name":"ndwgg"},{"email":"1129305053@qq.com","name":"wb9527"},{"email":"441821595@qq.com","name":"zhoumingrui"},{"email":"alan_why@foxmail.com","name":"wuhaoyuan"}],"readme":"# MineMap3DEngine\n\n## Contents\n\n[TOC]\n\n## 工程介绍\n\nMineMap 3d 正式版，能够进行完整、稳定、高性能的多源数据融合加载，支持的格式如下：\n\n| 序号 |       格式/类型       |             支持的坐标系/版本/格式              |\n| :--: | :-------------------: | :---------------------------------------------: |\n|  1   |          mvt          |                  [3857、4326]                   |\n|  2   |        geojson        |                                                 |\n|  3   |         image         |                 jpg、png、webp                  |\n|  4   | terrain-quantizedmesh |                  [3857、4326]                   |\n|  5   |          tms          |                                                 |\n|  6   |         wmts          |                  [3857、4326]                   |\n|  7   |        3dtiles        | [0.0、1.0、1.1], texture[ktx2、crn],mesh[draco] |\n|  8   |       glTF/glb        |                   [1.0、2.0]                    |\n|  9   |         video         |                 [flv、mp4、hls]                 |\n|  10  |       百度瓦片        |                                                 |\n\n支持的功能\n\n| 序号 |      功能      |                           描述                           |\n| :--: | :------------: | :------------------------------------------------------: |\n|  1   |    矢量图层    |  点线面、圆形、白膜、动态路况、二、三维热力；点线面贴地  |\n|  2   |    栅格图层    |               栅格图层、图片图层；图层贴地               |\n|  2   |      地形      |                   支持面和网格两种形式                   |\n|  3   |    模型图层    |                      jpg、png、webp                      |\n|  4   | 3d-tiles 图层  |           多分数据重建顶层索引极大降低内存消耗           |\n|  5   |    图元对象    |        丰富的几何对象和冯氏光照模型材质、PBR 材质        |\n|  6   |    粒子系统    |                                                          |\n|  7   |      光照      |       点光源、平行光、聚光灯（进行中），阴影进行中       |\n|  8   |     后处理     |        雾、夜视、辉光、黑白、屏幕空间反射、HDR 等        |\n|  9   |    空间分析    | 可视域、通视、开敞度、等高线、限高、天际线、坡度、坡向等 |\n|  10  |      交互      |   矢量图层查询交互、三维图层查询交互、单体化、模型剖切   |\n|  10  | 标记和信息窗体 |                     跟随地形高度拖拽                     |\n\n插件\n\n| 序号 |   功能   |                        描述                        |\n| :--: | :------: | :------------------------------------------------: |\n|  1   | 二维编辑 |                 点线面的绘制等操作                 |\n|  2   | 三维标绘 | 支持点、线、面、体的标绘、动画播放、序列化导入导出 |\n|  2   |   lbs    |             用于 lbs 的数据请求和渲染              |\n\n## 如何使用？\n\n```shell\n# 安装依赖\nnpm install @cennavi-fe/minemap\n\nor\n\npnpm install @cennavi-fe/minemap\n```\n\n在 vue 项目的入口文件 main.js 配置\n\n```js\nimport Vue from \"vue\";\nimport App from \"./App.vue\";\n// 引入 minemap css 依赖\nimport \"@cennavi-fe/minemap/esm/minemap.css\";\n\n// ...\n```\n\n以 vue2 举例，放到\n\n```html\n<template>\n\t<div class=\"hello\">\n\t\t<div id=\"map\"></div>\n\t</div>\n</template>\n\n<script>\n\timport minemap from \"@cennavi-fe/minemap\";\n\n\texport default {\n\t\tname: \"HelloWorld\",\n\t\tprops: {\n\t\t\tmsg: String\n\t\t},\n\t\tmounted() {\n\t\t\tminemap.domainUrl = \"https://minedata.cn\";\n\t\t\tminemap.dataDomainUrl = \"https://minedata.cn\";\n\t\t\tminemap.serverDomainUrl = \"https://minedata.cn\";\n\t\t\tminemap.spriteUrl = \"https://minedata.cn/minemapapi/v3.3.0/sprite/sprite\";\n\t\t\tminemap.serviceUrl = \"https://minedata.cn/service/\";\n\n\t\t\tminemap.key = \"16be596e00c44c86bb1569cb53424dc9\";\n\t\t\tminemap.solution = 12877;\n\t\t\twindow.minemapCDN = \"https://minedata.cn/minemapapi/minemap-CDN\"; // minemapCDN 配置\n\n\t\t\t// 定义空底图样式\n\t\t\tvar style = {\n\t\t\t\tglyphs: \"minemap://fonts/{fontstack}/{range}\",\n\t\t\t\tsprite: \"minemap://sprite/sprite\",\n\t\t\t\tsources: {},\n\t\t\t\tlayers: [],\n\t\t\t\tversion: 8\n\t\t\t};\n\t\t\t/**\n\t\t\t * 初始化地图实例\n\t\t\t */\n\n\t\t\tvar map = new minemap.Map({\n\t\t\t\tcontainer: \"map\",\n\t\t\t\tstyle: style,\n\t\t\t\tbearing: -87.18744098264303,\n\t\t\t\tposition: [108.94733550459136, 34.30940496948484, 2000], //现在的球体地图可以选择两种初始化定位方式 position即设定相机的经度、纬度和距离椭球表面的高度（米）\n\t\t\t\t//或者 center + zoom的方式，这个是表示以地图为屏幕中心点的定位方式， 二者互斥，请大家注意！\n\t\t\t\tmaxZoom: 22 /*地图最大缩放等级*/,\n\t\t\t\tminZoom: 1 /*地图最小缩放等级*/,\n\t\t\t\tlogarithmicDepthBuffer: true,\n\t\t\t\tnearDetection: true\n\t\t\t});\n\t\t\tmap.repaint = true;\n\n\t\t\tmap.on(\"load\", function () {\n\t\t\t\t/*添加栅格图*/\n\t\t\t\tmap.addSource(\"IMAGERY_SOURCE\", {\n\t\t\t\t\ttype: \"raster\", //数据源类型：栅格数据源\n\t\t\t\t\ttiles: [\"https://services.minedata.cn/service/data/satellite?x={x}&y={y}&z={z}\"], //瓦片服务地址\n\t\t\t\t\ttileSize: 256 //瓦片尺寸\n\t\t\t\t});\n\n\t\t\t\tmap.addLayer({\n\t\t\t\t\tid: \"IMAGERY\",\n\t\t\t\t\ttype: \"raster\", //图层类型为\"raster\"\n\t\t\t\t\tsource: \"IMAGERY_SOURCE\",\n\t\t\t\t\tminzoom: 1,\n\t\t\t\t\tmaxzoom: 23,\n\t\t\t\t\t\"depth-test\": true\n\t\t\t\t});\n\n\t\t\t\t// 3dtiles\n\t\t\t\tconst tileset = map.addSceneComponent({\n\t\t\t\t\tid: \"serve\",\n\t\t\t\t\ttype: \"3d-tiles\",\n\t\t\t\t\tshow: true,\n\t\t\t\t\ttranslation: new minemap.Math.Vector3(0, 0, 0), //在enu坐标系下的位置移动距离，顺序为[east, north, height]，单位为m，并且只用于3dtiles图层\n\t\t\t\t\tminzoom: 12, //3d-tiles加载显示的最小层级\n\t\t\t\t\tmaxzoom: 22, //3d-tiles加载显示的最大层级\n\t\t\t\t\turl: \"https://staticdata-b.minedata.cn:14434/oblique/tileset.json\",\n\t\t\t\t\tskipLevelOfDetail: false, //跨层调度\n\t\t\t\t\tmaximumScreenSpaceError: 8,\n\t\t\t\t\tuseMipmap: true,\n\t\t\t\t\tsourceLoaded: () => {\n\t\t\t\t\t\t// map.flyTo({\n\t\t\t\t\t\t// \ttarget: tileset,\n\t\t\t\t\t\t// \tbearing: 0,\n\t\t\t\t\t\t// \tpitch: 0,\n\t\t\t\t\t\t// \tduration: 2000,\n\t\t\t\t\t\t// \trange: 1000\n\t\t\t\t\t\t// });\n\t\t\t\t\t},\n\t\t\t\t\t/**\n\t\t\t\t\t * 飞行选择\n\t\t\t\t\t * index: 指定飞行目标(优先)\n\t\t\t\t\t * combine: 合并bounds为飞行目标\n\t\t\t\t\t */\n\t\t\t\t\tgeoBoundsOptions: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tcombine: true\n\t\t\t\t\t},\n\t\t\t\t\tallowPick: true,\n\t\t\t\t\tlightingModel: minemap.LightingModelType.NONE\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\n\t#map {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100vw;\n\t\theight: 100vh;\n\t}\n</style>\n```\n\nhtml 原生使用方式\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"UTF-8\" />\n\t\t<meta name=\"viewport\" content=\"initial-scale=1,maximum-scale=1,user-scalable=no\" />\n\t\t<title>热力图图层</title>\n\t\t<link rel=\"stylesheet\" href=\"https://minedata.cn/nce-static/support/demo/js-3d-ultra/zh/css/demo.css\" />\n\t\t<!-- 引入MineMap API插件 -->\n\t\t<link rel=\"stylesheet\" href=\"https://minemap.minedata.cn/minemapapi/v4.0.0/minemap.css\" />\n\t\t<script src=\"https://minemap.minedata.cn/minemapapi/v4.0.0/minemap.js\"></script>\n\t\t<style>\n\t\t\t#map {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div id=\"map\"></div>\n\t\t<script>\n\t\t\t/**\n\t\t\t * 全局参数设置\n\t\t\t */\n\t\t\tminemap.domainUrl = \"https://minemap.minedata.cn\";\n\t\t\tminemap.dataDomainUrl = \"https://minemap.minedata.cn\";\n\t\t\tminemap.serverDomainUrl = \"https://sd-data.minedata.cn\";\n\t\t\tminemap.spriteUrl = \"https://minemap.minedata.cn/minemapapi/v4.0.0/sprite/sprite\";\n\t\t\tminemap.serviceUrl = \"https://service.minedata.cn/service\";\n\n\t\t\tminemap.key = \"<您的 key>\";\n\t\t\tminemap.solution = 11003;\n\n\t\t\tvar map = new minemap.Map({\n\t\t\t\tcontainer: \"map\",\n\t\t\t\tstyle: \"https://service.minedata.cn/map/solu/style/11003\",\n\t\t\t\t// center:  [116.46,39.92],\n\t\t\t\tcenter: [116.40264611530694, 39.94940769430899],\n\t\t\t\tzoom: 12,\n\t\t\t\tpitch: 70,\n\t\t\t\tmaxZoom: 17,\n\t\t\t\tminZoom: 3,\n\t\t\t\tprojection: \"MERCATOR\"\n\t\t\t});\n\n\t\t\t/**\n\t\t\t * 创建地图对象后，开始加载地图资源，地图资源加载完成后触发load事件\n\t\t\t */\n\t\t\tmap.on(\"load\", function () {\n\t\t\t\t// 增加自定义数据源、自定义图层\n\t\t\t\taddSources();\n\t\t\t\taddLayers();\n\t\t\t});\n\n\t\t\tfunction addSources() {\n\t\t\t\t//添加数据源,该热力图效果，数据源类型支持geojson或vector两种形式\n\t\t\t\tmap.addSource(\"heatmapSource\", {\n\t\t\t\t\ttype: \"geojson\",\n\t\t\t\t\tdata: \"https://minedata.cn/nce-static/support/demo/js-3d-ultra/zh/assets/heatmap_point.json\" /*可以是具体的服务*/\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfunction addLayers() {\n\t\t\t\tmap.addLayer({\n\t\t\t\t\tid: \"heatmapLayer\",\n\t\t\t\t\ttype: \"heatmap\",\n\t\t\t\t\tsource: \"heatmapSource\",\n\t\t\t\t\tlayout: {\n\t\t\t\t\t\tvisibility: \"visible\",\n\t\t\t\t\t\t\"display-mode\": \"3d\" // 默认二维展示（“2d”），可选择展示三维（“3d”）\n\t\t\t\t\t},\n\t\t\t\t\tpaint: {\n\t\t\t\t\t\t// 一个热力图数据点的模糊范围，单位是像素，默认值30；要求：值大于等于1，可根据zoom level进行插值设置\n\t\t\t\t\t\t\"heatmap-radius\": 100,\n\t\t\t\t\t\t//一个热力图单个数据点的热力程度，默认值为1；要求：值大于等于0，支持使用property中某个的热力值\n\t\t\t\t\t\t\"heatmap-weight\": {\n\t\t\t\t\t\t\tproperty: \"mag\",\n\t\t\t\t\t\t\tstops: [\n\t\t\t\t\t\t\t\t[0, 0],\n\t\t\t\t\t\t\t\t[10, 1]\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t// 用于统一控制热力值的强度，默认值1；要求：值大于等于0，可根据zoom level进行插值设置\n\t\t\t\t\t\t\"heatmap-intensity\": 1,\n\t\t\t\t\t\t// 表示热力图颜色阶梯，阶梯的值域范围为0-1，默认值为[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",0.1,\"royalblue\",0.3,\"cyan\",0.5,\"lime\",0.7,\"yellow\",1,\"red\"]\n\t\t\t\t\t\t\"heatmap-color\": [\n\t\t\t\t\t\t\t\"interpolate\",\n\t\t\t\t\t\t\t[\"linear\"],\n\t\t\t\t\t\t\t[\"heatmap-density\"],\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\"rgba(0, 0, 255, 0)\",\n\t\t\t\t\t\t\t0.1,\n\t\t\t\t\t\t\t\"royalblue\",\n\t\t\t\t\t\t\t0.3,\n\t\t\t\t\t\t\t\"cyan\",\n\t\t\t\t\t\t\t0.5,\n\t\t\t\t\t\t\t\"lime\",\n\t\t\t\t\t\t\t0.7,\n\t\t\t\t\t\t\t\"yellow\",\n\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\"red\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t// 表示热力图的不透明度，默认值1；值域范围0-1，可根据zoom level进行插值设置\n\t\t\t\t\t\t\"heatmap-opacity\": 1,\n\t\t\t\t\t\t// 表示三维热力图以米为单位的缩放比例，默认值100，仅display-mode为3d时生效\n\t\t\t\t\t\t\"heatmap-height-factor\": [\n\t\t\t\t\t\t\t\"interpolate\",\n\t\t\t\t\t\t\t[\"linear\"],\n\t\t\t\t\t\t\t[\"zoom\"],\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t10000,\n\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t\t1000,\n\t\t\t\t\t\t\t15,\n\t\t\t\t\t\t\t100,\n\t\t\t\t\t\t\t17,\n\t\t\t\t\t\t\t10\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t</script>\n\t</body>\n</html>\n```\n\n## 相关文档\n\n文档[链接](https://minedata.cn/nce-support/webDev/MineMap-3D-Ultra)\n\n## 更新日志\n\n[4.6.7]\n\n1. 文档更新\n\n[4.6.8]\n\n1. 文档更新\n\n[4.6.9]\n\n1. 文档更新\n\n[4.6.10]\n\n1. fix:far 变更后裁剪包围盒未更新的问题\n2. fix:将 raster 图层设置为默认背面剔除\n3. 设置 fill-pattern 属性值为空字符串和不存在的纹理情况下默认显示填充颜色\n\n[4.6.11]\n\n1. 修复面图层纹理错乱的问题\n2. 修复 Marker 未跟随地图变化的问题;\n3. 修复 extrusion 图层纯色渲染光照消失的问题\n\n[4.6.12]\n\n1. 修复矢量贴地面纹理尺寸错误的问题\n2. 解决有重叠的透明矢量面绘制颜色不正确的 bug\n3. 修复经纬度模式下因 zoom 与瓦片层级不一致导致图层不连续的问题\n4. geojson-source 数据源最大 zoom 调整为 24，避免一些开发缺少数据的问题\n","readmeFilename":"README.md"}