spinner
x
This website is using cookies, in order to track this cookie warning and other popups, for managing login sessions, and for website analytics. We do not collect or store personally identifiable information, nor track or display advertising related information. That's Fine

Custom Map Markers API

So you want to have a bunch of custom map markers on the interactive galaxy map? Perhaps locations of your squadron's fleet carriers? Or notable places of interest? Look no further! We've got you covered. We currently offer two methods of getting your custom marker pins into the galmap. Both will require crafting a custom JSON that contains your markers.


Method #1: Internet-Hosted JSON Data

This method requires web hosting in which you can enable CORS (Cross-Origin Resource Sharing), such that "edastro.com" is a valid website permitted to access your file from a Javascript program. Or you can use a site that already has open permissions (GitHub's "raw" user content, for instance).

Known to work:

It's as simple as calling up the map, and providing it with a URL to a file containing JSON data for your markers. Instead of calling the normal URL:

You will add a parameter with the URL to your JSON data:

Alternatively, if you wish to include multiple custom JSON sets, you can specify them with a semicolon separator, thusly:


Method #2: Server Fetched JSON Data

Nearly the same as the above method, however the server will pre-fetch your JSON data before loading the map into your browser screen. This method is more reliable, but is slower to load. The URL format is as follows:

Alternatively, if you wish to include multiple custom JSON sets, you can specify them with a semicolon separator, thusly:


JSON Data Format:

The data in the referenced file(s) must be JSON, in this format:

{
   "markers" : [
      {
         "pin" : "green",
         "text" : "This is a sample marker!\nIt spans two lines of text.",
         "x" : -104.625,
         "y" : -0.8125,
         "z" : -151.906
      },
      {
         "pin" : "carrier",
         "text" : "This is a sample marker too!",
         "x" : -247.812,
         "y" : -43.8438,
         "z" : 64.0312
      }
   ]
}
	

In the above data, you will notice that the JSON contains a single array called "markers". Within this array, each element will contain a "pin" designation, the mouse-over text to display, and coordinates. These coordinates are actual galaxy locations from in-game. The coordinate numbers may be in either string or numeric context.

Available marker pins, image and its associated name to use in the JSON:

   =   blue
   =   green
   =   cyan
   =   red
   =   purple
   =   orange, default
   =   yellow
   =   white
   =   outpost
   =   orbis
   =   ocellus
   =   coriolis
   =   planetarybase
   =   asteroidbase
   =   megaship
   =   not
   =   bluecarrier, carrierblue
   =   carrier, greencarrier, carriergreen
   =   cyancarrier, carriercyan
   =   redcarrier, carrierred
   =   magentacarrier, carriermagenta
   =   orangecarrier, carrierorange
   =   yellowcarrier, carrieryellow
   =   whitecarrier, carrierwhite

This website is not an official tool for the game Elite: Dangerous and is not affiliated with Frontier Developments. All information provided is based on publicly available information and data supplied by players, and may not be entirely accurate. 'Elite', the Elite logo, the Elite: Dangerous logo, 'Frontier' and the Frontier logo are registered trademarks of Frontier Developments plc. All rights reserved. All other trademarks and copyrights are acknowledged as the property of their respective owners.

Special thanks go to all commanders and explorers who graciously upload their data to EDDN, EDSM, and EDAstro to make all of this possible. We wouldn't exist without your data contributions. For any bug reports or feature suggestions, please visit our forum thread.