r7 - 16 Apr 2005 - 10:28:12 - CrawfordCurrieYou are here: TWiki >  Support Web > HowToUseImageMaps
Tags:
, create new tag

Question

Is there a way to use image maps within TWiki topics?
What I would like to do: display process chains

  • one topic containing the main process chain
  • define sensitive areas within this mainchain.gif (using the <map> and <area> -tags)
  • linking to various topics containing the sub chains

My approach was to use the plain html tags for a client side image map (see http://de.selfhtml.org/html/grafiken/verweis_sensitive.htm for a german description). But the linking did not work. This was not due to me getting the path to the topic wrong. It did neither work for plain http-links.

So may be with TWiki I can only use server-side image maps? (http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6.2) If so, what would I need to do to my server? Or is there any other way to manage this (besides using text anchors)?

(I'm not sure if "missing functionality" is the right category for this topic, but it seemed to be the closest. Might need to be changed.)

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2000 Server
Web server: Apache 1.3.33
Perl version: 5.8.5-3
Client OS: Windows XP
Web Browser: IE
Categories: Missing functionality
-- JuditMays - 13 Apr 2005

Answer

Would the image maps of TWikiDrawPlugin provide the functionality you need?

-- PeterThoeny - 14 Apr 2005

Strange that client side maps didn't work for you. I did attach images with maps, produced and exported to HTML with MS Visio, successfully, by just adding the exported source to the topic. Note: I did change all HTML-tags to lower-case and checked the links. See the simple example below.

Page-1
Topic Home

Doesn't this work for you?

Of course Peter is right: Use TWikiDrawPlugin for this kind of diagrams! smile


Edit
http://twiki.org/http://twiki.org/cgi-bin/view/Support/HowToUseImageMaps#AnswerEdit drawing `gif_2` (requires a Java 1.1 enabled browser)Edit drawing `gif_2` (requires a Java 1.1 enabled browser)Edit drawing `gif_2` (requires a Java 1.1 enabled browser)Edit drawing `gif_2` (requires a Java 1.1 enabled browser)

-- FranzJosefSilli - 14 Apr 2005

If you would like to use photos and draw sensitive areas over them, you could use mapedit, a $10 soft, and hack the result code as you need.

-- BenoitFauvel - 15 Apr 2005

Thanks for all your answers! I installed the TWikiDrawPlugin and it seems to be working all right. And I understand the example given by Franz. But I havn't figured out yet, how to use it for my purpose.

I have an existing gif file which I would like to edit with the plugin.

But if I attach the image (with a link in the topic) and write %DRAWING% into the topic as well, the two are not combined or connected in any way.

So how do I add the sensitive parts of the map to an image that I did not create with the plugin?

-- JuditMays - 15 Apr 2005

Sorry Judit, that's not possible with the TWikiDrawPlugin cause you can't 'convert' pixel-graphics (.gif) easily into equivalent vector-graphics (.draw). Maybe some day this distinction won't matter any more cause there are only .svg images or pictures in some other text-based graphics-format around, but I fear that won't happen in my lifetime. Till then we will have to use the workaround of using some external vector-graphics editor to 'draw' image-maps.

-- FranzJosefSilli - 15 Apr 2005

If someone added gif image support to TWikiDrawPlugin it could be done. And before you ask, no, I wasn't planning to.

-- CrawfordCurrie - 16 Apr 2005

 
Topic attachments
I Attachment Action Size Date Who Comment
gifgif gif_1.gif manage 1.8 K 14 Apr 2005 - 15:09 FranzJosefSilli Page-1
elsedraw gif_2.draw manage 1.2 K 14 Apr 2005 - 15:19 FranzJosefSilli TWiki Draw draw file
gifgif gif_2.gif manage 0.8 K 14 Apr 2005 - 15:19 FranzJosefSilli TWiki Draw GIF file
elsemap gif_2.map manage 0.7 K 14 Apr 2005 - 15:19 FranzJosefSilli TWiki Draw map file
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo