Skip to content

Commit

Permalink
Merge pull request #315 from crisner/fix/make-layer-names-consistent
Browse files Browse the repository at this point in the history
Make layer names consistent in readme and layers hash strings
  • Loading branch information
sagarpreet-chadha authored Dec 23, 2019
2 parents ca6c0a6 + e8982b8 commit cf03e3d
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 82 deletions.
85 changes: 43 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,50 +22,51 @@ https://publiclab.org/notes/sagarpreet/06-06-2018/leaflet-environmental-layer-li

| Layer Name | Color |
| --------------------------- | ------- |
| Wisconsin Non-Metal | N/A |
| FracTracker_mobile | N/A |
| PurpleAirLayer-HeatMap | #8b0000 |
| PurpleAirLayer-Markers | #800080 |
| SkyTruth | #ff0000 |
| Fractracker | #ffff00 |
| PFASTracker | #00ff00 |
| ToxicRelease | #008000 |
| OdorReport | #ff00ff |
| MapKnitter | #D50039 |
| OpenInfraMap_Power | #ffc0cb |
| OpenInfraMap_Telecom | #0000ff |
| OpenInfraMap_Petroleum | #a52a2a |
| OpenInfraMap_Water | #4B0082 |
| Justicemap_income | #006400 |
| JusticeMap_americanIndian | #800000 |
| JusticeMap_asian | #ffa500 |
| JusticeMap_black | #FFD700 |
| JusticeMap_multi | #ffc0cb |
| JusticeMap_hispanic | #DCDCDC |
| JusticeMap_nonWhite | #808080 |
| JusticeMap_white | #a52a2a |
| JusticeMap_plurality | #800000 |
| Clouds | #80dfff |
| clouds (classic) | #b3f0ff |
| precipitation | #00ff55 |
| precipitation (classic) | #00008b |
| rain | #8080ff |
| rain (classic) | #1a1aff |
| snow | #80ffe5 |
| wisconsin | N/A |
| fracTrackerMobile | N/A |
| purpleLayer | #8b0000 |
| purpleairmarker | #800080 |
| skyTruth | #ff0000 |
| fractracker | #ffff00 |
| pfasLayer | #00ff00 |
| toxicReleaseLayer | #008000 |
| odorreport | #ff00ff |
| mapknitter | #D50039 |
| Power | #ffc0cb |
| Telecom | #0000ff |
| Petroleum | #a52a2a |
| Water | #4B0082 |
| income | #006400 |
| americanIndian | #800000 |
| asian | #ffa500 |
| black | #FFD700 |
| multi | #ffc0cb |
| hispanic | #DCDCDC |
| nonWhite | #808080 |
| white | #a52a2a |
| plurality | #800000 |
| clouds | #80dfff |
| cloudsClassic | #b3f0ff |
| precipitation | #00ff55 |
| precipitationClassic | #00008b |
| rain | #8080ff |
| rainClassic | #1a1aff |
| snow | #80ffe5 |
| pressure | #e62e00 |
| pressure contour (zoom in) | #ff3300 |
| temp | #ff3300 |
| pressureContour | #ff3300 |
| temperature | #ff3300 |
| wind | #00008b |
| Cities (zoom in) | #b3ffff |
| windrose (zoom in) | #008000 |
| Indigenous Lands Territories| #000000 |
| Indigenous Lands Languages | #000000 |
| Indigenous Lands Treaties | #000000 |
| Air Quality Index | #000000 |
| Open AQ | #000000 |
| Luftdaten Layer | #000000 |
| OpenSense | N/A |
| Landfills, Mines, Quarries | N/A |
| city | #b3ffff |
| windrose | #008000 |
| Territories | #000000 |
| Languages | #000000 |
| Treaties | #000000 |
| aqicnLayer | #000000 |
| openaq | #000000 |
| luftdaten | #000000 |
| opensense | N/A |
| osmLandfillMineQuarryLayer | N/A |
| eonetFiresLayer | #78fffa |


## Quick Setup :
Expand Down
80 changes: 40 additions & 40 deletions example/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,57 +170,57 @@ var overlayMaps = {
};

var allMapLayers = {
'BL1': baselayer1,
'BL2': baselayer2,
'BL3': baselayer3,
'BL4': baselayer4,
'Standard': baselayer1,
'Grey-scale': baselayer2,
'Streets': baselayer3,
'Dark': baselayer4,

// "PLpeople" : PLpeople,
'Wisconsin_NM': Wisconsin_NM,
'FT_mobile': FracTracker_mobile,
'PurpleHeat': PurpleLayer,
'Purple': PurpleAirMarkerLayer,
'STruth': SkyTruth,
'FracTL': Fractracker,
'PFAS': PFASTracker,
'ToxicR': ToxicRelease,
'OdorR': OdorReport,
'MapK': MapKnitter,
'OIMPower': OpenInfraMap_Power,
'OIMapTelecom': OpenInfraMap_Telecom,
'OIMPetroleum': OpenInfraMap_Petroleum,
'OIMWater': OpenInfraMap_Water,
'JMincome': Justicemap_income,
'JMamericanIndian': JusticeMap_americanIndian,
'JMasian': JusticeMap_asian,
'JMblack': JusticeMap_black,
'JMmulti': JusticeMap_multi,
'JMhispanic': JusticeMap_hispanic,
'JMnonWhite': JusticeMap_nonWhite,
'JMwhite': JusticeMap_white,
'JMplurality': JusticeMap_plurality,
'Clouds': clouds,
'cloudsclassic': cloudscls,
'wisconsin': Wisconsin_NM,
'fracTrackerMobile': FracTracker_mobile,
'purpleLayer': PurpleLayer,
'purpleairmarker': PurpleAirMarkerLayer,
'skytruth': SkyTruth,
'fractracker': Fractracker,
'pfasLayer': PFASTracker,
'toxicReleaseLayer': ToxicRelease,
'odorreport': OdorReport,
'mapknitter': MapKnitter,
'Power': OpenInfraMap_Power,
'Telecom': OpenInfraMap_Telecom,
'Petroleum': OpenInfraMap_Petroleum,
'Water': OpenInfraMap_Water,
'income': Justicemap_income,
'americanIndian': JusticeMap_americanIndian,
'asian': JusticeMap_asian,
'black': JusticeMap_black,
'multi': JusticeMap_multi,
'hispanic': JusticeMap_hispanic,
'nonWhite': JusticeMap_nonWhite,
'white': JusticeMap_white,
'plurality': JusticeMap_plurality,
'clouds': clouds,
'cloudsClassic': cloudscls,
'precipitation': precipitation,
'precipcls': precipitationcls,
'precipitationClassic': precipitationcls,
'rain': rain,
'raincls': raincls,
'rainClassic': raincls,
'snow': snow,
'pressure': pressure,
'pressurecontour': pressurecntr,
'temp': temp,
'pressureContour': pressurecntr,
'temperature': temp,
'wind': wind,
'Cities': city,
'city': city,
'windrose': windrose,
'Territories': IndigenousLandsTerritories,
'Languages': IndigenousLandsLanguages,
'Treaties': IndigenousLandsTreaties,
'AQI': AQICNLayer,
'OpenAq': OpenAqLayer,
'Luftaden': LuftdatenLayer,
'Opensense': OpenSenseLayer,
'LSM': OSMLandfillMineQuarryLayer,
'EONETFires': EonetFiresLayer,
'aqicnLayer': AQICNLayer,
'openaq': OpenAqLayer,
'luftdaten': LuftdatenLayer,
'opensense': OpenSenseLayer,
'osmLandfillMineQuarryLayer': OSMLandfillMineQuarryLayer,
'eonetFiresLayer': EonetFiresLayer,
};

// var oms = omsUtil(map, {
Expand Down

0 comments on commit cf03e3d

Please sign in to comment.