How to enable or disable Google GeoCoder

  • Updated

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:

  1. In your site root folder, edit objectFactory.config .
  2. 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" />
  3. The finished output for the content strategy should look like the following code:

  4. <add name="Content">
      <strategies>
        <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder" />
      </strategies>
    </add>
  5. Save objectFactory.config .

To disable:

  1. In your site root folder, edit objectFactory.config .
  2. Remove the following 2 keys (if they exist):

  3. <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.ContentStrategy, Cms.Extensions.GoogleGeoCoder" />
    <add name="GoogleGeoCoder" type="Cms.Extensions.GoogleGeoCoder.UserStrategy, Cms.Extensions.GoogleGeoCoder" />
  4. Save objectFactory.config .