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
- 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 theStartup
class:services.AddGoogleMapsEditor(googleMapsApiKey)
Note: You may specify additional settings, such as default coordinates and zoom level.
Add a
string
property with[UIHint("GoogleMaps")]
(or use theGoogleMapsEditorDescriptor.UIHint
constant for the UI hint name), or a local block property of typeGoogleMapsCoordinates
, to a content type.Properties of type
GoogleMapsCoordinates
are more developer-friendly as they separate latitude and longitude and do not require aUIHint
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.
.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)