Comments (11)
You can use any standard JS lib with TS so I don't get the point. If you want to contribure a .d.ts
file that would be great of course.
from mapbox.
I am facing the same issue
I am developing an app using Ionic 2 and typescript.
I want to use this plugin but get the same issue.
Do you have any solution?
from mapbox.
Hi, @peridotlib15 . Simplest solution is to declare Mapbox variable in .ts file before module or namespace declaration. Like below.
declare var Mapbox: any;
from mapbox.
Wow, actually I implemented typescript definition file and forgot about it. It's in attachment - rename it to mapbox.d.ts
mapbox.txt
from mapbox.
Can you be bothered to send a PR perhaps? Thanks for sharing anyway!
from mapbox.
I'll do PR. But first of all I'll add all functions to TypeScript definition file. Currently there is only part of them.
from mapbox.
@EddyVerbruggen I've added typescript definition file to PR
from mapbox.
@Anothar do you mind to add it on a different PR? It seems that you have lots of contributions, which is awesome!! But for faster PR landing, i would recommend you to divide them on PRs/branches.
Inspite of it, I'm gonna try to cherry pick your commit into a new PR so we don't have to re-open this issue.
from mapbox.
@Anothar done it.
from mapbox.
@cusspvz -- Hello! Any idea when 1.3.0 is going to be released? Trying to integrate this plugin with Ionic3 but it's not as clear-cut as I thought.
Thanks...
from mapbox.
@vbudilov is it working with ionic 3?
from mapbox.
Related Issues (20)
- In ios map is not showing ??
- This project is dead. HOT 4
- Not able to import mapbox-gl npm package and cordova-plugin-mapbox HOT 1
- Adding JS event on pin click HOT 2
- Search bar HOT 1
- addMarkerCallback does not show clickable button in popup on Android 5.1.0 HOT 3
- 3D Map Support HOT 1
- Add Polyline & Alpha support
- Failed to fetch plugin HOT 2
- Mapbox.hide - PhoneGap Cordova HOT 1
- use navigation in phonegap-based app
- How to use with ionic 3 HOT 3
- Mapa cortado cuando cambio la orientación del celular. HOT 6
- como usar clearBackground: true,
- Go to user's current location
- active or not HOT 9
- How to add element over map HOT 13
- No support and maintainance HOT 9
- Where is Mapbox plugin Documentation ? HOT 1
- AAPT: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox.