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

@cedarstudios/react-cedarmaps

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cedarstudios/react-cedarmaps

A mapping service and highly detailed and spatially accurate GIS vector data application that covers the whole country of Iran.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
4
Maintainers
3
Weekly downloads
 
Created
Source

CedarMaps SDK for React

What is CedarMaps?

CedarMaps is the location data platform for mobile and web applications. We provide building blocks to add location features like maps, search, and navigation into any experience you create. Use our simple and powerful APIs & SDKs and our open source libraries for interactivity and control.

Sign up for CedarMaps

Not a CedarMaps user yet? Sign up for an account here. Once you’re signed in, all you need to start building is a CedarMaps access token.

This guide will take you through the process of integrating CedarMaps into your React application.

This package is a wrapper over react-mapbox-gl library.

Table of Contents

Installation

Npm

npm install @cedarstudios/react-cedarmaps --save

Yarn

yarn add @cedarstudios/react-cedarmaps

Rendering Component

import CedarMaps from '@cedarstudios/react-cedarmaps'
render() {
  return {
    <CedarMaps
        containerStyle={{
          height: '100vh',
          width: '100%'
        }}
        token='YOUR ACCESS TOKEN'
        center={[ 51.34379364705882,  35.74109568627451]}
      >
    </CedarMaps>
  }
}

Adding Markers

Get ReactMapboxGl object and start adding Markers, Polylines or other controls.

const {RotationControl, ZoomControl, ScaleControl} = CedarMaps.getReactMapboxGl()
 return (
      <CedarMaps
        containerStyle={{
          height: '100vh',
          width: '100%'
        }}
        token='YOUR ACCESS TOKEN'
        preserveDrawingBuffer={false}
        center={[ 51.34379364705882,  35.74109568627451]}
      >
        <RotationControl/>
        <ZoomControl/>
        <ScaleControl/>
      </CedarMaps>
    )

You can read more about ReactMapboxGl in Mapbox Documentation

Example

You can consult this example for getting acquainted with our package.

Keywords

map

FAQs

Package last updated on 02 Feb 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