Hot answers tagged

9

Leaftlet is an open-source JavaScript Library for interactive mobile friendly maps. It only takes a few minutes to put your CiviCRM Contacts on a Leaflet Map if you're using Drupal. Here are some of my slides from my CiviCON 2016 lightning talk: EDIT: Some additional notes based on comments below and some questions emailed to me: To get started with CiviCRM ...


4

You need to enable Mapping and Geocoding from civicrm/admin/setting/mapping?reset=1 Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information. Save the form and you should be able to see latitude and longitude based on your contact's address. Note that it displays when you ...


2

Welcome to Stackexchange. Take a look at the docs about geocoding and mapping. If you're using Google then you need an API key for geo coding requests. To get Google API key you can find information here. Once you have api key navigate CiviCRM >> Administer >> System Settings >> Mapping and Geocoding and set the API key there. After enabling the ...


2

Just to note that this stopped working around CIVICRM 4.7.19. You need to apply the patch to Drupal IP_geoloc module here: https://www.drupal.org/node/2861393


2

I have also seen this problem, and fixed it. It's nothing to do with CiviCRM at all - it's a recent change made by Google regarding their API and your authorisation to use it. Existing users seem to be OK, but new users (ie. one of my clients) or maybe even new maps seem to be affected. You should review your authorisation to use the Google API for your ...


2

As Graham has noted in a comment, the change in map reflects a change in terms of use and distribution methods in July 2016 that necessitated the removal of direct links to MapQuest tiles. MapQuest Issue - Direct Tile Access No Longer Supported? mapquest direct tile access discontinued (SO) The plain map you are seeing is the Carto Light basemap from ...


2

My bad. I had restricted the key based on IP address which works for server requests to Geocode, but not for JS (browser) requests to map. Changed the restriction to referrer and maps now display correctly.


1

I think you should find the instructions at How to Map Contacts? helpful particularly the link to another Answer by Karin to this great answer How to put your CiviCRM Contacts on a Leafleft Map in 5min? which we have used and concur it gives us Maps with civi contacts


1

It is not really possible within CiviCRM. However if you are on Drupal you could create a view and put that view on a map with your own layer.


1

You can get Event location fields in to a View (assuming this is an Event based view) but you then need a mapping solution and whereas in the past I would have recommended Open Layers there has been some disruption to that as a solution with the loss of access to certain map layer providers.


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", ...


Only top voted, non community-wiki answers of a minimum length are eligible