Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Google map location

Posted by: Pitz37 Dec 12 2016, 05:14 AM

Hi all, I'm editing a template and changed the following bit of code in in red in the contact.html page. I changed the coordinates from the old to my current ones. The map has now gone blank for some reason. Am I missing something?

<div id="content" class="">
<section>
<div class="block_map_1 js_map" data-marker="layout/images/map_marker_1.png" data-map-color="#71be3c" data-map-saturation="-250" data-longitude="-5.050385" data-latitude="50.419952"></div>
</section>

Posted by: pandy Dec 12 2016, 07:24 AM

Shouldn't there be an URL to the map somewhere?

Posted by: Pitz37 Dec 12 2016, 07:59 AM

This is all thats in the file ref the map, searched other .js files, none. The weird thing is when the original coordinates are in place the map displays fine, when I change to my coordinates correct to the same dec point etc, it greys out.

Posted by: Pitz37 Dec 12 2016, 08:00 AM

QUOTE(pandy @ Dec 12 2016, 07:24 AM) *

Shouldn't there be an URL to the map somewhere?


This is all thats in the file ref the map, searched other .js files, none. The weird thing is when the original coordinates are in place the map displays fine, when I change to my coordinates correct to the same dec point etc, it greys out.

Posted by: pandy Dec 12 2016, 08:06 AM

Are you sure the map disappears? It doesn't just turn all blue? Because those coordinates seems to lead to a point in the sea between Kenya's coast and the Seychelles.

https://www.google.com/maps/place/5%C2%B003%2701.4%22S+50%C2%B025%2711.8%22E/@-5.1151354,50.3682712,8z

I don't know, but there must be more to it than that DIV.

Posted by: Pitz37 Dec 12 2016, 08:19 AM

QUOTE(pandy @ Dec 12 2016, 08:06 AM) *

Are you sure the map disappears? It doesn't just turn all blue? Because those coordinates seems to lead to a point in the sea between Kenya's coast and the Seychelles.

https://www.google.com/maps/place/5%C2%B003%2701.4%22S+50%C2%B025%2711.8%22E/@-5.1151354,50.3682712,8z

I don't know, but there must be more to it than that DIV.


You're right, just zoomed out and its near the seychelles somewhere. The lat and long are incorrectly labelled in the div, just switched the two around and working perfectly.

Thanks man, really appreciate the help smile.gif

Posted by: pandy Dec 12 2016, 11:30 AM

It really was that? biggrin.gif

Posted by: pandy Dec 12 2016, 01:04 PM

Heck, I had to check. You live where I want to go on holiday! biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)