Closed minhui27 closed 6 years ago
Please try to reinstall the plugin from the multiple_maps
branch.
$> cordova plugin rm cordova-plugin-googlemaps
$> cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID=".." --variable API_KEY_FOR_IOS=".."
Ok. I try it first.
The problem still exists when using the multiple_maps
branch.
Ok, please share your project files on github(or bitbucket). I will check it tomorrow.
The link of the project files (sample) is https://github.com/minhui27/map-v2-testing.
Thank you for sharing the repo.
When you change the visibility of <div [style.display]="showRestCard ? 'block' : 'none'" id="card-on-map">
, you need to notify about that to the plugin.
cordova.fireDocumentEvent('plugin_touch', {});
I think that's why.
The problem was solved after I add in the code. Hopefully the problem will not exist anymore. Thank you.
@minhui27 can you show me how did you add in your code?
@tuanvuf4 you can refer to this repo https://github.com/minhui27/map-v2-testing. The code is add in as shown in the last commit, https://github.com/minhui27/map-v2-testing/commit/f7c051d918aae38256f18adbae8d71487bf0893e.
ok. Thanks
welcome
I'm submitting a ... (check one with "x") [ ] question [x] any problem or bug report [ ] feature request
If you choose 'problem or bug report', please select OS: (check one with "x") [x] Android [ ] iOS
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: The HTML element (button) on the map sometime is not working. When I click on the button, the button is not trigger anything (no response), however it seem like click on the map where the MAP_CLICK event was triggered. The problem also happen on other type of HTML element.
Expected behavior: All the HTML element on the map should work at all time.
Thank you.