-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot modify default opening position on map #28
Comments
I modified the showMap function in MapKit.js: showMap: function(success, error, options) { Then passed in a new options object with updated params and have it working successfully. |
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. |
Do you want to change it after it's loaded or is not loading with the right position ? |
Having same problem. Any resolution on this? |
@jvence what problem? |
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 |
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. |
Anyone know how to fix this? (@imhotep please refrain from saying "fix what?" ;-) ) |
I will take a look at it this week-end |
Thanks @imhotep let me know if we can help. |
@adellamano tried your solution to no avail. Can you elaborate more on how you got it working using the javascript solution you posted above? |
I've got the map embedded on iOS but cannot change the default location.
I tried changing (in MapKit.js)
var MapKit = function() {
this.options = {
height: 260,
diameter: 1000,
atBottom: true,
lat: 33.281468,
lon: -71.104446
};
the lat and lon to different values but the map always opens to the same location.
What am I doing wrong here?
Cheers,
The text was updated successfully, but these errors were encountered: