473,326 Members | 2,337 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,326 software developers and data experts.

ImageMap

Hi to all,

I have a Spain Map as webcontrol. This webcontrol its a ImageButton.

How could i identify in wich region (area) the user clicks?

I only know how obtain the x and y coordinates where the user click. But i
dont know how identify the area.

Any help would be appreciated.
Thx.
Nov 16 '05 #1
2 2704
Hi

The simpliest way is:
- Identify these regions by their centroids (center of region),
and find the neares one.

Other ways:
- Define a rectangle (rectangles) for each region, this rect
will represent range of x,y for a region.
- Raster region recognition - keep each region as its binary
raster map (e.g. region-white, black-else), scan those maps
to find the choosen one.
- 2D vector region recognition - keep each region as polygon,
and use (advanced) search to find the choosen one.

Look for GIS or 2D (3D) algorithms on web for more info.

Regards

Marcin
Hi to all,

I have a Spain Map as webcontrol. This webcontrol its a ImageButton.

How could i identify in wich region (area) the user clicks?

I only know how obtain the x and y coordinates where the user click. But i
dont know how identify the area.

Any help would be appreciated.
Thx.

Nov 16 '05 #2
Thnx Marçin, your post was very useful for me.

"Marcin Grzębski" wrote:
Hi

The simpliest way is:
- Identify these regions by their centroids (center of region),
and find the neares one.

Other ways:
- Define a rectangle (rectangles) for each region, this rect
will represent range of x,y for a region.
- Raster region recognition - keep each region as its binary
raster map (e.g. region-white, black-else), scan those maps
to find the choosen one.
- 2D vector region recognition - keep each region as polygon,
and use (advanced) search to find the choosen one.

Look for GIS or 2D (3D) algorithms on web for more info.

Regards

Marcin
Hi to all,

I have a Spain Map as webcontrol. This webcontrol its a ImageButton.

How could i identify in wich region (area) the user clicks?

I only know how obtain the x and y coordinates where the user click. But i
dont know how identify the area.

Any help would be appreciated.
Thx.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alan Wang | last post by:
Hi There, For asp.net 2.0, there is a new web control called imageMap. I am just wondering if there is ONLINE imageMap editor in the market so that programmer doesn't have to figure out the...
0
by: Gilgamesh | last post by:
Hi, I have some very limited knowledge of web development but I have an imagemap in which I want to be able to display a small yellow circle at certain pre-define locations. When the user moves...
1
by: Mad Scientist Jr | last post by:
I found some info on creating an imagemap in .NET at http://msconline.maconstate.edu/Tutorials/ASPNET2/ASPNET05/aspnet05-04.aspx but in VS.NET I don't see any ImageMap object under...
1
by: jediknight | last post by:
Hi All, I am very new to ASP.NET but have used c# for windows very much. I would like to display an imagemap which has the background as the map of a city centre and icons denoting important...
9
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one directly below the other. When I do this a thin blank space appears between them. After several days of frustration I realized...
1
by: Jeff | last post by:
ASP.NET 2.0 I've got problems with the Width of the ImageMap below. The problem is that the ImageMap's Width doesn't have any effect in my GridView, the width are determine by width of the...
0
by: William Main | last post by:
I have the following code ImageMap image1 = new ImageMap(); image1.Click += new ImageMapEventHandler(ImageMap_Click); image1.HotSpotMode = HotSpotMode.PostBack; image1.ImageUrl =...
0
by: DamienS | last post by:
Hi, I have a situation where I have custom user controls 'cut out' of the background image of a master page. Basically, I've used photoshop to export a sliced image which is used in the master...
3
by: corinne david | last post by:
I am developping a wesite. I am new at it. I usually program scientific program. I am using ImageMap and circleHotSpot. In the ContentPlaceHolder1 I have BigImageA In the ContentPlaceHolder2 I...
0
sanjib65
by: sanjib65 | last post by:
In an ImageMap, when we want to get to any particular place of an Image we usually use some ImageMap properties like Circle/Rectangle/Polygon...etc. and put integer values. What I want to know, is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.