Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added telemetry
  • Loading branch information
thechriskent committed Feb 4, 2019
1 parent 1d73c3c commit 443633e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions column-samples/text-bing-map/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Displays a customizable Bing Map image for a given location in a Multi-Line of Text Field

## Summary
This template uses Bing Maps' [staticmap API](https://docs.microsoft.com/en-us/bingmaps) which generates an image using a parameterized URL. The template only uses the most basic features of map location and image size. To see all of the available option see the static map documentation: ([static map](https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-a-static-map)
This template uses Bing Maps' [staticmap API](https://docs.microsoft.com/en-us/bingmaps) which generates an image using a parameterized URL. The template only uses the most basic features of map location and image size. To see all of the available option see the static map documentation: ([static map](https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-a-static-map)


In this template we are just using the current field's value as the location, but you could easily make very advanced maps by combining multiple column values across your list item.
Expand All @@ -17,12 +17,12 @@ The text "insert your Bing Map API Key Here" in the template (the text after `&k

### Column Types

The values are expected to be addresses such as Tulsa, OK or Texas or 200 S Main St. Broken Arrow, OK 74012.
The values are expected to be addresses such as _Tulsa, OK_ or _Texas_ or _200 S Main St. Broken Arrow, OK 74012_.

This format will work with Choice, Single Line of Text and Multi Line of Text columns without any changes. To use Lookup columns, you'll need to change the 2 occurences of `$Address` to `$Address.lookupValue`.
This format will work with Choice, Single Line of Text and Multi Line of Text columns without any changes. To use Lookup columns, you'll need to change the 2 occurences of `[$Address]` to `[$Address.lookupValue]`.

## Apply Column Formatting to Multi-Line of Text Field
If your address is stored in a Multi-Line of Text field, there are a few extra clicks required to get to the column formatting settings. In your list, click the Gear --> List Settings. Find your column name in the list of columns and select it. Paste in the code in the Column Formatting Section at the bottom of the page.
If your address is stored in a Multi-Line of Text field, there are a few extra clicks required to get to the column formatting settings. In your list, click the Gear --> List Settings. Find your column name in the list of columns and select it. Paste in the code in the Column Formatting Section at the bottom of the page.

## View requirements
- This format can be applied to a text/choice field where the value is expected to be a location
Expand All @@ -42,4 +42,5 @@ Version|Date|Comments
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

---
---
<img src="https://telemetry.sharepointpnp.com/sp-dev-list-formatting/column-samples/text-bing-map" />

0 comments on commit 443633e

Please sign in to comment.