Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1494 posts 1635 karma points c-trib
    Sep 13, 2012 @ 13:45
    Biagio Paruolo
    0

    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.

  • Biagio Paruolo 1494 posts 1635 karma points c-trib
    Sep 13, 2012 @ 13:49
    Biagio Paruolo
    0

    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>

  • 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.

Please Sign in or register to post replies