Skip to content

Commit 2968efc

Browse files
joe morgantomchentw
authored andcommitted
feat(KmlLayer): add options to props
* Original commit: e588e69 * Original author: @jsmapr1 * Closes #428, #406
1 parent f1bdfd6 commit 2968efc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/KmlLayer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const controlledPropTypes = {
2727
//
2828
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#KmlLayer
2929
defaultViewport: PropTypes.any,
30+
options: PropTypes.any,
3031
metadata: PropTypes.any,
3132
status: PropTypes.any,
3233
url: PropTypes.string,
@@ -56,6 +57,8 @@ const publicMethodMap = {
5657

5758
getMetadata(kmlLayer) { return kmlLayer.getMetadata(); },
5859

60+
getOptions(kmlLayer) { return kmlLayer.getOptions(); },
61+
5962
getStatus(kmlLayer) { return kmlLayer.getStatus(); },
6063

6164
getUrl(kmlLayer) { return kmlLayer.getUrl(); },
@@ -67,6 +70,7 @@ const publicMethodMap = {
6770
const controlledPropUpdaterMap = {
6871
defaultViewport(kmlLayer, defaultViewport) { kmlLayer.setDefaultViewport(defaultViewport); },
6972
metadata(kmlLayer, metadata) { kmlLayer.setMetadata(metadata); },
73+
options(kmlLayer, options) { kmlLayer.setOptions(options); },
7074
status(kmlLayer, status) { kmlLayer.setStatus(status); },
7175
url(kmlLayer, url) { kmlLayer.setUrl(url); },
7276
zIndex(kmlLayer, zIndex) { kmlLayer.setZIndex(zIndex); },

0 commit comments

Comments
 (0)