GoogleMapsEditor 4.0.0

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

  • 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.

  • Add a string property with UIHint set to "GoogleMaps" (or use the GoogleMapsEditorDescriptor.UIHint constant), or a local block property of type GoogleMapsCoordinates. Properties of type GoogleMapsCoordinates are more developer-friendly as they separate latitude and longitude and do not require a UIHint, 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.

Improvements to features, performance, compatibility, and/or stability.

.NET 6.0

.NET 7.0

Version Downloads Last updated
4.0.0.3 748 05/06/2024
4.0.0.2 16 05/06/2024
4.0.0 7,775 09/25/2023