From 33d6089008b1feed4b4dfcc4c8e7a3e819882817 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 25 Oct 2018 20:35:45 -0400 Subject: [PATCH 01/10] add `MercatorCoordinate` type, fix #7485 --- docs/documentation.yml | 1 + docs/pages/example/custom-style-layer.html | 19 +++-- src/geo/mercator_coordinate.js | 88 +++++++++++++++++++++ src/index.js | 2 + src/style/style_layer/custom_style_layer.js | 8 +- test/unit/geo/mercator_coordinate.test.js | 31 ++++++++ 6 files changed, 138 insertions(+), 11 deletions(-) create mode 100644 src/geo/mercator_coordinate.js create mode 100644 test/unit/geo/mercator_coordinate.test.js diff --git a/docs/documentation.yml b/docs/documentation.yml index 51038ea2ea8..2f69418b898 100644 --- a/docs/documentation.yml +++ b/docs/documentation.yml @@ -19,6 +19,7 @@ toc: - LngLatBoundsLike - Point - PointLike + - MercatorCoordinate - name: User Interface description: | Controls, markers, and popups add new user interface elements to the map. diff --git a/docs/pages/example/custom-style-layer.html b/docs/pages/example/custom-style-layer.html index 3cbc1ddc796..831a6e90ead 100644 --- a/docs/pages/example/custom-style-layer.html +++ b/docs/pages/example/custom-style-layer.html @@ -2,8 +2,8 @@