vita2333 / vmap Goto Github PK
View Code? Open in Web Editor NEW高德地图2.0(amap2.0)的Vue组件封装
Home Page: https://vita2333.github.io/vmap/
高德地图2.0(amap2.0)的Vue组件封装
Home Page: https://vita2333.github.io/vmap/
官方只有这一种示例,我按照它的示例来确实可以打印出改示例,但是我修改成轨迹展示则出现了报错,请问是我的引用方式不对吗,网上并没有这里解答,只得在这里询问,以下是我的加载代码
` methods: {
initAMap() {
AMapLoader.load({
key: "a0fe39f6c90ba997c0833b6b1cd00bfd", // 申请好的Web端开发者Key,首次调用 load 时必填
version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
plugins: [], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
AMapUI: {
// 是否加载 AMapUI,缺省不加载
version: "1.1", // AMapUI 缺省 1.1
plugins:['overlay/SimpleMarker', 'ui/misc/PathSimplifier'], // 需要加载的 AMapUI ui插件
}
})
.then((AMap) => {
this.initAMapSuccess(AMap);
})
.catch((e) => {
console.log(e);
});
},
initAMapSuccess(AMap) {
this.map = new AMap.Map('container', {
zoom:17,// 级别
center: [117.215749, 31.845937],// 中心点坐标
viewMode: '3D',
});
console.log('2222:', new AMapUI.PathSimplifier()); // 打印报错
console.log('3333:', new AMapUI.SimpleMarker()); // 可以打印出实例
}
},`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.