This KB article shows how to enable or disable the Google GeoCoder.
You can add a map address to the content item in the Metadata tab. When you publish the content, the map address sends a request to Google to retrieve the latitude and longitude, which is used for the Map server control to display a map that flags locations of interest.
To enable:
- In your site root folder, edit
objectFactory.config
. - Include the following 2 lines:
<add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder" /> <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.UserStrategy, Cms.Extensions.GoogleGeoCoder" />
-
The finished output for the content strategy should look like the following code:
-
<add name="Content"> <strategies> <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder" /> </strategies> </add>
- Save objectFactory.config .
To disable:
- In your site root folder, edit
objectFactory.config
. - Remove the following 2 keys (if they exist):
-
<add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder" /> <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.UserStrategy, Cms.Extensions.GoogleGeoCoder" />
- Save
objectFactory.config
.
Please sign in to leave a comment.