From 6cd451b4fe0fd28994ad6c5a0f282dc47d2f7142 Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Mon, 15 Oct 2018 16:24:16 +0100 Subject: Stuff for Mapbox 50 --- src/Mapbox/Source.elm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Mapbox/Source.elm') diff --git a/src/Mapbox/Source.elm b/src/Mapbox/Source.elm index f472963..38bb319 100644 --- a/src/Mapbox/Source.elm +++ b/src/Mapbox/Source.elm @@ -17,7 +17,7 @@ module Mapbox.Source exposing (Coords, GeoJSONSource, Id, RasterSource, Scheme(. ### Raster -@docs raster, tileSize, rasterFromUrl, RasterSource, scheme, Scheme +@docs raster, tileSize, rasterFromUrl, RasterSource ### Raster DEM @@ -39,7 +39,7 @@ module Mapbox.Source exposing (Coords, GeoJSONSource, Id, RasterSource, Scheme(. Tiled sources can also take the following attributes: -@docs bounds, minzoom, maxzoom, attribution +@docs bounds, minzoom, maxzoom, attribution, scheme, Scheme ### Working with sources @@ -120,7 +120,7 @@ getId (Source k _) = -} bounds : LngLat -> LngLat -> SourceOption any bounds sw ne = - SourceOption "bounds" (Json.Encode.list Json.Encode.float [ sw.lng, sw.lat, sw.lng, sw.lat ]) + SourceOption "bounds" (Json.Encode.list Json.Encode.float [ sw.lng, sw.lat, ne.lng, ne.lat ]) {-| Minimum zoom level for which tiles are available, as in the TileJSON spec. @@ -210,7 +210,7 @@ generateIds = {-| Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. -} -scheme : Scheme -> SourceOption RasterSource +scheme : Scheme -> SourceOption any scheme s = case s of XYZ -> -- cgit v1.2.3