mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Update exports
This commit is contained in:
parent
023b31bd53
commit
0d7cef1dd3
@ -1 +1 @@
|
||||
export default from './utils.js';
|
||||
export * from './utils.js';
|
||||
|
||||
@ -63,7 +63,7 @@ function meters2WorldSize(meters, { lat, lng }) {
|
||||
return { w, h };
|
||||
}
|
||||
|
||||
export default {
|
||||
const exports = {
|
||||
fitBounds({ nw, se }, { width, height }) {
|
||||
const EPS = 0.000000001;
|
||||
const nwWorld = latLng2World(nw);
|
||||
@ -146,3 +146,10 @@ export default {
|
||||
return ids;
|
||||
},
|
||||
};
|
||||
|
||||
export const fitBounds = exports.fitBounds;
|
||||
export const meters2ScreenPixels = exports.meters2ScreenPixels;
|
||||
export const tile2LatLng = exports.tile2LatLng;
|
||||
export const latLng2Tile = exports.latLng2Tile;
|
||||
export const getTilesIds = exports.getTilesIds;
|
||||
// export default exports;
|
||||
|
||||
@ -1,3 +1,2 @@
|
||||
var utils = require('../lib/utils');
|
||||
|
||||
var utils = require('../lib/utils'); // eslint-disable-line
|
||||
module.exports = utils;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user