|
i need to draw a circle when the aspx page loads. i already have a lat and long and a radius of 500 feet or .0947 miles. i want to draw the raduis when the page loads.
<link href="../../main.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="GeoCodeCalc.js"></script> <script type="text/javascript" src="CreateCircle.js"></script> </head> <body onload="LoadMap();">
<Simplovation:Map runat="server" ID="Map1" Width="800px" Height="500px" AsyncPostbackPassShapes="false" EnableBirdseye="false" Latitude="43.0889491834659" Longitude="-88.0128479003906" Zoom="11" OnChangeView="Map1_ChangeView" OnMapLoaded="Map1_MapLoaded" /> <br />
<script type="text/javascript">
function LoadMap() { var map = $find("<%=Map1.ClientID%>"); var units = GeoCodeCalc.EarthRadiusInMiles; var radius = parseFloat(".0947"); var myLatLong = new Simplovation.Web.Maps.VE.LatLong(43.0889491834659, 88.0128479003906); var circle = CreateCircle(myLatLong, radius, units); circle.HideIcon(); map.AddShape(circle); } </script>
i am trying to combine the Dynamic search and the redius code into the same page. i am mapping where sex offenders live and where schools and day cares are. they cannot live within a 500 foot radius of a school or day care. i have purchased your v1.0 map and will buy the v2.0 if i can get this working.
|