Coder Social home page Coder Social logo

vildar / raster-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blueskyanalytics/raster-playground

0.0 0.0 0.0 8.32 MB

Raster Manipulation - Clip, colorize & overlay!

Home Page: https://play.blueskyhq.in

License: GNU General Public License v3.0

HTML 44.73% JavaScript 47.07% Sass 8.20%

raster-playground's Introduction

Netlify Status

Raster Playground

A color playground for raster maps.

Why we made raster playground?

Raster manipulation (colorisation & clipping of tiles) is computationally heavy operation & not very feasible on the browser (frontend), thus we moved it to backend & then distributed by the CDN.

But this raised another challenge, how do we settle on the color schemes with backend, since the whole pipeline had to be rerun & old tiles purged? Earlier, we could just change the value & reload browser!

This utility helps simulate the color schemes quickly, along with clipping & map-styles you want to apply.

Features

  • Raster color manipulation
  • All state in url
  • Monochromatic tiles URL as an input
  • Clip as shape (for better visualisation)
    • Shape file through Url
    • Shape file through uploads (from local system)
    • Format available - TopoJson
    • More formats required (Geojson etc)
    • Auto fit to shape file location (on file load)
  • Color selector
    • Add colors
    • Remove colors
    • Color ordering
    • Alpha color (0 - transparent)
    • Copy color in different format - HEX, RGBA, HSLA (JSON)
    • Download color format for ASE, GIMP/Inscape color scheme
  • Mobile version
  • Search bar to search places
  • Go to current location
  • Dark Mode

Installation

clone repo and install using -

npm install

Run on local

npm run start

Build project

npm run build

How to use

  • Use chrome for better usability (Because initial stage of development)
  • Add monochromatic tiles URL (XYZ format) eg - https://your-tiles-url/{z}/{x}/{-y}.png
  • Add shape file URL (TopoJSON format)
  • Add some colour pallet to visualise colors on raster map
  • Add alpha (opacity) value (between 0-1)
  • If you get the desired visualisation, you can copy RGBA (JSON) and use it to generate colour tiles from the backend or send the link to your colleague/friends to verify.

How to contribute

Read contribution here

raster-playground's People

Contributors

srijitcoder avatar vildar avatar kshitijpurwar avatar sriharshadevulapalli 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.