Map Sdk Loader, Supports Tencent Map and Baidu Map
sample: https://morioh.com/p/fca4872d4e0d
LoadMap Map SDK loader, supports Tencent map and Baidu map, and can be used for vue and react projects.
Baidu map can choose to use react-baidu-maps , vue-baidu-map
installation npm install load-map --save use Import LoadMap from 'the Load-the Map' ; LoadMap . the Load ( { MapKey : 'XXXXX' , // you apply the Key Version: '2.exp' , // map version, url : 'HTTPS: //map.qq. com/api/js' , // The URL of the map SDK, does not include the query part query : { } , // Load the map SDK, additional URL query part (Baidu map has type: webgl) } ) . then ( sdk => { // qqmapEl is the container of Tencent map // myOptions The configuration of Tencent map new sdk . maps . Map(qqmapEl, myOptions); }) parameter load method, Load the map SDK, return Promise, the parameter in the success callback is SDK
Source Code: https://github.com/lydxwj/LoadMap
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
https://github.com/TencentLBS
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3