GoogleMapsEditor 4.0.0.2
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
- 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 theGoogleMapsEditorDescriptor.UIHint
constant), or a local block property of typeGoogleMapsCoordinates
. Properties of typeGoogleMapsCoordinates
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.
.NET 6.0
- EPiServer.CMS.UI.Core (>= 12.10.0 && < 13.0.0)
- EPiServer.Framework (>= 12.8.0 && < 13.0.0)
.NET 7.0
- EPiServer.CMS.UI.Core (>= 12.10.0 && < 13.0.0)
- EPiServer.Framework (>= 12.8.0 && < 13.0.0)
.NET 8.0
- EPiServer.CMS.UI.Core (>= 12.10.0 && < 13.0.0)
- EPiServer.Framework (>= 12.8.0 && < 13.0.0)