I am trying to build a series of maps in Views for a website. For some reason, if I change the defaults for a View ("this display" instead of "all displays"), the map disappears from the View.

I tested this by creating a block that used the defaults of the View. I placed the block on the page -- I could see the map. Then I went into the View and specified a different type of marker for the map. I saved the View, went back to the page where the block had been placed, and refreshed my browser. The map disappeared.

Any ideas? Suggestions? Help?

Comments

Katrina B’s picture

I tried again to create a map View; when I inserted code for a GMap macro (to change the size of the map), I got these errors when I tried to view the page containing the View block:

Notice: Trying to get property of non-object in gmap_plugin_style_gmap->render() (line 166 of /home/ymcatriangle/public_html-devel/sites/default/modules/gmap/gmap_plugin_style_gmap.inc).

Notice: Trying to get property of non-object in gmap_plugin_style_gmap->render() (line 167 of /home/ymcatriangle/public_html-devel/sites/default/modules/gmap/gmap_plugin_style_gmap.inc).

And the map did not display.

nsummy’s picture

Sounds exactly like the problem I was having :) http://drupal.org/node/1425448