0

Yahoo API Map

Hi All

I want to display Map in emails. I have tried the below mentioned code:

<html>
<head>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=gofkymXV34FJrnw2M7tOpmMSzaLFtNslnAwlbEzw5uoGlWIFQKGdJ41mwDBZZkCxWf0w">
</script>
<style type="text/css">
#map{
height: 75%;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
// Create a map object
var map = new YMap(document.getElementById('map'));

// Add map type control
map.addTypeControl();

// Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
map.setMapType(YAHOO_MAP_REG);

// Display the map centered on a geocoded location
map.drawZoomAndCenter("San Francisco", 3);
</script>
</body>
</html>

But this works fine in webpage but does not works in email.

Can any one let me know how to display Static Map image in email through Yahoo Map API.

by
1 Reply

Recent Posts

in Suggestions for YDN