2.4.2 • Published 1 month ago
khulke-map-plugin v2.4.2
Map Component
The Map component is designed to display a map with location-specific data using Latlong Map and integrate with Khulke Search API.
Installation
Install the khulke-map-plugin package and its styles:
npm install khulke-map-plugin
Usage
import React from 'react';
import { Map } from 'khulke-map-plugin';
import 'khulke-map-plugin/dist/style.css';
const MyMap = () => {
const searchByLocation = false; //for all India Data
return (
<Map
apiUrl={process.env.REACT_APP_KHULKE_API_URL}
authToken="YOUR_AUTH_TOKEN"
searchByLocation={searchByLocation}
height={'93vh'}
width={'100%'}
isDark={true}
latitude={12.75}
longitude={75.989}
radius={50}
searchBarEnabled={true}
/>
);
};
export default MyMap;
Props
- apiUrl: (string) The API URL to fetch map data.
- authToken: (string) Authorization token required for API authentication.
- searchByLocation: (boolean) A flag to indicate whether to perform location-based search.
- searchString: (string) The search string or location for the map.
- height: (string) The height of the map container (e.g., '93vh').
- width: (string) The width of the map container (e.g., '100%').
- isDark: (boolean) A flag to specify the map tiles.
- latitude: (number) The latitude for location-based search.
- longitude: (number) The longitude for location-based search.
- radius: (number) The radius for location-based search.
- searchBarEnabled: (boolean) If true, searchbar will be enabled inside map.
2.4.2
1 month ago
2.4.1
2 months ago
2.4.0
2 months ago
2.3.8
2 months ago
2.3.9
2 months ago
2.3.4
2 months ago
2.3.3
2 months ago
2.3.6
2 months ago
2.3.5
2 months ago
2.3.7
2 months ago
2.3.0
2 months ago
2.3.2
2 months ago
2.3.1
2 months ago
2.2.9
2 months ago
2.2.8
3 months ago
2.2.5
3 months ago
2.2.7
3 months ago
2.2.6
3 months ago
2.2.4
3 months ago
2.2.3
3 months ago
2.2.2
3 months ago
2.2.1
4 months ago
2.2.0
4 months ago
2.1.0
4 months ago
1.1.9
5 months ago
1.1.8
5 months ago
1.1.7
5 months ago
2.0.0
5 months ago
1.1.6
5 months ago
1.1.5
5 months ago
1.1.4
5 months ago
1.1.3
5 months ago
1.1.2
5 months ago
1.1.1
6 months ago
1.1.0
6 months ago
1.0.1
6 months ago
1.0.0
6 months ago
0.0.9
6 months ago
0.0.8
6 months ago
0.0.7
6 months ago
0.0.6
6 months ago
0.0.5
6 months ago
0.0.4
6 months ago
0.0.3
6 months ago
0.0.2
6 months ago
0.0.1
6 months ago