0
Commit Graph

23 Commits

Author SHA1 Message Date
Andrew Chin
210e65730f Hacky work on biome tinting
Currently this requires python-gearman, gearman-java, and a java SDK.

This code will probably be all thrown away, but if you really want to
play, first compile Biome.java, then run the resulting Biome.class.
Note you'll probably need to hack the signatures out of minecraft.jar to
get it to run.

Then copy grasscolor.png into the cwd, and run gmap.py as usual.

It is slowwwww.  Perhaps running Biome.class on multiple machines might
speed things up?

Here's the kind of output produced: http://smp.em32.net/biome_test/
2010-11-23 00:26:07 -05:00
Andrew Chin
1af7287b8f Add a compass rose overlay to indicate which direction is north 2010-11-06 23:21:17 -04:00
Andrew Chin
16aca4c093 Fancy icons for signposts and spawn, plus info windows for signposts
Thanks to gabrielcrowe for the signpost icon.
2010-11-06 22:04:38 -04:00
Gregory Short
33b6230bab Google released an update to v3 of the gmap api which enables streetview by default. This change explicitly disables it. 2010-10-11 23:41:59 -05:00
Aaron Griffith
a5ae703258 added support for ploylines and polygons on the google map
Polygons and polylines are read from the new file "regions.js". Polylines
(entries with "closed" set to false) are just lines drawn on the map.
Polygons (entries with "closed" set to true) are closed loops that are
filled in with a transparent color.
2010-10-09 15:44:48 -04:00
Andrew Brown
5de70db7fe Merged in new logging, fixed markers, and minetracks 2010-09-30 23:39:18 -04:00
Aaron Griffith
a5cc2e3ae2 more accurate marker positioning on map, and a reasonable custom projection 2010-09-27 14:54:10 -04:00
Alex Jurkiewicz
157eed9893 Fix typo in template.html 2010-09-27 22:11:17 +10:00
Alex Jurkiewicz
e6bfcc3033 Write HTML file with appropriate extension config. 2010-09-27 22:10:23 +10:00
Andrew Chin
80c15a3910 Added initial work on a structure to allow map annocations
The spawn point is automatically added to the gmap as a marker.
Adding other markers (signs, mob spawners, etc) should be fairly
easy.  Note: the math that converts from in-game block coordinates
to pixel coordinates is iffy.  it requires a careful codereview
2010-09-24 23:26:43 -04:00
Andrew Brown
2d4f0cc082 I believe I now have a usable program again 2010-09-14 23:53:28 -04:00
Gregory Short
c10f267041 Removed the scale control as it was completely wrong, dur. 2010-09-12 14:13:54 -05:00
Gregory Short
768a82cc13 Fixed the debug overlay to properly use config.tileSize instead of a hard-coded 384, also explicitly set which map controls will be displayed so that the map type controls allowing the user to switch back to the default google maps don't appear. 2010-09-12 14:12:49 -05:00
Gregory Short
70805f3a67 Added a debug option to the config options in template.html. Setting this to true displays a tile boundary overlay as well as x, y, and z values for each tile, and the tile's url. Defaults to false. 2010-09-12 14:05:36 -05:00
Gregory Short
f442c984c1 If -c or --cachelife option is <= 0, the ?c= parameter won't be appended to tile urls so that caching can be controlled server-side (or left to the whim of the browser) 2010-09-09 02:41:11 -05:00
Gregory Short
94f1b25777 Map is better centered now when initially loading the page. The latitude is an approximation of the center, since we're using a mercator projection with what should be a rotated euclidean one. It's close enough. 2010-09-07 20:02:25 -05:00
Gregory Short
32c2626b39 Added configurable option for controlling how long a tile will live in the browser's cache before being refetched. Good for configurations where the map will be automatically updated ona regular basis and the web browser's cache would get out of sync. Default is 24 hours. 2010-09-07 19:56:44 -05:00
Andrew Brown
41f5eab067 fixed template.html to use the right path 2010-09-06 22:53:16 -04:00
Andrew Brown
4bbdf17bd5 Merge commit 'bf07d3d10c2e00eba3371cff700c8f3cb4d8e3e8'
Note: now that the tiles directory has changed, anyone with existing
tiles should be sure to remove or move their old set of tiles

Conflicts:
	template.html
2010-09-06 22:13:21 -04:00
Gregory Short
bf07d3d10c Moved gmap tiles into a tiles/ subdirectory for a cleaner gmap final output (output directory contains just index.html and tiles/) 2010-09-06 19:58:56 -05:00
Gregory Short
040e269331 Updated template.html to use google maps api v3. This also resolves the bug where double-clicking on the right side of the map to zoom in would zoom somewhere else entirely. 2010-09-07 07:19:56 +08:00
Gregory Short
56a8970bdc Updated template.html to use google maps api v3. This also resolves the bug where double-clicking on the right side of the map to zoom in would zoom somewhere else entirely. 2010-09-06 17:44:08 -05:00
Andrew Brown
a31810957f added gmap command line interface file 2010-09-04 19:22:32 -04:00