Build an AJAX Based Map Viewer in ASP.NET 2.0
page 5 of 7
by Xianzhong Zhu
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 32785/ 76

Optimization

As is seen from above, we have used the buffering mechanism provided by ASP.NET 2.0 to render the images in the page-pic.aspx. These images, however, are all generated dynamically in the server side, when a good many resources are to be consumed. On the other hand, quite a few small pictures might be repeatedly rendered since we have rasterized the output. Thus, we can find a way of optimizing this by cutting the whole map into small static ones beforehand so as to simplify the image processing on the server side and accordingly improve the performance of the system.

We can easily build a small program to generate these small pieces of pictures automatically (the source code along with this article provides such a tool program named SplitPic). Obviously, with the small pictures changed into static ones, the AjaxMethod GetMapInfo on the server side needs to be modified correspondingly. I have left out the new code, for more details please see the downloaded source code.


View Entire Article

User Comments

Title: ImageInfo   
Name: sliptnock
Date: 2008-10-08 10:45:34 AM
Comment:
In the listing 7 in public " ImageInfo [] " getmapinfo{} gives me a mistake " The type or the name of the space of names 'imageinfo' does not exist in the space of names 'MapViewer' (is reference absent of ensamblado?). To which it owes?






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-04-16 10:58:29 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search