Rename to Maputnik

This commit is contained in:
lukasmartinelli
2016-09-20 13:51:54 +02:00
parent 8441c562ce
commit adc00138a8
8 changed files with 19 additions and 19 deletions

View File

@@ -28,12 +28,12 @@ export class About extends React.Component {
</NavItem>
</Toolbar>
<Container>
<h3>Mapital Visual Map Editor for Mapbox GL</h3>
<h3>Maputnik Visual Map Editor for Mapbox GL</h3>
<p>
A free and open visual editor for the Mapbox GL styles targeted at developers and map designers. Creating your own custom map is easy with Mapital.
A free and open visual editor for the Mapbox GL styles targeted at developers and map designers. Creating your own custom map is easy with Maputnik.
</p>
<p>
The source code is openly licensed and available on <a href="https://github.com/mapital/editor">github</a>.
The source code is openly licensed and available on <a href="https://github.com/maputnik/editor">GitHub</a>.
</p>
</Container>
</div>

View File

@@ -136,7 +136,7 @@ export class LayerEditor extends React.Component {
borderRight: 0,
borderStyle: "solid",
borderColor: theme.borderColor,
borderLeftColor: this.props.layer.getIn(['metadata', 'mapital:color'])
borderLeftColor: this.props.layer.getIn(['metadata', 'maputnik:color'])
}}>
<Toolbar onClick={this.toggleLayer.bind(this)}>
<NavItem style={{fontWeight: 400}}>

View File

@@ -62,8 +62,8 @@ export function colorizeLayers(layers) {
if(!layer.metadata) {
layer.metadata = {}
}
if(!"mapital:color" in layer.metadata) {
layer.metadata["mapital:color"] = randomColor()
if(!"maputnik:color" in layer.metadata) {
layer.metadata["maputnik:color"] = randomColor()
}
return layer
})

View File

@@ -2,10 +2,10 @@ import { colorizeLayers } from './style.js'
import Immutable from 'immutable'
import style from './style.js'
const storagePrefix = "mapital"
const storagePrefix = "maputnik"
const storageKeys = {
latest: [storagePrefix, 'latest_style'].join(''),
accessToken: [storagePrefix, 'access_token'].join('')
latest: [storagePrefix, 'latest_style'].join(':'),
accessToken: [storagePrefix, 'access_token'].join(':')
}
// Empty style is always used if no style could be restored or fetched