Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All ,
Please help me for showing some part of image in imagemap control ,

There are 4 part of image , leftpartTop , LeftPartBottom , RightPaftTop, RightpartBottom

XML
<div id="ImgDiv" runat="server" style="width:1000px;height:738px">
<asp:ImageMap ID="ImageMap1" runat="server" ImageAlign="Middle" ImageUrl="~/Images/Delhi_metro_rail_1stEng.png"  BorderStyle="None" CssClass="imgArea" HotSpotMode="PostBack"  Height="100%" Width="100%">
<asp:PolygonHotSpot AlternateText="Left Top " Coordinates="00,00,500,0,500,375,0,375" HotSpotMode="Navigate" PostBackValue="LeftTop" NavigateUrl="~/Equipment management/ZoomMap.aspx?region=LeftTop" />
<asp:PolygonHotSpot AlternateText="left Bottom" Coordinates="0,375,500,375,500,740,0,740" HotSpotMode="Navigate" TabIndex="1" PostBackValue="LeftBottom" NavigateUrl="~/Equipment management/ZoomMap.aspx?region=LeftBottom" />
<asp:PolygonHotSpot AlternateText="Right Top" Coordinates="500,0,1000,0,1000,375,500,375" HotSpotMode="Navigate" PostBackValue="RightTop" TabIndex="2" NavigateUrl="~/Equipment management/ZoomMap.aspx?region=RightTop" />
<asp:PolygonHotSpot AlternateText="Right bottom" Coordinates="500,375,1000,375,1000,740,500,740" HotSpotMode="Navigate" PostBackValue="RightBottom" TabIndex="3" NavigateUrl="~/Equipment management/ZoomMap.aspx?region=RightBottom" />
</asp:ImageMap>
</div>



I want to click on rightBottom hotspot , then show the rightBottom area on imagemap.

Please check and help me for Viewing the part on imagemap ...

Thanks
vilas
Posted

1 solution

Refer this link
imagemap-control-in-Asp-Net-and-defining-hot-spots-for-it/[^]

Hope it will give you some idea for your problem..
 
Share this answer
 
Comments
Mogya 8-Aug-14 2:55am    
Dear Sir,

I create 1st page is schematic image page and image is divided into 4 part part1 , part2 part3 and part4 , if I click on part 4 then next page is showing using imagemap and true image , it is so big height and width , and I need to show part4 area on image and i need to create hotspot area on this image ....

Please guide for this , i dont want to create multiple files ..because i got hotspot point from true big image.

thanks
vilas

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900