Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am developing a WordPress plugin that allows a user to insert image maps on the image from the WordPress default image editor. I want some JavaScript for it so that when user selects some area on the image it returns the coordinates of the selected area to use within the area tag.

share|improve this question

closed as off topic by Chip Bennett, Wyck, toscho, kaiser, EAMann Feb 27 '12 at 17:07

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
"I want some JavaScript for it so that when user selects some area on the image it returns the coordinates of the selected area" - I don't see how this question is WordPress-related. –  Chip Bennett Feb 26 '12 at 17:22
    
I am seeing a lot of questions lately that relate to JS, CSS or HTML but are under the guise of a faulty plugin or plugin development itself. Maybe time for a meta post (if there isn't already one). –  DigitalSea Feb 26 '12 at 22:33

1 Answer 1

up vote 1 down vote accepted

I would suggest looking at this StackOverflow post - Image Map Editor - particularly the top answer's recommendation: imgAreaSelect.

imgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).

share|improve this answer
1  
+1 - and more if I could - for going to StackOverflow to find a related question and the right answer. –  Chip Bennett Feb 26 '12 at 17:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.