简体   繁体   English

Fiware Wirecloud Map Viewer窗口小部件不起作用

[英]Fiware Wirecloud Map Viewer Widget Not Working

I have download a map viewer widget from fiware marketplace and upload it on wirecloud instance which i launch from my fiware lab account. 我已经从Fiware市场下载了一个地图查看器小部件,并将其上传到我从我的Fiware Lab帐户启动的wirecloud实例中。

Now i am getting below error: 现在我得到以下错误:

Oops! 糟糕! Something went wrong. 出问题了。 This page didn't load Google Maps correctly. 该页面未正确加载Google Maps。 See the JavaScript console for technical details. 有关技术细节,请参见JavaScript控制台。

anyone here can help me how to resolve it.your help really appreciated. 这里的任何人都可以帮助我解决问题。非常感谢您的帮助。

According to your provided logs, I guess you've used the widget without configuring an API key. 根据您提供的日志,我想您是在未配置API密钥的情况下使用了该小部件的。 Google did block unrestricted usage of their app long time ago, this is why such widget has a configuration option for putting your API key. Google很久以前确实禁止无限制地使用其应用程序,这就是为什么此类小部件具有用于放置API密钥的配置选项的原因。

Bear in mind that Google does limit the free usage of APIs. 请记住,Google确实限制了API的免费使用。 You can find more information here: https://developers.google.com/maps/documentation/javascript/usage 您可以在这里找到更多信息: https : //developers.google.com/maps/documentation/javascript/usage

In case you do not want to get restricted to such keys, you could use the OpenLayers map. 如果您不想受限于此类键,则可以使用OpenLayers映射。 You can find it at: https://github.com/Wirecloud/ol3-map-widget 您可以在以下位置找到它: https : //github.com/Wirecloud/ol3-map-widget


[old] [旧]

Can you please give more information about this error? 您能否提供有关此错误的更多信息?

Are you using firefox or Chrome? 您使用的是Firefox还是Chrome? Can you please open the Developer Tools and go to "Console" tab. 您能否打开开发人员工具并转到“控制台”标签。 Then you should reload and wait for errors in console (marked in red). 然后,您应该重新加载并等待控制台中的错误(以红色标记)。 Those might give some clues about the error. 这些可能会提供有关该错误的一些线索。

Best regards, Miguel 最好的问候,米格尔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM