Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.65 KB

README.nuget.md

File metadata and controls

70 lines (47 loc) · 2.65 KB

Our.Umbraco.GMaps - Google Maps for Umbraco 8+

Our.Umbraco.GMaps Logo

Basic Google Maps with autocomplete property editor for Umbraco 8+ including property value converter.

Change Log

  • 2.1.3: Better support for installation on Umbraco 11.
  • 2.1.0: Breaking change - MapConfig.Zoom is now an int as it should be (was a string).
  • 2.0.7: Added ability to re-center the map via Editor Actions and can now directly input a set of coordinates.

Features

  • Search for address using autocomplete and place marker
  • Enter coordinates in place marker
  • Click on exact location on map to place marker
  • Drag marker around
  • Set default location & zoomlevel on Data Type settings
  • Zoomlevel is saved on the property to use the same zoomlevel on your website
  • Centerpoint is saved on the property to use the same centerpoint on your website different than the marker.
  • MapType is saved on the property to use the same maptype on your website
  • Use your SnazzyMaps API key to set mapstyles

Install

Configuration

You can configure the API Key along with other settings directly in AppSettings as per below:

Umbraco 8

Add the following keys to your web.config AppSettings node:

 <!--Google Maps Configuration-->
 <add key="GoogleMaps:ApiKey" value="" /> <!-- Google Maps API Key -->
 <add key="GoogleMaps:DefaultLocation" value="" /> <!-- Coordinate pair in the format lat,lng -->
 <add key="GoogleMaps:DefaultZoom" value="17" /> <!-- Default Zoom Level for the Maps Property Editor. -->

Umbraco 9+

Add the following to your appsettings.json file or equivalent settings provider (Azure KeyVault, Environment, etc.):

  "GoogleMaps": {
    "ApiKey": "",
    "DefaultLocation": "",
    "ZoomLevel": 17
  }

These settings can be overridden by configuring the relevant properties of the Data Type prevalues.

Special thanks

Special thanks to ronaldbarendse for contributing to this project #h5yr!

Special thanks to prjseal for the Visual Studio project setup and included demo-site #h5yr!

Special thanks to robertjf for contributing to this project and setting up the Release Workflow #h5yr!

Google maps icons created by Freepik - FlaticonGoogle maps icons created by Freepik - Flaticon