3

I am using the GMap Module for Drupal 7 along with Location, with Node Locations enabled.

I have added a simple location field in my article content type, and enabled the location block to be shown in main content type.

During the creation of an article, when I enter the location values as text fields (e.g. countries, cities) without any latitude and longitudes, the map is not displayed on the article node page.

However, if I do enter some latitude and longitude values, either manually or using Google Maps, then the map is shown in the article node.

Does anybody have any idea why this happens?

3

I could be wrong but I think this is to do with the Geocoding settings, i.e. resolving the location from an address/postcode.

I played with the modules a week or so ago and found the Geocoding for the UK was not possible.

Try looking in the configuration options for the Location module, in particular the Geocoding tab. You'll see that the United Kingdom has no settings available so in my case I'll have to resort to requiring the user to use the map itself to specify the location.

  • it was a geocoding issue in the configuration for Locations module. – ayush Apr 22 '11 at 19:23
1

I have this very issue with the D6 version with a similar setup. I noticed that disabling the ability for users to manually add lat/long or use the map to set the marker, then allows to the geocoding to happen. It seems to me that you should be allowed to use all three depending on the preference of the user. It's either a bug or a feature request, I guess.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.