Comments (13)
Commit #18853976343593548f33d7eb7b1863fd5b24dcd8 in #51 makes some changes to the way in which charts are displayed.
They are ordered in the chart list for selection by name but are ordered for rendering on the map by scale. Will need to confirm that the scale ordering (descending - largest scale rendered first) produces the the desired z-index ordering on the map display.
from freeboard-sk.
Manual ordering might be useful as well as per layer opacity. Lots of GIS systems have this. Overkill maybe?
from freeboard-sk.
I had this in early freeboards. There is an ol layer widget that lets you hide layers. It is handy when you want to declutter, also when you want to get rid of a route or track.
Not a big thing tho.
from freeboard-sk.
In the chart list the chart is listed by name and description.
eg from this entry:
"urn:mrn:signalk:uuid:14c2710b-3399-4a5d-9fba-aebb38c86483": {
"identifier": "NZ29",
"format": "png",
"description": "Stewart Island/Rakiura to Campbell Island/Motu Ihupuku",
"scale": 250000,
"type": "tilelayer",
"$source": "unknown",
"maxzoom": 11,
"name": "Stewart Island/Rakiura to Campbell Island/Motu Ihupuku",
"bounds": [
167.1332677218747,
-55.99930283371544,
176.53212338820407,
-46.89919713462886
],
It would be better to include the identifier, which is typically used in external cruising notes.
eg
Currently:
Heading: Stewart Island/Rakiura to Campbell Island/Motu Ihupuku
Better:
Heading: NZ29 - Stewart Island/Rakiura to Campbell Island/Motu Ihupuku
This makes it easier to display chart NZ29 when referenced from a chart catalogue or pilot notes.
from freeboard-sk.
The rendering based on scale works properly. It assumes the scale is set on the chart resource, some sensible default would be good, eg just above base chart (openstreetmap etc).
Making layers visible or not by the chart panel works well enough not to need a separate visibility widget
from freeboard-sk.
That's good to hear... I didn't have access to overlapping maps to test.
I'm not sure what a sensible default for chart scale might be (250000?) but can apply one easily enough.
I will make the change to the chart list heading as you outlined above also.
from freeboard-sk.
"Unselect All" would be nice. I have a long list of charts (all NZ charts) andscrolling down to unselect is tedious. "Select all" is not useful to me but might be good to add
from freeboard-sk.
It's on Routes and Waypoints so I will add it to Charts also... it makes sense to be consistent.
- Charts now has a
Select / de-select All
check box - A default scale of 250000 is applied to charts that do not have a
scale
value - <Identifier - name> is now used in the chart list
from freeboard-sk.
You can see the effect here. The big blurry text is top of south Island, Next is Approach to Nelson, detail is Nelson harbour. The smaller scale charts show as you zoom in, and disappear as you zoom out, so no need to switch charts manually :-)
from freeboard-sk.
for default scale there are really 2 options.
- Simplest - add it immediately above base map, eg z+1, maybe pop a warning?
- Use bounds to calculate scale and apply...hows your geo maths? :-)
from freeboard-sk.
-
If I make the default scale large enough it will end up at the bottom of the stack, the NOAA MBTILES I have been using to test have a reported scale (according to the charts plugin) of 250000.
So a number of >250000 would be placed below these for example. -
Not great.... Would it be reasonable to expect that given charts are served by some kind of TMS that a scale would be part of a valid dataset?
from freeboard-sk.
Most TMS servers would report scale, but I was thinking of drone photos :-) eg send up the drone (at low tide), snapshot the estuary or bar entrance, overlay on chartplotter! But then you would probably have set a scale along with bounds anyway, so not really a problem.
Formula for scale is https://stackoverflow.com/questions/29175701/calculating-scale-of-an-image, assumes bounds and dpi is known
Also found "Typical nautical chart scales range from 1:2,000 (sometimes referred to as “Berthing-scale” or a “Berthing chart”) to 1:10,000,000 (“Planning-scale”)." So maybe set as 10,000,001 ?
from freeboard-sk.
@rob42 I have applied a default scale to any chart that does not report a scale in 1.0.0-0 pre-release on npmjs.com.
Can this issue be closed?
from freeboard-sk.
Related Issues (20)
- Little space on a phone with route bar HOT 12
- Feature Request: Create route from waypoints HOT 2
- Feature Request: Auto Login / Remember me HOT 7
- Unknown wind shown as 0 HOT 1
- wind next legs HOT 3
- Overlap between mbtiles files. HOT 12
- Blank screen between mbtiles files when zooming in or out HOT 5
- heading. HOT 11
- delete menu. HOT 2
- Alarm Operation HOT 5
- Autopilot v2 API alignment
- Remove built-in PyPilot connectivity.
- Setting dialog options menu overflow HOT 1
- Measure, distance and angles HOT 1
- enhancement of waypoints HOT 4
- Meteo context pop-up title not updated HOT 1
- Make welcome screen skippable via URL params HOT 4
- show laylines to waypoint HOT 17
- Show windbarbs HOT 2
- show kip steering widget in freeboard.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeboard-sk.