react-map4d-map 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1104 +1,5 @@
1
1
  import React, { createContext, useContext, useRef, useEffect } from 'react';
2
2
 
3
- function createCommonjsModule(fn, module) {
4
- return module = { exports: {} }, fn(module, module.exports), module.exports;
5
- }
6
-
7
- /** @license React v16.13.1
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
16
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
17
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
18
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
19
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
20
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
21
-
22
- var reactIs_production_min = {
23
- AsyncMode: AsyncMode,
24
- ConcurrentMode: ConcurrentMode,
25
- ContextConsumer: ContextConsumer,
26
- ContextProvider: ContextProvider,
27
- Element: Element,
28
- ForwardRef: ForwardRef,
29
- Fragment: Fragment,
30
- Lazy: Lazy,
31
- Memo: Memo,
32
- Portal: Portal,
33
- Profiler: Profiler,
34
- StrictMode: StrictMode,
35
- Suspense: Suspense,
36
- isAsyncMode: isAsyncMode,
37
- isConcurrentMode: isConcurrentMode,
38
- isContextConsumer: isContextConsumer,
39
- isContextProvider: isContextProvider,
40
- isElement: isElement,
41
- isForwardRef: isForwardRef,
42
- isFragment: isFragment,
43
- isLazy: isLazy,
44
- isMemo: isMemo,
45
- isPortal: isPortal,
46
- isProfiler: isProfiler,
47
- isStrictMode: isStrictMode,
48
- isSuspense: isSuspense,
49
- isValidElementType: isValidElementType,
50
- typeOf: typeOf
51
- };
52
-
53
- var reactIs_development = createCommonjsModule(function (module, exports) {
54
-
55
-
56
-
57
- if (process.env.NODE_ENV !== "production") {
58
- (function() {
59
-
60
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
61
- // nor polyfill, then a plain number is used for performance.
62
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
63
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
64
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
65
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
66
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
67
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
68
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
69
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
70
- // (unstable) APIs that have been removed. Can we remove the symbols?
71
-
72
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
73
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
74
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
75
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
76
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
77
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
78
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
79
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
80
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
81
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
82
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
83
-
84
- function isValidElementType(type) {
85
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
86
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
87
- }
88
-
89
- function typeOf(object) {
90
- if (typeof object === 'object' && object !== null) {
91
- var $$typeof = object.$$typeof;
92
-
93
- switch ($$typeof) {
94
- case REACT_ELEMENT_TYPE:
95
- var type = object.type;
96
-
97
- switch (type) {
98
- case REACT_ASYNC_MODE_TYPE:
99
- case REACT_CONCURRENT_MODE_TYPE:
100
- case REACT_FRAGMENT_TYPE:
101
- case REACT_PROFILER_TYPE:
102
- case REACT_STRICT_MODE_TYPE:
103
- case REACT_SUSPENSE_TYPE:
104
- return type;
105
-
106
- default:
107
- var $$typeofType = type && type.$$typeof;
108
-
109
- switch ($$typeofType) {
110
- case REACT_CONTEXT_TYPE:
111
- case REACT_FORWARD_REF_TYPE:
112
- case REACT_LAZY_TYPE:
113
- case REACT_MEMO_TYPE:
114
- case REACT_PROVIDER_TYPE:
115
- return $$typeofType;
116
-
117
- default:
118
- return $$typeof;
119
- }
120
-
121
- }
122
-
123
- case REACT_PORTAL_TYPE:
124
- return $$typeof;
125
- }
126
- }
127
-
128
- return undefined;
129
- } // AsyncMode is deprecated along with isAsyncMode
130
-
131
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
132
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
133
- var ContextConsumer = REACT_CONTEXT_TYPE;
134
- var ContextProvider = REACT_PROVIDER_TYPE;
135
- var Element = REACT_ELEMENT_TYPE;
136
- var ForwardRef = REACT_FORWARD_REF_TYPE;
137
- var Fragment = REACT_FRAGMENT_TYPE;
138
- var Lazy = REACT_LAZY_TYPE;
139
- var Memo = REACT_MEMO_TYPE;
140
- var Portal = REACT_PORTAL_TYPE;
141
- var Profiler = REACT_PROFILER_TYPE;
142
- var StrictMode = REACT_STRICT_MODE_TYPE;
143
- var Suspense = REACT_SUSPENSE_TYPE;
144
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
145
-
146
- function isAsyncMode(object) {
147
- {
148
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
149
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
150
-
151
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
152
- }
153
- }
154
-
155
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
156
- }
157
- function isConcurrentMode(object) {
158
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
159
- }
160
- function isContextConsumer(object) {
161
- return typeOf(object) === REACT_CONTEXT_TYPE;
162
- }
163
- function isContextProvider(object) {
164
- return typeOf(object) === REACT_PROVIDER_TYPE;
165
- }
166
- function isElement(object) {
167
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
168
- }
169
- function isForwardRef(object) {
170
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
171
- }
172
- function isFragment(object) {
173
- return typeOf(object) === REACT_FRAGMENT_TYPE;
174
- }
175
- function isLazy(object) {
176
- return typeOf(object) === REACT_LAZY_TYPE;
177
- }
178
- function isMemo(object) {
179
- return typeOf(object) === REACT_MEMO_TYPE;
180
- }
181
- function isPortal(object) {
182
- return typeOf(object) === REACT_PORTAL_TYPE;
183
- }
184
- function isProfiler(object) {
185
- return typeOf(object) === REACT_PROFILER_TYPE;
186
- }
187
- function isStrictMode(object) {
188
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
189
- }
190
- function isSuspense(object) {
191
- return typeOf(object) === REACT_SUSPENSE_TYPE;
192
- }
193
-
194
- exports.AsyncMode = AsyncMode;
195
- exports.ConcurrentMode = ConcurrentMode;
196
- exports.ContextConsumer = ContextConsumer;
197
- exports.ContextProvider = ContextProvider;
198
- exports.Element = Element;
199
- exports.ForwardRef = ForwardRef;
200
- exports.Fragment = Fragment;
201
- exports.Lazy = Lazy;
202
- exports.Memo = Memo;
203
- exports.Portal = Portal;
204
- exports.Profiler = Profiler;
205
- exports.StrictMode = StrictMode;
206
- exports.Suspense = Suspense;
207
- exports.isAsyncMode = isAsyncMode;
208
- exports.isConcurrentMode = isConcurrentMode;
209
- exports.isContextConsumer = isContextConsumer;
210
- exports.isContextProvider = isContextProvider;
211
- exports.isElement = isElement;
212
- exports.isForwardRef = isForwardRef;
213
- exports.isFragment = isFragment;
214
- exports.isLazy = isLazy;
215
- exports.isMemo = isMemo;
216
- exports.isPortal = isPortal;
217
- exports.isProfiler = isProfiler;
218
- exports.isStrictMode = isStrictMode;
219
- exports.isSuspense = isSuspense;
220
- exports.isValidElementType = isValidElementType;
221
- exports.typeOf = typeOf;
222
- })();
223
- }
224
- });
225
-
226
- var reactIs = createCommonjsModule(function (module) {
227
-
228
- if (process.env.NODE_ENV === 'production') {
229
- module.exports = reactIs_production_min;
230
- } else {
231
- module.exports = reactIs_development;
232
- }
233
- });
234
-
235
- /*
236
- object-assign
237
- (c) Sindre Sorhus
238
- @license MIT
239
- */
240
- /* eslint-disable no-unused-vars */
241
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
242
- var hasOwnProperty = Object.prototype.hasOwnProperty;
243
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
244
-
245
- function toObject(val) {
246
- if (val === null || val === undefined) {
247
- throw new TypeError('Object.assign cannot be called with null or undefined');
248
- }
249
-
250
- return Object(val);
251
- }
252
-
253
- function shouldUseNative() {
254
- try {
255
- if (!Object.assign) {
256
- return false;
257
- }
258
-
259
- // Detect buggy property enumeration order in older V8 versions.
260
-
261
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
262
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
263
- test1[5] = 'de';
264
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
265
- return false;
266
- }
267
-
268
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
269
- var test2 = {};
270
- for (var i = 0; i < 10; i++) {
271
- test2['_' + String.fromCharCode(i)] = i;
272
- }
273
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
274
- return test2[n];
275
- });
276
- if (order2.join('') !== '0123456789') {
277
- return false;
278
- }
279
-
280
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
281
- var test3 = {};
282
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
283
- test3[letter] = letter;
284
- });
285
- if (Object.keys(Object.assign({}, test3)).join('') !==
286
- 'abcdefghijklmnopqrst') {
287
- return false;
288
- }
289
-
290
- return true;
291
- } catch (err) {
292
- // We don't expect any of the above to throw, but better to be safe.
293
- return false;
294
- }
295
- }
296
-
297
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
298
- var from;
299
- var to = toObject(target);
300
- var symbols;
301
-
302
- for (var s = 1; s < arguments.length; s++) {
303
- from = Object(arguments[s]);
304
-
305
- for (var key in from) {
306
- if (hasOwnProperty.call(from, key)) {
307
- to[key] = from[key];
308
- }
309
- }
310
-
311
- if (getOwnPropertySymbols) {
312
- symbols = getOwnPropertySymbols(from);
313
- for (var i = 0; i < symbols.length; i++) {
314
- if (propIsEnumerable.call(from, symbols[i])) {
315
- to[symbols[i]] = from[symbols[i]];
316
- }
317
- }
318
- }
319
- }
320
-
321
- return to;
322
- };
323
-
324
- /**
325
- * Copyright (c) 2013-present, Facebook, Inc.
326
- *
327
- * This source code is licensed under the MIT license found in the
328
- * LICENSE file in the root directory of this source tree.
329
- */
330
-
331
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
332
-
333
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
334
-
335
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
336
-
337
- var printWarning = function() {};
338
-
339
- if (process.env.NODE_ENV !== 'production') {
340
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
341
- var loggedTypeFailures = {};
342
- var has$1 = has;
343
-
344
- printWarning = function(text) {
345
- var message = 'Warning: ' + text;
346
- if (typeof console !== 'undefined') {
347
- console.error(message);
348
- }
349
- try {
350
- // --- Welcome to debugging React ---
351
- // This error was thrown as a convenience so that you can use this stack
352
- // to find the callsite that caused this warning to fire.
353
- throw new Error(message);
354
- } catch (x) { /**/ }
355
- };
356
- }
357
-
358
- /**
359
- * Assert that the values match with the type specs.
360
- * Error messages are memorized and will only be shown once.
361
- *
362
- * @param {object} typeSpecs Map of name to a ReactPropType
363
- * @param {object} values Runtime values that need to be type-checked
364
- * @param {string} location e.g. "prop", "context", "child context"
365
- * @param {string} componentName Name of the component for error messages.
366
- * @param {?Function} getStack Returns the component stack.
367
- * @private
368
- */
369
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
370
- if (process.env.NODE_ENV !== 'production') {
371
- for (var typeSpecName in typeSpecs) {
372
- if (has$1(typeSpecs, typeSpecName)) {
373
- var error;
374
- // Prop type validation may throw. In case they do, we don't want to
375
- // fail the render phase where it didn't fail before. So we log it.
376
- // After these have been cleaned up, we'll let them throw.
377
- try {
378
- // This is intentionally an invariant that gets caught. It's the same
379
- // behavior as without this statement except with a better message.
380
- if (typeof typeSpecs[typeSpecName] !== 'function') {
381
- var err = Error(
382
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
383
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
384
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
385
- );
386
- err.name = 'Invariant Violation';
387
- throw err;
388
- }
389
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
390
- } catch (ex) {
391
- error = ex;
392
- }
393
- if (error && !(error instanceof Error)) {
394
- printWarning(
395
- (componentName || 'React class') + ': type specification of ' +
396
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
397
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
398
- 'You may have forgotten to pass an argument to the type checker ' +
399
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
400
- 'shape all require an argument).'
401
- );
402
- }
403
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
404
- // Only monitor this failure once because there tends to be a lot of the
405
- // same error.
406
- loggedTypeFailures[error.message] = true;
407
-
408
- var stack = getStack ? getStack() : '';
409
-
410
- printWarning(
411
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
412
- );
413
- }
414
- }
415
- }
416
- }
417
- }
418
-
419
- /**
420
- * Resets warning cache when testing.
421
- *
422
- * @private
423
- */
424
- checkPropTypes.resetWarningCache = function() {
425
- if (process.env.NODE_ENV !== 'production') {
426
- loggedTypeFailures = {};
427
- }
428
- };
429
-
430
- var checkPropTypes_1 = checkPropTypes;
431
-
432
- var printWarning$1 = function() {};
433
-
434
- if (process.env.NODE_ENV !== 'production') {
435
- printWarning$1 = function(text) {
436
- var message = 'Warning: ' + text;
437
- if (typeof console !== 'undefined') {
438
- console.error(message);
439
- }
440
- try {
441
- // --- Welcome to debugging React ---
442
- // This error was thrown as a convenience so that you can use this stack
443
- // to find the callsite that caused this warning to fire.
444
- throw new Error(message);
445
- } catch (x) {}
446
- };
447
- }
448
-
449
- function emptyFunctionThatReturnsNull() {
450
- return null;
451
- }
452
-
453
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
454
- /* global Symbol */
455
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
456
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
457
-
458
- /**
459
- * Returns the iterator method function contained on the iterable object.
460
- *
461
- * Be sure to invoke the function with the iterable as context:
462
- *
463
- * var iteratorFn = getIteratorFn(myIterable);
464
- * if (iteratorFn) {
465
- * var iterator = iteratorFn.call(myIterable);
466
- * ...
467
- * }
468
- *
469
- * @param {?object} maybeIterable
470
- * @return {?function}
471
- */
472
- function getIteratorFn(maybeIterable) {
473
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
474
- if (typeof iteratorFn === 'function') {
475
- return iteratorFn;
476
- }
477
- }
478
-
479
- /**
480
- * Collection of methods that allow declaration and validation of props that are
481
- * supplied to React components. Example usage:
482
- *
483
- * var Props = require('ReactPropTypes');
484
- * var MyArticle = React.createClass({
485
- * propTypes: {
486
- * // An optional string prop named "description".
487
- * description: Props.string,
488
- *
489
- * // A required enum prop named "category".
490
- * category: Props.oneOf(['News','Photos']).isRequired,
491
- *
492
- * // A prop named "dialog" that requires an instance of Dialog.
493
- * dialog: Props.instanceOf(Dialog).isRequired
494
- * },
495
- * render: function() { ... }
496
- * });
497
- *
498
- * A more formal specification of how these methods are used:
499
- *
500
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
501
- * decl := ReactPropTypes.{type}(.isRequired)?
502
- *
503
- * Each and every declaration produces a function with the same signature. This
504
- * allows the creation of custom validation functions. For example:
505
- *
506
- * var MyLink = React.createClass({
507
- * propTypes: {
508
- * // An optional string or URI prop named "href".
509
- * href: function(props, propName, componentName) {
510
- * var propValue = props[propName];
511
- * if (propValue != null && typeof propValue !== 'string' &&
512
- * !(propValue instanceof URI)) {
513
- * return new Error(
514
- * 'Expected a string or an URI for ' + propName + ' in ' +
515
- * componentName
516
- * );
517
- * }
518
- * }
519
- * },
520
- * render: function() {...}
521
- * });
522
- *
523
- * @internal
524
- */
525
-
526
- var ANONYMOUS = '<<anonymous>>';
527
-
528
- // Important!
529
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
530
- var ReactPropTypes = {
531
- array: createPrimitiveTypeChecker('array'),
532
- bigint: createPrimitiveTypeChecker('bigint'),
533
- bool: createPrimitiveTypeChecker('boolean'),
534
- func: createPrimitiveTypeChecker('function'),
535
- number: createPrimitiveTypeChecker('number'),
536
- object: createPrimitiveTypeChecker('object'),
537
- string: createPrimitiveTypeChecker('string'),
538
- symbol: createPrimitiveTypeChecker('symbol'),
539
-
540
- any: createAnyTypeChecker(),
541
- arrayOf: createArrayOfTypeChecker,
542
- element: createElementTypeChecker(),
543
- elementType: createElementTypeTypeChecker(),
544
- instanceOf: createInstanceTypeChecker,
545
- node: createNodeChecker(),
546
- objectOf: createObjectOfTypeChecker,
547
- oneOf: createEnumTypeChecker,
548
- oneOfType: createUnionTypeChecker,
549
- shape: createShapeTypeChecker,
550
- exact: createStrictShapeTypeChecker,
551
- };
552
-
553
- /**
554
- * inlined Object.is polyfill to avoid requiring consumers ship their own
555
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
556
- */
557
- /*eslint-disable no-self-compare*/
558
- function is(x, y) {
559
- // SameValue algorithm
560
- if (x === y) {
561
- // Steps 1-5, 7-10
562
- // Steps 6.b-6.e: +0 != -0
563
- return x !== 0 || 1 / x === 1 / y;
564
- } else {
565
- // Step 6.a: NaN == NaN
566
- return x !== x && y !== y;
567
- }
568
- }
569
- /*eslint-enable no-self-compare*/
570
-
571
- /**
572
- * We use an Error-like object for backward compatibility as people may call
573
- * PropTypes directly and inspect their output. However, we don't use real
574
- * Errors anymore. We don't inspect their stack anyway, and creating them
575
- * is prohibitively expensive if they are created too often, such as what
576
- * happens in oneOfType() for any type before the one that matched.
577
- */
578
- function PropTypeError(message, data) {
579
- this.message = message;
580
- this.data = data && typeof data === 'object' ? data: {};
581
- this.stack = '';
582
- }
583
- // Make `instanceof Error` still work for returned errors.
584
- PropTypeError.prototype = Error.prototype;
585
-
586
- function createChainableTypeChecker(validate) {
587
- if (process.env.NODE_ENV !== 'production') {
588
- var manualPropTypeCallCache = {};
589
- var manualPropTypeWarningCount = 0;
590
- }
591
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
592
- componentName = componentName || ANONYMOUS;
593
- propFullName = propFullName || propName;
594
-
595
- if (secret !== ReactPropTypesSecret_1) {
596
- if (throwOnDirectAccess) {
597
- // New behavior only for users of `prop-types` package
598
- var err = new Error(
599
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
600
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
601
- 'Read more at http://fb.me/use-check-prop-types'
602
- );
603
- err.name = 'Invariant Violation';
604
- throw err;
605
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
606
- // Old behavior for people using React.PropTypes
607
- var cacheKey = componentName + ':' + propName;
608
- if (
609
- !manualPropTypeCallCache[cacheKey] &&
610
- // Avoid spamming the console because they are often not actionable except for lib authors
611
- manualPropTypeWarningCount < 3
612
- ) {
613
- printWarning$1(
614
- 'You are manually calling a React.PropTypes validation ' +
615
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
616
- 'and will throw in the standalone `prop-types` package. ' +
617
- 'You may be seeing this warning due to a third-party PropTypes ' +
618
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
619
- );
620
- manualPropTypeCallCache[cacheKey] = true;
621
- manualPropTypeWarningCount++;
622
- }
623
- }
624
- }
625
- if (props[propName] == null) {
626
- if (isRequired) {
627
- if (props[propName] === null) {
628
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
629
- }
630
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
631
- }
632
- return null;
633
- } else {
634
- return validate(props, propName, componentName, location, propFullName);
635
- }
636
- }
637
-
638
- var chainedCheckType = checkType.bind(null, false);
639
- chainedCheckType.isRequired = checkType.bind(null, true);
640
-
641
- return chainedCheckType;
642
- }
643
-
644
- function createPrimitiveTypeChecker(expectedType) {
645
- function validate(props, propName, componentName, location, propFullName, secret) {
646
- var propValue = props[propName];
647
- var propType = getPropType(propValue);
648
- if (propType !== expectedType) {
649
- // `propValue` being instance of, say, date/regexp, pass the 'object'
650
- // check, but we can offer a more precise error message here rather than
651
- // 'of type `object`'.
652
- var preciseType = getPreciseType(propValue);
653
-
654
- return new PropTypeError(
655
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
656
- {expectedType: expectedType}
657
- );
658
- }
659
- return null;
660
- }
661
- return createChainableTypeChecker(validate);
662
- }
663
-
664
- function createAnyTypeChecker() {
665
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
666
- }
667
-
668
- function createArrayOfTypeChecker(typeChecker) {
669
- function validate(props, propName, componentName, location, propFullName) {
670
- if (typeof typeChecker !== 'function') {
671
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
672
- }
673
- var propValue = props[propName];
674
- if (!Array.isArray(propValue)) {
675
- var propType = getPropType(propValue);
676
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
677
- }
678
- for (var i = 0; i < propValue.length; i++) {
679
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
680
- if (error instanceof Error) {
681
- return error;
682
- }
683
- }
684
- return null;
685
- }
686
- return createChainableTypeChecker(validate);
687
- }
688
-
689
- function createElementTypeChecker() {
690
- function validate(props, propName, componentName, location, propFullName) {
691
- var propValue = props[propName];
692
- if (!isValidElement(propValue)) {
693
- var propType = getPropType(propValue);
694
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
695
- }
696
- return null;
697
- }
698
- return createChainableTypeChecker(validate);
699
- }
700
-
701
- function createElementTypeTypeChecker() {
702
- function validate(props, propName, componentName, location, propFullName) {
703
- var propValue = props[propName];
704
- if (!reactIs.isValidElementType(propValue)) {
705
- var propType = getPropType(propValue);
706
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
707
- }
708
- return null;
709
- }
710
- return createChainableTypeChecker(validate);
711
- }
712
-
713
- function createInstanceTypeChecker(expectedClass) {
714
- function validate(props, propName, componentName, location, propFullName) {
715
- if (!(props[propName] instanceof expectedClass)) {
716
- var expectedClassName = expectedClass.name || ANONYMOUS;
717
- var actualClassName = getClassName(props[propName]);
718
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
719
- }
720
- return null;
721
- }
722
- return createChainableTypeChecker(validate);
723
- }
724
-
725
- function createEnumTypeChecker(expectedValues) {
726
- if (!Array.isArray(expectedValues)) {
727
- if (process.env.NODE_ENV !== 'production') {
728
- if (arguments.length > 1) {
729
- printWarning$1(
730
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
731
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
732
- );
733
- } else {
734
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
735
- }
736
- }
737
- return emptyFunctionThatReturnsNull;
738
- }
739
-
740
- function validate(props, propName, componentName, location, propFullName) {
741
- var propValue = props[propName];
742
- for (var i = 0; i < expectedValues.length; i++) {
743
- if (is(propValue, expectedValues[i])) {
744
- return null;
745
- }
746
- }
747
-
748
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
749
- var type = getPreciseType(value);
750
- if (type === 'symbol') {
751
- return String(value);
752
- }
753
- return value;
754
- });
755
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
756
- }
757
- return createChainableTypeChecker(validate);
758
- }
759
-
760
- function createObjectOfTypeChecker(typeChecker) {
761
- function validate(props, propName, componentName, location, propFullName) {
762
- if (typeof typeChecker !== 'function') {
763
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
764
- }
765
- var propValue = props[propName];
766
- var propType = getPropType(propValue);
767
- if (propType !== 'object') {
768
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
769
- }
770
- for (var key in propValue) {
771
- if (has(propValue, key)) {
772
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
773
- if (error instanceof Error) {
774
- return error;
775
- }
776
- }
777
- }
778
- return null;
779
- }
780
- return createChainableTypeChecker(validate);
781
- }
782
-
783
- function createUnionTypeChecker(arrayOfTypeCheckers) {
784
- if (!Array.isArray(arrayOfTypeCheckers)) {
785
- process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
786
- return emptyFunctionThatReturnsNull;
787
- }
788
-
789
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
790
- var checker = arrayOfTypeCheckers[i];
791
- if (typeof checker !== 'function') {
792
- printWarning$1(
793
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
794
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
795
- );
796
- return emptyFunctionThatReturnsNull;
797
- }
798
- }
799
-
800
- function validate(props, propName, componentName, location, propFullName) {
801
- var expectedTypes = [];
802
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
803
- var checker = arrayOfTypeCheckers[i];
804
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
805
- if (checkerResult == null) {
806
- return null;
807
- }
808
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
809
- expectedTypes.push(checkerResult.data.expectedType);
810
- }
811
- }
812
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
813
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
814
- }
815
- return createChainableTypeChecker(validate);
816
- }
817
-
818
- function createNodeChecker() {
819
- function validate(props, propName, componentName, location, propFullName) {
820
- if (!isNode(props[propName])) {
821
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
822
- }
823
- return null;
824
- }
825
- return createChainableTypeChecker(validate);
826
- }
827
-
828
- function invalidValidatorError(componentName, location, propFullName, key, type) {
829
- return new PropTypeError(
830
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
831
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
832
- );
833
- }
834
-
835
- function createShapeTypeChecker(shapeTypes) {
836
- function validate(props, propName, componentName, location, propFullName) {
837
- var propValue = props[propName];
838
- var propType = getPropType(propValue);
839
- if (propType !== 'object') {
840
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
841
- }
842
- for (var key in shapeTypes) {
843
- var checker = shapeTypes[key];
844
- if (typeof checker !== 'function') {
845
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
846
- }
847
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
848
- if (error) {
849
- return error;
850
- }
851
- }
852
- return null;
853
- }
854
- return createChainableTypeChecker(validate);
855
- }
856
-
857
- function createStrictShapeTypeChecker(shapeTypes) {
858
- function validate(props, propName, componentName, location, propFullName) {
859
- var propValue = props[propName];
860
- var propType = getPropType(propValue);
861
- if (propType !== 'object') {
862
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
863
- }
864
- // We need to check all keys in case some are required but missing from props.
865
- var allKeys = objectAssign({}, props[propName], shapeTypes);
866
- for (var key in allKeys) {
867
- var checker = shapeTypes[key];
868
- if (has(shapeTypes, key) && typeof checker !== 'function') {
869
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
870
- }
871
- if (!checker) {
872
- return new PropTypeError(
873
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
874
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
875
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
876
- );
877
- }
878
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
879
- if (error) {
880
- return error;
881
- }
882
- }
883
- return null;
884
- }
885
-
886
- return createChainableTypeChecker(validate);
887
- }
888
-
889
- function isNode(propValue) {
890
- switch (typeof propValue) {
891
- case 'number':
892
- case 'string':
893
- case 'undefined':
894
- return true;
895
- case 'boolean':
896
- return !propValue;
897
- case 'object':
898
- if (Array.isArray(propValue)) {
899
- return propValue.every(isNode);
900
- }
901
- if (propValue === null || isValidElement(propValue)) {
902
- return true;
903
- }
904
-
905
- var iteratorFn = getIteratorFn(propValue);
906
- if (iteratorFn) {
907
- var iterator = iteratorFn.call(propValue);
908
- var step;
909
- if (iteratorFn !== propValue.entries) {
910
- while (!(step = iterator.next()).done) {
911
- if (!isNode(step.value)) {
912
- return false;
913
- }
914
- }
915
- } else {
916
- // Iterator will provide entry [k,v] tuples rather than values.
917
- while (!(step = iterator.next()).done) {
918
- var entry = step.value;
919
- if (entry) {
920
- if (!isNode(entry[1])) {
921
- return false;
922
- }
923
- }
924
- }
925
- }
926
- } else {
927
- return false;
928
- }
929
-
930
- return true;
931
- default:
932
- return false;
933
- }
934
- }
935
-
936
- function isSymbol(propType, propValue) {
937
- // Native Symbol.
938
- if (propType === 'symbol') {
939
- return true;
940
- }
941
-
942
- // falsy value can't be a Symbol
943
- if (!propValue) {
944
- return false;
945
- }
946
-
947
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
948
- if (propValue['@@toStringTag'] === 'Symbol') {
949
- return true;
950
- }
951
-
952
- // Fallback for non-spec compliant Symbols which are polyfilled.
953
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
954
- return true;
955
- }
956
-
957
- return false;
958
- }
959
-
960
- // Equivalent of `typeof` but with special handling for array and regexp.
961
- function getPropType(propValue) {
962
- var propType = typeof propValue;
963
- if (Array.isArray(propValue)) {
964
- return 'array';
965
- }
966
- if (propValue instanceof RegExp) {
967
- // Old webkits (at least until Android 4.0) return 'function' rather than
968
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
969
- // passes PropTypes.object.
970
- return 'object';
971
- }
972
- if (isSymbol(propType, propValue)) {
973
- return 'symbol';
974
- }
975
- return propType;
976
- }
977
-
978
- // This handles more types than `getPropType`. Only used for error messages.
979
- // See `createPrimitiveTypeChecker`.
980
- function getPreciseType(propValue) {
981
- if (typeof propValue === 'undefined' || propValue === null) {
982
- return '' + propValue;
983
- }
984
- var propType = getPropType(propValue);
985
- if (propType === 'object') {
986
- if (propValue instanceof Date) {
987
- return 'date';
988
- } else if (propValue instanceof RegExp) {
989
- return 'regexp';
990
- }
991
- }
992
- return propType;
993
- }
994
-
995
- // Returns a string that is postfixed to a warning about an invalid type.
996
- // For example, "undefined" or "of type array"
997
- function getPostfixForTypeWarning(value) {
998
- var type = getPreciseType(value);
999
- switch (type) {
1000
- case 'array':
1001
- case 'object':
1002
- return 'an ' + type;
1003
- case 'boolean':
1004
- case 'date':
1005
- case 'regexp':
1006
- return 'a ' + type;
1007
- default:
1008
- return type;
1009
- }
1010
- }
1011
-
1012
- // Returns class name of the object, if any.
1013
- function getClassName(propValue) {
1014
- if (!propValue.constructor || !propValue.constructor.name) {
1015
- return ANONYMOUS;
1016
- }
1017
- return propValue.constructor.name;
1018
- }
1019
-
1020
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1021
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1022
- ReactPropTypes.PropTypes = ReactPropTypes;
1023
-
1024
- return ReactPropTypes;
1025
- };
1026
-
1027
- function emptyFunction() {}
1028
- function emptyFunctionWithReset() {}
1029
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1030
-
1031
- var factoryWithThrowingShims = function() {
1032
- function shim(props, propName, componentName, location, propFullName, secret) {
1033
- if (secret === ReactPropTypesSecret_1) {
1034
- // It is still safe when called from React.
1035
- return;
1036
- }
1037
- var err = new Error(
1038
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1039
- 'Use PropTypes.checkPropTypes() to call them. ' +
1040
- 'Read more at http://fb.me/use-check-prop-types'
1041
- );
1042
- err.name = 'Invariant Violation';
1043
- throw err;
1044
- } shim.isRequired = shim;
1045
- function getShim() {
1046
- return shim;
1047
- } // Important!
1048
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1049
- var ReactPropTypes = {
1050
- array: shim,
1051
- bigint: shim,
1052
- bool: shim,
1053
- func: shim,
1054
- number: shim,
1055
- object: shim,
1056
- string: shim,
1057
- symbol: shim,
1058
-
1059
- any: shim,
1060
- arrayOf: getShim,
1061
- element: shim,
1062
- elementType: shim,
1063
- instanceOf: getShim,
1064
- node: shim,
1065
- objectOf: getShim,
1066
- oneOf: getShim,
1067
- oneOfType: getShim,
1068
- shape: getShim,
1069
- exact: getShim,
1070
-
1071
- checkPropTypes: emptyFunctionWithReset,
1072
- resetWarningCache: emptyFunction
1073
- };
1074
-
1075
- ReactPropTypes.PropTypes = ReactPropTypes;
1076
-
1077
- return ReactPropTypes;
1078
- };
1079
-
1080
- var propTypes = createCommonjsModule(function (module) {
1081
- /**
1082
- * Copyright (c) 2013-present, Facebook, Inc.
1083
- *
1084
- * This source code is licensed under the MIT license found in the
1085
- * LICENSE file in the root directory of this source tree.
1086
- */
1087
-
1088
- if (process.env.NODE_ENV !== 'production') {
1089
- var ReactIs = reactIs;
1090
-
1091
- // By explicitly using `prop-types` you are opting into new development behavior.
1092
- // http://fb.me/prop-types-in-prod
1093
- var throwOnDirectAccess = true;
1094
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1095
- } else {
1096
- // By explicitly using `prop-types` you are opting into new production behavior.
1097
- // http://fb.me/prop-types-in-prod
1098
- module.exports = factoryWithThrowingShims();
1099
- }
1100
- });
1101
-
1102
3
  var defaultCt = {
1103
4
  map: null
1104
5
  };
@@ -1258,25 +159,6 @@ var MFBuilding = function MFBuilding(props) {
1258
159
  return null;
1259
160
  };
1260
161
 
1261
- MFBuilding.propTypes = {
1262
- position: propTypes.any.isRequired,
1263
- name: propTypes.string,
1264
- scale: propTypes.number,
1265
- bearing: propTypes.number,
1266
- elevation: propTypes.number,
1267
- height: propTypes.number,
1268
- model: propTypes.string,
1269
- texture: propTypes.string,
1270
- coordinates: propTypes.array,
1271
- visible: propTypes.bool,
1272
- draggable: propTypes.bool,
1273
- userInteractionEnabled: propTypes.bool,
1274
- selected: propTypes.bool,
1275
- growUp: propTypes.bool,
1276
- map: propTypes.any,
1277
- onCreated: propTypes.func
1278
- };
1279
-
1280
162
  var MFBuildingOverlay = function MFBuildingOverlay(props) {
1281
163
  var getUrl = props.getUrl,
1282
164
  visible = props.visible,
@@ -1344,15 +226,6 @@ var MFBuildingOverlay = function MFBuildingOverlay(props) {
1344
226
  return null;
1345
227
  };
1346
228
 
1347
- MFBuildingOverlay.propTypes = {
1348
- getUrl: propTypes.func.isRequired,
1349
- visible: propTypes.bool,
1350
- parserData: propTypes.func.isRequired,
1351
- prefixId: propTypes.string,
1352
- map: propTypes.any,
1353
- onCreated: propTypes.func
1354
- };
1355
-
1356
229
  var VariableTool = function VariableTool() {};
1357
230
 
1358
231
  VariableTool.hasValue = function (variable) {
@@ -1510,22 +383,6 @@ var MFCircle = function MFCircle(props) {
1510
383
  return null;
1511
384
  };
1512
385
 
1513
- MFCircle.propTypes = {
1514
- center: propTypes.any.isRequired,
1515
- radius: propTypes.number.isRequired,
1516
- fillColor: propTypes.string,
1517
- fillOpacity: propTypes.number,
1518
- visible: propTypes.bool,
1519
- strokeColor: propTypes.string,
1520
- strokeWidth: propTypes.number,
1521
- draggable: propTypes.bool,
1522
- zIndex: propTypes.number,
1523
- elevation: propTypes.number,
1524
- userInteractionEnabled: propTypes.bool,
1525
- map: propTypes.any,
1526
- onCreated: propTypes.func
1527
- };
1528
-
1529
386
  var MFDataLayer = function MFDataLayer(props) {
1530
387
  var geoJsonString = props.geoJsonString,
1531
388
  map = props.map,
@@ -1565,12 +422,6 @@ var MFDataLayer = function MFDataLayer(props) {
1565
422
  return null;
1566
423
  };
1567
424
 
1568
- MFDataLayer.propTypes = {
1569
- geoJsonString: propTypes.string.isRequired,
1570
- map: propTypes.any,
1571
- onCreated: propTypes.func
1572
- };
1573
-
1574
425
  var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
1575
426
  var routes = props.routes,
1576
427
  activedIndex = props.activedIndex,
@@ -1696,27 +547,6 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
1696
547
  return null;
1697
548
  };
1698
549
 
1699
- MFDirectionsRenderer.propTypes = {
1700
- routes: propTypes.any,
1701
- activedIndex: propTypes.number,
1702
- activeStrokeWidth: propTypes.number,
1703
- activeStrokeColor: propTypes.string,
1704
- activeOutlineWidth: propTypes.number,
1705
- activeOutlineColor: propTypes.string,
1706
- activeStrokePattern: propTypes.any,
1707
- inactiveStrokeWidth: propTypes.number,
1708
- inactiveStrokeColor: propTypes.string,
1709
- inactiveOutlineWidth: propTypes.number,
1710
- inactiveOutlineColor: propTypes.string,
1711
- inactiveStrokePattern: propTypes.any,
1712
- originMarkerOptions: propTypes.any,
1713
- destinationMarkerOptions: propTypes.any,
1714
- waypointMarkerOptions: propTypes.any,
1715
- onMarkerDragEnd: propTypes.func,
1716
- map: propTypes.any,
1717
- onCreated: propTypes.func
1718
- };
1719
-
1720
550
  var MFGroundOverlay = function MFGroundOverlay(props) {
1721
551
  var bounds = props.bounds,
1722
552
  getUrl = props.getUrl,
@@ -1800,17 +630,6 @@ var MFGroundOverlay = function MFGroundOverlay(props) {
1800
630
  return null;
1801
631
  };
1802
632
 
1803
- MFGroundOverlay.propTypes = {
1804
- bounds: propTypes.any.isRequired,
1805
- getUrl: propTypes.func.isRequired,
1806
- override: propTypes.bool,
1807
- visible: propTypes.bool,
1808
- zIndex: propTypes.number,
1809
- opacity: propTypes.number,
1810
- map: propTypes.any,
1811
- onCreated: propTypes.func
1812
- };
1813
-
1814
633
  var MFImageOverlay = function MFImageOverlay(props) {
1815
634
  var url = props.url,
1816
635
  bounds = props.bounds,
@@ -1887,33 +706,6 @@ var MFImageOverlay = function MFImageOverlay(props) {
1887
706
  return null;
1888
707
  };
1889
708
 
1890
- MFImageOverlay.propTypes = {
1891
- url: propTypes.any.isRequired,
1892
- bounds: propTypes.func.isRequired,
1893
- visible: propTypes.bool,
1894
- zIndex: propTypes.number,
1895
- opacity: propTypes.number,
1896
- map: propTypes.any,
1897
- onCreated: propTypes.func
1898
- };
1899
-
1900
- function _extends() {
1901
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1902
- for (var i = 1; i < arguments.length; i++) {
1903
- var source = arguments[i];
1904
-
1905
- for (var key in source) {
1906
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1907
- target[key] = source[key];
1908
- }
1909
- }
1910
- }
1911
-
1912
- return target;
1913
- };
1914
- return _extends.apply(this, arguments);
1915
- }
1916
-
1917
709
  function _inheritsLoose(subClass, superClass) {
1918
710
  subClass.prototype = Object.create(superClass.prototype);
1919
711
  subClass.prototype.constructor = subClass;
@@ -1990,7 +782,7 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
1990
782
  };
1991
783
 
1992
784
  _proto.destroy = function destroy() {
1993
- var _this$mapRef;
785
+ var _this$eventClickMarke, _this$eventRightClick, _this$eventDragEndMar, _this$mapRef;
1994
786
 
1995
787
  delete window[this.callback];
1996
788
 
@@ -1998,10 +790,39 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
1998
790
  this.scriptElement.remove();
1999
791
  }
2000
792
 
793
+ (_this$eventClickMarke = this.eventClickMarker) === null || _this$eventClickMarke === void 0 ? void 0 : _this$eventClickMarke.remove();
794
+ (_this$eventRightClick = this.eventRightClickMarker) === null || _this$eventRightClick === void 0 ? void 0 : _this$eventRightClick.remove();
795
+ (_this$eventDragEndMar = this.eventDragEndMarker) === null || _this$eventDragEndMar === void 0 ? void 0 : _this$eventDragEndMar.remove();
2001
796
  ((_this$mapRef = this.mapRef) === null || _this$mapRef === void 0 ? void 0 : _this$mapRef.destroy) && this.mapRef.destroy();
2002
797
  this.url = null;
2003
798
  };
2004
799
 
800
+ _proto.registerEvent = function registerEvent() {
801
+ var _this$mapRef2, _this$mapRef3, _this$mapRef4;
802
+
803
+ this.eventClickMarker = (_this$mapRef2 = this.mapRef) === null || _this$mapRef2 === void 0 ? void 0 : _this$mapRef2.addListener("click", function (args) {
804
+ var _args$marker, _args$marker2;
805
+
806
+ ((_args$marker = args.marker) === null || _args$marker === void 0 ? void 0 : _args$marker.onClick) && ((_args$marker2 = args.marker) === null || _args$marker2 === void 0 ? void 0 : _args$marker2.onClick());
807
+ }, {
808
+ marker: true
809
+ });
810
+ this.eventRightClickMarker = (_this$mapRef3 = this.mapRef) === null || _this$mapRef3 === void 0 ? void 0 : _this$mapRef3.addListener("rightClick", function (args) {
811
+ var _args$marker3, _args$marker4;
812
+
813
+ ((_args$marker3 = args.marker) === null || _args$marker3 === void 0 ? void 0 : _args$marker3.onRightClick) && ((_args$marker4 = args.marker) === null || _args$marker4 === void 0 ? void 0 : _args$marker4.onRightClick());
814
+ }, {
815
+ marker: true
816
+ });
817
+ this.eventDragEndMarker = (_this$mapRef4 = this.mapRef) === null || _this$mapRef4 === void 0 ? void 0 : _this$mapRef4.addListener("dragEnd", function (args) {
818
+ var _args$marker5, _args$marker6;
819
+
820
+ ((_args$marker5 = args.marker) === null || _args$marker5 === void 0 ? void 0 : _args$marker5.onDragEnd) && ((_args$marker6 = args.marker) === null || _args$marker6 === void 0 ? void 0 : _args$marker6.onDragEnd());
821
+ }, {
822
+ marker: true
823
+ });
824
+ };
825
+
2005
826
  _proto.createCallback = function createCallback() {
2006
827
  var _this2 = this;
2007
828
 
@@ -2014,6 +835,8 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
2014
835
  _this2.props.onMapReady(_this2.mapRef, _this2.mapKey);
2015
836
  }
2016
837
 
838
+ _this2.registerEvent();
839
+
2017
840
  _this2.setState({
2018
841
  map: _this2.mapRef
2019
842
  });
@@ -2024,7 +847,7 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
2024
847
  };
2025
848
 
2026
849
  _proto.render = function render() {
2027
- var url = "https://api.map4d.vn/sdk/map/js?version=" + this.props.version + "&key=" + this.props.accessKey + "&callback=" + this.callback;
850
+ var url = "https://api" + (this.props.environment ? "-" + this.props.environment : "") + ".map4d.vn/sdk/map/js?version=" + this.props.version + "&key=" + this.props.accessKey + "&callback=" + this.callback;
2028
851
 
2029
852
  if (this.props.mapid) {
2030
853
  url += "&mapId=" + this.props.mapid;
@@ -2041,10 +864,9 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
2041
864
  }
2042
865
 
2043
866
  this.url = url;
2044
-
2045
- var newContext = _extends({}, this.context);
2046
-
2047
- newContext.map = this.state.map;
867
+ var newContext = {
868
+ map: this.state.map
869
+ };
2048
870
  return React.createElement(Map4dContext.Provider, {
2049
871
  value: newContext
2050
872
  }, React.createElement("div", {
@@ -2081,7 +903,8 @@ var MFMarker = function MFMarker(props) {
2081
903
  iconView = props.iconView,
2082
904
  userInteractionEnabled = props.userInteractionEnabled,
2083
905
  map = props.map,
2084
- onCreated = props.onCreated;
906
+ onCreated = props.onCreated,
907
+ onClick = props.onClick;
2085
908
  var map4dContext = useContext(Map4dContext);
2086
909
  var markerClusterContext = useContext(MarkerClusterContext);
2087
910
  var theMap = map || map4dContext.map;
@@ -2116,11 +939,12 @@ var MFMarker = function MFMarker(props) {
2116
939
  markerRef.current = new map4d.Marker(option);
2117
940
 
2118
941
  if (!(markerClusterContext !== null && markerClusterContext !== void 0 && markerClusterContext.addMarker)) {
2119
- var _markerRef$current;
2120
-
2121
- (_markerRef$current = markerRef.current) === null || _markerRef$current === void 0 ? void 0 : _markerRef$current.setMap(theMap);
942
+ markerRef.current.setMap(theMap);
2122
943
  }
2123
944
 
945
+ markerRef.current.onClick = onClick;
946
+ markerRef.current.onRightClick = props.onRightClick;
947
+ markerRef.current.onDragEnd = props.onDragEnd;
2124
948
  onCreated && onCreated(markerRef.current);
2125
949
  (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker) && (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker(markerRef.current));
2126
950
  }
@@ -2128,129 +952,109 @@ var MFMarker = function MFMarker(props) {
2128
952
  useEffect(function () {
2129
953
  if (theMap) {
2130
954
  if (!(markerClusterContext !== null && markerClusterContext !== void 0 && markerClusterContext.addMarker)) {
2131
- var _markerRef$current2;
955
+ var _markerRef$current;
2132
956
 
2133
- (_markerRef$current2 = markerRef.current) === null || _markerRef$current2 === void 0 ? void 0 : _markerRef$current2.setMap(theMap);
957
+ (_markerRef$current = markerRef.current) === null || _markerRef$current === void 0 ? void 0 : _markerRef$current.setMap(theMap);
2134
958
  }
2135
959
  }
2136
960
 
2137
961
  return function () {
2138
962
  if (!(markerClusterContext !== null && markerClusterContext !== void 0 && markerClusterContext.addMarker)) {
2139
- var _markerRef$current3;
963
+ var _markerRef$current2;
2140
964
 
2141
- (_markerRef$current3 = markerRef.current) === null || _markerRef$current3 === void 0 ? void 0 : _markerRef$current3.setMap(null);
965
+ (_markerRef$current2 = markerRef.current) === null || _markerRef$current2 === void 0 ? void 0 : _markerRef$current2.setMap(null);
2142
966
  }
2143
967
  };
2144
968
  }, [theMap]);
2145
969
  useEffect(function () {
2146
970
  return function () {
2147
971
  if (!(markerClusterContext !== null && markerClusterContext !== void 0 && markerClusterContext.addMarker)) {
2148
- var _markerRef$current4;
972
+ var _markerRef$current3;
2149
973
 
2150
- (_markerRef$current4 = markerRef.current) === null || _markerRef$current4 === void 0 ? void 0 : _markerRef$current4.setMap(null);
974
+ (_markerRef$current3 = markerRef.current) === null || _markerRef$current3 === void 0 ? void 0 : _markerRef$current3.setMap(null);
2151
975
  }
2152
976
 
2153
977
  markerRef.current && (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.removeMarker) && (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.removeMarker(markerRef.current));
2154
978
  };
2155
979
  }, []);
2156
980
  useEffect(function () {
2157
- var _markerRef$current5;
981
+ var _markerRef$current4;
2158
982
 
2159
- (_markerRef$current5 = markerRef.current) === null || _markerRef$current5 === void 0 ? void 0 : _markerRef$current5.setPosition(position);
983
+ (_markerRef$current4 = markerRef.current) === null || _markerRef$current4 === void 0 ? void 0 : _markerRef$current4.setPosition(position);
2160
984
  }, [position]);
2161
985
  useEffect(function () {
2162
- var _markerRef$current6;
986
+ var _markerRef$current5;
2163
987
 
2164
- (_markerRef$current6 = markerRef.current) === null || _markerRef$current6 === void 0 ? void 0 : _markerRef$current6.setVisible(visible);
988
+ (_markerRef$current5 = markerRef.current) === null || _markerRef$current5 === void 0 ? void 0 : _markerRef$current5.setVisible(visible);
2165
989
  }, [visible]);
2166
990
  useEffect(function () {
2167
- var _markerRef$current7;
991
+ var _markerRef$current6;
2168
992
 
2169
- anchor != undefined && ((_markerRef$current7 = markerRef.current) === null || _markerRef$current7 === void 0 ? void 0 : _markerRef$current7.setAnchor(anchor));
993
+ anchor != undefined && ((_markerRef$current6 = markerRef.current) === null || _markerRef$current6 === void 0 ? void 0 : _markerRef$current6.setAnchor(anchor));
2170
994
  }, [anchor]);
2171
995
  useEffect(function () {
2172
- var _markerRef$current8;
996
+ var _markerRef$current7;
2173
997
 
2174
- labelAnchor != undefined && ((_markerRef$current8 = markerRef.current) === null || _markerRef$current8 === void 0 ? void 0 : _markerRef$current8.setLabelAnchor(labelAnchor));
998
+ labelAnchor != undefined && ((_markerRef$current7 = markerRef.current) === null || _markerRef$current7 === void 0 ? void 0 : _markerRef$current7.setLabelAnchor(labelAnchor));
2175
999
  }, [labelAnchor]);
2176
1000
  useEffect(function () {
2177
- var _markerRef$current9;
1001
+ var _markerRef$current8;
2178
1002
 
2179
- icon != undefined && ((_markerRef$current9 = markerRef.current) === null || _markerRef$current9 === void 0 ? void 0 : _markerRef$current9.setIcon(icon));
1003
+ icon != undefined && ((_markerRef$current8 = markerRef.current) === null || _markerRef$current8 === void 0 ? void 0 : _markerRef$current8.setIcon(icon));
2180
1004
  }, [icon]);
2181
1005
  useEffect(function () {
2182
- var _markerRef$current10;
1006
+ var _markerRef$current9;
2183
1007
 
2184
- elevation != undefined && ((_markerRef$current10 = markerRef.current) === null || _markerRef$current10 === void 0 ? void 0 : _markerRef$current10.setElevation(elevation));
1008
+ elevation != undefined && ((_markerRef$current9 = markerRef.current) === null || _markerRef$current9 === void 0 ? void 0 : _markerRef$current9.setElevation(elevation));
2185
1009
  }, [elevation]);
2186
1010
  useEffect(function () {
2187
- var _markerRef$current11;
1011
+ var _markerRef$current10;
2188
1012
 
2189
- rotation != undefined && ((_markerRef$current11 = markerRef.current) === null || _markerRef$current11 === void 0 ? void 0 : _markerRef$current11.setRotation(rotation));
1013
+ rotation != undefined && ((_markerRef$current10 = markerRef.current) === null || _markerRef$current10 === void 0 ? void 0 : _markerRef$current10.setRotation(rotation));
2190
1014
  }, [rotation]);
2191
1015
  useEffect(function () {
2192
- var _markerRef$current12;
1016
+ var _markerRef$current11;
2193
1017
 
2194
- title != undefined && ((_markerRef$current12 = markerRef.current) === null || _markerRef$current12 === void 0 ? void 0 : _markerRef$current12.setTitle(title));
1018
+ title != undefined && ((_markerRef$current11 = markerRef.current) === null || _markerRef$current11 === void 0 ? void 0 : _markerRef$current11.setTitle(title));
2195
1019
  }, [title]);
2196
1020
  useEffect(function () {
2197
- var _markerRef$current13;
1021
+ var _markerRef$current12;
2198
1022
 
2199
- snippet != undefined && ((_markerRef$current13 = markerRef.current) === null || _markerRef$current13 === void 0 ? void 0 : _markerRef$current13.setSnippet(snippet));
1023
+ snippet != undefined && ((_markerRef$current12 = markerRef.current) === null || _markerRef$current12 === void 0 ? void 0 : _markerRef$current12.setSnippet(snippet));
2200
1024
  }, [snippet]);
2201
1025
  useEffect(function () {
2202
- var _markerRef$current14;
1026
+ var _markerRef$current13;
2203
1027
 
2204
- windowAnchor != undefined && ((_markerRef$current14 = markerRef.current) === null || _markerRef$current14 === void 0 ? void 0 : _markerRef$current14.setWindowAnchor(windowAnchor));
1028
+ windowAnchor != undefined && ((_markerRef$current13 = markerRef.current) === null || _markerRef$current13 === void 0 ? void 0 : _markerRef$current13.setWindowAnchor(windowAnchor));
2205
1029
  }, [windowAnchor]);
2206
1030
  useEffect(function () {
2207
- var _markerRef$current15;
1031
+ var _markerRef$current14;
2208
1032
 
2209
- zIndex != undefined && ((_markerRef$current15 = markerRef.current) === null || _markerRef$current15 === void 0 ? void 0 : _markerRef$current15.setZIndex(zIndex));
1033
+ zIndex != undefined && ((_markerRef$current14 = markerRef.current) === null || _markerRef$current14 === void 0 ? void 0 : _markerRef$current14.setZIndex(zIndex));
2210
1034
  }, [zIndex]);
2211
1035
  useEffect(function () {
2212
- var _markerRef$current16;
1036
+ var _markerRef$current15;
2213
1037
 
2214
- label != undefined && ((_markerRef$current16 = markerRef.current) === null || _markerRef$current16 === void 0 ? void 0 : _markerRef$current16.setLabel(label));
1038
+ label != undefined && ((_markerRef$current15 = markerRef.current) === null || _markerRef$current15 === void 0 ? void 0 : _markerRef$current15.setLabel(label));
2215
1039
  }, [label]);
2216
1040
  useEffect(function () {
2217
- var _markerRef$current17;
1041
+ var _markerRef$current16;
2218
1042
 
2219
- draggable != undefined && ((_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setDraggable(draggable));
1043
+ draggable != undefined && ((_markerRef$current16 = markerRef.current) === null || _markerRef$current16 === void 0 ? void 0 : _markerRef$current16.setDraggable(draggable));
2220
1044
  }, [draggable]);
2221
1045
  useEffect(function () {
2222
- var _markerRef$current18;
1046
+ var _markerRef$current17;
2223
1047
 
2224
- iconView != undefined && ((_markerRef$current18 = markerRef.current) === null || _markerRef$current18 === void 0 ? void 0 : _markerRef$current18.setIconView(iconView));
1048
+ iconView != undefined && ((_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setIconView(iconView));
2225
1049
  }, [iconView]);
2226
1050
  useEffect(function () {
2227
- var _markerRef$current19;
1051
+ var _markerRef$current18;
2228
1052
 
2229
- userInteractionEnabled != undefined && ((_markerRef$current19 = markerRef.current) === null || _markerRef$current19 === void 0 ? void 0 : _markerRef$current19.setUserInteraction(userInteractionEnabled));
1053
+ userInteractionEnabled != undefined && ((_markerRef$current18 = markerRef.current) === null || _markerRef$current18 === void 0 ? void 0 : _markerRef$current18.setUserInteraction(userInteractionEnabled));
2230
1054
  }, [userInteractionEnabled]);
2231
1055
  return null;
2232
1056
  };
2233
1057
 
2234
- MFMarker.propTypes = {
2235
- position: propTypes.any.isRequired,
2236
- visible: propTypes.bool,
2237
- anchor: propTypes.any,
2238
- labelAnchor: propTypes.any,
2239
- icon: propTypes.any,
2240
- elevation: propTypes.number,
2241
- rotation: propTypes.number,
2242
- title: propTypes.string,
2243
- snippet: propTypes.string,
2244
- windowAnchor: propTypes.any,
2245
- zIndex: propTypes.number,
2246
- label: propTypes.any,
2247
- draggable: propTypes.bool,
2248
- iconView: propTypes.oneOfType([propTypes.instanceOf(Node), propTypes.string]),
2249
- userInteractionEnabled: propTypes.bool,
2250
- map: propTypes.any,
2251
- onCreated: propTypes.func
2252
- };
2253
-
2254
1058
  var MFMarkerCluster = function MFMarkerCluster(props) {
2255
1059
  var _props$minZoom = props.minZoom,
2256
1060
  minZoom = _props$minZoom === void 0 ? 0 : _props$minZoom,
@@ -2344,15 +1148,6 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
2344
1148
  }, props === null || props === void 0 ? void 0 : props.children);
2345
1149
  };
2346
1150
 
2347
- MFMarkerCluster.propTypes = {
2348
- minZoom: propTypes.number,
2349
- maxZoom: propTypes.number,
2350
- radius: propTypes.number,
2351
- zoomOnClick: propTypes.bool,
2352
- map: propTypes.any,
2353
- onCreated: propTypes.func
2354
- };
2355
-
2356
1151
  var MFPOI = function MFPOI(props) {
2357
1152
  var position = props.position,
2358
1153
  title = props.title,
@@ -2478,22 +1273,6 @@ var MFPOI = function MFPOI(props) {
2478
1273
  return null;
2479
1274
  };
2480
1275
 
2481
- MFPOI.propTypes = {
2482
- position: propTypes.any.isRequired,
2483
- title: propTypes.string,
2484
- subtitle: propTypes.string,
2485
- color: propTypes.string,
2486
- type: propTypes.string,
2487
- icon: propTypes.string,
2488
- elevation: propTypes.number,
2489
- zIndex: propTypes.number,
2490
- visible: propTypes.bool,
2491
- draggable: propTypes.bool,
2492
- userInteractionEnabled: propTypes.bool,
2493
- map: propTypes.any,
2494
- onCreated: propTypes.func
2495
- };
2496
-
2497
1276
  var MFPOIOverlay = function MFPOIOverlay(props) {
2498
1277
  var getUrl = props.getUrl,
2499
1278
  _props$visible = props.visible,
@@ -2562,15 +1341,6 @@ var MFPOIOverlay = function MFPOIOverlay(props) {
2562
1341
  return null;
2563
1342
  };
2564
1343
 
2565
- MFPOIOverlay.propTypes = {
2566
- getUrl: propTypes.func.isRequired,
2567
- visible: propTypes.bool,
2568
- parserData: propTypes.func.isRequired,
2569
- prefixId: propTypes.string,
2570
- map: propTypes.any,
2571
- onCreated: propTypes.func
2572
- };
2573
-
2574
1344
  var MFPolygon = function MFPolygon(props) {
2575
1345
  var paths = props.paths,
2576
1346
  fillColor = props.fillColor,
@@ -2687,21 +1457,6 @@ var MFPolygon = function MFPolygon(props) {
2687
1457
  return null;
2688
1458
  };
2689
1459
 
2690
- MFPolygon.propTypes = {
2691
- paths: propTypes.any.isRequired,
2692
- fillColor: propTypes.string,
2693
- fillOpacity: propTypes.number,
2694
- visible: propTypes.bool,
2695
- strokeColor: propTypes.string,
2696
- strokeWidth: propTypes.number,
2697
- draggable: propTypes.number,
2698
- elevation: propTypes.number,
2699
- zIndex: propTypes.number,
2700
- userInteractionEnabled: propTypes.bool,
2701
- map: propTypes.any,
2702
- onCreated: propTypes.func
2703
- };
2704
-
2705
1460
  var MFPolyline = function MFPolyline(props) {
2706
1461
  var path = props.path,
2707
1462
  strokeWidth = props.strokeWidth,
@@ -2828,22 +1583,6 @@ var MFPolyline = function MFPolyline(props) {
2828
1583
  return null;
2829
1584
  };
2830
1585
 
2831
- MFPolyline.propTypes = {
2832
- path: propTypes.any.isRequired,
2833
- strokeWidth: propTypes.number,
2834
- strokeColor: propTypes.string,
2835
- strokeOpacity: propTypes.number,
2836
- visible: propTypes.bool,
2837
- closed: propTypes.bool,
2838
- draggable: propTypes.bool,
2839
- zIndex: propTypes.number,
2840
- elevation: propTypes.number,
2841
- strokePattern: propTypes.any,
2842
- userInteractionEnabled: propTypes.bool,
2843
- map: propTypes.any,
2844
- onCreated: propTypes.func
2845
- };
2846
-
2847
1586
  var MFTileOverlay = function MFTileOverlay(props) {
2848
1587
  var getUrl = props.getUrl,
2849
1588
  _props$visible = props.visible,
@@ -2927,14 +1666,5 @@ var MFTileOverlay = function MFTileOverlay(props) {
2927
1666
  return null;
2928
1667
  };
2929
1668
 
2930
- MFTileOverlay.propTypes = {
2931
- getUrl: propTypes.func.isRequired,
2932
- visible: propTypes.bool,
2933
- zIndex: propTypes.number,
2934
- opacity: propTypes.number,
2935
- map: propTypes.any,
2936
- onCreated: propTypes.func
2937
- };
2938
-
2939
1669
  export { MFBuilding, MFBuildingOverlay, MFCircle, MFDataLayer, MFDirectionsRenderer, MFGroundOverlay, MFImageOverlay, MFMap, MFMarker, MFMarkerCluster, MFPOI, MFPOIOverlay, MFPolygon, MFPolyline, MFTileOverlay };
2940
1670
  //# sourceMappingURL=index.modern.js.map