aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Styles/Satellite.elm
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2019-02-14 15:23:49 +0000
committerGitHub <noreply@github.com>2019-02-14 15:23:49 +0000
commit6bd5f8ccbd8c44c3311ef36b0e2de9ede4fa71ed (patch)
treede40a36d34cb734c2765a705506436f8b38e28a9 /examples/Styles/Satellite.elm
parentf0c36a3d49fad46e0fb6cafeb7a021dd5d775993 (diff)
New Style Generator (#8)
Diffstat (limited to 'examples/Styles/Satellite.elm')
-rw-r--r--examples/Styles/Satellite.elm24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/Styles/Satellite.elm b/examples/Styles/Satellite.elm
new file mode 100644
index 0000000..77a7f06
--- /dev/null
+++ b/examples/Styles/Satellite.elm
@@ -0,0 +1,24 @@
+module Styles.Satellite exposing (style)
+
+import Mapbox.Expression as E
+import Mapbox.Layer as Layer
+import Mapbox.Source as Source
+import Mapbox.Style as Style exposing (Style(..))
+
+
+style : Style
+style =
+ Style
+ { transition = Style.defaultTransition
+ , light = Style.defaultLight
+ , layers =
+ [ Layer.background "background" [ Layer.backgroundColor (E.rgba 4 7 14 1) ]
+ , Layer.raster "satellite" "mapbox" [ Layer.sourceLayer "mapbox_satellite_full" ]
+ ]
+ , sources = [ Source.rasterFromUrl "mapbox" "mapbox://mapbox.satellite" ]
+ , misc =
+ [ Style.sprite "mapbox://sprites/mapbox/satellite-v9"
+ , Style.glyphs "mapbox://fonts/mapbox/{fontstack}/{range}.pbf"
+ , Style.name "Satellite"
+ ]
+ }