Label yo shit.

View previous topic View next topic Go down

Label yo shit.

Post  HeyLookoverthere on Wed Jun 20, 2012 2:13 pm

Dynmap supports mechanisms for adding content to maps, above what is rendered by the maps. This content is collectively referred to as Markers, and consist of markers (marker icons), marker areas, and marker poly-lines.

Markers are the most common map markers - simple icons with an associated label and/or an associated description popup. Each marker has a defined location in world coordinates (X, Y, Z and a world ID), a marker icon ID, a label, and an optional description. The marker icon ID can be one of the standard marker IDs (shown at the bottom of this page), or can correspond to an installed icon (see Marker Icons section, below).

Markers can be added one of a couple of ways:

/dmarker add <marker-label> icon:<icon-id> set:<markerset-id> - this must be issued by a logged-in player, and will cause a marker to be defined at the player's current location. If set is not provided, the marker will be created in the default marker set, Markers. If icon is not defined, the default marker icon is used (default, a house).

/dmarker add id:<marker-id> <marker-label> icon:<icon-id< set:<markerset-id> - Same as above, except that the unique ID of the marker is specified.

Marker Sets

Markers are collected and organized as collections, referred to as Marker Sets. Each Marker Set is a labelled layer, selectable using the web UIs layer selector. Every marker is contained within a specific marker set. By default, there is always at least one marker set, labelled Markers, that will be used to contain any markers that are not specifically assigned to another marker set. Deleting a marker set will delete all markers within the set.

New marker sets can be created using the /dmarker addset <markerset-label> or /dmarker addset id:<markerset-id> commands.


Available icons:



Complete command list:
/dmarker add <label> icon:<icon> set:<set-id> : adds a new marker at the player's current location, with a given label and optional icon and optional marker set
/dmarker add id:<id> <label> icon:<icon> set:<set-id> : adds a new marker at the player's current location, with the given ID, the given label and optional icon and optional marker set
/dmarker movehere <label> : updates the location of the first marker matching the given label to match the current player's position
/dmarker movehere id:<id> : updates the location of the marker with the given ID to match the current player's position
/dmarker update <label> icon:<newicon> newlabel:<newlabel> : updates the icon and/or label of the first marker matching the given label
/dmarker update id:<id> icon:<newicon> newlabel:<newlabel> : updates the icon and/or label of the marker with the given ID
/dmarker delete <label> : deletes the first marker matching the given label
/dmarker delete id:<id> : deletes the marker with the given ID
/dmarker list : lists the attributes of all the defined markers in the default marker set
/dmarker list set:<set-id> : lists the attributes of all the defined markers in the given marker set
/dmarker icons : lists the attributes of all the icons defined for use by markers
/dmarker addset <label> hide:<hide-by-def> prio:<priority> : add new marker set with given label (ID = label)
/dmarker addset id:<id> <label> hide:<hide-by-def> prio:<priority> : add new marker set with given ID and label
/dmarker updateset <label> newlabel:<new-label> hide:<hide-by-def> prio:<priority> : update marker set with given label (ID = label)
/dmarker updateset id:<id> newlabel:<new-label> hide:<hide-by-def> prio:<priority> : update marker set with given ID
/dmarker deleteset <label> : delete marker set with given label
/dmarker deleteset id:<id> : delete marker set with given ID
/dmarker listsets : list all markers
/dmarker addicon id:<id> <label> file:"filename" : Install new icon, with given ID and label, and using given file (path is handled relative to MC server directory, and file contents are copied).
/dmarker updateicon id:<id> newlabel:<label> file:"filename" : Update icon, replacing existing settings with provided new values.
/dmarker deleteicon id:<id> : delete icon with given ID
/dmarker addcorner : add corner to corner list using current location
/dmarker addcorner <x> <z> <world> : add corner with given x and z coordinate on given world to corner list
/dmarker clearcorners : clear corner list
/dmarker addarea <label> : add new area with given label using corner list
/dmarker addarea id:<id> <label> : add new area with given ID using corner list
/dmarker deletearea <label> : delete area with given label
/dmarker deletearea id:<id> <label> : delete area with given ID
/dmarker listareas : list details of all areas
/dmarker updatearea <label> <arg>:<value> ... : update attributes of area with given label
/dmarker updatearea id:<id> <arg>:<value> ... : update attributes of area with given ID
/dmarker addline <label> : add new line with given label using corner list
/dmarker addline id:<id> <label> : add new line with given ID using corner list
/dmarker deleteline <label> : delete line with given label
/dmarker deleteline id:<id> <label> : delete line with given ID
/dmarker listlines : list details of all lines
/dmarker updateline <label> <arg>:<value> ... : update attributes of line with given label
/dmarker updateline id:<id> <arg>:<value> ... : update attributes of line with given ID

More info: https://github.com/webbukkit/dynmap/wiki/Using-markers

HeyLookoverthere

Posts : 922
Join date : 2011-05-01

View user profile

Back to top Go down

Re: Label yo shit.

Post  FSCarver on Fri Jun 22, 2012 2:23 pm

Mods dont have perms to add markers

FSCarver

Posts : 867
Join date : 2011-08-22
Age : 25

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum