-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1] Tying in flux, pulling in base map.
- Loading branch information
Russell Vea
committed
Oct 8, 2015
1 parent
59d7667
commit 873412d
Showing
18 changed files
with
1,050 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
stage: 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
jspm_packages | ||
node_modules | ||
credentials.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {createActions, createAsyncActions} from 'fynx'; | ||
|
||
export default createActions([ | ||
// routeActions.js | ||
'initRoutes', | ||
'allRoutes' | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import {default as actions} from './actions'; | ||
import qs from 'qs'; | ||
import request from 'reqwest-without-xhr2'; | ||
import routeStore from '../stores/routeStore.js'; | ||
import {Promise} from 'es6-promise'; | ||
|
||
const server = 'http://services.arcgis.com/tNJpAOha4mODLkXz/ArcGIS/rest/services/BikePaths/FeatureServer/0/query'; | ||
|
||
/** | ||
* Fetches routes from api server | ||
*/ | ||
actions.initRoutes.listen(() => { | ||
let params = { | ||
where:'1=1', | ||
geometryType:'esriGeometryEnvelope', | ||
spatialRel:'esriSpatialRelIntersects', | ||
units:'esriSRUnit_Meter', | ||
outFields:'*', | ||
returnGeometry:'true', | ||
returnIdsOnly:'false', | ||
returnCountOnly:'false', | ||
returnExtentOnly:'false', | ||
returnDistinctValues:'false', | ||
returnZ:'false', | ||
returnM:'false', | ||
f:'pjson' | ||
} | ||
let url = `${server}?${qs.stringify(params)}`; | ||
request({ | ||
url: url, | ||
type: 'json' | ||
}).then((data) => { | ||
routeStore().set('routes', data.features); | ||
console.log(routeStore().get('routes')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import {vector_api_key} from './credentials.js'; | ||
|
||
|
||
const styles = { | ||
"sans": "Open Sans Regular, Arial Unicode MS Regular", | ||
"sans-it": "Open Sans Italic, Arial Unicode MS Regular", | ||
"sans-md": "Open Sans Semibold, Arial Unicode MS Bold", | ||
"sans-bd": "Open Sans Bold, Arial Unicode MS Bold", | ||
"big-label": "#cb4b49", | ||
"medium-label": "#f27a87", | ||
"small-label": "#384646", | ||
"label-halo": "rgba(255,255,255,0.5)", | ||
"label-halo-dark": "rgba(0,0,0,0.2)", | ||
land: "#ededed", | ||
water: "#7acad0", | ||
park: "#c2cd44", | ||
building: "#afd3d3", | ||
highway: "#5d6765", | ||
road: "#c0c4c2", | ||
path: "#5d6765", | ||
subway: "#ef7369", | ||
"highway-width": { | ||
"base": 1.55, | ||
"stops": [[4, 0.5], [8, 1.5], [20, 40]] | ||
}, | ||
"road-width": { | ||
"base": 1.55, | ||
"stops": [[4, 0.25], [20, 30]] | ||
}, | ||
"path-width": { | ||
"base": 1.8, | ||
"stops": [[10, 0.15], [20, 15]] | ||
}, | ||
"road-misc-width": { | ||
"base": 1, | ||
"stops": [[4, 0.25], [20, 30]] | ||
}, | ||
"stream-width":{ | ||
"base": 0.5, | ||
"stops": [[4, 0.5], [10, 1.5], [20, 5]] | ||
} | ||
}; | ||
|
||
/** | ||
* Source: https://github.com/mapzen/mapboxgl-vector-tiles/blob/master/index.html | ||
*/ | ||
export const mapboxStyles = { | ||
"version": 8, | ||
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf", | ||
"sources": { | ||
"osm": { | ||
"type": "vector", | ||
"tiles": [`https://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt?api_key=${vector_api_key}`] | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {fromJS} from 'immutable'; | ||
import {createCursorStore} from 'fynx'; | ||
|
||
export default createCursorStore(fromJS({ | ||
routes: [] | ||
})); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mapbox-studio-default-style | ||
=========================== | ||
Default style used by new style projects in Mapbox Studio. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- place_name: 4161 Nuuanu Pali Dr Honolulu, Hawaii 96817 United States | ||
zoom: 13 | ||
center: | ||
- 21.346064612734615 | ||
- -157.81156539916992 | ||
tags: | ||
- userbookmark | ||
- place_name: 1508 Ala Leleu St Honolulu, Hawaii 96818 United States | ||
zoom: 14 | ||
center: | ||
- 21.3565 | ||
- -157.901 | ||
tags: | ||
- userbookmark |
Oops, something went wrong.