Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers CCK
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2010 at 17:37 UTC
Updated:
26 Apr 2010 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
zzolo commentedInteresting. It almost looks like you have clustering on, but I dont think thats in 2.x at the moment. Do you have Firebug, and if so, do you see any JS errors, or messages in the console?
Comment #2
tmcw commentedI've experienced this problem before even with correct projections set. I really just need to devote another hour or two to debugging the CCK update logic - this is a situation in which I think that breaks.
Comment #3
vlad.k commentedI checked with Firebug and I don't have any JS-errors in the Firebug console.
I have this problem in three different Drupal installations. I additionally set up a "clean" Drupal installation only with Drupal 6.16, CCK, Views, Openlayers and Openlayers GeoCoder just to check this issue and to make sure that it is not specific for my Drupal configuration. So I'm wondering if any of you guys have this problem?
Comment #4
zzolo commentedI have never seen this. Ideally a clean installation would not involve OpenLayers GeoCoder. Though I would think form what @tmcw says, he has seen this with a configuration that does not involve OpenLayers GeoCoder.
Comment #5
martin.l commentedHello,
I have the same problem.
I tried it with a clean installation: Drupal 6.16, CCK6.x2.6 and Open Layers 6.2-2.x-dev (see Screenshots), Geocoder is not installed. The installation is in German. The module "Views" is not activated.
When creating multiple geotags and zooming in or out the system "forgets" the geotags and places only one near the coast of Africa, see screenshots.
I have added screenshots of the relevant configuration settings.
Is there a solution for this ?
Comment #6
vlad.k commentedI've found the solution for this. The projection setting must be "4326 - wms_default, osm_4326_hybrid". I don't really understand what projections are but in [openlayers_cck_drawfeature.js] in the function [update(features)] in line 19 the projection is hardcoded [new OpenLayers.Projection("EPSG:4326")].
Those this mean that only map presets with Map projection EPSG:4326 can be used for CCK Maps?
Comment #7
tmcw commentedThe reference to 4326 is based on the fact that geometry will always be stored in that projection; this should be compatible with any projection. Possibly displayProjection also needs to be set or something.
Comment #8
martin.l commentedHello,
I tried marsyas solution and it works.
But: I want to user "google-hybrid". This still does not to work.
Comment #9
vlad.k commentedThere is an error in the projection transformation logic.
If I use a preset with Map Projection 900913 (base layer e.g. Google Maps Hybrid) then the error occurs.
If I use a preset with Map Projection 4326 (base layer Default OpenLayers WMS) then the CCK map widget works.
I can't change the Display Projection, if I set it to 900913 it always is changed back to 4326 after saving.
Comment #10
vlad.k commentedAfter reading this tiket http://drupal.org/node/721434 I can change the Display projection, but the error still occurs.
I tried a Map Projection 900913 (base layer Google Maps Hybrid) with Display Projection 900913 and also with Display Projection 4326 and got the error in both cases.
Comment #11
martin.l commentedSame for me.
Comment #12
tmcw commentedCool; I looked through the DrawFeature behavior and realized that my understanding of the OpenLayers API was slightly wrong; transform() was actually transforming geometries into 4326 instead of just returning transformed copies. My bad; I've committed a fix ( http://drupal.org/cvs?commit=353234 ) that clones the features object first. Update to this afternoon's dev version of CVS head and retest.
Comment #13
schomsko commentedHello,
UPS -SORRY my server still delivers the old openlayers_cck_drawfeature.js
the problem is still there. I used the dev-version of today. I use 900913 as Map-Projection and 4326 as Display-Projection.
Zooming after drawing a point puts the point near Africa. (Coordinates stay the same in the Text Input Field until saving.)
Drawing more than one point or line puts the previous points or lines near Africa. (Coordinates of previous points change in Text Input Field as well)
But drawing a point, saving the node, editing node with another point works well.
Comment #14
tmcw commentedYou have cleared your cache (browser and Drupal) and reset Javascript aggregation?
Comment #15
vlad.k commentedHi, my tests where successfull now. Great work!
Comment #16
tmcw commentedGreat, marking as fixed.