Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How use Google Map Data Type ( last version )?
There is a lot of sparse information, but not help a lot.
http://maps.google.com/staticmap?center=40.68244079999999,14.76809609999998&zoom=13&markers=40.68244079999999,14.76809609999998,blues&size=400x400&key=KEY
I've 403 Forbidden, but I've authorize into Google Map portal.
Js:
<script type="text/javascript"> $(document).ready(function () { $('div[class=map]').each(function() { $(this).addClass('mapdimensions'); var mapId = $(this).attr('id'); var value = $(this).html(); value = $.trim(value); var point = value.split(','); var lat = parseFloat(point[0]); var lon = parseFloat(point[1]); var zoom = parseFloat(point[2]); var apiKey = 'Key'; var imgSrc = 'http://maps.google.com/staticmap?'; imgSrc += 'center='+lat+','+lon; imgSrc += '&zoom=' + zoom; imgSrc += '&markers='+lat+','+lon+',blues'; imgSrc += '&size=400x400'; imgSrc += '&key='+apiKey; var imgTag = '<img height="200" alt="map" src="'+imgSrc+'" width="200">'; $(this).html(imgTag); }); }); </script>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Google Map Data Type...How use it?
Hi,
How use Google Map Data Type ( last version )?
There is a lot of sparse information, but not help a lot.
http://maps.google.com/staticmap?center=40.68244079999999,14.76809609999998&zoom=13&markers=40.68244079999999,14.76809609999998,blues&size=400x400&key=KEY
I've 403 Forbidden, but I've authorize into Google Map portal.
Js:
<script type="text/javascript"> $(document).ready(function () { $('div[class=map]').each(function() { $(this).addClass('mapdimensions'); var mapId = $(this).attr('id'); var value = $(this).html(); value = $.trim(value); var point = value.split(','); var lat = parseFloat(point[0]); var lon = parseFloat(point[1]); var zoom = parseFloat(point[2]); var apiKey = 'Key'; var imgSrc = 'http://maps.google.com/staticmap?'; imgSrc += 'center='+lat+','+lon; imgSrc += '&zoom=' + zoom; imgSrc += '&markers='+lat+','+lon+',blues'; imgSrc += '&size=400x400'; imgSrc += '&key='+apiKey; var imgTag = '<img height="200" alt="map" src="'+imgSrc+'" width="200">'; $(this).html(imgTag); }); }); </script>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.