Class: CUI.MapInput

Defined in: elements/Map/MapInput.coffee
Inherits: CUI.Input

Variables Summary

defaults =
{
  labels: {
    mapButtonTooltip: "Show map",
    iconButtonTooltip: "Show icon",
    placeholder: "Insert or paste coordinates",
    iconLabel: "Icon",
    colorLabel: "Color"
  },
  displayFormat: "ll",
  mapClass: CUI.LeafletMap,
  iconColors: ["#b8bfc4", "#80d76a", "#f95b53", "#ffaf0f", "#57a8ff"],
  icons: ["fa-map-marker", "fa-envelope", "fa-automobile", "fa-home", "fa-bicycle", "fa-graduation-cap"]
}
displayFormats =
{
  dms: "FFf",
  ddm: "Ff",
  dd: "f",
  ll: function(position) {
    return (position.lat.toFixed(5)) + ", " + (position.lng.toFixed(5));
  }
}

Variable inherited from CUI.Input

uniqueId changed_marker_css_class defaults

Class Method Summary

Instance Method Summary

Inherited Method Summary

Methods inherited from CUI.Input

#initOpts #readOpts #__checkInputRegexp #setSpellcheck #setPlaceholder #getPlaceholder #__createElement #__setCursor #getValueForStore #storeValue #handleSelectionChange #getElement #getUniqueIdForLabel #markBlock #remove #__focusShadowInput #__unfocusShadowInput #hasShadowFocus #setContentSize #__initContentSize #__setContentSize #checkBlocks #getInputBlocks #__getInputBlocks #__overwriteBlocks #getMarkedBlock #getSelection #setSelection #selectAll #updateSelection #setValue #incNumberBounds #__removeContentSize #__removeShadowInput #preventInvalidInput #__initShadowInput #__shadowInput #checkValue #render #getTemplateKeyForRender #isRequired #updateInputState #getInputState #leaveInput #enterInput #hasUserInput #checkInput #__checkInputInternal #setInputHint #setInvalidHint #setValidHint #displayValue #getValueForDisplay #getValueForInput #correctValueForInput #getDefaultValue #getValue #enable #disable #focus #getCursorBlocks #findBlock #initCursor #showCursor #checkSelectionChange #getRangeFromCursor #moveCursor #destroy #getGroup #isResizable #maximizeAddClasses #initTemplate #getTemplate #init #debug #reload #getNameOpt #registerLabel #getLabel #setForm #getFormDepth #setFormDepth #getFormPath #getForm #getOtherField #getRootForm #__initDisabled #isDisabled #isHidden #isShown #updateData #setData #setDataOnOthers #hide #show #isRendered #start #getAllDataFields #getDataFields #renderAsBlock #isDataField #callOnOthers #getData #hasData #hasUserData #getArrayFromOpt #getName #getInitValue #getLastValue #reset #undo #redo #goto #initData #initValue #setCheckChangedValue #getCheckChangedValue #getUndo #triggerDataChanged #isChanged #checkChanged #getChangedMarker .new #registerTemplate #getDOMElementClasses #registerDOMElement #getElementForLayer #unregisterDOMElement #__assertDOMElement #__assertTemplateElement #addClass #setAria #removeClass #hasClass #isDestroyed #empty #replace #append #prepend #text #get #getFlexHandle #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOptsFromAttr #proxy .getOptKeys

Class Method Details

. (void) getDefaultDisplayFormat()

Constructor Details

# (void) constructor(opts = {})

Instance Method Details

# (void) getTemplateKeyForRender()

# (void) initOpts()

# (void) readOpts()

# (void) initValue()

# (void) getTemplate()

# (void) getValueForDisplay()

# (void) getValueForInput()

# (void) __getPositionForDisplay()

# (void) getValueForStore(value)

# (void) render()

# (void) __openMapPopover(button)

# (void) __updateIconOptions()

# (void) __openIconPopover(button)

# (void) __buildIconPopoverContent()

# (void) __initMap()

# (void) __buildMap()

# (void) __getPosition()

# (void) __getFormattedPosition(position)

# (void) __checkInput(value)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: