react-bing-map 1.0.6 → 1.0.8

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,30 +1,63 @@
1
- type TDescription = {
2
- name: string;
3
- };
4
1
  export type TContent = {
5
2
  title: string;
6
- description: TDescription;
3
+ description: HTMLElement | string;
4
+ };
5
+ export type TLocation = {
6
+ latitude: number;
7
+ longitude: number;
8
+ };
9
+ export type TMapPosition = {
10
+ north: number;
11
+ south: number;
12
+ east: number;
13
+ west: number;
14
+ };
15
+ export type TInfoBoxStyle = {
16
+ maxWidth?: number;
17
+ maxHeight?: number;
7
18
  };
8
19
  export type TPushPin = {
9
- icon: string;
10
- center: {};
20
+ icon: string | any;
21
+ location: TLocation;
11
22
  content: TContent;
12
23
  };
24
+ export type TRoute = {
25
+ source: TLocation;
26
+ destination: TLocation;
27
+ };
28
+ export type TRouteMode = 'driving' | 'walking' | 'transit';
29
+ export type TRouteInfo = {
30
+ source: TLocation;
31
+ destination: TLocation;
32
+ distance: number;
33
+ distanceUnit: 'kilometers';
34
+ duration?: number;
35
+ isFallback?: boolean;
36
+ };
13
37
  export type TMapView = {
14
38
  mapType: string;
15
39
  bingKey: string;
40
+ mapPosition?: TMapPosition;
41
+ infoBoxStyle?: TInfoBoxStyle;
16
42
  centerLocation?: [number, number];
17
43
  language?: string;
18
44
  zoom?: number;
19
- pushPins?: [];
20
- pushPinIcon?: any;
45
+ pushPins?: TPushPin[];
46
+ pushPinIcon?: string;
21
47
  showScalebar?: boolean;
22
48
  showCopyright?: boolean;
23
49
  showLogo?: boolean;
24
50
  disableZooming?: boolean;
25
51
  showBreadcrumb?: boolean;
26
- showLocateMeButton: boolean;
52
+ showLocateMeButton?: boolean;
27
53
  showZoomButtons?: boolean;
28
54
  showMapTypeSelector?: boolean;
55
+ source?: TLocation;
56
+ destination?: TLocation;
57
+ showRoute?: boolean;
58
+ routeMode?: TRouteMode;
59
+ useGPS?: boolean;
60
+ onGPSLocationFound?: (location: TLocation) => void;
61
+ onGPSError?: (error: string) => void;
62
+ onRouteCalculated?: (routeInfo: TRouteInfo) => void;
29
63
  };
30
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-bing-map",
3
- "description": "",
3
+ "description": "React Bing Maps component with pushpins, route navigation, GPS current-location routing, distance, and route selection drawer.",
4
4
  "author": {
5
5
  "name": "Mohanraj Kandasamy",
6
6
  "email": "mohanksv.89@gmail.com",
@@ -12,57 +12,75 @@
12
12
  "bingmap",
13
13
  "bing map",
14
14
  "react bing map",
15
+ "bing maps route",
16
+ "bing maps gps",
17
+ "route navigation",
15
18
  "typescript",
16
19
  "react"
17
20
  ],
21
+ "version": "1.0.8",
22
+ "private": false,
23
+ "license": "MIT",
18
24
  "repository": {
19
25
  "type": "git",
20
- "url": "https://github.com/kmohanraj/react-bing-maps"
26
+ "url": "git+https://github.com/kmohanraj/react-bing-map.git"
21
27
  },
22
- "version": "1.0.6",
23
- "private": false,
24
- "license": "MIT",
25
- "main": "./lib/cjs/index.js",
28
+ "bugs": {
29
+ "url": "https://github.com/kmohanraj/react-bing-map/issues"
30
+ },
31
+ "homepage": "https://github.com/kmohanraj/react-bing-map#readme",
32
+ "main": "./lib/cjs/index.cjs",
26
33
  "module": "./lib/esm/index.js",
27
34
  "types": "./lib/esm/index.d.ts",
28
35
  "type": "module",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./lib/esm/index.d.ts",
39
+ "import": "./lib/esm/index.js",
40
+ "require": "./lib/cjs/index.cjs"
41
+ }
42
+ },
43
+ "sideEffects": false,
29
44
  "files": [
30
- "/lib"
45
+ "lib"
31
46
  ],
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
32
50
  "scripts": {
33
51
  "build": "rollup -c",
34
52
  "build:watch": "rollup -c --watch",
35
53
  "storybook": "storybook dev -p 6006",
36
- "build-storybook": "storybook build"
54
+ "build-storybook": "storybook build",
55
+ "prepack": "npm run build"
37
56
  },
38
57
  "devDependencies": {
39
- "@rollup/plugin-commonjs": "^25.0.2",
40
- "@rollup/plugin-node-resolve": "^15.1.0",
41
- "@rollup/plugin-typescript": "^11.1.2",
42
- "@storybook/addon-essentials": "^7.2.0",
43
- "@storybook/addon-interactions": "^7.2.0",
44
- "@storybook/addon-links": "^7.2.0",
45
- "@storybook/addon-onboarding": "^1.0.8",
46
- "@storybook/blocks": "^7.2.0",
47
- "@storybook/react": "^7.2.0",
48
- "@storybook/react-vite": "^7.2.0",
49
- "@storybook/testing-library": "^0.2.0",
50
- "@types/react": "^18.2.15",
51
- "@types/react-dom": "^18.2.7",
52
- "node-sass": "^9.0.0",
53
- "postcss": "^8.4.26",
54
- "react": "^18.2.0",
55
- "react-dom": "^18.2.0",
56
- "rollup": "^3.26.2",
58
+ "@rollup/plugin-commonjs": "^28.0.0",
59
+ "@rollup/plugin-node-resolve": "^15.3.0",
60
+ "@rollup/plugin-typescript": "^12.1.0",
61
+ "@storybook/addon-essentials": "^8.3.0",
62
+ "@storybook/addon-interactions": "^8.3.0",
63
+ "@storybook/addon-links": "^8.3.0",
64
+ "@storybook/addon-onboarding": "^8.3.0",
65
+ "@storybook/blocks": "^8.3.0",
66
+ "@storybook/react": "^8.3.0",
67
+ "@storybook/react-vite": "^8.3.0",
68
+ "@storybook/test": "^8.3.0",
69
+ "@types/react": "^19.0.0",
70
+ "@types/react-dom": "^19.0.0",
71
+ "postcss": "^8.4.47",
72
+ "react": "^19.0.0",
73
+ "react-dom": "^19.0.0",
74
+ "rollup": "^4.21.0",
57
75
  "rollup-plugin-peer-deps-external": "^2.2.4",
58
76
  "rollup-plugin-postcss": "^4.0.2",
59
- "sass": "^1.63.6",
60
- "storybook": "^7.2.0",
61
- "tslib": "^2.6.0",
62
- "typescript": "^5.1.6"
77
+ "sass": "^1.77.8",
78
+ "storybook": "^8.3.0",
79
+ "tslib": "^2.7.0",
80
+ "typescript": "^5.5.4"
63
81
  },
64
82
  "peerDependencies": {
65
- "react": "^16 || ^17 || ^18",
66
- "react-dom": "^16 || ^17 || ^18"
83
+ "react": "^16 || ^17 || ^18 || ^19",
84
+ "react-dom": "^16 || ^17 || ^18 || ^19"
67
85
  }
68
86
  }
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { TMapView } from '../../type/component.type';
3
- export declare const BingMaps: FC<TMapView>;
@@ -1 +0,0 @@
1
- export { BingMaps } from './MapView/BingMaps';
@@ -1,17 +0,0 @@
1
- declare const useBingMaps: ({ mapType, bingKey, centerLocation, zoom, pushPins, pushPinIcon, showScalebar, showCopyright, showLogo, disableZooming, showBreadcrumb, showLocateMeButton, showZoomButtons, showMapTypeSelector }: {
2
- mapType?: string | undefined;
3
- bingKey?: string | undefined;
4
- centerLocation?: number[] | undefined;
5
- zoom?: number | undefined;
6
- pushPins?: never[] | undefined;
7
- pushPinIcon?: string | undefined;
8
- showScalebar?: boolean | undefined;
9
- showCopyright?: boolean | undefined;
10
- showLogo?: boolean | undefined;
11
- disableZooming?: boolean | undefined;
12
- showBreadcrumb?: boolean | undefined;
13
- showLocateMeButton?: boolean | undefined;
14
- showZoomButtons?: boolean | undefined;
15
- showMapTypeSelector?: boolean | undefined;
16
- }) => [any, any];
17
- export default useBingMaps;
@@ -1 +0,0 @@
1
- export * from './components';
package/lib/cjs/index.js DELETED
@@ -1,120 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- var useBingMaps = function (_a) {
6
- var _b = _a.mapType, mapType = _b === void 0 ? '' : _b, _c = _a.bingKey, bingKey = _c === void 0 ? '' : _c, _d = _a.centerLocation, centerLocation = _d === void 0 ? [0, 0] : _d, _e = _a.zoom, zoom = _e === void 0 ? 0 : _e, _f = _a.pushPins, pushPins = _f === void 0 ? [] : _f; _a.pushPinIcon; var _h = _a.showScalebar, showScalebar = _h === void 0 ? true : _h, _j = _a.showCopyright, showCopyright = _j === void 0 ? true : _j, _k = _a.showLogo, showLogo = _k === void 0 ? true : _k, _l = _a.disableZooming, disableZooming = _l === void 0 ? false : _l, _m = _a.showBreadcrumb, showBreadcrumb = _m === void 0 ? true : _m, _o = _a.showLocateMeButton, showLocateMeButton = _o === void 0 ? true : _o, _p = _a.showZoomButtons, showZoomButtons = _p === void 0 ? true : _p, _q = _a.showMapTypeSelector, showMapTypeSelector = _q === void 0 ? true : _q;
7
- var CONFIG = {
8
- NORTH: 49.234,
9
- SOUTH: 24.175,
10
- EAST: -65.573,
11
- WEST: -125.778,
12
- ZOOM: 3
13
- };
14
- var myWindow = window;
15
- var initMap = React.useCallback(function () {
16
- var Maps = myWindow.Microsoft.Maps;
17
- var center = new Maps.Location(centerLocation[0], centerLocation[1]);
18
- var map = new Maps.Map('#bing-map', {
19
- credentials: bingKey,
20
- center: center,
21
- bounds: Maps.LocationRect.fromEdges(CONFIG.NORTH, CONFIG.WEST, CONFIG.SOUTH, CONFIG.EAST),
22
- mapTypeId: Maps.MapTypeId[mapType],
23
- zoom: zoom,
24
- showScalebar: showScalebar,
25
- showCopyright: showCopyright,
26
- showLogo: showLogo,
27
- disableZooming: disableZooming,
28
- showBreadcrumb: showBreadcrumb,
29
- showLocateMeButton: showLocateMeButton,
30
- showZoomButtons: showZoomButtons,
31
- showMapTypeSelector: showMapTypeSelector
32
- });
33
- var infoBox = new Maps.Infobox(map.getCenter(), {
34
- visible: false
35
- });
36
- infoBox.setMap(map);
37
- addPushPins(center, infoBox, map, Maps, pushPins);
38
- }, [pushPins]);
39
- var addPushPins = function (center, infoBox, map, Maps, pushPins) {
40
- pushPins.forEach(function (item) {
41
- var pin = new Maps.Pushpin(item.center, null);
42
- var data = item.content;
43
- handleOnInfoBox(center, data, infoBox, map, Maps, pin);
44
- });
45
- };
46
- var handleOnInfoBox = function (center, data, infoBox, map, Maps, pin) {
47
- Maps.Events.addHandler(pin, 'click', function (e) {
48
- infoBox.setOptions({
49
- visible: true,
50
- location: e.target.getLocation(),
51
- title: data.title,
52
- description: data.description.name
53
- });
54
- });
55
- map.entities.push(pin);
56
- var zoomLevel = getZoomLevel(100, map.getCenter().latitude, 350, 250);
57
- map.setView({
58
- center: center,
59
- zoom: zoom ? zoom : zoomLevel,
60
- padding: 100,
61
- strokeOpacity: 0.6
62
- });
63
- };
64
- var getZoomLevel = function (radius, latitude, heightOfMapInPixels, widthOfMapInPixels) {
65
- var range = radius * 1.6 * 1000;
66
- var limitBoundPixels = Math.min(heightOfMapInPixels, widthOfMapInPixels);
67
- var zoom = Math.floor(Math.log((156543.03392 * Math.cos((latitude * Math.PI) / 180)) /
68
- (range / limitBoundPixels)) / Math.log(2));
69
- return zoom;
70
- };
71
- return [myWindow, initMap];
72
- };
73
-
74
- // const logo: string = require("../assets/legend-f.svg");
75
- // import * as logo from 'logo.svg'
76
- // const logo = require("../../assets/legend-f.svg") as string;
77
- var BingMaps = function (_a) {
78
- var _b = _a.mapType, mapType = _b === void 0 ? 'grayscale' : _b, _c = _a.bingKey, bingKey = _c === void 0 ? '' : _c, _d = _a.centerLocation, centerLocation = _d === void 0 ? [0, 0] : _d, _e = _a.language, language = _e === void 0 ? 'en-IN' : _e, _f = _a.zoom, zoom = _f === void 0 ? 0 : _f, _g = _a.pushPins, pushPins = _g === void 0 ? [] : _g, _h = _a.pushPinIcon, pushPinIcon = _h === void 0 ? '' : _h, _j = _a.showScalebar, showScalebar = _j === void 0 ? true : _j, _k = _a.showCopyright, showCopyright = _k === void 0 ? true : _k, _l = _a.showLogo, showLogo = _l === void 0 ? true : _l, _m = _a.disableZooming, disableZooming = _m === void 0 ? false : _m, _o = _a.showBreadcrumb, showBreadcrumb = _o === void 0 ? true : _o, _p = _a.showLocateMeButton, showLocateMeButton = _p === void 0 ? true : _p, _q = _a.showZoomButtons, showZoomButtons = _q === void 0 ? true : _q, _r = _a.showMapTypeSelector, showMapTypeSelector = _r === void 0 ? true : _r;
79
- var mapView = {
80
- mapType: mapType,
81
- bingKey: bingKey,
82
- centerLocation: centerLocation,
83
- language: language,
84
- zoom: zoom,
85
- pushPins: pushPins,
86
- pushPinIcon: pushPinIcon,
87
- showScalebar: showScalebar,
88
- showCopyright: showCopyright,
89
- showLogo: showLogo,
90
- disableZooming: disableZooming,
91
- showBreadcrumb: showBreadcrumb,
92
- showLocateMeButton: showLocateMeButton,
93
- showZoomButtons: showZoomButtons,
94
- showMapTypeSelector: showMapTypeSelector
95
- };
96
- var _s = useBingMaps(mapView), myWindow = _s[0], initMap = _s[1];
97
- myWindow.initMap = initMap;
98
- React.useEffect(function () {
99
- if (!document.querySelector('[data-bing="true"]')) {
100
- var scriptTag = document.createElement('script');
101
- scriptTag.src =
102
- "https://www.bing.com/api/maps/mapcontrol?callback=initMap&setLang=".concat(language);
103
- scriptTag.async = true;
104
- scriptTag.dataset.bing = 'true';
105
- document.body.appendChild(scriptTag);
106
- }
107
- }, [initMap]);
108
- return (React.createElement("div", { id: 'bing-map', style: {
109
- position: 'absolute',
110
- width: '100%',
111
- height: '100%',
112
- top: 0,
113
- bottom: 0,
114
- left: 0,
115
- right: 0
116
- } }));
117
- };
118
-
119
- exports.BingMaps = BingMaps;
120
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/hooks/useBingMaps.ts","../../src/components/MapView/BingMaps.tsx"],"sourcesContent":[null,null],"names":["useCallback","useEffect"],"mappings":";;;;AAGA,IAAM,WAAW,GAAG,UAAC,EAepB,EAAA;QAdC,EAAY,GAAA,EAAA,CAAA,OAAA,CAAA,CAAZ,OAAO,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,EAAE,KAAA,CACZ,CAAA,EAAA,GAAA,EAAA,CAAA,OAAY,EAAZ,OAAO,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,CAAA,CACZ,sBAAuB,CAAvB,CAAA,cAAc,mBAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAA,EAAA,EACvB,EAAQ,GAAA,EAAA,CAAA,IAAA,CAAA,CAAR,IAAI,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,CAA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= StoryObj<typeof meta>;
5
- export declare const Primary: Story;
6
- export declare const Map_View: Story;
@@ -1,30 +0,0 @@
1
- type TDescription = {
2
- name: string;
3
- };
4
- export type TContent = {
5
- title: string;
6
- description: TDescription;
7
- };
8
- export type TPushPin = {
9
- icon: string;
10
- center: {};
11
- content: TContent;
12
- };
13
- export type TMapView = {
14
- mapType: string;
15
- bingKey: string;
16
- centerLocation?: [number, number];
17
- language?: string;
18
- zoom?: number;
19
- pushPins?: [];
20
- pushPinIcon?: any;
21
- showScalebar?: boolean;
22
- showCopyright?: boolean;
23
- showLogo?: boolean;
24
- disableZooming?: boolean;
25
- showBreadcrumb?: boolean;
26
- showLocateMeButton: boolean;
27
- showZoomButtons?: boolean;
28
- showMapTypeSelector?: boolean;
29
- };
30
- export {};