'Map loading...'
Closed this issue · 23 comments
It isn't.
I have module loaded, works in CMS, have requested and set up API key, etc but map is simply NOT loading. Did I miss anything?
hey MIke
I would love to get it working for you. I will have a quick look for you and see what I can do.
Have you looked at the error (e.g. is it a JS error you are getting or something else?)
Cheers
Nicolaas
Please let me know if you need more help. We are also available for paid support and development.
I think the first thing you need to find out is why it is not working. Did you add \
<% include GoogleMapBasic %>
to your Page.ss?
what version are you using ?
are you sure it is not the googlemap module? https://github.com/sunnysideup/silverstripe-googlemap
what version are you using ?
are you sure it is not the googlemap module?
Hi Nicholaas, not getting a JS error or any other sort of error -- weirdest thing is that it's working fine in local environment but won't work on the live site! It just sits there telling me it's 'loading'...
OK - if you sure that the code is identical then I would look at (a) permissions for files (b) ?flush=all - solves MOST problems (c) database differences ... maybe the address you have entered on the live site is not recognised by Google... .
Should add that I have used silverstripe-googlemap on another site -- couldn't get it working in localhost development on this one which is why I looked at googlemapbasic... which, as I said, DID work!
Have tried ?flush=all -- might take a look at permissions. Re-entered address so I don't think that's it (take it you mean the address on the map, not the site address (domain)?
well, I have both modules working on several live sites, just let me know if you need help. I can also provide assistance @ NZD75 per hour. If you dont have any specific issues then it is hard to help you much further on this bug.
Thanks Nicholaas -- have made a bit of progress. Changed permissions on directory to 777 and I have been able to load a map -- as an image (can't load a dynamic map which is what I had here?) Any clues?
I would validate your html, and double-check for JS errors (F12).
OK, have just produced a JS error (as seen in FireBug):
TypeError: GoogleMapBasic.SET_infoWindowContent is not a function
GoogleMapBasic.SET_infoWindowContent("\x3cdiv class="infoWindowContent typograp...
Afraid it doesn't mean that much to me... any tips?
Just reviewed your posts -- see your screenshot where you ran it "out of the box" you were showing a static image. Would it work as a dynamic map in the same instance for you? (probably would but I'm just wondering?!)
that means, the JS file is probably not included.
Back again Nicholaas! You're right, the JS file wasn't included (thought this happened automatically as it had in development environment). I added a 'Requirements::' link to Page.php and it loaded. Went through to google.apis, etc and I thought it was going to work. But still no map, just a blank space where a map should be ('Map loading...' disappeared) -- and no error showing in Firebug...
And my HomePage image slider disappeared as well... obviously conflicting with map JS...
would you like me to have a look at it? you can PM me: nt @ sunny zide up
as in www.sunnysideup.co.nz
Still checking things out -- now seeing the error in local environment. Map still works though?!
Error: Syntax error, unrecognized expression: .$MapID
throw new Error( "Syntax error, unrecognized expression: " + msg );
Just saw your other message Nicholaas -- how long do you think you would need to fix?
Weird. Javascript is loading on live site -- goes and looks at Google.APIs and then returns no map. But if I save map as static image I get the following:
ReferenceError: google is not defined
geocoder = new google.maps.Geocoder();
it will most likely ;-) take less than an hour to fix.
Hi Nicholaas -- just had a thought -- if GoogleMapBasic is working fine in local site (which it is) but not on live server, could it be a server setting that is stopping it? I've talked to my hosting company who have confirmed that all server ports apart from the standard http and https (80 and 443) are blocked. Could this be what is stopping map form displaying (as I said page is communicating with google APIs, etc...)?
Hi Mike
I really dont know, sounds unlikely. If you are happy to pay up to NZD75 then I can help you. Right now, I simply dont have enough information and it works on your local host and so if all settings are the same it should work on your server.
If you are keen for me to help you then please email me and I will send you invoice. Once that is paid, I will assist you until it works!