poiteur google map not display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjava
    New Member
    • Sep 2009
    • 132

    poiteur google map not display

    hello,

    i have this code
    Code:
    $r_prop['MAP']='<iframe width="960" height="350" frameborder="no" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.fr/maps?f=q&hl=fr&geocode=&q=nice&ie=UTF8&z=15&iwloc=lyrftr:m,13790561596771398086,'.$prop->lat.','.$prop->long.'&ll='.$prop->lat.','.$prop->long.'&output=embed"></iframe>';
    for display the map but the pointeur google not display can you please tell me how i display this pointeur

    Thanks in advance
  • manjava
    New Member
    • Sep 2009
    • 132

    #2
    hello,
    i change my code with api google map but the map not display on my iframe;so my code :
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <script
    src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBjkKLDE7cQ_o4nEWhDg0aa3slXYrVLNrQ&sensor=false">
    </script>
    
    <script>
    var myCenter=new google.maps.LatLng(47.217644,-1.556607);
    
    function initialize()
    {
    var mapProp = {
      center:myCenter,
      zoom:5,
      mapTypeId:google.maps.MapTypeId.ROADMAP
      };
    
    var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
    
    var marker=new google.maps.Marker({
      position:myCenter,
      });
    
    marker.setMap(map);
    }
    
    google.maps.event.addDomListener(window, 'load', initialize);
    </script>
    </head>
    and
    Code:
    $r_prop['MAP']='<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ><div id="googleMap" width="958" height="350" ></div></iframe>';
    i don't know why the map not display .

    thanks in advance

    Comment

    Working...