Git Product home page Git Product logo

activity-map's Introduction

Activity Map

Basics

concept

Vector tiles vs Raster Tiles

Raster tiles are images that are generated on the server and then sent to the client. Vector tiles are rendered on the fly, clientside. Which makes them faster, through WebGL.

Why we still should try a raster version? Vector tiles require OpenGL/WebGL/DirectX which can be an issue on mobile devices. So a raster tile version is good to have.

Possible to host vector and raster tiles yourself?

Yes. In these docs you can find implementation examples for both. link

Leaflet vs Mapbox GL JS

For now Leaflet should be used for raster tiles, because it is not possible yet to serve vector styles to a leaflet vector grid component. And the leaflet-mabox-gl-js library is still experimental.

Mapbox GL JS has no distinction between baselayers and overlay layers. This means that map details like labels and icons and elements like streets and buildings can be modified with JavaScript, just like overlays in earlier mapping libraries. Each layer provides rules about how certain data should be drawn in the browser, and the renderer uses these layers to actually draw the map on the screen.

Styling raster vs vector tiles

Descision

Prefer to go both ways. Make a prototype of each one.

  • Leaflet with hosting remote raster tiles
  • Mapbox GL JS with hosting own vector tiles

Technologies, Frameworks, Libraries

  • react
  • react-map-gl or react-leaflet

Tutorials, Documentation

https://www.mapbox.com/help/#guides-to-getting-started

Implementation

concept

react-leaflet vs react-map-gl

Leaflet

  • doesn’t support vector tiles out of the box, need to use vector-grid plugin
  • vector-grid cannot (yet) handle vector tile GL styles, need to manually integrate all styles from mapbox

Map-GL

  • supports vector tiles
  • can use simple style url for integrating styles works great with openmaptiles (free open source vector tiles provider)

tbc.

activity-map's People

Contributors

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