Code Monkey home page Code Monkey logo

mapbox-gl-styles's Introduction

Travis

This repository contains prebuilt Mapbox GL styles for use in Mapbox GL JS or the Mapbox Mobile SDKs and as a starting point for custom maps built with Mapbox Studio.

Versioning

A breaking release (x.0.0) is one that

  • changes the style's version field
  • removes or renames an icon
  • removes or changes a glyphs URL
  • removes or changes a source
  • removes or renames a style layer
  • changes the semantic meaning of a layer

A feature release (0.x.0) has no breaking-release changes and

  • makes any non-breaking change to styles
  • makes any non-breaking change to sprites
  • adds a new style
  • adds a new icon

A fix release (0.0.x) is one that has no feature-release changes and

  • fixes an invalid stylesheet or bad test

Styles

The following styles are provided:

Basic (basic-v8)

Simple and flexible starting template.

Bright (bright-v8)

Template for complex custom basemaps.

Streets (streets-v8)

A complete basemap, perfect for incorporating your own data.

Light (light-v8)

Subtle light backdrop for data visualizations.

Dark (dark-v8)

Subtle dark backdrop for data visualizations.

Emerald (emerald-v8)

A versatile style, with emphasis on road networks and public transit.

Satellite (satellite-v8)

A beautiful global satellite and aerial imagery layer.

Satellite Streets (satellite-hybrid-v8)

Global satellite and aerial imagery with unobtrusive labels.

Empty (empty-v8)

A blank slate. Build your own map from the ground up.

Standard icons

List of standard icons available in each style, except Emerald:

List of Emerald's standard icons available:

When you use an icon in a style, you must specify the icon's size as a suffix to its name. Supported size suffixes are -11 and -15, representing an 11px and a 15px square respectively. For example, a 15px airfield icon would be specified as "icon-image": "airfield-15".

Usage

The preferred way to use these styles in Mapbox GL JS or the Mapbox Mobile SDKs is via a mapbox:// URL.

JS

var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v8'
});

iOS

mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds
                                   styleURL:[NSURL URLWithString:@"mapbox://styles/mapbox/satellite-v8"]];

Android

<com.mapbox.mapboxsdk.views.MapView
    android:id="@+id/mapView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:style_url="mapbox://styles/mapbox/streets-v8"
 />
MapView mMapView = new MapView(context, "Access Token");
mMapView.setStyleUrl(Style.MAPBOX_STREETS);

mapbox-gl-styles's People

Contributors

1ec5 avatar ajashton avatar amyleew avatar andreasviglakis avatar ansis avatar artemp avatar bleege avatar brunoabinader avatar edenh avatar friedbunny avatar incanus avatar jfirebaugh avatar karenzshea avatar kkaefer avatar lbud avatar mourner avatar peterqliu avatar ryantroyford avatar samanpwbb avatar tmcw avatar vicapow avatar xrwang avatar yhahn avatar

Watchers

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