Giter Club home page Giter Club logo

jquery.agslegend's Introduction

jQuery AGS Legend

jQuery AGS Legend is a jQuery plugin that will create a TOC type legend for an ArcGIS Server jsapi map object (esri.Map).

Why?

I wanted to write a jQuery plugin and use ArcGIS 10 stuff. So, here I am. Oh, and I needed something to present at the Charlotte ESRI Dev Meetup

What's it Do?

It's life-changing: (if your life is especially boring)

  • Legend symbols for many AGS layer types (hope to get them all at some point)
  • Visiblity control of layers
  • Uses the jQuery Templating plugin
  • Uses Raphael
  • REQUIRES ArcGIS 10 and the latest jsapi api from ESRI.

Quick Start: Example Apps You Can Use

  1. Check out the code from github:

     git clone git://github.com/ruprict/jquery.agsLegend.git
    
  2. Reference it in your HTML page, along with the templating plugin and Raphael.

  3. Copy the script block from jquery.agsLegend.templates.js to the bottom of your HTML file

  4. In your javascript, create an AGS map.

  5. Then you can

    legend = $('#toc').agsLegend({map:map});

where #toc is a unordered list object.

  1. Rock out

Are You Gonna Do Anything Else With It?

I dunno, maybe. There is a lot to be done, like:

  • Support all symbols and layer types
  • I haven't even thought about group layers yet
  • Break up templates.txt into separate files for layer types
  • Clean up template loading, big time
  • Unit tests (I mean, c'mon, man.)

Feel free to clone it and add stuff and issue a pull request.

jquery.agslegend's People

Contributors

ruprict avatar

Stargazers

Erik Lindblom avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

baens

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.