You don't tamper with either bits of code. There are two stylesheet/templates/scripts 1) Map_Data.xsl that converts the wiki page into a XML data file and 2) Map.xsl that converts the XML data file into an SVG map document. You only edit the XML data file. You don't even have to edit the XML data file that much to get a decent map out it. The default setting are good enough for most things. In the very long email I sent you I described nearly all the setting so I could be as complete as possible you don't need to change any of the defaults unless it doesn't look good. I do have to admit the legend stuff really needs some diagrams to explain things better. You can (if you don't care about moving the overlapping worlds apart) knock a map out in a couple of minutes if you so wish.ClymAngus wrote:Wow! This stuff is programming hop scotch isn't it? 2 heffing huge bits of code (admittedly you don't tamper with one because that's all your style sheet template things) but the other 1billion and one ways so screw up!
Yes it is easy. I told you how to do that in Step 2 of the instructions in the bit about "additional-svg". I have just checked and Adobe Illustrator 9.0 appears to support SVG so follow the instructions I gave but where I refer to Inkscape just substitute Illustrator. Obviously I haven't tried out the instructions using Illustrator but I can't see too many issues. (Ok, I doubt you have the option to save as "Plain SVG" but just as SVG will do; In Inkscape "Plain SVG" option cuts out the attributes and values used exclusively by Inkscape and are therefore not actual true SVG but these would be ignored by other SVG programs and renderers anyway.)Oh out of interest Phara, is it easy to import vector objects? I tend to be a much better drawer than I am programmer when it comes to regions. If I could export a vector object (or just get the code for it up) It might help the look of those free hand bits. It looks like we're going to have very few ovals and a lot of wibbly lines here. What do you think?
So the method boils down to create the basic SVG map. Open it in Illustrator. Group everything. Draw your regions stuff. Group all the newly drawn bits. Delete the initially grouped maps part to leave the newly drawn bits only. Save as SVG. Open in a text editor. Copy everything inside the <svg> to </svg> tags (excluding those tags). Open the XML data file in the text editor. Inside the <map-data> to </map-data> tags (but not inside anything else within it) add an <additional-svg name="put_name_of_region_here"> </additional-svg> pair of tags and paste inside the stuff just copied into the clipboard. Now add a "layer" element to the "draw-priority" element like this: <layer type="additional-svg">put_name_of_region_here</layer>. (Where in the "draw-priority" element depends on which order you want things drawn.) Job done.
You can do the all regions as one or you could do each separately and put each in a different "additional-svg" elements. The choice is yours.
Phantor Gorth