cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Google Maps API error: MissingKeyMapError

Re: Google Maps API error: MissingKeyMapError

I had the same problem. I ended up hand modifying index.html from his location: Tomcat 8.0\webapps\Thingworx\Runtime

I don't think the extension import is working. My guess is that the metadata.xml file is supposed impact the "managed" area of this file. It's not doing it on my system so I changed it myself.

    <!-- *** MANAGED SECTION DO NOT EDIT *** -->

    <!-- BEGIN_EXTENSION_SCRIPTS -->

  <script type="text/javascript"  charset="UTF-8" src="https://maps.google.com/maps/api/js?key=YOUR_KEY"></script>

  <script type="text/javascript"  charset="UTF-8" src="/Thingworx/Common/jquery/jquery.jsPlumb.min.js"></script>

    <!-- END_EXTENSION_SCRIPTS -->

I left off the "sensor" argument based upon google's direction.

Re: Google Maps API error: MissingKeyMapError

Intente todas las opciones pero solo me funciono lo siguiente:

url="https://maps.google.com/maps/api/js?key=MY API KEY" description="" isDevelopment="false" isRuntime="true" />

eliminando el parámetro sensor ya que no es obligatorio.

Lo edite en el archivo metadata.xml de la extensión de google maps.