Git Product home page Git Product logo

angular-baidu-maps's People

Contributors

cipchk avatar mo-gong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-baidu-maps's Issues

需要升级百度地图js版本

查看了一下源码,目前固定加载2.0版本的百度地图JS.
百度地图官方文档已经默认3.0的手册了.需要更新一下JS版本.

Problem of file:// scheme while loading from cordova based app.

Hi,
I have been trying to load up this Baidu map from your plugin . It works flawlessly in web version (desktop). But when I run this same code in mobile (using Cordova). It shows error loading the javascript file.

file://api.map.baidu.com/api?v=2.0&ak=<MYAPI_KEY>&callback=angularBaiduMapsLoader

I have even set my API key and apiProtocol but it is still the same:

AbmModule.forRoot({
            apiKey: '<MYAPI_KEY>',
            apiProtocol: 'https'
        }),

map.addEventListener() 事件并没有绑定

map.addEventListener('click', (e: any) => {
this.messageService.add(e.target.getLabel() + ' ProjectMarker has been clicked!');
});

this._map.addEventListener('click', this.PickUpInfo.bind(this));
两种方法都尝试了,点击地图并没有进入事件回调函数。
请教下,原因可能是什么

import baidu-map in NgModule

AbmModule.forRoot({apiKey: 'bLf1IX78tWQ8tBzu6m5GvnbxSsxLYWNA' // app key为必选项 })
error:Argument type {apiKey: string} is not assignable to parameter type AbmConfig
bu 4m e wdp04u5 da j a

请问如何使用 BMapLib ?

我们尝试使用点聚合工具 MarkerClusterer, 但是得到 ERROR ReferenceError: BMapLib is not defined. 怀疑是没引进一些 library. 请问有人尝试过用点聚合工具么? 请多多指教

谢谢 :)

地图的销毁

百度地图原生的js api中map对象有个destroy的方法,来销毁地图,但是,
onReady(map){
this._map = map;
map.addControl(new BMap.MapTypeControl());
map.enableScrollWheelZoom(true);
this.initView();
}
初始化地图,然后调用this._map.destroy();确提示destroy is not a function,请问还有什么销毁方法吗?
还是,组件自己有销毁地图的操作,不需要显示条用销毁操作?

onReady 运行时间

偶尔会出现没有执行onReady的情况,需要重新刷新页面。
不知道这个方法是何种情况加载的。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.