Hello dojo
I am trying to add a satellite footprint on a gmap dashboard
I succeed if the kml or kmz file is located outside of the DMA with publicHref tag
Example:
<Layers>
<Layer sourceType="overlay" name="simple sample" allowToggle="true" visible="false" toggleGroup="footprint">
<GroundOverlay type="kml" publicHref="http://ftp.geogratis.gc.ca/pub/nrcan_rncan/image/spot/geobase_orthoimages/index/spot_ortho_index.kmz">
</GroundOverlay>
</Layer>
But it never works if the Kml location is configured with privateFilePath tag, like described in doc : Layer types | DataMiner Docs
Example :
<Layer sourceType="overlay" name="Cube KML sample" allowToggle="true" visible="false" autoFit="true" toggleGroup="footprint">
<GroundOverlay type="kml" privateFilePath="C:\Skyline DataMiner\Maps\kmls\KML_Samples.kml">
</GroundOverlay>
</Layer>
I also tried to put the kml file in C:\Skyline DataMiner\Webpages\
Could it be a right matter ?
Or what do I miss ?
Hello Alberto
Thanks for your advices
Yes I have tried to move the file and the relative path.
I have the same files and location on each dma’s.
Althrough the documentation doesn’t indicate that it’s possible to use absolute path, I did some tests.
So I guess we have to search on our DMA configuration side.
What I meant was “publicHref” (example 1 which is working in your scenario)
vs “privateFilePath” (example 2, that seems to generate issues in your config).
I’d test a different way to specify the path. Do you get the same outcome if you use a path to the file starting as shown in Wim’s answer?
When using privateFilePath, then the DataMiner will generate a secret download token which will be provided to Google Maps to be able to download the KML file from the DataMiner agent. So this means that https://mydma.company.com/API/v0/MapsGetSecureFile.aspx must be publicly accessible, otherwise Google Maps can not download the KML file and won't be able to render it. You also have to open the map using the same FQDN https://mydma.company.com/.
Thanks for you help Wim
good clue
The dataminer help (Dashboard Gateway troubleshooting) indicate :
DataMiner Maps cannot be accessed via the Dashboard Gateway.
By default, data accessed via a Dashboard Gateway is not publicly accessible. Therefore, to be able to display DataMiner Map information via a Dashboard Gateway, add the following exception to the web.config of that Dashboard Gateway:
My file C:Skyline DataMinerWebpagesDashboardsweb.config
containts exactly the same lines than those indicated in help
Is there another file to modify
You’re accessing Maps through a legacy Dashboards Gateway? Then you indeed need to make sure that “p/API” is publicly available, so you need the configuration in the WebpagesDashboardsWeb.config. Then it should work for Google to access https://dashboardgateway.company.com/p/API/v0/MapsGetSecureFile.aspx
If it still wouldn’t work, might be best to reach out to our techsupport, since it’s not so easy to debug it.
Salut Joel, hope you’re fine
Have you already tried with a different relative path?
E.g. if the kml is in a different location – or same location of a different server.
I believe the key is to get the path “relative”.
Alternatively, if the kml is cached somewhere on an internal server, could you define an absolute path to the cache server and rely on the first option?
HTH