NOAA-PMEL / las9

This is the home of LAS v9.x
1 stars 0 forks source link

Use tile-based interactive maps in LAS #7

Open noaaroland opened 3 years ago

noaaroland commented 3 years ago

One obvious enhancement to LAS would be the use of an interactive tile-based (Google Maps, Bing Maps, Leaflet, Open Street Maps) map API to display data. This issue is a place to discuss the pros and cons. If we come up with specific ideas we want to try, I'll make separate tickets.

Some things to consider:

  1. Most Map APIs create a separate DOM element for every glyph on the map (and for every info window) at the time the data are loaded. This makes for a huge load on the browser.
  2. Most Maps use mercator projection which is nearly square in the mid-latitudes, but distorts strongly in latitude at the poles.
  3. There is limited capability to color the glyphs based on the data values.

We might want to try making map tiles with data. PyFerret can easily make correctly projected plots which fit the underlying map tiling scheme. A tile can have any number of data types and data sets depicted without increasing the load on the browser beyond the cost of loading a single tile. A filled-contour, a line contour, vector arrows and a trajectory colored by data values could all share the same tile.

A major disadvantage of this approach is the cost of a round trip to the server in order to interrogate the data with a mouse click.

Example with two plot styles (one data parameter) below.

good_c both good_temp

shaunwbell commented 3 years ago

From an end user perspective, a few usefull features of a dynamic map would be:

And a really big request