1. Do you have an example of how to package a kmz file that contains images?No, because the packaging is a part of the client, and not your KML. If, for example, you create a placemark with an icon whose image is sourced from your local machine, then when you save it as a KMZ file it is automatically zipped up by the client.
2. north,south,east,west tags with rotation -- I'm having a hard time grasping how to do the following. I have a polygon that defines the shape and location of an image. (kind of like a DG footprint). Now I'd like to click a button to have an actual image appear within the polygon. For the polygon I know the exact corner points. (skewed a bit). How can I easily (without complex math) construct the groundoverlay tags (north, south, east, west, rotation) for the image to appear properly?The n/s/e/w tags are a part of ground overlays, and not polygons. But I know what you mean.
If you have coordinates for the bottom-left corner (say lat=15, lon=10) and top-right corner (lat=25, lon=20), then (remembering that latitude maps to north/south, longitude to east/west) the coordinates for the ground overlay would be:
Code:
<LatLonBox>
<north>25</north>
<south>15</south>
<east>10</east>
<west>20</west>
<rotation>0</rotation>
</LatLonBox>
Rotation is something you'll have to figure out yourself. If the vertical (y axis) edges of your image coincide with grid north, then you don't need any rotation.
3. Screenoverlay -- still very, very confusing in the KML spec. overlayI ran the samples and nothing appeared on my screen.Screen overlays at this stage are more difficult than they should be because it's not yet possible to create them within the client. The example given in the tutorial doc works fine for me, so I'm not sure what's going on with you. I copied it to notepad, saved it as foo.kml, and it opened in GE just fine.
Look at the examples in the
KML Tutorial File for more examples of screen positioning. (You can select each of them in Places, hit copy, and pase the code into Notepad.)
4. Do you have a method to verify that a kml, kmz file is valid. (other than loading it into the client).We will be publishing the official KML 2.0 schemata at some point. At that point it should be possible to validate authored KML against the schema.
5. simple icon rollover seem to have problems on my laptop.Again, the example in the linked KML file works fine for me. Try recreating the code with your own local images.
Thanks for the feedback. The next revision will benefit greatly from comments like yours.