I created a custom content type and configured location. I enabled Location Map block. I created a custom content node with location info filled out. I viewed the node and no map.

Remembering seeing something about this somewhere, I added location to the default story type. Location for story type is configures the same as custom content type. Created story node with identical location info. Viewed node and location map block is present...

Why is location map block not working in custom content?

Location settings: Same (custom and default story)
Page settings: Same (custom and default story)
Permissions: Not an issue, working as admin

I just don't see it... wracking my brain... somehow I suspect that a very simple step is eluding me :P

Comments

kirilius’s picture

I see the same thing here. The assigned location coordinates show up as text in my node's body but no map is displayed. Then I added a location map block and the map started showing there but the actual location is not pinned on the map. There is no marker.
Strangely, when I go to Edit node page, the location I have selected previously shows up in both the main map and the block on the side.

bradklaver’s picture

When you go to gmap_location.module, to line 654, which is function gmap_location_block_view($nid)

It says: if ($node->locations) {

However if you check out $node->locations with Devel, its always an empty array....

I am guessing that the location module isn't loading the node with the locations variable correctly, I got things to work by replacing $node->locations with $node->field_location. Probalby not a great solution but it works.

yesct’s picture

Issue tags: +location cck

tagging.

ankur’s picture

Status: Active » Closed (cannot reproduce)

Feel free to re-open this ticket if the problem is still occurring on the most recent 6.x-3.x dev version.