Git Product home page Git Product logo

otmaps's Introduction

OTMaps

基于ArcGIS API for Javascript封装的专题图制图类库,要求版本3.13+

在线样例(Samples)

类库特点(Advantage)

  • 使用方法简单:

    简单几步完成专题图绘制,使用方法

  • 制图种类丰富:

    当前支持柱状图专题图 饼状图专题图 范围值专题图 热力专题图以及柱状+范围值组合图 饼状+范围值组合图,并不断丰富中

  • 支持独立统计数据:

    统计数据不依赖地图服务,支持基于独立统计数据的专题图开发

  • 支持链式调用:

    histogramMap.setConfig(options).setStatData(data).draw(callback);

使用方法(Usage)

  • 文件下载

    将OTMap文件夹放置在自己的项目中,dist和src分别为部署版开发版

    dist         //压缩后代码,部署请使用该文件夹下OTMap
    src          //源代码,开发者请使用该文件夹下OTMap
    screenshots  //效果截图
    samples      //使用样例代码
  • 路径配置

    在index.html中添加OTMap路径,注意dojoConfig的配置要在arcgisJsApi引用之前

      var package_path = window.location.pathname.substring(0,window.location.pathname.lastIndexOf(''));
        var dojoConfig = {
          packages:[{
            name:'OTMap',
            location:package_path + '/OTMap'  //OTMap所处的相对路径,当前为index.html同级目录
          }]
      };

——以柱状图专题图为例

  • 引用及构建对象:

    define(["OTMap/index"],function (OTMap) {
      var histogramMap = new OTMap('histogram');
      
    });
  • 制图参数设置:

    histogramMap.setConfig({
      map: myMap,
      layer: {}
      ... ...
    });

    详细开发API

  • 专题图绘制:

    histogramMap.draw();

##效果截图(screenshots)

image image image image

问题反馈(Questions)

如何有任何疑问或更好的建议,请通过 New Issue 来向我反馈。

项目许可(License)

OTMaps is available under the terms of the MIT License.

otmaps's People

Contributors

vicfeel avatar

Watchers

James Cloos 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.