Hi, I'm setting up a website (currently only on my local server, not yet live). I've got an OpenLayers WKT CCK field set to OpenLayers Geocoder, using OpenLayers 2.0-alpha3 and OpenLayers Geocoder 2.0-alpha2.
I've got this field on a content type called "Pledge" with a few other (text) CCK fields.
When I enter the location I'd like to geocode into the Search Map area, nothing happens. It shows the circle like it's trying to autocomplete for about a second and stop without offering any suggestions. If I save it, the location field remains blank.
Any ideas/pointers?
Comments
Comment #1
ademarco commentedOpenLayers Geocoder 6.x-2.0-alpha2 requires Google Map API key, have you set one in admin/settings/openlayers/layers/settings? If you don't want to provide an API key you can always use 6.x-2.x-dev snapshot.
Comment #2
jessia commentedThanks, I put in the API key and it's searching correctly. Hooray! Except... now that it's working I see a problem with the geocoder. All the locations I search end up near (0,0) (zooms to the South Pole but displays off the west coast of Africa on the World Map)...
For instance, Bayfield, Colorado, USA, shows up as:
GEOMETRYCOLLECTION(POINT(-0.00096657028834953 0.00033440288882314))
Bangkok, Thailand: GEOMETRYCOLLECTION(POINT(0.00090259334819072 0.00012327956680279))
Pretty weird... any ideas?
Comment #3
jessia commentedComment #4
ademarco commentedThis kind of behavior used to be related to a bad handling of the display projection, it should be fixed in 6.x-2.x-dev, could you try to use the dev snapshot to see if the problem still occurs?
Comment #5
ademarco commentedFixed in 6.x-2.x-dev: http://drupal.org/cvs?commit=351486