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