Giter Site home page Giter Site logo

mapextent's Introduction

MapExtent

CMV Widget to get map extent and zoom level.

This widget can be utilized to get current map extent or draw an map extent. It returns both the map extent, center point, and zoom in level. The value should refresh if the map extent changes.

The return extent string is in CMV extent settings format.

Viewer.js config setting

        currentExtent: {
            include: true,
            id: 'currentExtent',
            type: 'titlePane',
            canFloat: true,
            path: 'widgets/CurrentExtent',
            title: '<i class="icon-large icon-road"></i>&nbsp;&nbsp;Get Current Extent',
            position: 13,
            options: {
                map: true
            }
        },            

Example Draw Extent Return

        xmin: -11594594.709399065, 
        ymin: 3578662.282692148, 
        xmax: -10305560.664398193, 
        ymax: 4224402.297645146, 
        
        spatialReference: { 
            wkid: 102100 
        } 
        
        xmin: -104.156016, 
        ymin: 30.582621, 
        xmax: -92.576427, 
        ymax: 35.444135, 
        
        spatialReference: { 
            wkid: 4326 
        } 
        
        center: [-98.366221, 33.013378], 
        zoom: 6, 

(http://postimg.org/image/t4h4zgfg5/)

mapextent's People

Contributors

ers-long avatar

Stargazers

Erdong avatar

Watchers

 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.