Home › Forums › MapPress Support › Google Maps API Key issue when displaying maps via php › Reply To: Google Maps API Key issue when displaying maps via php
September 7, 2016 at 5:02 am
#16985
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.