473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

plotting line in virtual earth

I have embedded virtual earth map in my webpage.
I have written a code to plot continous lines(called polylines) by using a loop in
JavaScript

the code doesn't plot continous lines
here is the jscript function i have written

function GetMap()
{
var lat1 = 13.05386; //starting latitude
var lon1 = 80.19887; //starting longitude
var lat2 = lat1 + 0.005; //incrementing
var lon2 = lon1 + 0.005; //
var x = 0;
var poly = new Array();
map = new VEMap('myMap');
map.LoadMap();
while(x < 5)
{
points = new Array( new VELatLong(lat1,lon1),new VELatLong(lat2,lon2));
poly[x] = new VEPolyline('1',points);
poly[x].SetWidth(3);
poly[x].SetColor(new VEColor(0,150,100,1.0));
map.AddPolyline(poly[x]);
map.SetMapView(points);
lat1 = lat2;
lon1 = lon2;
lat2 = lat2 + 0.005;
lon2 = lon2 + 0.005;
x++;
}
}

Is there any body who is working with virtual earth maps .......
help me..plz
i am new to jscript

Thanks in advance
Sep 21 '06 #1
0 1290

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time...
1
by: wayne | last post by:
i want to plot a line graph. The values that I obtain are the RGB value of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when generated the RGB values, there will b a column of values...
4
by: John Morgan | last post by:
I have been looking at the Microsoft Virtual Earth SDK. As far as I can see I have to incorporate it in a web page using a control based on Javascript through web services It being a Microsoft...
1
by: =?Utf-8?B?Tmlrb2xheSBQb2Rrb2x6aW4=?= | last post by:
Good noon, community! Please help me solve my problem. I need use Microsoft(r) Virtual Earth in the my application. How can i do it? Thanks in advance!
0
by: JWcode | last post by:
Hello, I am trying to do paging and Virtual Earth on the same page. I want to have the ten results on each page mapped with Virtual Earth. I can't figure out how to go through the results a...
2
by: clintonG | last post by:
While using this website which loads all three for comparison: http://www.rockstarapps.com/samples/map-compare/ I realized how terrible Virtual Earth imagery is. Microsoft is using Navteq while...
7
by: arslanburney | last post by:
Hello. Ive got two functions here. Somehow the program does not go in to the second function wehn i call it. The bestfit function. Could some1 help me identify the problem. Heres the code: ...
0
by: Fredrik Lundh | last post by:
aditya shukla wrote: Extracting is easy; you can do something like data = for line in open("test.txt"): line = line.split("|") data.append(float(line))
1
by: Ken Fine | last post by:
Hi, hoping someone can help out with what's a simple question. I am using the ASP.NET VE map control here on a site, which I am still developing. I'm putting picture icons on a map: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.