javascript - How to make rectangle visible until another rectangle draw -


i'm trying draw rectangle on google map. bound values after draw rectangle successful.but rectangle not visible problem. please me visible rectangle until rectangle draw.

in on 'click' event listener rectangle removing setting setmap(null), , setting bounds minimal values. should remove these lines , on 'mousemove' event check 'state' variable instead of using getmap

if (state==1) {     rect.setbounds(tobounds(pt1, event.latlng)); } 

see updated jsfiddle


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -