Comments (12)
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.
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.
Do you want to change it after it's loaded or is not loading with the right position ?
from mapkit.
Having same problem. Any resolution on this?
from mapkit.
@jvence what problem?
from mapkit.
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.
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.
Anyone know how to fix this? (@imhotep please refrain from saying "fix what?" ;-) )
from mapkit.
I will take a look at it this week-end
from mapkit.
Thanks @imhotep let me know if we can help.
from mapkit.
@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.
@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)
- Mapkit on android HOT 15
- YOUR_ANDROID_TARGET HOT 2
- Update documentation HOT 1
- Only green/purple/red are supported
- Buttons and famo.us HOT 1
- CDVPlugin Error Using Appgyver Steroids HOT 1
- plugin should use background thread HOT 3
- Ios custom icons HOT 1
- resolve to a path with no project.properties file for project
- google-play-services-admob.jar and mapkit? HOT 1
- app crashes HOT 13
- app crash sometimes when closing map (android) HOT 1
- Android Backbutton HOT 4
- Show pin info opened HOT 1
- Manifest problem
- Android App crashes every time with "hideMap" or Android Back Button Pressed HOT 1
- iOS Map click listener
- Pin clustering in iOS HOT 2
- retrieve center of map HOT 2
- Puting HTML over the map HOT 3
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 mapkit.