Comments (15)
I will work on it next weeks for iOS and Android in #29 and it should already work with #22
from mapbox.
5s later --> OMG!!
from mapbox.
We love to support all major sweet features of Mapbox so yeah! Please remind me when you see it released and want to use it.
from mapbox.
Roger that. If you need some help to do it I would love to collaborate on the JS part if you think I have the level for.
from mapbox.
I don't have high standards anyway ;) Any help is truly welcome π
from mapbox.
@EddyVerbruggen I just git flow feature start offlineMap
so I am ready to help!
In addition to support offline map I would need also to expose some useful methods like:
- convertCoordinate:toPointToView
- convertPoint:toCoordinateFromView
- and find a way to expose the GL matrix/camera props mapbox/mapbox-gl-native#3668 (comment)
My goal is to be expose essential information to sync a 2d or a 3d overlay (with three.js/pixi.js). That also could serves #15
Do you think we can include that in the next release? What could be improve/add? Maybe #20 and #21?
from mapbox.
Woohoo! Excited :)
It's probably best to keep the changes (PR's) small so they're easy to merge and test for everybody.
π
from mapbox.
Ok. This is the first time for me to collaborate on a github repo so I am not very confortable with PR's yet.
I have forked the repo and I am working on exposing convertCoordinate
. I will try to do a PR just for this when it will work.
from mapbox.
@EddyVerbruggen I think I need help to kickstart my work. It is the first time I customize a Cordova plugin.
I try to test my method exposition but receive
2016-03-25 17:55:16.203 HelloCordova[26812:753763] ERROR: Method '<null>:' not defined in Plugin 'Mapbox'
2016-03-25 17:55:16.203 HelloCordova[26812:753763] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["Mapbox1695989219","Mapbox",null,[]]
in CDVMapbox.h
- (void) convertCoordinate:(CDVInvokedUrlCommand*)command;
in CDVMapbox.m
- (void) convertCoordinate:(CDVInvokedUrlCommand *)command {
NSDictionary *args = [command.arguments objectAtIndex:0];
NSNumber *lat = [args valueForKey:@"lat"];
NSNumber *lng = [args valueForKey:@"lng"];
CGPoint screenPoint = [_mapView convertCoordinate:CLLocationCoordinate2DMake(lat.doubleValue, lng.doubleValue)
toPointToView:_mapView];
NSArray * point = [NSArray arrayWithObjects:
[NSNumber numberWithFloat:screenPoint.x],
[NSNumber numberWithFloat:screenPoint.y],
nil];
CDVPluginResult *pluginResult = [ CDVPluginResult
resultWithStatus: CDVCommandStatus_OK
messageAsArray: point
];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
in Mapbox.js
convertCoordinate: function(options, successCallback, errorCallback){
cordova.exec(successCallback, errorCallback, "Mapbox", "convertCoordinate" [options]);
},
Do I miss a declaration somewhere?
from mapbox.
That's all looking fine. Can you commit and push that code to your fork? Then I'll take a look if you like.
from mapbox.
I pushed it here https://github.com/dagatsoin/Mapbox/tree/feature/convertCoordinate
from mapbox.
Take a long π at this:
from mapbox.
WIP. Close this :)
from mapbox.
Hi guys.
I read the thread and don't know what's the state of the implementation of using the offline feature of the native Mapbox with cordova?
I didn't see anything in the docs. Furthermore, I would love to help out with anything I can.
from mapbox.
Oh hey.
Thanks for the update. I was kind of lost.
Thanks you.
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.