From 2618798a7ea6c3fc7d084760980c54a189d9117e Mon Sep 17 00:00:00 2001 From: Cristine Guadelupe Date: Thu, 17 Aug 2023 16:32:16 +0700 Subject: [PATCH] Update Maplibre links (#36) --- README.md | 2 +- lib/maplibre.ex | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 96d13c8..e0f9402 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # MapLibre Elixir bindings to [MapLibre Style -Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/). +Specification](https://maplibre.org/maplibre-gl-js/docs/style-spec/). ## Installation diff --git a/lib/maplibre.ex b/lib/maplibre.ex index 73d8007..475886a 100644 --- a/lib/maplibre.ex +++ b/lib/maplibre.ex @@ -1,13 +1,13 @@ defmodule MapLibre do @moduledoc """ Elixir bindings to [MapLibre Style - Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/). + Specification](https://maplibre.org/maplibre-gl-js/docs/style-spec/). A MapLibre style is a document that defines the visual appearance of a map: what data to draw, the order to draw it in, and how to style the data when drawing it. A style document is a JSON object with specific root level and nested properties. To learn more about the style specification and its properties, please see the - [documentation](https://maplibre.org/maplibre-gl-js-docs/style-spec/) + [documentation](https://maplibre.org/maplibre-gl-js/docs/style-spec/) ## Composing maps @@ -22,7 +22,7 @@ defmodule MapLibre do # Add sources to make their data available |> Ml.add_source("rwanda-provinces", type: :geojson, - data: "https://maplibre.org/maplibre-gl-js-docs/assets/rwanda-provinces.geojson" + data: "https://maplibre.org/maplibre-gl-js/docs/assets/rwanda-provinces.geojson" ) # Add layers and refer them to sources to define their visual representation and make them visible @@ -36,7 +36,7 @@ defmodule MapLibre do Expressions are extremely powerful and useful to render complex data. To use them just ensure that you pass valid expressions following the rules and syntax of the [official - documentation](https://maplibre.org/maplibre-gl-js-docs/style-spec/expressions/) + documentation](https://maplibre.org/maplibre-gl-js/docs/style-spec/expressions/) ## Options @@ -98,7 +98,7 @@ defmodule MapLibre do `:default`, `:street` and `:terrain`. To manipulate any other [style root - properties](https://maplibre.org/maplibre-gl-js-docs/style-spec/root/), use the + properties](https://maplibre.org/maplibre-gl-js/docs/style-spec/root/), use the corresponding functions ## Examples @@ -110,7 +110,7 @@ defmodule MapLibre do ) |> ... - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/) for more details. """ @spec new(keyword()) :: t() def new(opts \\ []) do @@ -137,7 +137,7 @@ defmodule MapLibre do Returns the underlying MapLibre specification. The result is a nested Elixir data structure that serializes to MapLibre style JSON specification. - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/) for more details. """ @spec to_spec(t()) :: spec() def to_spec(ml) do @@ -155,10 +155,10 @@ defmodule MapLibre do Ml.new() |> Ml.add_source("rwanda-provinces", type: :geojson, - data: "https://maplibre.org/maplibre-gl-js-docs/assets/rwanda-provinces.geojson" + data: "https://maplibre.org/maplibre-gl-js/docs/assets/rwanda-provinces.geojson" ) - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/sources/) for more details. """ @spec add_source(t(), String.t(), keyword()) :: t() def add_source(ml, source, opts) do @@ -393,7 +393,7 @@ defmodule MapLibre do paint: [fill_color: "#4A9661"] ) - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/layers/) for more details. """ @spec add_layer(t(), keyword()) :: t() def add_layer(ml, opts) do @@ -530,7 +530,7 @@ defmodule MapLibre do and p indicates the height of the light (from 0°, directly above, to 180°, directly below). Default: {1.15, 210, 30} - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/light/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/light/) for more details. """ @spec light(t(), keyword()) :: t() def light(ml, opts) do @@ -545,7 +545,7 @@ defmodule MapLibre do `:background_pattern`, `:fill_pattern`, `:line_pattern`,`:fill_extrusion_pattern` and `:icon_image` style properties. - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/sprite/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/sprite/) for more details. """ @spec sprite(t(), String.t()) :: t() def sprite(ml, sprite) when is_binary(sprite) do @@ -558,7 +558,7 @@ defmodule MapLibre do A style's glyphs property provides a URL template for loading signed-distance-field glyph sets in PBF format. - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/glyphs/) for more details. + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/glyphs/) for more details. """ @spec glyphs(t(), String.t()) :: t() def glyphs(ml, glyphs) when is_binary(glyphs) do @@ -572,7 +572,7 @@ defmodule MapLibre do property's previous value and new value. A style's root transition property provides global transition defaults for that style. - See [the docs](https://maplibre.org/maplibre-gl-js-docs/style-spec/transition/) for more + See [the docs](https://maplibre.org/maplibre-gl-js/docs/style-spec/transition/) for more details. """ @spec transition(t(), keyword()) :: t()