GithubHelp home page GithubHelp logo

anypossiblew / ui-map-baidu Goto Github PK

View Code? Open in Web Editor NEW
41.0 11.0 20.0 824 KB

angular ui for baidu map angularjs (百度地图)

Home Page: http://anypossiblew.github.io/ui-map-baidu/

JavaScript 53.77% CSS 3.95% ApacheConf 31.87% HTML 10.41%

ui-map-baidu's Introduction

Angular ui for baidu map

GitHub version Bower version

Demo and Docs

Demo and docs http://anypossiblew.github.io/ui-map-baidu/

Usage

You can get it from Bower

bower install angular-ui-map-baidu

Note

  • Baidu map must be set initial center and zoom

Changelog

1.1.7 - 2016-07-05

  • Fixed element's find function issue

License

(The MIT License)

Copyright (c) 2014 anypossiblew <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ui-map-baidu's People

Contributors

anypossiblew 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ui-map-baidu's Issues

不引入jquery的情况下地图初始化失败

下载 http://anypossiblew.github.io/ui-map-baidu 安装运行后可重现:

TypeError: Cannot read property 'Ub' of undefined
    at La.w.extend.wn (getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20150827150751:1)
    at La.w.extend.ae (getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20150827150751:1)
    at initMap (ui-map.js:127)
    at ui-map.js:105
    at m.$get.m.$broadcast (angular.js:16038)
    at mapbaiduLoadedCallback (ui-map.js:263)
    at Object.window.BMap.apiLoad [as HT] (api?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&callback=mapbaiduLoadedCallback:1)
    at getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20150827150751:1
    at getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20150827150751:1

地图缓存设置无效,切换路由之后依然实例化了一个 Map 对象

你好,非常感谢你写的地图组件,我在使用中遇到了一个问题:将 uiMapCache 设置为 true, 但切换路由之后发现还是重新实例化了一个 Map 对象,并且往这个新的 Map 对象中添加 Marker 也没有任何作用了,不知这是因为什么?

研究了一下源代码,好像没有发现 cache map 对象的语句,但找到了检测 cache 和读取 cache 的部分,请问这算是一个 bug 吗?

demo启动后进行访问,出现问题

grunt server启动demo后,出现以下错误,请问是什么原因?是最新的百度地图不兼容了吗?

TypeError: Cannot set property 'Po' of undefined
at Ja.x.extend.enableScrollWheelZoom (getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20160121161406:1)
at initMap (ui-map.js:139)
at ui-map.js:105
at Scope.$broadcast (angular.js:12181)
at mapbaiduLoadedCallback (ui-map.js:263)
at Object.window.BMap.apiLoad as KU
at getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20160121161406:1
at getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20160121161406:1(anonymous function) @ angular.js:9383(anonymous function) @ angular.js:6825Scope.$broadcast @ angular.js:12183mapbaiduLoadedCallback @ ui-map.js:263window.BMap.apiLoad @ api?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&callback=mapbaiduLoadedCallback:1(anonymous function) @ getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20160121161406:1(anonymous function) @ getscript?v=2.0&ak=kp3ODQt4pkpHMW2Yskl2Lwee&services=&t=20160121161406:1
VM373:1 Uncaught TypeError: Cannot read property 'fc' of undefined

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.