@wmfs/quasar-map-mapbox

1.28.0 • Public • Published

quasar-map-mapbox

Tymly Cardscript CircleCI npm (scoped) Dependabot badge Commitizen friendly JavaScript Style Guide license

MapBox wrapped as a Quasar Component

Install

$ npm install @wmfs/quasar-map-mapbox --save

Usage

<template>
  <q-map
    centre-latitude=...  // initial centre
    centre-longitude=... 
    :locked=true|false   // whether the map can be panned and clicked 
    >
    <q-map-circle
      latitude=...  // marker position
      longitude=... 
      color=...  // optional
      id=...     // optional
      :locked=true|false // whether this marker can be dragged and moved around 
  </q-map>
</template>
<script>
import QMap from '@wmfs/quasar-map-mapbox'

export default {
  ...
  components: { QMap, ... }
  ...
}
</script>

A map may have many markers.

All parameters are optional.

If the QMap's centre-latitude and centre-longitude are not defined, the map will attempt to centre of the mid-point of its markers.

Build

Define the MAPBOX_ACCESS_TOKEN environment variable at build time.

License

MIT

Package Sidebar

Install

npm i @wmfs/quasar-map-mapbox

Weekly Downloads

17

Version

1.28.0

License

MIT

Unpacked Size

43 kB

Total Files

10

Last publish

Collaborators

  • wmfsbot