mirror of
https://github.com/maputnik/editor.git
synced 2026-03-24 11:10:19 +00:00
Rename to Maputnik
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}}>
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user