-
Notifications
You must be signed in to change notification settings - Fork 914
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
destroy map object #169
Comments
There is no way currently. |
Ok thanks....does map keep its data in cache or localstorage... will try to remove from there |
What data do you want to remove? |
oh ok...i looking for a way to remove loaded map when my app is logged out On Tue, Aug 12, 2014 at 9:55 PM, Masashi Katsumata <notifications@github.com
|
How about this way: |
yes i used it to destroy the map's child and div what i feel is the second On Wed, Aug 13, 2014 at 9:34 PM, Masashi Katsumata <notifications@github.com
|
So the problem is that current your location is old when you open the map second time? |
Yes i used it.... even if move a bit away from the location with the On Wed, Aug 13, 2014 at 10:53 PM, Masashi Katsumata <
|
|
Thank you.will try the same. On Wed, Aug 13, 2014 at 11:55 PM, Masashi Katsumata <
|
Could you give me some code for test? |
I added
|
cool. will try thank you On Fri, Aug 29, 2014 at 10:28 PM, Masashi Katsumata <
|
So i attempted the map.remove() on my object and it is not removing the map at all. Is there another key piece that i am missing in order to complete this? |
@OSFalcon0928 What the plugin version do you use?, And what the os do you use, Android version or iOS version? |
I am currently using the one that is on the https://github.com/wf9a5m75/phonegap-googlemaps-plugin website under the download zip. This is for the Android Version. |
Is there any error messages in Logcat |
yeah. the one that stands out to me is this one: W/System.err(22921): java.lang.IllegalArgumentException: remove is not a constant in plugin.google.maps.GoogleMaps$METHODS And the way i am calling it is newmap.vm.Map.remove(); |
I can't understand your code. map.remove() is not Map.remove()
|
Can you share me the code how you do create the map?
|
sure. here is the snippet on creating the map: if (mapPosition) {
essentially i am creating a view model and storing the Map object created in the plugin into an object called .Map in my viewmodel. This in turn loads the map onto the screen by using: newmapVM.Map.setDiv(newmapVM.mapDiv); |
I wonder how did you install the plugin. Because the error line number does not match with the current code. The error log says:
However METHODS.valueOf() is at line 189 Do you use old version? |
well i thought i got the latest version but perhaps i did not? I got the zip from the main site. I cannot seem to get $> cordova plugin rm plugin.google.maps to run for me Is there a way i can ensure the correct plugin is installed? |
Ok, could you confirm the plugin.xml file at line 2?
|
yup. 1.1.4 is what it says |
Ok. Now I understand. Thus, use v1.1.5. By the way, I'm planing to release the new version: v1.2.0 in couple of days. |
ok. so i am using this through vs 2013 and i cannot get the cordova download tool to work. Is there a good guide to installing it through vs? |
I'm sorry, but I'm not familiar with visual studio. |
i presumed map is cached in phone memory... is this a way to destroy the map completely at certain event say logout event of my application
The text was updated successfully, but these errors were encountered: