Skip to content

Commit

Permalink
I think I've got green and yellow zones right.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomoregrapes committed Jul 27, 2014
1 parent ac93350 commit e44e650
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
41 changes: 31 additions & 10 deletions web/data/camping-zones.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
{
"type": "Feature",
"properties": {
"name": "Green 4",
"name": "Green 5",
"cat": "green"
},
"geometry": {
Expand Down Expand Up @@ -311,7 +311,7 @@
{
"type": "Feature",
"properties": {
"name": "Green 5",
"name": "Green 6",
"cat": "green"
},
"geometry": {
Expand Down Expand Up @@ -345,7 +345,7 @@
{
"type": "Feature",
"properties": {
"name": "Green 6",
"name": "Green 7",
"cat": "green"
},
"geometry": {
Expand Down Expand Up @@ -378,7 +378,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Green 8",
"cat": "green"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -409,7 +412,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Yellow 4",
"cat": "yellow"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -448,7 +454,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Yellow 5",
"cat": "yellow"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -479,7 +488,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Yellow 6",
"cat": "yellow"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -614,7 +626,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Green 4",
"cat": "green"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -645,7 +660,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Yellow 1",
"cat": "yellow"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down Expand Up @@ -676,7 +694,10 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"name": "Yellow 2",
"cat": "yellow"
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down
2 changes: 1 addition & 1 deletion web/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
function mixItUp() {
lyrStuff.eachLayer(function(layer) {
if(layer.toGeoJSON().properties.cat == null) {
cats = [/*'green', */'blue', 'red', 'purple', 'yellow', 'cafe', 'venue', 'unknown'];
cats = [/*'green', */'blue', 'red', 'purple',/* 'yellow', */'cafe', 'venue', 'unknown'];
newcat = cats[Math.floor(Math.random()*cats.length)];
layer.toGeoJSON().properties.cat = newcat;
styleUpLayer(layer);
Expand Down

0 comments on commit e44e650

Please sign in to comment.