<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">Dear All,</span><b><br></b></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">How to resolve this error,</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></span></div><b>Fatal error</b>:  Uncaught exception 'MapScriptException' with 
message 'mapObj::setExtent() expects parameter 1 to be double, string 
given' in C:\ms4w\Apache\htdocs\indore\index.php:26
Stack trace:
#0 C:\ms4w\Apache\htdocs\indore\index.php(26): 
mapObj->setExtent('minx', 'miny', 'maxx', 'maxy')
#1 C:\ms4w\Apache\htdocs\indore\index.php(386): zoom1(Object(mapObj), 
Array, -2, -1)
#2 {main}
  thrown in <b>C:\ms4w\Apache\htdocs\indore\index.php</b> on line <b>26</b><div><b><br></b></div><div><b>my code isĀ </b></div><div><b><br></b></div><div><b><div>$map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);</div><div><b><div style="display:inline!important">$my_point = ms_newpointObj();</div></b><br></div><div>$my_point->setXY($_POST["map_x"],$_POST["map_y"]);</div><div>$my_extent = ms_newrectObj();</div><div>$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);</div><div>if($zoom!=2)</div><div>$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent);</div></b><div><br></div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div>
</div></div>