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
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

mikl - March 24, 2009 - 14:00

#2

YesCT - April 17, 2009 - 12:13
Title:Map Links for none supported countries» Map Links for none supported countries (like spain)
Status:active» postponed (maintainer needs more info)

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

YesCT - May 24, 2009 - 05:55
Status:postponed (maintainer needs more info)» closed

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

ABSK - July 3, 2009 - 17:11
Status:closed» active

For India, I have selected Google Maps in Geocoding Options, but still in Map Links it says "none supported". Is India not supported?

#5

Torre - August 13, 2009 - 22:47

I have the same problem. For Belgium, there is also no Map Linking (Not Supported)
What do I have to do?

#6

yanku - September 9, 2009 - 11:35

looking forward to an answer too. Thanks!

#7

alvinet - September 18, 2009 - 15:33

Me too. Italy seems to be not supported. Is there any solution?

#8

acdtrp - September 20, 2009 - 19:28

Bulgaria seems to be not supported too...

#9

siva kasireddi - September 22, 2009 - 07:21

i have same problam...there is no map linking for many countries...

#10

fred0 - September 23, 2009 - 04:40

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.

 
 

Drupal is a registered trademark of Dries Buytaert.