Here is my clunky work around.1. Create KMZ using "Layer to KML" tool2. In windows explorer, go to the directory you output the KMZ3. rename the file extension to .zip (ie MyTest.kmz -> MyTest.zip)4. Extract the zip file5. open the extracted folder and open the doc.kml file6. use a 'find and replace' on the 'styleurl' tagIn my kml's there is always this tag "<styleUrl>#IconStyle01</styleUrl>". I replace it with nothing (no text) using find and replace tool in a text editor.7. save the kml8. In your Google maps, import the kml file that you modified. This should result in the default blue pushpin as the placemark.Not very elegant or cool, but seems to get the job done.
Hmmm... thinking out loud based on the last couple forum posts....Would having an option on the tool, something like "override symbology / default symbology" (which would do something that Erin explained) be beneficial to many people? It seems the only time you would NOT want the icon embedded into the KMZ would be when you're creating KML specifically for google maps.I can't promise this change, but if theres enough interest its something we could consider for a future release.
No this is at least a starting place to start looking. Before I was really lost on where to look to solve the issue. I am just surprised that no one else has had this issue. Thanks for looking into it and taking the time!Cheers,Natasha
I'm sure someone will jump in here and correct me if I'm wrong - but it might be that Google maps cannot support icons inside a KMZ. Its a simple web client, where Google earth and ArcGIS Explorer are full clients.From what I've read, Google Maps supports Icons inside of KML. (all the doc I read on Maps explains KML, not KMZ specifically). https://developers.google.com/kml/documentation/kmlelementsinmapsKML icon tags point to files on the internet. (http://.../myIcon.png). With a KMZ file the icons and images get embedded inside. I haven't read one way or the other if Maps can or cannot use icons or files inside a KMZ.Sorry, I realize this doesn't give you an answer. Until I can read something or see a KMZ with an icon that Maps can use, Im not sure its possible.
As Joe figured out, it sounds like you have data with Z values of either 0 or below the surface of the earth.At the 10.1 release we're added a parameter to the tool to "clamp features to the ground" - basically it will override your Zvalues.For now, you could try:Run the Create Feature Class tool (make sure to keep the Has Z setting DISABLED)Run Copy Features tool with your original feature class and insert into the new feature class.Run Layer to KML on the new featureclass and see how that behaves inside your KML client.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.