Coder Social home page Coder Social logo

pointclustering's Introduction

PointClustering

User Widget for CMV - The Configurable Map Viewer (version 1.3.4)

Requires CMV (1.3.4) where sublayer menu control is implemented.

https://github.com/odoe/esri-clusterfeaturelayer

Settings:

Assume the sublayers are all points layers.

    operationalLayers: [
    {
        type: 'dynamic',
        url: 'https://gis.AAAAA.net/AAArmgis/rest/services/AAFacilities/Facilities_Prgm/MapServer',
        title: 'Facilities',
        options: {
            id: 'Facilities',
            opacity: 1.0,
            visible: false,
            imageParameters: imageParameters
        },
        identifyLayerInfos: {
            layerIds: [0, 1, 2, 3, 4, 5, 6]
        },
        layerControlLayerInfos: {
            metadataUrl: true,
            menu: [{
                  label: 'PointClustering',
                  topic: 'clusterMap',
                  iconClass: 'fa fa-search fa-fw'
              },{
                  label: 'Remove PointClustering',
                  topic: 'removeClusterMap',
                  iconClass: 'fa fa-search fa-fw'
              }]              
        }
    }]

add the invisible widget

        clusterMap: {
            include: true,
            id: 'clusterMap',
            type: 'invisible', //titlePane, invisible
            canFloat: true,
            title: '<i class="icon-large icon-road"></i>&nbsp;&nbsp;clusterMap',
            path: 'widgets/PointClustering',
            position: 30,
            open: false,
            options: {
                map: true,
            }
        }

Copy both PointClustering.js and folder PointClustering to widgets folder.

User should be able to init the method from the sublayer menu item to either create Cluster map to remove it

http://postimg.org/image/5a1geo4yd/

pointclustering's People

Contributors

ers-long avatar

Stargazers

Erdong avatar Tim McGee avatar  avatar

Watchers

Tim McGee avatar  avatar

Forkers

darinatch

pointclustering's Issues

Default Clustered

We have need for a layer that can be configured to clustered by default instead of having to toggle it on in the layer widget. Is this possible?

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.