add javascript styling

Cette révision appartient à :
AJ ONeal 2016-07-28 05:17:53 -04:00 révisé par GitHub
Parent d344d81611
révision 65d94c9141

Voir le fichier

@ -29,7 +29,7 @@ You can get the previous and next S2CellId from any given Key:
2. Get the Previous or Next Key 2. Get the Previous or Next Key
3. Convert the Key to an Id (uint64 string) 3. Convert the Key to an Id (uint64 string)
``` ```javascript
var key = S2.latLngToKey(40.2574448, -111.7089464); var key = S2.latLngToKey(40.2574448, -111.7089464);
var id = S2.toId(key); 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' Example '4/032212303102210' becomes '9749618446378729472'
``` ```javascript
'use strict'; 'use strict';
var quadkey = '4/032212303102210' var quadkey = '4/032212303102210'