Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 1
Anonymous
57 Views, 0 Replies

zoomScale

Hi,

I've got a problem with a javaScript function. I want to transform lat/lon in degre/minute/second to decimal and zoom to the coordinate.
But it doesn't work...
If someone can watch my function, it will be great !!!

function zoomObject()
{
var res_lat = parseFloat(document.form1.T1.value) + parseFloat(document.form2.T2.value/60) + parseFloat(document.form3.T3.value/3600);
var res_lon = parseFloat(document.form4.T4.value) + parseFloat(document.form5.T5.value/60) + parseFloat(document.form6.T6.value/3600);

//Get MG Map Object
var map = opener.GetMap();

map.zoomScale(res_lat, res_lon, 2500);
}

When I make an alert message on the zoomScale, the result is false...so there's a problen in parameter but where....

Thanks for help.

Yannick
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report