egm1971

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Google Maps API Key issue when displaying maps via php #16985
    egm1971
    Participant

      I found out what caused the problem: in my script I used the class Mappress_Options for temporary overwriting the settings from the options page – but Mappress_Options->save() also deletes the API key, if not set in the options array! Commented out these two lines – and the API key stays in the database:

      $myOptions = new Mappress_Options(array(“initialOpenInfo” => false, “tooltips” => false, “autoCenter” => true));
      $myOptions->save();

      For my project – solved. Nonetheless an unexpected behaviour.

      in reply to: Google Maps API Key issue when displaying maps via php #16948
      egm1971
      Participant

        That was my first thought, too. But clearing the cache did not solve the issue – the first map call works great, on second call the API key is cleared and the error message pops up.
        http://pano.egm.at/panoramen/karte/

      Viewing 2 posts - 1 through 2 (of 2 total)