Jump to content

Interactive Map: Image Sectors


chiprivers

Recommended Posts

I am not sure of what aspect of programming is best used for achieving my objective so I will start by posting this question here. Mods, please feel free to reposition this thread if you feel appropriate.

 

I want to produce an interactive map upon which there will be a number of elements that can be repositioned on the map, and depending on the positions where they are put, various aspects of the map will change.

 

I intend to have a <div> that contains this whole map which will have a background image which will display the map outline.  I will use several smaller <div>s as interative elements on the map which will moveable.  I will use jquery's draggable feature to enable this.  So far so good.

 

The bit I am unsure on how to do is how to produce some irregular shaped polygon sectors on the map which I can manipulate.  What I need to do is divide the map up in to a number of sectors.  I then need to be able to control the appearance of these sectors using CSS as if they were an element.  For example, if one of the draggable elements is repositioned within one of these sectors, I need to be able to run a function in jquery that will change the background colour of the sector.

 

Is there a way of creating an irregular shaped div?  Please let me know if I need to explain this further.

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.