Jump to content
TNG Community

Linking to Google Maps


GeoffH

Recommended Posts

I am having problems setting up Google Maps in TNG 12.1 and using WAMP. I get a blank event map for people whose places have a latitude and longitude.  In the right hand side of the event map I see events and if I click on the pin legend then Google maps comes up with the correct map but outside of TNG in https://www.google.com/xxx  Also I cannot get a response from Geocode.
I have read the help items many times and wonder if I have the correct site address which I have set to http://localhost/tng when the admin page is at http://localhost/tng/admin.php. I really get confused on restrictions and tried several attempts.
Thank you,

Geoff

Link to comment
Share on other sites

Geoff,  I have mine set in WAMP Admin to http://localhost/ which is where the index.php is. 

As far as the pins, that is how mine works and always has... if i click on a pin, then that place opens up outside of tng in another tab as https://www.google.com...

However, i also have the mod https://tng.lythgoes.net/wiki/index.php?title=Mapplace_To_Link_mod which makes the places the map pins point to clickable and those places open up inside of tng in another tab if i click the actual place and not the pin.

Jim

Link to comment
Share on other sites

Thank you Jim,

your first 2 paragraphs show that your site behaves the same as mine. When i saw the maps opening outside of TNG I thought I had made an error. Is this the way the Maps work when on a website as I see examples of maps showing within TNG?

I will now study how to load in mods and try the script that you give in the 3rd paragraph. 

Thanks again,

Geoff

Link to comment
Share on other sites

You are welcome and yes, this is how the map works in TNG... Click a pin on the map and it gives a description, Click the pin on the right of the map and it opens that place in google maps in a new tab... Attached is how a map looks on my site with the mod installed i mentioned earlier. Jim 

Sample Map.jpg

Link to comment
Share on other sites

I have successfully loaded “Mapplace_To_Link_mod” and find no change from my previous experience. I suspect I am not properly linked to Google Maps.  Even if I enter 1234 as the API key in Map Settings I get the same behaviour as with a proper API key. This was after deleting the API key in Google and clearing my cache.

On my first attempt with Google Maps I got a response using Geocode but when my maps opened outside of TNG I thought this was in error so I deleted the first API key and got another – I must have done this about 8 times as I was unfamiliar with the subject. Never since this first API key have I got any response from GeoCode. Any suggestions please?

Geoff

Link to comment
Share on other sites

I gave up on Google and API and have now installed openstreetmap mod on TNG 12.1 and all behaving well. I am now seeing the maps within the TNG window and the event map is showing the pins. Many thanks to the developers of this mod.

Geoff

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...