forked from Charmatzis/react-leaflet-bing
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christos Charmatzis
committed
Nov 6, 2019
1 parent
94d39b9
commit 8e2a335
Showing
6 changed files
with
11,357 additions
and
3,790 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
"use strict"; | ||
|
||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
|
||
exports.__esModule = true; | ||
exports.default = void 0; | ||
|
||
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose")); | ||
|
||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
|
||
var _react = _interopRequireDefault(require("react")); | ||
|
||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
|
||
var _reactLeaflet = require("react-leaflet"); | ||
|
||
var _leaflet = require("./leaflet.bing"); | ||
|
||
var BingLayer = | ||
/*#__PURE__*/ | ||
function (_GridLayer) { | ||
(0, _inheritsLoose2.default)(BingLayer, _GridLayer); | ||
|
||
function BingLayer() { | ||
return _GridLayer.apply(this, arguments) || this; | ||
} | ||
|
||
var _proto = BingLayer.prototype; | ||
|
||
_proto.createLeafletElement = function createLeafletElement(props) { | ||
return L.bingLayer(props.bingkey, this.getOptions(props)); | ||
}; | ||
|
||
return BingLayer; | ||
}(_reactLeaflet.GridLayer); | ||
|
||
(0, _defineProperty2.default)(BingLayer, "propTypes", { | ||
bingkey: _propTypes.default.string.isRequired | ||
}); | ||
|
||
var _default = (0, _reactLeaflet.withLeaflet)(BingLayer); | ||
|
||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"use strict"; | ||
|
||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
|
||
exports.__esModule = true; | ||
|
||
var _Bing = _interopRequireDefault(require("./Bing")); | ||
|
||
exports.BingLayer = _Bing.default; |
Oops, something went wrong.