Google Maps hardcoding and integration
I've tried including the following code:
$bt_map = BlockType::getByHandle('google_map');
$bt_map->controller->title = 'test';
$bt_map->controller->location = (string)$address;
$coords = $bt_map->controller->lookupLatLong((string)$address);
$bt_map->controller->latitude = floatval($coords['lat']);
$bt_map->controller->longitude = floatval($coords['lng']);
$bt_map->controller->zoom = 15;
However this only creates an empty div.
I tried following this post:https://www.concrete5.org/community/forums/customizing_c5/hard-codin... But with no luck.
All i am looking for is to include a google map, in my block
Any suggestions? :-)
However i am running into the issue where, my google map does not render properly. Please look at attached screenshots, where i try to navigate the map, and the tiles disappear and appear spontaneously.