Hello,
I have downloaded the apple sample code for a KML parser (KMLViewer) and I am trying to figure out how to put some more features into the code, f.i overlays.
The situation is this:
I have access to kml data written and used for one of our webprojects. This data includes files with different kinds of POIs which I can parse by using the KMLViewer example. Additionally there is a file with groundOverlays, putting overlays to the map. The structure is like this:
I use the XMLParser to read the data but the link to the picture to use, is only the file name. How would be the best way to get this images? I thought about a separate image download after the parsing? As if I put all the imagesnames in an array and when the parsing is done, do the download in the app delegate? Anybody having a better solution on this?
Thanks for all comments and ideas on this issue!
MACloop
I have downloaded the apple sample code for a KML parser (KMLViewer) and I am trying to figure out how to put some more features into the code, f.i overlays.
The situation is this:
I have access to kml data written and used for one of our webprojects. This data includes files with different kinds of POIs which I can parse by using the KMLViewer example. Additionally there is a file with groundOverlays, putting overlays to the map. The structure is like this:
Code:
<Document>
<name></name>
<GroundOverlay>
<name>[COLOR="Red"]"the Name"[/COLOR]</name>
<Icon>
<href>[COLOR="Red"]"the pic to use"[/COLOR]</href>
<viewBoundScale>0.75</viewBoundScale>
</Icon>
<LatLonBox>
<north>[COLOR="Red"]"somecoord"[/COLOR]</north>
<south>[COLOR="Red"]"somecoord"[/COLOR]</south>
<east>[COLOR="Red"]"somecoord"[/COLOR]</east>
<west>[COLOR="Red"]"somecoord"[/COLOR]</west>
</LatLonBox>
</GroundOverlay>
I use the XMLParser to read the data but the link to the picture to use, is only the file name. How would be the best way to get this images? I thought about a separate image download after the parsing? As if I put all the imagesnames in an array and when the parsing is done, do the download in the app delegate? Anybody having a better solution on this?
Thanks for all comments and ideas on this issue!
MACloop