Replacing the Guestmap Image

The Guestmap is supplied to you with a 1280 x 650 pixel map of the world in two colours - blue and yellow. You can either use this map with the guestmap script or you can create your own map image and use that instead.

If you use your own image then you can use more than two colours but I suggest that you keep the number of colours to a minimum in order to keep the size of the image file as small as possible. The image needs to be in gif format to work with the guestmap script.

There are three reasons I can think of as to why you may want to change the map.

  1. that you have your own map of the world image that you want to use with the guestmap (particularly if you are better at drawing maps than I am).
  2. that you are using the guestmap for a different purpose than finding out where people live and use something completely different in place of the world map (eg a lunar map on a space exploration website so that people can mark where they think the first colony should be built).
  3. that you only wish to display a map of part of the world instead of the whole world (eg. a map of Australia). If you are considering this then remember that this may alienate those visitors to your site who do not live in the country displayed on the map (which may not matter if the site is aimed primarily at people in that one country).

So let's get started. The first step in changing the map image is to create your replacement image and save it as img/map.gif. If the image already exists as a gif file then all you need to do is rename (or copy) the existing file. You will also need to know the width and height of your image.

If your map image is 1280 pixels wide and 650 pixels high (ie the image fills the same screen area as the supplied image) then that is all there is to it.

If your image is a different size (very likely if you are using an existing image rather than creating a new one) then you will need to make a couple of additional changes:


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow