mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
431 B
TypeScript
23 lines
431 B
TypeScript
const aMap = new AMap.Map('id', {
|
|
resizeEnable: true,
|
|
animateEnable: true
|
|
});
|
|
|
|
aMap.setCenter(new AMap.LngLat(0, 0));
|
|
|
|
AMap.plugin(['someplugin'], () => {
|
|
console.log('plugin loaded');
|
|
});
|
|
|
|
AMap.convertFrom([116.3, 39.9], 'gps', (status, result) => {
|
|
if (result.info === 'ok') {
|
|
const _ = result.locations;
|
|
}
|
|
});
|
|
|
|
new AMap.Marker({
|
|
map: aMap,
|
|
title: '',
|
|
position: new AMap.LngLat(0, 0),
|
|
});
|