Page 1 of 1

Embedding Google Maps

Posted: Wed Aug 22, 2007 5:55 am
by herbshirt
I had some trouble using the Google Maps module so decided to just use the embed code supplied by Google.
I tried to submit but got....

"Google 
Error


    Forbidden
    Your client does not have permission to get URL /maps?etcetc...

Any ideas what that measn and how I may go about fixing it?

FYI: When I tried the Google Maps module I did the Location search thing, it spat out a default longitude and latitude. When I pasted that I was pointing at Mexico... it was suppoed to point to Australia.


Thanks
Herb.

Re: Embedding Google Maps - further

Posted: Wed Aug 22, 2007 7:02 am
by herbshirt
I have been able to embed the Google map. Grabbed the 'long' and the 'Lat'using this method: http://lifehacker.com/software/google-m ... 267361.php

Pretty cool!
But I also have a couple of URLS a client has supplied for a couple of 'My Maps' he created. Should I be able to treat these the same? Or do I enter those as a 'New Marker'? If so where do I enter the URL? And what is the 'Address Lookup' all about?

When I tried to embed without using the module I got the error mentioned previously.

I used the same embed code in a normal html page in the same folder with no problem so I'm reasonably sure its cms ms thats the problem and not the server etc.

Any help really appreciated.

Re: Embedding Google Maps

Posted: Wed Aug 22, 2007 7:40 am
by cyberman
Thanks - it works :) ...

Re: Embedding Google Maps

Posted: Thu Aug 23, 2007 12:35 am
by herbshirt
What works? :-\

Re: Embedding Google Maps

Posted: Thu Aug 23, 2007 6:38 am
by cyberman
Sorry, I doesn't know something about googlemaps module cause it's not work for me.

I'm using direct embeding in template.

I meant the grabbing of long and lat - doesn't know it before :).

Re: Embedding Google Maps

Posted: Thu Aug 30, 2007 3:53 am
by herbshirt
OK  but does nayone have an answer??

The module admits to 'icons not working yet' but if I try addingthe embed code using the html editor of course, straight into the page I get an error.


- Not Found

The requested URL was not found on this server. -



I'd like to embed the page, icons and all.

Re: Embedding Google Maps

Posted: Thu Aug 30, 2007 8:22 am
by cyberman
herbshirt wrote: I'd like to embed the page, icons and all.
Do you mean something like this?

http://test.cmsmadesimple.de/index.php?page=googlemaps

I've done it with Googles API help at

http://www.google.com/apis/maps/documen ... index.html

Re: Embedding Google Maps

Posted: Mon Sep 03, 2007 2:23 am
by herbshirt
Yes that's exactly what I mean. I'll give it a go tomorrow. Thanks. I'm sure I've visited that page but perhaps I missed something.

Re: Embedding Google Maps

Posted: Mon Sep 03, 2007 5:32 am
by cyberman
Feel free to ask if you have trouble with.

Re: Embedding Google Maps

Posted: Tue Sep 11, 2007 9:27 am
by DeKa
cyberman wrote: Do you mean something like this?
http://test.cmsmadesimple.de/index.php?page=googlemaps
I've done it with Googles API help at
http://www.google.com/apis/maps/documen ... index.html
Can you copy and paste the code you entered to make it work as at the test site above?
That'd be great!
Thanks,
Derek.

Re: Embedding Google Maps

Posted: Wed Sep 12, 2007 1:02 pm
by nichess
Hello,

is this what you are searching for: http://forum.cmsmadesimple.org/index.ph ... 366.0.html

Re: Embedding Google Maps

Posted: Wed Sep 12, 2007 3:25 pm
by cyberman
DeKa wrote: Can you copy and paste the code you entered to make it work as at the test site above?
1. Create a special template for google maps view

2. Add this in head area

Code: Select all

{literal}
    <__script__ src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA5B13I_eLkg8RuuLqqqXMFBR1buWbQ6wM6JwAKEukqPCmDhr4WxTPBb02wp0bfIQeixTLg2XdW7EkSQ"
      type="text/javascript"></__script>
    <__script__ type="text/javascript">

    //<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
var center = new GLatLng(50.958210469307666, 13.842086791992188);
map.setCenter(center, 13);

var marker = new GMarker(center, {draggable: true});

GEvent.addListener(marker, "dragstart", function() {
  map.closeInfoWindow();
  });

GEvent.addListener(marker, "dragend", function() {
  marker.openInfoWindowHtml("Just bouncing along...");
  });

map.addOverlay(marker);


      }
    }

    //]]>
    </__script>
{/literal}
3. Change values of "key" and "new GLatLng"

4. Modify body tag like

Code: Select all

</__body onload="load()" onunload="GUnload()">
5. Add this to content

Code: Select all

<div style="width: 500px; height: 300px" id="map"> </div>