diff --git a/docs/img/src/mapbox-gl-geocoder-custom-render.png b/docs/img/src/mapbox-gl-geocoder-custom-render.png new file mode 100644 index 00000000000..639e38f4f2e Binary files /dev/null and b/docs/img/src/mapbox-gl-geocoder-custom-render.png differ diff --git a/docs/img/src/mapbox-gl-geocoder-proximity-bias.png b/docs/img/src/mapbox-gl-geocoder-proximity-bias.png deleted file mode 100644 index 76cc476515c..00000000000 Binary files a/docs/img/src/mapbox-gl-geocoder-proximity-bias.png and /dev/null differ diff --git a/docs/img/src/mapbox-gl-geocoder-with-flyto.png b/docs/img/src/mapbox-gl-geocoder-with-flyto.png new file mode 100644 index 00000000000..639e38f4f2e Binary files /dev/null and b/docs/img/src/mapbox-gl-geocoder-with-flyto.png differ diff --git a/docs/img/src/mapbox-gl-geocoder-with-language.png b/docs/img/src/mapbox-gl-geocoder-with-language.png new file mode 100644 index 00000000000..639e38f4f2e Binary files /dev/null and b/docs/img/src/mapbox-gl-geocoder-with-language.png differ diff --git a/docs/pages/example/forward-geocode-custom-data.html b/docs/pages/example/forward-geocode-custom-data.html index f8fe3896e46..30d83a5bb53 100644 --- a/docs/pages/example/forward-geocode-custom-data.html +++ b/docs/pages/example/forward-geocode-custom-data.html @@ -1,5 +1,5 @@ - - + +
diff --git a/docs/pages/example/mapbox-gl-geocoder-accept-coordinates.html b/docs/pages/example/mapbox-gl-geocoder-accept-coordinates.html index 9ff58dbfc3d..0f130f09a7f 100644 --- a/docs/pages/example/mapbox-gl-geocoder-accept-coordinates.html +++ b/docs/pages/example/mapbox-gl-geocoder-accept-coordinates.html @@ -1,5 +1,5 @@ - - + + diff --git a/docs/pages/example/mapbox-gl-geocoder-custom-render.html b/docs/pages/example/mapbox-gl-geocoder-custom-render.html new file mode 100644 index 00000000000..b4e06f18695 --- /dev/null +++ b/docs/pages/example/mapbox-gl-geocoder-custom-render.html @@ -0,0 +1,39 @@ + + + + + + diff --git a/docs/pages/example/mapbox-gl-geocoder-custom-render.js b/docs/pages/example/mapbox-gl-geocoder-custom-render.js new file mode 100644 index 00000000000..f24fdffbab5 --- /dev/null +++ b/docs/pages/example/mapbox-gl-geocoder-custom-render.js @@ -0,0 +1,12 @@ +/*--- +title: Use a custom render function with a geocoder +description: >- + Use a custom html rendering function with the [mapbox-gl-geocoder](https://github.com/mapbox/mapbox-gl-geocoder) + to customize how the dropdown menu is displayed. +tags: + - geocoder +pathname: /mapbox-gl-js/example/mapbox-gl-geocoder-custom-render/ +---*/ +import Example from '../../components/example'; +import html from './mapbox-gl-geocoder-custom-render.html'; +export default Example(html); diff --git a/docs/pages/example/mapbox-gl-geocoder-limit-region.html b/docs/pages/example/mapbox-gl-geocoder-limit-region.html index 19bd879e75e..55893c31a22 100644 --- a/docs/pages/example/mapbox-gl-geocoder-limit-region.html +++ b/docs/pages/example/mapbox-gl-geocoder-limit-region.html @@ -1,5 +1,5 @@ - - + + diff --git a/docs/pages/example/mapbox-gl-geocoder-outside-the-map.html b/docs/pages/example/mapbox-gl-geocoder-outside-the-map.html index 419eb35f429..f9a1c06f8a7 100644 --- a/docs/pages/example/mapbox-gl-geocoder-outside-the-map.html +++ b/docs/pages/example/mapbox-gl-geocoder-outside-the-map.html @@ -1,5 +1,5 @@ - - + +