From b04cc9c228831c70c1426cb8a6049755e2a14f2b Mon Sep 17 00:00:00 2001 From: csobier Date: Fri, 20 Oct 2017 12:52:40 -0400 Subject: [PATCH] Fixed numbering formatting for steps No code changes, just formatting. (The API repos require different format of numbering then that docs. I couldn't see it until the output was live). --- docs/anonymous_maps.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/anonymous_maps.md b/docs/anonymous_maps.md index 2ff63f85..1dc2f5f3 100644 --- a/docs/anonymous_maps.md +++ b/docs/anonymous_maps.md @@ -156,7 +156,7 @@ https://{username}.cartodb.com/api/v1/map/HASH/2/{z}/{x}/{y}.mvt #### Example 1: MVT Tiles with Windshaft, CARTO.js, and MapboxGL -1. Import the required libraries: +1) Import the required libraries: ```bash @@ -164,13 +164,13 @@ https://{username}.cartodb.com/api/v1/map/HASH/2/{z}/{x}/{y}.mvt ``` -2. Configure Map Client: +2) Configure Map Client: ```bash mapboxgl.accessToken = '{yourMapboxToken}'; ``` -3. Create Map Object (Mapbox): +3) Create Map Object (Mapbox): ```bash var map = new mapboxgl.Map({ @@ -182,7 +182,7 @@ center: [30, 0] }); ``` -4. Define Layer Options (CARTO): +4) Define Layer Options (CARTO): ```bash var layerOptions = { @@ -194,7 +194,7 @@ cartocss: "...", }; ``` -5. Request Tiles (from CARTO) and Set to Map Object (Mapbox): +5) Request Tiles (from CARTO) and Set to Map Object (Mapbox): **Note:** By default, [CARTO core functions](https://carto.com/docs/carto-engine/carto-js/core-api/) retrieve URLs for fully rendered tiles. You must replace the default format (.png) with the MVT format (.mvt). @@ -214,20 +214,20 @@ map.setStyle(simpleStyle(tiles)); When you are not including CARTO.js to implement MVT tiles, you must use the `map.setStyle` parameter to specify vector map rendering. -1. Import the required libraries: +1) Import the required libraries: ```bash ``` -2. Configure Map Client: +2) Configure Map Client: ```bash mapboxgl.accessToken = '{yourMapboxToken}'; ``` -3. Create Map Object (Mapbox): +3) Create Map Object (Mapbox): ```bash var map = new mapboxgl.Map({ @@ -239,7 +239,7 @@ center: [30, 0] }); ``` -4. Set the Style +4) Set the Style ```bash map.setStyle({