add javascript styling

This commit is contained in:
AJ ONeal 2016-07-28 05:17:53 -04:00 committed by GitHub
parent d344d81611
commit 65d94c9141
1 changed files with 2 additions and 2 deletions

View File

@ -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'