
- #My map editor by google install#
- #My map editor by google code#
Most problems are due to invalid API keys.
#My map editor by google code#
Add initialization code to your Startup class.Change any references to namespace .* to GoogleMapsEditor.Remove the associated folder under modules\_protected\.Next, let's edit the title and description. The buttons to Save or Publish your styles changes are at the top right of the screen, and are disabled while the Version History pane is open. Remove previous NuGet package called "" You can go to each one, hit the pencil icon, and add text or hit the camera icon and add images or videos to your map. To view all versions of any single style: Go to the Map Styles page.
Note that you probably want to set AvailableInEditMode = false on your custom block type.
Create a custom editor descriptor inheriting GoogleMapsEditorDescriptor and add an attribute targeting your custom block type. Add the Longitude and Latitude properties and add attributes to them. Create a block type implementing IGoogleMapsCoordinates. Culture-specific coordinatesįor culture-specific coordinates, you either need to add a attribute to a string property, or create your own block type: Add a point to your new map: Click on the marker icon (the cursor will change from a hand to crosshairs) Click anywhere on the map. However, note that the built-in GoogleMapsCoordinates type is not culture-specific. To open up the My Maps editor you can either: go to Google Maps, choose ‘My Maps’ from the menu, and then click ‘Create Map’ or go to your Google Drive account and choose ‘New > More > Google My Maps’. You may find it easier to work with GoogleMapsCoordinates properties, as that separates longitude and latitude coordinates without having to do any string parsing. You may supply additional parameters to set default zoom level and coordinates: services.AddGoogleMapsEditor(ĭefaultLongitude: 18.03014159202576) Adding propertiesĬoordinate properties may be of type string or GoogleMapsCoordinates, or a custom type implementing IGoogleMapsCoordinates.įor string properties, add a UIHint set to "GoogleMaps" (or use the GoogleMapsEditorDescriptor.UIHint constant): Add the following to your ConfigureServices() method in the Startup class: services.AddGoogleMapsEditor("your API key") #My map editor by google install#
Install the GoogleMapsEditorNuGet package from the Optimizely feed.Ģ. API key must be unrestricted, or enabled for e.g.Billing must be enabled in the Google console.Valid API key for the Maps JavaScript API and the Places API.