Skip to content

removeMouseCoordinates does not return a mapview class #88

@cysouw

Description

@cysouw

The function removeMouseCoordinates returns only part of the mapview object. Maybe better something like this?

removeMouseCoordinates = function(map) {
  if (inherits(map, "mapview")) leaf = map@map

  rc = leaf$jsHooks$render
  rc_lnlt = grepl("lnlt", rc) #lapply(rc, grepl, pattern = "lnlt")
  leaf$jsHooks$render = leaf$jsHooks$render[!rc_lnlt]

  map@map <- leaf
  return(map)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions