Can you host map tiles as a part of SPA?

Viewed 28

I am creating a React website with an extremely basic interactive map. I don't want to setup a self-hosted tileserver and I would like to avoid using free-tier API calls to mapping services.

The map will not need to be detailed at all:

  • highways + city names only
  • lower res
  • US states only
  • fewer zoom levels

Would it be possible to have the map hosted as a part of the React SPA?

I am not sure what the file size would be for map tile but I'd imagine it wouldn't be anywhere near the size of full tile maps. Would it still be too big?

If the maptile is within a reasonable size to be served alongside your website, is this approach implementable via Leaflet, MapLibre, etc?

0 Answers
Related