Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 'Mapable' mixin #16

Merged
merged 3 commits into from
Apr 25, 2018
Merged

Conversation

chrismayer
Copy link
Collaborator

This adds a mixin Mapable, which can be used to bind the OpenLayers map instance to any component.

To use the mixin just import it and add it to the target component, like this:

import { Mapable } from '../../mixins/Mapable';

export default {
  directives: {...},
  mixins: [Mapable],
  props: ...
}

The mixin also checks if the target (father) component has method onMapBound and executes it after the OpenLayers map instance has been bound.

Closes #10

This adds a mixin 'Mapable', which can be used to bind the OpenLayers
map instance to any component.
@chrismayer chrismayer merged commit 3e74a56 into wegue-oss:master Apr 25, 2018
@chrismayer chrismayer deleted the mapable branch April 25, 2018 08:36
justb4 added a commit to Geolicious/wegue that referenced this pull request May 25, 2020
justb4 pushed a commit to Geolicious/wegue that referenced this pull request May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant