Answers.Body: <p>CiviCRM OpenStreet Maps function is pointing to map tiles that are no longer available.   </p>
  
  <p>See: <a href="https://stackoverflow.com/questions/38315300/mapquest-direct-tile-access-discontinued">https://stackoverflow.com/questions/38315300/mapquest-direct-tile-access-discontinued</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-25T20:23:21.907Z
Answers.LastActivityDate: 2016-08-25T20:23:21.907Z
Answers.LastEditDate: 2017-05-23T12:38:59.763Z
Answers.UserDisplayName: Kimball
Answers.Body: <p>You can use OpenStreetMap tiles if you replace the tile pointer in this file:</p>
  
  <pre><code>.../templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl
  </code></pre>
  
  <p>Change this...</p>
  
  <pre><code>    map.addLayer(new OpenLayers.Layer.OSM("MapQuest OSM", [
          "https://otile1-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile2-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile3-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile4-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
      ], {
          attribution: "&lt;p&gt;Tiles Courtesy of &lt;a href='http://www.mapquest.com/' target='_blank'&gt;MapQuest&lt;/a&gt;. Data &amp;copy; &lt;a href='http://www.openstreetmap.org/' target='_blank'&gt;OpenStreetMap&lt;/a&gt; contributors.&lt;/p&gt;"
      })); 
  </code></pre>
  
  <p>To this ...</p>
  
  <pre><code>    map.addLayer(new OpenLayers.Layer.OSM("openstreetmap", [
          "https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
          "https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
          "https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
      ], {
          attribution: "&lt;p&gt;Map Courtesy of &lt;a href='http://www.openstreetmap.org/' target='_blank'&gt;OpenStreetMap&lt;/a&gt;&lt;/p&gt;"
      }));
  </code></pre>
  
  <p>You do want to use https!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-25T20:44:04.637Z
Answers.LastActivityDate: 2016-10-01T06:50:44.550Z
Answers.LastEditDate: 2016-10-01T06:50:44.550Z
Answers.UserDisplayName: Kimball
Body: <p>When I use the map link within a contact details to get a map view of their address, the mapping starts to load but the map image tiles all display the following message:  <br/> <br/>"as of July 11 2016, direct tile access has been discontinued. etc. etc.".  <br/><br/>So I went to the MapQuest site, created a free account, got an API key but don't seem to be able to insert it anywhere in civicrm? <br/> <br/>FYI, I'm using openStreet Maps as the provider and Google for Geocoding, therefore no APIkey required (right?). <br/> <br/>Should I be able to enter the API key from MapQuest in somewhere?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-17T07:14:44.800Z
Comments.Text: Update - I switched to Google and grabbed an API and it works fine.  Note that there still seems to eb an  issue with the MapQuest though.
Comments.UserDisplayName: jkobier
Tags: <map>
Title: MapQuest Issue - Direct Tile Access No Longer Supported?
ThreadText: # MapQuest Issue - Direct Tile Access No Longer Supported?
  
  (Asked by: username_0 on 2016-08-17)
  
  When I use the map link within a contact details to get a map view of their address, the mapping starts to load but the map image tiles all display the following message:   
     
  "as of July 11 2016, direct tile access has been discontinued. etc. etc.".   
    
  So I went to the MapQuest site, created a free account, got an API key but don't seem to be able to insert it anywhere in civicrm?   
     
  FYI, I'm using openStreet Maps as the provider and Google for Geocoding, therefore no APIkey required (right?).   
     
  Should I be able to enter the API key from MapQuest in somewhere?
  
  **Tags:** map
  
  > **Comments:**
  > **username_0**: Update - I switched to Google and grabbed an API and it works fine.  Note that there still seems to eb an  issue with the MapQuest though.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-08-25. Score: 0 | Accepted answer
  
  CiviCRM OpenStreet Maps function is pointing to map tiles that are no longer available.
  
  See: <https://stackoverflow.com/questions/38315300/mapquest-direct-tile-access-discontinued>
  
  
  ---
  
  ### Answer by username_1 on 2016-08-25. Score: 1
  
  You can use OpenStreetMap tiles if you replace the tile pointer in this file:
  
  ```
  .../templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl
  
  ```
  
  Change this...
  
  ```
      map.addLayer(new OpenLayers.Layer.OSM("MapQuest OSM", [
          "https://otile1-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile2-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile3-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
          "https://otile4-s.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
      ], {
          attribution: "<p>Tiles Courtesy of <a href='http://www.mapquest.com/' target='_blank'>MapQuest</a>. Data &copy; <a href='http://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a> contributors.</p>"
      })); 
  
  ```
  
  To this ...
  
  ```
      map.addLayer(new OpenLayers.Layer.OSM("openstreetmap", [
          "https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
          "https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
          "https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
      ], {
          attribution: "<p>Map Courtesy of <a href='http://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a></p>"
      }));
  
  ```
  
  You do want to use https!
  
  
  ---
  
  