GTA 6
GTA 6 map for your site
Show the GTA 6 map in your guide, wiki or app. It always loads from our servers, so every improvement we make reaches your map by itself.
- Embedded in a minute
- Always up to date
- Your markers and layers
1
Embed the map
No sign-up and no coding. Move the map to the view you want, tap it to add your own pins, accept the terms and copy the code.
Your pins
Tap the map to add a pin.
Up to 50 pins, labels up to 80 characters.
Accept the terms of use to get the code.
2
Eggflag Maps API
For guides, trackers and apps that need more than an embed: your own markers with colours and popups, zones and routes as GeoJSON, clicks sent back to your page, light or dark map. One script tag and a key for your site.
The map didn’t load. The code below still works: it shows the whole map.
Quick start
<div id="map" style="height:480px"></div>
<script src="https://eggflag.com/sdk/maps/v1.js"></script>
<script>
const map = new Eggflag.Map('#map', {
key: 'efk_…',
game: 'gta-6',
lang: 'en',
});
map.addMarker({ x: -6924, y: 255, label: 'Capri', color: '#e5484d', text: '1' });
map.addMarker({ x: -7534, y: 4998, label: 'Draper Island', color: '#3e63dd', text: '2' });
map.addMarker({ x: -5621, y: 6875, label: 'Grayson', color: '#30a46c', text: '3' });
map.addLayer({
id: 'zone',
data: { type: 'Polygon', coordinates: [[[-6684, 255], [-6692, 317], [-6716, 375], …]] },
style: { fill: '#e5484d', fillOpacity: 0.18 },
});
map.addLayer({
id: 'route',
data: { type: 'LineString', coordinates: [[-6924, 255], [-7534, 4998], [-5621, 6875]] },
style: { line: '#3e63dd', lineWidth: 3, dashed: true },
});
map.fitBounds();
map.on('click', (e) => console.log(e.x, e.y));
</script>Coordinates are in-game metres: x to the east, y to the north, the same as in our embed links. A click on the map gives you its coordinates.
Reference
new Eggflag.Map(el, { key, game, lang, center, zoom, theme })- Creates the map inside your element. key and game are required; lang, center, zoom and theme are optional.
map.addMarker({ x, y, label, color, text, popup, id })- Adds a marker. color is #rrggbb, text is up to 3 characters on the marker, popup opens on tap. addMarkers takes a list.
map.addLayer({ id, data, style })- Adds GeoJSON in in-game metres: zones, routes and points, with fill, line and circle styles.
map.setView({ x, y, zoom }) · map.fitBounds(points?)- Moves the map, or fits the given points (all markers when none are given).
map.on('click' | 'markerclick' | 'layerclick' | 'moveend', fn)- Clicks on the map, markers and layers, and the end of every move, with in-game coordinates.
map.setTheme('light' | 'dark')- Switches between the light and the dark map.
removeMarker(id) · clearMarkers() · removeLayer(id) · destroy()- Removes markers and layers, or the whole map.
Up to 1000 markers, 20 layers and 5000 features per layer. Labels and popups are shown as plain text.
Get a key
One key per site. It works on your address and its www version, and on localhost while you develop.
Save it now: we show it once. A new request from the same e-mail replaces it.
Your old key for this site has stopped working.
Rules of use
- Allowed: showing the map on any site, guide, wiki, stream or app, only through our embed code or the Eggflag Maps API.
- Prohibited: downloading, saving, scraping, copying, re-hosting or selling the map, its tiles or files, tracing or redrawing it, or using it to make another map or dataset.
- Prohibited: loading the map or its files in any other way, and hiding, covering or changing the map frame or anything shown in it beyond what our embed and the Maps API offer.
- If these rules are broken, we switch off the key or the embed.
Map updates
Each change reaches every embedded map. Nothing to update on your side.
- The map can now be shown on other sites: embed it in a minute or use it with a map key.
- The whole of Leonida as a vector map in the colours of the in-game map: coast, shallows, roads, parks, beaches and buildings.