dagatsoin / cordova-plugin-mapbox Goto Github PK
View Code? Open in Web Editor NEWMapbox plugin for Cordova 7+
Mapbox plugin for Cordova 7+
Hi, i'm tying to add clickable buttons over the native map but with poor results.
My implementation is:
`ionViewDidLoad() {
Mapbox.show({
domContainer: this.nativeMap.nativeElement,
additionalDomElements: [this.overlay.nativeElement.children[0], this.overlay.nativeElement.children[1]],
style: 'satellite',
cameraPosition: {
target: {
lat: 43.1122,
lng: 12.38878
}
},
sources: [],
hideAttribution: true,
hideLogo: true,
hideCompass: true,
disableRotation: false,
disableScroll: false,
disableTilt: true,
disableZoom: false,
disablePitch: false
}, result => {
console.log("succ to show map", result, Mapbox);
}, error => {
console.log("error to show native map ", error);
});
}`
The two simple buttons are rendered but when i touch them, the click goes through moving the map.
What am I doing wrong?
I'm tying this plugin in a starter ionic v3 app:
Ionic:
Ionic CLI : 5.2.1 (/Users/me/.nvm/versions/node/v8.16.0/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.5
@ionic/app-scripts : 3.2.2
Cordova:
Cordova CLI : 8.1.2 ([email protected])
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.1, (and 5 other plugins)
Utility:
cordova-res : not installed
native-run : 0.2.7 (update available: 0.2.8)
System:
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v8.16.0 (/Users/me/.nvm/versions/node/v8.16.0/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.3 Build version 10G8
i am new with cordova ,now i use cordova with quasar mode can you explain me how to install this plugin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.