systemapic / systemapic.js Goto Github PK
View Code? Open in Web Editor NEWSystemapic Javascript API
Home Page: https://systemapic.com
Systemapic Javascript API
Home Page: https://systemapic.com
Make sure that all the scrollers are hidden on PC – they look ugly.
List of restricted endpoints:
var restricted_endpoints = [
'api',
'undefined',
'forgot',
'register',
'invite',
'logout',
'login',
'privacy-policy', // move to /api/
'reset', // move to api
'pixels', // move to api
'oauth', // move to api
]
Feature request from Frano: let users that are only READers be allowed to change background layer.
To see what i mean, load a file with points, and click save style in styler. You will then see that the size of the dots change.
Input fields not working (not possible to type in them)
Overlapping popup/legend
Searcher goes off screen
Buttons are not leveled. Also, try to use font where possible (not sprite). Reason for this is that sprite gets lowres on retina. If we cannot find icons in awesome fonts, we can make our own systemapic icon font kit from vector drawn icons. Not very hard to do.
Enable complete collapse of legend on phone - it takes up almost the whole screen - on iPhone 6+!!!
Sometimes the page crashes on iphone. Too many requests???
One legend looks off.
When you have a lot of data, all the pop-ups appear on top of each other – which is very annoying.
In general the whole pop-up is a bit messy, and needs some work:
Both Google Analytics and Slack notifications.
closed
Need to improve how detecting timeseries for different types of data.
It's getting quite annoying that I have to spend lots of time styling layers over and over again.
It would be very nice to be able to have my data styles, so that i can browse through my pre designed layers when creating a project.
I discussed this with Knut, and i think the best option is to have a list of active stylesheets collected from the projects where this data is loaded as a layer. You may also want to choose one master stylesheet, so that you have a pre designed "template style" that you can work from. This is also interesting when sharing a dataset.
Styler
Legend
The "magnifying glass" icon is outside the box on the right... This is a bug introduced yesterday. @IgorZiegler Can you have a look?
Nice to have options to not have a background layer, so we should add an option for that.
Timeseries detection is used many places, so would be nice to have one, tight timeseries detector available on app.Tools.isTimeseries(data)
.
Tom Rune Lauknes [13:26]
@knutole: Er det forresten en bug når man oppretter et nytt prosjekt. Det er litt irriterende at bounds ikke blir nullstilt.
Currently, one of the main bottlenecks for loading tiles is the browser-limitations of 6 parallel requests per domain, and 24 parallel requests in total.
Both grid
tiles and raster tiles
(as well as vector tiles
) could be moved to websockets and loaded in full parallel.
We should write this as a Leaflet extension.
first problem: Style->select layer -> no tiles, console contains TypeError: Wu.Legend is not a constructor
this._legendStyler = new Wu.Legend(legendOptions);
that's line 98 of chrome.settings.styler.js
this._legendStyler = new Wu.Legend(legendOptions);
if I click on the error shown in console, firebog takes me to the "Script" tab, showing the code
Uncaught TypeError: Wu.Legend is not a functionListPicker._handleMouseUp @ about:blank:504
Sometimes (quite often), the bounds does not refresh when I'm changing projects, meaning that I'm not allowed to go to the area of interest in the project. I have to set and clear bounds to refresh properly.
We have talked about merging files (that you add one file to another in PostGIS), but I also think it could be interesting to load a set of data as one layer (without merging the data). That way we can reduce requests dramatically, and you can build layers based on files. This could be practical i.e. for downloaded data at different WFS's, that often only gives you small sections per download. It might also be practical to do it this way (and not to merge files directly) to keep the PostGIS tables small.
Does this depend on ::pseudo feature?
It would be nice to develop a few sets of default styling presets that can be tweaked (not unlike CartoDB's) – this is particularly interesting for polygons that often appear as one large flat polygon when it in reality is many smaller polygons that's next to each other.
I also think that a color range based on the GID column and a random color could be good as a default style sheet for polygons. It would make the data appear more "finished" without having to do anything.
Need a pretty dropdown - not the default ugly <select>
dropdown. Should be created from scratch as Wu.Dropdown
class, and take content as options param on creation.
Wu.Dropdown
classDropdown should be created thus:
var pretty_dropdown = new Wu.Dropdown({
content : ['layer1', 'layer2'],
fn : this._dropdownSelected // function runs when dropdown item selected
})
New file can be put in /js/src/ext/dropdown.js
, and built like this:
Wu.Dropdown = Wu.Class.extend({
// this function will run automatically on new Wu.Dropdown()
initialize : function (options) {
Wu.setOptions(this, options); // will put options in this.options
},
build : function () {
var content = this.options.content;
},
});
A few bugs on legend:
When uploading new layer, the legend is not created immediately. This is normal.
When mousescroll-zooming on chart, something is buggy - at least some of the time. Scrolls too fast. Need to look at the algorithm for scrolling.
The lat/long mouseposition divs appears on the top of the window on Chrome on PC, but not on MAC. Make sure it's at the bottom, next to description box.
jeg har gjort en lit feil på figuren lengst nede til høyere
i steden for ordet "satellittkurs" så sku det vært "sikteretning"
og en annen justering:
under figuren målevinkel, kunne dere lagt på en "arrow" mot bakken slik at man skjønner at målingen går den veien
Continues from systemapic/pile#13
After clicking on "Update Style" all my data tiles disappear and no further tiles are loaded, even on navigating the map.
It might be related, I see a POST going to: https://localhost/api/error/log -- the payload is an absurd JSON with an array with a letter of the message in each element.
"{\"message\":\"Error: No value provided for variable {layerUuid}\",\"file\":\"https://localhost/js/lib
/leaflet.js/leaflet-0.7.3-src.js\",\"line\":141,\"user\":\"Sandro Santilli\",\"stack\":\"L.Util.template
/<@https://localhost/js/lib/leaflet.js/leaflet-0.7.3-src.js:141:11\\nL.Util.template@https://localhost
/js/lib/leaflet.js/leaflet-0.7.3-src.js:138:1\\nL.TileLayer<.getTileUrl@https://localhost/js/lib/leaflet
.js/leaflet-0.7.3-src.js:2898:1\\nL.TileLayer<._loadTile@https://localhost/js/lib/leaflet.js/leaflet-0
.7.3-src.js:2972:18\\nL.TileLayer<._addTile@https://localhost/js/lib/leaflet.js/leaflet-0.7.3-src.js
:2866:3\\nL.TileLayer<._addTilesFromCenterOut@https://localhost/js/lib/leaflet.js/leaflet-0.7.3-src.js
:2773:4\\nL.TileLayer<._update@https://localhost/js/lib/leaflet.js/leaflet-0.7.3-src.js:2730:3\\nL.TileLayer
<.redraw@https://localhost/js/lib/leaflet.js/leaflet-0.7.3-src.js:2608:4\\n.setOptions@https://localhost
/js/src/models/model.layers.js:1408:3\\nWu.PostGISLayer<._refreshLayer@https://localhost/js/src/models
/model.layers.js:733:1\\nWu.PostGISLayer<.updateStyle@https://localhost/js/src/models/model.layers.js
:699:3\\nWu.Styler<._updateLayer/<@https://localhost/js/src/chrome/settings/styler.js:1170:4\\nWu.Api
<.post/<@https://localhost/js/src/core/api.js:284:12\\nWu.Api<._post/http.onreadystatechange@https:/
/localhost/js/src/core/api.js:302:14\\n\",\"project\":\"test\"}"
Implementing vector tiles:
See systemapic/wu#330 and systemapic/pile#5
All Wu.post, Wu.postcb, Wu.send, Wu.save
calls etc should be moved into /src/js/core/api.js
. See here and here for types of calls (and search the repo for Wu.post, Wu.Util.post
etc).
The goal is to have a single file with the full list of API endpoints, so it's easy to mirror and maintain with the server-side routes.js.
Examples of calls to be moved:
Example of already refactored call:
think this is fixed, but px
still had issue. leaving this here for reminder.
Currently, timeseries columns are being filtered out both on meta and in chart.
moved here from systemapic/wu#374
I'm continuously uploading and deleting datasets, but everytime I delete the only dataset I have to reload the page manually because the browser (firefox) sits there on the same page, letting me click "DELETE" again and again...
Moreover, clicking on the X widget to close the options popup still shows the dataset, as if it wasn't deleted (thus the need to reload the page)
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.