Coder Social home page Coder Social logo

mapdijits24's Introduction

mapdijits is compatible with JSAPI through 2.4.

  1. Install the mapdijits folder under your site root.

  2. Add this property to djConfig:

    modulePaths: { "mapdijits": "./mapdijits" },

    or Add "mapdijits": "./mapdijits" to your existing modulePaths

See http://maps.stlouisco.com/police/index.html and http://maps.stlouisco.com/police/mapdijits/index.html for examples of usage. (In particular, see the script at http://maps.stlouisco.com/police/loader.js)

Widgets: BaseMap: esri.Map as a layout widget implements dijit.layout._LayoutWidget, dijit._Templated Features: Basemap toggle buttons Layer reloading on http errors to the rest endpoint Loading icon while waiting for map load map functions called by dojo.publish map.resize() and map.reposition() called by dojo.layout._LayoutWidget.layout() CloudMadeLayer: CloudMade extension of ArcGIS Tiled Map Service Layer Features: Change layer style on the fly with mapdijits.CloudMadeLayer.setStyle(id/name).refresh() Get and set apikey, style, and tile dimension on the fly Retries with new tile server on tile load error DefinitionsManager: Uses a query task to manage display of graphics and results Features: Passes mouse events between a ResultsPane and GraphicsManager Lazy load of large featuresets Paging of results lists for large featuresets Overideable functions for feature sorting, page sorting, infoWindow templates, and ResultsPane templates Can set definitions on multiple service layers simultaneously to handle scale dependencies GeometryManager: Creates a dijit.Menu that returns from selections a geometry argument that can be passed to queries Features Menus and Submenus available Menu creation from a JSON argument Can provide geometry directly, or use a QueryTask to fetch geometry on demand See munis.js for an example of arguments to the addSubMenu function GraphicsManager: Wrapper for esri.layer.GraphicsLayer that interacts with mapdijits.DefinitionsManager Features: Scale dependent renderers Can open associated InfoWindow by passing in a graphic Maintains an index for use with ResultsPane or DefinitionsManager Works with esri.Map or mapdijits.BaseMap GraphicsManagerOpt: Optimized version of GraphicsManager that uses a unique identifier hash to handle a large number of graphics from a queried featureset Features (in addition to features of GraphicsManager: Uses a hash to keep created graphics in memory from previous queries to a layer High performance for large numbers (1000+) graphics in one layer Return all values in the featureset for a graphics attribute Return all graphics matching a value for an attribute ResultsPane: Layout widget to display a set of results as divs Features: Indexed event bubbling for mouse events on contained divs Scroll to div by dom id Div styling including alternating colors and rounded corners Change styling of contained divs by dom id for mouseover and mouse click events Interacts with mapdijits.DefinitionsManager SearchPane: Layout widget for a header pane with address searching capabilities Features: Can call multiple prioritized locators Updates locator attributes from rest endpoint or passed in arguments Overrideable functions for candidate sorting, projection, and display as text or graphic Can display configurable search help using an associated ResultPane

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.