I have not got this to work successfully so I am starting a bug report.

Comments

VM’s picture

This module states right on the project page that it is under heavy development and NOT STABLE.

zzolo’s picture

@VaryMisunderstood

I do thank you for responding quickly and pointing out the status, as people often overlook it, but I am actually one of the main developers on the module and was just putting this here as a placeholder for myself or someone else that wants to work on it or look at it.

Also, overall bug reports are welcome, but this one is horrible because it does not provide any information. Thanks again.

--
zzolo

zzolo’s picture

This seems to work on the CCK field (which I have disabled cause it threw me off), but does not work on the Views plugin. I still have nto looked at the code yet.

zzolo’s picture

Component: OpenLayers API » OpenLayers Behaviors
phayes’s picture

It works for me using points. (Natually you need at least 2 points as 1 point doesn't have area).

Can you confirm if it works for you using 2 points? polygons?

phayes’s picture

Status: Active » Fixed

Oops - I was using the wrong version. Found the bug in views (small typo), fixed: http://drupal.org/cvs?commit=237484

Status: Fixed » Closed (fixed)

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

BWPanda’s picture

Status: Closed (fixed) » Active

If I may dredge up this old bug report, I'm wondering about the statement: "This seems to work on the CCK field..."

I'm using a CCK field with WKT and one point. I'd like the map, when viewed, to zoom in on this point, but can't work out how to do it. I've done it previously in Views, but not just in a simple node.

I realise that "you need at least 2 points as 1 point doesn't have area", but I added another point and it still didn't zoom. I think it'd be good to have it work for one point though...

zzolo’s picture

I don't think this is enabled for CCK fields, hence why it is not working. The problem with CCK is that there is no ability to have options for formatters, so there is no logical place to put this option. It can work in the field settings, but its not really appropriate. I suppose we can put this back in there, but I would rather wait until the next version where behaviors will be able to be added to presets.

phayes’s picture

Some questions / comments:

1. How are you getting it in there? Preset? hook_map_alter?

2. For single points it should center the map on the point. I've just added an extra option to the behavior called 'pointzoom' that should let you specify a zoom level for single points.

phayes’s picture

Status: Active » Fixed

Closing. I've been playing with zoom to features quite a bit and all seems well. Please re-open if this isn't the case.

Status: Fixed » Closed (fixed)

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