New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rct-maptalks

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rct-maptalks

A way to use Maptalks as React Components

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Overview

React Maptalks provide a way to use Maptalks library in your react project. It do not replace Maptalks, instead make an abstraction of it objects like layers, handlers an containers to create components and hooks for React.

How it works

To know how it works React Maptalks, we has divided in this concepts:

Rendering

React Maptalks does not render the Maptalks elements to the DOM, just render a div container for instantiate the map an other elements inside them. The render work is done by Maptalks library directly.

Element ref

When you use a React Maptalks component, it instantiate internally the associated maptalks object and you can get access to this instance by passing a get function that you will see later in this documentation.

Map element types

In a map instance you can have two element type:

Geography element

Reprecent spatial entities like points, lines, polygons and markers, or sets of this like a Vector layer.

Decorator element

It Dont reprecent spatial data, just is used by displaying additional information of the geography element like the info window an tooltips. It should be noted that unlike to ui elements, it have associated a geography position inherit from geography element that its decorating.

Context

React Maptalks create a general context for map instance and other particular contexts for geography elements inside the map. In this way its possible to relate a geography element with its children, for example a Vector Layer with its geometries, or a geometry with its tooltip.

Events

React Maptalks abstracts the event interaction by ussing custom hooks that have expossed for the user.

Documentation

Go to React Maptalks Docs to see more information

Keywords

react

FAQs

Package last updated on 11 Apr 2023

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