I wanted to create a simple map for the node view and I made a template and put the following code in it. I have Big Red as the marker I want to show up but when I load the code and view a page I get "Request for Invalid Marker Set Big Red!"

Is this code correct ?

<?php 
   $lat = $location [latitude];
   $long = $location [longitude];
   print gmap_simple_map($lat, $long, 'Big Red', '', 7, '600px', '700px', FALSE,''); ?>

Thanks,
Becky

Comments

beckyjohnson’s picture

Incidentally I just noticed that with the above code, the bubbles on the Node Locations page get HUGE when they load. They re size really badly and I wonder if I have the wrong tpl file which is causing a conflict or if it is reading the height and width in the above code as the width and height for the bubble.

My tpl file name is node-gmaps.tpl.php

Here is the tutorial I used, incidentally, : http://www.drupalove.com/drupal-video/gmap-location-module-basics-drupal-6

Becky

beckyjohnson’s picture

Status: Active » Fixed

I accidentally posted this in the location module queue instead of the gmap queuue. Sorry.

Status: Fixed » Closed (fixed)

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