API Docs for:
Show:

map.MapOverlay Class

This class implements the map pop-out overlay view that lets the user place a piece on the map.
It inherits from misc.BaseOverlay. It calls the "cancelMove" function on the controller it belongs to.

Constructor

map.MapOverlay

()

Item Index

Methods

closeModal

()

Closes the overlay.

showModal

(
  • type
)

Shows a modal overlay of the map.

Parameters:

  • type String

    the type of the item to place: "Robber", "Soldier", "City", "Settlement", "Road".