US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Custom analyzer plugin - Google maps visualization not recognising key

  1. #1
    Join Date
    Jun 2015
    Posts
    3

    Default Custom analyzer plugin - Google maps visualization not recognising key

    Hi,

    I'm having a go at creating an add-in for Analyzer (I want to display a route on Google maps).

    It seems the Google maps API is already loaded in Analyzer anyway, so I haven't done an include/require anywhere. I have also put my own personal Google maps API key in the file at:

    C:\Pentaho\server\pentaho-server\pentaho-solutions\system\google\googlesettings.xml

    When I use mt custom add-in I get encouraging feedback in the console from the maps API, so I know it is calling it, but it is saying that I don't have a key:

    INFO: [render] event executed
    maps.google.com/maps-api-v3/api/js/25/15/util.js:210 Google Maps API warning: NoApiKeys https://developers.google.com/maps/d...es#no-api-keys
    uE.j @ maps.google.com/maps-api-v3/api/js/25/15/util.js:210
    maps.google.com/maps-api-v3/api/js/25/15/util.js:210 Google Maps API warning: RetiredVersion https://developers.google.com/maps/d...etired-version
    uE.j @ maps.google.com/maps-api-v3/api/js/25/15/util.js:210
    maps.google.com/maps-api-v3/api/js/25/15/util.js:210 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/d...r-not-required
    uE.j @ maps.google.com/maps-api-v3/api/js/25/15/util.js:210
    This service requires an API key. For more information on authentication and Google Maps Javascript API services please see: https://developers.google.com/maps/d...pt/get-api-key

    Has anyone else had any success doing something like this?

  2. #2
    Join Date
    Nov 2011
    Posts
    1,158

    Default

    That setting is no longer used.

    Alternatively, I think you can create a function called pentaho.openlayers.getGoogleApiUrl and have it return the URL with authentication information.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •