Giter VIP home page Giter VIP logo

Comments (15)

dagatsoin avatar dagatsoin commented on August 16, 2024 2

I will work on it next weeks for iOS and Android in #29 and it should already work with #22

from mapbox.

dagatsoin avatar dagatsoin commented on August 16, 2024 1

5s later --> OMG!!

from mapbox.

EddyVerbruggen avatar EddyVerbruggen commented on August 16, 2024

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.

dagatsoin avatar dagatsoin commented on August 16, 2024

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.

EddyVerbruggen avatar EddyVerbruggen commented on August 16, 2024

I don't have high standards anyway ;) Any help is truly welcome πŸ‘

from mapbox.

dagatsoin avatar dagatsoin commented on August 16, 2024

@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:

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.

EddyVerbruggen avatar EddyVerbruggen commented on August 16, 2024

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.

dagatsoin avatar dagatsoin commented on August 16, 2024

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.

dagatsoin avatar dagatsoin commented on August 16, 2024

@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.

EddyVerbruggen avatar EddyVerbruggen commented on August 16, 2024

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.

dagatsoin avatar dagatsoin commented on August 16, 2024

I pushed it here https://github.com/dagatsoin/Mapbox/tree/feature/convertCoordinate

from mapbox.

EddyVerbruggen avatar EddyVerbruggen commented on August 16, 2024

Take a long πŸ‘“ at this:

screen shot 2016-03-25 at 22 14 49

from mapbox.

dagatsoin avatar dagatsoin commented on August 16, 2024

WIP. Close this :)

from mapbox.

vinibiso avatar vinibiso commented on August 16, 2024

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.

vinibiso avatar vinibiso commented on August 16, 2024

Oh hey.

Thanks for the update. I was kind of lost.

Thanks you.

from mapbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.