0.1.8 • Published 4 years ago

@pamenary/vue-cedarmaps v0.1.8

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

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 @pamenary/vue-cedarmaps --save

Yarn

yarn add @pamenary/vue-cedarmaps

Rendering Component

import CedarMaps from  "@pamenary/vue-cedarmaps";
<template>
  <div id="app">
    <Cedarmaps
      style="height: 600px"
      :center="['51.652878', '32.60999']"
      token="d1fe86dd94f013fd1e0897adf8d64d8f329cbaac"
      :zoom="12"
    >
      <MglNavigationControl position="top-right" />
      <MglMarker :coordinates="marker" color="blue" />
    </Cedarmaps>
  </div>
</template>

<script>
import {
  Cedarmaps,
  MglMarker,
  MglNavigationControl
} from "@pamenary/vue-cedarmaps";

export default {
  name: "app",
  components: {
    Cedarmaps,
    MglNavigationControl,
    MglMarker
  },
  data() {
    return {
      marker: [51.652878, 32.60999]
    };
  }
};
</script>

<style>
* {
  padding: 0;
  margin: 0;
}
</style>

You can read more about Vue Mapbox in Vue Mapbox Documentation

Example

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

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago