---
title: "Display a tiled, non-georeferenced image | JavaScript maps SDK"
description: "Display a zoomable non-georeferenced, geographically "
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Display a tiled, non-georeferenced image

The MapTiler’s SDK [`ImageViewer`](https://docs.maptiler.com/sdk-js/api/image-viewer/) allows you to display tiled, non-georeferenced images while interacting with them similarly to how you would navigate a regular map. This functionality works well for zoomable non-georeferenced, geographically “inaccurate” maps such as hotel maps, golf courses, theme parks etc. Think in pixels instead of lattitudes and longtidues.

Check out the guide [How to convert large images into zoomable tiles (no map)](https://docs.maptiler.com/guides/map-tiling-hosting/data-processing/raster-profile-convert-your-images-into-zoomable-raster-tiles/) to learn how to upload your image to your MapTiler account.

Image: [1932 Japanese pictorial world map game board - World Adventure](https://commons.wikimedia.org/wiki/File:1932_Japanese_pictorial_world_map_game_board.jpg)

### NPM module setup

```bash
npm install --save @maptiler/sdk
```

#### main.js

```js
import { config, ImageViewer } from '@maptiler/sdk';
import '@maptiler/sdk/dist/maptiler-sdk.css';

config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
const imageViewer = new ImageViewer({
  container: 'map',
  imageUUID: 'YOUR_MAPTILER_TILESET_ID_HERE',
});

imageViewer.on('imageviewerready', () => {
  console.log('Image ready!');
});
```

#### index.html

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="robots" content="noindex">
  <title>Display a tiled, non-georeferenced image | NPM example</title>
  <link rel="stylesheet" href="./style.css">
</head>
<body>
  <div id="map"></div>
  <script type="module" src="./main.js"></script>
</body>
</html>
```

#### style.css

```css
body {margin: 0; padding: 0;}
#map {position: absolute; top: 0; bottom: 0; width: 100%;}
```

### Basic JavaScript setup

```html
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ImageViewer</title>
  <script src="https://cdn.maptiler.com/maptiler-sdk-js/v4.2.0/maptiler-sdk.umd.min.js"></script>
  <link href="https://cdn.maptiler.com/maptiler-sdk-js/v4.2.0/maptiler-sdk.css" rel="stylesheet" />
  <style>
    body {
      margin: 0;
      padding: 0;
    }

    #map {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100%;
    }
  </style>
</head>

<body>
  <div id="map"></div>
  <script>
    maptilersdk.config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
    const imageViewer = new maptilersdk.ImageViewer({
      container: 'map',
      imageUUID: 'YOUR_MAPTILER_TILESET_ID_HERE',
    });

    imageViewer.on('imageviewerready', () => {
      console.log('Image ready!');
    });
  </script>
</body>

</html>
```

## Learn more

Visit the [ImageViewer API reference](https://docs.maptiler.com/sdk-js/api/image-viewer/) For full details on supported options, methods, etc.

## Related examples

### [Markers in a non-georeferenced image](https://docs.maptiler.com/sdk-js/examples/image-viewer-marker/)

Examples

Add markers to a zoomable non-georeferenced, geographically "inaccurate" maps.

### [Raster layer](https://docs.maptiler.com/sdk-js/examples/raster-layer/)

Tutorials

Add a raster image overlay to the map.

### [Custom map](https://docs.maptiler.com/sdk-js/examples/custom-map/)

Tutorials

Display your customized MapTiler map on any web page.
