Skip to content

Commit

Permalink
feat(KmlLayer): add options to props
Browse files Browse the repository at this point in the history
* Original commit: e588e69
* Original author: @jsmapr1
* Closes #428, #406
  • Loading branch information
joe morgan authored and tomchentw committed Apr 20, 2017
1 parent f1bdfd6 commit 2968efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/KmlLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const controlledPropTypes = {
//
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#KmlLayer
defaultViewport: PropTypes.any,
options: PropTypes.any,
metadata: PropTypes.any,
status: PropTypes.any,
url: PropTypes.string,
Expand Down Expand Up @@ -56,6 +57,8 @@ const publicMethodMap = {

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

getOptions(kmlLayer) { return kmlLayer.getOptions(); },

getStatus(kmlLayer) { return kmlLayer.getStatus(); },

getUrl(kmlLayer) { return kmlLayer.getUrl(); },
Expand All @@ -67,6 +70,7 @@ const publicMethodMap = {
const controlledPropUpdaterMap = {
defaultViewport(kmlLayer, defaultViewport) { kmlLayer.setDefaultViewport(defaultViewport); },
metadata(kmlLayer, metadata) { kmlLayer.setMetadata(metadata); },
options(kmlLayer, options) { kmlLayer.setOptions(options); },
status(kmlLayer, status) { kmlLayer.setStatus(status); },
url(kmlLayer, url) { kmlLayer.setUrl(url); },
zIndex(kmlLayer, zIndex) { kmlLayer.setZIndex(zIndex); },
Expand Down

0 comments on commit 2968efc

Please sign in to comment.