diff --git a/src/components/Heading.jsx b/src/components/Heading.jsx index b17d9de1..d08411f5 100644 --- a/src/components/Heading.jsx +++ b/src/components/Heading.jsx @@ -1,5 +1,5 @@ import React from 'react' -import { fontSizes } from '../config/scales' +import { fontSizes, margins } from '../config/scales' class Heading extends React.Component { static propTypes = { @@ -10,7 +10,9 @@ class Heading extends React.Component { render() { const headingProps = { style: { + fontWeight: 400, fontSize: fontSizes[this.props.level - 1], + marginBottom: margins[1], ...this.props.style } } diff --git a/src/components/Toolbar.jsx b/src/components/Toolbar.jsx index 2d5715eb..20f902b4 100644 --- a/src/components/Toolbar.jsx +++ b/src/components/Toolbar.jsx @@ -114,6 +114,7 @@ export default class Toolbar extends React.Component { mapStyle={this.props.mapStyle} onStyleChanged={this.props.onStyleChanged} isOpen={this.state.openSourcesModal} + //isOpen={true} toggle={() => this.toggleSources.bind(this)} />
{this.props.title} @@ -36,7 +37,7 @@ class Modal extends React.Component {
{this.props.children}
diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx index 0e7b20e4..f51a303d 100644 --- a/src/components/modals/SettingsModal.jsx +++ b/src/components/modals/SettingsModal.jsx @@ -29,11 +29,7 @@ class SettingsModal extends React.Component { } render() { - const inputProps = { - style: { - backgroundColor: colors.midgray - } - } + const inputProps = { } return
- {this.props.title} +
+ {this.props.title}
+ {this.props.id} +
- #{this.props.id} -
-
-

{this.props.description}

+ + Add +
} @@ -54,11 +61,7 @@ class SourceEditor extends React.Component { } render() { - const inputProps = { - style: { - backgroundColor: colors.midgray - } - } + const inputProps = { } return
@@ -103,12 +106,7 @@ class SourcesModal extends React.Component { /> }) - const inputProps = { - style: { - backgroundColor: colors.midgray - } - } - + const inputProps = { } return Choose Public Source +

Add one of the publicly availble sources to your style.

{tilesetOptions}
diff --git a/src/config/tilesets.json b/src/config/tilesets.json index 1551168e..3eaffdd5 100644 --- a/src/config/tilesets.json +++ b/src/config/tilesets.json @@ -3,8 +3,7 @@ "id": "mapbox-streets", "type": "vector", "url": "mapbox://mapbox.mapbox-streets-v7", - "title": "Mapbox Streets", - "description": "Mapbox Streets provides a vector tileset for complex general-purpose maps." + "title": "Mapbox Streets" }, { "id": "tilezen", @@ -14,21 +13,18 @@ ], "minZoom": 0, "maxZoom": 15, - "title": "Mapzen", - "description": "Mapzen vector tile services" + "title": "Mapzen Vector Tile Service" }, { "id": "openmaptiles", "type": "vector", "url": "https://free.tilehosting.com/data/v3.json?key=25ItXg7aI5wurYDtttD", - "title": "OpenMapTiles", - "description": "A free vector tile schema for general-purpose maps." + "title": "OpenMapTiles CDN" }, { "id": "swissnames-landscape", "type": "geojson", "data": "http://swissnames.lukasmartinelli.ch/data/landscape.geojson", - "title": "Geographic Names of Switzerland", - "description": "GeoJSON example from https://github.com/lukasmartinelli/swissnames" + "title": "Landscape Names GeoJSON" } ] diff --git a/src/index.css b/src/index.css index b21639e9..435d6ed8 100644 --- a/src/index.css +++ b/src/index.css @@ -5,10 +5,6 @@ font-style: normal; } -html { - font-size: 10px -} - .chrome-picker { background-color: #1c1f24 !important; font-family: inherit !important;