Map Widget

Introduction

The information on this page is intended for developers familar with HTML and web development technologies.

It is possible to embed the National Broadband Map into other websites using a "Web Widget" (link opens in a new window.)   The smaller customised version can be included in other websites using the <iframe> HTML tag.   Examples of how to do this are below.

Simple Example

<iframe src="http://broadbandmap.govt.nz/minimap" width="600" height="400" border="0">
</iframe>

Advanced Example

<iframe src="http://broadbandmap.govt.nz/minimap/?q=Courtenay+Place+Wellington&categories=School&width=800&height=355" width="800" height="500" border="0">

</iframe>

URL Parameters

URL ParameterDescription
width
Width of the map (in pixels). Set same value in <iframe> inclusion.
Default: 500
height
Height of the map (in pixels). Set same value in <iframe> inclusion minus about 145px needed for the navigation and search bar.
Default: 300
lat
Latitude of the map center (do not use in combination with "keywords")
lng
Longitude of the map center (do not use in combination with "keywords")
zoom
Google Maps Zoom (0-18) (do not use in combination with "keywords")
keywords
Address information for geocoding (overwrites "lat", "lng" or "zoom")
hidesearchbar
Hide search panel and region dropdown (shows by default)
hideaccessiblelist
Hide the accessibility list (shows by default)
categories
Comma-separated titles of all demand categories.
Default: Show all categories
owneremail
Email address to an account on the map service, which limits markers to this owner

 

Disclaimer

Developers' and other users' attention is drawn to the terms of the disclaimer.