go-spatial / fresco Goto Github PK
View Code? Open in Web Editor NEWAn open source vector tile style editor
Home Page: https://fresco.go-spatial.org
License: Apache License 2.0
An open source vector tile style editor
Home Page: https://fresco.go-spatial.org
License: Apache License 2.0
This relates to #29
Take a look at: https://www.mapbox.com/mapbox-gl-js/api/#map#showtileboundaries
We need functionality to remove a style from the styles page.
Currently there is no way to jump to locations. This makes it difficult to debug certain areas as you have to zoom directly to them. Would be helpful to have location information manipulatable via the address bar.
Idea: add functionality for the user to switch between testing locations easily. In ArcMap they're called bookmarks. The user zooms/pans to a location, presses the bookmark button, and now that location is saved so that you can switch there quickly. In maputnik I would do this by keeping a list of URL's w/ the right lat/lon and zoom levels in a separate text doc.
Functionality to remove a style from the initial styles selector page.
Changing an id causes fresco to disappear, leaving just the map background color. Clicking the browser's back arrow, then refreshing the page will make fresco reappear. (The id change is saved.)
I created two layers using the same style and data source, but a different id. When you do this the layer is not rendered on the map.
I'm not sure why someone would want two of the same layers on purpose, but at least an error should show up.
When you add a new layer it doesn't prompt for the source, so when you click Add or just press enter the whole dialog disappears but a red dot appears over the layer button in the menu. If you re-open the layer dialog you can then see the newly added layer in the layer list and also see that the error refers to no source being set.
Add functionality to turn all layers on or off at once.
when using the eye icon to toggle layer visibility on the layer list, the tiles are forced to reload. Should be able to diff the style to change the view without reloading the tiles.
Add a way to duplicate a layer along with its styling.
This will break our current github pages deployment. We will have to use another service like Netlify to host. This issue would also solve #29
Currently errors on adding new sources (i.e. 404) are not reported to the user.
Need a tasteful way of showing feature properties in the map inspection
Now that we're using netlify for hosting the gh-pages branch should be purged and the GH page disabled.
When creating a new layer, you have to manually add a paint: {}
property/object in order to prevent app from crashing.
If not, you will receive the following error:
Uncaught TypeError: Cannot read property 'keySeq' of undefined
at t.value (VlayerGroupPaint.jsx:57)
at u (react-dom.production.min.js:130)
at beginWork (react-dom.production.min.js:133)
at i (react-dom.production.min.js:161)
at a (react-dom.production.min.js:161)
at s (react-dom.production.min.js:162)
at x (react-dom.production.min.js:169)
at _ (react-dom.production.min.js:168)
at batchedUpdates (react-dom.production.min.js:171)
at Q (react-dom.production.min.js:54)
It would be great to have the ability to drag and drop a json file onto the styles page as an alternative way to add a style to fresco.
If you press download, the dialog to save the json file comes up. If you don't actually save the file or do anything with the dialog, and then you press the left arrow in fresco to go back to the styles page, the save dialog stays there (I thought it should probably close on its own).
CodeMirror allows for code hinting via an add on. This would help speed up writing styles in the JSON editor.
For tegola to use fresco as the default viewer it would be ideal if a default TileJSON endpoint could be provided that fresco would init with. I'm not sure what the best strategy is but we could possibly write a URL to a var in the index.html file.
If you use a mapbox source you need to supply an API token. You can use the attached style to see the error.
scoutred-satellite.json.zip
Would be helpful to be able to undo styling changes when testing colors, zoom levels, etc...
Would be great to see the current zoom level when interacting with the map.
I tried opening a style I was working on in icognito mode and the UI breaks. For example: https://justenpalmer.github.io/fresco/#/style/ciwf4zbsv007y2pmt2rspc1dc/layer/transit-lines
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.