Hey, Tried to solve the problem but couldn't... But I thought I might add some findings that could help.
It works here if you put the link into it. http://maps.google.com/maps?f=q&hl=en&q=http://services.google.com/earth/kmz/EiffelTower.kmz&ie=UTF8&ll=48.858193,2.289619&spn=0.0054,0.011351&om=1 But it doesn't work when I plug it into my own code which I know works. Instead it sets an error: "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" Hope that helps a little... :) -Kivak On Jun 30, 4:13 am, Hari <[email protected]> wrote: > Hi, > I had converted a shape file in to the kml. As the kml file size is > more, I had again converted in to kmz using winrar(.ZIP only) and > renamed to .kmz. > > The convereted kmz file is loading on maps.google.com. But it is not > able to load on my custom maps if I write code something like this: > > function showShpLayer(){ > var shpLayer = new google.maps.KmlLayer('https://sites.google.com/ > site/harigistest/pbparcel_20110327.kmz'); > shpLayer.setMap(map); > > } > > where map is a global variable and it is initialized. > > The kml file link > is:https://sites.google.com/site/harigistest/pbparcel_20110327.kmz > > Let me know what is the root cause of this. > > Thanks in advance. > Hari. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
