Map Links for none supported countries (like spain)
nahuelsgk - March 16, 2009 - 16:00
| Project: | Location |
| Version: | 6.x-3.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi everyone. I've searching for a week but no solution.
When I put an address with a supported map linking, the link appear and you can click in differents providers(as much as you selected in location/map links).
But when I put an address, of my country(Spain) no link is showed.
Any one had this problem?? I guess a lot of people had to fight with the shame problem.
Thank you very much in advanced.

#1
Hmm, this might be the same issue I had – try checking out #412102: Map link not working when country is hidden (patch included, change to patch needs feedback).
#2
nahuelsgk, did the suggestion in #1 work for you?
Another thought, sometimes if a default country has a problem getting geo-coded, the map will not display. Are the locations getting geo-coded?
What if you manually put in lat and long, does the map display then?
#3
No response in over a month to the request for more information, so closing. Please change the status to active and add more information if this is still a problem for you.
#4
For India, I have selected Google Maps in Geocoding Options, but still in Map Links it says "none supported". Is India not supported?
#5
I have the same problem. For Belgium, there is also no Map Linking (Not Supported)
What do I have to do?
#6
looking forward to an answer too. Thanks!
#7
Me too. Italy seems to be not supported. Is there any solution?
#8
Bulgaria seems to be not supported too...
#9
i have same problam...there is no map linking for many countries...
#10
From what I've been able to glean so far, the Geocoding and Map Linking depend on 2 different functions.
Geocoding has a few "hardwired" countries (US, UK, AU, maybe a couple more) and then relied on include files in the location module's directory named "geocoding." The only file there is google.inc and, as of now, the version included in the July 31, 2009 dev version requires that countries be added to the file manually. In other words, the countries available for geocoding was fixed and not dynamically generated from google. Yesterday, I fixed that and a patch to change to get the list dynamically from google can be found here: http://drupal.org/node/584014
Now, every country that google supports for geocoding gets listed and any new countries will become available to the module when google adds them.
Map Links, on the other hand, seem to rely on per country include files found in a directory in the location module named "supported." If you look in there, you will find a long list of files each named for a country. A quick look at the ones that work and some that don't reveals that these files require a bunch of custom functions to generate the map links on a per map service basis. This per country file separation is, I suspect, required so that one could add custom map services for each country. So, good news and bad news here.
First the bad news: to get map links for your country, you'll need to add the custom functions to your country's include file that would fit with your local map sources.
Good news: there's kind of a work around. I didn't want map links, per se, in my node. I wanted actual maps. If you use the Locations CCK instead of Node Locations, one of the options is how to display the cck field. It can be just the address data, address with map, just a map, or multiple locations on 1 map.
Granted, this only solves the problem for nodes. User Locations are still out of luck via this method.