From 65d94c9141cdac582fc3874b8cb72a49c83f30ab Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 28 Jul 2016 05:17:53 -0400 Subject: [PATCH] add javascript styling --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4578289..29f1c8a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ You can get the previous and next S2CellId from any given Key: 2. Get the Previous or Next Key 3. Convert the Key to an Id (uint64 string) -``` +```javascript var key = S2.latLngToKey(40.2574448, -111.7089464); var id = S2.toId(key); @@ -53,7 +53,7 @@ Convert from base 10 (decimal) `S2 Cell Id` to base 4 `quadkey` (aka hilbert cur Example '4/032212303102210' becomes '9749618446378729472' -``` +```javascript 'use strict'; var quadkey = '4/032212303102210'