I what I want to know can have KML as a string I map application?
The code snippet:
// KML string document = "& lt ;? Xml version = \" 1.0 \ "encoding = \" UTF-8 \ "? & Gt; & lt; kml xmlns = \ "http: //www.opengis.net/kml/2.2 \" & gt; & lt; document & gt; & lt; folder & gt; & lt; name & gt; path & lt; / name & gt; & lt; open & gt; 0 & lt; / open & gt; & lt; placemark & gt; & lt; LineString & gt; & Lt; tessellate & gt; 1 & lt; / tessellate & gt; & lt; coordinate & gt; -112.0814237830345,36.10677870477137,0 -112.0870267752693,36.0905099328766,0 & lt; / coordinates & gt; & lt; / Landmarks & gt; & lt; / lc; / Folder & gt; & lt; / document & gt; & lt; / kml & gt; "; // Open Google Maps int module = CodeModuleManager.getModuleHandle ("GoogleMaps"); If (module == 0) {try the new application manager exception ("GoogleMaps is not installed"); } Hold (ApplicationManagerException e) {System.out.println (e.getMessage ()); }} String [] args = {document}; // Is it possible ??? ApplicationDescriptor Brochure = CodeModuleManager.getApplicationDescriptors (Module) [0]; ApplicationDescriptor ad2 = New ApplicationDescriptor (Descriptors, Args); Try {ApplicationManager.getApplicationManager (). RunApplication (AD2, true); } Hold (ApplicationManagerException e) {System.out.println (e.getMessage ()); }
after
Many R & D ... The answer was revealed to me - No , We can not give KML as a string.
Google Maps Mobile accepts a URL parameter, it should be in the form of "http: //" and these specific parameters (like "? ....") or a KML file ("") It is possible.
Comments
Post a Comment