New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@onepark/react-native-component-map-clustering

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onepark/react-native-component-map-clustering

## Installation

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
4
Weekly downloads
 
Created
Source

Map with clustering

Installation

yarn add @onepark/react-native-component-map-clustering

Dependencies:

  • react-native-maps > 0.21

Usage

Children

⚠ For each custom marker, add the following props:

  • id
  • coordinate : { longitude, latitude }

Ref

Ref methods from react-native-maps such as animateToRegion()
Extra methods
MethodTypeNote
zoomOnMarker({latitude, longitude}, { top, bottom, right, left }) => voidZoom on a marker & place it on the screen. left, right, top, bottom are in between 0 & 1. They represent out far to the right, left, top, or bottom to place the marker.

Props

Props from the react-native-maps API
Other props
PropTypeDefaultNote
clusteringbooleanFalse(Optional) When true enables clustering of Markers.
renderCluster(Cluster) => React.NodeRenders default clusters on Map(Optional) Render your custom clusters.
onPressCluster(Cluster) => voidonPress not handled(Optional) Handle onPress on default clusters.
setRef`(React ref) => void(Optional) Get the MapView ref

Types

type Cluster {
  properties : {
    cluster: Boolean
    cluster_id: Number
    point_count: Number
    point_count_abbreviated: String
  }
  geometry: {
    coordinates: [(longitude), (latitude)]
  }
}

FAQs

Package last updated on 20 Dec 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc