Socket
Book a DemoInstallSign in
Socket

@licuido/ui_map

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@licuido/ui_map

Map - which is related to googlemap ,we can customize the routes, direction and places but google api key is must !

unpublished
latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Map

Map - which is related to googlemap ,we can customize the routes, direction and places but google api key is must !

Author

  • @author Arunachalam R arunachalam@crayond.co

Story Book Link Map

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido/ui_map

Import component

import { Map } from '@licuido/ui_map';

Usage

You can pass the location (Latitude and Longitude) for finding the places

<Map
  googleMapApiKey=''
  location={[
    {
      name: 'Adayar',
      location: {
        lat: 13.003387,
        lng: 80.255043,
      },
      address: 'Adyar is a large neighbourhood in south Chennai, Tamil Nadu, India',
      image: './assets/adayar.jpg',
      pinnedIcon: './assets/pinned.svg',
    },
  ]}
  locations={locations}
  center={{
    lat: 12.956786921292327,
    lng: 80.25718652012615,
  }}
 
/>

Image

alt text

Map width Route

googleMapApiKey - googleMapApiKey is must for Routes!

You can pass the origin (start) and destination (end) to find the Route Direction

<Map
   start={ lat: 13.003387, lng: 80.255043 }
   end= { lat: 12.95790649960084, lng: 80.26010930368109 }/>

Samplecode

<Map
   googleMapApiKey=''
  location={[
    {
      name: 'Adayar',
      location: {
        lat: 13.003387,
        lng: 80.255043,
      },
      address: 'Adyar is a large neighbourhood in sout Chennai, Tamil Nadu, India',
      image: './assets/adayar.jpg',
      pinnedIcon: './assets/pinned.svg',
    },
  ]}
  locations={locations}
  center={{
    lat: 12.956786921292327,
    lng: 80.25718652012615,
  }}
  start= { lat: 13.003387, lng: 80.255043 }
  end= { lat: 12.95790649960084, lng: 80.26010930368109 }
  mapStyles= {
      height: '100%',
      width: '100%',
    }
  RadiusStyle={{}}
  markerLabelStyle= {{}}
  calculatebtnStyle={{}}
  mapRadiusIcon=''
  radiusDistance={1200000000}
  zoom={13}
  isSearchRequired={false}
  setDefaultRoute={false}
  fullscreenControl
  mapTypeControl={false}
  onMarkerClick={()=>onMarkerClick()}
  onMarkerMouseOver={()=>onMarkerMouseOver()}
  onClearRoute={()=>onClearRoute()}
  onCalculateRoutes={()=>onCalculateRoutes()}
  onMarkerClustererClick={()=>onMarkerClustererClick()}
  onMarkerMouseOut= {()=>onMarkerMouseOut()}
/>

Props

NameDescriptionDefaultControl
mapStylesobject{ height: '100%', width: '100%' }mapStyles : {height : "100%"width : "100%"}
RadiusStyleobject{ }RadiusStyle : {}
markerLabelStyleobject{ }markerLabelStyle : {}
calculatebtnStyleSxProps<{}>-calculatebtnStyle : {}
googleMapApiKeystring""
zoomnumber13
mapRadiusIconstring"./assets/mapCircle.png"./assets/mapCircle.png
radiusDistancenumber1200000000
isSearchRequiredbooleantrueFalseTrue
deatilsCardCustomizeReactNode-"Customize Card"
locationslocationsData[][]locations : [0 : {...} 5 keys]
centerany-center : {lat : ""lng : ""}
originlatLAng{ lat: 0, lng: 0 }origin : {lat : 13.003387lng : 80.255043}
destinationlatLAng{ lat: 0, lng: 0 }destination : {lat : 12.95790649960084lng : 80.26010930368109}
setDefaultRoutebooleantrueFalseTrue
fullscreenControlbooleantrueFalseTrue
searchBoxRootsxSxProps<{}>-searchBoxRootsx : {}
zoomControlbooleantrueFalseTrue
streetViewControlbooleantrueFalseTrue
mapTypeControlbooleantrueFalseTrue
onClearRoute() => void() => false()=>onClearRoute()
onCalculateRoutes(data: any) => void() => false()=>onCalculateRoutes()
onMarkerMouseOver(marker: any) => void() => false()=>onMarkerMouseOver()
onMarkerClustererClick(e: unknown) => void() => false()=>onMarkerClustererClick()
onMarkerClick(data: any) => void() => false()=>onMarkerClick()
onMarkerMouseOut() => void() => false()=>onMarkerMouseOut()
classNamestring-Set string
sxSxProps<Theme>-Set object
responsiveDetailsCustomizeReactNode-Set object
deatilsCardCustomizesboolean-Set boolean
customCardLocationany-Set object

FAQs

Package last updated on 01 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts