Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
69 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
examples/website/openstreet-map/package.json → examples/website/map-tile/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "openstreet", | ||
"name": "map-tile", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"scripts": { | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React, {Component} from 'react'; | ||
import {MAPBOX_STYLES} from '../../constants/defaults'; | ||
import {App, INITIAL_VIEW_STATE} from 'website-examples/map-tile/app'; | ||
|
||
export default class LineDemo extends Component { | ||
static get parameters() { | ||
return { | ||
autoHighlight: {displayName: 'Enable autoHighlight', type: 'checkbox', value: true} | ||
}; | ||
} | ||
|
||
static get allowMissingData() { | ||
return true; | ||
} | ||
|
||
static get viewport() { | ||
return INITIAL_VIEW_STATE; | ||
} | ||
|
||
static get mapStyle() { | ||
return MAPBOX_STYLES.DARK; | ||
} | ||
|
||
static renderInfo() { | ||
return ( | ||
<div> | ||
<p> | ||
OpenStreetsMap | ||
<br /> | ||
<a href="https://en.wikipedia.org/wiki/OpenStreetMap"> Wiki </a> | ||
<br /> | ||
<a href="https://wiki.openstreetmap.org/wiki/Tile_servers"> Tile Servers </a> | ||
<br /> | ||
<a href="https://www.openstreetmap.org/"> Explorer </a> | ||
<br /> | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
render() { | ||
// eslint-disable-next-line no-unused-vars | ||
const {params, data, ...otherProps} = this.props; | ||
return <App {...otherProps} autoHighlight={params.autoHighlight.value} />; | ||
} | ||
} |