Google Map Api3 conflict

Permalink Browser Info Environment
Hi there,

First just want to say this theme is super nice and really enjoying using it so far.

I've encountered a strange problem in regards to using Google map API to produce a styled map. I know that it works and have tested it on other themes - I'm only encountering this problem in Genesis.

For Example.. Using the sample code from google and my API key I have attached two screen shots:

@ screen shot 21.34.22 - this is the sample code below for google maps, no styling added - notice how the icons on the UI for google are corrupted..

@screen shot 21.36.31 - this is the same code above, but with added styling - the map completely dissappears.. icons of the UI still corrupted.

This is all I have in my view (in this instance using googles sample demo):
<?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      /* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
      #map {
        height: 100%;
      }
      /* Optional: Makes the sample page fill the window. */


At the moment we can use no styling on the maps to get by - but it really does throw the design off on the website as there's many pages with these maps that need styling and a working UI.. I spent the last few hours checking all my code and testing it on other themes.. I think there must be a conflict with the API and Genesis..

Your help would be greatly appreciated!!!

Many thanks,
Omar

2 Attachments

Type: Ticket
Status: Archived
omars786
View Replies:
c5box replied on at Permalink Reply
c5box
Hi Omar,

Thanks for the feedback. Yeah I think there is a CSS conflict with my theme and the API. Can you send me a link to the broken map UI so I can check the frontend code. I think this can easily be fixed. Send me the link and I'll update my theme a soon as possible.

Thanks and regards,
James
omars786 replied on at Permalink Reply
omars786
Hi James,

Thanks very much for the quick response!

The server I'm writing this website is not live yet and I can't show you a preview unless you change your hosts file..

I set up a new domain, installed the latest Concrete and your Theme.. added a single page and only put the sample code from google for a simple map:

<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      /* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
      #map {
        height: 100%;
      }
      /* Optional: Makes the sample page fill the window. */
      html, body {
        height: 100%;
        margin: 0;


you can access it here:http://bournemouthstudenttours.com/test...

Many thanks,
Omar
omars786 replied on at Permalink Reply
omars786
c5box replied on at Permalink Reply
c5box
Hi!

Thanks for the link. Found the issue and updated the theme with a fix. Please update to version 1.1.5.1 and clear cache. Please let me know if it works on your end. :)

Kind regards,
James
omars786 replied on at Permalink Reply
omars786
Amazing thanks James - working amazingly!
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Genesis Theme (1.1.5), Styled Maps (1.2.3), Tour Manager 2 (1.2), Vivid Simple Accordion (1.0.1), Whale Sky Tabs (1.1.7)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.6.30

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 259200
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 259200
max_input_vars - 1000
memory_limit - 300M
post_max_size - 40M
sql.safe_mode - Off
upload_max_filesize - 40M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:55.0) Gecko/20100101 Firefox/55.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.