Note that there are some explanatory texts on larger screens.

plurals
  1. POadding click listener on circle is not working
    primarykey
    data
    text
    <p>I am trying to add click listener on my map and here is my code for this</p> <p><strong>update</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;/head&gt; &lt;style&gt; #map-canvas{ width:500px; height:500px; } &lt;/style&gt; &lt;script type="text/javascript"&gt; var cityPoints = { center: new google.maps.LatLng(41.878113, -87.629798), id: 0, addr: 'avenue0', magnitude: 100000 }; var cityCircle; var infoWindow = new google.maps.InfoWindow({ content: "&lt;div&gt;Hello! World&lt;/div&gt;", maxWidth: 500 }); function initialize() { var mapOptions = { zoom: 4, center: new google.maps.LatLng(31.2330555556, 72.3330555556), mapTypeId: google.maps.MapTypeId.TERRAIN }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var populationOptions = { strokeColor: "#FF0000", strokeOpacity: 1, strokeWeight: 1, clickable: true, fillOpacity: 0, map: map, center: new google.maps.LatLng(31.231867, 72.33336), radius: 200000 }; cityCircle = new google.maps.Circle(populationOptions); google.maps.event.addListener(cityCircle, 'click', function (ev) { infoWindow.setPosition(ev.latLng); infoWindow.open(map); }); } initialize(); &lt;/script&gt; &lt;body&gt; &lt;div id="map-canvas"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>But this code is not working for me becasue infor window is not opening when i click on circle.Plz any one tell what exactly i am missing in my code.Plz Help</p>
    singulars
    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.
 

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