Display a tiled, non-georeferenced image

The MapTiler’s SDK ImageViewer 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) to learn how to upload your image to your MapTiler account.

Image: 1932 Japanese pictorial world map game board - World Adventure

NPM module setup


npm install --save @maptiler/sdk
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!');
});

Learn more

Visit the ImageViewer API reference For full details on supported options, methods, etc.

Add markers to a non-georeferenced image

Markers in a non-georeferenced image

Examples

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

Show raster image on the map

Raster layer

Tutorials

Add a raster image overlay to the map.

How to display your custom map on the web page.

Custom map

Tutorials

Display your customized MapTiler map on any web page.

Was this helpful?