Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #327 from Bayer-Group/layer-merge
Browse files Browse the repository at this point in the history
Layer merge LayerPanel action
  • Loading branch information
stazrad authored Aug 18, 2021
2 parents c02e8d9 + 4351a98 commit fa076c4
Show file tree
Hide file tree
Showing 199 changed files with 3,506 additions and 3,850 deletions.
2 changes: 1 addition & 1 deletion docs/BasemapBingMaps.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapBlankWhite.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/BasemapContainer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapManager.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapOpenStreetMap.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapStamenTerrain.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapStamenTonerDark.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BasemapStamenTonerLite.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_BasemapContainer.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_BasemapManager.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_BingMaps.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_BlankWhite.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_OpenStreetMap.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_StamenTerrain.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_StamenTonerDark.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_StamenTonerLite.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Basemaps_utils.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Compass.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/ContextMenu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ContextMenuCoords.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ContextMenuListItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ContextMenu_ContextMenu.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ContextMenu_ContextMenuCoords.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ContextMenu_ContextMenuListItem.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ControlGroup.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ControlGroupButton.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_Compass.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ControlGroup.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ControlGroupButton.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_Controls.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_CurrentLocation.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ScaleLine.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ZoomControls.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ZoomIn.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Controls_ZoomOut.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/CurrentLocation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DataLayers_utils.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Draw.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawBox.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawCircle.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/DrawContainer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawFreehand.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawLine.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawPin.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawPoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/DrawPolygon.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Box.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Circle.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Draw.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_DrawContainer.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Freehand.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Line.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Pin.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Point.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_Polygon.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Draw_utils.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GoogleDirections.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GoogleDirections_GoogleDirections.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GooglePlacesSearch.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GooglePlacesSearch_GooglePlacesSearch.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/HeatmapControls.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Heatmap_HeatmapControls.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ImageExif_ImageExif.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelActionExport.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelActionExtent.html

Large diffs are not rendered by default.

327 changes: 327 additions & 0 deletions docs/LayerPanelActionHeatmap.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/LayerPanelActionImport.html

Large diffs are not rendered by default.

327 changes: 327 additions & 0 deletions docs/LayerPanelActionMerge.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelActionOpacity.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelActionRemove.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/LayerPanelActions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/LayerPanelBase.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelCheckbox.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelContent.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelHeader.html

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions docs/LayerPanelLayersPage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelList.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelListItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelMenu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanelPage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanel_LayerPanel.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanel_LayerPanelActionExport_index.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanel_LayerPanelActionExport_utils.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/LayerPanel_LayerPanelActionExtent_index.js.html

Large diffs are not rendered by default.

187 changes: 187 additions & 0 deletions docs/LayerPanel_LayerPanelActionHeatmap_index.js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ol-kit | LayerPanel/LayerPanelActionHeatmap/index.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densityDpi=device-dpi" />


<!-- these scripts must be at the top to properly syntax highlight code examples -->
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js" integrity="sha256-FiZMk1zgTeujzf/+vomWZGZ9r00+xnGvOgXoj0Jo1jA=" crossorigin="anonymous"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow.min.css">
<link type="text/css" rel="stylesheet" href="styles/app.css">
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
</head>

<body>
<div id="stickyNavbarOverlay"></div>
<div class="top-navbar">
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a href="index.html"><img src="static/ol-kit-logo.png" alt="logo"></a>
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>

<div class="navbar-menu">
<div class="navbar-end">

<div class="navbar-item">
<a href="tutorial-Getting%20Started.html">
Get Started
</a>
</div>

<div class="navbar-item">
<a href="docs.html">
Docs
</a>
</div>

<div class="navbar-item">
<a href="https://github.com/MonsantoCo/ol-kit">
Github
</a>
</div>

</div>
</div>

</nav>
</div>
</div>
<div id="page-wrapper" class="container">
<div class="columns">
<div class="column is-3" id="sidebar-nav">
<div class="sidebar sidebar__inner">
<nav>
<div class="category"><h3>Tutorials</h3><ul><li><a class="undefined"href="tutorial-Getting Started.html">Getting Started</a></li><li><a class="undefined"href="tutorial-LayerPanel_.html">LayerPanel</a></li><li><a class="undefined"href="tutorial-Popup_.html">Popup</a></li><li><a class="undefined"href="tutorial-TimeSlider_.html">TimeSlider</a></li><li><a class="undefined"href="tutorial-connectToContext.html">connectToContext</a></li><li><a class="undefined"href="tutorial-i18n Support.html">i18n Support</a></li></ul></div><div class="category"><h2>Basemap</h2><h3>Components</h3><ul><li><a href="BasemapBingMaps.html">BasemapBingMaps</a></li><li><a href="BasemapBlankWhite.html">BasemapBlankWhite</a></li><li><a href="BasemapContainer.html">BasemapContainer</a></li><li><a href="BasemapManager.html">BasemapManager</a></li><li><a href="BasemapOpenStreetMap.html">BasemapOpenStreetMap</a></li><li><a href="BasemapStamenTerrain.html">BasemapStamenTerrain</a></li><li><a href="BasemapStamenTonerDark.html">BasemapStamenTonerDark</a></li><li><a href="BasemapStamenTonerLite.html">BasemapStamenTonerLite</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#loadBasemapLayer">loadBasemapLayer</a></li></ul></div><div class="category"><h2>Classes</h2><h3>Utils</h3><ul><li><a href="global.html#VectorLayer">VectorLayer</a></li><li><a href="global.html#VectorTileLayer">VectorTileLayer</a></li></ul></div><div class="category"><h2>ContextMenu</h2><h3>Components</h3><ul><li><a href="ContextMenu.html">ContextMenu</a></li><li><a href="ContextMenuCoords.html">ContextMenuCoords</a></li><li><a href="ContextMenuListItem.html">ContextMenuListItem</a></li></ul></div><div class="category"><h2>Controls</h2><h3>Components</h3><ul><li><a href="Compass.html">Compass</a></li><li><a href="ControlGroup.html">ControlGroup</a></li><li><a href="ControlGroupButton.html">ControlGroupButton</a></li><li><a href="Controls.html">Controls</a></li><li><a href="CurrentLocation.html">CurrentLocation</a></li><li><a href="ZoomControls.html">ZoomControls</a></li><li><a href="ZoomIn.html">ZoomIn</a></li><li><a href="ZoomOut.html">ZoomOut</a></li></ul></div><div class="category"><h2>DataLayers</h2><h3>Utils</h3><ul><li><a href="global.html#loadDataLayer">loadDataLayer</a></li></ul></div><div class="category"><h2>Draw</h2><h3>Components</h3><ul><li><a href="Draw.html">Draw</a></li><li><a href="DrawBox.html">DrawBox</a></li><li><a href="DrawCircle.html">DrawCircle</a></li><li><a href="DrawContainer.html">DrawContainer</a></li><li><a href="DrawFreehand.html">DrawFreehand</a></li><li><a href="DrawLine.html">DrawLine</a></li><li><a href="DrawPin.html">DrawPin</a></li><li><a href="DrawPoint.html">DrawPoint</a></li><li><a href="DrawPolygon.html">DrawPolygon</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#getStyledFeatures">getStyledFeatures</a></li><li><a href="global.html#styleText">styleText</a></li></ul></div><div class="category"><h2>GoogleDirections</h2><h3>Components</h3><ul><li><a href="GoogleDirections.html">GoogleDirections</a></li></ul></div><div class="category"><h2>GooglePlacesSearch</h2><h3>Components</h3><ul><li><a href="GooglePlacesSearch.html">GooglePlacesSearch</a></li></ul></div><div class="category"><h2>Heatmap</h2><h3>Components</h3><ul><li><a href="HeatmapControls.html">HeatmapControls</a></li></ul></div><div class="category"><h2>LayerPanel</h2><h3>Components</h3><ul><li><a href="LayerPanel.html">LayerPanel</a></li><li><a href="LayerPanelActionExport.html">LayerPanelActionExport</a></li><li><a href="LayerPanelActionExtent.html">LayerPanelActionExtent</a></li><li><a href="LayerPanelActionHeatmap.html">LayerPanelActionHeatmap</a></li><li><a href="LayerPanelActionImport.html">LayerPanelActionImport</a></li><li><a href="LayerPanelActionMerge.html">LayerPanelActionMerge</a></li><li><a href="LayerPanelActionOpacity.html">LayerPanelActionOpacity</a></li><li><a href="LayerPanelActionRemove.html">LayerPanelActionRemove</a></li><li><a href="LayerPanelActions.html">LayerPanelActions</a></li><li><a href="LayerPanelBase.html">LayerPanelBase</a></li><li><a href="LayerPanelCheckbox.html">LayerPanelCheckbox</a></li><li><a href="LayerPanelContent.html">LayerPanelContent</a></li><li><a href="LayerPanelHeader.html">LayerPanelHeader</a></li><li><a href="LayerPanelLayersPage.html">LayerPanelLayersPage</a></li><li><a href="LayerPanelList.html">LayerPanelList</a></li><li><a href="LayerPanelListItem.html">LayerPanelListItem</a></li><li><a href="LayerPanelMenu.html">LayerPanelMenu</a></li><li><a href="LayerPanelPage.html">LayerPanelPage</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#addHeatmapLayer">addHeatmapLayer</a></li><li><a href="global.html#addVectorLayer">addVectorLayer</a></li><li><a href="global.html#convertFileToFeatures">convertFileToFeatures</a></li><li><a href="global.html#convertFileToLayer">convertFileToLayer</a></li><li><a href="global.html#exportFeatures">exportFeatures</a></li></ul></div><div class="category"><h2>LayerStyler</h2><h3>Components</h3><ul><li><a href="LayerStyler.html">LayerStyler</a></li></ul></div><div class="category"><h2>Map</h2><h3>Components</h3><ul><li><a href="Map.html">Map</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#addSelectInteraction">addSelectInteraction</a></li><li><a href="global.html#centerAndZoom">centerAndZoom</a></li><li><a href="global.html#convertXYtoLatLong">convertXYtoLatLong</a></li><li><a href="global.html#createMap">createMap</a></li><li><a href="global.html#createSelectInteraction">createSelectInteraction</a></li><li><a href="global.html#getSelectInteraction">getSelectInteraction</a></li><li><a href="global.html#updateMapFromUrl">updateMapFromUrl</a></li><li><a href="global.html#updateUrlFromMap">updateUrlFromMap</a></li></ul></div><div class="category"><h2>MultiMap</h2><h3>Components</h3><ul><li><a href="MultiMapManager.html">MultiMapManager</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#syncViewEvents">syncViewEvents</a></li></ul></div><div class="category"><h2>PDF</h2><h3>Utils</h3><ul><li><a href="global.html#convertSvgToPDFTemplate">convertSvgToPDFTemplate</a></li><li><a href="global.html#printPDFTemplate">printPDFTemplate</a></li></ul></div><div class="category"><h2>Popup</h2><h3>Components</h3><ul><li><a href="Popup.html">Popup</a></li><li><a href="PopupActionGroup.html">PopupActionGroup</a></li><li><a href="PopupActionItem.html">PopupActionItem</a></li><li><a href="PopupActionLink.html">PopupActionLink</a></li><li><a href="PopupBase.html">PopupBase</a></li><li><a href="PopupDataList.html">PopupDataList</a></li><li><a href="PopupDefaultInsert.html">PopupDefaultInsert</a></li><li><a href="PopupDefaultPage.html">PopupDefaultPage</a></li><li><a href="PopupPageLayout.html">PopupPageLayout</a></li><li><a href="PopupPageLayoutChild.html">PopupPageLayoutChild</a></li><li><a href="PopupTabs.html">PopupTabs</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#addMovementListener">addMovementListener</a></li><li><a href="global.html#calculateViewPadding">calculateViewPadding</a></li><li><a href="global.html#getLayersAndFeaturesForEvent">getLayersAndFeaturesForEvent</a></li><li><a href="global.html#getPopupPositionFromFeatures">getPopupPositionFromFeatures</a></li><li><a href="global.html#removeMovementListener">removeMovementListener</a></li><li><a href="global.html#sanitizeProperties">sanitizeProperties</a></li></ul></div><div class="category"><h2>PopupActionCopyWkt</h2><h3>Components</h3><ul><li><a href="PopupActionCopyWkt.html">PopupActionCopyWkt</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#convertFeatureToWkt">convertFeatureToWkt</a></li><li><a href="global.html#copyTextToClipboard">copyTextToClipboard</a></li><li><a href="global.html#copyWktToClipbard">copyWktToClipbard</a></li></ul></div><div class="category"><h2>PopupActionGoogleMaps</h2><h3>Components</h3><ul><li><a href="PopupActionGoogleMaps.html">PopupActionGoogleMaps</a></li></ul></div><div class="category"><h2>Project</h2><h3>Components</h3><ul><li><a href="ProjectMenu.html">ProjectMenu</a></li></ul><h3>Utils</h3><ul><li><a href="global.html#createProject">createProject</a></li><li><a href="global.html#loadProject">loadProject</a></li></ul></div><div class="category"><h2>Provider</h2><h3>Utils</h3><ul><li><a href="global.html#connectToContext">connectToContext</a></li></ul></div><div class="category"><h2>TabbedPanel</h2><h3>Components</h3><ul><li><a href="TabbedPanel.html">TabbedPanel</a></li></ul></div><div class="category"><h2>TimeSlider</h2><h3>Components</h3><ul><li><a href="TimeSlider.html">TimeSlider</a></li><li><a href="TimeSliderBase.html">TimeSliderBase</a></li></ul></div>
</nav>
</div>
</div>
<div class="column is-9-desktop" id="main-content-wrapper">
<div class="content">





<section>
<article>
<pre class="prettyprint source linenums"><code>import React, { Component } from 'react'
import PropTypes from 'prop-types'
import MenuItem from '@material-ui/core/MenuItem'
import olLayerVector from 'ol/layer/Vector'
import { connectToContext } from 'Provider'
import en from 'locales/en'
import { addHeatmapLayer } from './utils'

/**
* @component
* @category LayerPanel
* @since 1.13.0
*/
class LayerPanelActionHeatmap extends Component {
handleCreateHeatmap = () => {
const { map, layer, onCreateHeatmap } = this.props
const { handleMenuClose } = this.props
const heatmapLayer = addHeatmapLayer(map, layer)

onCreateHeatmap(heatmapLayer)
handleMenuClose()
}

hasVisibleVectorLayers = () => {
const visibleLayers = this.getVisibleLayers()

return visibleLayers.filter(layer => {
return this.isValidVectorLayer(layer)
}).length > 1 // at least two layers required for a merge
}

isValidVectorLayer = (layer) => {
return (layer instanceof olLayerVector || (layer &amp;&amp; layer.isVectorLayer))
}

render () {
const { layer, translations } = this.props

return (
&lt;MenuItem
key='heatmap'
data-testid='LayerPanel.heatmap'
disableGutters={false}
disabled={!this.isValidVectorLayer(layer)}
onClick={this.handleCreateHeatmap} >
{translations['_ol_kit.LayerPanelActions.heatmap']}
&lt;/MenuItem>
)
}
}

LayerPanelActionHeatmap.propTypes = {
/** A function that closes the LayerPanelMenu */
handleMenuClose: PropTypes.func,

/** A Vector Layer */
layer: PropTypes.object.isRequired,

/** Openlayers map */
map: PropTypes.object.isRequired,

/** Callback fired after merge, called with new layer as argument */
onCreateHeatmap: PropTypes.func,

/** An object of translation key/value pairs */
translations: PropTypes.object.isRequired
}

LayerPanelActionHeatmap.defaultProps = {
handleMenuClose: () => {},
onCreateHeatmap: () => {},
translations: en
}

export default connectToContext(LayerPanelActionHeatmap)
</code></pre>
</article>
</section>




</div>
</div>
</div>
</div>
<footer class="footer">
<div class="content has-text-centered">
<div style="margin: 0 auto; text-align: center; background: white; margin: 30px 0;">
<a href="https://www.cropscience.bayer.com" target="_blank">
<img src="static/bayer-logo.png" width="200px" />
</a>
<div>&copy; 2020 Bayer Crop Science; All Rights Reserved. <br />
<a style="color: #a2a2a2" target="_blank" href="https://bayer.talentnet.community/jobs/881c8317-33b7-435f-9410-359b1b925322"> Geospatial Developer Career Opportunities </a>
</div>
</div>
</div>
</footer>

<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js" integrity="sha256-vrn14y7WH7zgEElyQqm2uCGSQrX/xjYDjniRUQx3NyU=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/sticky-sidebar/dist/sticky-sidebar.min.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
Loading

0 comments on commit fa076c4

Please sign in to comment.