anypossiblew / ui-map-baidu Goto Github PK
View Code? Open in Web Editor NEWangular ui for baidu map angularjs (百度地图)
Home Page: http://anypossiblew.github.io/ui-map-baidu/
angular ui for baidu map angularjs (百度地图)
Home Page: http://anypossiblew.github.io/ui-map-baidu/
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
参照示例的写法
data-ng-click="console.log('click');setMarkerPosition(currentMarker, currentMarkerLat, currentMarkerLng)"
但是demo里面的此事件也无法执行。
求教ng-click的写法
你好,非常感谢你写的地图组件,我在使用中遇到了一个问题:将 uiMapCache
设置为 true
, 但切换路由之后发现还是重新实例化了一个 Map 对象,并且往这个新的 Map 对象中添加 Marker
也没有任何作用了,不知这是因为什么?
研究了一下源代码,好像没有发现 cache map 对象的语句,但找到了检测 cache 和读取 cache 的部分,请问这算是一个 bug 吗?
你好,作者,请教一下,怎么做搜索框自动提示。
类似:
http://developer.baidu.com/map/jsdemo.htm#a6_2
谢谢
下载 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
我想让其100%填充页面高度。
但是不设置height就不显示了
因为不同设备需要的高度不一样
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.