I'm now running PHP5 so that I can get gmap working. All seems to be OK when I'm building nodes with the map showing OK on the create/edit page, but it doesn't show on the node page when I've saved it. If I edit the page then everything appears again and it looks like it has been save properly, but again it doesn't show when the page is saved.

any ideas?

CommentFileSizeAuthor
#4 node page with map.PNG3.44 KBdhineshtech

Comments

StuartDH’s picture

I've checked the display fields to make sure the gmap view is set to 'Default' and I've got contemplate installed, but made sure that it's reset for this CCK and there's no template for this CCK in the theme folder. The map seems to fill the node page with the dimensions that I set in Manage Fields, but the map doesn't show

http://www.wildaboutbritain.co.uk/maptest2

Source code is showing:

<div class="field-label-inline-first">Google Map:&nbsp;</div><div id="gmap-gmap_8231_field_map_gmap-gmap1" style="width: 500px; height: 400px;" class="gmap-control gmap-gmapgmap gmap-map gmap-gmap_8231_field_map_gmap-gmap"></div><script type="text/javascript">
/* <![CDATA[ */
Drupal.extend({ settings: { "gmap": { "gmap_8231_field_map_gmap": { "width": "500px", "height": "400px", "zoom": 10, "controltype": "Small", "align": "None", "maptype": "Map", "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 0, "nomousezoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "notype": 0, "collapsehack": 0, "scale": 0, "fatmarkers": false }, "markermode": "1", "field_name": "field_map_gmap", "type": "gmap_cck", "required": "0", "multiple": "0", "db_storage": "1", "alignment": "Center", "gpx": null, "gpx_src": null, "marker_noderef": "marker", "widget": { "type": "gmap_cck", "weight": "0", "label": "Google Map", "description": "" }, "type_name": "map", "display_settings": { "label": { "format": "inline" }, "teaser": { "format": "default" }, "full": { "format": "default" } }, "markers": [ { "label": "maptest2", "opts": { "title": "maptest2" }, "latitude": "51.739865", "longitude": "-3.363518", "markername": "drupal", "text": "\x3cdiv class=\"gmapnodelabel gmapnodelabel-map\"\x3e\x3cdiv class=\"node\"\x3e       \x3ch2\x3e\x3ca href=\"/maptest2\" title=\"maptest2\"\x3emaptest2\x3c/a\x3e\x3c/h2\x3e       \x3cdiv class=\"info\"\x3eSubmitted by \x3ca href=\"/user/stuartdh\" title=\"View user profile.\"\x3eStuartDH\x3c/a\x3e on Wed, 02/01/2008 - 16:34.\x3c/div\x3e   \x3cdiv class=\"content\"\x3e   maptest2  \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e" } ], "id": "gmap_8231_field_map_gmap", "querypath": "http://www.wildaboutbritain.co.uk/map/query", "longitude": "-3.4222412109375", "latitude": "52.19245608825017" } } } });
/* ]]> */
</script>
StuartDH’s picture

Looks like it was probably because I hadn't got the box checked for the GMAP filter in the site's Input Formats

pkej’s picture

Status: Active » Closed (fixed)

I'll close this for you, then ;) Good that you got it working.

dhineshtech’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Assigned: Unassigned » dhineshtech
StatusFileSize
new3.44 KB

Add a location field to the content type you need ,set the teaser and full node view to "address with map" in display fields. attached image shows the options.