1

I created a basic web dashboard with MVC 4 that has a Google Map open on it. I have a KMZ file I made with ArcGIS desktop of a road in a Google Drive folder that i made publicly available so that i could take the URL of my file and implement that in MVC to overlay the KMZ file onto the Google Map, However when i run the process the dashboard opens up the Google Map on the correct spot however there is no shape file. The images attached show the code in MVC 4 that generates the Web dashboard, and the KMZ file sitting in the Google drive Folder. I am wondering if maybe there is not a problem with my script or if Google drive is the problem.

This is the URL to the KML: https://drive.google.com/file/d/0B4_TJdssPL1RRC13MTlzbjVPWHM/edit?usp=sharing

I am using MVC 4 and Google Javascript API v3

enter image description here

enter image description here

  • 1
    How large is the KML? – Mapperz Jun 24 '14 at 14:13
  • @Mapperz it is 40 kb – user32496 Jun 24 '14 at 14:19
  • Can we test the url for the KML? - I know google only like to display KML over thier own domain (no cross domain access) – Mapperz Jun 24 '14 at 14:23
  • @Mapperz yes yes absolutely – user32496 Jun 24 '14 at 14:25
  • 1
    can you post the 'long' url in your question please. – Mapperz Jun 24 '14 at 14:27
0

Create your own local server, kml file needs an http:// and then make sure the dashboard runs in firefox, google chrome could not display the data.

0

the way it become accessible in html:

  1. make your kml/kmz file can be accessed by public

    right click -> share -> advanced -> who has accesse - Public

  2. then use drive for hosting your file http://googledrive.com/host/

in your case the item ID is

0B4_TJdssPL1RRC13MTlzbjVPWHM

so change the kml address in your HTML become :

https://googledrive.com/host/0B4_TJdssPL1RRC13MTlzbjVPWHM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy