Skip to content

Disable the Map button #12498

@candlerb

Description

@candlerb

NetBox version

v3.4.10

Feature type

Change to existing functionality

Proposed functionality

I would like to be able to disable the "Map" button which is auto-generated on the physical address and GPS fields, for example by setting MAPS_URL=None (or empty string or false) - or if that doesn't work with inheritance of ConfigParam values, then to some sentinel value.

This would be a small change to netbox/templates/dcim/site.html in two places: e.g.

              {% if object.physical_address %}

becomes something like

              {% if object.physical_address and config.MAPS_URL %}

Use case

See #12399: you may want to make a Custom Link which gives a better map reference (by combining multiple fields).

(Making the physical and GPS map links fully templatable, like Custom Links are, would be nice for this use case, but I'm just putting the simplest case of disabling the map button)

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions