Here's my problem:

I can display a static map just fine, using

Style: GMaps Static Map (and Map preset: View style)
Row Style: Static Map Node Marker

Fields:
Marker Option: Address - Point
Content AnP: Address GMaps Map

Filters: Node: Type = Points of Interest

Points of Interest is a Content Type I created using CCK with an Address and Point input.

The view displays my address as a static map just fine. However, if I try to display it using the:
Style: GMaps Map
Row Style: Map Node Marker

(and the rest the same as above)

Then it returns the query in the live preview, but just says "Loading..." above the query instead of showing a map like it did for the Static Map View. Also, when I go to the page view I created, it just shows a map with nothing on it.

Any help as to why this is happening would be much appreciated as the Static Map doesn't do me much good.

P.S. I attached a screen shot of my current settings which are not working.
-Mike

CommentFileSizeAuthor
Gmap.png144.12 KBconley722

Comments

xmarket’s picture

Status: Active » Fixed

Interactive maps don't work in Live preview. You can test them on real pages, only.

conley722’s picture

Thanks for the prompt reply,
So that explains that. But, did you notice if my settings looked correct? because I cannot seem to get it to display correctly on an actual page either, it just shows up as a blank map (like its looking at water). The only things I did were create a CCK content type with AnP fields, added some demo nodes, and then set up the view like described/shown in my original post. Am I missing other steps? Is there something wrong with my view settings? Do I need to add extra fields to the Content Type to get it to work? I am new to this so I'm assuming there could be a number of things I am missing, any suggestions would be greatly appreciated.

Also, I am currently developing on a localhost if that has anything to do with it (I do have an API Key though).

conley722’s picture

Status: Fixed » Active
xmarket’s picture

Status: Active » Fixed

Marking as fixed, because the original issue has been fixed.

For the second issue: you should center the map somehow:

  • You can enable and configure the Automatic center and zoom method on the proset;
  • You can enable the center map to the first marker feature on the preset (marker > misc)
  • You can add an argument or filter to the view that can set the view location and the center on view location field from the Map option group

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

karakal’s picture

Sorry for the simple question but I couldn't find any reference anywere else.
How do I get Style:Gmaps static map, In views? So far I have only the Gmap option when I choose style.
Tnx in advance