world map, now clickable!

Speak about everything in regards to Crossfire.

Moderator: Board moderators

Leaf
Forum Aficionado
Posts: 2002
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Re: world map, now clickable!

Post by Leaf »

Mith wrote: Ingredients:
A bunch of images and a few scripts

How It Works:
a script, an image, an imagemap, a script, a few more images, an url and still more images.
The scripts describes the relations between the images.
Because the question came up with the Map Editor - are these scripts (and images?) going to be released under the GPL or similar license? :)
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Re: world map, now clickable!

Post by Mith »

leaf wrote: Because the question came up with the Map Editor - are these scripts (and images?) going to be released under the GPL or similar license? :)
if you know some appropriate place for them ;)
the version i currently have at localhost does fine, i think its release ready - except for lacking comments and a dirty hack (generates non w3c compliant html)

the scripts to generate the images are a different story, I am willing to release them under GPL, but i think they are quite problematic, for they are
1) system dependent (uses sh, and depends on directory structures)
2) use CFJavaEditor (hence depend on a specific version of Java)
3) CFJavaEditor has some memory bug*, the script doesnt have a workaround for that. the script works fine for a small set of images (30) if and only if the editor can use a LOT (512 mb) of ram
4) it is heavily underdocumented
5) its DANGEROUS when used in the wrong location
6) i dont know wether i want it as one script or as a collection of scripts

Anyway, i am still improving that stupid script, i could eliminate 1, 4 and maybe 5.
6 is quite a different problem.
to tackle 3, have to proces a limited number of images at once. (limited by the memory usage) It is possible to start the editor for every single map you have to do, but that's quite an unpleasant method.

*looks like it does not unload maps that are closed

EDIT: also see my later reply on this question
Last edited by Mith on Wed Mar 09, 2005 8:10 pm, edited 1 time in total.
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

RFC:

i can give the images a 'title="world_xxx_yyy"'
(this results in a tooltip displaying world_xxx_yyy, see http://www.w3.org/TR/1999/REC-html401-1 ... adef-title )

would anyone like that?
I think it would mostly be interesting for no zoom and max zoom. at max zoom it should replace the world_xxx_yyy name inside the image - though i also could include the map name above/below the map image

for no zoom, it provides an easy way to see what map you're looking at
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

well, I've been using the status bar to achieve the same effect, don't know about anyone else....
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

one more RFC:

when you look at an image at full zoom, there is a 'world_xxx_yyy' text in the upper left corner of the image

I can remove that, and have the page itself mention the worldmap file. Anyone like that idea? (have a look at http://dooler.woosworld.net/cf_map/view.php?X=110&Y=118 and imagine there is no text in the image)
Bibendi ergo sum
or rather: sum ergo bibendi
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Re: world map, now clickable!

Post by Mith »

leaf wrote: are these scripts (and images?) going to be released under the GPL or similar license? :)
question... i generated the images with some GPL software, using GPL map files

would it be allowed not to release the images under GPL (but some other licence)?
(of course it is allowed not to release the images...)

Expect CF Worldview v. 1.0 (php-set) within a few weeks.

The only think i want to change is the output generated in case the input is 'wrong' (i.e. X or Y are not in the interval [100,129]) for this is all but valid html ;)
(see http://dooler.woosworld.net/cf_map/zoom ... 112&Y=110a and http://dooler.woosworld.net/cf_map/zoom.php?X=112&Y=150 )

At the same time i'll release CF Worldview CVS image pack (with or without numbers at max zoom - i think without)

the scripts to generate the image set... i'll release them, but i dont know when. This mostly has to do with the issue with CFJavaEditor, other things are not that worse
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

Ooh, you shinified the buttons, nice :)

AFAIK, and can determine from a quick google. If you release the a derived work of something released under the GPL then must be licensed under the GPL.

What matters is whether these images count as a 'derivied work' or not. I don't know whether in a case like this they do, certainly there was a case involving Deluxe Paint on the amiga which determined that the creator of a tool has no right to the works created with that tool, in this case the java editor. The issue is whether what you are doing is treated like a photograph (not a derived work) or a modification of the existing maps (not a derived work).

IANAL, and very glad of the fact too.
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

cavesomething wrote:Ooh, you shinified the buttons, nice :)

IANAL, and very glad of the fact too.
LOL, same here. Well, i dont care, i would release them under GPL, 't was just a thought.

These buttons are just to avoid a "this-is-north no-this-is-north" debate.
And besides, they are bigger, easier to hit ;)
Bibendi ergo sum
or rather: sum ergo bibendi
Elshar
Newbie
Posts: 2
Joined: Tue Feb 24, 2004 6:17 pm

Post by Elshar »

Mith wrote:one more RFC:

when you look at an image at full zoom, there is a 'world_xxx_yyy' text in the upper left corner of the image

I can remove that, and have the page itself mention the worldmap file. Anyone like that idea? (have a look at http://dooler.woosworld.net/cf_map/view.php?X=110&Y=118 and imagine there is no text in the image)
I think it'd be better without the text in the image. And one more suggestion. How about zoom in/out buttons instead of opening a new window to zoom in?

Its pretty cool so far :)

Elshar
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

Elshar wrote:
Mith wrote:one more RFC:

when you look at an image at full zoom, there is a 'world_xxx_yyy' text in the upper left corner of the image
I can remove that, and have the page itself mention the worldmap file. Anyone like that idea? (have a look at http://dooler.woosworld.net/cf_map/view.php?X=110&Y=118 and imagine there is no text in the image)
I think it'd be better without the text in the image. And one more suggestion. How about zoom in/out buttons instead of opening a new window to zoom in?
thats
1) to save bandwith (not having to reload the images again and again)
2) this is way easier to do (click on zoom in, sure but where to zoom?)
3) i (and i assume many others) prefer to have it open in a new TAB, its easier to compare etc.
guest Mike wrote: The text is essential, it allows you to know what map it is, I used this to PlOt where MAH eastern areaHU would Be![...]
i would only remove the text from the full zoom images. The reason is that location is just above the image at full zoom (so the text is all but essential). I think that text is annoying, it blocks your view as were it earth walls ;)
Of course i would leave the medium zoom images with text.
Post Reply