Disable the Map button #8010

Closed
opened 2025-12-29 20:31:06 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (May 5, 2023).

Originally assigned to: @abhi1693 on GitHub.

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

Originally created by @candlerb on GitHub (May 5, 2023). Originally assigned to: @abhi1693 on GitHub. ### 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
adam added the status: acceptedtype: feature labels 2025-12-29 20:31:06 +01:00
adam closed this issue 2025-12-29 20:31:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8010