Skip to content

Commit

Permalink
use arcgis map for screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jan 16, 2024
1 parent c558b57 commit 94cc865
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Blocks/EmbedEEAMap/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ const View = (props) => {
setMapData(updatedMapData);
}, [map_visualization_data, data_query_params, enable_queries]);

const mapUrl = map_visualization_data?.layers?.map_layers[0]?.map_layer
?.map_service_url
? `${map_visualization_data.layers.map_layers[0].map_layer.map_service_url}?f=jsapi`
: '';

return (
<PrivacyProtection
data={data}
className="embed-map-visualization"
{...props}
data={mapUrl ? { ...data, url: mapUrl } : data}
>
{!!mapData && (
<>
Expand Down

0 comments on commit 94cc865

Please sign in to comment.