
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@ido-team/map-awesome
Advanced tools
```javascript @param divId const instance = new window.IdoMapInstance("map") ```
##地图渲染层API
@param divId
const instance = new window.IdoMapInstance("map")
@param settings 完整数据集或者地图code
renderMap(settings)
@param tileName 瓦片组名称
switchTileLayer(tileName)
@param layers 图层id数组或者对象数组 [id] | [{id: '', request?: {params?: {}, data?: {}}]
参数示例:
[
123,
{
id: '123',
request: {
data: {
enterprise_id: '456'
}
}
},
{
id: '123',
request: {
params: {
enterprise_id: '456'
}
}
}
]
@param replaceAll 可选参数 默认true 为替换渲染 false为追加渲染
renderMapLayer(layers, replaceAll)
@param layers 同4方法
renderStaticMapLayer(layers)
@param layerIds 图层id数组
@param remove 可选参数 默认false 是否从数据集中删除
removeMapLayers(layerIds, remove)
@param layers 参数同4方法
addMapLayer(layers)
@param zoom 层级
setZoom(zoom)
@param latlng 经纬度对象
@param zoom 可选参数 层级
flyTo(latlng, zoom?)
getMapInstance()
destroyed()
##地图渲染层图层数据格式
过滤器最后返回数据格式
@params config 可选参数 热力图配置 以下为默认配置
@params data 接口返回坐标集
return {
config: {
radius: 0.001,
maxOpacity: 0.8,
scaleRadius: true,
latField: "lat",
lngField: "lng",
valueField: "count",
useLocalExtrema: true,
gradient: {
0.99: "rgb(255, 167, 7)",
0.85: "#ffcd04",
0.5: "#2dc01d",
0: "#00b4ff",
},
max: 100
},
data: [
{
lat: '123',
lng: '456',
count: 100
}
]
}
FAQs
```javascript @param divId const instance = new window.IdoMapInstance("map") ```
The npm package @ido-team/map-awesome receives a total of 3 weekly downloads. As such, @ido-team/map-awesome popularity was classified as not popular.
We found that @ido-team/map-awesome demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.