Coder Social home page Coder Social logo

zarcgis's Introduction

ZArcgis

封装arcgis的的主要操作,基于arcgis100.3.0版本。

Feature

  1. 加载底图无缝切换,可以加载天地图、google、百度、高德底图。
  2. 底图可以进行本地缓存。
  3. 实现图层基本操作,如点、线、面、文字、图片等绘制。
  4. 实现图层基本查询,如id、关键字、范围等要素查询。
  5. 封装绘画图层(GraphicsOverlay)、业务图层(OperationalLayer)及其扩展类,可以方便的进行二次扩展。
  6. 提供底图展示及查询的组合组件,GisMapView。
  7. 提供GisMapView的封装类GisMapOperateView,提供基本工具条(GisMenuBar)如图层切换、缓存图层清理、测距、测面、定位等功能。
  8. 提供坐标系转换(GeoCoordinateConvertUtil),wkt转换(WktConvertUtil)等工具类。
  9. 提供底图基本参数设置(GisMapConfig)如坐标系、中心点坐标、底图参数、缓存底图、缓存路径等底图配置。
  10. 提供Callout管理类(GisCalloutMgr),管理地图的Callout。

Gradle

    implementation "com.android.support:appcompat-v7:你的版本号"
    implementation 'com.github.zcolin:ZArcgis:latest.release'

class structure

USAGE

layout

    <com.zcolin.arcgis.core.GisMapOperateView
        android:id="@+id/gismap_view"
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:menuBarGravity="right_top"
        app:menuBarOrientation="vertical"
        app:clearIcon="@drawable/ic_launcher"
        app:locationIcon="@drawable/ic_launcher"
        app:mapTypeIcon="@drawable/ic_launcher"
        app:resetIcon="@drawable/ic_launcher"
        app:measureToolVisibility="visible"
        app:menuBarPaddingLeft="5dp"
        app:mapTypeItemTextColor="@android:color/white"
        >

Code

    GisMapOperateView gisMapOperateView = findViewById(R.id.gismap_view);
    gisMapOperateView.initMapViews();
    GisCalloutMgr.instance(gisMapOperateView.getCallout(), mActivity, "我是一个callout")
                 .backgroundColor(Color.GREEN)
                 .borderColor(Color.RED)
                 .outSideTouchDismiss(gisMapOperateView.getGisMapView())
                 .show(gisMapOperateView.getMapCenterPoint());
    
    gisMapOperateView.drawText(gisMapOperateView.getMapCenterPoint(), "我是绘制的文字");
    gisMapOperateView.drawPictureMarker(gisMapOperateView.getMapCenterPoint(), getResources().getDrawable(R.drawable.ic_launcher));
    gisMapOperateView.getGraphicsLayerMgr().bufferGeometry(gisMapOperateView.getMapCenterPoint(), GisGraphicsOverlayConfig.instanceBuffer(), 5000);
    
    //对应原来的DynamicLayer
    GisMapImageLayer layerMgr = new GisMapImageLayer(gisMapOperateView.getGisMapView());
    layerMgr.addMapImageLayer("key","http://url");
    layerMgr.getFeatureByPoint(ArcGISMapImageSublayer, Point, 500);
    layerMgr.getFeatureResultLike(ArcGISMapImageSublayer, "key", "word");

zarcgis's People

Stargazers

 avatar

Watchers

James Cloos avatar Lin Wang 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.