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: 

Type in distance on a radius search

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
284 Views, 2 Replies

Type in distance on a radius search

Hello,
I would like to type in the distance of a radius search to get the exact distance needed. Is this possible to program? (after center down, capture key press)

thanks!
Sarah
2 REPLIES 2
Message 2 of 3
jumpinjackie
in reply to: Anonymous

Hi Sarah,

Easiest way would be to call DigitizePoint() passing a callback function that prompts for a distance value. The callback function will be called, and passed a point which is the point you clicked on the map.

eg

---------------------------------

var callback = function(point) {
var dist = prompt("Enter the distance");

//Do something with the captured input, for example call a script via an iframe, xmlhttprequest or form submit, passing our captured values

};

mapFrame.DigitizePoint(callback);

------------------------

mapFrame would be a reference to the map frame in the ajax viewer.

- Jackie
http://themapguyde.blogspot.com
http://au.linkedin.com/in/jackieng
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks! I'll give it a try.

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

Post to forums  

Autodesk Design & Make Report