Fixed the cordova issues

1. Fixed the cordova issues
2. Fixed the map problems