Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to put an image on Google Map using Api v3?
    primarykey
    data
    text
    <p>I have a simple image of house(top view, looks like a 3d model) and I want to place this picture of the house on place where this house stands (on roadmap). <a href="http://i.imgur.com/5Lbka7v.png" rel="nofollow">This is an example of what I want</a>. But I have a big problem with position, I just can't place the image correctly, it's torn or drives off (<a href="http://i.imgur.com/0ySu1px.png" rel="nofollow">an example of what I got</a>). I read all documentation about overlays but I don't know how to make this thing, maybe somebody tell me how to do it or show the direction where to go?</p> <p>Example of code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Ground Overlays&lt;/title&gt; &lt;style&gt; html, body, #map-canvas { height: 100%; margin: 0px; padding: 0px } &lt;/style&gt; &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt; &lt;script&gt; var Overlay; function initialize() { var house = new google.maps.LatLng(55.734907, 37.571526); var imageBounds = new google.maps.LatLngBounds( new google.maps.LatLng(55.734603,37.571374), new google.maps.LatLng(55.734944,37.572097), new google.maps.LatLng(55.735032,37.571221), new google.maps.LatLng(55.735201,37.570343), new google.maps.LatLng(55.735218,37.570840), new google.maps.LatLng(55.735238,37.571670), new google.maps.LatLng(55.735423,37.571147), new google.maps.LatLng(55.735551,37.570891) ); var mapOptions = { zoom: 17, center: house, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); Overlay = new google.maps.GroundOverlay( 'file:///home/map_top.png', imageBounds); Overlay.setMap(map); } google.maps.event.addDomListener(window, 'load', initialize); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map-canvas"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload