Markers API
advanced scriptingWorld Map Globe Edition · Scripting Support (C#)
WorldMapGlobe (namespace WPM). Access via WorldMapGlobe.instance.
Mount Points
Mount points are pre-defined points of interest stored in geodata files. Each mount point has a name, type, location, country/province association, and custom tags.
List<MountPoint> mountPoints { get; set; }List of all mount points.
string mountPointsAttributeFile { get; set; }Filename for mount point attributes data.
string[] GetMountPointNames()Returns all mount point names.
string[] GetMountPointNames(int countryIndex)Returns mount point names within a country.
string[] GetMountPointNames(int countryIndex, int provinceIndex)Returns mount point names within a province.
int GetMountPointIndex(int countryIndex, string mountPointName)Returns mount point index by name within a country.
bool GetMountPointIndex(Ray ray, out int mountPointIndex, int countryIndex = -1)Gets the mount point hit by a ray.
List<MountPoint> GetVisibleMountPoints()Returns mount points visible on screen.
void ToggleMountPointHighlight(int mountPointIndex, Color color, bool highlighted)Highlights or un-highlights a mount point.
void HideMountPointHighlights()Removes all mount point highlights.
void MountPointsDeleteFromSameContinent(string continentName)Deletes all mount points in a continent.
Cursor & Grid Lines
bool showCursor { get; set; }Show the crosshair cursor on the globe.
CURSOR_STYLE cursorStyle { get; set; }Cursor rendering style (legacy or lat/lon).
Color cursorColor { get; set; }Cursor line color.
bool cursorFollowMouse { get; set; }Cursor follows mouse position on the globe.
Vector3 cursorLocation { get; set; }Get or set the cursor position on the globe (sphere coordinates).
bool cursorAlwaysVisible { get; set; }Keep cursor visible even when the mouse is not over the globe.
bool showLatitudeLines { get; set; }Show latitude grid lines.
bool showLongitudeLines { get; set; }Show longitude grid lines.
bool showTropicLines { get; set; }Show tropic lines (Cancer, Capricorn, etc.).
Suggest an improvement
Help us improve this documentation page.