-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can convert Address fields from Mapbox plugin
- Loading branch information
1 parent
f123fe1
commit 6415af3
Showing
6 changed files
with
145 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
description: If migrating from the Mapbox plugin, it's very simple to import all of your existing Address data into the Google Maps plugin. | ||
meta: | ||
- property: og:type | ||
content: website | ||
- property: og:url | ||
content: https://plugins.doublesecretagency.com/google-maps/guides/converting-from-mapbox/ | ||
- property: og:title | ||
content: Converting from Mapbox | Google Maps plugin for Craft CMS | ||
- property: og:description | ||
content: If migrating from the Mapbox plugin, it's very simple to import all of your existing Address data into the Google Maps plugin. | ||
- property: og:image | ||
content: https://plugins.doublesecretagency.com/google-maps/images/guides/switch-field-type.png | ||
- property: twitter:card | ||
content: summary_large_image | ||
- property: twitter:url | ||
content: https://plugins.doublesecretagency.com/google-maps/guides/converting-from-mapbox/ | ||
- property: twitter:title | ||
content: Converting from Mapbox | Google Maps plugin for Craft CMS | ||
- property: twitter:description | ||
content: If migrating from the Mapbox plugin, it's very simple to import all of your existing Address data into the Google Maps plugin. | ||
- property: twitter:image | ||
content: https://plugins.doublesecretagency.com/google-maps/images/guides/switch-field-type.png | ||
--- | ||
|
||
# Converting from Mapbox | ||
|
||
## Importing Address Data | ||
|
||
Converting from an "Address (Mapbox)" field to an "Address (Google Maps)" field is relatively straightforward... simply **switch the field type** on the field's settings page. | ||
|
||
<img class="dropshadow" :src="$withBase('/images/guides/switch-field-type.png')" alt="Screenshot of field type select being switched to Address (Google Maps)" width="233" style="margin-left:20px; margin-bottom:4px;"> | ||
|
||
:::warning Ignorable Warning ⚠️ | ||
You might be warned that these two field types are not compatible, but they actually are! | ||
|
||
It is safe to ignore the warning about field type compatibility. | ||
::: | ||
|
||
Once you have saved the field as an "Address (Google Maps)" field, all data associated with that field will automatically be imported into the Google Maps plugin. | ||
|
||
### One Field at a Time | ||
|
||
When you update a single field, only the data for that specific field will be converted. Each Address field will need to be updated individually. | ||
|
||
:::tip Field Configuration Not Included | ||
The field's **settings** will not be ported, only the field's existing **data** will be transferred over. | ||
|
||
You may still want to configure the Google Maps field to your liking, it will not automatically reflect how you had it configured with Mapbox. | ||
::: | ||
|
||
### Deploying to Production | ||
|
||
When deploying to a production environment, you'll most likely be using [Project Config](https://craftcms.com/docs/4.x/project-config.html) to keep all of your configuration settings in sync. Don't worry, there will be little (or no) action required on your part. | ||
|
||
All relevant Address data will be converted **once your Project Config changes are applied**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters