Welcome to WebmasterWorld Guest from 54.80.188.87

Forum Moderators: open

Message Too Old, No Replies

Googlemap link as blank

     
7:36 pm on Apr 29, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1079
votes: 1


I have set inside newsletter link to show Google map with the lat. and lang. values.

Example:
'<b>My google map:</b>'.'<iframe width="600" height="450" frameborder="0" style="border:0" src="'.$URLGoogle.'?key='.$APIGoogle.'&amp;center='.$lat.','.$lng.$OPTIONSGoogle.'"></iframe>'."\n".

How to add transform iframe into link inside newsletter? Is there any option to use Javascript function or without?
Need help.
1:06 am on Apr 30, 2016 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 2, 2003
posts: 1009
votes: 36


Hi there toplisek,

you can make an iframe into a link but
only at the expense of it's functionality.

Would that be acceptable?

birdbrain
6:41 am on Apr 30, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:8684
votes: 693


How about just sending a link instead of an eye candy map? Your address and phone number are far more important.
1:36 pm on Apr 30, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1079
votes: 1


Sending link is not possible under Google API security.
It should be used iframe when you connect to Google map.
How to do it in the correct way?
3:28 pm on Apr 30, 2016 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 2, 2003
posts: 1009
votes: 36


Hi there toplisk,

does this help...


<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">

<title>link over iframe</title>

<style media="screen">
#holder, #holder iframe, #holder a {
position:relative;
display:block;
width:600px;
height:450px;
border:0;
}
#holder a {
position:absolute;
top:0;
}
</style>

</head>
<body>

<div id="holder">
<iframe src="https://maps.google.co.uk/maps?q=Google+21+Corporate+Drive+Clifton+Park&amp;output=embed"></iframe>
<a href="https://maps.google.com/" title="this is a link to&#10; Google maps"></a>
</div>

</body>
</html>



birdbrain
12:35 am on May 1, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:8684
votes: 693


Sending link is not possible under Google API security.
It should be used iframe when you connect to Google map.


Ah! Okay. Understood. I don't use third party anything in my emails/newsletters since many email clients these days block them and any scripts and have to be manually (by the user) clicked to allow them. When I do believe a map is necessary I include a two color (black and white gif) of the two major intersections and then my location, sent from my mail server.... after all this is local traffic not global. If global (or national, regional) then the address and phone number will provide all the info necessary to anyone who needs to find a GPS style map.
3:04 pm on May 1, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1079
votes: 1


When user is sending simple contact form information it will detect his position to clients. In this newsletter it is link with the position/map.
Links is needed in this case.
7:55 pm on May 4, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1079
votes: 1


I have found validated solution but how to make it styled API based google link pointed to Google official map?
[google.si...]
<a href='.https://www.google.si/maps.'/@'.$latitude.','.$langitude.',XXX?hl=en'.'>'.$Point to Google Map.'</a><br />'."\n".

When you use iframe it will be used API source but simple link needs also style.

Is this technically possible?
There is also XXX? but I'm not sure why is this.

Example is posted at Google blog:
[guggenheim.org...]
Author: Posted by Ben Greenwood and Ken Hoetmer, Product Managers, Google Maps APIs
how they make it styled?
Need help.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members