GoogleMapsEditor 4.0.0.3

Google Maps Editor for Optimizely

Editor for selecting map coordinates using Google Maps in Optimizely. Released under the MIT license (http://opensource.org/licenses/MIT)

Prerequisites

  1. Valid API key for the Maps JavaScript API and the Places API

Make sure the API key is unrestricted, or enabled for localhost for local development.

Getting started

  1. Add the following to your ConfigureServices method in the Startup class: services.AddGoogleMapsEditor(googleMapsApiKey)

Note: You may specify additional settings, such as default coordinates and zoom level.

  1. Add a string property with [UIHint("GoogleMaps")] (or use the GoogleMapsEditorDescriptor.UIHint constant for the UI hint name), or a local block property of type GoogleMapsCoordinates, to a content type.

    Properties of type GoogleMapsCoordinates are more developer-friendly as they separate latitude and longitude and do not require a UIHint attribute, but they currently do not support culture-specific values.

    Example 1:

    public virtual GoogleMapsCoordinates MyCoordinates { get; set; }
    

    Example 2:

    [UIHint(GoogleMapsEditorDescriptor.UIHint)]
    public virtual string MyCoordinates { get; set; }
    

No packages depend on GoogleMapsEditor.

Fixed bug where change event would not trigger when clearing coordinates for local block properties.

.NET 6.0

.NET 7.0

.NET 8.0

Version Downloads Last updated
4.0.0.3 748 05/06/2024
4.0.0.2 15 05/06/2024
4.0.0 7,775 09/25/2023
2.0.0.20 3,804 02/10/2022