Skip to content

Instantly share code, notes, and snippets.

@darrenjaworski
Last active October 31, 2017 21:12
Show Gist options
  • Save darrenjaworski/b7f36a2401c0f905b664abf24349d885 to your computer and use it in GitHub Desktop.
Save darrenjaworski/b7f36a2401c0f905b664abf24349d885 to your computer and use it in GitHub Desktop.
Oklahoma State Parks.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Oklahoma State Parks</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script src="script.js"></script>
</body>
</html>
State Parks ADDRESS CITY STATE ZIP PHONE1 PHONE2 Longitude Latitude Location
Osage Hills State Park 2131 Osage Hills State Park Rd Pawhuska OK 74054 (918) 336-4141 (800) 654-8240 -96.381271 36.284621 (36.284621, -96.381271)
Walnut Creek State Park 209th W Ave Prue OK 74060 (918) 865-4991 -96.27896 36.26082 (36.26082, -96.27896)
Snowdale State Park Hwy 20 W Salina OK 74365 (918) 434-2651 -95.146534 36.3017 (36.3017, -95.146534)
Brushy Lake State Park Rt 3 Box 36 Sallisaw OK 74955 (918) 775-6507 -94.781772 35.476801 (35.476801, -94.781772)
Keystone State Park 1926 State Hwy 151 Sand Springs OK 74063 (918) 865-4991 (800) 654-8240 -96.261148 36.139211 (36.139211, -96.261148)
Spavinaw State Park Hwy 82 S Spavinaw OK 74366 (918) 589-2651 -95.050634 36.38413 (36.38413, -95.050634)
Adair State Park Hwy 51 & Hwy 59 Stilwell OK 74960 (918) 696-6613 -94.630279 35.83557 (35.83557, -94.630279)
Talimena State Park Hwy 271 N Talihina OK 74571 (918) 567-2052 -95.042469 34.743835 (34.743835, -95.042469)
Tenkiller State Park 8 miles N of Gore or SH 100 Vian OK 74962 (918) 489-5641 -94.976664 35.60971 (35.60971, -94.976664)
Sequoyah Bay State Park 6237 E 100th St N Wagoner OK 74467 (918) 683-0878 -95.357326 35.963249 (35.963249, -95.357326)
Roman Nose State Park & Lodge Hwy 8 A Watonga OK 73772 (580) 623-4215 (800) 892-8690 -98.397288 35.75959 (35.75959, -98.397288)
Little Sahara State Park 101 Main St Waynoka OK 73860 (580) 824-1471 -98.879678 36.578554 (36.578554, -98.879678)
Natural Falls State Park Hwy 412 W West Siloam Springs OK 74338 (918) 422-5802 -94.632729 36.179334 (36.179334, -94.632729)
Robbers Cave State Park & Lodge Hwy 2 N Wilburton OK 74578 (918) 465-2565 (800) 654-8240 -95.325934 34.92263 (34.92263, -95.325934)
Lake Wister State Park 25567 US Hwy 270 Wister OK 74966 (918) 655-7756 (800) 654-8240 -94.725599 34.97222 (34.97222, -94.725599)
Boiling Springs State Park Rt 2 Box 299 Woodward OK 73801 (580) 256-7664 (800) 654-8240 -99.381419 36.4394 (36.4394, -99.381419)
Lake Murray State Park & Lodge 3323 Lodge Rd Ardmore OK 73401 (580) 223-6600 (800) 257-0322 -97.13084 34.170125 (34.170125, -97.13084)
Boggy Depot State Park 475 S Park Lane Atoka OK 74525 (580) 889-5625 -96.104499 34.31884 (34.31884, -96.104499)
McGee Creek State Park 576-A S McGee Creek Lake Rd Atoka OK 74525 (580) 889-5822 (800) 654-8240 -95.875191 34.255007 (34.255007, -95.875191)
Beaver Dunes State Park Hwy 270 N Beaver OK 73932 (580) 625-3373 -100.519523 36.80599 (36.80599, -100.519523)
Bernice State Park 1/2 mile E of Bernice on Hwy 85A Bernice OK 74331 (918) 786-9447 -94.922289 36.61258 (36.61258, -94.922289)
Greenleaf State Park 3 miles S of Braggs on Hwy 10 S Braggs OK 74423 (918) 487-5196 -95.171244 35.613145 (35.613145, -95.171244)
Beavers Bend & Hochatown State Park & Lodge Hwy 259A Broken Bow OK 74728 (580) 494-6538 (800) 435-5514 -94.747049 34.144375 (34.144375, -94.747049)
Hochatown State Park Hwy 259A Broken Bow OK 74728 (580) 494-6452 -94.747049 34.144375 (34.144375, -94.747049)
Arrowhead State Park HC 67 Box 57 Canadian OK 74425 (918) 339-2204 -95.640134 35.16822 (35.16822, -95.640134)
Lake Eufaula State Park Hwy 69 & Hwy 150 Checotah OK 74426 (918) 689-5311 (800) 654-8240 -95.574019 35.36224 (35.36224, -95.574019)
Clayton Lake State Park Hwy 271 Clayton OK 74536 (918) 569-7981 -95.347174 34.594435 (34.594435, -95.347174)
Crowder Lake University Park 186 RR 1 Colony OK 73021 (580) 343-2443 -98.675719 35.34965 (35.34965, -98.675719)
Wah-Sha-She State Park HC 75/Hwy 60 Copan OK 74022 (918) 336-5635 -95.918064 36.971701 (36.971701, -95.918064)
Cherokee State Park 232 Cliff Heights Disney OK 74340 (918) 435-8066 -95.01297 36.481423 (36.481423, -95.01297)
Disney/Little Blue State Park Hwy 28 E Disney OK 74340 (918) 435-8066 -95.006262 36.480531 (36.480531, -95.006262)
Twin Bridges State Park 14801 S Hwy 137 Fairland OK 74343 (918) 542-6969 -94.770149 36.81067 (36.81067, -94.770149)
Gloss Mountain State Park Hwy 412 Fairview OK 73737 (580) 227-2512 -98.685493 36.375331 (36.375331, -98.685493)
Fort Cobb State Park 27022 Copperhead Rd Fort Cobb OK 73038 (405) 643-2249 -98.428839 35.117105 (35.117105, -98.428839)
Raymond Gary State Park Hwy US 70 Fort Towson OK 74331 (580) 873-2307 -95.260235 34.01764 (34.01764, -95.260235)
Foss State Park Hwy 44 N & Hwy 73 W Foss OK 73647 (580) 592-4433 -99.170249 35.43861 (35.43861, -99.170249)
Alabaster Caverns State Park Hwy 50 & Hwy 50-A Freedom OK 73842 (580) 621-3381 -99.115609 36.76515 (36.76515, -99.115609)
Honey Creek State Park 901 State Park Rd Grove OK 74344 (918) 786-9447 -94.782348 36.574408 (36.574408, -94.782348)
Heavener Runestone State Park 18365 Runestone Rd Heavener OK 74937 (918) 653-2241 -94.635935 34.806039 (34.806039, -94.635935)
Red Rock Canyon State Park Hwy 281 S Hinton OK 73047 (405) 542-6344 -98.346279 35.53623 (35.53623, -98.346279)
Hugo Lake State Park Hwy 70 E Hugo OK 74743 (580) 326-0303 -95.493304 33.99511 (33.99511, -95.493304)
Western Hills Guest Ranch & Sequoyah State Park 17131 Park 10 Hulbert OK 74441 (918) 772-2545 (800) 368-1486 -95.131169 35.92927 (35.92927, -95.131169)
Lake Eucha State Park Hwy 59 S Jay OK 74346 (918) 422-5802 -94.815414 36.383053 (36.383053, -94.815414)
Great Salt Plains State Park Rt 1 Box 28 Jet OK 73749 (580) 626-4731 -98.152759 36.753995 (36.753995, -98.152759)
Black Mesa State Park & Nature Preserve County Road 325 Kenton OK 73946 (580) 426-2222 -102.804979 36.735784 (36.735784, -102.804979)
Lake Texoma State Park 2038 Hwy 70 E Kingston OK 73439 (580) 564-2566 -96.674829 33.99827 (33.99827, -96.674829)
Quartz Mountain Resort, Arts & Conference Center 22469 Lodge Rd Lone Wolf OK 73655 (580) 563-2424 (877) 999-5567 -99.246504 34.972553 (34.972553, -99.246504)
Great Plains State Park Hwy 183 & County Rd Mountain Park OK 73552 (580) 569-2032 -98.948674 34.701545 (34.701545, -98.948674)
Dripping Springs State Park 16830 Dripping Springs Rd Okmulgee OK 74447 (918) 756-5971 -96.068911 35.611437 (35.611437, -96.068911)
Okmulgee State Park 16830 Dripping Springs Rd Okmulgee OK 74447 (918) 756-5971 -96.068911 35.611437 (35.611437, -96.068911)
Cherokee Landing State Park 28610 Park 20 Park Hill OK 74451 (918) 457-5716 -94.97123 35.734169 (35.734169, -94.97123)
Lake Thunderbird State Park 13101 Alameda Dr Norman OK 73026 (405) 360-3572 -97.250488 35.232547 (35.232547, -97.250488)
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"State Parks": "Osage Hills State Park",
"ADDRESS": "2131 Osage Hills State Park Rd",
"CITY": "Pawhuska",
"STATE": "OK",
"ZIP": "74054",
"PHONE1": "(918) 336-4141",
"PHONE2": "(800) 654-8240",
"Location": "(36.284621, -96.381271)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.381271,
36.284621
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Walnut Creek State Park",
"ADDRESS": "209th W Ave",
"CITY": "Prue",
"STATE": "OK",
"ZIP": "74060",
"PHONE1": "(918) 865-4991",
"PHONE2": "",
"Location": "(36.26082, -96.27896)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.27896,
36.26082
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Snowdale State Park",
"ADDRESS": "Hwy 20 W",
"CITY": "Salina",
"STATE": "OK",
"ZIP": "74365",
"PHONE1": "(918) 434-2651",
"PHONE2": "",
"Location": "(36.3017, -95.146534)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.146534,
36.3017
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Brushy Lake State Park",
"ADDRESS": "Rt 3 Box 36",
"CITY": "Sallisaw",
"STATE": "OK",
"ZIP": "74955",
"PHONE1": "(918) 775-6507",
"PHONE2": "",
"Location": "(35.476801, -94.781772)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.781772,
35.476801
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Keystone State Park",
"ADDRESS": "1926 State Hwy 151",
"CITY": "Sand Springs",
"STATE": "OK",
"ZIP": "74063",
"PHONE1": "(918) 865-4991",
"PHONE2": "(800) 654-8240",
"Location": "(36.139211, -96.261148)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.261148,
36.139211
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Spavinaw State Park",
"ADDRESS": "Hwy 82 S",
"CITY": "Spavinaw",
"STATE": "OK",
"ZIP": "74366",
"PHONE1": "(918) 589-2651",
"PHONE2": "",
"Location": "(36.38413, -95.050634)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.050634,
36.38413
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Adair State Park",
"ADDRESS": "Hwy 51 & Hwy 59",
"CITY": "Stilwell",
"STATE": "OK",
"ZIP": "74960",
"PHONE1": "(918) 696-6613",
"PHONE2": "",
"Location": "(35.83557, -94.630279)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.630279,
35.83557
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Talimena State Park",
"ADDRESS": "Hwy 271 N",
"CITY": "Talihina",
"STATE": "OK",
"ZIP": "74571",
"PHONE1": "(918) 567-2052",
"PHONE2": "",
"Location": "(34.743835, -95.042469)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.042469,
34.743835
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Tenkiller State Park",
"ADDRESS": "8 miles N of Gore or SH 100",
"CITY": "Vian",
"STATE": "OK",
"ZIP": "74962",
"PHONE1": "(918) 489-5641",
"PHONE2": "",
"Location": "(35.60971, -94.976664)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.976664,
35.60971
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Sequoyah Bay State Park",
"ADDRESS": "6237 E 100th St N",
"CITY": "Wagoner",
"STATE": "OK",
"ZIP": "74467",
"PHONE1": "(918) 683-0878",
"PHONE2": "",
"Location": "(35.963249, -95.357326)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.357326,
35.963249
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Roman Nose State Park & Lodge",
"ADDRESS": "Hwy 8 A",
"CITY": "Watonga",
"STATE": "OK",
"ZIP": "73772",
"PHONE1": "(580) 623-4215",
"PHONE2": "(800) 892-8690",
"Location": "(35.75959, -98.397288)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.397288,
35.75959
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Little Sahara State Park",
"ADDRESS": "101 Main St",
"CITY": "Waynoka",
"STATE": "OK",
"ZIP": "73860",
"PHONE1": "(580) 824-1471",
"PHONE2": "",
"Location": "(36.578554, -98.879678)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.879678,
36.578554
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Natural Falls State Park",
"ADDRESS": "Hwy 412 W",
"CITY": "West Siloam Springs",
"STATE": "OK",
"ZIP": "74338",
"PHONE1": "(918) 422-5802",
"PHONE2": "",
"Location": "(36.179334, -94.632729)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.632729,
36.179334
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Robbers Cave State Park & Lodge",
"ADDRESS": "Hwy 2 N",
"CITY": "Wilburton",
"STATE": "OK",
"ZIP": "74578",
"PHONE1": "(918) 465-2565",
"PHONE2": "(800) 654-8240",
"Location": "(34.92263, -95.325934)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.325934,
34.92263
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Wister State Park",
"ADDRESS": "25567 US Hwy 270",
"CITY": "Wister",
"STATE": "OK",
"ZIP": "74966",
"PHONE1": "(918) 655-7756",
"PHONE2": "(800) 654-8240",
"Location": "(34.97222, -94.725599)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.725599,
34.97222
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Boiling Springs State Park",
"ADDRESS": "Rt 2 Box 299",
"CITY": "Woodward",
"STATE": "OK",
"ZIP": "73801",
"PHONE1": "(580) 256-7664",
"PHONE2": "(800) 654-8240",
"Location": "(36.4394, -99.381419)"
},
"geometry": {
"type": "Point",
"coordinates": [
-99.381419,
36.4394
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Murray State Park & Lodge",
"ADDRESS": "3323 Lodge Rd",
"CITY": "Ardmore",
"STATE": "OK",
"ZIP": "73401",
"PHONE1": "(580) 223-6600",
"PHONE2": "(800) 257-0322",
"Location": "(34.170125, -97.13084)"
},
"geometry": {
"type": "Point",
"coordinates": [
-97.13084,
34.170125
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Boggy Depot State Park",
"ADDRESS": "475 S Park Lane",
"CITY": "Atoka",
"STATE": "OK",
"ZIP": "74525",
"PHONE1": "(580) 889-5625",
"PHONE2": "",
"Location": "(34.31884, -96.104499)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.104499,
34.31884
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "McGee Creek State Park",
"ADDRESS": "576-A S McGee Creek Lake Rd",
"CITY": "Atoka",
"STATE": "OK",
"ZIP": "74525",
"PHONE1": "(580) 889-5822",
"PHONE2": "(800) 654-8240",
"Location": "(34.255007, -95.875191)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.875191,
34.255007
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Beaver Dunes State Park",
"ADDRESS": "Hwy 270 N",
"CITY": "Beaver",
"STATE": "OK",
"ZIP": "73932",
"PHONE1": "(580) 625-3373",
"PHONE2": "",
"Location": "(36.80599, -100.519523)"
},
"geometry": {
"type": "Point",
"coordinates": [
-100.519523,
36.80599
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Bernice State Park",
"ADDRESS": "1/2 mile E of Bernice on Hwy 85A",
"CITY": "Bernice",
"STATE": "OK",
"ZIP": "74331",
"PHONE1": "(918) 786-9447",
"PHONE2": "",
"Location": "(36.61258, -94.922289)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.922289,
36.61258
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Greenleaf State Park",
"ADDRESS": "3 miles S of Braggs on Hwy 10 S",
"CITY": "Braggs",
"STATE": "OK",
"ZIP": "74423",
"PHONE1": "(918) 487-5196",
"PHONE2": "",
"Location": "(35.613145, -95.171244)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.171244,
35.613145
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Beavers Bend & Hochatown State Park & Lodge",
"ADDRESS": "Hwy 259A",
"CITY": "Broken Bow",
"STATE": "OK",
"ZIP": "74728",
"PHONE1": "(580) 494-6538",
"PHONE2": "(800) 435-5514",
"Location": "(34.144375, -94.747049)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.747049,
34.144375
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Hochatown State Park",
"ADDRESS": "Hwy 259A",
"CITY": "Broken Bow",
"STATE": "OK",
"ZIP": "74728",
"PHONE1": "(580) 494-6452",
"PHONE2": "",
"Location": "(34.144375, -94.747049)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.747049,
34.144375
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Arrowhead State Park",
"ADDRESS": "HC 67 Box 57",
"CITY": "Canadian",
"STATE": "OK",
"ZIP": "74425",
"PHONE1": "(918) 339-2204",
"PHONE2": "",
"Location": "(35.16822, -95.640134)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.640134,
35.16822
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Eufaula State Park",
"ADDRESS": "Hwy 69 & Hwy 150",
"CITY": "Checotah",
"STATE": "OK",
"ZIP": "74426",
"PHONE1": "(918) 689-5311",
"PHONE2": "(800) 654-8240",
"Location": "(35.36224, -95.574019)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.574019,
35.36224
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Clayton Lake State Park",
"ADDRESS": "Hwy 271",
"CITY": "Clayton",
"STATE": "OK",
"ZIP": "74536",
"PHONE1": "(918) 569-7981",
"PHONE2": "",
"Location": "(34.594435, -95.347174)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.347174,
34.594435
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Crowder Lake University Park",
"ADDRESS": "186 RR 1",
"CITY": "Colony",
"STATE": "OK",
"ZIP": "73021",
"PHONE1": "(580) 343-2443",
"PHONE2": "",
"Location": "(35.34965, -98.675719)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.675719,
35.34965
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Wah-Sha-She State Park",
"ADDRESS": "HC 75/Hwy 60",
"CITY": "Copan",
"STATE": "OK",
"ZIP": "74022",
"PHONE1": "(918) 336-5635",
"PHONE2": "",
"Location": "(36.971701, -95.918064)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.918064,
36.971701
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Cherokee State Park",
"ADDRESS": "232 Cliff Heights",
"CITY": "Disney",
"STATE": "OK",
"ZIP": "74340",
"PHONE1": "(918) 435-8066",
"PHONE2": "",
"Location": "(36.481423, -95.01297)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.01297,
36.481423
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Disney/Little Blue State Park",
"ADDRESS": "Hwy 28 E",
"CITY": "Disney",
"STATE": "OK",
"ZIP": "74340",
"PHONE1": "(918) 435-8066",
"PHONE2": "",
"Location": "(36.480531, -95.006262)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.006262,
36.480531
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Twin Bridges State Park",
"ADDRESS": "14801 S Hwy 137",
"CITY": "Fairland",
"STATE": "OK",
"ZIP": "74343",
"PHONE1": "(918) 542-6969",
"PHONE2": "",
"Location": "(36.81067, -94.770149)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.770149,
36.81067
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Gloss Mountain State Park",
"ADDRESS": "Hwy 412",
"CITY": "Fairview",
"STATE": "OK",
"ZIP": "73737",
"PHONE1": "(580) 227-2512",
"PHONE2": "",
"Location": "(36.375331, -98.685493)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.685493,
36.375331
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Fort Cobb State Park",
"ADDRESS": "27022 Copperhead Rd",
"CITY": "Fort Cobb",
"STATE": "OK",
"ZIP": "73038",
"PHONE1": "(405) 643-2249",
"PHONE2": "",
"Location": "(35.117105, -98.428839)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.428839,
35.117105
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Raymond Gary State Park",
"ADDRESS": "Hwy US 70",
"CITY": "Fort Towson",
"STATE": "OK",
"ZIP": "74331",
"PHONE1": "(580) 873-2307",
"PHONE2": "",
"Location": "(34.01764, -95.260235)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.260235,
34.01764
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Foss State Park",
"ADDRESS": "Hwy 44 N & Hwy 73 W",
"CITY": "Foss",
"STATE": "OK",
"ZIP": "73647",
"PHONE1": "(580) 592-4433",
"PHONE2": "",
"Location": "(35.43861, -99.170249)"
},
"geometry": {
"type": "Point",
"coordinates": [
-99.170249,
35.43861
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Alabaster Caverns State Park",
"ADDRESS": "Hwy 50 & Hwy 50-A",
"CITY": "Freedom",
"STATE": "OK",
"ZIP": "73842",
"PHONE1": "(580) 621-3381",
"PHONE2": "",
"Location": "(36.76515, -99.115609)"
},
"geometry": {
"type": "Point",
"coordinates": [
-99.115609,
36.76515
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Honey Creek State Park",
"ADDRESS": "901 State Park Rd",
"CITY": "Grove",
"STATE": "OK",
"ZIP": "74344",
"PHONE1": "(918) 786-9447",
"PHONE2": "",
"Location": "(36.574408, -94.782348)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.782348,
36.574408
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Heavener Runestone State Park",
"ADDRESS": "18365 Runestone Rd",
"CITY": "Heavener",
"STATE": "OK",
"ZIP": "74937",
"PHONE1": "(918) 653-2241",
"PHONE2": "",
"Location": "(34.806039, -94.635935)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.635935,
34.806039
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Red Rock Canyon State Park",
"ADDRESS": "Hwy 281 S",
"CITY": "Hinton",
"STATE": "OK",
"ZIP": "73047",
"PHONE1": "(405) 542-6344",
"PHONE2": "",
"Location": "(35.53623, -98.346279)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.346279,
35.53623
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Hugo Lake State Park",
"ADDRESS": "Hwy 70 E",
"CITY": "Hugo",
"STATE": "OK",
"ZIP": "74743",
"PHONE1": "(580) 326-0303",
"PHONE2": "",
"Location": "(33.99511, -95.493304)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.493304,
33.99511
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Western Hills Guest Ranch & Sequoyah State Park",
"ADDRESS": "17131 Park 10",
"CITY": "Hulbert",
"STATE": "OK",
"ZIP": "74441",
"PHONE1": "(918) 772-2545",
"PHONE2": "(800) 368-1486",
"Location": "(35.92927, -95.131169)"
},
"geometry": {
"type": "Point",
"coordinates": [
-95.131169,
35.92927
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Eucha State Park",
"ADDRESS": "Hwy 59 S",
"CITY": "Jay",
"STATE": "OK",
"ZIP": "74346",
"PHONE1": "(918) 422-5802",
"PHONE2": "",
"Location": "(36.383053, -94.815414)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.815414,
36.383053
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Great Salt Plains State Park",
"ADDRESS": "Rt 1 Box 28",
"CITY": "Jet",
"STATE": "OK",
"ZIP": "73749",
"PHONE1": "(580) 626-4731",
"PHONE2": "",
"Location": "(36.753995, -98.152759)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.152759,
36.753995
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Black Mesa State Park & Nature Preserve",
"ADDRESS": "County Road 325",
"CITY": "Kenton",
"STATE": "OK",
"ZIP": "73946",
"PHONE1": "(580) 426-2222",
"PHONE2": "",
"Location": "(36.735784, -102.804979)"
},
"geometry": {
"type": "Point",
"coordinates": [
-102.804979,
36.735784
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Texoma State Park",
"ADDRESS": "2038 Hwy 70 E",
"CITY": "Kingston",
"STATE": "OK",
"ZIP": "73439",
"PHONE1": "(580) 564-2566",
"PHONE2": "",
"Location": "(33.99827, -96.674829)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.674829,
33.99827
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Quartz Mountain Resort, Arts & Conference Center",
"ADDRESS": "22469 Lodge Rd",
"CITY": "Lone Wolf",
"STATE": "OK",
"ZIP": "73655",
"PHONE1": "(580) 563-2424",
"PHONE2": "(877) 999-5567",
"Location": "(34.972553, -99.246504)"
},
"geometry": {
"type": "Point",
"coordinates": [
-99.246504,
34.972553
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Great Plains State Park",
"ADDRESS": "Hwy 183 & County Rd",
"CITY": "Mountain Park",
"STATE": "OK",
"ZIP": "73552",
"PHONE1": "(580) 569-2032",
"PHONE2": "",
"Location": "(34.701545, -98.948674)"
},
"geometry": {
"type": "Point",
"coordinates": [
-98.948674,
34.701545
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Dripping Springs State Park",
"ADDRESS": "16830 Dripping Springs Rd",
"CITY": "Okmulgee",
"STATE": "OK",
"ZIP": "74447",
"PHONE1": "(918) 756-5971",
"PHONE2": "",
"Location": "(35.611437, -96.068911)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.068911,
35.611437
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Okmulgee State Park",
"ADDRESS": "16830 Dripping Springs Rd",
"CITY": "Okmulgee",
"STATE": "OK",
"ZIP": "74447",
"PHONE1": "(918) 756-5971",
"PHONE2": "",
"Location": "(35.611437, -96.068911)"
},
"geometry": {
"type": "Point",
"coordinates": [
-96.068911,
35.611437
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Cherokee Landing State Park",
"ADDRESS": "28610 Park 20",
"CITY": "Park Hill",
"STATE": "OK",
"ZIP": "74451",
"PHONE1": "(918) 457-5716",
"PHONE2": "",
"Location": "(35.734169, -94.97123)"
},
"geometry": {
"type": "Point",
"coordinates": [
-94.97123,
35.734169
]
}
},
{
"type": "Feature",
"properties": {
"State Parks": "Lake Thunderbird State Park",
"ADDRESS": "13101 Alameda Dr",
"CITY": "Norman",
"STATE": "OK",
"ZIP": "73026",
"PHONE1": "(405) 360-3572",
"PHONE2": "",
"Location": "(35.232547, -97.250488)"
},
"geometry": {
"type": "Point",
"coordinates": [
-97.250488,
35.232547
]
}
}
]
}
var bounds = [
[-103.5, 33], // Southwest coordinates
[-94, 38] // Northeast coordinates
];
mapboxgl.accessToken = 'pk.eyJ1IjoiZGFycmVuamF3b3Jza2kiLCJhIjoiZmQ4OTYyNzJjYzc0OThiZTFjMmViMDE3ZmI0NTJmOTgifQ.3XwMxZz97E3nuPEZLoxohw';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/darrenjaworski/cinys0yag0002asnnnh8pb86a',
maxBounds: bounds
});
map.on('load', function(){
var url = '/darrenjaworski/raw/b7f36a2401c0f905b664abf24349d885/parks.geojson';
map.addSource('parks', {
type: 'geojson',
data: url
});
map.addLayer({
"id": "stateParks",
"type": "symbol",
"source": "parks",
"layout": {
"icon-image": "park-15",
"icon-allow-overlap": true
}
});
});
map.on('click', function (e) {
var features = map.queryRenderedFeatures(e.point, { layers: ['stateParks'] });
if (!features.length) {
return;
}
var feature = features[0];
// Populate the popup and set its coordinates
// based on the feature found.
var popup = new mapboxgl.Popup()
.setLngLat(feature.geometry.coordinates)
.setHTML(feature.properties['State Parks'])
.addTo(map);
});
map.on('mousemove', function (e) {
var features = map.queryRenderedFeatures(e.point, { layers: ['stateParks'] });
map.getCanvas().style.cursor = (features.length) ? 'pointer' : '';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment