(Android/iOS) Fix: can not import KML if latitude/longitude includes "exponential notation"
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.5.0-beta-20180925-1750" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.5.0-beta-20180925-1830" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="Promise" src="www/Promise.js" />
<asset src="www/promise-7.0.4.min.js.map" target="promise-7.0.4.min.js.map" />

MODIFY
src/android/plugin/google/maps/PluginKmlOverlay.java
src/android/plugin/google/maps/PluginKmlOverlay.java
@@ -284,7 +284,7 @@ public class PluginKmlOverlay extends MyPlugin implements MyPluginInterface {
String tmpArry[];
Bundle latLng;
for (i = 0; i < lines.length; i++) {
- lines[i] = lines[i].replaceAll("[^0-9,.\\-]", "");
+ lines[i] = lines[i].replaceAll("[^0-9,.\\-Ee]", "");
if (!"".equals(lines[i])) {
tmpArry = lines[i].split(",");
latLng = new Bundle();

MODIFY
src/ios/GoogleMaps/PluginKmlOverlay.m
src/ios/GoogleMaps/PluginKmlOverlay.m
NSString *tmp;
for (int i = 0; i < lines.count; i++) {
tmp = [lines objectAtIndex:i];
- tmp = [tmp regReplace:@"[^0-9,.\\-]" replaceTxt:@"" options:0];
+ tmp = [tmp regReplace:@"[^0-9,.eE\\-]" replaceTxt:@"" options:0];
if ([tmp isEqualToString:@""] == NO) {
tmpArry = [tmp componentsSeparatedByString:@","];
latLng = [NSMutableDictionary dictionary];

(Android/iOS) Fix: can not import KML if latitude/longitude includes "exponential notation"