react-bing-map 1.0.5 → 1.0.7

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.
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
- ## React - Bing Maps
2
-
1
+ ## React - Bing Map
3
2
 
4
3
  ## Prerequisites
5
4
 
@@ -28,14 +27,16 @@ import { BingMaps } from "react-bing-map";
28
27
  #### Customized Example:
29
28
 
30
29
  ```js
31
- <BingMaps
32
- mapType=''
33
- bingKey='key'
30
+ <BingMaps
31
+ mapType="grayscale"
32
+ bingKey="key"
34
33
  centerLocation={[28.6448, 77.216721]}
35
- language={'en-IN'}
36
- zoom ={0}
37
- pushPins= {[]}
38
- pushPinIcon=''
34
+ language="en-IN"
35
+ zoom={0}
36
+ pushPins={[]}
37
+ mapPosition={ north: 49.234, south: 24.175, east: -65.573, west: -125.778 }
38
+ infoBoxStyle={ maxWidth: 490, maxHeight: 600 }
39
+ pushPinIcon=""
39
40
  showScalebar={true}
40
41
  showCopyright={true}
41
42
  showLogo={true}
@@ -44,9 +45,132 @@ import { BingMaps } from "react-bing-map";
44
45
  showLocateMeButton={true}
45
46
  showZoomButtons={true}
46
47
  showMapTypeSelector={true}
48
+
47
49
  />
48
50
  ```
49
51
 
52
+ ##### Props Details
53
+
54
+ #### 1. mapType
55
+
56
+ Following options are available to use based on requirements
57
+
58
+ ```js
59
+ [
60
+ "aerial",
61
+ "canvasDark",
62
+ "canvasLight",
63
+ "birdseye",
64
+ "grayscale",
65
+ "mercator",
66
+ "ordnanceSurvey",
67
+ "road",
68
+ "streetside",
69
+ ];
70
+ ```
71
+
72
+ #### 2. bingKey
73
+
74
+ Get the keys from the Bing Maps Dev Portal and use them.
75
+
76
+ #### 3. centerLocation
77
+
78
+ It is used to set the map position at the center of the browser screen like the output image.
79
+
80
+ ```js
81
+ centerLocation={[28.6448, 77.216721]}
82
+ ```
83
+
84
+ #### 4. language
85
+
86
+ It is used to define the map language based on specific needs.
87
+
88
+ ```js
89
+ language = "en-IN";
90
+ ```
91
+
92
+ #### 5. zoom
93
+
94
+ We can customize the zoom level of the map and support min 1 and max 19
95
+
96
+ ```js
97
+ zoom={0}
98
+ ```
99
+
100
+ #### 6. pushPins
101
+
102
+ It is a list of array objects, and the structure should be as follows
103
+
104
+ ```json
105
+ {
106
+ "icon": "",
107
+ "location": {
108
+ "latitude": 13.067439,
109
+ "longitude": 80.237617
110
+ },
111
+ "content": {
112
+ "title": "Chennai",
113
+ "description": `html or simple text`
114
+ }
115
+ }
116
+ ```
117
+
118
+ ##### 1. icon
119
+
120
+ This icon used to show the category based pushpin we can use it or else set empty sting and use the `pushPinIon`key for global icon.
121
+
122
+ The content of the description should be like the inner HTML content below
123
+
124
+ ##### 2. content
125
+
126
+ The content structure looks like the one below
127
+
128
+ ```json
129
+
130
+ "content": {
131
+ "title": "Chennai",
132
+ "description": `
133
+ <div class="pin-detail">
134
+ <section>
135
+ <div class="name">Partner:</div>
136
+ <div class="value">
137
+ 1067207 <span id="copy_42" class="copy-section"></span>
138
+ </div>
139
+ </section>
140
+ </div>
141
+ `
142
+ }
143
+
144
+ ```
145
+
146
+ or else use this simple description
147
+
148
+ ```js
149
+ "content": {
150
+ "title": "Chennai",
151
+ "description": "Description"
152
+ }
153
+ ```
154
+
155
+ #### 7. pushPinIcon
156
+
157
+ It is used for global pushpin icon
158
+
159
+ ```js
160
+ pushPinIcon = "url";
161
+ ```
162
+
163
+ #### 8. mapPosition
164
+
165
+ #### 9. infoBoxStyle
166
+
167
+ It is used to customize the infoBox maxWidth and maxHeight
168
+
169
+ ```js
170
+ infoBoxStyle={ maxWidth: 490, maxHeight: 600 }
171
+ ```
172
+ ![alt text](<infoBox.png>)
173
+
50
174
  #### Output:
51
175
 
52
- ![screenshot](/output1.png)
176
+ ![screenshot](/output.png)
package/package.json CHANGED
@@ -15,11 +15,7 @@
15
15
  "typescript",
16
16
  "react"
17
17
  ],
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/kmohanraj/react-bing-maps"
21
- },
22
- "version": "1.0.5",
18
+ "version": "1.0.7",
23
19
  "private": false,
24
20
  "license": "MIT",
25
21
  "main": "./lib/cjs/index.js",
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const MapView: () => React.JSX.Element;
@@ -1 +0,0 @@
1
- export { MapView } from './MapView/MapView';
@@ -1,17 +0,0 @@
1
- export type TMapView = {
2
- mapType?: string;
3
- bingKey: string;
4
- centerLocation?: [number, number];
5
- initZoom?: number;
6
- pushPins?: [];
7
- pushPinIcon?: any;
8
- };
9
- declare const useBingMaps: ({ mapType, bingKey, centerLocation, initZoom, pushPins, pushPinIcon }: {
10
- mapType?: string | undefined;
11
- bingKey?: string | undefined;
12
- centerLocation?: number[] | undefined;
13
- initZoom?: number | undefined;
14
- pushPins?: never[] | undefined;
15
- pushPinIcon?: string | undefined;
16
- }) => [any, any];
17
- export default useBingMaps;
@@ -1 +0,0 @@
1
- export * from './components';
package/lib/cjs/index.js DELETED
@@ -1,60 +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.initZoom, initZoom = _e === void 0 ? 0 : _e, _f = _a.pushPins, pushPins = _f === void 0 ? [] : _f, _g = _a.pushPinIcon, pushPinIcon = _g === void 0 ? '' : _g;
7
- var myWindow = window;
8
- var initMap = React.useCallback(function () {
9
- var Maps = myWindow.Microsoft.Maps;
10
- var map = new Maps.Map('#bing-map', {
11
- credentials: bingKey,
12
- center: new Maps.Location(centerLocation[0], centerLocation[1]),
13
- mapTypeId: Maps.MapTypeId[mapType],
14
- showLogo: false,
15
- zoom: initZoom
16
- });
17
- var infobox = new Maps.Infobox(map.getCenter(), {
18
- visible: false
19
- });
20
- infobox.setMap(map);
21
- addPushPins(map, infobox, Maps);
22
- }, []);
23
- var addPushPins = function (map, infobox, Maps) {
24
- for (var ele in pushPins) {
25
- new Maps.Pushpin(centerLocation, pushPinIcon);
26
- // const data: ContentType = pushPins[ele]?.content
27
- // handleOnInfobox(pin, infobox, data, Maps)
28
- }
29
- };
30
- // myWindow.initMap = initMap;
31
- return [myWindow, initMap];
32
- };
33
-
34
- var MapView = function () {
35
- var mapView = {
36
- mapType: '',
37
- bingKey: '',
38
- centerLocation: [0, 0],
39
- initZoom: 0,
40
- pushPins: [],
41
- pushPinIcon: ''
42
- };
43
- var _a = useBingMaps(mapView), myWindow = _a[0], initMap = _a[1];
44
- myWindow.initMap = initMap;
45
- React.useEffect(function () {
46
- if (!document.querySelector('[data-bing="true"]')) {
47
- var scriptTag = document.createElement('script');
48
- scriptTag.src =
49
- 'https://www.bing.com/api/maps/mapcontrol' + '?callback=initMap';
50
- scriptTag.async = true;
51
- scriptTag.dataset.bing = 'true';
52
- document.body.appendChild(scriptTag);
53
- }
54
- }, []);
55
- return (React.createElement("div", { className: 'map-view' },
56
- React.createElement("div", { id: 'bing-map' })));
57
- };
58
-
59
- exports.MapView = MapView;
60
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/hooks/useBingMaps.ts","../../src/components/MapView/MapView.tsx"],"sourcesContent":[null,null],"names":["useCallback","useEffect"],"mappings":";;;;AAoBA,IAAM,WAAW,GAAG,UAAC,EAOpB,EAAA;AANC,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,OAAY,EAAZ,OAAO,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,EACZ,eAAY,EAAZ,OAAO,mBAAG,EAAE,GAAA,EAAA,EACZ,EAAuB,GAAA,EAAA,CAAA,cAAA,EAAvB,cAAc,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,CAAC,CAAC,EAAE,CAAC,CAAC,GAAA,EAAA,EACvB,gBAAY,EAAZ,QAAQ,mBAA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3
- interface ButtonProps {
4
- /**
5
- * Is this the principal call to action on the page?
6
- */
7
- primary?: boolean;
8
- /**
9
- * What background color to use
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * How large should the button be?
14
- */
15
- size?: 'small' | 'medium' | 'large';
16
- /**
17
- * Button contents
18
- */
19
- label: string;
20
- /**
21
- * Optional click handler
22
- */
23
- onClick?: () => void;
24
- }
25
- /**
26
- * Primary UI component for user interaction
27
- */
28
- export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
29
- export {};
@@ -1,8 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const Primary: Story;
6
- export declare const Secondary: Story;
7
- export declare const Large: Story;
8
- export declare const Small: Story;
@@ -1,6 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const LoggedIn: Story;
6
- export declare const LoggedOut: Story;
@@ -1,8 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const Primary: Story;
6
- export declare const Secondary: Story;
7
- export declare const Large: Story;
8
- export declare const Small: Story;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const MapView: () => React.JSX.Element;
@@ -1 +0,0 @@
1
- export { MapView } from './MapView/MapView';
@@ -1,17 +0,0 @@
1
- export type TMapView = {
2
- mapType?: string;
3
- bingKey: string;
4
- centerLocation?: [number, number];
5
- initZoom?: number;
6
- pushPins?: [];
7
- pushPinIcon?: any;
8
- };
9
- declare const useBingMaps: ({ mapType, bingKey, centerLocation, initZoom, pushPins, pushPinIcon }: {
10
- mapType?: string | undefined;
11
- bingKey?: string | undefined;
12
- centerLocation?: number[] | undefined;
13
- initZoom?: number | undefined;
14
- pushPins?: never[] | undefined;
15
- pushPinIcon?: string | undefined;
16
- }) => [any, any];
17
- export default useBingMaps;
@@ -1 +0,0 @@
1
- export * from './components';
package/lib/esm/index.js DELETED
@@ -1,58 +0,0 @@
1
- import React, { useCallback, useEffect } from 'react';
2
-
3
- var useBingMaps = function (_a) {
4
- 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.initZoom, initZoom = _e === void 0 ? 0 : _e, _f = _a.pushPins, pushPins = _f === void 0 ? [] : _f, _g = _a.pushPinIcon, pushPinIcon = _g === void 0 ? '' : _g;
5
- var myWindow = window;
6
- var initMap = useCallback(function () {
7
- var Maps = myWindow.Microsoft.Maps;
8
- var map = new Maps.Map('#bing-map', {
9
- credentials: bingKey,
10
- center: new Maps.Location(centerLocation[0], centerLocation[1]),
11
- mapTypeId: Maps.MapTypeId[mapType],
12
- showLogo: false,
13
- zoom: initZoom
14
- });
15
- var infobox = new Maps.Infobox(map.getCenter(), {
16
- visible: false
17
- });
18
- infobox.setMap(map);
19
- addPushPins(map, infobox, Maps);
20
- }, []);
21
- var addPushPins = function (map, infobox, Maps) {
22
- for (var ele in pushPins) {
23
- new Maps.Pushpin(centerLocation, pushPinIcon);
24
- // const data: ContentType = pushPins[ele]?.content
25
- // handleOnInfobox(pin, infobox, data, Maps)
26
- }
27
- };
28
- // myWindow.initMap = initMap;
29
- return [myWindow, initMap];
30
- };
31
-
32
- var MapView = function () {
33
- var mapView = {
34
- mapType: '',
35
- bingKey: '',
36
- centerLocation: [0, 0],
37
- initZoom: 0,
38
- pushPins: [],
39
- pushPinIcon: ''
40
- };
41
- var _a = useBingMaps(mapView), myWindow = _a[0], initMap = _a[1];
42
- myWindow.initMap = initMap;
43
- useEffect(function () {
44
- if (!document.querySelector('[data-bing="true"]')) {
45
- var scriptTag = document.createElement('script');
46
- scriptTag.src =
47
- 'https://www.bing.com/api/maps/mapcontrol' + '?callback=initMap';
48
- scriptTag.async = true;
49
- scriptTag.dataset.bing = 'true';
50
- document.body.appendChild(scriptTag);
51
- }
52
- }, []);
53
- return (React.createElement("div", { className: 'map-view' },
54
- React.createElement("div", { id: 'bing-map' })));
55
- };
56
-
57
- export { MapView };
58
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/hooks/useBingMaps.ts","../../src/components/MapView/MapView.tsx"],"sourcesContent":[null,null],"names":[],"mappings":";;AAoBA,IAAM,WAAW,GAAG,UAAC,EAOpB,EAAA;AANC,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,OAAY,EAAZ,OAAO,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,EACZ,eAAY,EAAZ,OAAO,mBAAG,EAAE,GAAA,EAAA,EACZ,EAAuB,GAAA,EAAA,CAAA,cAAA,EAAvB,cAAc,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,CAAC,CAAC,EAAE,CAAC,CAAC,GAAA,EAAA,EACvB,gBAAY,EAAZ,QAAQ,mBAAG,CAAC,GAAA,EAAA,EACZ,EAAa,GAAA,EAAA,CAAA,QAAA,EAAb,QAAQ,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,EAAE,KAAA,EACb,EAAA,GAAA,EAAA,CAAA,WAAgB,EAAhB,WAAW,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,CAAA;IAEhB,IAAI,QAAQ,GAAG,MAAa,CAAC;IAC7B,IAAM,OAAO,GAAG,WAAW,CAAC,YAAA;AAC1B,QAAA,IAAI,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC;QACnC,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE;AAClC,YAAA,WAAW,EAAE,OAAO;AACpB,YAAA,MAAM,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,c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S,CAAC,YAAA;AACR,QAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE;YACjD,IAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AACnD,YAAA,SAAS,CAAC,GAAG;gBACX,0CAA0C,GAAG,mBAAmB,CAAC;AACnE,YAAA,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC;AACvB,YAAA,SAAS,CAAC,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC;AAChC,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;AACtC,SAAA;KACF,EAAE,EAAE,CAAC,CAAC;AACP,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,UAAU,EAAA;AACvB,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,EAAE,EAAC,UAAU,EAAO,CAAA,CACrB,EACN;AACJ;;;;"}
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import './button.css';
3
- interface ButtonProps {
4
- /**
5
- * Is this the principal call to action on the page?
6
- */
7
- primary?: boolean;
8
- /**
9
- * What background color to use
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * How large should the button be?
14
- */
15
- size?: 'small' | 'medium' | 'large';
16
- /**
17
- * Button contents
18
- */
19
- label: string;
20
- /**
21
- * Optional click handler
22
- */
23
- onClick?: () => void;
24
- }
25
- /**
26
- * Primary UI component for user interaction
27
- */
28
- export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
29
- export {};
@@ -1,8 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const Primary: Story;
6
- export declare const Secondary: Story;
7
- export declare const Large: Story;
8
- export declare const Small: Story;
@@ -1,6 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const LoggedIn: Story;
6
- export declare const LoggedOut: Story;
@@ -1,8 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- declare const meta: any;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const Primary: Story;
6
- export declare const Secondary: Story;
7
- export declare const Large: Story;
8
- export declare const Small: Story;