Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var csvLayer = new CSVLayer({
- url: numberLayers[0].Url,
- popupTemplate: popupTemplate,
- featureReduction: {
- type: "selection"
- },
- });
- var popupTemplate = {
- title: "{SensorTitle}",
- content:
- [
- {
- type: "fields",
- fieldInfos: [
- { fieldName: "DateTime", label: "Date" },
- { fieldName: "Temp", label: "Temperature (°F)" },
- { fieldName: "Humidity", label: "Humidity (%)" },
- { fieldName: "DewPoint", label: "Dew Point (°F)" },
- { fieldName: "PM1", label: "PM 1.0 (µg/m3)" },
- { fieldName: "PM25", label: "PM 2.5 (µg/m3)" },
- { fieldName: "PM10", label: "PM 10.0 (µg/m3)" },
- { fieldName: "O3", label: "Ozone (ppb)" },
- { fieldName: "NO2", label: "Nitrogen Dioxide (ppb)" },
- { fieldName: "CO", label: "Carbon Monoxide (ppb)" },
- ]
- },
- ],
- actions:
- [
- { title: "More Information", id: "more-info", className: "esri-icon-notice-round" }
- ],
- overwriteActions: true,
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement