Perhaps there is a setting that is incorrect on my site, but I don't know as I am new to Gmap.

Here is what I have installed and turned on:
Gmap
Gmap Location
Gmap Macro Builder
Gmap Taxonomy Markers

Location
Location Add Another
Location Fax
Location Phone
Location Search

Location taxonomize
Location taxonomize - Location

Node Locations

For a content type, I have tried both a location cck field and node location separately. A link to a google map displays, but no map on the site. When I create a view, I go through the steps of creating a page with Gmap style. No map is displayed.

My api key is Version 2, and there was no error message when I generated it and entered it in today. My drupal version is 7.9. What am I missing or does the latest release not work?

Comments

axgalloway’s picture

FYI, Location version is 7.x-3.x, and I have Location CCK module active.

axgalloway’s picture

I fixed the display on a page by configuring the correct input format at admin/config/content/formats

However, I can't seem to figure out how to get the display of the map in a view. I created a new content 'page' view with format display of Gmap. It is filtered to content type with locations. No map is displaying. What setting am I missing?

axgalloway’s picture

Okay, to simplify, I uninstalled all of the location modules, addons, and gmap modules. Then, I turned on just four.

Gmap
Gmap Location
Location
Location CCK

In the view that I built, I removed all the filters, just in case, and kept everything else default values.
Attached are two screenshots of the settings.
Only local images are allowed.
Only local images are allowed.

No map is displaying on the page generated by the view? Why? Several Nodes have a location cck field and multiple locations.

axgalloway’s picture

Category: support » feature
Priority: Major » Minor

I figured out the issue. If only the state and country are entered, no marker is set for the location, however, if further information is put in, such as a street address, zip code, or map coordinates, then a marker is assigned. It seems like each state and country should have its own default coordinates for a marker, or a randomly assigned one inside of the boundaries.

Anyway, I am changing it to a minor feature request.

alexio2170’s picture

Hi, I tried to upgrade. I'm experiencing the same problems... I'm filling coordinates as mandatory but no markers are shown on the map.
It seems to be a major problem.

axgalloway’s picture

Maybe some setting isn't configured?

Go to Configuration >> Location
Select the Geocoding tab, select Google Maps for the countries you are displaying.

Also, it could be unrelated, but when I set that configuration, I also checked the box in the main settings "Use a Google Map to set latitude and longitude".

Try both of those and see if it works. However, I tried the Extended Gmap display format View and can't seem to get any marker displayed on that. Some documentation about its configuration would be useful. Will create another issue for that...

axgalloway’s picture

Also, not sure about the current validity of the statement, but I have read somewhere that Node Location conflicts with Location CCK, and the best for Drupal 7 design standards is Location CCK.

alexio2170’s picture

Hi, thanks for hints, but such configs are already in place.
I'm using location cck in fact. I've rolled back my gmaps module and my maps are restored.
Actually I can see the map (no errors) but I cannot any markers even if location cck has both country and coordinates which make the marker appear with the previous version,

johnv’s picture

Title: No map displays with fresh install » No map displays with fresh install, using Location CCK
Status: Active » Postponed (maintainer needs more info)

Did you resolve the issue?

podarok’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Category: feature » support

Is it feature request?

bdyerstewart’s picture

I, too, have lost my map display after upgrading the gmap module. I'm using the location module and Gmap in views to create the map. The map page gives me a no results message with no map. When I copy the query from views and run it in phpadmin, I see the results I expect (the same that show up on the map if I roll back to my earlier version of Gmap). If I clone the page and set the views style to Gmap extended, I no longer get the no results message, a map displays but no markers.
I'm using a dev version of Gmap from 4/12. When I've tried to update since then, I've had the same issue, so I just kept the earlier version. I've rolled back for now but look forward to being able to do updates without losing the map display.

Here's the text from the info file of the working gmap module:
; Information added by drupal.org packaging script on 2012-04-17
version = "7.x-1.x-dev"
core = "7.x"
project = "gmap"
datestamp = "1334665200"

johnv’s picture

@bdyerstewart, please do no high-jack this issue. This is about Location CCK.
You should upgrade to 7.x-2.6 .

bdyerstewart’s picture

@johnv. Not meant as a hijack, just additional info about a possibly related problem to add to the mix. My map stopped displaying when I upgraded to 7.x-2.6 so I reverted. It's not directly a Location CCK issue.

johnv’s picture

Title: No map displays with fresh install, using Location CCK » "Views plugin style" does not support 'Location CCK' fields
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

@bdyerstewart , latest version should works unless you have clustermarkers.

let's promote this issue to the main issue for "Views plugin style" does not support 'Location CCK' fields