Drupal 5.8, and I've installed modules...

cck-5.x-1.7.tar.gz
cck_gmapaddress-5.x-1.0-beta1.tar.gz
gmap-5.x-1.0-beta2.tar.gz
location-5.x-3.x-dev.tar.gz
views-5.x-1.6.tar.gz
(along with a few others unrelated)

and /think/ I've configured them properly, but when I use the gmap_macro_builder, the string it outputs is too long to fit in the GMap field of my CCK based content types.... and, no matter WHAT I put in that field, including a very truncated version like...
[gmap markers=small red::36.756747629967954,-121.50357413309393 |zoom=15 |center=36.75807193921816,-121.50402545928955]
it gives me an error like...
The address in field_gmap[0] could not be validated as correct address!

i'm sure I'm doing something wrong, but I can't for the life of me figure it out.

Comments

pierce’s picture

well. i guess I misundertstood this thing entirely. it lets me put in geo SEARCH fields for googlemaps, like a lat/long. so this is an address search field, not a gmap specifier. but I can't control the zoom, its always showing the me the whole world :-/

becw’s picture

Project: GMap Module » CCK GMap Address
Version: 5.x-1.0-beta2 » 5.x-1.0-beta1

It looks like this issue is specific to cck_gmapaddress, so I'm moving it to that queue.

pierce’s picture

agreed, I apparently confused the two.

so, if I'm using CCK_Gmapaddress, how do I control the zoom of the generated map ? on the module admin pages, I have it set to zoom 9 or so, but its always coming up whole world. my marker is in the right place. note, I'm using latitude/longitude to specify the site.

derhasi’s picture

Status: Active » Postponed (maintainer needs more info)

So there is only a zoom-problem in here? Did you set it to zoom = auto and it worked correctly?
I'll have a look at this problem again tomorrow.

pierce’s picture

Title: gmap field too small? » CCK Gmap Address Zoom

I don't even see any module admin pages for CCK GMap Address, just for GMap Locate, and GMap itself. and none of those seem to control the zoom of the CCK Gmap Address.

I'm sure I'm doing something wrong but I can't figure out what.

derhasi’s picture

Status: Postponed (maintainer needs more info) » Fixed

You control the zoom in the settings of the CCK field (admin/content/types/fields), so you can change it for every field, there is no extra settings page for the module. But default settings are managed with GMap Module.

[ http://work.derhasi.de/sites/default/files/cck_configure.png | http://work.derhasi.de/sites/default/files/cck_configure2.png ]

pierce’s picture

ok, thanks, that was what I was missing.

now, if I can just get GMap latitude and longitude to display in GPS format like N 37° 04.317' W 122° 07.721' instead of lon: -122.128683000000000 - lat: 37.071950000000000... but thats the main GMap module, I guess.

derhasi’s picture

Title: CCK Gmap Address Zoom » CCK Gmap Address Zoom & LonLat Format
Category: support » feature
Status: Fixed » Active

Zoom
There also was some error in fetching the default value of gmap module. Now this also works, and you can use GMap to geta side default setting. (Nightly dev didn't work, so the new .module is http://drupal.org/files/issues/cck_gmapaddress.module.txt

Latitude & Longitude:
That has to be handled by CCK GMapAddress' formatter for lonlat: line 420 at the current dev

case 'lonlat':
      return t('lon: %lon - lat: %lat',array('%lon'=>$item['longitude'],'%lat'=>$item['latitude']));

I simply added this short format, but building your proposed Format with ° and ' would be better. Do you allready have some code for converting?

pierce’s picture

lets see... this seems to work... I left out any explicit label text as the field is generally labeled from where its referenced...

        case 'lonlat':
//      return t('lon: %lon - lat: %lat',array('%lon'=>$item['longitude'],'%lat'=>$item['latitude']));
    $lon = $item['longitude'];  $lat = $item['latitude'];
    if ($lon < 0) { $lon = -$lon; $lonc = 'W';} else $lonc = 'E';
    $lond = floor($lon);  $lonm = ($lon - $lond)*60;
    if ($lat < 0) { $lat = -$lat; $latc = 'S';} else $latc = 'N';
    $latd = floor($lat); $latm = ($lat - $latd)*60;
    return $latc . " " . $latd . "&deg; " . sprintf("%6.3f",$latm) . "' " .          
           $lonc . " " . $lond . "&deg; " . sprintf("%6.3f",$lonm) . "'";

the site I'm testing this in is a mess and totally work-in-progress, but you can see this used here, http://new.observers.org/observingsites

derhasi’s picture

Status: Active » Fixed

This issue has allready been fixed.

Status: Fixed » Closed (fixed)

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