Skip to content

Commit ee65f3d

Browse files
authored
Merge pull request #85 from go-spatial/dev
Refactor and major UI updates
2 parents 515afe3 + 83b47aa commit ee65f3d

File tree

326 files changed

+23270
-37301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+23270
-37301
lines changed

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
# fresco
22

3-
Fresco is an open source [Mapbox Vector Tile Style](https://docs.mapbox.com/mapbox-gl-js/style-spec) editor that allows cartographers to craft stylesheets for use with [Mapbox GL](https://docs.mapbox.com/mapbox-gl-js/api/) maps. Unlike other style editors, Fresco does not attempt to hide the complexity of Mapbox GL Styles but rather exposes an interactive JSON code editor to allow for maximum control and flexibility. This allows the user to implement more complex styles concepts like data driven styles with [expressions](https://docs.mapbox.com/help/tutorials/mapbox-gl-js-expressions/). When using Fresco, it may be helpful to have the [Mapbox Style Spec](https://docs.mapbox.com/mapbox-gl-js/style-spec/) available as a reference.
3+
[![Netlify Status](https://api.netlify.com/api/v1/badges/edab76b2-0437-4965-9d9c-6dae8de430ee/deploy-status)](https://app.netlify.com/sites/fresco/deploys)
44

5-
Styles created and modified with Fresco are saved to the browser's local storage and are auto-saved on changes.
5+
### For Cartography Professionals and Amateur Map Makers Alike
6+
7+
Fresco is an open source [Mapbox Vector Tile Style](https://docs.mapbox.com/mapbox-gl-js/style-spec) editor that allows cartographers to craft stylesheets for use with [Mapbox GL](https://docs.mapbox.com/mapbox-gl-js/api/) maps. Unlike other style editors, Fresco does not attempt to hide the complexity of Mapbox GL Styles - but rather exposes and surfaces it for maximum control and flexibility. This allows the user to implement rich, interactive styles utilizing data driven properties with [expressions](https://docs.mapbox.com/help/tutorials/mapbox-gl-js-expressions/).
8+
9+
When using Fresco, it may be helpful to have the [Mapbox Style Spec](https://docs.mapbox.com/mapbox-gl-js/style-spec/) available as a reference.
10+
11+
Fresco runs in the browser and styles created and modified with Fresco are saved to the browser's local storage and are synced on changes. Be sure to download styles to your computer as a backup. Remote style storage and collaboration tools are coming soon.
612

713
Give it a try: [https://fresco.gospatial.org/](https://fresco.gospatial.org/)
814

915
![map editing screen shot](/docs/img/osm-screenshot.png)
1016

1117
## Features
1218

13-
- Interactive JSON code editor.
14-
- Style editor for Mapbox GL styles.
15-
- Mapbox GL layer style expression editor.
16-
- Auto save on changes.
17-
- Styles persisted to local storage (in the browser).
18-
- Mapbox GL style error parser. Displays the error at the error location in the style.
19-
- Integrated Mapbox GL style spec attributes (info on style fields).
20-
- Custom domain header configurations. Useful for domains which require `Authorization` headers.
19+
- Rich map interaction style editor for use with Mapbox GL styles
20+
- Editor mode for quick changes and at a glance comprehension
21+
- Interactive JSON code editor for maximum control
22+
- Feature inspection and state setting
23+
- Works in our out of the browser - Fresco is available as a [downloadable application](https://github.com/go-spatial/fresco/releases)
24+
- Auto save on style changes
25+
- Styles persisted to local storage (in the browser)
26+
- Mapbox GL style error parser - displays the error at the line location in the style
27+
- Integrated Mapbox GL style spec attributes (info on style fields)
28+
- Custom domain header configurations - useful for domains which require `Authorization` headers
29+
- Open and free for everyone [license](https://github.com/go-spatial/fresco/blob/master/LICENSE)
2130

2231
## Usage
2332

docs/img/osm-screenshot.png

-857 KB
Loading

package-lock.json

Lines changed: 9894 additions & 7969 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
{
2-
"name": "fresco-app",
2+
"name": "fresco-new",
33
"version": "0.1.0",
44
"private": true,
5-
"homepage": "/",
65
"dependencies": {
7-
"axios": "^0.18.0",
8-
"codemirror": "^5.40.2",
9-
"flow-bin": "^0.69.0",
10-
"immutable": "^3.8.2",
11-
"mapbox-gl": "^1.1.0",
12-
"randomatic": "^3.1.0",
13-
"react": "^16.5.2",
14-
"react-dom": "^16.5.2",
15-
"react-scripts": "1.1.4"
6+
"@mapbox/mapbox-gl-style-spec": "^13.13.1",
7+
"@testing-library/jest-dom": "^4.2.4",
8+
"@testing-library/react": "^9.3.2",
9+
"@testing-library/user-event": "^7.1.2",
10+
"axios": "^0.19.2",
11+
"bootstrap": "^4.4.1",
12+
"codemirror": "^5.53.2",
13+
"immutable": "^4.0.0-rc.12",
14+
"js-file-download": "^0.4.11",
15+
"jshint": "^2.11.0",
16+
"mapbox-gl": "^1.9.1",
17+
"react": "^16.13.1",
18+
"react-beautiful-dnd": "^13.0.0",
19+
"react-dom": "^16.13.1",
20+
"react-redux": "^7.2.0",
21+
"react-router": "^5.1.2",
22+
"react-router-dom": "^5.1.2",
23+
"react-scripts": "3.4.1",
24+
"redux": "^4.0.5"
1625
},
1726
"scripts": {
1827
"start": "react-scripts start",
1928
"build": "react-scripts build",
20-
"test": "react-scripts test --env=jsdom",
21-
"eject": "react-scripts eject",
22-
"flow": "flow",
23-
"deploy": "gh-pages -d build"
29+
"test": "react-scripts test",
30+
"eject": "react-scripts eject"
2431
},
25-
"devDependencies": {
26-
"babel-preset-flow": "^6.23.0",
27-
"bootstrap": "^4.1.3",
28-
"gh-pages": "^1.1.0",
29-
"js-file-download": "^0.4.4",
30-
"jshint": "^2.9.6",
31-
"jsonlint-lines-primitives": "^1.6.0",
32-
"mapbox-gl-inspect": "^1.3.1",
33-
"react-beautiful-dnd": "^7.1.3",
34-
"react-color": "^2.14.1",
35-
"react-redux": "^5.0.7",
36-
"react-router": "^4.2.0",
37-
"react-router-dom": "^4.2.2",
38-
"redux": "^3.7.2",
39-
"redux-logger": "^3.0.6",
40-
"redux-thunk": "^2.2.0",
41-
"sort-object": "^3.0.2"
32+
"eslintConfig": {
33+
"extends": "react-app"
34+
},
35+
"browserslist": {
36+
"production": [
37+
">0.2%",
38+
"not dead",
39+
"not op_mini all"
40+
],
41+
"development": [
42+
"last 1 chrome version",
43+
"last 1 firefox version",
44+
"last 1 safari version"
45+
]
4246
}
4347
}

public/img/icon.png

494 Bytes
Loading

public/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
99
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
1010

11-
<link rel="stylesheet" href="%PUBLIC_URL%/vendor/material-design/icons.css"/>
12-
<link rel="stylesheet" href="%PUBLIC_URL%/vendor/bootstrap-4.0.0/bootstrap.css"/>
13-
14-
<script src="%PUBLIC_URL%/vendor/jquery-3.2.1/jquery.slim.min.js"></script>
15-
<script src="%PUBLIC_URL%/vendor/popper-1.12.29/popper.js"></script>
16-
<script src="%PUBLIC_URL%/vendor/bootstrap-4.0.0/bootstrap.js"></script>
11+
<script src="https://kit.fontawesome.com/1435224312.js" crossorigin="anonymous"></script>
1712

1813
<title>Fresco</title>
1914
</head>

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

public/vendor/bootstrap-4.0.0/bootstrap.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/vendor/bootstrap-4.0.0/bootstrap.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/vendor/jquery-3.2.1/jquery.slim.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.
Binary file not shown.

public/vendor/material-design/icons.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

public/vendor/popper-1.12.29/popper.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)