So I've got a couple of (ginormous) KML's that I've successfully converted into 180 some-odd Google-Maps encoded polygons/polylines. Anyone have any experience or thoughts on how to take these and turn it into an MKPolyline object suitable for use on iOS4's MapKit?
Here's what I'm looking at right now .....
var sw = new GLatLng(25.8373770496571, -106.645646000733);
var ne = new GLatLng(36.50070452533, -93.50813136878951);
var bounds = new GLatLngBounds(sw, ne);
var mapZoomLevel = map.getBoundsZoomLevel(bounds);
var mapCenter = new GLatLng(31.16904078749355, -100.07688868476126)
map.setCenter(mapCenter, mapZoomLevel);
var polygon1 = new GPolygon.fromEncoded({
polylines: [
{points: "sxw}En~}dR@loC?puCAtt@[.......]@T^DE?z_@G^Jjw@G?",
levels: "PBADDCCCDDACDDDDDDDBCB[.......]@EGFDEFDEDCCCDEDP",
color: "#0000ff",
opacity: 0.7,
weight: 3,
numLevels: 18,
zoomFactor: 2}],
fill: true,
color: "#0000ff",
opacity: 0.4,
outline: true
});
map.addOverlay(polygon1);