Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.24 KB

readme.md

File metadata and controls

62 lines (44 loc) · 1.24 KB

GoogleMap

Google map control with support for showing specific address or location (longitude / latitude) and configuratable map zoom.

If you need any feature which is not currently supported, then please create an issue.

Setup

It`s nessesary to provide your Google API key.
Api key can be obtained using this tutorial.

DotvvmStartup.cs => Configure

config.AddContribGoogleMapConfiguration(@"GOOGLE API KEY");

Samples

Sample 1: Address

Showing specific address

Hardcoded

<dc:GoogleMap Address="Chicken Dinner Rd Idaho 83607, USA" />

Binding

<dc:GoogleMap Address="{value: Address}" />

Sample 2: Longitude / Latitude

Showing specific location

Hardcoded

<dc:GoogleMap Longitude="-116.7723588" Latitude="43.5766682"/>

Binding

<dc:GoogleMap Longitude="{value: Longitude}" Latitude="{value: Latitude}"/>

Sample 3: Zoom

Showing specific location

Hardcoded

<dc:GoogleMap Address="Chicken Dinner Rd Idaho 83607, USA" MapZoom="20"/>

Binding

<dc:GoogleMap Address="Chicken Dinner Rd Idaho 83607, USA" MapZoom="{value: Zoom}"/>