Giter Club home page Giter Club logo

leaflet-clickadd's Introduction

Early demo

  • A working demo can be found here
  • On mobile, tap-and-hold to add a marker

Leaflet click-to-add-marker "app"

A db-powered version of "User submitted leaflet" app, with an admin tool to monitor and manage the markers.

Benefits include ease-of-use for the user end and possibility for it to be automatically added to the map (this is turned off in the demo to avoid people adding inappropriate language).

However, requires a database set up. "User submitted leaflet" circumvents this by having the markers be pulled from a Google spreadsheet (useful for smaller news orgs with only a front end webdev).

Goal is to provide a right-click-to-add-marker app and circumvent the need to type in address, this would allow users to pinpoint locations that may not be address-friendly (such as potholes on roads, they're not exactly easy to mark with an address).

Setting up the DB

  • Set up your MySQL DB as usual
  • Note however that the current code is a single-sign on hardcoded admin account.
  • There's no logout feature either. This might be changed at a later date, but isn't crucial to what my org requires at this point.
  • Add the DB info into temp.php. This info will be the credentials needed to login to the admin page.
  • Login is, by default, located in appname/login.php

Recent changes

  • Added markercluster plugin
  • Prepared markercluster layer for bulk loading of markers
  • Added form, switched to php and added relevant scripts for pushing/pulling from DBs
  • Changed marker default status to "off"
  • Added login page and relevant scripts to post to DB
  • Completed admin tool to delete & edit markers

Current status

Far from being complete. Below is the general to-do-list.

To Do

  • Add auto refresh upon submission
  • Check for submission before adding a marker
  • Photo upload and hosting and presentation
  • Style admin tool
  • Add logout
  • Add user registration

*Add admin tool to avoid trolls

*Work on session authentication and updating db

*Proper CloudMade tiles and API set-up

*Format styling of markercluster layers

*Record markers on either Google Docs spreadsheets or a proper database

*Fire right-click events (currently left-click events)

*Right-click form for details and/or photo upload

leaflet-clickadd's People

Contributors

tjk911 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.