Code Monkey home page Code Monkey logo

baidumapforangularjs's Introduction

Baidu-map For AngularJS

NPM version

A damn easy angular component for Baidu Map, and it's totally a re-write version for the previous one, including API updates and offline friendly

Read full documentation here: documentation

If you are using the previous version 1.2.1, read it here

If you are using the previous version 2.2.0, read it here

If you are looking for angular2 support, check it here: angular2-baidu-map

Getting started

This is a component for AngularJS ^1.6.1. And ease the way to display a baidu-map on your page.

If you plan to contribute, you can clone the source code & try it locally:

#install dependencies
npm install

#launch demo
npm start

and open your browser on http://localhost:8080/.

LICENSE

GPL v3 License

baidumapforangularjs's People

Contributors

leftstick 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  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  avatar  avatar

Watchers

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

baidumapforangularjs's Issues

添加点击地图增加marker功能

您好,我的APP需要有一个点击地图,添加marker,最后把marker的坐标和地址作为一个数组传给controller的功能,在上一个版本上我 已经写好了一个简单的,但是新版本有些不明白,想请问,要扩展地图功能增加在哪里比较好,不会影响其他地方。

离线显示离线信息以及BMap

Hello,
我使用您的指令,其他功能都正常,就是在离线状态下不能显示出离线信息——实际上在离线状态下页面啥都没有;另外,在你新版代码里,如果我想在地图里加入控件,有没有类似于BMap这样的角色存在?

Typo in Quickstart: Define opts

I've found a very small typo in the Quickstart document.

In Usage there is a section headed Define opts where the centerAndZoom JSON object is invalid: there should be a comma , after latitude: 31.244604 to make it a valid object.

请问,怎样才能将这个map实例导出来?

请问,怎样才能将这个map实例导出来?
有一些方法不能全部在指令中写,想把实例导出来在controller使用,但是我自己在指令中的scope对象指定双向绑定时候是无效的,请问要怎样绑定才能把实例导出来呢?

IE11 "Promise" issue with BaiduMapForAngularJS

I have got an issue when running app on IE 11 with BaiduMapForAngularJS.
There are error message keeping popup "Promise is undefined." and the controller method cannot be executed.
Please help me to resolve it. Many thanks.

可以支持除热力图之外的图形么?

map.addOverlay(marker); //增加点
map.addOverlay(polyline); //增加折线
map.addOverlay(circle); //增加圆
map.addOverlay(polygon); //增加多边形
map.addOverlay(rectangle); //增加矩形

is there a way to custom info window?

Hi, Is there a way i can custom the content inside infoWindow? I noticed infowindow currently in redrawMarkers function and assign specific content like:

var msg = '<p>' + (marker.title || '') + '</p><p>' + (marker.content || '') + '</p>';

I would like to add a button inside content and call other services, like modal popup. Is that possible i can inject a service (bootstrap modal) in your angular-baidu-map.js. or i can do it in html without modify your js

热力图这些如何添加?

热力图这些如何添加?
或这些如何添加到里面?

<script type="text/javascript"> // 百度地图API功能 var map = new BMap.Map("l-map"); map.centerAndZoom(new BMap.Point(116.404, 39.915), 11); var walking = new BMap.WalkingRoute(map, {renderOptions: {map: map, panel: "r-result", autoViewport: true}}); walking.search("天坛公园", "故宫"); </script>

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.