I cannot see my google map on your theme

erickcacao - June 13, 2009 - 16:01
Project:Zero Point
Version:6.x-1.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Firts at all: great theme. Thanks. That is why I look for your help. I installed the gmaplocation module, I configured it, but the map appears in blank, the google logo and other elements are visible but the satellite image doesnt.

I change theme and with minelli (ugly one) and other themes the map works fine...
Could you help me?

#1

Florian - June 13, 2009 - 17:17

You're right!
I will investigate the issue and came up with a solution.

#2

erickcacao - June 13, 2009 - 18:45

ok! thank you!
is it about CSS?

#3

EgorfromMurmansk - July 4, 2009 - 16:50

Yes, I cannot see my google map on your theme. Please help!

#4

Florian - July 5, 2009 - 09:33
Status:active» fixed

Please download zeropoint-6.x-1.5. It was a CSS conflict.

#5

EgorfromMurmansk - July 5, 2009 - 13:26

Not work. :(
check it.

#6

EgorfromMurmansk - July 5, 2009 - 13:41
Status:fixed» active

not work

#7

Florian - July 5, 2009 - 16:17

May I have your URL? First upload the last version of 0Point. Second, clear cache and the browser's cache. It should work now. In fact the only issue is with Opera, only.

#8

Florian - July 5, 2009 - 17:04

You are right! It is strange but it seems to work only in Google Chrome, Safari and IE6. Probably the best solution is to drop that "adaptative width" in favor of a fixed width.

#9

EgorfromMurmansk - July 5, 2009 - 17:37

http://kurkul.ru/bosco-di-ciliegi
browser Firefox, Opera.

#10

Florian - July 6, 2009 - 03:27

You have to use the last version (1.7). Refresh Drupal and browser cache. I have tested with all browsers (including an old NS).

#11

Florian - July 6, 2009 - 03:34
Status:active» fixed

#12

EgorfromMurmansk - July 6, 2009 - 04:28

Not work. :( Drupal 6.13. Your theme 1.7.
Not work in IE7, Opera, Firefox.
Work only on editing node.

#13

Florian - July 6, 2009 - 10:51

See this http://test.radut.net/en/gmaplocation. So, use the block in the module not custom work.

#14

jinglesnbells - July 14, 2009 - 23:37

I am still having this issue. I have the latest version installed and cleared the cache, but still no gmap. gmap works with the garland theme.

Thanks for your help!

#15

EgorfromMurmansk - July 15, 2009 - 10:19

I am still having this issue too. I remove this theme, clear cache, install zeropoint-6.x-1.7, but still no gmap. May be reason in this? - Upload progress Not Included
Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.
my hoster hostgator.com

#16

EgorfromMurmansk - July 15, 2009 - 10:26
Version:6.x-1.2» 6.x-1.7
Assigned to:erickcacao» EgorfromMurmansk
Status:fixed» active

Thanks for your help! and for your theme.

#17

IT100 - July 15, 2009 - 14:01

Same issues here!

quote: "use the block in the module not custom work."

Could you be more specific?

#18

Florian - July 15, 2009 - 23:52

Please give me the URL. As you can see, in my environment the map is showing. I must understand what is happening in your case. To know the modules used is also of big help.

#19

IT100 - August 12, 2009 - 09:50

Thanks Florian,

I'm still developing the site but momentary it can be found here:

http://www.ensorito.be/wegomschrijving

Regards,
Chris.

#20

Jorge Campo - July 17, 2009 - 14:33

I have the same issue:google logo and zoom, and navigation work, but the map area is in grey regardless of the type of view (satellite or other)
In Garland or other themes the maps show up without a problem.
I cannot provide an example since I have the Zero theme for a specific user account with certain privileges.

#21

Florian - July 17, 2009 - 22:37

IT100 and Jorge, can you both list all of the modules enabled? I must solve all the problems within one week.

#22

IT100 - July 17, 2009 - 23:29

Here's the code I use, its pretty straightforward (developed by the Google guys)

Its a map showing a location (lng, lat) with an inputbox asking for visitors starting point
- google calculates & plots route on the map and attaches direction table.

Change settings for your location and language. (nl)
Change the apicode and run it on your site, your done in 3 min.

<!-- 100IT Google maps api key for ensorito.be --> <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAiW6dF9co2fPqNndKWJM6QxS61gM56OIpKsTylT3kEfSkK_ya2BQ9SKqQL0z9lYtg0yAoyGJJ2Idd2Q"
      type="text/javascript"></script>        <script type="text/javascript">

    var map;
    var gdir;

    function initializeMap() {

      if (GBrowserIsCompatible()) { 
 
        map = new GMap2(document.getElementById("mapCanvas"));
map.setCenter(new GLatLng(51.21176, 2.87197), 16);

map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());

        gdir = new GDirections(map, document.getElementById("mapDirections"));
        GEvent.addListener(gdir, "load", onGDirectionsLoad);
        GEvent.addListener(gdir, "error", handleErrors);

// info Window
map.openInfoWindowHtml(map.getCenter(),'<div style="color:#000000">Ensorito&nbsp;<br>Dorpsstraat 103 <br>8400 Oostende<br>Tel: 059/43 76 74 </div>');
      }
    }
   
    function getDirections(form) {
gdir.load("from: " + form.fromAddress.value + " + to: " + form.toAddress.value, { "locale": form.locale.value});
}

    function handleErrors(){
   if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
     alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: " + gdir.getStatus().code);
   else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
     alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: " + gdir.getStatus().code);
  
   else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
     alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: " + gdir.getStatus().code);

//   else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS)  <--- Doc bug... this is either not defined, or Doc is wrong
//     alert("The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.\n Error code: " + gdir.getStatus().code);
    
   else if (gdir.getStatus().code == G_GEO_BAD_KEY)
     alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdir.getStatus().code);

   else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
     alert("A directions request could not be successfully parsed.\n Error code: " + gdir.getStatus().code);
   
   else alert("An unknown error occurred.");
  
}

function onGDirectionsLoad(){
      document.getElementById("getMapStatus").innerHTML = gdir.getStatus().code;
}
    </script>          <!-- end Gmap -->
<form id="frmDirections" action="#">
    <p>Uw vertrekpunt (straat, nummer, stad, land): <input type="text" id="from" name="fromAddress" size="60" /><br />
    <br />
    <input type="button" class="submit" value="Bereken route" onclick="getDirections(this.form)" /></p>
    <input type="hidden" name="toAddress" value="51.21176, 2.87197" /> <input type="hidden" name="locale" value="nl" />
</form>
<div id="mapCanvas" style="width: 100%; height: 600px;">&nbsp;</div>
<div id="mapDirections">&nbsp;</div>
<div id="getMapStatus">&nbsp;</div>
<script type="text/javascript">
initializeMap();
</script>

Thanks for your commitment, let me know if you want other information.

Regards,
Chris.

#23

Florian - July 18, 2009 - 18:12

I suspect the issue is related to one of "my improvements":) Put this line in /css/layout.css to see if it solves the problem:

#middlecontainer img {
max-width: none !important;
}

#24

jinglesnbells - July 18, 2009 - 19:49

I added that line to the css/layout.css like you stated. Still no image.

The modules I have installed are:
acquia
admin menu
cck
cck email
cck link
calendar
date
devel
openwysiwyg
gmap
location
path auto
token
and views

Thanks for your help!

#25

IT100 - August 12, 2009 - 09:50
Title:I cannot see my google map on your theme» Solved!

Excellent work Florian!
Thanks!

http://www.ensorito.be/wegomschrijving

Regards,
Chris.

#26

Jorge Campo - July 19, 2009 - 19:12

Downloaded and install the latest version. Now it works!
Thank you so much. I really love this theme and this problem was the only reason I was not using it yet.

#27

Jorge Campo - July 20, 2009 - 15:20

Not yet. It was working fine after the upgrade to the new version.
As soon as I put the zero team theme as the default one the maps go back to grey. :(

See for example here:
http://autismoaba.org/map/node

Maps still work fine under garland.

Added the line proposed under layout.css :

#middlecontainer img {
max-width: none !important;
}

Now is working...

#28

KiamLaLuno - July 21, 2009 - 00:16
Title:Solved!» I cannot see my google map on your theme
Component:Miscellaneous» Code
Assigned to:EgorfromMurmansk» Anonymous
Status:active» fixed

If everybody has resolved the problem, this report can be set as fixed.

#29

KiamLaLuno - July 21, 2009 - 00:17

-- Duplicated comment (I must be the only one who is able to submit two commits with a click of the pad) --

#30

System Message - August 4, 2009 - 00:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.