Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to ignore custom renderer for plant layer #173

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/components/Map/Layers/PlantLegend.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
import React from 'react';

export const PlantLegend = () => (
<div
id='legend-main_Power_Plant_8615'
className='esriLegendService'
style={{ display: 'block' }}
>
See{' '}
<a
target='_blank'
rel='noopener noreferrer'
href='http://www.arcgis.com/home/webmap/viewer.html?url=https://services3.arcgis.com/bWPjFyq029ChCGur/ArcGIS/rest/services/Power_Plant/FeatureServer/0&source=sd'
>
the ArcGIS map viewer
</a>
for an interactive map of the plant locations, including custom icons for
each plant type.
</div>
);

export const PlantLegendWithRenderer = () => (
<div
id='legend-main_Power_Plant_8615'
className='esriLegendService'
Expand Down
1 change: 1 addition & 0 deletions src/components/Map/MapContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ export const MapContainer = () => {
url={
'https://services3.arcgis.com/bWPjFyq029ChCGur/ArcGIS/rest/services/Power_Plant/FeatureServer/0'
}
ignoreRenderer={true}
/>
)}
{externalLayers.includes('county') && (
Expand Down