5

I need to add KmlLayer to Google map for business as the following steps.

first of all, I am using "Google maps utils" with the following Gradle

compile 'com.google.maps.android:android-maps-utils:0.4+'

and as this documentation

and below is the applied code :

try {
    KmlLayer kmlLayer = new KmlLayer(googleMap, R.raw.traiff160809, RTA.getContext());
    kmlLayer.addLayerToMap();
} catch (XmlPullParserException e) {
    e.printStackTrace();
} catch (IOException e) {
    e.printStackTrace();
}

but I cannot pass Google map for business instance at the constructor

Advice please, Thanks !

Wael Abo-Aishah
  • 942
  • 2
  • 10
  • 27

0 Answers0