- Help
- Interactive maps
How to put an interactive map on your website
Pick a map, colour its regions, add pop-ups, links and markers, then add it to your site with one file and two lines. Free with a small link; buying a map removes it.
Updated
Pick a map
Every map works the same way, in the same editor: the USA, its counties, the world, Europe, North America, Canada, the United Kingdom and Australia. Open the map’s page and click Make your map.
- Every map is free on any website, commercial ones included, with a small “Map by Geloky” link under it.
- The UK map has its 12 regions: the nine English regions, Scotland, Wales and Northern Ireland.
- No account: the editor keeps your map in this browser as you go.
Colour the regions
Click a region on the map and pick its colour, or type a colour code. To colour many at once, paste regions and numbers, from a spreadsheet for example: a name or a code, then a number, on each line. Choose how many shades, give the legend a title and click Colour the states: the map shades them from light to dark and puts the legend under it.
- Names and codes both work: Texas or TX.
- A third column becomes the pop-up, a fourth the link.
- Regions missing from your list keep the colour for no colour, which you can change under Style.
- It is all optional: colour by hand, from numbers, or not at all.
California 7 Texas 6 New York 5 Florida 4 Illinois 3
Write pop-ups and links
Each region can have a pop-up: a few lines that open when someone clicks it, with a link to read more. Or make the click open your link straight away, for a map that works as a menu of your pages.
- On a phone, a tap opens the pop-up under the map, where it is easy to read.
- A region with no pop-up and no link does nothing when clicked.
- Pop-ups can open on hover instead, under Style.
Add markers
Open Markers, type an address and click Add: Geloky finds the place and drops a pin. Latitude and longitude work too. Give each marker a name, a pop-up, a link, a colour and a shape. To add many at once, paste them, one a line: a name, then its latitude and longitude.
- Hundreds of addresses? Geocode the file with batch geocoding first, then paste the coordinates. With the free plan, the first 100 rows a day are free.
- Markers can be pins, dots or stars, each in its own colour.
- Head officeChicago, IL
- WarehouseDallas, TX
- WarehouseReno, NV
- WarehouseMemphis, TN
Choose the style, if you like
The map looks right as it comes, so everything under Style is optional. Change the colour of regions you haven’t coloured, of the region under the pointer, of the borders and of the background. Turn the labels, the legend and the zoom buttons on or off, and choose whether pop-ups open on a click or on hover. The USA and US county maps can show Guam, the U.S. Virgin Islands, American Samoa and the Northern Mariana Islands; the world map has buttons to zoom to each continent.
- The map takes the width of the box it sits in, and its height follows.
- Text on the map uses your page’s font.
Add it to your site
Click Download for usa-map.js: the map, its regions and your settings in one file of about 80 KB. Upload it to your website, then paste these two lines where the map goes:
<div id="usa-map"></div> <script src="usa-map.js"></script>
In WordPress, as an administrator: upload usa-map.js in Media, copy its address, and paste the two lines into a Custom HTML block, with that address in place of usa-map.js.
- Your site builder can’t hold files? Put usa-map.js on any web space you have, and use its full address.
- The map loads nothing else and calls no server, ours included, so it works offline and on an intranet.
- Two maps on one page? Each file draws its map in its own box: usa-map in one, world-map in the other.
Change it, or remove the link
The editor keeps your map in this browser: change it, download it again, and replace the file on your site. On another computer, click Open a map file and choose your usa-map.js: everything you set comes back.
To remove the “Map by Geloky” link, buy the map for one website: $49, or $99 for the world and US counties. Your order page opens the same editor, and every download from it comes without the link, with updates for 12 months.
- Made your map before buying? Open the editor from your order page and download it again: nothing else changes.
- The USA and world maps on all your websites, your clients’ included, cost $249; every map costs $499.
Set it up in code, if you prefer
Developers can skip the editor. The settings sit at the top of usa-map.js as JSON, and the README that comes with a licence’s plain map lists every one.
- Change the settings, save the file and reload the page.
- A click on a region can also call your own function, to filter a list on the page, for example:
gelokyMap.onClick = function (item) { … };
var gelokyMap = { "states": { "TX": { "color": "#2A6FC9", "popup": "6 stores.", "link": "/stores/texas" } }, "markers": [ { "name": "Head office", "lat": 41.8781, "lng": -87.6298 } ] };
No. Once it is on your site, it loads nothing from Geloky or anyone else, so it also works offline and on an intranet. Only the links you add go elsewhere.
Yes, on any website, commercial ones included, as long as the “Map by Geloky” link under the map stays visible.
One domain and its subdomains, such as example.com and shop.example.com, with their test copies. For more: the USA and world maps on all your websites, your clients’ included, for $249, or every map for $499.
About 80 KB for the USA map, and less once your server compresses it. Maps with more regions, such as the US counties, are bigger.
Yes. The map fits any width, a tap opens a region’s pop-up under the map, and the zoom buttons work with a finger.
Your map keeps working, without the link, for as long as you use it. Only new versions stop.
Your first 100 rows are free. Every day.
Free plan, no credit card · See your results on a map before you pay
USA
World
United Kingdom
Canada