Socket
Socket
Sign inDemoInstall

kenya-map

Package Overview
Dependencies
5
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kenya-map

This package is used to generate an SVG Map of Kenya and also giving ability to set callback function and some parameters to change fill & stroke color and also custom fields for display of data


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Angular SVG US Map

This package is used to generate an SVG Map of Kenya and also giving ability to set callback function and some parameters to change fill & stroke color and also custom fields for display of data

kenyaMap kenyaMap

How to install

npm install kenya-map

Configuration

app.module.ts

import { kenyaMapModule } from 'kenya-map';

You need to add this module in @NgModule(Imports). That's it.

Accessing Component

<kenya-map></kenya-map>

API Reference

Inputs

fillColorType: string Optional. Will change color of county name text. For Example: fillColor="#C0C0C0" (Not enabled for now)
fillCountyColorType: string Optional. Will change background color of county area. For Example: fillCountyColor="#C0C0C0"
strokeColorType: string Optional. Will change border color of county area. For Example: strokeColor="#C0C0C0"

Output

onMapClickWill be emitted when county area has been clicked. It returns county id and name { "county": { countyID, countyName } }. (onMapClick) event.

Moreover, you can apply your own css to beautify this component.

FAQs

Last updated on 22 Nov 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc