Skip to content
Google map on steroids.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.config
.tasks/utils
assets/features/map
demo
docs
lib
src
.babelrc
.editorconfig
.env.local
.eslintignore
.eslintrc
.gitignore
CHANGELOG.md
LICENSE
Makefile
README.md
package.json
yarn.lock

README.md

map feature

Google map with some extensions and additions to simplify usage.

Global dependencies

Dependencies

Installation

Install this package with sackmesser:

make feature-install-map

or when sackmesser is not used:

yarn install gi-feature-map

After the installation has completed, you can import the module files:

JS:

// import feature class
import Map from 'gi-feature-map'
// ...
base.features.add('map', Map)

Make sure you provide the global dependencies in your webpack config file:

new webpack.ProvidePlugin({
  base: 'gi-js-base'
})

Styles:

@import 'gi-feature-map/src/style';

Markup:

<script src="//maps.googleapis.com/maps/api/js?libraries=geometry&key=[YOUR_API_KEY]"></script>

Browser compatibility

  • Newest two browser versions of Chrome, Firefox, Safari and Edge
  • IE 10 and above

Development

  • make build or npm run build - Build production version of the feature.
  • make dev or npm run dev - Build demo of the feature, run a watcher and start browser-sync.
  • make test or npm run test - Test the feature.
  • make jsdoc - Update documentation inside the docs folder.
  • make publish - Publish npm package.
You can’t perform that action at this time.