Hi papillonhn,
This is an ASP forum for classic ASP questions so you should re-post your question in the .NET forum - you'll recieve better technical help over there.
A simple solution would be to use css positioning to acheive this effect. Use an image tag for each position on the map you wish to display a weather symbol and define it's position over the top of the background image using css. You can then change the ImageURL property of each image depending on your weather data. In this example I've defined each image by the nearest town e.g.
[HTML]
<asp:Image ID="imgBG" ImageUrl="MapBackground.gif" runat="server" />
<asp:Image ID="imgQueenstown" CssClass="imgQueenstown" runat="server" />
<asp:Image ID="imgChristchurch" CssClass="imgChristchurch" runat="server" />
<asp:Image ID="imgWellington" CssClass="imgWellington" runat="server" />
[/HTML]
Your css file would hold the position of each image:
[HTML] .imgQueenstown, .imgChristchurch, .imgWellington
{
position:absolute;
}
.imgQueenstown
{
top:100px;
left:20px;
}
.imgChristchurch
{
top:90px;
left:40px;
}
.imgWellington
{
top:80px;
left:50px;
}
[/HTML]
And finally, once you had your weather data you would set the url of each image:
- Sub DrawWeatherMap()
-
-
'Load your weather data here in whatever format you like (db, xml etc) then set the images e.g
-
-
imgQueenstown.ImageURL = "Sun.gif"
-
imgChristchurch.ImageURL = "Cloud.gif"
-
imgWellington.ImageURL = "Rain.gif"
-
-
End Sub
-
This is only an example solution and there is probably a more efficient or more powerful way to achieve what you want.
If you have any further questions on this then please re-post this thread on the .NET forum.
Hope this helps,
Dr B