NEW Geloky now works inside Claude, ChatGPT and Cursor. See how Geloky inside Claude & ChatGPT →
  1. Help
  2. 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

1

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.
2

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.
States and numbers
California	7
Texas	6
New York	5
Florida	4
Illinois	3
Shades
345
Stores12–34–56 or more
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.
Texas6 stores. See their addresses and opening hours.Find a store in Texas →
A click on this state
Opens the pop-upOpens the link
4

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
5

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.
State codes
Legend
U.S. territories
A state under the pointer#26225C
6

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.
usa-map.jsAbout 80 KB · the map, its states and your settings
Download usa-map.js
7

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.
Your orderUSA map · One websiteUpdates for 12 monthsOpen the editor
8

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 }
  ]
};

FAQ

Common questions

Still stuck? Write to hello@geloky.com — a person answers within a day.

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.

Your first 100 rows are free. Every day.

Free plan, no credit card · See your results on a map before you pay