Skip to content

Commit

Permalink
Update Maplibre links (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristineguadelupe authored Aug 17, 2023
1 parent 4b1d68b commit 2618798
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
28 changes: 14 additions & 14 deletions lib/maplibre.ex
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 2618798

Please sign in to comment.