Plan 9: Tiled Map
Use plot(1) to display tiled maps. The zoom factor decides the grid dimension. osm.js: Download tile images using hget. Cache the images. Convert the PNG image into Plan 9 format using png. Display the images using plot. Plot script ra 0 0 200 200 m 0 100 im /file :Note - must end the script with a newline Plot tries to center the drawing. Hence the origin is at the bottom with a slight offset from the left. However, image uses origin at the top left. Interactive Plotting and Maps Use plot command in server mode (-s option). plot -s a.plt mount /srv/plot /mnt/plot echo li 0 0 100 100 > /mnt/plot/ctl echo erase > /mnt/plot/ctl Usage as an interactive map. Text Formatting Demo of some advanced features. - Set pen color - Align text around a point - Set pen thickness - Set start and end of the line. Available ends are square, disc and arrow. - Use vec for polyline (a set of points connected with line...