Hello DRanger,
I ran into the same issue. It works on the BB and on a desktop, but
the iPhone can't open it. Essentially the mobile maps on the iPhone
can't open a .kml file directly.
However something like this works:
http://maps.google.com/maps/geo?q=[your
address run through the replace function]ex (30+NW+11th+Ave+Portland
+Oregon)&output=kml&oe=utf8&sensor=true&key=[your google key here]
Here is the C# code to make that dynamic (from an address not
coordinates, although I am sure you could get it to work with the lat
long as well).
private string CreateGoogleMobilMapURL(string locationAddress)
{
StringBuilder sb = new StringBuilder();
sb.Append(locationAddress);
sb.Replace(' ', '+', 0, sb.Length);
string mmURL = string.Format("
http://maps.google.com/maps/geo?
q={0}&output=kml&oe=utf8&sensor=true&key={1}", sb.ToString(),
ConfigurationManager.AppSettings["GoogleKey"]);
return mmURL.ToString();
}
Then just redirect (open somehow....I don't know php) and Voila!
> > Hope it helps. :)- Hide quoted text -
>
> - Show quoted text -