Giter Site home page Giter Site logo

areamap's Introduction

areaMap

百度地图API——实现北京市各行政区房产数据展示

特点

支持热力图显示:使用百度地图热力图API实现

前端组件化:js+css+html

目前使用测试数据:可通过注释掉的ajax方法请求后台数据

使用方法

html:

link rel="stylesheet" type="text/css" href="/stylesheets/areaMap.css">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=iyPuuhgLuXn9kgnqiyC32m6Z"></script>
<!--百度地图容器-->
  <div class="areaMap" style="border:#ccc solid 1px;" id="dituContent"></div>

script:

 //调用areaMap jQuery组件,实例化JS对象
 var areaMap =  $("#dituContent").areaMap({
                level:'province'   //地图级别为北京市
          });
 //调用初始化地图的方法
 areaMap.init();
 //调用生成热力图的方法
 var overlay = areaMap.heatmap();

areamap's People

Contributors

tangzhirong avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.