Giter Club home page Giter Club logo

cmv_advancedsearch_widget's Introduction

Advanced Search Widget

An advanced search widget for CMV (http://cmv.io/). Used together with Attributes Tables widget to query feature layers.

With this widget you can:

  1. search by attributes

  2. search by location

  3. search by address

  4. search by other selected features

alt tag

alt tag alt tag alt tag alt tag

Widget Configuration

Add the widget configuration object to the widgets object in viewer.js.

...
panes: {
  bottom: {
    id: 'sidebarBottom',
    placeAt: 'outer',
    splitter: true,
    collapsible: true,
    region: 'bottom',
    open: true,
    style: 'height:200px;',
    content: '<div id="attributesContainer"></div>'
  }
},
...
widgets: {
    ...
    search: {
      include: true,
      id: 'search',
      type: 'titlePane',
      canFloat: false,
      path: 'gis/dijit/Search',
      title: 'Advanced Search',
      open: false,
      position: 12,
      options: 'config/search'
    },
    attributesTable: {
      include: true,
      id: 'attributesContainer',
      type: 'domNode',
      srcNodeRef: 'attributesContainer',
      path: 'gis/dijit/AttributesTable',
      options: {
        map: true,
        mapClickMode: true,
        // use a tab container for multiple tables or
        // show only a single table
        useTabs: true,
        // used to open the sidebar after a query has completed
        sidebarID: 'sidebarBottom',
        // optional tables to load when the widget is first instantiated
        tables: []
      }
    },
    exportDialog: {
      include: true,
      id: 'export',
      type: 'floating',
      path: 'gis/dijit/Export',
      title: 'Αποθήκευση',
      options: {}
    }
    ...
}

Copy Search, AttributesTable, Export, Search.js, AttributesTable.js and Export.js to folder gis/dijit/ at your CMV installation.

Copy js/config/search.js file to js/config folder at your CMV installation. Edit file to configure proxy_url and GeometryService_url parameters.

Configure your proxy.

cmv_advancedsearch_widget's People

Contributors

vojvod avatar

Watchers

Goran 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.