Giter Site home page Giter Site logo

Comments (12)

adellamano avatar adellamano commented on August 20, 2024

I modified the showMap function in MapKit.js:

showMap: function(success, error, options) {
for (var v in options) {
if (options.hasOwnProperty(v)) {
this.options[v] = options[v];
}
}
cordovaRef.exec(success, error, 'MapKit', 'showMap', [this.options]);
}

Then passed in a new options object with updated params and have it working successfully.

from mapkit.

tiendq avatar tiendq commented on August 20, 2024

Map is centered on the first call and being reused in next calls so it doesn't update to new location. Look at showMap method (Objective-C code) for detail. You need to update this method.

from mapkit.

imhotep avatar imhotep commented on August 20, 2024

Do you want to change it after it's loaded or is not loading with the right position ?

from mapkit.

jvence avatar jvence commented on August 20, 2024

Having same problem. Any resolution on this?

from mapkit.

imhotep avatar imhotep commented on August 20, 2024

@jvence what problem?

from mapkit.

jvence avatar jvence commented on August 20, 2024

After the map is drawn, if you redraw it second time with a new location, it ignores the new location (not pin location but the map center location) - See Tiendq's comment above

from mapkit.

jvence avatar jvence commented on August 20, 2024

We basically want to be able to change the location of the map after the first redraw. The first time it's drawn with the correct location but subsequent calls to draw a map, do not update the location and always uses the first location drawn.

from mapkit.

jvence avatar jvence commented on August 20, 2024

Anyone know how to fix this? (@imhotep please refrain from saying "fix what?" ;-) )

from mapkit.

imhotep avatar imhotep commented on August 20, 2024

I will take a look at it this week-end

from mapkit.

jvence avatar jvence commented on August 20, 2024

Thanks @imhotep let me know if we can help.

from mapkit.

jvence avatar jvence commented on August 20, 2024

@adellamano tried your solution to no avail. Can you elaborate more on how you got it working using the javascript solution you posted above?

from mapkit.

imhotep avatar imhotep commented on August 20, 2024

@jvence There is a pending pull request #56

Maybe you can give it a try? It only works for iOS though for now

from mapkit.

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.