Use an image to capture mouse coordinates in the post creation screen
-
This is probably a long shot but does anyone know how I could implement the following functionality:
I want the all the posts on my site to appear as a series of pins on a map. The map is not a real word map so using any solution using Google Maps is out.
On the front end it is easy to place HTML regions on the screen, based on coordinates I can store against each post in WordPress.Now the hard bit,
In order to capture these coordinates in the first place I intend to use JavaScript to capture the mouse position when the user clicks somewhere in a DIV holding a copy of the image used on the front end. That way the coordinates will map across correctly. I could maybe use some type of custom post to add a field to hold the captured coordinates, but I still have no clue how I can include the map image into the post creation screen or how I could attach the JavaScript to the page. I suppose I could just hack it and put the JavaScript in-line.
Hopefully I’ve explained what I’m trying to do ok, does anyone have any ideas how to do it?
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Use an image to capture mouse coordinates in the post creation screen’ is closed to new replies.