GithubHelp home page GithubHelp logo

rickbutterfield / our.umbraco.gmaps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arnoldv/our.umbraco.gmaps

0.0 0.0 0.0 34.12 MB

Basic Google Maps with autocomplete property editor for Umbraco 8

License: MIT License

JavaScript 25.21% HTML 42.47% C# 31.47% CSS 0.74% ASP.NET 0.11%

our.umbraco.gmaps's Introduction

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

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

Our.Umbraco.GMaps - CI Our.Umbraco.GMaps - Release

Package NuGet
Our.Umbraco.GMaps NuGet NuGet downloads
Our.Umbraco.GMaps.Core NuGet NuGet downloads

Features

  • Multi-targeting both Umbraco 8 and Umbraco 9
  • 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

Use NuGet to install Our.Umbraco.GMaps:

Install-Package Our.Umbraco.GMaps

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.

Build NuGet package

PM> nuget pack Our.Umbraco.GMaps.Core\Our.Umbraco.GMaps.Core.csproj -Build

Breaking Changes

  • Coordinates in the strongly typed models are now represented using the Location object with individual Latitude and Longitude properties.

Demo site Umbraco Backoffice Login Details

Username: [email protected]
Password: Password123

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!

our.umbraco.gmaps's People

Contributors

robertjf avatar ronaldbarendse avatar prjseal avatar tomvanenckevort avatar alanwthom avatar arnoldv avatar bjarnef avatar mistyn8 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.